Add WETH9 and mirations

This commit is contained in:
Leonid Logvinov
2017-12-20 13:36:55 +01:00
parent c07de97fd8
commit d8d15149fc
2 changed files with 769 additions and 0 deletions

View File

@@ -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 = [