batches.ts 802 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 34 35 36
import { NON_ZERO_ADDRESS } from '../constants'
import { ethers } from 'hardhat'

export const DUMMY_BATCH_HEADERS = [
  {
    batchIndex: 0,
    batchRoot: ethers.constants.HashZero,
    batchSize: 0,
    prevTotalElements: 0,
    extraData: ethers.utils.defaultAbiCoder.encode(
      ['uint256', 'address'],
      [ethers.constants.HashZero, NON_ZERO_ADDRESS]
    ),
  },
  {
    batchIndex: 1,
    batchRoot: ethers.constants.HashZero,
    batchSize: 0,
    prevTotalElements: 0,
    extraData: ethers.utils.defaultAbiCoder.encode(
      ['uint256', 'address'],
      [ethers.constants.HashZero, NON_ZERO_ADDRESS]
    ),
  },
]

export const DUMMY_BATCH_PROOFS = [
  {
    index: 0,
    siblings: [ethers.constants.HashZero],
  },
  {
    index: 1,
    siblings: [ethers.constants.HashZero],
  },
]