ribbit-wallet-connect
Version:
Next-generation multi-chain wallet and payments app that makes crypto simple, secure, and usable in daily life.
18 lines (17 loc) • 835 B
TypeScript
import { U8, U16, U32, U64, U128, U256, AccountAddress, TypeTagStruct } from '@aptos-labs/ts-sdk';
/**
* BCS serialization and parsing utilities for dapps.
* These helpers allow dapps to build arguments and type tags
* without importing Aptos SDK types directly.
*/
export declare const BCS: {
bcsSerializeU8: (value: number) => U8;
bcsSerializeU16: (value: number) => U16;
bcsSerializeU32: (value: number) => U32;
bcsSerializeU64: (value: number | string | bigint) => U64;
bcsSerializeU128: (value: number | string | bigint) => U128;
bcsSerializeU256: (value: number | string | bigint) => U256;
bcsSerializeAddress: (address: string) => AccountAddress;
parseTypeTag: (ty: string) => import("@aptos-labs/ts-sdk/dist/common/account-CmEgDBH6").ac;
typeTagStruct: (ty: string) => TypeTagStruct;
};