-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
241 changed files
with
15,894 additions
and
15,668 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,51 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"es2022": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"@dusk-network/eslint-config/js", | ||
"@dusk-network/eslint-config/svelte" | ||
], | ||
"globals": { | ||
"CONFIG": false | ||
}, | ||
"overrides": [{ | ||
"files": ["*.svelte"], | ||
"rules": { | ||
"no-undef-init": 0, | ||
"svelte/require-optimized-style-attribute": 0 | ||
} | ||
}, { | ||
"files": ["*.spec.js", "*.test.js"], | ||
"rules": { | ||
"brace-style": [ | ||
"error", | ||
"1tbs", | ||
{ "allowSingleLine": true } | ||
], | ||
"jsdoc/require-jsdoc": 0, | ||
"max-len": [ | ||
"error", { | ||
"code": 110, | ||
"comments": 110, | ||
"ignorePattern": "^\\s*it\\(", | ||
"ignoreUrls": true | ||
} | ||
], | ||
"max-nested-callbacks": [ | ||
"error", | ||
5 | ||
], | ||
"max-statements": 0, | ||
"max-statements-per-line": [ | ||
"error", { | ||
"max": 2 | ||
} | ||
], | ||
"object-curly-newline": 0, | ||
"quote-props": [ | ||
"error", | ||
"consistent" | ||
], | ||
"sort-keys": 0 | ||
} | ||
}], | ||
"root": true, | ||
"settings": { | ||
"import/resolver": { | ||
"eslint-import-resolver-custom-alias": { | ||
"alias": { | ||
"$app": "node_modules/@sveltejs/kit/src/runtime/app", | ||
"$config": "./src/config", | ||
"$lib": "./src/lib", | ||
"@sveltejs/kit": "node_modules/@sveltejs/kit/src/exports/index.js", | ||
"@testing-library/svelte": "node_modules/@testing-library/svelte/src/index.js", | ||
"svelte/motion": "node_modules/svelte/src/runtime/motion/index.js", | ||
"svelte/store": "node_modules/svelte/src/runtime/store/index.js", | ||
"svelte/transition": "node_modules/svelte/src/runtime/transition/index.js" | ||
}, | ||
"extensions": [".cjs", ".js", ".json", ".svelte"] | ||
} | ||
} | ||
} | ||
env: { | ||
browser: true, | ||
es2022: true, | ||
node: true, | ||
}, | ||
extends: [ | ||
"@dusk-network/eslint-config/js", | ||
"@dusk-network/eslint-config/svelte", | ||
], | ||
globals: { | ||
CONFIG: false, | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["*.svelte"], | ||
rules: { | ||
"svelte/require-optimized-style-attribute": 0, | ||
}, | ||
}, | ||
{ | ||
// Rules for conventional testing practises using Vitest. | ||
files: ["*.spec.js", "*.test.js"], | ||
rules: { | ||
"brace-style": ["error", "1tbs", { allowSingleLine: true }], | ||
"max-nested-callbacks": ["error", 5], | ||
"max-statements": 0, | ||
}, | ||
}, | ||
], | ||
root: true, | ||
settings: { | ||
"import/resolver": { | ||
"eslint-import-resolver-custom-alias": { | ||
alias: { | ||
$app: "node_modules/@sveltejs/kit/src/runtime/app", | ||
$config: "./src/config", | ||
$lib: "./src/lib", | ||
"@sveltejs/kit": "node_modules/@sveltejs/kit/src/exports/index.js", | ||
"@testing-library/svelte": | ||
"node_modules/@testing-library/svelte/src/index.js", | ||
"svelte/motion": "node_modules/svelte/src/runtime/motion/index.js", | ||
"svelte/store": "node_modules/svelte/src/runtime/store/index.js", | ||
"svelte/transition": | ||
"node_modules/svelte/src/runtime/transition/index.js", | ||
}, | ||
extensions: [".cjs", ".js", ".json", ".svelte"], | ||
}, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
class Wallet { | ||
constructor (seed, gasLimit = 2900000000, gasPrice = 1) { | ||
this.gasLimit = gasLimit; | ||
this.gasPrice = gasPrice; | ||
this.seed = seed; | ||
this.wasm = {}; | ||
} | ||
constructor(seed, gasLimit = 2900000000, gasPrice = 1) { | ||
this.gasLimit = gasLimit; | ||
this.gasPrice = gasPrice; | ||
this.seed = seed; | ||
this.wasm = {}; | ||
} | ||
|
||
gasLimit; | ||
gasPrice; | ||
seed; | ||
wasm; | ||
gasLimit; | ||
gasPrice; | ||
seed; | ||
wasm; | ||
|
||
async history () {} | ||
async getBalance () {} | ||
async getPsks () {} | ||
async stake () {} | ||
async stakeAllow () {} | ||
async stakeInfo () {} | ||
async reset () {} | ||
async sync () {} | ||
async transfer () {} | ||
async unstake () {} | ||
async withdrawReward () {} | ||
async history() {} | ||
async getBalance() {} | ||
async getPsks() {} | ||
async stake() {} | ||
async stakeAllow() {} | ||
async stakeInfo() {} | ||
async reset() {} | ||
async sync() {} | ||
async transfer() {} | ||
async unstake() {} | ||
async withdrawReward() {} | ||
} | ||
|
||
export default Wallet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
{ | ||
"extends": "./.svelte-kit/tsconfig.json", | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"checkJs": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"noImplicitAny": true, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": false, | ||
"sourceMap": true, | ||
"strict": true, | ||
"paths": { | ||
"$lib": ["./src/lib"], | ||
"$lib/*": ["./src/lib/*"] | ||
}, | ||
"types": [ | ||
"./node_modules/@testing-library/jest-dom/types/vitest.d.ts" | ||
] | ||
} | ||
"extends": "./.svelte-kit/tsconfig.json", | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"checkJs": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"noImplicitAny": true, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": false, | ||
"sourceMap": true, | ||
"strict": true, | ||
"paths": { | ||
"$lib": ["./src/lib"], | ||
"$lib/*": ["./src/lib/*"] | ||
}, | ||
"types": ["./node_modules/@testing-library/jest-dom/types/vitest.d.ts"] | ||
} | ||
} |
Oops, something went wrong.