Add deploying Coordinator contracts to migration script
This commit is contained in:
parent
230ebffd0e
commit
d356e9e65f
@ -183,6 +183,21 @@ export async function runMigrationsAsync(
|
|||||||
await zrxToken.transfer.sendTransactionAsync(forwarder.address, zrxForwarderAmount, txDefaults),
|
await zrxToken.transfer.sendTransactionAsync(forwarder.address, zrxForwarderAmount, txDefaults),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// CoordinatorRegistry
|
||||||
|
const coordinatorRegistry = await wrappers.CoordinatorRegistryContract.deployFrom0xArtifactAsync(
|
||||||
|
artifacts.CoordinatorRegistry,
|
||||||
|
provider,
|
||||||
|
txDefaults,
|
||||||
|
);
|
||||||
|
|
||||||
|
// Coordinator
|
||||||
|
const coordinator = await wrappers.CoordinatorContract.deployFrom0xArtifactAsync(
|
||||||
|
artifacts.Coordinator,
|
||||||
|
provider,
|
||||||
|
txDefaults,
|
||||||
|
exchange.address,
|
||||||
|
);
|
||||||
|
|
||||||
const contractAddresses = {
|
const contractAddresses = {
|
||||||
erc20Proxy: erc20Proxy.address,
|
erc20Proxy: erc20Proxy.address,
|
||||||
erc721Proxy: erc721Proxy.address,
|
erc721Proxy: erc721Proxy.address,
|
||||||
@ -193,6 +208,8 @@ export async function runMigrationsAsync(
|
|||||||
forwarder: forwarder.address,
|
forwarder: forwarder.address,
|
||||||
orderValidator: orderValidator.address,
|
orderValidator: orderValidator.address,
|
||||||
dutchAuction: dutchAuction.address,
|
dutchAuction: dutchAuction.address,
|
||||||
|
coordinatorRegistry: coordinatorRegistry.address,
|
||||||
|
coordinator: coordinator.address,
|
||||||
};
|
};
|
||||||
|
|
||||||
return contractAddresses;
|
return contractAddresses;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user