import { NULL_BYTES32, NON_ZERO_ADDRESS } from '../constants'
import { ethers } from '@nomiclabs/buidler'
export const DUMMY_BATCH_HEADERS = [
{
batchIndex: 0,
batchRoot: NULL_BYTES32,
batchSize: 0,
prevTotalElements: 0,
extraData: ethers.utils.defaultAbiCoder.encode(
['uint256', 'address'],
[NULL_BYTES32, NON_ZERO_ADDRESS]
),
},
{
batchIndex: 1,
batchRoot: NULL_BYTES32,
batchSize: 0,
prevTotalElements: 0,
extraData: ethers.utils.defaultAbiCoder.encode(
['uint256', 'address'],
[NULL_BYTES32, NON_ZERO_ADDRESS]
),
},
]
export const DUMMY_BATCH_PROOFS = [
{
index: 0,
siblings: [NULL_BYTES32],
},
{
index: 1,
siblings: [NULL_BYTES32],
},
]
-
Georgios Konstantopoulos authored
* feat: allow multiple state transitioners per pre-state root by tx hash * test: specify tx hash when finalizing fraud verification * test: specify tx hash when recording gas spent * test: add test for multiple fraud proofs per stateroot * chore: remove redundant test * fix up test indexing and mock interface Co-authored-by:
ben-chain <ben@pseudonym.party>
49dedea9