import { TxField, TxSubquery } from "@axiom-crypto/tools"; import { CircuitValue, RawCircuitInput, CircuitValue256 } from "@axiom-crypto/halo2-lib-js"; import { Halo2LibWasm } from "@axiom-crypto/halo2-lib-js/wasm/web"; import { PrepData } from "./utils"; declare enum SpecialTxFields { Type = 51, BlockNumber = 52, TxIdx = 53, FunctionSelector = 54 } type SpecialTxKeys = Uncapitalize; type SpecialTxKeyFields = { [key in SpecialTxKeys]: () => CircuitValue256; }; type TxEnumKeys = Uncapitalize; type TxEnumKeyFields = { [key in TxEnumKeys]: () => CircuitValue256; }; interface BaseTx extends TxEnumKeyFields { } interface SpecialTx extends SpecialTxKeyFields { } export interface Tx extends BaseTx, SpecialTx { /** * Retrieves a 32 byte chunk of the transaction calldata. * * @param calldataIdx - The index of the 32 byte chunk * @returns A `CircuitValue256` in representing the 32 byte chunk of the tx calldata. */ calldata: (calldataIdx: CircuitValue | RawCircuitInput) => CircuitValue256; /** * Retrieves a 32 byte chunk of a contract deployment's transaction data. * * @param contractDataIdx - The index of the 32 byte chunk * @returns A `CircuitValue256` in representing the 32 byte chunk of the contract deploy data. */ contractData: (contractDataIdx: CircuitValue | RawCircuitInput) => CircuitValue256; } export declare const buildTx: (blockNumber: CircuitValue, txIdx: CircuitValue, halo2Lib: Halo2LibWasm, prepData: PrepData) => Readonly; export {}; //# sourceMappingURL=tx.d.ts.map