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

Fork/ethers v5 target #252

Merged
merged 76 commits into from
Aug 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
54cf942
Ignore macOS .DS_Store files from git
zemse Jun 19, 2020
92c8d55
Duplicate ethers v4 directory
zemse Jun 19, 2020
7c58831
Add ethers v5 target to tsconfig reference path
zemse Jun 19, 2020
3b1916c
Rename contract estimate to estimateGas
zemse Jun 19, 2020
ea81db9
Update Arrayish to BytesLike
zemse Jun 19, 2020
b8b0bdf
Update imports from ethers v5
zemse Jun 19, 2020
e383c4d
Replace interface events and function fragments
zemse Jun 19, 2020
3412c1c
Update getDeployTransaction signature
zemse Jun 19, 2020
1eeffb7
Update Contract self return on helper methods
zemse Jun 19, 2020
22b3dbd
Remove index.d.ts static file
zemse Jun 19, 2020
e755f86
Rename Factory file suffix to Contract
zemse Jun 20, 2020
04c0678
Export an existing contract constructor
zemse Jun 20, 2020
8fa1ea7
Fix PayableOverrides if payable constructor
zemse Jun 20, 2020
c759bad
Fix PayableOverrides if payable contract method
zemse Jun 20, 2020
865d89c
Add populateTransaction
zemse Jun 20, 2020
abe4215
Fix functions Result obj (ethers-io/ethers.js#869)
zemse Jun 20, 2020
6805bf4
Add CallOverrides optional param for constant fns
zemse Jun 20, 2020
5eb4631
Fix unused overrides import
zemse Jun 20, 2020
4548a0a
Add index file that exports all contracts
zemse Jun 20, 2020
72553b5
Run yarn test:fix and fix errors
zemse Jun 20, 2020
01954da
Rename to v5
zemse Jun 20, 2020
59e38bd
Rename Contract file suffix back to Factory
zemse Jun 20, 2020
d298842
Remove existing contract constructor
zemse Jun 20, 2020
a34fe8d
Fix ethers constructor too many arguments error
zemse Jun 20, 2020
d281230
Add staticCall (ethers-io/ethers.js#395)
zemse Jun 23, 2020
72e6681
Fix provider import
zemse Jun 23, 2020
8575219
Remove .DS_Store from .gitignore
zemse Jun 23, 2020
1614cb3
Add encodeFunctionData function overloads
zemse Jun 28, 2020
170806b
Add decodeFunctionResult function overloads
zemse Jun 28, 2020
c25f9bf
Add getEvent function overloads
zemse Jun 28, 2020
6c1ed8c
Move GenerateFunctionOptions to functions.ts
zemse Jun 28, 2020
654e976
Add a helper method to push optional imports
zemse Jun 28, 2020
f6ded62
Duplicate ethers v4 tests directory
zemse Jun 28, 2020
79c3fb5
Install ethers v5
zemse Jun 28, 2020
bc554ad
Update types
zemse Jun 28, 2020
4c57d75
Update tests for ethers v5
zemse Jun 28, 2020
7c1d122
Fix bug of empty parameter type
zemse Jun 28, 2020
0ca6e89
Update types
zemse Jun 28, 2020
12141da
Merge pull request #250 from zemse/205-add-ethers-v5-target
krzkaczor Jun 30, 2020
a1de3d1
Recreate locks
krzkaczor Jun 30, 2020
55c2bfc
Add v5 example
krzkaczor Jun 30, 2020
fe72e82
git ignore fix
krzkaczor Jun 30, 2020
68a3750
Update staticCall to callStatic (ethers-io/ethers.js#924)
zemse Jul 3, 2020
1d14466
Merge pull request #253 from zemse/205-add-ethers-v5-target
krzkaczor Jul 3, 2020
8bb29fb
bump version
krzkaczor Jul 4, 2020
a1b93f0
fix: fn types to match ethers api
bradennapier Jul 9, 2020
5111fd3
fix: overloads to work according to spec
bradennapier Jul 9, 2020
c94e4e6
fix: add check to confirm v5 overload not changed
bradennapier Jul 9, 2020
96a56ee
fix: remove undefined expect from the first test
bradennapier Jul 9, 2020
547815a
merge v4 fixes
bradennapier Jul 9, 2020
05349d0
merge v5 fixes
bradennapier Jul 9, 2020
a94719d
feat: combined fixes and features
bradennapier Jul 9, 2020
b28e7d6
Update packages/target-ethers-v5/src/codegen/functions.ts
bradennapier Jul 9, 2020
baa964f
fix: prettier on the suggestion commit
bradennapier Jul 9, 2020
a99ff79
fix: remove ethersv4 changes addidentally added
bradennapier Jul 9, 2020
6905678
fix: remove changes caused by not recompiling types manually
bradennapier Jul 9, 2020
7fc5075
chore: rerun build_and_test
bradennapier Jul 9, 2020
8645b8d
Fix callStatic overrides for non constant fns
zemse Jul 12, 2020
65399af
Merge pull request #254 from bradennapier/fix/ethersv5-fn-types
krzkaczor Jul 16, 2020
20ae6c9
Merge pull request #258 from zemse/205-add-ethers-v5-target
krzkaczor Jul 16, 2020
ecb6d53
Bump version
krzkaczor Jul 16, 2020
a395733
Fix abstract contract filename
zemse Jul 24, 2020
cdf65dc
Regenerate types
zemse Jul 24, 2020
64b468a
Merge pull request #265 from zemse/fix-abstract-export
krzkaczor Jul 26, 2020
5e6d520
Ensure no git changes
krzkaczor Jul 26, 2020
d3dcb5a
Add uncommitted files
krzkaczor Jul 26, 2020
ee1ccf5
Merge pull request #266 from ethereum-ts/kk/ensure-no-git-changes
krzkaczor Jul 26, 2020
3a8727c
Include callStatic while determining imports
zemse Jul 18, 2020
9938391
Run yarn test
zemse Jul 18, 2020
4aa5ff5
Merge pull request #260 from zemse/205-add-ethers-v5-target
krzkaczor Jul 31, 2020
f410e2b
bump
krzkaczor Jul 31, 2020
add7b06
Merge branch 'fork/ethers-v5-target' into combined-prs
bradennapier Aug 2, 2020
db8c531
merge fork-v5 and run tests
bradennapier Aug 2, 2020
14df3f7
Merge branch 'master' into combined-prs
bradennapier Aug 2, 2020
5623f0c
Merge pull request #269 from bradennapier/combined-prs
krzkaczor Aug 2, 2020
3538688
Add readme note about ethers v5
krzkaczor Aug 3, 2020
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
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- run: yarn test
- run: yarn format # do it at the very end because test can generate types (which should be formatted)
- run: yarn check-examples
- run: yarn no-git-changes # ensure that committed types are up to date

workflows:
version: 2
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ examples/truffle-v4/types
examples/truffle-v4/migrations
examples/truffle-v5/types
examples/truffle-v5/migrations
examples/ethers-v4/types
examples/ethers-v5/types
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ You will also need to install a desired target for example `@typechain/ethers-v4
| Package | Version | Description | Examples |
| ------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- | --------------------- | -------------------------------- |
| [`typechain`](/packages/typechain) | [![npm](https://img.shields.io/npm/v/typechain.svg)](https://www.npmjs.com/package/typechain) | Core package | - |
| [`@typechain/ethers-v5`](/packages/target-ethers-v5) | [![npm](https://img.shields.io/npm/v/@typechain/ethers-v5.svg)](https://www.npmjs.com/package/@typechain/ethers-v5) | Ethers ver 5 support | [example](./examples/ethers-v5) |
| [`@typechain/ethers-v4`](/packages/target-ethers-v4) | [![npm](https://img.shields.io/npm/v/@typechain/ethers-v4.svg)](https://www.npmjs.com/package/@typechain/ethers-v4) | Ethers ver 4 support | [example](./examples/ethers-v4) |
| [`@typechain/truffle-v4`](/packages/target-truffle-v4) | [![npm](https://img.shields.io/npm/v/@typechain/truffle-v4.svg)](https://www.npmjs.com/package/@typechain/truffle-v4) | Truffle ver 4 support | [example](./examples/truffle-v4) |
| [`@typechain/truffle-v5`](/packages/target-truffle-v5) | [![npm](https://img.shields.io/npm/v/@typechain/truffle-v5.svg)](https://www.npmjs.com/package/@typechain/truffle-v5) | Truffle ver 5 support | [example](./examples/truffle-v5) |
| [`@typechain/truffle-v4`](/packages/target-truffle-v4) | [![npm](https://img.shields.io/npm/v/@typechain/truffle-v4.svg)](https://www.npmjs.com/package/@typechain/truffle-v4) | Truffle ver 4 support | [example](./examples/truffle-v4) |
| [`@typechain/web3-v1`](/packages/target-web3-v1) | [![npm](https://img.shields.io/npm/v/@typechain/web3-v1.svg)](https://www.npmjs.com/package/@typechain/web3-v1) | Web3 ver 1 support | [example](./examples/web3-v1) |

## Usage
Expand Down Expand Up @@ -101,11 +102,11 @@ That's it! Now, you can simply import typings, check out our examples for more d

## Targets 🎯

### Ethers.js v4
### Ethers.js v4 / v5

Use `ethers-v4` target to generate wrappers for [ethers.js](https://github.com/ethers-io/ethers.js/) lib.

### Truffle v4-v5
### Truffle v4 / v5

Truffle target is great when you use truffle contracts already. Check out
[truffle-typechain-example](https://github.com/ethereum-ts/truffle-typechain-example) for more details. It require
Expand Down
2 changes: 1 addition & 1 deletion examples/ethers-v4/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TypeChain x Web3 v1 example
# TypeChain x Ethers-v4 example

## Running

Expand Down
Loading