Skip to content
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

Added Dpos contract calls to new sdk package #583

Open
wants to merge 19 commits into
base: feat/sdk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 13 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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"faucet-build": "cross-env SKIP_PREFLIGHT_CHECK=true yarn workspace @taraxa_project/faucet build",
"faucet-start": "cross-env SKIP_PREFLIGHT_CHECK=true yarn workspace @taraxa_project/faucet start:dev",
"format": "prettier . --write && eslint --fix '*.{js,jsx,ts,tsx}'",
"lint": "eslint services/community-site && eslint packages/taraxa-ui && eslint services/delegation && eslint services/claim-backend && eslint services/explorer",
"lint:fix": "eslint services/community-site --fix && eslint packages/taraxa-ui --fix && eslint services/delegation --fix && eslint services/claim-backend --fix && eslint services/explorer --fix",
"lint": "eslint services/community-site && eslint packages/taraxa-ui && eslint packages/taraxa-sdk && eslint services/delegation && eslint services/claim-backend && eslint services/explorer",
"lint:fix": "eslint services/community-site --fix && eslint packages/taraxa-ui && eslint packages/taraxa-sdk --fix && eslint services/delegation --fix && eslint services/claim-backend --fix && eslint services/explorer --fix",
"postinstall": "husky install",
"start:platform": "concurrently \"yarn community-start\" \"yarn status-start\" \"yarn claim-start\" \"yarn delegation-start\"",
"status-build": "cross-env SKIP_PREFLIGHT_CHECK=true yarn workspace @taraxa_project/taraxa-node-status build",
Expand Down
31 changes: 22 additions & 9 deletions packages/taraxa-sdk/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,34 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
sourceType: 'module',
tsconfigRootDir: __dirname,
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
root: true,
env: {
node: true,
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
},
overrides: [
{
// JavaScript and JSX
files: ['*.{ts,tsx}'],
files: ['*.{ts}'],
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
rules: {
'ro-restricted-exports': 'off',
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: ['**/*.stories.*', '**/.storybook/**/*.*'],
peerDependencies: true,
},
],
'prettier/prettier': [
'error',
{
Expand Down
1 change: 1 addition & 0 deletions packages/taraxa-sdk/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
lib/
yarn-error.log
types/
Loading