import { TxField } from "@axiom-crypto/tools"; import { CircuitValue, RawCircuitInput, CircuitValue256 } from "@axiom-crypto/halo2-lib-js"; declare enum SpecialTxFields { Type = 51, BlockNumber = 52, TxIdx = 53, FunctionSelector = 54 } type SpecialTxKeys = Uncapitalize; type SpecialTxKeyFields = { [key in SpecialTxKeys]: () => Promise; }; type TxEnumKeys = Uncapitalize; type TxEnumKeyFields = { [key in TxEnumKeys]: () => Promise; }; 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) => Promise; /** * 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) => Promise; } export declare const buildTx: (blockNumber: CircuitValue, txIdx: CircuitValue) => Readonly; export {}; //# sourceMappingURL=tx.d.ts.map