Skip to content

dapp core #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
core/wallet-dapp-rpc-client
8 changes: 4 additions & 4 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
packageExtensions:
'@jest/core@*':
dependencies:
ts-node: ^10.9.2
typescript: ^5.0.0
'@open-rpc/generator@*':
dependencies:
'@inquirer/prompts': ^3.0.0
'@open-rpc/schema-utils-js': ^2.0.2
'@jest/core@*':
dependencies:
'ts-node': ^10.9.2
'typescript': ^5.0.0
2 changes: 1 addition & 1 deletion core/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# temporary, until codegen works better
wallet-dapp-rpc*
# wallet-dapp-rpc*
2 changes: 2 additions & 0 deletions core/wallet-dapp-rpc-client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
build
67 changes: 67 additions & 0 deletions core/wallet-dapp-rpc-client/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import eslint from '@eslint/js'
import tseslint from '@typescript-eslint/eslint-plugin'
import tsParser from '@typescript-eslint/parser'
import prettierConfig from 'eslint-config-prettier'
import prettierPlugin from 'eslint-plugin-prettier'
import { fileURLToPath } from 'url'
import { dirname } from 'path'
import globals from 'globals'

const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)

export default [
eslint.configs.recommended,
{
files: ['**/*.{ts,tsx}'],
languageOptions: {
parser: tsParser,
parserOptions: {
project: ['./tsconfig.json'],
tsconfigRootDir: __dirname,
ecmaVersion: 2022,
sourceType: 'module',
ecmaFeatures: {},
},
globals: {
...globals.node,
...globals.es6,
chrome: 'readonly',
browser: 'readonly',
},
},
plugins: {
'@typescript-eslint': tseslint,
prettier: prettierPlugin,
},
rules: {
...tseslint.configs['recommended'].rules,
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': [
'warn',
{ argsIgnorePattern: '^_' },
],
'no-console': ['warn', { allow: ['warn', 'error'] }],
'prettier/prettier': 'error',
},
ignores: [
'package.json',
'node_modules/',
'**/*/dist/',
'build/',
'coverage/',
'*.config.js',
'**/*.config.ts',
'vitest.config.ts',
'vite.config.ts',
],
settings: {
react: {
version: 'detect',
},
},
},
prettierConfig,
]
37 changes: 37 additions & 0 deletions core/wallet-dapp-rpc-client/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "wallet-dapp-rpc-client",
"version": "1.0.0",
"description": "",
"type": "module",
"main": "build/index.js",
"scripts": {
"build": "tsc && typedoc src/index.ts --out docs --excludeExternals --excludePrivate --hideGenerator --readme none",
"lint": "eslint src/**/*.ts"
},
"files": [
"build/*"
],
"author": "",
"license": "Apache-2.0",
"dependencies": {
"@open-rpc/client-js": "1.8.1",
"@open-rpc/meta-schema": "1.14.9",
"@open-rpc/schema-utils-js": "2.1.2",
"lodash": "^4.17.15"
},
"devDependencies": {
"@eslint/js": "9.21.0",
"@typescript-eslint/eslint-plugin": "^8.25.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.3",
"@types/isomorphic-fetch": "^0.0.39",
"@types/jest": "^29.5.12",
"@types/json-schema": "7.0.3",
"@types/lodash": "^4.14.149",
"@types/ws": "^6.0.1",
"globals": "^16.0.0",
"prettier": "^3.5.2",
"typedoc": "^0.27.9",
"typescript": "^5.0.0"
}
}
Loading