@suilend/springsui-cli 1.0.9 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/cli/src/bytecode.d.ts +1 -0
  2. package/cli/src/bytecode.js +111 -0
  3. package/package.json +1 -1
  4. package/sdk/src/_generated/_dependencies/source/0x1/ascii/structs.d.ts +3 -3
  5. package/sdk/src/_generated/_dependencies/source/0x1/ascii/structs.js +4 -4
  6. package/sdk/src/_generated/_dependencies/source/0x1/index.d.ts +1 -1
  7. package/sdk/src/_generated/_dependencies/source/0x1/index.js +2 -2
  8. package/sdk/src/_generated/_dependencies/source/0x1/option/structs.d.ts +2 -2
  9. package/sdk/src/_generated/_dependencies/source/0x1/option/structs.js +2 -2
  10. package/sdk/src/_generated/_dependencies/source/0x1/string/structs.d.ts +2 -2
  11. package/sdk/src/_generated/_dependencies/source/0x1/string/structs.js +2 -2
  12. package/sdk/src/_generated/_dependencies/source/0x1/type-name/structs.d.ts +2 -2
  13. package/sdk/src/_generated/_dependencies/source/0x1/type-name/structs.js +2 -2
  14. package/sdk/src/_generated/_dependencies/source/0x2/bag/structs.d.ts +2 -2
  15. package/sdk/src/_generated/_dependencies/source/0x2/bag/structs.js +2 -2
  16. package/sdk/src/_generated/_dependencies/source/0x2/balance/structs.d.ts +3 -3
  17. package/sdk/src/_generated/_dependencies/source/0x2/balance/structs.js +4 -4
  18. package/sdk/src/_generated/_dependencies/source/0x2/coin/structs.d.ts +8 -8
  19. package/sdk/src/_generated/_dependencies/source/0x2/coin/structs.js +14 -14
  20. package/sdk/src/_generated/_dependencies/source/0x2/index.d.ts +1 -1
  21. package/sdk/src/_generated/_dependencies/source/0x2/index.js +2 -2
  22. package/sdk/src/_generated/_dependencies/source/0x2/object/structs.d.ts +3 -3
  23. package/sdk/src/_generated/_dependencies/source/0x2/object/structs.js +4 -4
  24. package/sdk/src/_generated/_dependencies/source/0x2/sui/structs.d.ts +2 -2
  25. package/sdk/src/_generated/_dependencies/source/0x2/sui/structs.js +2 -2
  26. package/sdk/src/_generated/_dependencies/source/0x2/table/structs.d.ts +2 -2
  27. package/sdk/src/_generated/_dependencies/source/0x2/table/structs.js +2 -2
  28. package/sdk/src/_generated/_dependencies/source/0x2/url/structs.d.ts +2 -2
  29. package/sdk/src/_generated/_dependencies/source/0x2/url/structs.js +2 -2
  30. package/sdk/src/_generated/_dependencies/source/0x2/vec-map/structs.d.ts +3 -3
  31. package/sdk/src/_generated/_dependencies/source/0x2/vec-map/structs.js +4 -4
  32. package/sdk/src/_generated/_dependencies/source/0x3/index.d.ts +1 -1
  33. package/sdk/src/_generated/_dependencies/source/0x3/index.js +2 -2
  34. package/sdk/src/_generated/_dependencies/source/0x3/staking-pool/structs.d.ts +7 -7
  35. package/sdk/src/_generated/_dependencies/source/0x3/staking-pool/structs.js +12 -12
  36. package/sdk/src/_generated/liquid_staking/index.d.ts +1 -0
  37. package/sdk/src/_generated/liquid_staking/index.js +2 -1
  38. package/sdk/src/_generated/liquid_staking/liquid-staking/functions.d.ts +1 -1
  39. package/sdk/src/_generated/liquid_staking/liquid-staking/functions.js +8 -8
  40. package/sdk/src/_generated/liquid_staking/weight/functions.d.ts +7 -0
  41. package/sdk/src/_generated/liquid_staking/weight/functions.js +19 -0
  42. package/sdk/src/_generated/liquid_staking/weight/structs.d.ts +125 -2
  43. package/sdk/src/_generated/liquid_staking/weight/structs.js +296 -30
  44. package/sdk/src/client.d.ts +7 -0
  45. package/sdk/src/client.js +50 -10
  46. package/sdk/src/lib/index.d.ts +0 -2
  47. package/sdk/src/lib/index.js +0 -2
  48. package/sdk/src/lib/coinType.d.ts +0 -4
  49. package/sdk/src/lib/coinType.js +0 -11
  50. package/sdk/src/lib/lsts.d.ts +0 -13
  51. package/sdk/src/lib/lsts.js +0 -62
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const assert_1 = __importDefault(require("assert"));
16
+ const bcs_1 = require("@mysten/bcs");
17
+ const move_bytecode_template_1 = require("@mysten/move-bytecode-template");
18
+ const move_bytecode_template_2 = __importDefault(require("@mysten/move-bytecode-template"));
19
+ const client_1 = require("@mysten/sui/client");
20
+ const ed25519_1 = require("@mysten/sui/keypairs/ed25519");
21
+ const transactions_1 = require("@mysten/sui/transactions");
22
+ const utils_1 = require("@mysten/sui/utils");
23
+ const springsui_sdk_1 = require("@suilend/springsui-sdk");
24
+ // import url from "@mysten/move-bytecode-template/move_bytecode_template_bg.wasm?url";
25
+ const keypair = ed25519_1.Ed25519Keypair.fromSecretKey((0, utils_1.fromBase64)(process.env.SUI_SECRET_KEY));
26
+ function generate_bytecode(lst_type, // eg K_SUI
27
+ module_name, // eg ksui
28
+ symbol, // eg sSUI
29
+ name, // eg Spring SUI
30
+ description, // eg Spring SUI is a liquid staking protocol on Sui
31
+ img_url) {
32
+ const bytecode = Buffer.from("oRzrCwYAAAAKAQAMAgweAyonBFEIBVlMB6UBywEI8AJgBtADXQqtBAUMsgQoABABCwIGAhECEgITAAICAAEBBwEAAAIADAEAAQIDDAEAAQQEAgAFBQcAAAkAAQABDwUGAQACBwgJAQIDDAUBAQwDDQ0BAQwEDgoLAAUKAwQAAQQCBwQMAwICCAAHCAQAAQsCAQgAAQoCAQgFAQkAAQsBAQkAAQgABwkAAgoCCgIKAgsBAQgFBwgEAgsDAQkACwIBCQABBggEAQUBCwMBCAACCQAFDENvaW5NZXRhZGF0YQZPcHRpb24IVEVNUExBVEULVHJlYXN1cnlDYXAJVHhDb250ZXh0A1VybARjb2luD2NyZWF0ZV9jdXJyZW5jeQtkdW1teV9maWVsZARpbml0FW5ld191bnNhZmVfZnJvbV9ieXRlcwZvcHRpb24TcHVibGljX3NoYXJlX29iamVjdA9wdWJsaWNfdHJhbnNmZXIGc2VuZGVyBHNvbWUIdGVtcGxhdGUIdHJhbnNmZXIKdHhfY29udGV4dAN1cmwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAQkKAgUEVE1QTAoCDg1UZW1wbGF0ZSBDb2luCgIaGVRlbXBsYXRlIENvaW4gRGVzY3JpcHRpb24KAiEgaHR0cHM6Ly9leGFtcGxlLmNvbS90ZW1wbGF0ZS5wbmcAAgEIAQAAAAACEgsABwAHAQcCBwMHBBEGOAAKATgBDAILAS4RBTgCCwI4AwIA=", "base64");
33
+ let updated = (0, move_bytecode_template_1.update_identifiers)(bytecode, {
34
+ TEMPLATE: lst_type,
35
+ template: module_name,
36
+ });
37
+ updated = (0, move_bytecode_template_1.update_constants)(updated, bcs_1.bcs.string().serialize(symbol).toBytes(), bcs_1.bcs.string().serialize("TMPL").toBytes(), "Vector(U8)" // type of the constant
38
+ );
39
+ updated = (0, move_bytecode_template_1.update_constants)(updated, bcs_1.bcs.string().serialize(name).toBytes(), // new value
40
+ bcs_1.bcs.string().serialize("Template Coin").toBytes(), // current value
41
+ "Vector(U8)" // type of the constant
42
+ );
43
+ updated = (0, move_bytecode_template_1.update_constants)(updated, bcs_1.bcs.string().serialize(description).toBytes(), // new value
44
+ bcs_1.bcs.string().serialize("Template Coin Description").toBytes(), // current value
45
+ "Vector(U8)" // type of the constant
46
+ );
47
+ updated = (0, move_bytecode_template_1.update_constants)(updated, bcs_1.bcs.string().serialize(img_url).toBytes(), // new value
48
+ bcs_1.bcs.string().serialize("https://example.com/template.png").toBytes(), // current value
49
+ "Vector(U8)" // type of the constant
50
+ );
51
+ return updated;
52
+ }
53
+ function main() {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ var _a;
56
+ const client = new client_1.SuiClient({ url: "https://fullnode.mainnet.sui.io" });
57
+ console.log("asdf");
58
+ yield (0, move_bytecode_template_2.default)();
59
+ const bytecode = generate_bytecode("RIPLEYS_SUI", "ripleys_sui", "rSui", "Ripleys Staked Sui", "Ripleys Staked Sui is a liquid staking protocol on Sui", "https://example.com/ripleys.png");
60
+ // Step 1: Create the coin
61
+ const tx = new transactions_1.Transaction();
62
+ const [upgradeCap] = tx.publish({
63
+ modules: [[...bytecode]],
64
+ dependencies: [(0, utils_1.normalizeSuiAddress)("0x1"), (0, utils_1.normalizeSuiAddress)("0x2")],
65
+ });
66
+ tx.transferObjects([upgradeCap], tx.pure.address(keypair.toSuiAddress()));
67
+ const txResponse = yield client.signAndExecuteTransaction({
68
+ transaction: tx,
69
+ signer: keypair,
70
+ options: {
71
+ showEvents: true,
72
+ showEffects: true,
73
+ showObjectChanges: true,
74
+ },
75
+ });
76
+ console.log(txResponse);
77
+ // Step 2: Get the treasury Cap id from the transaction
78
+ const treasuryCapObjectChange = (_a = txResponse.objectChanges) === null || _a === void 0 ? void 0 : _a.find((change) => change.type === "created" && change.objectType.includes("TreasuryCap"));
79
+ (0, assert_1.default)((treasuryCapObjectChange === null || treasuryCapObjectChange === void 0 ? void 0 : treasuryCapObjectChange.type) === "created");
80
+ const treasuryCapId = treasuryCapObjectChange === null || treasuryCapObjectChange === void 0 ? void 0 : treasuryCapObjectChange.objectId;
81
+ const coinType = treasuryCapObjectChange === null || treasuryCapObjectChange === void 0 ? void 0 : treasuryCapObjectChange.objectType.split("<")[1].split(">")[0];
82
+ console.log(coinType);
83
+ console.log(treasuryCapId);
84
+ // wait until the sui rpc recognizes the treasuryCapId
85
+ while (true) {
86
+ const object = yield client.getObject({ id: treasuryCapId });
87
+ if (object.error) {
88
+ console.log("waiting for sui rpc to recognize the treasuryCapId");
89
+ yield new Promise((resolve) => setTimeout(resolve, 1000));
90
+ }
91
+ else {
92
+ break;
93
+ }
94
+ }
95
+ // Step 3: Create the lst
96
+ const tx2 = new transactions_1.Transaction();
97
+ const weightHookAdminCap = springsui_sdk_1.LstClient.createNewLst(tx2, treasuryCapId, coinType);
98
+ tx2.transferObjects([tx2.object(weightHookAdminCap)], keypair.toSuiAddress());
99
+ const txResponse2 = yield client.signAndExecuteTransaction({
100
+ transaction: tx2,
101
+ signer: keypair,
102
+ options: {
103
+ showEvents: true,
104
+ showEffects: true,
105
+ showObjectChanges: true,
106
+ },
107
+ });
108
+ console.log(txResponse2);
109
+ });
110
+ }
111
+ main();
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@suilend/springsui-cli","version":"1.0.9","private":false,"description":"A CLI for interacting with the SpringSui program","author":"Suilend","license":"MIT","main":"./index.js","exports":{".":"./index.js","./cli/src":"./cli/src/index.js","./sdk/src/client":"./sdk/src/client.js","./sdk/src":"./sdk/src/index.js","./sdk/src/lib/coinType":"./sdk/src/lib/coinType.js","./sdk/src/lib":"./sdk/src/lib/index.js","./sdk/src/lib/lsts":"./sdk/src/lib/lsts.js","./sdk/src/lib/transactions":"./sdk/src/lib/transactions.js","./sdk/src/_generated/_framework/reified":"./sdk/src/_generated/_framework/reified.js","./sdk/src/_generated/_framework/util":"./sdk/src/_generated/_framework/util.js","./sdk/src/_generated/_framework/vector":"./sdk/src/_generated/_framework/vector.js","./sdk/src/_generated/liquid_staking":"./sdk/src/_generated/liquid_staking/index.js","./sdk/src/_generated/liquid_staking/cell/structs":"./sdk/src/_generated/liquid_staking/cell/structs.js","./sdk/src/_generated/liquid_staking/fees/functions":"./sdk/src/_generated/liquid_staking/fees/functions.js","./sdk/src/_generated/liquid_staking/fees/structs":"./sdk/src/_generated/liquid_staking/fees/structs.js","./sdk/src/_generated/liquid_staking/liquid-staking/functions":"./sdk/src/_generated/liquid_staking/liquid-staking/functions.js","./sdk/src/_generated/liquid_staking/liquid-staking/structs":"./sdk/src/_generated/liquid_staking/liquid-staking/structs.js","./sdk/src/_generated/liquid_staking/storage/structs":"./sdk/src/_generated/liquid_staking/storage/structs.js","./sdk/src/_generated/liquid_staking/version/structs":"./sdk/src/_generated/liquid_staking/version/structs.js","./sdk/src/_generated/liquid_staking/weight/functions":"./sdk/src/_generated/liquid_staking/weight/functions.js","./sdk/src/_generated/liquid_staking/weight/structs":"./sdk/src/_generated/liquid_staking/weight/structs.js","./sdk/src/_generated/_dependencies/source/0x1":"./sdk/src/_generated/_dependencies/source/0x1/index.js","./sdk/src/_generated/_dependencies/source/0x2":"./sdk/src/_generated/_dependencies/source/0x2/index.js","./sdk/src/_generated/_dependencies/source/0x3":"./sdk/src/_generated/_dependencies/source/0x3/index.js","./sdk/src/_generated/_dependencies/source/0x1/ascii/structs":"./sdk/src/_generated/_dependencies/source/0x1/ascii/structs.js","./sdk/src/_generated/_dependencies/source/0x1/option/structs":"./sdk/src/_generated/_dependencies/source/0x1/option/structs.js","./sdk/src/_generated/_dependencies/source/0x1/string/structs":"./sdk/src/_generated/_dependencies/source/0x1/string/structs.js","./sdk/src/_generated/_dependencies/source/0x1/type-name/structs":"./sdk/src/_generated/_dependencies/source/0x1/type-name/structs.js","./sdk/src/_generated/_dependencies/source/0x2/bag/structs":"./sdk/src/_generated/_dependencies/source/0x2/bag/structs.js","./sdk/src/_generated/_dependencies/source/0x2/balance/structs":"./sdk/src/_generated/_dependencies/source/0x2/balance/structs.js","./sdk/src/_generated/_dependencies/source/0x2/coin/structs":"./sdk/src/_generated/_dependencies/source/0x2/coin/structs.js","./sdk/src/_generated/_dependencies/source/0x2/object/structs":"./sdk/src/_generated/_dependencies/source/0x2/object/structs.js","./sdk/src/_generated/_dependencies/source/0x2/sui/structs":"./sdk/src/_generated/_dependencies/source/0x2/sui/structs.js","./sdk/src/_generated/_dependencies/source/0x2/table/structs":"./sdk/src/_generated/_dependencies/source/0x2/table/structs.js","./sdk/src/_generated/_dependencies/source/0x2/url/structs":"./sdk/src/_generated/_dependencies/source/0x2/url/structs.js","./sdk/src/_generated/_dependencies/source/0x2/vec-map/structs":"./sdk/src/_generated/_dependencies/source/0x2/vec-map/structs.js","./sdk/src/_generated/_dependencies/source/0x3/staking-pool/structs":"./sdk/src/_generated/_dependencies/source/0x3/staking-pool/structs.js"},"types":"./index.js","scripts":{"build":"rm -rf ./dist && bun tsc","eslint":"eslint --fix \"./src/**/*.ts\"","prettier":"prettier --write \"./src/**/*\"","lint":"bun eslint && bun prettier && bun tsc --noEmit","release":"bun run build && bun ts-node ./release.ts && cd ./dist && npm publish --access public"},"repository":{"type":"git","url":"git+https://github.com/solendprotocol/liquid-staking.git"},"bugs":{"url":"https://github.com/solendprotocol/liquid-staking/issues"},"dependencies":{"commander":"^12.1.0"},"devDependencies":{"ts-node":"^10.9.2"},"peerDependencies":{"@mysten/bcs":"1.2.1","@mysten/sui":"1.20.0"}}
1
+ {"name":"@suilend/springsui-cli","version":"1.0.11","private":false,"description":"A CLI for interacting with the SpringSui program","author":"Suilend","license":"MIT","main":"./index.js","exports":{".":"./index.js","./cli/src/bytecode":"./cli/src/bytecode.js","./cli/src":"./cli/src/index.js","./sdk/src/client":"./sdk/src/client.js","./sdk/src":"./sdk/src/index.js","./sdk/src/lib":"./sdk/src/lib/index.js","./sdk/src/lib/transactions":"./sdk/src/lib/transactions.js","./sdk/src/_generated/_framework/reified":"./sdk/src/_generated/_framework/reified.js","./sdk/src/_generated/_framework/util":"./sdk/src/_generated/_framework/util.js","./sdk/src/_generated/_framework/vector":"./sdk/src/_generated/_framework/vector.js","./sdk/src/_generated/liquid_staking":"./sdk/src/_generated/liquid_staking/index.js","./sdk/src/_generated/liquid_staking/cell/structs":"./sdk/src/_generated/liquid_staking/cell/structs.js","./sdk/src/_generated/liquid_staking/fees/functions":"./sdk/src/_generated/liquid_staking/fees/functions.js","./sdk/src/_generated/liquid_staking/fees/structs":"./sdk/src/_generated/liquid_staking/fees/structs.js","./sdk/src/_generated/liquid_staking/liquid-staking/functions":"./sdk/src/_generated/liquid_staking/liquid-staking/functions.js","./sdk/src/_generated/liquid_staking/liquid-staking/structs":"./sdk/src/_generated/liquid_staking/liquid-staking/structs.js","./sdk/src/_generated/liquid_staking/storage/structs":"./sdk/src/_generated/liquid_staking/storage/structs.js","./sdk/src/_generated/liquid_staking/version/structs":"./sdk/src/_generated/liquid_staking/version/structs.js","./sdk/src/_generated/liquid_staking/weight/functions":"./sdk/src/_generated/liquid_staking/weight/functions.js","./sdk/src/_generated/liquid_staking/weight/structs":"./sdk/src/_generated/liquid_staking/weight/structs.js","./sdk/src/_generated/_dependencies/source/0x1":"./sdk/src/_generated/_dependencies/source/0x1/index.js","./sdk/src/_generated/_dependencies/source/0x2":"./sdk/src/_generated/_dependencies/source/0x2/index.js","./sdk/src/_generated/_dependencies/source/0x3":"./sdk/src/_generated/_dependencies/source/0x3/index.js","./sdk/src/_generated/_dependencies/source/0x1/ascii/structs":"./sdk/src/_generated/_dependencies/source/0x1/ascii/structs.js","./sdk/src/_generated/_dependencies/source/0x1/option/structs":"./sdk/src/_generated/_dependencies/source/0x1/option/structs.js","./sdk/src/_generated/_dependencies/source/0x1/string/structs":"./sdk/src/_generated/_dependencies/source/0x1/string/structs.js","./sdk/src/_generated/_dependencies/source/0x1/type-name/structs":"./sdk/src/_generated/_dependencies/source/0x1/type-name/structs.js","./sdk/src/_generated/_dependencies/source/0x2/bag/structs":"./sdk/src/_generated/_dependencies/source/0x2/bag/structs.js","./sdk/src/_generated/_dependencies/source/0x2/balance/structs":"./sdk/src/_generated/_dependencies/source/0x2/balance/structs.js","./sdk/src/_generated/_dependencies/source/0x2/coin/structs":"./sdk/src/_generated/_dependencies/source/0x2/coin/structs.js","./sdk/src/_generated/_dependencies/source/0x2/object/structs":"./sdk/src/_generated/_dependencies/source/0x2/object/structs.js","./sdk/src/_generated/_dependencies/source/0x2/sui/structs":"./sdk/src/_generated/_dependencies/source/0x2/sui/structs.js","./sdk/src/_generated/_dependencies/source/0x2/table/structs":"./sdk/src/_generated/_dependencies/source/0x2/table/structs.js","./sdk/src/_generated/_dependencies/source/0x2/url/structs":"./sdk/src/_generated/_dependencies/source/0x2/url/structs.js","./sdk/src/_generated/_dependencies/source/0x2/vec-map/structs":"./sdk/src/_generated/_dependencies/source/0x2/vec-map/structs.js","./sdk/src/_generated/_dependencies/source/0x3/staking-pool/structs":"./sdk/src/_generated/_dependencies/source/0x3/staking-pool/structs.js"},"types":"./index.js","scripts":{"build":"rm -rf ./dist && bun tsc","eslint":"eslint --fix \"./src/**/*.ts\"","prettier":"prettier --write \"./src/**/*\"","lint":"bun eslint && bun prettier && bun tsc --noEmit","release":"bun run build && bun ts-node ./release.ts && cd ./dist && npm publish --access public"},"repository":{"type":"git","url":"git+https://github.com/solendprotocol/liquid-staking.git"},"bugs":{"url":"https://github.com/solendprotocol/liquid-staking/issues"},"dependencies":{"commander":"^12.1.0","@mysten/move-bytecode-template":"0.1.0"},"devDependencies":{"ts-node":"^10.9.2"},"peerDependencies":{"@mysten/bcs":"1.6.0","@mysten/sui":"1.28.2"}}
@@ -2,7 +2,7 @@ import * as reified from "../../../../_framework/reified";
2
2
  import { PhantomReified, Reified, StructClass, ToField, ToTypeStr } from "../../../../_framework/reified";
