This repository has been archived by the owner on May 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert burrow.js to use idiomatic typescript and switch to ethers.js
library for ABI coding - Provide ABI ContractMeta when deploying contracts (so Burrow ABI registry can be used) - Implement strict types - Add linting - Add and improve unit tests - Totally refactor contract and function to avoid confusing use of binding - Try to handle contract/contract instance distinction better - Simplify convertion between 'burrow'/GRPC types and those expected by ABI coder - Upgrade all dependencies, remove unnecessary direct dependencies - Experiement with using ABI JSON as a type constant to provide types for Contract Signed-off-by: Silas Davis <[email protected]>
- Loading branch information
Silas Davis
committed
May 14, 2021
1 parent
11367d8
commit 672ab89
Showing
170 changed files
with
3,011 additions
and
4,269 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
*.pb.go linguist-generated | ||
*_pb.d.ts linguist-generated | ||
*_pb.js linguist-generated | ||
yarn.lock linguist-generated |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module.exports = { | ||
env: { | ||
es6: true, | ||
node: true, | ||
mocha: true, | ||
}, | ||
extends: ['plugin:@typescript-eslint/recommended'], | ||
globals: { | ||
Atomics: 'readonly', | ||
SharedArrayBuffer: 'readonly', | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
sourceType: 'module', | ||
}, | ||
plugins: ['@typescript-eslint', 'prettier'], | ||
rules: { | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
printWidth: 120, | ||
singleQuote: true, | ||
useTabs: false, | ||
tabWidth: 2, | ||
trailingComma: 'all', | ||
}, | ||
], | ||
'@typescript-eslint/no-namespace': 'off', | ||
curly: 2, | ||
}, | ||
}; |
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.