@btc-vision/transaction
Version:
OPNet transaction library allows you to create and sign transactions for the OPNet network.
33 lines (32 loc) • 1.02 kB
TypeScript
export declare enum ABIDataTypes {
UINT8 = "UINT8",
UINT16 = "UINT16",
UINT32 = "UINT32",
UINT64 = "UINT64",
UINT128 = "UINT128",
UINT256 = "UINT256",
INT128 = "INT128",
BOOL = "BOOL",
ADDRESS = "ADDRESS",
STRING = "STRING",
BYTES4 = "BYTES4",
BYTES32 = "BYTES32",
BYTES = "BYTES",
ADDRESS_UINT256_TUPLE = "ADDRESS_UINT256_TUPLE",
ARRAY_OF_ADDRESSES = "ARRAY_OF_ADDRESSES",
ARRAY_OF_UINT256 = "ARRAY_OF_UINT256",
ARRAY_OF_UINT128 = "ARRAY_OF_UINT128",
ARRAY_OF_UINT64 = "ARRAY_OF_UINT64",
ARRAY_OF_UINT32 = "ARRAY_OF_UINT32",
ARRAY_OF_UINT16 = "ARRAY_OF_UINT16",
ARRAY_OF_UINT8 = "ARRAY_OF_UINT8",
ARRAY_OF_STRING = "ARRAY_OF_STRING",
ARRAY_OF_BYTES = "ARRAY_OF_BYTES"
}
export declare class ABICoder {
decodeData(data: Uint8Array, types: ABIDataTypes[]): unknown[];
encodeSelector(selectorIdentifier: string): string;
numericSelectorToHex(selector: number): string;
private bigIntToUint8Array;
private sha256;
}