@mysten/sui
Version:
Sui TypeScript API(Work in Progress)
78 lines (77 loc) • 3.12 kB
JavaScript
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var bcs_exports = {};
__export(bcs_exports, {
BcsType: () => import_bcs3.BcsType,
TypeTagSerializer: () => import_type_tag_serializer.TypeTagSerializer,
bcs: () => suiBcs,
pureBcsSchemaFromTypeName: () => import_pure.pureBcsSchemaFromTypeName
});
module.exports = __toCommonJS(bcs_exports);
var import_bcs = require("@mysten/bcs");
var import_bcs2 = require("./bcs.js");
var import_effects = require("./effects.js");
var import_type_tag_serializer = require("./type-tag-serializer.js");
var import_bcs3 = require("@mysten/bcs");
var import_pure = require("./pure.js");
const suiBcs = {
...import_bcs.bcs,
U8: import_bcs.bcs.u8(),
U16: import_bcs.bcs.u16(),
U32: import_bcs.bcs.u32(),
U64: import_bcs.bcs.u64(),
U128: import_bcs.bcs.u128(),
U256: import_bcs.bcs.u256(),
ULEB128: import_bcs.bcs.uleb128(),
Bool: import_bcs.bcs.bool(),
String: import_bcs.bcs.string(),
Address: import_bcs2.Address,
AppId: import_bcs2.AppId,
Argument: import_bcs2.Argument,
CallArg: import_bcs2.CallArg,
Command: import_bcs2.Command,
CompressedSignature: import_bcs2.CompressedSignature,
GasData: import_bcs2.GasData,
Intent: import_bcs2.Intent,
IntentMessage: import_bcs2.IntentMessage,
IntentScope: import_bcs2.IntentScope,
IntentVersion: import_bcs2.IntentVersion,
MultiSig: import_bcs2.MultiSig,
MultiSigPkMap: import_bcs2.MultiSigPkMap,
MultiSigPublicKey: import_bcs2.MultiSigPublicKey,
ObjectArg: import_bcs2.ObjectArg,
ObjectDigest: import_bcs2.ObjectDigest,
Owner: import_bcs2.Owner,
PasskeyAuthenticator: import_bcs2.PasskeyAuthenticator,
ProgrammableMoveCall: import_bcs2.ProgrammableMoveCall,
ProgrammableTransaction: import_bcs2.ProgrammableTransaction,
PublicKey: import_bcs2.PublicKey,
SenderSignedData: import_bcs2.SenderSignedData,
SenderSignedTransaction: import_bcs2.SenderSignedTransaction,
SharedObjectRef: import_bcs2.SharedObjectRef,
StructTag: import_bcs2.StructTag,
SuiObjectRef: import_bcs2.SuiObjectRef,
TransactionData: import_bcs2.TransactionData,
TransactionDataV1: import_bcs2.TransactionDataV1,
TransactionEffects: import_effects.TransactionEffects,
TransactionExpiration: import_bcs2.TransactionExpiration,
TransactionKind: import_bcs2.TransactionKind,
TypeTag: import_bcs2.TypeTag
};
//# sourceMappingURL=index.js.map
;