-
Notifications
You must be signed in to change notification settings - Fork 465
Update 3.0 testnet migrations and addresses #2296
Conversation
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 overall, but I have some nits and questions. I'm going to go ahead and approve though so that you aren't blocked
@@ -42,7 +44,8 @@ const networkToAddresses: { [networkId: number]: ContractAddresses } = { | |||
orderValidator: NULL_ADDRESS, | |||
zrxToken: '0xe41d2489571d322189246dafa5ebde1f4699f498', | |||
etherToken: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', | |||
assetProxyOwner: NULL_ADDRESS, | |||
assetProxyOwner: '0xdffe798c7172dd6deb32baee68af322e8f495ce0', |
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.
Nit: Will this be removed after the full migration?
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.
Yep, this is still needed for the mainnet migrations. We can remove it completely afterwords.
exchange: '0x725bc2f8c85ed0289d3da79cde3125d33fc1d7e6', | ||
assetProxyOwner: '0xdcf20f7b447d51f2b3e5499b7f6cbbf7295a5d26', | ||
exchange: '0xc56388332ddfc98701fefed94535100c6166956c', | ||
assetProxyOwner: NULL_ADDRESS, |
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.
Ditto
}, | ||
3: { | ||
erc20Proxy: '0xb1408f4c245a23c31b98d2c626777d4c0d766caa', | ||
erc721Proxy: '0xe654aac058bfbf9f83fcaee7793311dd82f6ddb4', | ||
zrxToken: '0xff67881f8d12f372d91baae9752eb3631ff0ed00', | ||
etherToken: '0xc778417e063141139fce010982780140aa0cd5ab', | ||
exchangeV2: '0xbff9493f92a3df4b0429b6d00743b3cfb4c85831', | ||
exchange: '0x725bc2f8c85ed0289d3da79cde3125d33fc1d7e6', | ||
assetProxyOwner: '0xdcf20f7b447d51f2b3e5499b7f6cbbf7295a5d26', | ||
exchange: '0xc56388332ddfc98701fefed94535100c6166956c', |
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.
Nit: I think that noting that this exchange is version 3 of the protocol is worth a comment. It might be a bit confusing to the uninitiated that this exchange is really exchangeV3 rather than exchangeV1.
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 think the plan was to remove exchangeV2
after mainnet migrations, but we still need it until then.
@@ -284,6 +284,8 @@ export async function runMigrationsAsync( | |||
exchange: exchange.address, | |||
// TODO (xianny): figure out how to deploy AssetProxyOwnerContract |
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.
Nit: Can this be removed, or are we still waiting for the migration to be updated for the ZeroExGovernor
?
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.
Probably. This file actually doesn't look very up to date. I haven't been modifying it except to get it to build.
logUtils.log('Configuring ZrxVault...'); | ||
await zrxVault.addAuthorizedAddress.awaitTransactionSuccessAsync(governor.address); | ||
await zrxVault.transferOwnership.awaitTransactionSuccessAsync(governor.address); |
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.
Nit: I think we'll still want to add the governor
as an authorized address. A bunch of functions including setStakingProxy
and enterCatastrophicFailureMode
are onlyAuthorized
.
Is there a reason why it shouldn't be authorized?
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.
These were moved inside the ZeroExGovernor
functionCalls
array to keep all of the configurations in one place. Doesn't really matter which we end up doing
logUtils.log('ZrxVault configured!'); | ||
|
||
logUtils.log('Configuring StakingProxy...'); | ||
await stakingProxy.addAuthorizedAddress.awaitTransactionSuccessAsync(governor.address); | ||
await stakingProxy.transferOwnership.awaitTransactionSuccessAsync(governor.address); |
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.
Ditto
af26093
to
ae54b98
Compare
ae54b98
to
77fa97f
Compare
Description
contract-addresses
with new testnet addresses and a new schemaTesting instructions
Types of changes
Checklist:
[WIP]
if necessary.