@nori-zk/mina-token-bridge
Version:
Nori ethereum state settelment and nETH token bridge zkApp
16 lines (15 loc) • 701 B
TypeScript
import { type Field } from 'o1js';
import type { NoriTokenBridge } from './NoriTokenBridge.js';
/**
* Fetch the deposit-root actions currently in the contract's active window.
* Reads `windowStart` from on-chain state and fetches actions from that
* action-state hash forward to the current tip.
* Returns a flat array of Field values in dispatch order.
*/
export declare function fetchWindowRoots(bridge: NoriTokenBridge): Promise<Field[]>;
/**
* Fetch ALL dispatched deposit-root actions from genesis.
* Useful for debugging / full history, but prefer `fetchWindowRoots`
* for normal operation.
*/
export declare function fetchAllDispatchedRoots(bridge: NoriTokenBridge): Promise<Field[]>;