UNPKG

@mysten/bcs

Version:

BCS - Canonical Binary Serialization implementation for JavaScript

47 lines (46 loc) 891 B
import { toBase58, fromBase58, toBase64, fromBase64, toHex, fromHex } from "@mysten/utils"; import { BcsType, BcsStruct, BcsEnum, BcsTuple, isSerializedBcs, SerializedBcs } from "./bcs-type.js"; import { bcs } from "./bcs.js"; import { BcsReader } from "./reader.js"; import { decodeStr, encodeStr, splitGenericParameters } from "./utils.js"; import { BcsWriter } from "./writer.js"; const toB58 = toBase58; const fromB58 = fromBase58; const toB64 = toBase64; const fromB64 = fromBase64; const toHEX = toHex; const fromHEX = fromHex; export { BcsEnum, BcsReader, BcsStruct, BcsTuple, BcsType, BcsWriter, SerializedBcs, bcs, decodeStr, encodeStr, fromB58, fromB64, fromBase58, fromBase64, fromHEX, fromHex, isSerializedBcs, splitGenericParameters, toB58, toB64, toBase58, toBase64, toHEX, toHex }; //# sourceMappingURL=index.js.map