3
3
  import { FieldsWithTypes } from "../../../../_framework/util";
4
4
  import { Vector } from "../../../../_framework/vector";
5
- import { PKG_V11 } from "../index";
5
+ import { PKG_V14 } from "../index";
6
6
  import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
7
7
  export declare function isChar(type: string): boolean;
8
8
  export interface CharFields {
@@ -15,7 +15,7 @@ export declare class Char implements StructClass {
15
15
  static readonly $numTypeParams = 0;
16
16
  static readonly $isPhantom: readonly [];
17
17
  readonly $typeName = "0x1::ascii::Char";
18
- readonly $fullTypeName: `${typeof PKG_V11}::ascii::Char`;
18
+ readonly $fullTypeName: `${typeof PKG_V14}::ascii::Char`;
19
19
  readonly $typeArgs: [];
20
20
  readonly $isPhantom: readonly [];
21
21
  readonly byte: ToField<"u8">;
@@ -57,7 +57,7 @@ export declare class String implements StructClass {
57
57
  static readonly $numTypeParams = 0;
58
58
  static readonly $isPhantom: readonly [];
59
59
  readonly $typeName = "0x1::ascii::String";
60
- readonly $fullTypeName: `${typeof PKG_V11}::ascii::String`;
60
+ readonly $fullTypeName: `${typeof PKG_V14}::ascii::String`;
61
61
  readonly $typeArgs: [];
62
62
  readonly $isPhantom: readonly [];
63
63
  readonly bytes: ToField<Vector<"u8">>;
@@ -54,7 +54,7 @@ const utils_1 = require("@mysten/sui/utils");
54
54
  /* ============================== Char =============================== */
55
55
  function isChar(type) {
56
56
  type = (0, util_1.compressSuiType)(type);
57
- return type === `${index_1.PKG_V11}::ascii::Char`;
57
+ return type === `${index_1.PKG_V14}::ascii::Char`;
58
58
  }
59
59
  class Char {
60
60
  constructor(typeArgs, fields) {
@@ -169,13 +169,13 @@ class Char {
169
169
  }
170
170
  }
171
171
  exports.Char = Char;
172
- Char.$typeName = `${index_1.PKG_V11}::ascii::Char`;
172
+ Char.$typeName = `${index_1.PKG_V14}::ascii::Char`;
173
173
  Char.$numTypeParams = 0;
174
174
  Char.$isPhantom = [];
175
175
  /* ============================== String =============================== */
176
176
  function isString(type) {
177
177
  type = (0, util_1.compressSuiType)(type);
178
- return type === `${index_1.PKG_V11}::ascii::String`;
178
+ return type === `${index_1.PKG_V14}::ascii::String`;
179
179
  }
180
180
  class String {
181
181
  constructor(typeArgs, fields) {
@@ -294,6 +294,6 @@ class String {
294
294
  }
295
295
  }
296
296
  exports.String = String;
297
- String.$typeName = `${index_1.PKG_V11}::ascii::String`;
297
+ String.$typeName = `${index_1.PKG_V14}::ascii::String`;
298
298
  String.$numTypeParams = 0;
299
299
  String.$isPhantom = [];
@@ -1,3 +1,3 @@
1
1
  export declare const PACKAGE_ID = "0x1";
2
2
  export declare const PUBLISHED_AT = "0x1";
3
- export declare const PKG_V11 = "0x1";
3
+ export declare const PKG_V14 = "0x1";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PKG_V11 = exports.PUBLISHED_AT = exports.PACKAGE_ID = void 0;
3
+ exports.PKG_V14 = exports.PUBLISHED_AT = exports.PACKAGE_ID = void 0;
4
4
  exports.PACKAGE_ID = "0x1";
5
5
  exports.PUBLISHED_AT = "0x1";
6
- exports.PKG_V11 = "0x1";
6
+ exports.PKG_V14 = "0x1";
@@ -2,7 +2,7 @@ import * as reified from "../../../../_framework/reified";
2
2
  import { PhantomReified, Reified, StructClass, ToField, ToTypeArgument, ToTypeStr, TypeArgument } from "../../../../_framework/reified";
3
3
  import { FieldsWithTypes } from "../../../../_framework/util";
4
4
  import { Vector } from "../../../../_framework/vector";
5
- import { PKG_V11 } from "../index";
5
+ import { PKG_V14 } from "../index";
6
6
  import { BcsType } from "@mysten/sui/bcs";
7
7
  import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
8
8
  export declare function isOption(type: string): boolean;
@@ -17,7 +17,7 @@ export declare class Option<Element extends TypeArgument> implements StructClass
17
17
  static readonly $isPhantom: readonly [false];
18
18
  __inner: Element;
19
19
  readonly $typeName = "0x1::option::Option";
20
- readonly $fullTypeName: `${typeof PKG_V11}::option::Option<${ToTypeStr<Element>}>`;
20
+ readonly $fullTypeName: `${typeof PKG_V14}::option::Option<${ToTypeStr<Element>}>`;
21
21
  readonly $typeArgs: [ToTypeStr<Element>];
22
22
  readonly $isPhantom: readonly [false];
23
23
  readonly vec: ToField<Vector<Element>>;
@@ -53,7 +53,7 @@ const utils_1 = require("@mysten/sui/utils");
53
53
  /* ============================== Option =============================== */
54
54
  function isOption(type) {
55
55
  type = (0, util_1.compressSuiType)(type);
56
- return type.startsWith(`${index_1.PKG_V11}::option::Option` + "<");
56
+ return type.startsWith(`${index_1.PKG_V14}::option::Option` + "<");
57
57
  }
58
58
  class Option {
59
59
  constructor(typeArgs, fields) {
@@ -185,6 +185,6 @@ class Option {
185
185
  }
186
186
  }
187
187
  exports.Option = Option;
188
- Option.$typeName = `${index_1.PKG_V11}::option::Option`;
188
+ Option.$typeName = `${index_1.PKG_V14}::option::Option`;
189
189
  Option.$numTypeParams = 1;
190
190
  Option.$isPhantom = [false];
@@ -2,7 +2,7 @@ import * as reified from "../../../../_framework/reified";
2
2
  import { PhantomReified, Reified, StructClass, ToField, ToTypeStr } from "../../../../_framework/reified";
3
3
  import { FieldsWithTypes } from "../../../../_framework/util";
4
4
  import { Vector } from "../../../../_framework/vector";
5
- import { PKG_V11 } from "../index";
5
+ import { PKG_V14 } from "../index";
6
6
  import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
7
7
  export declare function isString(type: string): boolean;
8
8
  export interface StringFields {
@@ -15,7 +15,7 @@ export declare class String implements StructClass {
15
15
  static readonly $numTypeParams = 0;
16
16
  static readonly $isPhantom: readonly [];
17
17
  readonly $typeName = "0x1::string::String";
18
- readonly $fullTypeName: `${typeof PKG_V11}::string::String`;
18
+ readonly $fullTypeName: `${typeof PKG_V14}::string::String`;
19
19
  readonly $typeArgs: [];
20
20
  readonly $isPhantom: readonly [];
21
21
  readonly bytes: ToField<Vector<"u8">>;
@@ -53,7 +53,7 @@ const utils_1 = require("@mysten/sui/utils");
53
53
  /* ============================== String =============================== */
54
54
  function isString(type) {
55
55
  type = (0, util_1.compressSuiType)(type);
56
- return type === `${index_1.PKG_V11}::string::String`;
56
+ return type === `${index_1.PKG_V14}::string::String`;
57
57
  }
58
58
  class String {
59
59
  constructor(typeArgs, fields) {
@@ -172,6 +172,6 @@ class String {
172
172
  }
173
173
  }
174
174
  exports.String = String;
175
- String.$typeName = `${index_1.PKG_V11}::string::String`;
175
+ String.$typeName = `${index_1.PKG_V14}::string::String`;
176
176
  String.$numTypeParams = 0;
177
177
  String.$isPhantom = [];
@@ -1,7 +1,7 @@
1
1
  import { PhantomReified, Reified, StructClass, ToField, ToTypeStr } from "../../../../_framework/reified";
2
2
  import { FieldsWithTypes } from "../../../../_framework/util";
3
3
  import { String } from "../ascii/structs";
4
- import { PKG_V11 } from "../index";
4
+ import { PKG_V14 } from "../index";
5
5
  import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
6
6
  export declare function isTypeName(type: string): boolean;
7
7
  export interface TypeNameFields {
@@ -14,7 +14,7 @@ export declare class TypeName implements StructClass {
14
14
  static readonly $numTypeParams = 0;
15
15
  static readonly $isPhantom: readonly [];
16
16
  readonly $typeName = "0x1::type_name::TypeName";
17
- readonly $fullTypeName: `${typeof PKG_V11}::type_name::TypeName`;
17
+ readonly $fullTypeName: `${typeof PKG_V14}::type_name::TypeName`;
18
18
  readonly $typeArgs: [];
19
19
  readonly $isPhantom: readonly [];
20
20
  readonly name: ToField<String>;
@@ -20,7 +20,7 @@ const utils_1 = require("@mysten/sui/utils");
20
20
  /* ============================== TypeName =============================== */
21
21
  function isTypeName(type) {
22
22
  type = (0, util_1.compressSuiType)(type);
23
- return type === `${index_1.PKG_V11}::type_name::TypeName`;
23
+ return type === `${index_1.PKG_V14}::type_name::TypeName`;
24
24
  }
25
25
  class TypeName {
26
26
  constructor(typeArgs, fields) {
@@ -139,6 +139,6 @@ class TypeName {
139
139
  }
140
140
  }
141
141
  exports.TypeName = TypeName;
142
- TypeName.$typeName = `${index_1.PKG_V11}::type_name::TypeName`;
142
+ TypeName.$typeName = `${index_1.PKG_V14}::type_name::TypeName`;
143
143
  TypeName.$numTypeParams = 0;
144
144
  TypeName.$isPhantom = [];
@@ -1,6 +1,6 @@
1
1
  import { PhantomReified, Reified, StructClass, ToField, ToTypeStr } from "../../../../_framework/reified";
2
2
  import { FieldsWithTypes } from "../../../../_framework/util";
3
- import { PKG_V28 } from "../index";
3
+ import { PKG_V31 } from "../index";
4
4
  import { UID } from "../object/structs";
5
5
  import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
6
6
  export declare function isBag(type: string): boolean;
@@ -15,7 +15,7 @@ export declare class Bag implements StructClass {
15
15
  static readonly $numTypeParams = 0;
16
16
  static readonly $isPhantom: readonly [];
17
17
  readonly $typeName = "0x2::bag::Bag";
18
- readonly $fullTypeName: `${typeof PKG_V28}::bag::Bag`;
18
+ readonly $fullTypeName: `${typeof PKG_V31}::bag::Bag`;
19
19
  readonly $typeArgs: [];
20
20
  readonly $isPhantom: readonly [];
21
21
  readonly id: ToField<UID>;
@@ -20,7 +20,7 @@ const utils_1 = require("@mysten/sui/utils");
20
20
  /* ============================== Bag =============================== */
21
21
  function isBag(type) {
22
22
  type = (0, util_1.compressSuiType)(type);
23
- return type === `${index_1.PKG_V28}::bag::Bag`;
23
+ return type === `${index_1.PKG_V31}::bag::Bag`;
24
24
  }
25
25
  class Bag {
26
26
  constructor(typeArgs, fields) {
@@ -144,6 +144,6 @@ class Bag {
144
144
  }
145
145
  }
146
146
  exports.Bag = Bag;
147
- Bag.$typeName = `${index_1.PKG_V28}::bag::Bag`;
147
+ Bag.$typeName = `${index_1.PKG_V31}::bag::Bag`;
148
148
  Bag.$numTypeParams = 0;
149
149
  Bag.$isPhantom = [];
@@ -1,6 +1,6 @@
1
1
  import { PhantomReified, PhantomToTypeStr, PhantomTypeArgument, Reified, StructClass, ToField, ToPhantomTypeArgument, ToTypeStr } from "../../../../_framework/reified";
2
2
  import { FieldsWithTypes } from "../../../../_framework/util";
3
- import { PKG_V28 } from "../index";
3
+ import { PKG_V31 } from "../index";
4
4
  import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
5
5
  export declare function isBalance(type: string): boolean;
6
6
  export interface BalanceFields<T extends PhantomTypeArgument> {
@@ -13,7 +13,7 @@ export declare class Balance<T extends PhantomTypeArgument> implements StructCla
13
13
  static readonly $numTypeParams = 1;
14
14
  static readonly $isPhantom: readonly [true];
15
15
  readonly $typeName = "0x2::balance::Balance";
16
- readonly $fullTypeName: `${typeof PKG_V28}::balance::Balance<${PhantomToTypeStr<T>}>`;
16
+ readonly $fullTypeName: `${typeof PKG_V31}::balance::Balance<${PhantomToTypeStr<T>}>`;
17
17
  readonly $typeArgs: [PhantomToTypeStr<T>];
18
18
  readonly $isPhantom: readonly [true];
19
19
  readonly value: ToField<"u64">;
@@ -55,7 +55,7 @@ export declare class Supply<T extends PhantomTypeArgument> implements StructClas
55
55
  static readonly $numTypeParams = 1;
56
56
  static readonly $isPhantom: readonly [true];
57
57
  readonly $typeName = "0x2::balance::Supply";
58
- readonly $fullTypeName: `${typeof PKG_V28}::balance::Supply<${PhantomToTypeStr<T>}>`;
58
+ readonly $fullTypeName: `${typeof PKG_V31}::balance::Supply<${PhantomToTypeStr<T>}>`;
59
59
  readonly $typeArgs: [PhantomToTypeStr<T>];
60
60
  readonly $isPhantom: readonly [true];
61
61
  readonly value: ToField<"u64">;
@@ -20,7 +20,7 @@ const utils_1 = require("@mysten/sui/utils");
20
20
  /* ============================== Balance =============================== */
21
21
  function isBalance(type) {
22
22
  type = (0, util_1.compressSuiType)(type);
23
- return type.startsWith(`${index_1.PKG_V28}::balance::Balance` + "<");
23
+ return type.startsWith(`${index_1.PKG_V31}::balance::Balance` + "<");
24
24
  }
25
25
  class Balance {
26
26
  constructor(typeArgs, fields) {
@@ -150,13 +150,13 @@ class Balance {
150
150
  }
151
151
  }
152
152
  exports.Balance = Balance;
153
- Balance.$typeName = `${index_1.PKG_V28}::balance::Balance`;
153
+ Balance.$typeName = `${index_1.PKG_V31}::balance::Balance`;
154
154
  Balance.$numTypeParams = 1;
155
155
  Balance.$isPhantom = [true];
156
156
  /* ============================== Supply =============================== */
157
157
  function isSupply(type) {
158
158
  type = (0, util_1.compressSuiType)(type);
159
- return type.startsWith(`${index_1.PKG_V28}::balance::Supply` + "<");
159
+ return type.startsWith(`${index_1.PKG_V31}::balance::Supply` + "<");
160
160
  }
161
161
  class Supply {
162
162
  constructor(typeArgs, fields) {
@@ -286,6 +286,6 @@ class Supply {
286
286
  }
287
287
  }
288
288
  exports.Supply = Supply;
289
- Supply.$typeName = `${index_1.PKG_V28}::balance::Supply`;
289
+ Supply.$typeName = `${index_1.PKG_V31}::balance::Supply`;
290
290
  Supply.$numTypeParams = 1;
291
291
  Supply.$isPhantom = [true];
@@ -4,7 +4,7 @@ import { String as String1 } from "../../0x1/ascii/structs";
4
4
  import { Option } from "../../0x1/option/structs";
5
5
  import { String } from "../../0x1/string/structs";
6
6
  import { Balance, Supply } from "../balance/structs";
7
- import { PKG_V28 } from "../index";
7
+ import { PKG_V31 } from "../index";
8
8
  import { ID, UID } from "../object/structs";
9
9
  import { Url } from "../url/structs";
10
10
  import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
@@ -20,7 +20,7 @@ export declare class Coin<T extends PhantomTypeArgument> implements StructClass
20
20
  static readonly $numTypeParams = 1;
21
21
  static readonly $isPhantom: readonly [true];
22
22
  readonly $typeName = "0x2::coin::Coin";
23
- readonly $fullTypeName: `${typeof PKG_V28}::coin::Coin<${PhantomToTypeStr<T>}>`;
23
+ readonly $fullTypeName: `${typeof PKG_V31}::coin::Coin<${PhantomToTypeStr<T>}>`;
24
24
  readonly $typeArgs: [PhantomToTypeStr<T>];
25
25
  readonly $isPhantom: readonly [true];
26
26
  readonly id: ToField<UID>;
@@ -88,7 +88,7 @@ export declare class CoinMetadata<T extends PhantomTypeArgument> implements Stru
88
88
  static readonly $numTypeParams = 1;
89
89
  static readonly $isPhantom: readonly [true];
90
90
  readonly $typeName = "0x2::coin::CoinMetadata";
91
- readonly $fullTypeName: `${typeof PKG_V28}::coin::CoinMetadata<${PhantomToTypeStr<T>}>`;
91
+ readonly $fullTypeName: `${typeof PKG_V31}::coin::CoinMetadata<${PhantomToTypeStr<T>}>`;
92
92
  readonly $typeArgs: [PhantomToTypeStr<T>];
93
93
  readonly $isPhantom: readonly [true];
94
94
  readonly id: ToField<UID>;
@@ -187,7 +187,7 @@ export declare class CurrencyCreated<T extends PhantomTypeArgument> implements S
187
187
  static readonly $numTypeParams = 1;
188
188
  static readonly $isPhantom: readonly [true];
189
189
  readonly $typeName = "0x2::coin::CurrencyCreated";
190
- readonly $fullTypeName: `${typeof PKG_V28}::coin::CurrencyCreated<${PhantomToTypeStr<T>}>`;
190
+ readonly $fullTypeName: `${typeof PKG_V31}::coin::CurrencyCreated<${PhantomToTypeStr<T>}>`;
191
191
  readonly $typeArgs: [PhantomToTypeStr<T>];
192
192
  readonly $isPhantom: readonly [true];
193
193
  readonly decimals: ToField<"u8">;
@@ -229,7 +229,7 @@ export declare class DenyCap<T extends PhantomTypeArgument> implements StructCla
229
229
  static readonly $numTypeParams = 1;
230
230
  static readonly $isPhantom: readonly [true];
231
231
  readonly $typeName = "0x2::coin::DenyCap";
232
- readonly $fullTypeName: `${typeof PKG_V28}::coin::DenyCap<${PhantomToTypeStr<T>}>`;
232
+ readonly $fullTypeName: `${typeof PKG_V31}::coin::DenyCap<${PhantomToTypeStr<T>}>`;
233
233
  readonly $typeArgs: [PhantomToTypeStr<T>];
234
234
  readonly $isPhantom: readonly [true];
235
235
  readonly id: ToField<UID>;
@@ -280,7 +280,7 @@ export declare class DenyCapV2<T extends PhantomTypeArgument> implements StructC
280
280
  static readonly $numTypeParams = 1;
281
281
  static readonly $isPhantom: readonly [true];
282
282
  readonly $typeName = "0x2::coin::DenyCapV2";
283
- readonly $fullTypeName: `${typeof PKG_V28}::coin::DenyCapV2<${PhantomToTypeStr<T>}>`;
283
+ readonly $fullTypeName: `${typeof PKG_V31}::coin::DenyCapV2<${PhantomToTypeStr<T>}>`;
284
284
  readonly $typeArgs: [PhantomToTypeStr<T>];
285
285
  readonly $isPhantom: readonly [true];
286
286
  readonly id: ToField<UID>;
@@ -337,7 +337,7 @@ export declare class RegulatedCoinMetadata<T extends PhantomTypeArgument> implem
337
337
  static readonly $numTypeParams = 1;
338
338
  static readonly $isPhantom: readonly [true];
339
339
  readonly $typeName = "0x2::coin::RegulatedCoinMetadata";
340
- readonly $fullTypeName: `${typeof PKG_V28}::coin::RegulatedCoinMetadata<${PhantomToTypeStr<T>}>`;
340
+ readonly $fullTypeName: `${typeof PKG_V31}::coin::RegulatedCoinMetadata<${PhantomToTypeStr<T>}>`;
341
341
  readonly $typeArgs: [PhantomToTypeStr<T>];
342
342
  readonly $isPhantom: readonly [true];
343
343
  readonly id: ToField<UID>;
@@ -406,7 +406,7 @@ export declare class TreasuryCap<T extends PhantomTypeArgument> implements Struc
406
406
  static readonly $numTypeParams = 1;
407
407
  static readonly $isPhantom: readonly [true];
408
408
  readonly $typeName = "0x2::coin::TreasuryCap";
409
- readonly $fullTypeName: `${typeof PKG_V28}::coin::TreasuryCap<${PhantomToTypeStr<T>}>`;
409
+ readonly $fullTypeName: `${typeof PKG_V31}::coin::TreasuryCap<${PhantomToTypeStr<T>}>`;
410
410
  readonly $typeArgs: [PhantomToTypeStr<T>];
411
411
  readonly $isPhantom: readonly [true];
412
412
  readonly id: ToField<UID>;
@@ -31,7 +31,7 @@ const utils_1 = require("@mysten/sui/utils");
31
31
  /* ============================== Coin =============================== */
32
32
  function isCoin(type) {
33
33
  type = (0, util_1.compressSuiType)(type);
34
- return type.startsWith(`${index_1.PKG_V28}::coin::Coin` + "<");
34
+ return type.startsWith(`${index_1.PKG_V31}::coin::Coin` + "<");
35
35
  }
36
36
  class Coin {
37
37
  constructor(typeArgs, fields) {
@@ -167,13 +167,13 @@ class Coin {
167
167
  }
168
168
  }
169
169
  exports.Coin = Coin;
170
- Coin.$typeName = `${index_1.PKG_V28}::coin::Coin`;
170
+ Coin.$typeName = `${index_1.PKG_V31}::coin::Coin`;
171
171
  Coin.$numTypeParams = 1;
172
172
  Coin.$isPhantom = [true];
173
173
  /* ============================== CoinMetadata =============================== */
174
174
  function isCoinMetadata(type) {
175
175
  type = (0, util_1.compressSuiType)(type);
176
- return type.startsWith(`${index_1.PKG_V28}::coin::CoinMetadata` + "<");
176
+ return type.startsWith(`${index_1.PKG_V31}::coin::CoinMetadata` + "<");
177
177
  }
178
178
  class CoinMetadata {
179
179
  constructor(typeArgs, fields) {
@@ -334,13 +334,13 @@ class CoinMetadata {
334
334
  }
335
335
  }
336
336
  exports.CoinMetadata = CoinMetadata;
337
- CoinMetadata.$typeName = `${index_1.PKG_V28}::coin::CoinMetadata`;
337
+ CoinMetadata.$typeName = `${index_1.PKG_V31}::coin::CoinMetadata`;
338
338
  CoinMetadata.$numTypeParams = 1;
339
339
  CoinMetadata.$isPhantom = [true];
340
340
  /* ============================== CurrencyCreated =============================== */
341
341
  function isCurrencyCreated(type) {
342
342
  type = (0, util_1.compressSuiType)(type);
343
- return type.startsWith(`${index_1.PKG_V28}::coin::CurrencyCreated` + "<");
343
+ return type.startsWith(`${index_1.PKG_V31}::coin::CurrencyCreated` + "<");
344
344
  }
345
345
  class CurrencyCreated {
346
346
  constructor(typeArgs, fields) {
@@ -471,13 +471,13 @@ class CurrencyCreated {
471
471
  }
472
472
  }
473
473
  exports.CurrencyCreated = CurrencyCreated;
474
- CurrencyCreated.$typeName = `${index_1.PKG_V28}::coin::CurrencyCreated`;
474
+ CurrencyCreated.$typeName = `${index_1.PKG_V31}::coin::CurrencyCreated`;
475
475
  CurrencyCreated.$numTypeParams = 1;
476
476
  CurrencyCreated.$isPhantom = [true];
477
477
  /* ============================== DenyCap =============================== */
478
478
  function isDenyCap(type) {
479
479
  type = (0, util_1.compressSuiType)(type);
480
- return type.startsWith(`${index_1.PKG_V28}::coin::DenyCap` + "<");
480
+ return type.startsWith(`${index_1.PKG_V31}::coin::DenyCap` + "<");
481
481
  }
482
482
  class DenyCap {
483
483
  constructor(typeArgs, fields) {
@@ -607,13 +607,13 @@ class DenyCap {
607
607
  }
608
608
  }
609
609
  exports.DenyCap = DenyCap;
610
- DenyCap.$typeName = `${index_1.PKG_V28}::coin::DenyCap`;
610
+ DenyCap.$typeName = `${index_1.PKG_V31}::coin::DenyCap`;
611
611
  DenyCap.$numTypeParams = 1;
612
612
  DenyCap.$isPhantom = [true];
613
613
  /* ============================== DenyCapV2 =============================== */
614
614
  function isDenyCapV2(type) {
615
615
  type = (0, util_1.compressSuiType)(type);
616
- return type.startsWith(`${index_1.PKG_V28}::coin::DenyCapV2` + "<");
616
+ return type.startsWith(`${index_1.PKG_V31}::coin::DenyCapV2` + "<");
617
617
  }
618
618
  class DenyCapV2 {
619
619
  constructor(typeArgs, fields) {
@@ -749,13 +749,13 @@ class DenyCapV2 {
749
749
  }
750
750
  }
751
751
  exports.DenyCapV2 = DenyCapV2;
752
- DenyCapV2.$typeName = `${index_1.PKG_V28}::coin::DenyCapV2`;
752
+ DenyCapV2.$typeName = `${index_1.PKG_V31}::coin::DenyCapV2`;
753
753
  DenyCapV2.$numTypeParams = 1;
754
754
  DenyCapV2.$isPhantom = [true];
755
755
  /* ============================== RegulatedCoinMetadata =============================== */
756
756
  function isRegulatedCoinMetadata(type) {
757
757
  type = (0, util_1.compressSuiType)(type);
758
- return type.startsWith(`${index_1.PKG_V28}::coin::RegulatedCoinMetadata` + "<");
758
+ return type.startsWith(`${index_1.PKG_V31}::coin::RegulatedCoinMetadata` + "<");
759
759
  }
760
760
  class RegulatedCoinMetadata {
761
761
  constructor(typeArgs, fields) {
@@ -898,13 +898,13 @@ class RegulatedCoinMetadata {
898
898
  }
899
899
  }
900
900
  exports.RegulatedCoinMetadata = RegulatedCoinMetadata;
901
- RegulatedCoinMetadata.$typeName = `${index_1.PKG_V28}::coin::RegulatedCoinMetadata`;
901
+ RegulatedCoinMetadata.$typeName = `${index_1.PKG_V31}::coin::RegulatedCoinMetadata`;
902
902
  RegulatedCoinMetadata.$numTypeParams = 1;
903
903
  RegulatedCoinMetadata.$isPhantom = [true];
904
904
  /* ============================== TreasuryCap =============================== */
905
905
  function isTreasuryCap(type) {
906
906
  type = (0, util_1.compressSuiType)(type);
907
- return type.startsWith(`${index_1.PKG_V28}::coin::TreasuryCap` + "<");
907
+ return type.startsWith(`${index_1.PKG_V31}::coin::TreasuryCap` + "<");
908
908
  }
909
909
  class TreasuryCap {
910
910
  constructor(typeArgs, fields) {
@@ -1040,6 +1040,6 @@ class TreasuryCap {
1040
1040
  }
1041
1041
  }
1042
1042
  exports.TreasuryCap = TreasuryCap;
1043
- TreasuryCap.$typeName = `${index_1.PKG_V28}::coin::TreasuryCap`;
1043
+ TreasuryCap.$typeName = `${index_1.PKG_V31}::coin::TreasuryCap`;
1044
1044
  TreasuryCap.$numTypeParams = 1;
1045
1045
  TreasuryCap.$isPhantom = [true];
@@ -1,3 +1,3 @@
1
1
  export declare const PACKAGE_ID = "0x2";
2
2
  export declare const PUBLISHED_AT = "0x2";
3
- export declare const PKG_V28 = "0x2";
3
+ export declare const PKG_V31 = "0x2";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PKG_V28 = exports.PUBLISHED_AT = exports.PACKAGE_ID = void 0;
3
+ exports.PKG_V31 = exports.PUBLISHED_AT = exports.PACKAGE_ID = void 0;
4
4
  exports.PACKAGE_ID = "0x2";
5
5
  exports.PUBLISHED_AT = "0x2";
6
- exports.PKG_V28 = "0x2";
6
+ exports.PKG_V31 = "0x2";