accounts.ts 848 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
/* External Imports */
import { BigNumber, constants } from 'ethers'

/* Internal Imports */
import { DUMMY_BYTES32 } from './bytes32'
import { NON_ZERO_ADDRESS } from '../constants'
import { OVMAccount } from '../types/ovm-types'

export const DUMMY_ACCOUNTS: Array<{
  address: string
  data: OVMAccount
}> = [
  {
    address: '0x1212121212121212121212121212121212121212',
    data: {
      nonce: BigNumber.from(123),
      balance: BigNumber.from(456),
      storageRoot: DUMMY_BYTES32[0],
      codeHash: DUMMY_BYTES32[1],
      ethAddress: constants.AddressZero,
    },
  },
  {
    address: '0x2121212121212121212121212121212121212121',
    data: {
      nonce: BigNumber.from(321),
      balance: BigNumber.from(654),
      storageRoot: DUMMY_BYTES32[2],
      codeHash: DUMMY_BYTES32[3],
      ethAddress: NON_ZERO_ADDRESS,
    },
  },
]