aboutsummaryrefslogblamecommitdiffstats
path: root/packages/contracts/src/utils/constants.ts
blob: 09dd656534880c1e5c48442d994d7a648f557850 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                           




                                   
                          
                                     
                     
                           


                                       
                                                                                                             



















                                                                       
  
import * as ethUtil from 'ethereumjs-util';

const DUMMY_TOKEN_NAME = '';
const DUMMY_TOKEN_SYMBOL = '';
const DUMMY_TOKEN_DECIMALS = 18;
const DUMMY_TOKEN_TOTAL_SUPPLY = 0;

export const constants = {
    INVALID_OPCODE: 'invalid opcode',
    REVERT: 'revert',
    TESTRPC_NETWORK_ID: 50,
    MAX_ETHERTOKEN_WITHDRAW_GAS: 43000,
    MAX_TOKEN_TRANSFERFROM_GAS: 80000,
    MAX_TOKEN_APPROVE_GAS: 60000,
    DUMMY_TOKEN_ARGS: [DUMMY_TOKEN_NAME, DUMMY_TOKEN_SYMBOL, DUMMY_TOKEN_DECIMALS, DUMMY_TOKEN_TOTAL_SUPPLY],
    TESTRPC_PORT: 8545,
    TESTRPC_INITIAL_BALANCE_HEX: parseInt('100000000000000000000', 16),
    TESTRPC_ACCOUNTS: [
        {
            balance: this.TESTRPC_INITIAL_BALANCE_HEX,
            secretKey: ethUtil.sha3('secret0'),
        },
        {
            balance: this.TESTRPC_INITIAL_BALANCE_HEX,
            secretKey: ethUtil.sha3('secret1'),
        },
        {
            balance: this.TESTRPC_INITIAL_BALANCE_HEX,
            secretKey: ethUtil.sha3('secret2'),
        },
        {
            balance: this.TESTRPC_INITIAL_BALANCE_HEX,
            secretKey: ethUtil.sha3('secret3'),
        },
    ],
};