@yubing744/rooch-sdk
Version:
48 lines (47 loc) • 1.84 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 multiChainID_exports = {};
__export(multiChainID_exports, {
RoochMultiChainID: () => RoochMultiChainID,
RoochMultiChainIDToString: () => RoochMultiChainIDToString
});
module.exports = __toCommonJS(multiChainID_exports);
var RoochMultiChainID = /* @__PURE__ */ ((RoochMultiChainID2) => {
RoochMultiChainID2[RoochMultiChainID2["Bitcoin"] = 0] = "Bitcoin";
RoochMultiChainID2[RoochMultiChainID2["Ether"] = 60] = "Ether";
RoochMultiChainID2[RoochMultiChainID2["Sui"] = 784] = "Sui";
RoochMultiChainID2[RoochMultiChainID2["Nostr"] = 1237] = "Nostr";
RoochMultiChainID2[RoochMultiChainID2["Rooch"] = 20230101] = "Rooch";
return RoochMultiChainID2;
})(RoochMultiChainID || {});
function RoochMultiChainIDToString(id) {
switch (id) {
case 60 /* Ether */:
return "ether";
case 0 /* Bitcoin */:
return "bitcoin";
case 1237 /* Nostr */:
return "nostr";
case 20230101 /* Rooch */:
return "rooch";
case 784 /* Sui */:
return "sui";
}
}
//# sourceMappingURL=multiChainID.js.map