Skip to content

Conversation

pash7ka
Copy link

@pash7ka pash7ka commented Dec 15, 2019

As mentioned in issue #193 and pull requst #184, with v5.0.0 truffle moved from Web3.js v0.x to v1.x. One of major change in it: use of BN.js instead of bignumber.js.
With this pull request i've introduced typechain-target-truffle-v5 based on @MicahZoltu pr #184.

@coveralls
Copy link

coveralls commented Dec 15, 2019

Coverage Status

Coverage remained the same at 92.523% when pulling 4800418 on pash7ka:bignumber-to-bn into c326f7f on ethereum-ts:master.

Copy link
Member

@krzkaczor krzkaczor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't truffle@5 using web3@1 under the hood? Does it mean it has the same api? Can we somehow reuse the generated types between packages?

@@ -0,0 +1,21 @@
# Typechain target Truffle
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can u add here Truffle@5 or something?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@pash7ka
Copy link
Author

pash7ka commented Dec 18, 2019

Isn't truffle@5 using web3@1 under the hood? Does it mean it has the same api? Can we somehow reuse the generated types between packages?

Yes, they use web3@1 under the hood, but they've created their own wrappers around it.
For example, when deploying a contract they wrap it with TruffleContract. Also they wrap receipt of a call.

@krzkaczor
Copy link
Member

@pash7ka oh, makes sense. I will finish CR today 👍

@krzkaczor krzkaczor changed the base branch from master to kk/truffle-v5 December 27, 2019 19:53
@krzkaczor krzkaczor merged commit f406c18 into dethcrypto:kk/truffle-v5 Dec 27, 2019
@krzkaczor
Copy link
Member

Merged to tmp branch for now - it needs a little bit more work.

Thanks for this @pash7ka @MicahZoltu ! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants