@typemove/sui 1.0.0-rc.21 → 1.0.0-rc.23

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 (147) hide show
  1. package/Readme.md +128 -0
  2. package/builtin/package.json +5 -0
  3. package/dist/cjs/builtin/0x1.d.ts.map +1 -0
  4. package/dist/cjs/builtin/0x1.js +2083 -0
  5. package/dist/cjs/builtin/0x1.js.map +1 -0
  6. package/dist/cjs/builtin/0x2.d.ts.map +1 -0
  7. package/dist/cjs/builtin/0x2.js +9641 -0
  8. package/dist/cjs/builtin/0x2.js.map +1 -0
  9. package/dist/cjs/builtin/0x3.d.ts.map +1 -0
  10. package/dist/cjs/builtin/0x3.js +2625 -0
  11. package/dist/cjs/builtin/0x3.js.map +1 -0
  12. package/dist/cjs/builtin/index.d.ts.map +1 -0
  13. package/dist/cjs/builtin/index.js +11 -0
  14. package/dist/cjs/builtin/index.js.map +1 -0
  15. package/dist/cjs/index.d.ts.map +1 -0
  16. package/dist/cjs/index.js +10 -0
  17. package/dist/cjs/index.js.map +1 -0
  18. package/dist/cjs/models.d.ts.map +1 -0
  19. package/dist/cjs/models.js +8 -0
  20. package/dist/cjs/models.js.map +1 -0
  21. package/dist/cjs/move-coder.d.ts.map +1 -0
  22. package/dist/cjs/move-coder.js +104 -0
  23. package/dist/cjs/move-coder.js.map +1 -0
  24. package/dist/cjs/package.json +3 -0
  25. package/dist/cjs/sui-chain-adapter.d.ts.map +1 -0
  26. package/dist/cjs/sui-chain-adapter.js +86 -0
  27. package/dist/cjs/sui-chain-adapter.js.map +1 -0
  28. package/dist/cjs/to-internal.d.ts.map +1 -0
  29. package/dist/cjs/to-internal.js +85 -0
  30. package/dist/cjs/to-internal.js.map +1 -0
  31. package/dist/cjs/utils.d.ts.map +1 -0
  32. package/dist/cjs/utils.js +49 -0
  33. package/dist/cjs/utils.js.map +1 -0
  34. package/dist/esm/builtin/0x1.d.ts +495 -0
  35. package/dist/esm/builtin/0x1.d.ts.map +1 -0
  36. package/dist/esm/builtin/0x1.js.map +1 -0
  37. package/dist/esm/builtin/0x2.d.ts +2929 -0
  38. package/dist/esm/builtin/0x2.d.ts.map +1 -0
  39. package/dist/esm/builtin/0x2.js.map +1 -0
  40. package/dist/esm/builtin/0x3.d.ts +1207 -0
  41. package/dist/esm/builtin/0x3.d.ts.map +1 -0
  42. package/dist/esm/builtin/0x3.js.map +1 -0
  43. package/dist/esm/builtin/index.d.ts +4 -0
  44. package/dist/esm/builtin/index.d.ts.map +1 -0
  45. package/dist/esm/builtin/index.js.map +1 -0
  46. package/dist/esm/codegen/codegen.d.ts.map +1 -0
  47. package/dist/esm/codegen/codegen.js.map +1 -0
  48. package/dist/esm/codegen/index.d.ts.map +1 -0
  49. package/dist/esm/codegen/index.js.map +1 -0
  50. package/dist/{codegen → esm/codegen}/run.d.ts.map +1 -1
  51. package/dist/esm/codegen/run.js.map +1 -0
  52. package/dist/esm/index.d.ts +4 -0
  53. package/dist/esm/index.d.ts.map +1 -0
  54. package/dist/esm/index.js.map +1 -0
  55. package/dist/esm/models.d.ts +12 -0
  56. package/dist/esm/models.d.ts.map +1 -0
  57. package/dist/esm/models.js.map +1 -0
  58. package/dist/esm/move-coder.d.ts +16 -0
  59. package/dist/esm/move-coder.d.ts.map +1 -0
  60. package/dist/esm/move-coder.js.map +1 -0
  61. package/dist/esm/sui-chain-adapter.d.ts +12 -0
  62. package/dist/esm/sui-chain-adapter.d.ts.map +1 -0
  63. package/dist/esm/sui-chain-adapter.js.map +1 -0
  64. package/dist/esm/to-internal.d.ts +4 -0
  65. package/dist/esm/to-internal.d.ts.map +1 -0
  66. package/dist/esm/to-internal.js.map +1 -0
  67. package/dist/esm/utils.d.ts +15 -0
  68. package/dist/esm/utils.d.ts.map +1 -0
  69. package/dist/esm/utils.js.map +1 -0
  70. package/package.json +16 -8
  71. package/dist/builtin/0x1.d.ts.map +0 -1
  72. package/dist/builtin/0x1.js.map +0 -1
  73. package/dist/builtin/0x2.d.ts.map +0 -1
  74. package/dist/builtin/0x2.js.map +0 -1
  75. package/dist/builtin/0x3.d.ts.map +0 -1
  76. package/dist/builtin/0x3.js.map +0 -1
  77. package/dist/builtin/index.d.ts.map +0 -1
  78. package/dist/builtin/index.js.map +0 -1
  79. package/dist/codegen/codegen.d.ts.map +0 -1
  80. package/dist/codegen/codegen.js.map +0 -1
  81. package/dist/codegen/index.d.ts.map +0 -1
  82. package/dist/codegen/index.js.map +0 -1
  83. package/dist/codegen/run.js.map +0 -1
  84. package/dist/index.d.ts.map +0 -1
  85. package/dist/index.js.map +0 -1
  86. package/dist/models.d.ts.map +0 -1
  87. package/dist/models.js.map +0 -1
  88. package/dist/move-coder.d.ts.map +0 -1
  89. package/dist/move-coder.js.map +0 -1
  90. package/dist/sui-chain-adapter.d.ts.map +0 -1
  91. package/dist/sui-chain-adapter.js.map +0 -1
  92. package/dist/tests/move-call.test.d.ts +0 -2
  93. package/dist/tests/move-call.test.d.ts.map +0 -1
  94. package/dist/tests/move-call.test.js.map +0 -1
  95. package/dist/tests/move-coder.test.d.ts +0 -2
  96. package/dist/tests/move-coder.test.d.ts.map +0 -1
  97. package/dist/tests/move-coder.test.js.map +0 -1
  98. package/dist/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.d.ts +0 -96
  99. package/dist/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.d.ts.map +0 -1
  100. package/dist/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.js +0 -165
  101. package/dist/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.js.map +0 -1
  102. package/dist/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.d.ts +0 -769
  103. package/dist/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.d.ts.map +0 -1
  104. package/dist/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.js +0 -1544
  105. package/dist/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.js.map +0 -1
  106. package/dist/tests/types/testnet/0xdee9.d.ts +0 -1053
  107. package/dist/tests/types/testnet/0xdee9.d.ts.map +0 -1
  108. package/dist/tests/types/testnet/0xdee9.js +0 -1697
  109. package/dist/tests/types/testnet/0xdee9.js.map +0 -1
  110. package/dist/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.d.ts +0 -3249
  111. package/dist/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.d.ts.map +0 -1
  112. package/dist/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.js +0 -5476
  113. package/dist/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.js.map +0 -1
  114. package/dist/tests/types/testnet/index.d.ts +0 -5
  115. package/dist/tests/types/testnet/index.d.ts.map +0 -1
  116. package/dist/tests/types/testnet/index.js +0 -8
  117. package/dist/tests/types/testnet/index.js.map +0 -1
  118. package/dist/to-internal.d.ts.map +0 -1
  119. package/dist/to-internal.js.map +0 -1
  120. package/dist/utils.d.ts.map +0 -1
  121. package/dist/utils.js.map +0 -1
  122. /package/dist/{builtin → cjs/builtin}/0x1.d.ts +0 -0
  123. /package/dist/{builtin → cjs/builtin}/0x2.d.ts +0 -0
  124. /package/dist/{builtin → cjs/builtin}/0x3.d.ts +0 -0
  125. /package/dist/{builtin → cjs/builtin}/index.d.ts +0 -0
  126. /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
  127. /package/dist/{models.d.ts → cjs/models.d.ts} +0 -0
  128. /package/dist/{move-coder.d.ts → cjs/move-coder.d.ts} +0 -0
  129. /package/dist/{sui-chain-adapter.d.ts → cjs/sui-chain-adapter.d.ts} +0 -0
  130. /package/dist/{to-internal.d.ts → cjs/to-internal.d.ts} +0 -0
  131. /package/dist/{utils.d.ts → cjs/utils.d.ts} +0 -0
  132. /package/dist/{builtin → esm/builtin}/0x1.js +0 -0
  133. /package/dist/{builtin → esm/builtin}/0x2.js +0 -0
  134. /package/dist/{builtin → esm/builtin}/0x3.js +0 -0
  135. /package/dist/{builtin → esm/builtin}/index.js +0 -0
  136. /package/dist/{codegen → esm/codegen}/codegen.d.ts +0 -0
  137. /package/dist/{codegen → esm/codegen}/codegen.js +0 -0
  138. /package/dist/{codegen → esm/codegen}/index.d.ts +0 -0
  139. /package/dist/{codegen → esm/codegen}/index.js +0 -0
  140. /package/dist/{codegen → esm/codegen}/run.d.ts +0 -0
  141. /package/dist/{codegen → esm/codegen}/run.js +0 -0
  142. /package/dist/{index.js → esm/index.js} +0 -0
  143. /package/dist/{models.js → esm/models.js} +0 -0
  144. /package/dist/{move-coder.js → esm/move-coder.js} +0 -0
  145. /package/dist/{sui-chain-adapter.js → esm/sui-chain-adapter.js} +0 -0
  146. /package/dist/{to-internal.js → esm/to-internal.js} +0 -0
  147. /package/dist/{utils.js → esm/utils.js} +0 -0
@@ -0,0 +1,2083 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.loadAllTypes = exports.vector = exports.type_name = exports.string_ = exports.option = exports.hash = exports.fixed_point32 = exports.debug = exports.bit_vector = exports.bcs = exports.ascii = exports.address = void 0;
7
+ /* Generated modules for account 0x1 */
8
+ const move_1 = require("@typemove/move");
9
+ const sui_1 = require("@typemove/sui");
10
+ const sui_2 = require("@typemove/sui");
11
+ const transactions_1 = require("@mysten/sui.js/transactions");
12
+ const sui_js_1 = require("@mysten/sui.js");
13
+ var address;
14
+ (function (address) {
15
+ let builder;
16
+ (function (builder) {
17
+ function length(tx, args) {
18
+ const _args = [];
19
+ // @ts-ignore
20
+ return tx.moveCall({
21
+ target: "0x1::address::length",
22
+ arguments: _args,
23
+ });
24
+ }
25
+ builder.length = length;
26
+ })(builder = address.builder || (address.builder = {}));
27
+ let view;
28
+ (function (view) {
29
+ async function length(client, args) {
30
+ const tx = new transactions_1.TransactionBlock();
31
+ builder.length(tx, args);
32
+ const res = await client.devInspectTransactionBlock({
33
+ transactionBlock: tx,
34
+ sender: sui_2.ZERO_ADDRESS,
35
+ });
36
+ return res;
37
+ }
38
+ view.length = length;
39
+ })(view = address.view || (address.view = {}));
40
+ })(address || (exports.address = address = {}));
41
+ var ascii;
42
+ (function (ascii) {
43
+ let Char;
44
+ (function (Char) {
45
+ Char.TYPE_QNAME = "0x1::ascii::Char";
46
+ const TYPE = new move_1.TypeDescriptor(Char.TYPE_QNAME);
47
+ function type() {
48
+ return TYPE.apply();
49
+ }
50
+ Char.type = type;
51
+ })(Char = ascii.Char || (ascii.Char = {}));
52
+ let String;
53
+ (function (String) {
54
+ String.TYPE_QNAME = "0x1::ascii::String";
55
+ const TYPE = new move_1.TypeDescriptor(String.TYPE_QNAME);
56
+ function type() {
57
+ return TYPE.apply();
58
+ }
59
+ String.type = type;
60
+ })(String = ascii.String || (ascii.String = {}));
61
+ let builder;
62
+ (function (builder) {
63
+ function allCharactersPrintable(tx, args) {
64
+ const _args = [];
65
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
66
+ // @ts-ignore
67
+ return tx.moveCall({
68
+ target: "0x1::ascii::all_characters_printable",
69
+ arguments: _args,
70
+ });
71
+ }
72
+ builder.allCharactersPrintable = allCharactersPrintable;
73
+ function asBytes(tx, args) {
74
+ const _args = [];
75
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
76
+ // @ts-ignore
77
+ return tx.moveCall({
78
+ target: "0x1::ascii::as_bytes",
79
+ arguments: _args,
80
+ });
81
+ }
82
+ builder.asBytes = asBytes;
83
+ function byte(tx, args) {
84
+ const _args = [];
85
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
86
+ // @ts-ignore
87
+ return tx.moveCall({
88
+ target: "0x1::ascii::byte",
89
+ arguments: _args,
90
+ });
91
+ }
92
+ builder.byte = byte;
93
+ function char(tx, args) {
94
+ const _args = [];
95
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
96
+ // @ts-ignore
97
+ return tx.moveCall({
98
+ target: "0x1::ascii::char",
99
+ arguments: _args,
100
+ });
101
+ }
102
+ builder.char = char;
103
+ function intoBytes(tx, args) {
104
+ const _args = [];
105
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
106
+ // @ts-ignore
107
+ return tx.moveCall({
108
+ target: "0x1::ascii::into_bytes",
109
+ arguments: _args,
110
+ });
111
+ }
112
+ builder.intoBytes = intoBytes;
113
+ function isPrintableChar(tx, args) {
114
+ const _args = [];
115
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
116
+ // @ts-ignore
117
+ return tx.moveCall({
118
+ target: "0x1::ascii::is_printable_char",
119
+ arguments: _args,
120
+ });
121
+ }
122
+ builder.isPrintableChar = isPrintableChar;
123
+ function isValidChar(tx, args) {
124
+ const _args = [];
125
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
126
+ // @ts-ignore
127
+ return tx.moveCall({
128
+ target: "0x1::ascii::is_valid_char",
129
+ arguments: _args,
130
+ });
131
+ }
132
+ builder.isValidChar = isValidChar;
133
+ function length(tx, args) {
134
+ const _args = [];
135
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
136
+ // @ts-ignore
137
+ return tx.moveCall({
138
+ target: "0x1::ascii::length",
139
+ arguments: _args,
140
+ });
141
+ }
142
+ builder.length = length;
143
+ function popChar(tx, args) {
144
+ const _args = [];
145
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
146
+ // @ts-ignore
147
+ return tx.moveCall({
148
+ target: "0x1::ascii::pop_char",
149
+ arguments: _args,
150
+ });
151
+ }
152
+ builder.popChar = popChar;
153
+ function pushChar(tx, args) {
154
+ const _args = [];
155
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
156
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
157
+ // @ts-ignore
158
+ return tx.moveCall({
159
+ target: "0x1::ascii::push_char",
160
+ arguments: _args,
161
+ });
162
+ }
163
+ builder.pushChar = pushChar;
164
+ function string_(tx, args) {
165
+ const _args = [];
166
+ _args.push(sui_js_1.TransactionArgument.is(args[0])
167
+ ? args[0]
168
+ : tx.makeMoveVec({
169
+ objects: args[0].map((a) => tx.object(a)),
170
+ // type: TODO
171
+ }));
172
+ // @ts-ignore
173
+ return tx.moveCall({
174
+ target: "0x1::ascii::string",
175
+ arguments: _args,
176
+ });
177
+ }
178
+ builder.string_ = string_;
179
+ function tryString(tx, args) {
180
+ const _args = [];
181
+ _args.push(sui_js_1.TransactionArgument.is(args[0])
182
+ ? args[0]
183
+ : tx.makeMoveVec({
184
+ objects: args[0].map((a) => tx.object(a)),
185
+ // type: TODO
186
+ }));
187
+ // @ts-ignore
188
+ return tx.moveCall({
189
+ target: "0x1::ascii::try_string",
190
+ arguments: _args,
191
+ });
192
+ }
193
+ builder.tryString = tryString;
194
+ })(builder = ascii.builder || (ascii.builder = {}));
195
+ let view;
196
+ (function (view) {
197
+ async function allCharactersPrintable(client, args) {
198
+ const tx = new transactions_1.TransactionBlock();
199
+ builder.allCharactersPrintable(tx, args);
200
+ const res = await client.devInspectTransactionBlock({
201
+ transactionBlock: tx,
202
+ sender: sui_2.ZERO_ADDRESS,
203
+ });
204
+ return res;
205
+ }
206
+ view.allCharactersPrintable = allCharactersPrintable;
207
+ async function asBytes(client, args) {
208
+ const tx = new transactions_1.TransactionBlock();
209
+ builder.asBytes(tx, args);
210
+ const res = await client.devInspectTransactionBlock({
211
+ transactionBlock: tx,
212
+ sender: sui_2.ZERO_ADDRESS,
213
+ });
214
+ return res;
215
+ }
216
+ view.asBytes = asBytes;
217
+ async function byte(client, args) {
218
+ const tx = new transactions_1.TransactionBlock();
219
+ builder.byte(tx, args);
220
+ const res = await client.devInspectTransactionBlock({
221
+ transactionBlock: tx,
222
+ sender: sui_2.ZERO_ADDRESS,
223
+ });
224
+ return res;
225
+ }
226
+ view.byte = byte;
227
+ async function char(client, args) {
228
+ const tx = new transactions_1.TransactionBlock();
229
+ builder.char(tx, args);
230
+ const res = await client.devInspectTransactionBlock({
231
+ transactionBlock: tx,
232
+ sender: sui_2.ZERO_ADDRESS,
233
+ });
234
+ return res;
235
+ }
236
+ view.char = char;
237
+ async function intoBytes(client, args) {
238
+ const tx = new transactions_1.TransactionBlock();
239
+ builder.intoBytes(tx, args);
240
+ const res = await client.devInspectTransactionBlock({
241
+ transactionBlock: tx,
242
+ sender: sui_2.ZERO_ADDRESS,
243
+ });
244
+ return res;
245
+ }
246
+ view.intoBytes = intoBytes;
247
+ async function isPrintableChar(client, args) {
248
+ const tx = new transactions_1.TransactionBlock();
249
+ builder.isPrintableChar(tx, args);
250
+ const res = await client.devInspectTransactionBlock({
251
+ transactionBlock: tx,
252
+ sender: sui_2.ZERO_ADDRESS,
253
+ });
254
+ return res;
255
+ }
256
+ view.isPrintableChar = isPrintableChar;
257
+ async function isValidChar(client, args) {
258
+ const tx = new transactions_1.TransactionBlock();
259
+ builder.isValidChar(tx, args);
260
+ const res = await client.devInspectTransactionBlock({
261
+ transactionBlock: tx,
262
+ sender: sui_2.ZERO_ADDRESS,
263
+ });
264
+ return res;
265
+ }
266
+ view.isValidChar = isValidChar;
267
+ async function length(client, args) {
268
+ const tx = new transactions_1.TransactionBlock();
269
+ builder.length(tx, args);
270
+ const res = await client.devInspectTransactionBlock({
271
+ transactionBlock: tx,
272
+ sender: sui_2.ZERO_ADDRESS,
273
+ });
274
+ return res;
275
+ }
276
+ view.length = length;
277
+ async function popChar(client, args) {
278
+ const tx = new transactions_1.TransactionBlock();
279
+ builder.popChar(tx, args);
280
+ const res = await client.devInspectTransactionBlock({
281
+ transactionBlock: tx,
282
+ sender: sui_2.ZERO_ADDRESS,
283
+ });
284
+ return res;
285
+ }
286
+ view.popChar = popChar;
287
+ async function pushChar(client, args) {
288
+ const tx = new transactions_1.TransactionBlock();
289
+ builder.pushChar(tx, args);
290
+ const res = await client.devInspectTransactionBlock({
291
+ transactionBlock: tx,
292
+ sender: sui_2.ZERO_ADDRESS,
293
+ });
294
+ return res;
295
+ }
296
+ view.pushChar = pushChar;
297
+ async function string_(client, args) {
298
+ const tx = new transactions_1.TransactionBlock();
299
+ builder.string_(tx, args);
300
+ const res = await client.devInspectTransactionBlock({
301
+ transactionBlock: tx,
302
+ sender: sui_2.ZERO_ADDRESS,
303
+ });
304
+ return res;
305
+ }
306
+ view.string_ = string_;
307
+ async function tryString(client, args) {
308
+ const tx = new transactions_1.TransactionBlock();
309
+ builder.tryString(tx, args);
310
+ const res = await client.devInspectTransactionBlock({
311
+ transactionBlock: tx,
312
+ sender: sui_2.ZERO_ADDRESS,
313
+ });
314
+ return res;
315
+ }
316
+ view.tryString = tryString;
317
+ })(view = ascii.view || (ascii.view = {}));
318
+ })(ascii || (exports.ascii = ascii = {}));
319
+ var bcs;
320
+ (function (bcs) {
321
+ let builder;
322
+ (function (builder) {
323
+ function toBytes(tx, args, typeArguments) {
324
+ const _args = [];
325
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
326
+ // @ts-ignore
327
+ return tx.moveCall({
328
+ target: "0x1::bcs::to_bytes",
329
+ arguments: _args,
330
+ typeArguments: [
331
+ typeof typeArguments[0] === "string"
332
+ ? typeArguments[0]
333
+ : typeArguments[0].getSignature(),
334
+ ],
335
+ });
336
+ }
337
+ builder.toBytes = toBytes;
338
+ })(builder = bcs.builder || (bcs.builder = {}));
339
+ let view;
340
+ (function (view) {
341
+ async function toBytes(client, args, typeArguments) {
342
+ const tx = new transactions_1.TransactionBlock();
343
+ builder.toBytes(tx, args, typeArguments);
344
+ const res = await client.devInspectTransactionBlock({
345
+ transactionBlock: tx,
346
+ sender: sui_2.ZERO_ADDRESS,
347
+ });
348
+ return res;
349
+ }
350
+ view.toBytes = toBytes;
351
+ })(view = bcs.view || (bcs.view = {}));
352
+ })(bcs || (exports.bcs = bcs = {}));
353
+ var bit_vector;
354
+ (function (bit_vector) {
355
+ let BitVector;
356
+ (function (BitVector) {
357
+ BitVector.TYPE_QNAME = "0x1::bit_vector::BitVector";
358
+ const TYPE = new move_1.TypeDescriptor(BitVector.TYPE_QNAME);
359
+ function type() {
360
+ return TYPE.apply();
361
+ }
362
+ BitVector.type = type;
363
+ })(BitVector = bit_vector.BitVector || (bit_vector.BitVector = {}));
364
+ let builder;
365
+ (function (builder) {
366
+ function isIndexSet(tx, args) {
367
+ const _args = [];
368
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
369
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
370
+ // @ts-ignore
371
+ return tx.moveCall({
372
+ target: "0x1::bit_vector::is_index_set",
373
+ arguments: _args,
374
+ });
375
+ }
376
+ builder.isIndexSet = isIndexSet;
377
+ function length(tx, args) {
378
+ const _args = [];
379
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
380
+ // @ts-ignore
381
+ return tx.moveCall({
382
+ target: "0x1::bit_vector::length",
383
+ arguments: _args,
384
+ });
385
+ }
386
+ builder.length = length;
387
+ function longestSetSequenceStartingAt(tx, args) {
388
+ const _args = [];
389
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
390
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
391
+ // @ts-ignore
392
+ return tx.moveCall({
393
+ target: "0x1::bit_vector::longest_set_sequence_starting_at",
394
+ arguments: _args,
395
+ });
396
+ }
397
+ builder.longestSetSequenceStartingAt = longestSetSequenceStartingAt;
398
+ function new_(tx, args) {
399
+ const _args = [];
400
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
401
+ // @ts-ignore
402
+ return tx.moveCall({
403
+ target: "0x1::bit_vector::new",
404
+ arguments: _args,
405
+ });
406
+ }
407
+ builder.new_ = new_;
408
+ function set(tx, args) {
409
+ const _args = [];
410
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
411
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
412
+ // @ts-ignore
413
+ return tx.moveCall({
414
+ target: "0x1::bit_vector::set",
415
+ arguments: _args,
416
+ });
417
+ }
418
+ builder.set = set;
419
+ function shiftLeft(tx, args) {
420
+ const _args = [];
421
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
422
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
423
+ // @ts-ignore
424
+ return tx.moveCall({
425
+ target: "0x1::bit_vector::shift_left",
426
+ arguments: _args,
427
+ });
428
+ }
429
+ builder.shiftLeft = shiftLeft;
430
+ function unset(tx, args) {
431
+ const _args = [];
432
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
433
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
434
+ // @ts-ignore
435
+ return tx.moveCall({
436
+ target: "0x1::bit_vector::unset",
437
+ arguments: _args,
438
+ });
439
+ }
440
+ builder.unset = unset;
441
+ })(builder = bit_vector.builder || (bit_vector.builder = {}));
442
+ let view;
443
+ (function (view) {
444
+ async function isIndexSet(client, args) {
445
+ const tx = new transactions_1.TransactionBlock();
446
+ builder.isIndexSet(tx, args);
447
+ const res = await client.devInspectTransactionBlock({
448
+ transactionBlock: tx,
449
+ sender: sui_2.ZERO_ADDRESS,
450
+ });
451
+ return res;
452
+ }
453
+ view.isIndexSet = isIndexSet;
454
+ async function length(client, args) {
455
+ const tx = new transactions_1.TransactionBlock();
456
+ builder.length(tx, args);
457
+ const res = await client.devInspectTransactionBlock({
458
+ transactionBlock: tx,
459
+ sender: sui_2.ZERO_ADDRESS,
460
+ });
461
+ return res;
462
+ }
463
+ view.length = length;
464
+ async function longestSetSequenceStartingAt(client, args) {
465
+ const tx = new transactions_1.TransactionBlock();
466
+ builder.longestSetSequenceStartingAt(tx, args);
467
+ const res = await client.devInspectTransactionBlock({
468
+ transactionBlock: tx,
469
+ sender: sui_2.ZERO_ADDRESS,
470
+ });
471
+ return res;
472
+ }
473
+ view.longestSetSequenceStartingAt = longestSetSequenceStartingAt;
474
+ async function new_(client, args) {
475
+ const tx = new transactions_1.TransactionBlock();
476
+ builder.new_(tx, args);
477
+ const res = await client.devInspectTransactionBlock({
478
+ transactionBlock: tx,
479
+ sender: sui_2.ZERO_ADDRESS,
480
+ });
481
+ return res;
482
+ }
483
+ view.new_ = new_;
484
+ async function set(client, args) {
485
+ const tx = new transactions_1.TransactionBlock();
486
+ builder.set(tx, args);
487
+ const res = await client.devInspectTransactionBlock({
488
+ transactionBlock: tx,
489
+ sender: sui_2.ZERO_ADDRESS,
490
+ });
491
+ return res;
492
+ }
493
+ view.set = set;
494
+ async function shiftLeft(client, args) {
495
+ const tx = new transactions_1.TransactionBlock();
496
+ builder.shiftLeft(tx, args);
497
+ const res = await client.devInspectTransactionBlock({
498
+ transactionBlock: tx,
499
+ sender: sui_2.ZERO_ADDRESS,
500
+ });
501
+ return res;
502
+ }
503
+ view.shiftLeft = shiftLeft;
504
+ async function unset(client, args) {
505
+ const tx = new transactions_1.TransactionBlock();
506
+ builder.unset(tx, args);
507
+ const res = await client.devInspectTransactionBlock({
508
+ transactionBlock: tx,
509
+ sender: sui_2.ZERO_ADDRESS,
510
+ });
511
+ return res;
512
+ }
513
+ view.unset = unset;
514
+ })(view = bit_vector.view || (bit_vector.view = {}));
515
+ })(bit_vector || (exports.bit_vector = bit_vector = {}));
516
+ var debug;
517
+ (function (debug) {
518
+ let builder;
519
+ (function (builder) {
520
+ function print(tx, args, typeArguments) {
521
+ const _args = [];
522
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
523
+ // @ts-ignore
524
+ return tx.moveCall({
525
+ target: "0x1::debug::print",
526
+ arguments: _args,
527
+ typeArguments: [
528
+ typeof typeArguments[0] === "string"
529
+ ? typeArguments[0]
530
+ : typeArguments[0].getSignature(),
531
+ ],
532
+ });
533
+ }
534
+ builder.print = print;
535
+ function printStackTrace(tx, args) {
536
+ const _args = [];
537
+ // @ts-ignore
538
+ return tx.moveCall({
539
+ target: "0x1::debug::print_stack_trace",
540
+ arguments: _args,
541
+ });
542
+ }
543
+ builder.printStackTrace = printStackTrace;
544
+ })(builder = debug.builder || (debug.builder = {}));
545
+ let view;
546
+ (function (view) {
547
+ async function print(client, args, typeArguments) {
548
+ const tx = new transactions_1.TransactionBlock();
549
+ builder.print(tx, args, typeArguments);
550
+ const res = await client.devInspectTransactionBlock({
551
+ transactionBlock: tx,
552
+ sender: sui_2.ZERO_ADDRESS,
553
+ });
554
+ return res;
555
+ }
556
+ view.print = print;
557
+ async function printStackTrace(client, args) {
558
+ const tx = new transactions_1.TransactionBlock();
559
+ builder.printStackTrace(tx, args);
560
+ const res = await client.devInspectTransactionBlock({
561
+ transactionBlock: tx,
562
+ sender: sui_2.ZERO_ADDRESS,
563
+ });
564
+ return res;
565
+ }
566
+ view.printStackTrace = printStackTrace;
567
+ })(view = debug.view || (debug.view = {}));
568
+ })(debug || (exports.debug = debug = {}));
569
+ var fixed_point32;
570
+ (function (fixed_point32) {
571
+ let FixedPoint32;
572
+ (function (FixedPoint32) {
573
+ FixedPoint32.TYPE_QNAME = "0x1::fixed_point32::FixedPoint32";
574
+ const TYPE = new move_1.TypeDescriptor(FixedPoint32.TYPE_QNAME);
575
+ function type() {
576
+ return TYPE.apply();
577
+ }
578
+ FixedPoint32.type = type;
579
+ })(FixedPoint32 = fixed_point32.FixedPoint32 || (fixed_point32.FixedPoint32 = {}));
580
+ let builder;
581
+ (function (builder) {
582
+ function createFromRational(tx, args) {
583
+ const _args = [];
584
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
585
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
586
+ // @ts-ignore
587
+ return tx.moveCall({
588
+ target: "0x1::fixed_point32::create_from_rational",
589
+ arguments: _args,
590
+ });
591
+ }
592
+ builder.createFromRational = createFromRational;
593
+ function createFromRawValue(tx, args) {
594
+ const _args = [];
595
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
596
+ // @ts-ignore
597
+ return tx.moveCall({
598
+ target: "0x1::fixed_point32::create_from_raw_value",
599
+ arguments: _args,
600
+ });
601
+ }
602
+ builder.createFromRawValue = createFromRawValue;
603
+ function divideU64(tx, args) {
604
+ const _args = [];
605
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
606
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
607
+ // @ts-ignore
608
+ return tx.moveCall({
609
+ target: "0x1::fixed_point32::divide_u64",
610
+ arguments: _args,
611
+ });
612
+ }
613
+ builder.divideU64 = divideU64;
614
+ function getRawValue(tx, args) {
615
+ const _args = [];
616
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
617
+ // @ts-ignore
618
+ return tx.moveCall({
619
+ target: "0x1::fixed_point32::get_raw_value",
620
+ arguments: _args,
621
+ });
622
+ }
623
+ builder.getRawValue = getRawValue;
624
+ function isZero(tx, args) {
625
+ const _args = [];
626
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
627
+ // @ts-ignore
628
+ return tx.moveCall({
629
+ target: "0x1::fixed_point32::is_zero",
630
+ arguments: _args,
631
+ });
632
+ }
633
+ builder.isZero = isZero;
634
+ function multiplyU64(tx, args) {
635
+ const _args = [];
636
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
637
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
638
+ // @ts-ignore
639
+ return tx.moveCall({
640
+ target: "0x1::fixed_point32::multiply_u64",
641
+ arguments: _args,
642
+ });
643
+ }
644
+ builder.multiplyU64 = multiplyU64;
645
+ })(builder = fixed_point32.builder || (fixed_point32.builder = {}));
646
+ let view;
647
+ (function (view) {
648
+ async function createFromRational(client, args) {
649
+ const tx = new transactions_1.TransactionBlock();
650
+ builder.createFromRational(tx, args);
651
+ const res = await client.devInspectTransactionBlock({
652
+ transactionBlock: tx,
653
+ sender: sui_2.ZERO_ADDRESS,
654
+ });
655
+ return res;
656
+ }
657
+ view.createFromRational = createFromRational;
658
+ async function createFromRawValue(client, args) {
659
+ const tx = new transactions_1.TransactionBlock();
660
+ builder.createFromRawValue(tx, args);
661
+ const res = await client.devInspectTransactionBlock({
662
+ transactionBlock: tx,
663
+ sender: sui_2.ZERO_ADDRESS,
664
+ });
665
+ return res;
666
+ }
667
+ view.createFromRawValue = createFromRawValue;
668
+ async function divideU64(client, args) {
669
+ const tx = new transactions_1.TransactionBlock();
670
+ builder.divideU64(tx, args);
671
+ const res = await client.devInspectTransactionBlock({
672
+ transactionBlock: tx,
673
+ sender: sui_2.ZERO_ADDRESS,
674
+ });
675
+ return res;
676
+ }
677
+ view.divideU64 = divideU64;
678
+ async function getRawValue(client, args) {
679
+ const tx = new transactions_1.TransactionBlock();
680
+ builder.getRawValue(tx, args);
681
+ const res = await client.devInspectTransactionBlock({
682
+ transactionBlock: tx,
683
+ sender: sui_2.ZERO_ADDRESS,
684
+ });
685
+ return res;
686
+ }
687
+ view.getRawValue = getRawValue;
688
+ async function isZero(client, args) {
689
+ const tx = new transactions_1.TransactionBlock();
690
+ builder.isZero(tx, args);
691
+ const res = await client.devInspectTransactionBlock({
692
+ transactionBlock: tx,
693
+ sender: sui_2.ZERO_ADDRESS,
694
+ });
695
+ return res;
696
+ }
697
+ view.isZero = isZero;
698
+ async function multiplyU64(client, args) {
699
+ const tx = new transactions_1.TransactionBlock();
700
+ builder.multiplyU64(tx, args);
701
+ const res = await client.devInspectTransactionBlock({
702
+ transactionBlock: tx,
703
+ sender: sui_2.ZERO_ADDRESS,
704
+ });
705
+ return res;
706
+ }
707
+ view.multiplyU64 = multiplyU64;
708
+ })(view = fixed_point32.view || (fixed_point32.view = {}));
709
+ })(fixed_point32 || (exports.fixed_point32 = fixed_point32 = {}));
710
+ var hash;
711
+ (function (hash) {
712
+ let builder;
713
+ (function (builder) {
714
+ function sha2256(tx, args) {
715
+ const _args = [];
716
+ _args.push(sui_js_1.TransactionArgument.is(args[0])
717
+ ? args[0]
718
+ : tx.makeMoveVec({
719
+ objects: args[0].map((a) => tx.object(a)),
720
+ // type: TODO
721
+ }));
722
+ // @ts-ignore
723
+ return tx.moveCall({
724
+ target: "0x1::hash::sha2_256",
725
+ arguments: _args,
726
+ });
727
+ }
728
+ builder.sha2256 = sha2256;
729
+ function sha3256(tx, args) {
730
+ const _args = [];
731
+ _args.push(sui_js_1.TransactionArgument.is(args[0])
732
+ ? args[0]
733
+ : tx.makeMoveVec({
734
+ objects: args[0].map((a) => tx.object(a)),
735
+ // type: TODO
736
+ }));
737
+ // @ts-ignore
738
+ return tx.moveCall({
739
+ target: "0x1::hash::sha3_256",
740
+ arguments: _args,
741
+ });
742
+ }
743
+ builder.sha3256 = sha3256;
744
+ })(builder = hash.builder || (hash.builder = {}));
745
+ let view;
746
+ (function (view) {
747
+ async function sha2256(client, args) {
748
+ const tx = new transactions_1.TransactionBlock();
749
+ builder.sha2256(tx, args);
750
+ const res = await client.devInspectTransactionBlock({
751
+ transactionBlock: tx,
752
+ sender: sui_2.ZERO_ADDRESS,
753
+ });
754
+ return res;
755
+ }
756
+ view.sha2256 = sha2256;
757
+ async function sha3256(client, args) {
758
+ const tx = new transactions_1.TransactionBlock();
759
+ builder.sha3256(tx, args);
760
+ const res = await client.devInspectTransactionBlock({
761
+ transactionBlock: tx,
762
+ sender: sui_2.ZERO_ADDRESS,
763
+ });
764
+ return res;
765
+ }
766
+ view.sha3256 = sha3256;
767
+ })(view = hash.view || (hash.view = {}));
768
+ })(hash || (exports.hash = hash = {}));
769
+ var option;
770
+ (function (option) {
771
+ let Option;
772
+ (function (Option) {
773
+ Option.TYPE_QNAME = "0x1::option::Option";
774
+ const TYPE = new move_1.TypeDescriptor(Option.TYPE_QNAME);
775
+ function type(arg0 = move_1.ANY_TYPE) {
776
+ return TYPE.apply(arg0);
777
+ }
778
+ Option.type = type;
779
+ })(Option = option.Option || (option.Option = {}));
780
+ let builder;
781
+ (function (builder) {
782
+ function borrow(tx, args, typeArguments) {
783
+ const _args = [];
784
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
785
+ // @ts-ignore
786
+ return tx.moveCall({
787
+ target: "0x1::option::borrow",
788
+ arguments: _args,
789
+ typeArguments: [
790
+ typeof typeArguments[0] === "string"
791
+ ? typeArguments[0]
792
+ : typeArguments[0].getSignature(),
793
+ ],
794
+ });
795
+ }
796
+ builder.borrow = borrow;
797
+ function borrowMut(tx, args, typeArguments) {
798
+ const _args = [];
799
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
800
+ // @ts-ignore
801
+ return tx.moveCall({
802
+ target: "0x1::option::borrow_mut",
803
+ arguments: _args,
804
+ typeArguments: [
805
+ typeof typeArguments[0] === "string"
806
+ ? typeArguments[0]
807
+ : typeArguments[0].getSignature(),
808
+ ],
809
+ });
810
+ }
811
+ builder.borrowMut = borrowMut;
812
+ function borrowWithDefault(tx, args, typeArguments) {
813
+ const _args = [];
814
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
815
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]));
816
+ // @ts-ignore
817
+ return tx.moveCall({
818
+ target: "0x1::option::borrow_with_default",
819
+ arguments: _args,
820
+ typeArguments: [
821
+ typeof typeArguments[0] === "string"
822
+ ? typeArguments[0]
823
+ : typeArguments[0].getSignature(),
824
+ ],
825
+ });
826
+ }
827
+ builder.borrowWithDefault = borrowWithDefault;
828
+ function contains(tx, args, typeArguments) {
829
+ const _args = [];
830
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
831
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]));
832
+ // @ts-ignore
833
+ return tx.moveCall({
834
+ target: "0x1::option::contains",
835
+ arguments: _args,
836
+ typeArguments: [
837
+ typeof typeArguments[0] === "string"
838
+ ? typeArguments[0]
839
+ : typeArguments[0].getSignature(),
840
+ ],
841
+ });
842
+ }
843
+ builder.contains = contains;
844
+ function destroyNone(tx, args, typeArguments) {
845
+ const _args = [];
846
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
847
+ // @ts-ignore
848
+ return tx.moveCall({
849
+ target: "0x1::option::destroy_none",
850
+ arguments: _args,
851
+ typeArguments: [
852
+ typeof typeArguments[0] === "string"
853
+ ? typeArguments[0]
854
+ : typeArguments[0].getSignature(),
855
+ ],
856
+ });
857
+ }
858
+ builder.destroyNone = destroyNone;
859
+ function destroySome(tx, args, typeArguments) {
860
+ const _args = [];
861
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
862
+ // @ts-ignore
863
+ return tx.moveCall({
864
+ target: "0x1::option::destroy_some",
865
+ arguments: _args,
866
+ typeArguments: [
867
+ typeof typeArguments[0] === "string"
868
+ ? typeArguments[0]
869
+ : typeArguments[0].getSignature(),
870
+ ],
871
+ });
872
+ }
873
+ builder.destroySome = destroySome;
874
+ function destroyWithDefault(tx, args, typeArguments) {
875
+ const _args = [];
876
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
877
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
878
+ // @ts-ignore
879
+ return tx.moveCall({
880
+ target: "0x1::option::destroy_with_default",
881
+ arguments: _args,
882
+ typeArguments: [
883
+ typeof typeArguments[0] === "string"
884
+ ? typeArguments[0]
885
+ : typeArguments[0].getSignature(),
886
+ ],
887
+ });
888
+ }
889
+ builder.destroyWithDefault = destroyWithDefault;
890
+ function extract(tx, args, typeArguments) {
891
+ const _args = [];
892
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
893
+ // @ts-ignore
894
+ return tx.moveCall({
895
+ target: "0x1::option::extract",
896
+ arguments: _args,
897
+ typeArguments: [
898
+ typeof typeArguments[0] === "string"
899
+ ? typeArguments[0]
900
+ : typeArguments[0].getSignature(),
901
+ ],
902
+ });
903
+ }
904
+ builder.extract = extract;
905
+ function fill(tx, args, typeArguments) {
906
+ const _args = [];
907
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
908
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
909
+ // @ts-ignore
910
+ return tx.moveCall({
911
+ target: "0x1::option::fill",
912
+ arguments: _args,
913
+ typeArguments: [
914
+ typeof typeArguments[0] === "string"
915
+ ? typeArguments[0]
916
+ : typeArguments[0].getSignature(),
917
+ ],
918
+ });
919
+ }
920
+ builder.fill = fill;
921
+ function getWithDefault(tx, args, typeArguments) {
922
+ const _args = [];
923
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
924
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
925
+ // @ts-ignore
926
+ return tx.moveCall({
927
+ target: "0x1::option::get_with_default",
928
+ arguments: _args,
929
+ typeArguments: [
930
+ typeof typeArguments[0] === "string"
931
+ ? typeArguments[0]
932
+ : typeArguments[0].getSignature(),
933
+ ],
934
+ });
935
+ }
936
+ builder.getWithDefault = getWithDefault;
937
+ function isNone(tx, args, typeArguments) {
938
+ const _args = [];
939
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
940
+ // @ts-ignore
941
+ return tx.moveCall({
942
+ target: "0x1::option::is_none",
943
+ arguments: _args,
944
+ typeArguments: [
945
+ typeof typeArguments[0] === "string"
946
+ ? typeArguments[0]
947
+ : typeArguments[0].getSignature(),
948
+ ],
949
+ });
950
+ }
951
+ builder.isNone = isNone;
952
+ function isSome(tx, args, typeArguments) {
953
+ const _args = [];
954
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
955
+ // @ts-ignore
956
+ return tx.moveCall({
957
+ target: "0x1::option::is_some",
958
+ arguments: _args,
959
+ typeArguments: [
960
+ typeof typeArguments[0] === "string"
961
+ ? typeArguments[0]
962
+ : typeArguments[0].getSignature(),
963
+ ],
964
+ });
965
+ }
966
+ builder.isSome = isSome;
967
+ function none(tx, args, typeArguments) {
968
+ const _args = [];
969
+ // @ts-ignore
970
+ return tx.moveCall({
971
+ target: "0x1::option::none",
972
+ arguments: _args,
973
+ typeArguments: [
974
+ typeof typeArguments[0] === "string"
975
+ ? typeArguments[0]
976
+ : typeArguments[0].getSignature(),
977
+ ],
978
+ });
979
+ }
980
+ builder.none = none;
981
+ function some(tx, args, typeArguments) {
982
+ const _args = [];
983
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
984
+ // @ts-ignore
985
+ return tx.moveCall({
986
+ target: "0x1::option::some",
987
+ arguments: _args,
988
+ typeArguments: [
989
+ typeof typeArguments[0] === "string"
990
+ ? typeArguments[0]
991
+ : typeArguments[0].getSignature(),
992
+ ],
993
+ });
994
+ }
995
+ builder.some = some;
996
+ function swap(tx, args, typeArguments) {
997
+ const _args = [];
998
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
999
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1000
+ // @ts-ignore
1001
+ return tx.moveCall({
1002
+ target: "0x1::option::swap",
1003
+ arguments: _args,
1004
+ typeArguments: [
1005
+ typeof typeArguments[0] === "string"
1006
+ ? typeArguments[0]
1007
+ : typeArguments[0].getSignature(),
1008
+ ],
1009
+ });
1010
+ }
1011
+ builder.swap = swap;
1012
+ function swapOrFill(tx, args, typeArguments) {
1013
+ const _args = [];
1014
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1015
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1016
+ // @ts-ignore
1017
+ return tx.moveCall({
1018
+ target: "0x1::option::swap_or_fill",
1019
+ arguments: _args,
1020
+ typeArguments: [
1021
+ typeof typeArguments[0] === "string"
1022
+ ? typeArguments[0]
1023
+ : typeArguments[0].getSignature(),
1024
+ ],
1025
+ });
1026
+ }
1027
+ builder.swapOrFill = swapOrFill;
1028
+ function toVec(tx, args, typeArguments) {
1029
+ const _args = [];
1030
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1031
+ // @ts-ignore
1032
+ return tx.moveCall({
1033
+ target: "0x1::option::to_vec",
1034
+ arguments: _args,
1035
+ typeArguments: [
1036
+ typeof typeArguments[0] === "string"
1037
+ ? typeArguments[0]
1038
+ : typeArguments[0].getSignature(),
1039
+ ],
1040
+ });
1041
+ }
1042
+ builder.toVec = toVec;
1043
+ })(builder = option.builder || (option.builder = {}));
1044
+ let view;
1045
+ (function (view) {
1046
+ async function borrow(client, args, typeArguments) {
1047
+ const tx = new transactions_1.TransactionBlock();
1048
+ builder.borrow(tx, args, typeArguments);
1049
+ const res = await client.devInspectTransactionBlock({
1050
+ transactionBlock: tx,
1051
+ sender: sui_2.ZERO_ADDRESS,
1052
+ });
1053
+ return res;
1054
+ }
1055
+ view.borrow = borrow;
1056
+ async function borrowMut(client, args, typeArguments) {
1057
+ const tx = new transactions_1.TransactionBlock();
1058
+ builder.borrowMut(tx, args, typeArguments);
1059
+ const res = await client.devInspectTransactionBlock({
1060
+ transactionBlock: tx,
1061
+ sender: sui_2.ZERO_ADDRESS,
1062
+ });
1063
+ return res;
1064
+ }
1065
+ view.borrowMut = borrowMut;
1066
+ async function borrowWithDefault(client, args, typeArguments) {
1067
+ const tx = new transactions_1.TransactionBlock();
1068
+ builder.borrowWithDefault(tx, args, typeArguments);
1069
+ const res = await client.devInspectTransactionBlock({
1070
+ transactionBlock: tx,
1071
+ sender: sui_2.ZERO_ADDRESS,
1072
+ });
1073
+ return res;
1074
+ }
1075
+ view.borrowWithDefault = borrowWithDefault;
1076
+ async function contains(client, args, typeArguments) {
1077
+ const tx = new transactions_1.TransactionBlock();
1078
+ builder.contains(tx, args, typeArguments);
1079
+ const res = await client.devInspectTransactionBlock({
1080
+ transactionBlock: tx,
1081
+ sender: sui_2.ZERO_ADDRESS,
1082
+ });
1083
+ return res;
1084
+ }
1085
+ view.contains = contains;
1086
+ async function destroyNone(client, args, typeArguments) {
1087
+ const tx = new transactions_1.TransactionBlock();
1088
+ builder.destroyNone(tx, args, typeArguments);
1089
+ const res = await client.devInspectTransactionBlock({
1090
+ transactionBlock: tx,
1091
+ sender: sui_2.ZERO_ADDRESS,
1092
+ });
1093
+ return res;
1094
+ }
1095
+ view.destroyNone = destroyNone;
1096
+ async function destroySome(client, args, typeArguments) {
1097
+ const tx = new transactions_1.TransactionBlock();
1098
+ builder.destroySome(tx, args, typeArguments);
1099
+ const res = await client.devInspectTransactionBlock({
1100
+ transactionBlock: tx,
1101
+ sender: sui_2.ZERO_ADDRESS,
1102
+ });
1103
+ return res;
1104
+ }
1105
+ view.destroySome = destroySome;
1106
+ async function destroyWithDefault(client, args, typeArguments) {
1107
+ const tx = new transactions_1.TransactionBlock();
1108
+ builder.destroyWithDefault(tx, args, typeArguments);
1109
+ const res = await client.devInspectTransactionBlock({
1110
+ transactionBlock: tx,
1111
+ sender: sui_2.ZERO_ADDRESS,
1112
+ });
1113
+ return res;
1114
+ }
1115
+ view.destroyWithDefault = destroyWithDefault;
1116
+ async function extract(client, args, typeArguments) {
1117
+ const tx = new transactions_1.TransactionBlock();
1118
+ builder.extract(tx, args, typeArguments);
1119
+ const res = await client.devInspectTransactionBlock({
1120
+ transactionBlock: tx,
1121
+ sender: sui_2.ZERO_ADDRESS,
1122
+ });
1123
+ return res;
1124
+ }
1125
+ view.extract = extract;
1126
+ async function fill(client, args, typeArguments) {
1127
+ const tx = new transactions_1.TransactionBlock();
1128
+ builder.fill(tx, args, typeArguments);
1129
+ const res = await client.devInspectTransactionBlock({
1130
+ transactionBlock: tx,
1131
+ sender: sui_2.ZERO_ADDRESS,
1132
+ });
1133
+ return res;
1134
+ }
1135
+ view.fill = fill;
1136
+ async function getWithDefault(client, args, typeArguments) {
1137
+ const tx = new transactions_1.TransactionBlock();
1138
+ builder.getWithDefault(tx, args, typeArguments);
1139
+ const res = await client.devInspectTransactionBlock({
1140
+ transactionBlock: tx,
1141
+ sender: sui_2.ZERO_ADDRESS,
1142
+ });
1143
+ return res;
1144
+ }
1145
+ view.getWithDefault = getWithDefault;
1146
+ async function isNone(client, args, typeArguments) {
1147
+ const tx = new transactions_1.TransactionBlock();
1148
+ builder.isNone(tx, args, typeArguments);
1149
+ const res = await client.devInspectTransactionBlock({
1150
+ transactionBlock: tx,
1151
+ sender: sui_2.ZERO_ADDRESS,
1152
+ });
1153
+ return res;
1154
+ }
1155
+ view.isNone = isNone;
1156
+ async function isSome(client, args, typeArguments) {
1157
+ const tx = new transactions_1.TransactionBlock();
1158
+ builder.isSome(tx, args, typeArguments);
1159
+ const res = await client.devInspectTransactionBlock({
1160
+ transactionBlock: tx,
1161
+ sender: sui_2.ZERO_ADDRESS,
1162
+ });
1163
+ return res;
1164
+ }
1165
+ view.isSome = isSome;
1166
+ async function none(client, args, typeArguments) {
1167
+ const tx = new transactions_1.TransactionBlock();
1168
+ builder.none(tx, args, typeArguments);
1169
+ const res = await client.devInspectTransactionBlock({
1170
+ transactionBlock: tx,
1171
+ sender: sui_2.ZERO_ADDRESS,
1172
+ });
1173
+ return res;
1174
+ }
1175
+ view.none = none;
1176
+ async function some(client, args, typeArguments) {
1177
+ const tx = new transactions_1.TransactionBlock();
1178
+ builder.some(tx, args, typeArguments);
1179
+ const res = await client.devInspectTransactionBlock({
1180
+ transactionBlock: tx,
1181
+ sender: sui_2.ZERO_ADDRESS,
1182
+ });
1183
+ return res;
1184
+ }
1185
+ view.some = some;
1186
+ async function swap(client, args, typeArguments) {
1187
+ const tx = new transactions_1.TransactionBlock();
1188
+ builder.swap(tx, args, typeArguments);
1189
+ const res = await client.devInspectTransactionBlock({
1190
+ transactionBlock: tx,
1191
+ sender: sui_2.ZERO_ADDRESS,
1192
+ });
1193
+ return res;
1194
+ }
1195
+ view.swap = swap;
1196
+ async function swapOrFill(client, args, typeArguments) {
1197
+ const tx = new transactions_1.TransactionBlock();
1198
+ builder.swapOrFill(tx, args, typeArguments);
1199
+ const res = await client.devInspectTransactionBlock({
1200
+ transactionBlock: tx,
1201
+ sender: sui_2.ZERO_ADDRESS,
1202
+ });
1203
+ return res;
1204
+ }
1205
+ view.swapOrFill = swapOrFill;
1206
+ async function toVec(client, args, typeArguments) {
1207
+ const tx = new transactions_1.TransactionBlock();
1208
+ builder.toVec(tx, args, typeArguments);
1209
+ const res = await client.devInspectTransactionBlock({
1210
+ transactionBlock: tx,
1211
+ sender: sui_2.ZERO_ADDRESS,
1212
+ });
1213
+ return res;
1214
+ }
1215
+ view.toVec = toVec;
1216
+ })(view = option.view || (option.view = {}));
1217
+ })(option || (exports.option = option = {}));
1218
+ var string_;
1219
+ (function (string_) {
1220
+ let String;
1221
+ (function (String) {
1222
+ String.TYPE_QNAME = "0x1::string::String";
1223
+ const TYPE = new move_1.TypeDescriptor(String.TYPE_QNAME);
1224
+ function type() {
1225
+ return TYPE.apply();
1226
+ }
1227
+ String.type = type;
1228
+ })(String = string_.String || (string_.String = {}));
1229
+ let builder;
1230
+ (function (builder) {
1231
+ function append(tx, args) {
1232
+ const _args = [];
1233
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1234
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1235
+ // @ts-ignore
1236
+ return tx.moveCall({
1237
+ target: "0x1::string::append",
1238
+ arguments: _args,
1239
+ });
1240
+ }
1241
+ builder.append = append;
1242
+ function appendUtf8(tx, args) {
1243
+ const _args = [];
1244
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1245
+ _args.push(sui_js_1.TransactionArgument.is(args[1])
1246
+ ? args[1]
1247
+ : tx.makeMoveVec({
1248
+ objects: args[1].map((a) => tx.object(a)),
1249
+ // type: TODO
1250
+ }));
1251
+ // @ts-ignore
1252
+ return tx.moveCall({
1253
+ target: "0x1::string::append_utf8",
1254
+ arguments: _args,
1255
+ });
1256
+ }
1257
+ builder.appendUtf8 = appendUtf8;
1258
+ function bytes(tx, args) {
1259
+ const _args = [];
1260
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1261
+ // @ts-ignore
1262
+ return tx.moveCall({
1263
+ target: "0x1::string::bytes",
1264
+ arguments: _args,
1265
+ });
1266
+ }
1267
+ builder.bytes = bytes;
1268
+ function fromAscii(tx, args) {
1269
+ const _args = [];
1270
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1271
+ // @ts-ignore
1272
+ return tx.moveCall({
1273
+ target: "0x1::string::from_ascii",
1274
+ arguments: _args,
1275
+ });
1276
+ }
1277
+ builder.fromAscii = fromAscii;
1278
+ function indexOf(tx, args) {
1279
+ const _args = [];
1280
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1281
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]));
1282
+ // @ts-ignore
1283
+ return tx.moveCall({
1284
+ target: "0x1::string::index_of",
1285
+ arguments: _args,
1286
+ });
1287
+ }
1288
+ builder.indexOf = indexOf;
1289
+ function insert(tx, args) {
1290
+ const _args = [];
1291
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1292
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1293
+ _args.push(sui_js_1.TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1294
+ // @ts-ignore
1295
+ return tx.moveCall({
1296
+ target: "0x1::string::insert",
1297
+ arguments: _args,
1298
+ });
1299
+ }
1300
+ builder.insert = insert;
1301
+ function isEmpty(tx, args) {
1302
+ const _args = [];
1303
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1304
+ // @ts-ignore
1305
+ return tx.moveCall({
1306
+ target: "0x1::string::is_empty",
1307
+ arguments: _args,
1308
+ });
1309
+ }
1310
+ builder.isEmpty = isEmpty;
1311
+ function length(tx, args) {
1312
+ const _args = [];
1313
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1314
+ // @ts-ignore
1315
+ return tx.moveCall({
1316
+ target: "0x1::string::length",
1317
+ arguments: _args,
1318
+ });
1319
+ }
1320
+ builder.length = length;
1321
+ function subString(tx, args) {
1322
+ const _args = [];
1323
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1324
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1325
+ _args.push(sui_js_1.TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1326
+ // @ts-ignore
1327
+ return tx.moveCall({
1328
+ target: "0x1::string::sub_string",
1329
+ arguments: _args,
1330
+ });
1331
+ }
1332
+ builder.subString = subString;
1333
+ function toAscii(tx, args) {
1334
+ const _args = [];
1335
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1336
+ // @ts-ignore
1337
+ return tx.moveCall({
1338
+ target: "0x1::string::to_ascii",
1339
+ arguments: _args,
1340
+ });
1341
+ }
1342
+ builder.toAscii = toAscii;
1343
+ function tryUtf8(tx, args) {
1344
+ const _args = [];
1345
+ _args.push(sui_js_1.TransactionArgument.is(args[0])
1346
+ ? args[0]
1347
+ : tx.makeMoveVec({
1348
+ objects: args[0].map((a) => tx.object(a)),
1349
+ // type: TODO
1350
+ }));
1351
+ // @ts-ignore
1352
+ return tx.moveCall({
1353
+ target: "0x1::string::try_utf8",
1354
+ arguments: _args,
1355
+ });
1356
+ }
1357
+ builder.tryUtf8 = tryUtf8;
1358
+ function utf8(tx, args) {
1359
+ const _args = [];
1360
+ _args.push(sui_js_1.TransactionArgument.is(args[0])
1361
+ ? args[0]
1362
+ : tx.makeMoveVec({
1363
+ objects: args[0].map((a) => tx.object(a)),
1364
+ // type: TODO
1365
+ }));
1366
+ // @ts-ignore
1367
+ return tx.moveCall({
1368
+ target: "0x1::string::utf8",
1369
+ arguments: _args,
1370
+ });
1371
+ }
1372
+ builder.utf8 = utf8;
1373
+ })(builder = string_.builder || (string_.builder = {}));
1374
+ let view;
1375
+ (function (view) {
1376
+ async function append(client, args) {
1377
+ const tx = new transactions_1.TransactionBlock();
1378
+ builder.append(tx, args);
1379
+ const res = await client.devInspectTransactionBlock({
1380
+ transactionBlock: tx,
1381
+ sender: sui_2.ZERO_ADDRESS,
1382
+ });
1383
+ return res;
1384
+ }
1385
+ view.append = append;
1386
+ async function appendUtf8(client, args) {
1387
+ const tx = new transactions_1.TransactionBlock();
1388
+ builder.appendUtf8(tx, args);
1389
+ const res = await client.devInspectTransactionBlock({
1390
+ transactionBlock: tx,
1391
+ sender: sui_2.ZERO_ADDRESS,
1392
+ });
1393
+ return res;
1394
+ }
1395
+ view.appendUtf8 = appendUtf8;
1396
+ async function bytes(client, args) {
1397
+ const tx = new transactions_1.TransactionBlock();
1398
+ builder.bytes(tx, args);
1399
+ const res = await client.devInspectTransactionBlock({
1400
+ transactionBlock: tx,
1401
+ sender: sui_2.ZERO_ADDRESS,
1402
+ });
1403
+ return res;
1404
+ }
1405
+ view.bytes = bytes;
1406
+ async function fromAscii(client, args) {
1407
+ const tx = new transactions_1.TransactionBlock();
1408
+ builder.fromAscii(tx, args);
1409
+ const res = await client.devInspectTransactionBlock({
1410
+ transactionBlock: tx,
1411
+ sender: sui_2.ZERO_ADDRESS,
1412
+ });
1413
+ return res;
1414
+ }
1415
+ view.fromAscii = fromAscii;
1416
+ async function indexOf(client, args) {
1417
+ const tx = new transactions_1.TransactionBlock();
1418
+ builder.indexOf(tx, args);
1419
+ const res = await client.devInspectTransactionBlock({
1420
+ transactionBlock: tx,
1421
+ sender: sui_2.ZERO_ADDRESS,
1422
+ });
1423
+ return res;
1424
+ }
1425
+ view.indexOf = indexOf;
1426
+ async function insert(client, args) {
1427
+ const tx = new transactions_1.TransactionBlock();
1428
+ builder.insert(tx, args);
1429
+ const res = await client.devInspectTransactionBlock({
1430
+ transactionBlock: tx,
1431
+ sender: sui_2.ZERO_ADDRESS,
1432
+ });
1433
+ return res;
1434
+ }
1435
+ view.insert = insert;
1436
+ async function isEmpty(client, args) {
1437
+ const tx = new transactions_1.TransactionBlock();
1438
+ builder.isEmpty(tx, args);
1439
+ const res = await client.devInspectTransactionBlock({
1440
+ transactionBlock: tx,
1441
+ sender: sui_2.ZERO_ADDRESS,
1442
+ });
1443
+ return res;
1444
+ }
1445
+ view.isEmpty = isEmpty;
1446
+ async function length(client, args) {
1447
+ const tx = new transactions_1.TransactionBlock();
1448
+ builder.length(tx, args);
1449
+ const res = await client.devInspectTransactionBlock({
1450
+ transactionBlock: tx,
1451
+ sender: sui_2.ZERO_ADDRESS,
1452
+ });
1453
+ return res;
1454
+ }
1455
+ view.length = length;
1456
+ async function subString(client, args) {
1457
+ const tx = new transactions_1.TransactionBlock();
1458
+ builder.subString(tx, args);
1459
+ const res = await client.devInspectTransactionBlock({
1460
+ transactionBlock: tx,
1461
+ sender: sui_2.ZERO_ADDRESS,
1462
+ });
1463
+ return res;
1464
+ }
1465
+ view.subString = subString;
1466
+ async function toAscii(client, args) {
1467
+ const tx = new transactions_1.TransactionBlock();
1468
+ builder.toAscii(tx, args);
1469
+ const res = await client.devInspectTransactionBlock({
1470
+ transactionBlock: tx,
1471
+ sender: sui_2.ZERO_ADDRESS,
1472
+ });
1473
+ return res;
1474
+ }
1475
+ view.toAscii = toAscii;
1476
+ async function tryUtf8(client, args) {
1477
+ const tx = new transactions_1.TransactionBlock();
1478
+ builder.tryUtf8(tx, args);
1479
+ const res = await client.devInspectTransactionBlock({
1480
+ transactionBlock: tx,
1481
+ sender: sui_2.ZERO_ADDRESS,
1482
+ });
1483
+ return res;
1484
+ }
1485
+ view.tryUtf8 = tryUtf8;
1486
+ async function utf8(client, args) {
1487
+ const tx = new transactions_1.TransactionBlock();
1488
+ builder.utf8(tx, args);
1489
+ const res = await client.devInspectTransactionBlock({
1490
+ transactionBlock: tx,
1491
+ sender: sui_2.ZERO_ADDRESS,
1492
+ });
1493
+ return res;
1494
+ }
1495
+ view.utf8 = utf8;
1496
+ })(view = string_.view || (string_.view = {}));
1497
+ })(string_ || (exports.string_ = string_ = {}));
1498
+ var type_name;
1499
+ (function (type_name) {
1500
+ let TypeName;
1501
+ (function (TypeName) {
1502
+ TypeName.TYPE_QNAME = "0x1::type_name::TypeName";
1503
+ const TYPE = new move_1.TypeDescriptor(TypeName.TYPE_QNAME);
1504
+ function type() {
1505
+ return TYPE.apply();
1506
+ }
1507
+ TypeName.type = type;
1508
+ })(TypeName = type_name.TypeName || (type_name.TypeName = {}));
1509
+ let builder;
1510
+ (function (builder) {
1511
+ function borrowString(tx, args) {
1512
+ const _args = [];
1513
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1514
+ // @ts-ignore
1515
+ return tx.moveCall({
1516
+ target: "0x1::type_name::borrow_string",
1517
+ arguments: _args,
1518
+ });
1519
+ }
1520
+ builder.borrowString = borrowString;
1521
+ function get(tx, args, typeArguments) {
1522
+ const _args = [];
1523
+ // @ts-ignore
1524
+ return tx.moveCall({
1525
+ target: "0x1::type_name::get",
1526
+ arguments: _args,
1527
+ typeArguments: [
1528
+ typeof typeArguments[0] === "string"
1529
+ ? typeArguments[0]
1530
+ : typeArguments[0].getSignature(),
1531
+ ],
1532
+ });
1533
+ }
1534
+ builder.get = get;
1535
+ function getAddress(tx, args) {
1536
+ const _args = [];
1537
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1538
+ // @ts-ignore
1539
+ return tx.moveCall({
1540
+ target: "0x1::type_name::get_address",
1541
+ arguments: _args,
1542
+ });
1543
+ }
1544
+ builder.getAddress = getAddress;
1545
+ function getModule(tx, args) {
1546
+ const _args = [];
1547
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1548
+ // @ts-ignore
1549
+ return tx.moveCall({
1550
+ target: "0x1::type_name::get_module",
1551
+ arguments: _args,
1552
+ });
1553
+ }
1554
+ builder.getModule = getModule;
1555
+ function intoString(tx, args) {
1556
+ const _args = [];
1557
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1558
+ // @ts-ignore
1559
+ return tx.moveCall({
1560
+ target: "0x1::type_name::into_string",
1561
+ arguments: _args,
1562
+ });
1563
+ }
1564
+ builder.intoString = intoString;
1565
+ })(builder = type_name.builder || (type_name.builder = {}));
1566
+ let view;
1567
+ (function (view) {
1568
+ async function borrowString(client, args) {
1569
+ const tx = new transactions_1.TransactionBlock();
1570
+ builder.borrowString(tx, args);
1571
+ const res = await client.devInspectTransactionBlock({
1572
+ transactionBlock: tx,
1573
+ sender: sui_2.ZERO_ADDRESS,
1574
+ });
1575
+ return res;
1576
+ }
1577
+ view.borrowString = borrowString;
1578
+ async function get(client, args, typeArguments) {
1579
+ const tx = new transactions_1.TransactionBlock();
1580
+ builder.get(tx, args, typeArguments);
1581
+ const res = await client.devInspectTransactionBlock({
1582
+ transactionBlock: tx,
1583
+ sender: sui_2.ZERO_ADDRESS,
1584
+ });
1585
+ return res;
1586
+ }
1587
+ view.get = get;
1588
+ async function getAddress(client, args) {
1589
+ const tx = new transactions_1.TransactionBlock();
1590
+ builder.getAddress(tx, args);
1591
+ const res = await client.devInspectTransactionBlock({
1592
+ transactionBlock: tx,
1593
+ sender: sui_2.ZERO_ADDRESS,
1594
+ });
1595
+ return res;
1596
+ }
1597
+ view.getAddress = getAddress;
1598
+ async function getModule(client, args) {
1599
+ const tx = new transactions_1.TransactionBlock();
1600
+ builder.getModule(tx, args);
1601
+ const res = await client.devInspectTransactionBlock({
1602
+ transactionBlock: tx,
1603
+ sender: sui_2.ZERO_ADDRESS,
1604
+ });
1605
+ return res;
1606
+ }
1607
+ view.getModule = getModule;
1608
+ async function intoString(client, args) {
1609
+ const tx = new transactions_1.TransactionBlock();
1610
+ builder.intoString(tx, args);
1611
+ const res = await client.devInspectTransactionBlock({
1612
+ transactionBlock: tx,
1613
+ sender: sui_2.ZERO_ADDRESS,
1614
+ });
1615
+ return res;
1616
+ }
1617
+ view.intoString = intoString;
1618
+ })(view = type_name.view || (type_name.view = {}));
1619
+ })(type_name || (exports.type_name = type_name = {}));
1620
+ var vector;
1621
+ (function (vector) {
1622
+ let builder;
1623
+ (function (builder) {
1624
+ function append(tx, args, typeArguments) {
1625
+ const _args = [];
1626
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1627
+ _args.push(sui_js_1.TransactionArgument.is(args[1])
1628
+ ? args[1]
1629
+ : tx.makeMoveVec({
1630
+ objects: args[1].map((a) => tx.object(a)),
1631
+ // type: TODO
1632
+ }));
1633
+ // @ts-ignore
1634
+ return tx.moveCall({
1635
+ target: "0x1::vector::append",
1636
+ arguments: _args,
1637
+ typeArguments: [
1638
+ typeof typeArguments[0] === "string"
1639
+ ? typeArguments[0]
1640
+ : typeArguments[0].getSignature(),
1641
+ ],
1642
+ });
1643
+ }
1644
+ builder.append = append;
1645
+ function borrow(tx, args, typeArguments) {
1646
+ const _args = [];
1647
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1648
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1649
+ // @ts-ignore
1650
+ return tx.moveCall({
1651
+ target: "0x1::vector::borrow",
1652
+ arguments: _args,
1653
+ typeArguments: [
1654
+ typeof typeArguments[0] === "string"
1655
+ ? typeArguments[0]
1656
+ : typeArguments[0].getSignature(),
1657
+ ],
1658
+ });
1659
+ }
1660
+ builder.borrow = borrow;
1661
+ function borrowMut(tx, args, typeArguments) {
1662
+ const _args = [];
1663
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1664
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1665
+ // @ts-ignore
1666
+ return tx.moveCall({
1667
+ target: "0x1::vector::borrow_mut",
1668
+ arguments: _args,
1669
+ typeArguments: [
1670
+ typeof typeArguments[0] === "string"
1671
+ ? typeArguments[0]
1672
+ : typeArguments[0].getSignature(),
1673
+ ],
1674
+ });
1675
+ }
1676
+ builder.borrowMut = borrowMut;
1677
+ function contains(tx, args, typeArguments) {
1678
+ const _args = [];
1679
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1680
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]));
1681
+ // @ts-ignore
1682
+ return tx.moveCall({
1683
+ target: "0x1::vector::contains",
1684
+ arguments: _args,
1685
+ typeArguments: [
1686
+ typeof typeArguments[0] === "string"
1687
+ ? typeArguments[0]
1688
+ : typeArguments[0].getSignature(),
1689
+ ],
1690
+ });
1691
+ }
1692
+ builder.contains = contains;
1693
+ function destroyEmpty(tx, args, typeArguments) {
1694
+ const _args = [];
1695
+ _args.push(sui_js_1.TransactionArgument.is(args[0])
1696
+ ? args[0]
1697
+ : tx.makeMoveVec({
1698
+ objects: args[0].map((a) => tx.object(a)),
1699
+ // type: TODO
1700
+ }));
1701
+ // @ts-ignore
1702
+ return tx.moveCall({
1703
+ target: "0x1::vector::destroy_empty",
1704
+ arguments: _args,
1705
+ typeArguments: [
1706
+ typeof typeArguments[0] === "string"
1707
+ ? typeArguments[0]
1708
+ : typeArguments[0].getSignature(),
1709
+ ],
1710
+ });
1711
+ }
1712
+ builder.destroyEmpty = destroyEmpty;
1713
+ function empty(tx, args, typeArguments) {
1714
+ const _args = [];
1715
+ // @ts-ignore
1716
+ return tx.moveCall({
1717
+ target: "0x1::vector::empty",
1718
+ arguments: _args,
1719
+ typeArguments: [
1720
+ typeof typeArguments[0] === "string"
1721
+ ? typeArguments[0]
1722
+ : typeArguments[0].getSignature(),
1723
+ ],
1724
+ });
1725
+ }
1726
+ builder.empty = empty;
1727
+ function indexOf(tx, args, typeArguments) {
1728
+ const _args = [];
1729
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1730
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]));
1731
+ // @ts-ignore
1732
+ return tx.moveCall({
1733
+ target: "0x1::vector::index_of",
1734
+ arguments: _args,
1735
+ typeArguments: [
1736
+ typeof typeArguments[0] === "string"
1737
+ ? typeArguments[0]
1738
+ : typeArguments[0].getSignature(),
1739
+ ],
1740
+ });
1741
+ }
1742
+ builder.indexOf = indexOf;
1743
+ function insert(tx, args, typeArguments) {
1744
+ const _args = [];
1745
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1746
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1747
+ _args.push(sui_js_1.TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1748
+ // @ts-ignore
1749
+ return tx.moveCall({
1750
+ target: "0x1::vector::insert",
1751
+ arguments: _args,
1752
+ typeArguments: [
1753
+ typeof typeArguments[0] === "string"
1754
+ ? typeArguments[0]
1755
+ : typeArguments[0].getSignature(),
1756
+ ],
1757
+ });
1758
+ }
1759
+ builder.insert = insert;
1760
+ function isEmpty(tx, args, typeArguments) {
1761
+ const _args = [];
1762
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1763
+ // @ts-ignore
1764
+ return tx.moveCall({
1765
+ target: "0x1::vector::is_empty",
1766
+ arguments: _args,
1767
+ typeArguments: [
1768
+ typeof typeArguments[0] === "string"
1769
+ ? typeArguments[0]
1770
+ : typeArguments[0].getSignature(),
1771
+ ],
1772
+ });
1773
+ }
1774
+ builder.isEmpty = isEmpty;
1775
+ function length(tx, args, typeArguments) {
1776
+ const _args = [];
1777
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1778
+ // @ts-ignore
1779
+ return tx.moveCall({
1780
+ target: "0x1::vector::length",
1781
+ arguments: _args,
1782
+ typeArguments: [
1783
+ typeof typeArguments[0] === "string"
1784
+ ? typeArguments[0]
1785
+ : typeArguments[0].getSignature(),
1786
+ ],
1787
+ });
1788
+ }
1789
+ builder.length = length;
1790
+ function popBack(tx, args, typeArguments) {
1791
+ const _args = [];
1792
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1793
+ // @ts-ignore
1794
+ return tx.moveCall({
1795
+ target: "0x1::vector::pop_back",
1796
+ arguments: _args,
1797
+ typeArguments: [
1798
+ typeof typeArguments[0] === "string"
1799
+ ? typeArguments[0]
1800
+ : typeArguments[0].getSignature(),
1801
+ ],
1802
+ });
1803
+ }
1804
+ builder.popBack = popBack;
1805
+ function pushBack(tx, args, typeArguments) {
1806
+ const _args = [];
1807
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1808
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1809
+ // @ts-ignore
1810
+ return tx.moveCall({
1811
+ target: "0x1::vector::push_back",
1812
+ arguments: _args,
1813
+ typeArguments: [
1814
+ typeof typeArguments[0] === "string"
1815
+ ? typeArguments[0]
1816
+ : typeArguments[0].getSignature(),
1817
+ ],
1818
+ });
1819
+ }
1820
+ builder.pushBack = pushBack;
1821
+ function remove(tx, args, typeArguments) {
1822
+ const _args = [];
1823
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1824
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1825
+ // @ts-ignore
1826
+ return tx.moveCall({
1827
+ target: "0x1::vector::remove",
1828
+ arguments: _args,
1829
+ typeArguments: [
1830
+ typeof typeArguments[0] === "string"
1831
+ ? typeArguments[0]
1832
+ : typeArguments[0].getSignature(),
1833
+ ],
1834
+ });
1835
+ }
1836
+ builder.remove = remove;
1837
+ function reverse(tx, args, typeArguments) {
1838
+ const _args = [];
1839
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1840
+ // @ts-ignore
1841
+ return tx.moveCall({
1842
+ target: "0x1::vector::reverse",
1843
+ arguments: _args,
1844
+ typeArguments: [
1845
+ typeof typeArguments[0] === "string"
1846
+ ? typeArguments[0]
1847
+ : typeArguments[0].getSignature(),
1848
+ ],
1849
+ });
1850
+ }
1851
+ builder.reverse = reverse;
1852
+ function singleton(tx, args, typeArguments) {
1853
+ const _args = [];
1854
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1855
+ // @ts-ignore
1856
+ return tx.moveCall({
1857
+ target: "0x1::vector::singleton",
1858
+ arguments: _args,
1859
+ typeArguments: [
1860
+ typeof typeArguments[0] === "string"
1861
+ ? typeArguments[0]
1862
+ : typeArguments[0].getSignature(),
1863
+ ],
1864
+ });
1865
+ }
1866
+ builder.singleton = singleton;
1867
+ function swap(tx, args, typeArguments) {
1868
+ const _args = [];
1869
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1870
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1871
+ _args.push(sui_js_1.TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1872
+ // @ts-ignore
1873
+ return tx.moveCall({
1874
+ target: "0x1::vector::swap",
1875
+ arguments: _args,
1876
+ typeArguments: [
1877
+ typeof typeArguments[0] === "string"
1878
+ ? typeArguments[0]
1879
+ : typeArguments[0].getSignature(),
1880
+ ],
1881
+ });
1882
+ }
1883
+ builder.swap = swap;
1884
+ function swapRemove(tx, args, typeArguments) {
1885
+ const _args = [];
1886
+ _args.push(sui_js_1.TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
1887
+ _args.push(sui_js_1.TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1888
+ // @ts-ignore
1889
+ return tx.moveCall({
1890
+ target: "0x1::vector::swap_remove",
1891
+ arguments: _args,
1892
+ typeArguments: [
1893
+ typeof typeArguments[0] === "string"
1894
+ ? typeArguments[0]
1895
+ : typeArguments[0].getSignature(),
1896
+ ],
1897
+ });
1898
+ }
1899
+ builder.swapRemove = swapRemove;
1900
+ })(builder = vector.builder || (vector.builder = {}));
1901
+ let view;
1902
+ (function (view) {
1903
+ async function append(client, args, typeArguments) {
1904
+ const tx = new transactions_1.TransactionBlock();
1905
+ builder.append(tx, args, typeArguments);
1906
+ const res = await client.devInspectTransactionBlock({
1907
+ transactionBlock: tx,
1908
+ sender: sui_2.ZERO_ADDRESS,
1909
+ });
1910
+ return res;
1911
+ }
1912
+ view.append = append;
1913
+ async function borrow(client, args, typeArguments) {
1914
+ const tx = new transactions_1.TransactionBlock();
1915
+ builder.borrow(tx, args, typeArguments);
1916
+ const res = await client.devInspectTransactionBlock({
1917
+ transactionBlock: tx,
1918
+ sender: sui_2.ZERO_ADDRESS,
1919
+ });
1920
+ return res;
1921
+ }
1922
+ view.borrow = borrow;
1923
+ async function borrowMut(client, args, typeArguments) {
1924
+ const tx = new transactions_1.TransactionBlock();
1925
+ builder.borrowMut(tx, args, typeArguments);
1926
+ const res = await client.devInspectTransactionBlock({
1927
+ transactionBlock: tx,
1928
+ sender: sui_2.ZERO_ADDRESS,
1929
+ });
1930
+ return res;
1931
+ }
1932
+ view.borrowMut = borrowMut;
1933
+ async function contains(client, args, typeArguments) {
1934
+ const tx = new transactions_1.TransactionBlock();
1935
+ builder.contains(tx, args, typeArguments);
1936
+ const res = await client.devInspectTransactionBlock({
1937
+ transactionBlock: tx,
1938
+ sender: sui_2.ZERO_ADDRESS,
1939
+ });
1940
+ return res;
1941
+ }
1942
+ view.contains = contains;
1943
+ async function destroyEmpty(client, args, typeArguments) {
1944
+ const tx = new transactions_1.TransactionBlock();
1945
+ builder.destroyEmpty(tx, args, typeArguments);
1946
+ const res = await client.devInspectTransactionBlock({
1947
+ transactionBlock: tx,
1948
+ sender: sui_2.ZERO_ADDRESS,
1949
+ });
1950
+ return res;
1951
+ }
1952
+ view.destroyEmpty = destroyEmpty;
1953
+ async function empty(client, args, typeArguments) {
1954
+ const tx = new transactions_1.TransactionBlock();
1955
+ builder.empty(tx, args, typeArguments);
1956
+ const res = await client.devInspectTransactionBlock({
1957
+ transactionBlock: tx,
1958
+ sender: sui_2.ZERO_ADDRESS,
1959
+ });
1960
+ return res;
1961
+ }
1962
+ view.empty = empty;
1963
+ async function indexOf(client, args, typeArguments) {
1964
+ const tx = new transactions_1.TransactionBlock();
1965
+ builder.indexOf(tx, args, typeArguments);
1966
+ const res = await client.devInspectTransactionBlock({
1967
+ transactionBlock: tx,
1968
+ sender: sui_2.ZERO_ADDRESS,
1969
+ });
1970
+ return res;
1971
+ }
1972
+ view.indexOf = indexOf;
1973
+ async function insert(client, args, typeArguments) {
1974
+ const tx = new transactions_1.TransactionBlock();
1975
+ builder.insert(tx, args, typeArguments);
1976
+ const res = await client.devInspectTransactionBlock({
1977
+ transactionBlock: tx,
1978
+ sender: sui_2.ZERO_ADDRESS,
1979
+ });
1980
+ return res;
1981
+ }
1982
+ view.insert = insert;
1983
+ async function isEmpty(client, args, typeArguments) {
1984
+ const tx = new transactions_1.TransactionBlock();
1985
+ builder.isEmpty(tx, args, typeArguments);
1986
+ const res = await client.devInspectTransactionBlock({
1987
+ transactionBlock: tx,
1988
+ sender: sui_2.ZERO_ADDRESS,
1989
+ });
1990
+ return res;
1991
+ }
1992
+ view.isEmpty = isEmpty;
1993
+ async function length(client, args, typeArguments) {
1994
+ const tx = new transactions_1.TransactionBlock();
1995
+ builder.length(tx, args, typeArguments);
1996
+ const res = await client.devInspectTransactionBlock({
1997
+ transactionBlock: tx,
1998
+ sender: sui_2.ZERO_ADDRESS,
1999
+ });
2000
+ return res;
2001
+ }
2002
+ view.length = length;
2003
+ async function popBack(client, args, typeArguments) {
2004
+ const tx = new transactions_1.TransactionBlock();
2005
+ builder.popBack(tx, args, typeArguments);
2006
+ const res = await client.devInspectTransactionBlock({
2007
+ transactionBlock: tx,
2008
+ sender: sui_2.ZERO_ADDRESS,
2009
+ });
2010
+ return res;
2011
+ }
2012
+ view.popBack = popBack;
2013
+ async function pushBack(client, args, typeArguments) {
2014
+ const tx = new transactions_1.TransactionBlock();
2015
+ builder.pushBack(tx, args, typeArguments);
2016
+ const res = await client.devInspectTransactionBlock({
2017
+ transactionBlock: tx,
2018
+ sender: sui_2.ZERO_ADDRESS,
2019
+ });
2020
+ return res;
2021
+ }
2022
+ view.pushBack = pushBack;
2023
+ async function remove(client, args, typeArguments) {
2024
+ const tx = new transactions_1.TransactionBlock();
2025
+ builder.remove(tx, args, typeArguments);
2026
+ const res = await client.devInspectTransactionBlock({
2027
+ transactionBlock: tx,
2028
+ sender: sui_2.ZERO_ADDRESS,
2029
+ });
2030
+ return res;
2031
+ }
2032
+ view.remove = remove;
2033
+ async function reverse(client, args, typeArguments) {
2034
+ const tx = new transactions_1.TransactionBlock();
2035
+ builder.reverse(tx, args, typeArguments);
2036
+ const res = await client.devInspectTransactionBlock({
2037
+ transactionBlock: tx,
2038
+ sender: sui_2.ZERO_ADDRESS,
2039
+ });
2040
+ return res;
2041
+ }
2042
+ view.reverse = reverse;
2043
+ async function singleton(client, args, typeArguments) {
2044
+ const tx = new transactions_1.TransactionBlock();
2045
+ builder.singleton(tx, args, typeArguments);
2046
+ const res = await client.devInspectTransactionBlock({
2047
+ transactionBlock: tx,
2048
+ sender: sui_2.ZERO_ADDRESS,
2049
+ });
2050
+ return res;
2051
+ }
2052
+ view.singleton = singleton;
2053
+ async function swap(client, args, typeArguments) {
2054
+ const tx = new transactions_1.TransactionBlock();
2055
+ builder.swap(tx, args, typeArguments);
2056
+ const res = await client.devInspectTransactionBlock({
2057
+ transactionBlock: tx,
2058
+ sender: sui_2.ZERO_ADDRESS,
2059
+ });
2060
+ return res;
2061
+ }
2062
+ view.swap = swap;
2063
+ async function swapRemove(client, args, typeArguments) {
2064
+ const tx = new transactions_1.TransactionBlock();
2065
+ builder.swapRemove(tx, args, typeArguments);
2066
+ const res = await client.devInspectTransactionBlock({
2067
+ transactionBlock: tx,
2068
+ sender: sui_2.ZERO_ADDRESS,
2069
+ });
2070
+ return res;
2071
+ }
2072
+ view.swapRemove = swapRemove;
2073
+ })(view = vector.view || (vector.view = {}));
2074
+ })(vector || (exports.vector = vector = {}));
2075
+ const MODULES = JSON.parse('{"address":{"fileFormatVersion":6,"address":"0x1","name":"address","friends":[],"structs":{},"exposedFunctions":{"length":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[],"return":["U64"]}}},"ascii":{"fileFormatVersion":6,"address":"0x1","name":"ascii","friends":[],"structs":{"Char":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"byte","type":"U8"}]},"String":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"bytes","type":{"Vector":"U8"}}]}},"exposedFunctions":{"all_characters_printable":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":["Bool"]},"as_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":[{"Reference":{"Vector":"U8"}}]},"byte":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"ascii","name":"Char","typeArguments":[]}}],"return":["U8"]},"char":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8"],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"Char","typeArguments":[]}}]},"into_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[{"Vector":"U8"}]},"is_printable_char":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8"],"return":["Bool"]},"is_valid_char":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8"],"return":["Bool"]},"length":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":["U64"]},"pop_char":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"Char","typeArguments":[]}}]},"push_char":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"Char","typeArguments":[]}}],"return":[]},"string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"try_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"}],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]}}]}}},"bcs":{"fileFormatVersion":6,"address":"0x1","name":"bcs","friends":[],"structs":{},"exposedFunctions":{"to_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"TypeParameter":0}}],"return":[{"Vector":"U8"}]}}},"bit_vector":{"fileFormatVersion":6,"address":"0x1","name":"bit_vector","friends":[],"structs":{"BitVector":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"length","type":"U64"},{"name":"bit_field","type":{"Vector":"Bool"}}]}},"exposedFunctions":{"is_index_set":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"bit_vector","name":"BitVector","typeArguments":[]}}},"U64"],"return":["Bool"]},"length":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"bit_vector","name":"BitVector","typeArguments":[]}}}],"return":["U64"]},"longest_set_sequence_starting_at":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"bit_vector","name":"BitVector","typeArguments":[]}}},"U64"],"return":["U64"]},"new":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"bit_vector","name":"BitVector","typeArguments":[]}}]},"set":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"bit_vector","name":"BitVector","typeArguments":[]}}},"U64"],"return":[]},"shift_left":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"bit_vector","name":"BitVector","typeArguments":[]}}},"U64"],"return":[]},"unset":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"bit_vector","name":"BitVector","typeArguments":[]}}},"U64"],"return":[]}}},"debug":{"fileFormatVersion":6,"address":"0x1","name":"debug","friends":[],"structs":{},"exposedFunctions":{"print":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"TypeParameter":0}}],"return":[]},"print_stack_trace":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[],"return":[]}}},"fixed_point32":{"fileFormatVersion":6,"address":"0x1","name":"fixed_point32","friends":[],"structs":{"FixedPoint32":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"value","type":"U64"}]}},"exposedFunctions":{"create_from_rational":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":[{"Struct":{"address":"0x1","module":"fixed_point32","name":"FixedPoint32","typeArguments":[]}}]},"create_from_raw_value":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"fixed_point32","name":"FixedPoint32","typeArguments":[]}}]},"divide_u64":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64",{"Struct":{"address":"0x1","module":"fixed_point32","name":"FixedPoint32","typeArguments":[]}}],"return":["U64"]},"get_raw_value":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"fixed_point32","name":"FixedPoint32","typeArguments":[]}}],"return":["U64"]},"is_zero":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"fixed_point32","name":"FixedPoint32","typeArguments":[]}}],"return":["Bool"]},"multiply_u64":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64",{"Struct":{"address":"0x1","module":"fixed_point32","name":"FixedPoint32","typeArguments":[]}}],"return":["U64"]}}},"hash":{"fileFormatVersion":6,"address":"0x1","name":"hash","friends":[],"structs":{},"exposedFunctions":{"sha2_256":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"}],"return":[{"Vector":"U8"}]},"sha3_256":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"}],"return":[{"Vector":"U8"}]}}},"option":{"fileFormatVersion":6,"address":"0x1","name":"option","friends":[],"structs":{"Option":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":false}],"fields":[{"name":"vec","type":{"Vector":{"TypeParameter":0}}}]}},"exposedFunctions":{"borrow":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}}],"return":[{"Reference":{"TypeParameter":0}}]},"borrow_mut":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}}],"return":[{"MutableReference":{"TypeParameter":0}}]},"borrow_with_default":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}},{"Reference":{"TypeParameter":0}}],"return":[{"Reference":{"TypeParameter":0}}]},"contains":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}},{"Reference":{"TypeParameter":0}}],"return":["Bool"]},"destroy_none":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"destroy_some":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}],"return":[{"TypeParameter":0}]},"destroy_with_default":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":["Drop"]}],"parameters":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}},{"TypeParameter":0}],"return":[{"TypeParameter":0}]},"extract":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}}],"return":[{"TypeParameter":0}]},"fill":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}},{"TypeParameter":0}],"return":[]},"get_with_default":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":["Copy","Drop"]}],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}},{"TypeParameter":0}],"return":[{"TypeParameter":0}]},"is_none":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}}],"return":["Bool"]},"is_some":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}}],"return":["Bool"]},"none":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}]},"some":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"TypeParameter":0}],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}]},"swap":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}},{"TypeParameter":0}],"return":[{"TypeParameter":0}]},"swap_or_fill":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}},{"TypeParameter":0}],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}]},"to_vec":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}],"return":[{"Vector":{"TypeParameter":0}}]}}},"string":{"fileFormatVersion":6,"address":"0x1","name":"string","friends":[],"structs":{"String":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"bytes","type":{"Vector":"U8"}}]}},"exposedFunctions":{"append":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}],"return":[]},"append_utf8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},{"Vector":"U8"}],"return":[]},"bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}}],"return":[{"Reference":{"Vector":"U8"}}]},"from_ascii":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"index_of":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}}],"return":["U64"]},"insert":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},"U64",{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}],"return":[]},"is_empty":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}}],"return":["Bool"]},"length":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}}],"return":["U64"]},"sub_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},"U64","U64"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"to_ascii":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"try_utf8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"}],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]}}]},"utf8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"}],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]}}},"type_name":{"fileFormatVersion":6,"address":"0x1","name":"type_name","friends":[],"structs":{"TypeName":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"name","type":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}]}},"exposedFunctions":{"borrow_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}]},"get":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}]},"get_address":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"get_module":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"into_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]}}},"vector":{"fileFormatVersion":6,"address":"0x1","name":"vector","friends":[],"structs":{},"exposedFunctions":{"append":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},{"Vector":{"TypeParameter":0}}],"return":[]},"borrow":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}},"U64"],"return":[{"Reference":{"TypeParameter":0}}]},"borrow_mut":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},"U64"],"return":[{"MutableReference":{"TypeParameter":0}}]},"contains":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}},{"Reference":{"TypeParameter":0}}],"return":["Bool"]},"destroy_empty":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Vector":{"TypeParameter":0}}],"return":[]},"empty":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Vector":{"TypeParameter":0}}]},"index_of":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}},{"Reference":{"TypeParameter":0}}],"return":["Bool","U64"]},"insert":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},{"TypeParameter":0},"U64"],"return":[]},"is_empty":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}}],"return":["Bool"]},"length":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}}],"return":["U64"]},"pop_back":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}}],"return":[{"TypeParameter":0}]},"push_back":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},{"TypeParameter":0}],"return":[]},"remove":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},"U64"],"return":[{"TypeParameter":0}]},"reverse":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}}],"return":[]},"singleton":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"TypeParameter":0}],"return":[{"Vector":{"TypeParameter":0}}]},"swap":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},"U64","U64"],"return":[]},"swap_remove":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},"U64"],"return":[{"TypeParameter":0}]}}}}');
2076
+ function loadAllTypes(coder) {
2077
+ for (const m of Object.values(MODULES)) {
2078
+ coder.load(m);
2079
+ }
2080
+ }
2081
+ exports.loadAllTypes = loadAllTypes;
2082
+ loadAllTypes((0, sui_1.defaultMoveCoder)());
2083
+ //# sourceMappingURL=0x1.js.map