-
Notifications
You must be signed in to change notification settings - Fork 10
Refactor: refactor test files with ts and typechain #46
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
Open
xiaok
wants to merge
37
commits into
master
Choose a base branch
from
ito-refactor
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 29 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
ebbd2c5
add project coding style dot files
xiaok 0167191
configure typechain and abiExporter
xiaok 1722cb6
refactor: test pool creation
xiaok 52f49dc
test refactor
fengshanshan d43d6fc
Merge branch 'ito-refactor' of github.com:DimensionDev/InitialTwitter…
fengshanshan b7be859
refactor: test pool availability
xiaok 241f624
test file to ts
fengshanshan 2ac9f30
Merge branch 'ito-refactor' of github.com:DimensionDev/InitialTwitter…
fengshanshan c382c83
refactor: test pool swap
xiaok 0826dda
Merge branch 'ito-refactor' of github.com:DimensionDev/InitialTwitter…
xiaok f3549d7
refactor: test pool claim
xiaok 79c1756
refactor: merge testTokenA/B/C to one contract
xiaok 42302ae
testAfterExpired bug fix
fengshanshan aad1622
Merge branch 'ito-refactor' of github.com:DimensionDev/InitialTwitter…
fengshanshan 08420c3
format contracts
xiaok 58f02f6
test file fix bugs
fengshanshan f524572
Merge branch 'ito-refactor' of github.com:DimensionDev/InitialTwitter…
fengshanshan 247cd24
remove unnecessary import
fengshanshan a77a1b8
TestAfterExpired fix bug
fengshanshan 5a316ea
fix the time advanced
fengshanshan d85eef9
move getVersion to helper
fengshanshan e243f5c
fix getVersion
fengshanshan 5d861ae
improve code style
xiaok 01b9d98
variable declaim
fengshanshan d97edf2
impovement: Uniform CamelCase
xiaok beac2a3
Merge branch 'ito-refactor' of github.com:DimensionDev/InitialTwitter…
xiaok 2dc35f6
fix ci workflow
xiaok 9183f76
update SmartContractProjectConfig version
xiaok 9d03945
refactor: generateReadme script
xiaok 81c85d9
bug fixes & fix review comments
xiaok 0143677
fix review comments
xiaok 36ae9d3
remove useless test case
xiaok a596c30
big Number format
fengshanshan e5bfda6
remove useless type cast
fengshanshan ec70887
remove useless type cast
fengshanshan bc6117f
review suggestion
fengshanshan eec98ab
review suggestion
fengshanshan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| root = true | ||
|
|
||
| [*] | ||
| indent_size = 2 | ||
| charset = utf-8 | ||
| end_of_line = lf | ||
| trim_trailing_whitespace = true | ||
| insert_final_newline = true | ||
| indent_style = space | ||
|
|
||
| [*.sol] | ||
| indent_size = 4 |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| { | ||
| "$schema": "https://dimensiondev.github.io/eslint-plugin/src/schema.json", | ||
| "parser": "@typescript-eslint/parser", | ||
| "parserOptions": { | ||
| "sourceType": "module", | ||
| "project": "./tsconfig.json" | ||
| }, | ||
| "plugins": ["@dimensiondev", "@typescript-eslint"], | ||
| "rules": { | ||
| "eqeqeq": ["error", "smart"], | ||
| "no-unsafe-negation": "error", | ||
| "no-unsafe-optional-chaining": "error", | ||
| "no-irregular-whitespace": [ | ||
| "warn", | ||
| { | ||
| "skipComments": true, | ||
| "skipRegExps": true | ||
| } | ||
| ], | ||
| "@dimensiondev/array/no-implicit-sort": "error", | ||
| "@dimensiondev/array/no-unneeded-flat-map": "error", | ||
| "@dimensiondev/array/prefer-from": "error", | ||
| "@dimensiondev/string/no-interpolation": "error", | ||
| "@dimensiondev/string/no-locale-case": "error", | ||
| "@dimensiondev/string/no-simple-template-literal": "error", | ||
| "@dimensiondev/string/no-unneeded-to-string": "error", | ||
| "@dimensiondev/type/no-bigint": "off", | ||
| "@dimensiondev/type/no-const-enum": "off", | ||
| "@dimensiondev/type/no-force-cast-via-top-type": "error", | ||
| "unicorn/no-instanceof-array": "off", | ||
| "@dimensiondev/type/no-instanceof-wrapper": "error", | ||
| "@dimensiondev/type/no-number-constructor": "error", | ||
| "@dimensiondev/type/no-wrapper-type-reference": "error", | ||
| "@dimensiondev/type/prefer-return-type-annotation": "error", | ||
| "@dimensiondev/unicode/no-bidi": "off", | ||
| "@dimensiondev/unicode/no-invisible": "error", | ||
| "@dimensiondev/unicode/specific-set": "off", | ||
| "@dimensiondev/ban-eslint-disable": "error", | ||
| "@dimensiondev/no-builtin-base64": "error", | ||
| "@dimensiondev/no-default-error": "error", | ||
| "@dimensiondev/no-redundant-variable": "error", | ||
| "@dimensiondev/no-single-return": "error", | ||
| "@dimensiondev/no-then": "error", | ||
| "@dimensiondev/no-timer": "off", | ||
| "@dimensiondev/no-top-level": "off", | ||
| "@dimensiondev/no-unsafe-date": "error", | ||
| "@dimensiondev/prefer-default-export": "off", | ||
| "@dimensiondev/prefer-early-return": "error", | ||
| "@dimensiondev/prefer-fetch": "error", | ||
| "@dimensiondev/prefer-timer-id": "error", | ||
| "@typescript-eslint/adjacent-overload-signatures": "error", | ||
| "@typescript-eslint/array-type": [ | ||
| "warn", | ||
| { | ||
| "default": "array", | ||
| "readonly": "array" | ||
| } | ||
| ], | ||
| "@typescript-eslint/await-thenable": "error", | ||
| "@typescript-eslint/no-empty-interface": "error", | ||
| "@typescript-eslint/no-extra-non-null-assertion": "error", | ||
| "@typescript-eslint/no-misused-promises": [ | ||
| "error", | ||
| { | ||
| "checksConditionals": true, | ||
| "checksVoidReturn": true | ||
| } | ||
| ], | ||
| "@typescript-eslint/no-inferrable-types": [ | ||
| "error", | ||
| { | ||
| "ignoreParameters": false, | ||
| "ignoreProperties": false | ||
| } | ||
| ], | ||
| "@typescript-eslint/no-non-null-asserted-optional-chain": "error", | ||
| "@typescript-eslint/no-unnecessary-boolean-literal-compare": [ | ||
| "warn", | ||
| { | ||
| "allowComparingNullableBooleansToTrue": true | ||
| } | ||
| ], | ||
| "@typescript-eslint/strict-boolean-expressions": "error", | ||
| "@typescript-eslint/no-unnecessary-condition": "warn", | ||
| "@typescript-eslint/no-unnecessary-type-constraint": "warn", | ||
| "@typescript-eslint/prefer-for-of": "warn", | ||
| "@typescript-eslint/restrict-plus-operands": "error" | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| @dimensiondev:registry=https://npm.dimension.im/ |
This file contains hidden or 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,9 +1,27 @@ | ||
| .github/ | ||
| .git/ | ||
| package.json | ||
| package-lock.json | ||
| truffle-config.js | ||
| tsconfig.json | ||
| README.md | ||
| migrations/** | ||
|
|
||
| # VSCode personal settings | ||
| .vscode/launch.json | ||
| .vscode/tasks.json | ||
|
|
||
| # Dependency directories | ||
| node_modules/ | ||
|
|
||
| # Optional npm cache directory | ||
| .npm | ||
|
|
||
| # Optional eslint cache | ||
| .eslintcache | ||
|
|
||
| # dotenv environment variables file | ||
| .env | ||
| .env.test | ||
|
|
||
| # Generated files | ||
| artifacts/ | ||
| cache/ | ||
| SmartContractProjectConfig/ | ||
| types/ | ||
| .openzeppelin |
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. | ||
| // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp | ||
| // List of extensions which should be recommended for users of this workspace. | ||
| "recommendations": [ | ||
| "editorconfig.editorconfig", | ||
| "dbaeumer.vscode-eslint", | ||
| "wayou.vscode-todo-highlight", | ||
| "esbenp.prettier-vscode", | ||
| "streetsidesoftware.code-spell-checker", | ||
| "christian-kohler.path-intellisense" | ||
| ], | ||
| // List of extensions recommended by VS Code that should not be recommended for users of this workspace. | ||
| "unwantedRecommendations": [] | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "eslint.format.enable": true, | ||
| "editor.formatOnSave": true, | ||
| "editor.defaultFormatter": "esbenp.prettier-vscode", | ||
| "editor.codeActionsOnSave": { | ||
| "source.fixAll": true | ||
| }, | ||
| "cSpell.language": "en", | ||
| "cSpell.enabled": true, | ||
| "[json]": { | ||
| "editor.quickSuggestions": { | ||
| "strings": true | ||
| }, | ||
| "editor.suggest.insertMode": "replace", | ||
| "editor.tabSize": 2 | ||
| } | ||
| } | ||
This file contains hidden or 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
Submodule SmartContractProjectConfig
updated
14 files
| +9 −0 | .editorconfig | |
| +3 −0 | .env.example | |
| +0 −1 | .gitignore | |
| +32 −0 | Chains.csv | |
| +11 −1 | README.md | |
| +44 −0 | chains.ts | |
| +0 −300 | config.js | |
| +61 −0 | config.ts | |
| +26 −0 | info/chainlinkVRF.json | |
| +23 −0 | info/contractAddress.json | |
| +174 −0 | info/networks.json | |
| +0 −11 | project.secret.sample.js | |
| +8 −0 | tsconfig.json | |
| +115 −0 | types.ts |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.