@ensdomains/unruggable-gateways
Version:
Trustless Ethereum Multichain CCIP-Read Gateway
25 lines • 1.19 kB
TypeScript
import { AbstractRollup, type RollupCommit, type RollupDeployment } from '../rollup.js';
import type { HexAddress, HexString, HexString32, ProviderPair, ProofSequence } from '../types.js';
import { Contract } from 'ethers/contract';
import { EthProver } from '../eth/EthProver.js';
export type TaikoConfig = {
TaikoL1: HexAddress;
commitBatchSpan: number;
};
export type TaikoCommit = RollupCommit<EthProver> & {
readonly parentHash: HexString32;
};
export declare class TaikoRollup extends AbstractRollup<TaikoCommit> {
readonly TaikoL1: Contract;
readonly commitStep: bigint;
static readonly mainnetConfig: RollupDeployment<TaikoConfig>;
static readonly heklaConfig: RollupDeployment<TaikoConfig>;
static create(providers: ProviderPair, config: TaikoConfig): Promise<TaikoRollup>;
private constructor();
fetchLatestCommitIndex(): Promise<bigint>;
protected _fetchParentCommitIndex(commit: TaikoCommit): Promise<bigint>;
protected _fetchCommit(index: bigint): Promise<TaikoCommit>;
encodeWitness(commit: TaikoCommit, proofSeq: ProofSequence): HexString;
windowFromSec(sec: number): number;
}
//# sourceMappingURL=TaikoRollup.d.ts.map