@ensdomains/unruggable-gateways
Version:
Trustless Ethereum Multichain CCIP-Read Gateway
40 lines (39 loc) • 1.3 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ROLLUP_ABI = void 0;
const abi_1 = require("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)`,
// ]);
exports.ROLLUP_ABI = new abi_1.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)',
// ]);