-
Notifications
You must be signed in to change notification settings - Fork 97
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
Migration scripts #191
Migration scripts #191
Conversation
const oracle = await Oracle.deployed() | ||
await addressbook.setOracle(oracle.address, {from: deployerAddress}) |
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 about the usdc, compound and ETH pricers?
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.
those need to be deployed, dispute + locking period set right?
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.
We should make some script to do any call like setting dispute period, adding pricer...etc as they are not mainly part of deployment.
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.
okay, do you want to open an issue for that?
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.
Already opened one #187
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 good, but why do we need to separate mainnet and rinkeby in both scripts? Aren't they the same?
await whitelist.transferOwnership(newOwner, {from: deployerAddress}) | ||
await oracle.transferOwnership(newOwner, {from: deployerAddress}) | ||
await pool.transferOwnership(newOwner, {from: deployerAddress}) | ||
await controller.transferOwnership(newOwner, {from: deployerAddress}) |
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.
where does the setup of the emergnecy shutdown terminator and other access controls happen?
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.
Yeah same we should have a web3js script or a truffle script to setup that.
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.
okay, want to open an issue for that?
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.
Yeah for now they are the same, kept them separate for easier maintenance/update. |
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 awesome! Hyped to get it up on testnet! left a couple of comments :D
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! :D
* add naked call tests * add awaits * Migration scripts (#191) * init migration script * migration script * fix build * add naked call tests * add awaits * move test to a before setup * add naked call tests * add awaits * move test to a before setup * add naked call tests * add awaits * Update test/integration-tests/nakedCallExpireOtm.test.ts Co-authored-by: Anton Cheng <[email protected]> * remove unspecified revert Co-authored-by: Haythem Sellami <[email protected]> Co-authored-by: Anton Cheng <[email protected]>
Migration scripts
High Level Description
This PR add migration script for Mainnet and Rinkeby network.
Code
Documentation