-
Notifications
You must be signed in to change notification settings - Fork 22
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
Refactor and deprecate ChainSetup and setup helpers #62
Conversation
f21c05d
to
528a4e1
Compare
a82d1f0
to
f7f0c11
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very promising ✨ Still some way to go, though.
Almost all JSDocs are missing 😞
I did a quick scan, I like the approach 👍. I will go through this again once it is completed. |
b9cb47d
to
2e480b3
Compare
ab1c998
to
459078a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good to me: 👍
I just have few comments in general
- The
txOptions
are not used in the RawTx methods. - The errors do not include the value (@schemar do we need this in PR? or can a ticket will do for later change?).
- Maybe we should move the static methods to be end of the class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😳 big one. Good work 💪
I still have some questions.
Are the setup helpers changes backwards compatible?
Why do the integration tests still use the helpers, when we can use the contract interacts now to setup the contracts? Wasn't that the plan?
I don't know. Depends on the effort.
|
-> #99 |
ab001c1
to
4e3b744
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. 🚴🚴🚴🚴🚴
I have added few small comments. Either we can fix if its small or create can create a followup ticket. 👍
1.Validations of txOptions
and txOptions.from
is missing for all the deploy methods.
2.Unit tests for the following is missing, maybe we can create a followup ticket.
Anchor:
- setCoAnchorAddress
- setCoAnchorAddressRawTx
EIP20Gateway:
- getStakeVault
- activateGateway
- activateGatewayRawTx
OSTPrime:
- initialize
- initializeRawTx
- setCoGateway
- setCoGatewayRawTx
3.All the integration tests of new code is in old helper files, that confused me alot.
shared.origin.addresses.Organization = subject.address; | ||
}); | ||
|
||
return Organization.setup(shared.origin.web3, _orgConfig).then( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is difference in this test and after()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
origin
and auxiliary
. In after
, we deploy an Organization on auxiliary
to be used by later tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a comment will be helpful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a comment to the after
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎢 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only two small open points ✨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FIXES #58 and starts deprecation of ChainSetup as per #57