-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Great TypeScript Refactor (#1069)
* TS WIP - testsuites * tsconfig revamp * convert testsuites files into TS * fix up test:contracts:hardhat accordingly * TS WIP - Typechain * add typechain for ethereum-contracts * TS WIP - UUPS and CallUtils * convert UUPS test and CallUtils test file to typescript * TS WIP - Utility Contract Tests * convert utility contract tests to TypeScript * remove file extension in all-contracts.ts * add some helpers to helpers.js * TS WIP - CFAv1Forwarder Tests * convert CFAv1Forwarder contract tests to TypeScript * TS WIP - Library Tests * convert CFAv1Library and IDAv1Library contract tests to TypeScript * TS WIP - Scenarios Tests * convert scenarios tests to typescript * TS WIP - Scenarios Tests * convert scenarios tests to typescript * TS WIP - SuperfluidGoverannceII tests * convert SuperfluidGovernanceII contract tests to TypeScript * TS WIP - Custom Tokens Tests * convert custom token contract tests to TypeScript * TS WIP - Superfluid Core Tests * convert superfluid core tests to typescript * use import instead of require in testsuite files * TS WIP - Clean up commit pollution * undo some of the variable renaming * TS WIP - Clean up commit pollution (cont.) * undo use of ethers over web3 * TS WIP - Clean up commit pollution (cont.) * TS WIP - Token behavior files * some cleanup * mainly converted token behavior files * TS WIP - CFA/IDA behavior files * converted behavior files for CFA and IDA * TS WIP - Convert peripheries * convert CFADataModel, MFASupport, AgreementHelper, helpers, expectRevert to typescript * TS WIP - Convert TestEnvironment * convert TestEnvironment to typescript * fix MFASupport import * fix TestEnvironment imports * remove module.exports from AgreementHelper * TS WIP - Deprecate JS-SDK remove js-sdk from: - pr-artifact creation - canary tests + coverage - publish-pr-packages - publish-release-packages - codecov flag - root package.json - check-changeset.sh * TS WIP - Add JS-SDK tests * add tests that exist in js-sdk to sdk-core as part of deprecation * TS WIP - Packages * bump hardhat version * lower js-sdk version * TS WIP - Refactor Cleanup * remove most explicit any's + add actual type * separation of types from actual files in certain places where it is bloated * BN refactor (passing in BigNumber to almost all funcs) * .eslintrc.ts.json added to lint typescript test files * lint fix files * general type fixes * remove parallel flag * bump js-sdk version * cleanup * fix naming * bump solidity-coverage version * fix dead links * Split cfa and ida test files * split CFA and IDA test files into: callback vs non callback and mfa for cfa * consistent file naming
- Loading branch information
1 parent
ca3893e
commit a30d893
Showing
60 changed files
with
9,885 additions
and
8,380 deletions.
There are no files selected for viewing
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,3 +1,10 @@ | ||
{ | ||
"ignorePatterns": ["coverage", "coverage.json", "build", "utils"] | ||
"ignorePatterns": [ | ||
"node_modules", | ||
"build", | ||
"coverage", | ||
"coverage.json", | ||
"typechain-types", | ||
"utils" | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"root": false, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
}, | ||
"env": { | ||
"es6": true | ||
}, | ||
"plugins": ["import", "eslint-comments", "prettier"], | ||
"extends": [ | ||
".eslintrc.json", | ||
"eslint:recommended", | ||
"plugin:eslint-comments/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import/typescript", | ||
"prettier" | ||
], | ||
"rules": { | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-var-requires": "off", | ||
"eslint-comments/disable-enable-pair": [ | ||
"error", | ||
{ | ||
"allowWholeFile": true | ||
} | ||
], | ||
"eslint-comments/no-unused-disable": "error", | ||
"import/order": [ | ||
"error", | ||
{ | ||
"newlines-between": "always", | ||
"alphabetize": { | ||
"order": "asc" | ||
} | ||
} | ||
], | ||
"sort-imports": [ | ||
"error", | ||
{ | ||
"ignoreDeclarationSort": true, | ||
"ignoreCase": true | ||
} | ||
], | ||
"prettier/prettier": "error" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
/artifacts | ||
/cache | ||
/docs/api | ||
/typechain-types |
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
Oops, something went wrong.