Define numbers of dummy tokens to deploy in constants
This commit is contained in:
@@ -29,6 +29,8 @@ export const constants = {
|
||||
MAX_TOKEN_APPROVE_GAS: 60000,
|
||||
DUMMY_ERC20_TOKEN_ARGS: [DUMMY_TOKEN_NAME, DUMMY_TOKEN_SYMBOL, DUMMY_TOKEN_DECIMALS, DUMMY_TOKEN_TOTAL_SUPPLY],
|
||||
DUMMY_ERC721_TOKEN_ARGS: [DUMMY_TOKEN_NAME, DUMMY_TOKEN_SYMBOL],
|
||||
NUM_DUMMY_ERC20_TO_DEPLOY: 3,
|
||||
NUM_DUMMY_ERC721_TO_DEPLOY: 1,
|
||||
NUM_ERC721_TOKENS_TO_MINT: 2,
|
||||
TESTRPC_PRIVATE_KEYS: _.map(TESTRPC_PRIVATE_KEYS_STRINGS, privateKeyString => ethUtil.toBuffer(privateKeyString)),
|
||||
INITIAL_ERC20_BALANCE: ZeroEx.toBaseUnitAmount(new BigNumber(10000), 18),
|
||||
|
@@ -24,7 +24,7 @@ export class ERC20Wrapper {
|
||||
}
|
||||
public async deployDummyERC20TokensAsync(): Promise<DummyERC20TokenContract[]> {
|
||||
const tokenContractInstances = await Promise.all(
|
||||
_.map(this._tokenOwnerAddresses, tokenOwnerAddress =>
|
||||
_.map(_.range(constants.NUM_DUMMY_ERC20_TO_DEPLOY), () =>
|
||||
this._deployer.deployAsync(ContractName.DummyERC20Token, constants.DUMMY_ERC20_TOKEN_ARGS),
|
||||
),
|
||||
);
|
||||
|
@@ -26,7 +26,7 @@ export class ERC721Wrapper {
|
||||
}
|
||||
public async deployDummyERC721TokensAsync(): Promise<DummyERC721TokenContract[]> {
|
||||
const tokenContractInstances = await Promise.all(
|
||||
_.map(this._tokenOwnerAddresses, tokenOwnerAddress =>
|
||||
_.map(_.range(constants.NUM_DUMMY_ERC721_TO_DEPLOY), () =>
|
||||
this._deployer.deployAsync(ContractName.DummyERC721Token, constants.DUMMY_ERC721_TOKEN_ARGS),
|
||||
),
|
||||
);
|
||||
|
Reference in New Issue
Block a user