UNPKG

@btc-vision/transaction

Version:

OPNet transaction library allows you to create and sign transactions for the OPNet network.

25 lines 1.04 kB
import { ABIDataTypes } from './ABIDataTypes.js'; import { AbiType } from './AbiTypes.js'; /** * Type guard: returns true if the ABI type is a tuple (ordered array of types). */ export declare function isAbiTuple(type: AbiType): type is AbiType[]; /** * Type guard: returns true if the ABI type is a struct (named fields). */ export declare function isAbiStruct(type: AbiType): type is { [field: string]: AbiType; }; /** * Type guard: returns true if the ABI type is a simple ABIDataTypes enum value. */ export declare function isSimpleAbiType(type: AbiType): type is ABIDataTypes; /** * Converts a structured AbiType into a canonical selector string. * - Simple: ABIDataTypes.ADDRESS → "address" * - Struct: { a: ADDRESS, b: UINT256 } → "tuple(address,uint256)" (inline, no []) * - Single-element tuple: [UINT256] → "uint256[]" * - Multi-element tuple: [ADDRESS, UINT256] → "tuple(address,uint256)[]" */ export declare function abiTypeToSelectorString(type: AbiType): string; //# sourceMappingURL=TupleUtils.d.ts.map