UNPKG

@ensdomains/unruggable-gateways

Version:

Trustless Ethereum Multichain CCIP-Read Gateway

37 lines (36 loc) 1.19 kB
import { Interface } from 'ethers/abi'; // https://github.com/scroll-tech/scroll/tree/738c85759d0248c005469972a49fc983b031ff1c/contracts/src/L1 // export const VERIFIER_ABI = new Interface([ // `function rollup() view returns (address)`, // `function poseidon() view returns (address)`, // ]); export const ROLLUP_ABI = new Interface([ `function lastFinalizedBatchIndex() view returns (uint256)`, `function finalizedStateRoots(uint256 batchIndex) view returns (bytes32)`, `event FinalizeBatch( uint256 indexed batchIndex, bytes32 indexed batchHash, bytes32 stateRoot, bytes32 withdrawRoot )`, `event CommitBatch( uint256 indexed batchIndex, bytes32 indexed batchHash )`, `function commitBatchWithBlobProof( uint8 version, bytes parentBatchHeader, bytes[] chunks, bytes skippedL1MessageBitmap, bytes blobDataProof )`, `function commitBatch( uint8 version, bytes calldata parentBatchHeader, bytes[] memory chunks, bytes calldata skippedL1MessageBitmap )`, ]); // export const POSEIDON_ABI = new Interface([ // 'function poseidon(uint256[2], uint256) external view returns (bytes32)', // ]);