UNPKG

wowok

Version:

Wowok Blockchain TypeScript API

17 lines (16 loc) 1.3 kB
import { toBase58, fromBase58, toBase64, fromBase64, toHex, fromHex } from "../utils/index.js"; import type { BcsTypeOptions } from "./bcs-type.js"; import { BcsType, BcsStruct, BcsEnum, BcsTuple, isSerializedBcs, SerializedBcs } from "./bcs-type.js"; import { bcs } from "./bcs.js"; import { BcsReader } from "./reader.js"; import type { EnumInputShape, EnumOutputShape, EnumOutputShapeWithKeys, InferBcsInput, InferBcsType } from "./types.js"; import { decodeStr, encodeStr, splitGenericParameters } from "./utils.js"; import type { BcsWriterOptions } from "./writer.js"; import { BcsWriter } from "./writer.js"; export { bcs, BcsType, BcsStruct, BcsEnum, BcsTuple, type BcsTypeOptions, SerializedBcs, isSerializedBcs, toBase58, fromBase58, toBase64, fromBase64, toHex, fromHex, encodeStr, decodeStr, splitGenericParameters, BcsReader, BcsWriter, type BcsWriterOptions, type InferBcsInput, type InferBcsType, type EnumOutputShape, type EnumInputShape, type EnumOutputShapeWithKeys, }; export declare const toB58: (buffer: Uint8Array) => string; export declare const fromB58: (str: string) => Uint8Array<ArrayBuffer>; export declare const toB64: typeof toBase64; export declare const fromB64: typeof fromBase64; export declare const toHEX: typeof toHex; export declare const fromHEX: typeof fromHex;