aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/deploy
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-20 20:36:55 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-20 21:02:25 +0800
commitd8d15149fcfde98eb0e52e76e8232db90a3b58d6 (patch)
tree4aa4f04180531478771da6d74be735192fce94a2 /packages/contracts/deploy
parentc07de97fd8a0fe3cf3ea15b2b6a02b326875e6de (diff)
downloaddexon-sol-tools-d8d15149fcfde98eb0e52e76e8232db90a3b58d6.tar
dexon-sol-tools-d8d15149fcfde98eb0e52e76e8232db90a3b58d6.tar.gz
dexon-sol-tools-d8d15149fcfde98eb0e52e76e8232db90a3b58d6.tar.bz2
dexon-sol-tools-d8d15149fcfde98eb0e52e76e8232db90a3b58d6.tar.lz
dexon-sol-tools-d8d15149fcfde98eb0e52e76e8232db90a3b58d6.tar.xz
dexon-sol-tools-d8d15149fcfde98eb0e52e76e8232db90a3b58d6.tar.zst
dexon-sol-tools-d8d15149fcfde98eb0e52e76e8232db90a3b58d6.zip
Add WETH9 and mirations
Diffstat (limited to 'packages/contracts/deploy')
-rw-r--r--packages/contracts/deploy/migrations/migrate.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/contracts/deploy/migrations/migrate.ts b/packages/contracts/deploy/migrations/migrate.ts
index e893e6a6f..e2c220f68 100644
--- a/packages/contracts/deploy/migrations/migrate.ts
+++ b/packages/contracts/deploy/migrations/migrate.ts
@@ -20,6 +20,7 @@ export const migrator = {
const tokenTransferProxy = await deployer.deployAndSaveAsync('TokenTransferProxy');
const zrxToken = await deployer.deployAndSaveAsync('ZRXToken');
const etherToken = await deployer.deployAndSaveAsync('EtherToken');
+ const makerEtherToken = await deployer.deployAndSaveAsync('WETH9');
const tokenReg = await deployer.deployAndSaveAsync('TokenRegistry');
const exchangeArgs = [zrxToken.address, tokenTransferProxy.address];
@@ -68,6 +69,18 @@ export const migrator = {
gas: addTokenGasEstimate,
},
);
+ await tokenReg.addToken.sendTransactionAsync(
+ makerEtherToken.address,
+ 'Maker Ether Token',
+ 'WETH9',
+ 18,
+ constants.NULL_BYTES,
+ constants.NULL_BYTES,
+ {
+ from: owner,
+ gas: addTokenGasEstimate,
+ },
+ );
for (const token of tokenInfo) {
const totalSupply = new BigNumber(0);
const args = [