@typemove/sui 1.13.3 → 1.13.4-rc.2

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 (77) hide show
  1. package/dist/esm/builtin/0x1.d.ts +157 -0
  2. package/dist/esm/builtin/0x1.d.ts.map +1 -1
  3. package/dist/esm/builtin/0x1.js +1599 -67
  4. package/dist/esm/builtin/0x1.js.map +1 -1
  5. package/dist/esm/builtin/0x2.d.ts +483 -10
  6. package/dist/esm/builtin/0x2.d.ts.map +1 -1
  7. package/dist/esm/builtin/0x2.js +2028 -71
  8. package/dist/esm/builtin/0x2.js.map +1 -1
  9. package/dist/esm/builtin/0x3.d.ts +34 -0
  10. package/dist/esm/builtin/0x3.d.ts.map +1 -1
  11. package/dist/esm/builtin/0x3.js +81 -1
  12. package/dist/esm/builtin/0x3.js.map +1 -1
  13. package/dist/esm/move-coder.test.js.map +1 -1
  14. package/package.json +10 -31
  15. package/src/abis/0x1.json +1643 -220
  16. package/src/abis/0x2.json +3768 -372
  17. package/src/abis/0x3.json +114 -0
  18. package/src/builtin/0x1.ts +2265 -150
  19. package/src/builtin/0x2.ts +3737 -792
  20. package/src/builtin/0x3.ts +139 -1
  21. package/builtin/0x1/package.json +0 -5
  22. package/builtin/0x2/package.json +0 -5
  23. package/builtin/0x3/package.json +0 -5
  24. package/builtin/package.json +0 -5
  25. package/codegen/package.json +0 -5
  26. package/dist/cjs/builtin/0x1.d.ts +0 -761
  27. package/dist/cjs/builtin/0x1.d.ts.map +0 -1
  28. package/dist/cjs/builtin/0x1.js +0 -4505
  29. package/dist/cjs/builtin/0x1.js.map +0 -1
  30. package/dist/cjs/builtin/0x2.d.ts +0 -4029
  31. package/dist/cjs/builtin/0x2.d.ts.map +0 -1
  32. package/dist/cjs/builtin/0x2.js +0 -16458
  33. package/dist/cjs/builtin/0x2.js.map +0 -1
  34. package/dist/cjs/builtin/0x3.d.ts +0 -1930
  35. package/dist/cjs/builtin/0x3.d.ts.map +0 -1
  36. package/dist/cjs/builtin/0x3.js +0 -6071
  37. package/dist/cjs/builtin/0x3.js.map +0 -1
  38. package/dist/cjs/builtin/index.d.ts +0 -4
  39. package/dist/cjs/builtin/index.d.ts.map +0 -1
  40. package/dist/cjs/builtin/index.js +0 -11
  41. package/dist/cjs/builtin/index.js.map +0 -1
  42. package/dist/cjs/codegen/codegen.d.ts +0 -20
  43. package/dist/cjs/codegen/codegen.d.ts.map +0 -1
  44. package/dist/cjs/codegen/codegen.js +0 -251
  45. package/dist/cjs/codegen/codegen.js.map +0 -1
  46. package/dist/cjs/codegen/index.d.ts +0 -2
  47. package/dist/cjs/codegen/index.d.ts.map +0 -1
  48. package/dist/cjs/codegen/index.js +0 -5
  49. package/dist/cjs/codegen/index.js.map +0 -1
  50. package/dist/cjs/index.d.ts +0 -4
  51. package/dist/cjs/index.d.ts.map +0 -1
  52. package/dist/cjs/index.js +0 -11
  53. package/dist/cjs/index.js.map +0 -1
  54. package/dist/cjs/models.d.ts +0 -18
  55. package/dist/cjs/models.d.ts.map +0 -1
  56. package/dist/cjs/models.js +0 -5
  57. package/dist/cjs/models.js.map +0 -1
  58. package/dist/cjs/move-coder.d.ts +0 -26
  59. package/dist/cjs/move-coder.d.ts.map +0 -1
  60. package/dist/cjs/move-coder.js +0 -272
  61. package/dist/cjs/move-coder.js.map +0 -1
  62. package/dist/cjs/move-coder.test.d.ts +0 -2
  63. package/dist/cjs/move-coder.test.d.ts.map +0 -1
  64. package/dist/cjs/move-coder.test.js.map +0 -1
  65. package/dist/cjs/package.json +0 -3
  66. package/dist/cjs/sui-chain-adapter.d.ts +0 -15
  67. package/dist/cjs/sui-chain-adapter.d.ts.map +0 -1
  68. package/dist/cjs/sui-chain-adapter.js +0 -88
  69. package/dist/cjs/sui-chain-adapter.js.map +0 -1
  70. package/dist/cjs/to-internal.d.ts +0 -4
  71. package/dist/cjs/to-internal.d.ts.map +0 -1
  72. package/dist/cjs/to-internal.js +0 -99
  73. package/dist/cjs/to-internal.js.map +0 -1
  74. package/dist/cjs/transaction.d.ts +0 -15
  75. package/dist/cjs/transaction.d.ts.map +0 -1
  76. package/dist/cjs/transaction.js +0 -98
  77. package/dist/cjs/transaction.js.map +0 -1
@@ -1,4505 +0,0 @@
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.vector = exports.uq64_64 = exports.uq32_32 = exports.u8 = exports.u64 = exports.u32 = exports.u256 = exports.u16 = exports.u128 = 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
- exports.loadAllTypes = loadAllTypes;
8
- /* Generated types for 0x1, original address 0x1 */
9
- const move_1 = require("@typemove/move");
10
- const sui_1 = require("@typemove/sui");
11
- const sui_2 = require("@typemove/sui");
12
- const transactions_1 = require("@mysten/sui/transactions");
13
- const sui_3 = require("@typemove/sui");
14
- var address;
15
- (function (address) {
16
- let builder;
17
- (function (builder) {
18
- function length(tx, args) {
19
- const _args = [];
20
- // @ts-ignore
21
- return tx.moveCall({
22
- target: "0x1::address::length",
23
- arguments: _args,
24
- });
25
- }
26
- builder.length = length;
27
- })(builder = address.builder || (address.builder = {}));
28
- let view;
29
- (function (view) {
30
- async function length(client, args) {
31
- const tx = new transactions_1.Transaction();
32
- builder.length(tx, args);
33
- const inspectRes = await client.devInspectTransactionBlock({
34
- transactionBlock: tx,
35
- sender: sui_2.ZERO_ADDRESS,
36
- });
37
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
38
- }
39
- view.length = length;
40
- })(view = address.view || (address.view = {}));
41
- })(address || (exports.address = address = {}));
42
- var ascii;
43
- (function (ascii) {
44
- let Char;
45
- (function (Char) {
46
- Char.TYPE_QNAME = "0x1::ascii::Char";
47
- const TYPE = new move_1.TypeDescriptor(Char.TYPE_QNAME);
48
- function type() {
49
- return TYPE.apply();
50
- }
51
- Char.type = type;
52
- })(Char = ascii.Char || (ascii.Char = {}));
53
- let String;
54
- (function (String) {
55
- String.TYPE_QNAME = "0x1::ascii::String";
56
- const TYPE = new move_1.TypeDescriptor(String.TYPE_QNAME);
57
- function type() {
58
- return TYPE.apply();
59
- }
60
- String.type = type;
61
- })(String = ascii.String || (ascii.String = {}));
62
- let builder;
63
- (function (builder) {
64
- function allCharactersPrintable(tx, args) {
65
- const _args = [];
66
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
67
- // @ts-ignore
68
- return tx.moveCall({
69
- target: "0x1::ascii::all_characters_printable",
70
- arguments: _args,
71
- });
72
- }
73
- builder.allCharactersPrintable = allCharactersPrintable;
74
- function append(tx, args) {
75
- const _args = [];
76
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
77
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
78
- // @ts-ignore
79
- return tx.moveCall({
80
- target: "0x1::ascii::append",
81
- arguments: _args,
82
- });
83
- }
84
- builder.append = append;
85
- function asBytes(tx, args) {
86
- const _args = [];
87
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
88
- // @ts-ignore
89
- return tx.moveCall({
90
- target: "0x1::ascii::as_bytes",
91
- arguments: _args,
92
- });
93
- }
94
- builder.asBytes = asBytes;
95
- function byte(tx, args) {
96
- const _args = [];
97
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
98
- // @ts-ignore
99
- return tx.moveCall({
100
- target: "0x1::ascii::byte",
101
- arguments: _args,
102
- });
103
- }
104
- builder.byte = byte;
105
- function char(tx, args) {
106
- const _args = [];
107
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[0], tx));
108
- // @ts-ignore
109
- return tx.moveCall({
110
- target: "0x1::ascii::char",
111
- arguments: _args,
112
- });
113
- }
114
- builder.char = char;
115
- function indexOf(tx, args) {
116
- const _args = [];
117
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
118
- _args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
119
- // @ts-ignore
120
- return tx.moveCall({
121
- target: "0x1::ascii::index_of",
122
- arguments: _args,
123
- });
124
- }
125
- builder.indexOf = indexOf;
126
- function insert(tx, args) {
127
- const _args = [];
128
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
129
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
130
- _args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
131
- // @ts-ignore
132
- return tx.moveCall({
133
- target: "0x1::ascii::insert",
134
- arguments: _args,
135
- });
136
- }
137
- builder.insert = insert;
138
- function intoBytes(tx, args) {
139
- const _args = [];
140
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
141
- // @ts-ignore
142
- return tx.moveCall({
143
- target: "0x1::ascii::into_bytes",
144
- arguments: _args,
145
- });
146
- }
147
- builder.intoBytes = intoBytes;
148
- function isEmpty(tx, args) {
149
- const _args = [];
150
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
151
- // @ts-ignore
152
- return tx.moveCall({
153
- target: "0x1::ascii::is_empty",
154
- arguments: _args,
155
- });
156
- }
157
- builder.isEmpty = isEmpty;
158
- function isPrintableChar(tx, args) {
159
- const _args = [];
160
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[0], tx));
161
- // @ts-ignore
162
- return tx.moveCall({
163
- target: "0x1::ascii::is_printable_char",
164
- arguments: _args,
165
- });
166
- }
167
- builder.isPrintableChar = isPrintableChar;
168
- function isValidChar(tx, args) {
169
- const _args = [];
170
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[0], tx));
171
- // @ts-ignore
172
- return tx.moveCall({
173
- target: "0x1::ascii::is_valid_char",
174
- arguments: _args,
175
- });
176
- }
177
- builder.isValidChar = isValidChar;
178
- function length(tx, args) {
179
- const _args = [];
180
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
181
- // @ts-ignore
182
- return tx.moveCall({
183
- target: "0x1::ascii::length",
184
- arguments: _args,
185
- });
186
- }
187
- builder.length = length;
188
- function popChar(tx, args) {
189
- const _args = [];
190
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
191
- // @ts-ignore
192
- return tx.moveCall({
193
- target: "0x1::ascii::pop_char",
194
- arguments: _args,
195
- });
196
- }
197
- builder.popChar = popChar;
198
- function pushChar(tx, args) {
199
- const _args = [];
200
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
201
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
202
- // @ts-ignore
203
- return tx.moveCall({
204
- target: "0x1::ascii::push_char",
205
- arguments: _args,
206
- });
207
- }
208
- builder.pushChar = pushChar;
209
- function string$(tx, args) {
210
- const _args = [];
211
- _args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
212
- // @ts-ignore
213
- return tx.moveCall({
214
- target: "0x1::ascii::string",
215
- arguments: _args,
216
- });
217
- }
218
- builder.string$ = string$;
219
- function substring(tx, args) {
220
- const _args = [];
221
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
222
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
223
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[2], tx));
224
- // @ts-ignore
225
- return tx.moveCall({
226
- target: "0x1::ascii::substring",
227
- arguments: _args,
228
- });
229
- }
230
- builder.substring = substring;
231
- function toLowercase(tx, args) {
232
- const _args = [];
233
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
234
- // @ts-ignore
235
- return tx.moveCall({
236
- target: "0x1::ascii::to_lowercase",
237
- arguments: _args,
238
- });
239
- }
240
- builder.toLowercase = toLowercase;
241
- function toUppercase(tx, args) {
242
- const _args = [];
243
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
244
- // @ts-ignore
245
- return tx.moveCall({
246
- target: "0x1::ascii::to_uppercase",
247
- arguments: _args,
248
- });
249
- }
250
- builder.toUppercase = toUppercase;
251
- function tryString(tx, args) {
252
- const _args = [];
253
- _args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
254
- // @ts-ignore
255
- return tx.moveCall({
256
- target: "0x1::ascii::try_string",
257
- arguments: _args,
258
- });
259
- }
260
- builder.tryString = tryString;
261
- })(builder = ascii.builder || (ascii.builder = {}));
262
- let view;
263
- (function (view) {
264
- async function allCharactersPrintable(client, args) {
265
- const tx = new transactions_1.Transaction();
266
- builder.allCharactersPrintable(tx, args);
267
- const inspectRes = await client.devInspectTransactionBlock({
268
- transactionBlock: tx,
269
- sender: sui_2.ZERO_ADDRESS,
270
- });
271
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
272
- }
273
- view.allCharactersPrintable = allCharactersPrintable;
274
- async function append(client, args) {
275
- const tx = new transactions_1.Transaction();
276
- builder.append(tx, args);
277
- const inspectRes = await client.devInspectTransactionBlock({
278
- transactionBlock: tx,
279
- sender: sui_2.ZERO_ADDRESS,
280
- });
281
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
282
- }
283
- view.append = append;
284
- async function asBytes(client, args) {
285
- const tx = new transactions_1.Transaction();
286
- builder.asBytes(tx, args);
287
- const inspectRes = await client.devInspectTransactionBlock({
288
- transactionBlock: tx,
289
- sender: sui_2.ZERO_ADDRESS,
290
- });
291
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
292
- }
293
- view.asBytes = asBytes;
294
- async function byte(client, args) {
295
- const tx = new transactions_1.Transaction();
296
- builder.byte(tx, args);
297
- const inspectRes = await client.devInspectTransactionBlock({
298
- transactionBlock: tx,
299
- sender: sui_2.ZERO_ADDRESS,
300
- });
301
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
302
- }
303
- view.byte = byte;
304
- async function char(client, args) {
305
- const tx = new transactions_1.Transaction();
306
- builder.char(tx, args);
307
- const inspectRes = await client.devInspectTransactionBlock({
308
- transactionBlock: tx,
309
- sender: sui_2.ZERO_ADDRESS,
310
- });
311
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
312
- }
313
- view.char = char;
314
- async function indexOf(client, args) {
315
- const tx = new transactions_1.Transaction();
316
- builder.indexOf(tx, args);
317
- const inspectRes = await client.devInspectTransactionBlock({
318
- transactionBlock: tx,
319
- sender: sui_2.ZERO_ADDRESS,
320
- });
321
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
322
- }
323
- view.indexOf = indexOf;
324
- async function insert(client, args) {
325
- const tx = new transactions_1.Transaction();
326
- builder.insert(tx, args);
327
- const inspectRes = await client.devInspectTransactionBlock({
328
- transactionBlock: tx,
329
- sender: sui_2.ZERO_ADDRESS,
330
- });
331
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
332
- }
333
- view.insert = insert;
334
- async function intoBytes(client, args) {
335
- const tx = new transactions_1.Transaction();
336
- builder.intoBytes(tx, args);
337
- const inspectRes = await client.devInspectTransactionBlock({
338
- transactionBlock: tx,
339
- sender: sui_2.ZERO_ADDRESS,
340
- });
341
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
342
- }
343
- view.intoBytes = intoBytes;
344
- async function isEmpty(client, args) {
345
- const tx = new transactions_1.Transaction();
346
- builder.isEmpty(tx, args);
347
- const inspectRes = await client.devInspectTransactionBlock({
348
- transactionBlock: tx,
349
- sender: sui_2.ZERO_ADDRESS,
350
- });
351
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
352
- }
353
- view.isEmpty = isEmpty;
354
- async function isPrintableChar(client, args) {
355
- const tx = new transactions_1.Transaction();
356
- builder.isPrintableChar(tx, args);
357
- const inspectRes = await client.devInspectTransactionBlock({
358
- transactionBlock: tx,
359
- sender: sui_2.ZERO_ADDRESS,
360
- });
361
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
362
- }
363
- view.isPrintableChar = isPrintableChar;
364
- async function isValidChar(client, args) {
365
- const tx = new transactions_1.Transaction();
366
- builder.isValidChar(tx, args);
367
- const inspectRes = await client.devInspectTransactionBlock({
368
- transactionBlock: tx,
369
- sender: sui_2.ZERO_ADDRESS,
370
- });
371
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
372
- }
373
- view.isValidChar = isValidChar;
374
- async function length(client, args) {
375
- const tx = new transactions_1.Transaction();
376
- builder.length(tx, args);
377
- const inspectRes = await client.devInspectTransactionBlock({
378
- transactionBlock: tx,
379
- sender: sui_2.ZERO_ADDRESS,
380
- });
381
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
382
- }
383
- view.length = length;
384
- async function popChar(client, args) {
385
- const tx = new transactions_1.Transaction();
386
- builder.popChar(tx, args);
387
- const inspectRes = await client.devInspectTransactionBlock({
388
- transactionBlock: tx,
389
- sender: sui_2.ZERO_ADDRESS,
390
- });
391
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
392
- }
393
- view.popChar = popChar;
394
- async function pushChar(client, args) {
395
- const tx = new transactions_1.Transaction();
396
- builder.pushChar(tx, args);
397
- const inspectRes = await client.devInspectTransactionBlock({
398
- transactionBlock: tx,
399
- sender: sui_2.ZERO_ADDRESS,
400
- });
401
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
402
- }
403
- view.pushChar = pushChar;
404
- async function string$(client, args) {
405
- const tx = new transactions_1.Transaction();
406
- builder.string$(tx, args);
407
- const inspectRes = await client.devInspectTransactionBlock({
408
- transactionBlock: tx,
409
- sender: sui_2.ZERO_ADDRESS,
410
- });
411
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
412
- }
413
- view.string$ = string$;
414
- async function substring(client, args) {
415
- const tx = new transactions_1.Transaction();
416
- builder.substring(tx, args);
417
- const inspectRes = await client.devInspectTransactionBlock({
418
- transactionBlock: tx,
419
- sender: sui_2.ZERO_ADDRESS,
420
- });
421
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
422
- }
423
- view.substring = substring;
424
- async function toLowercase(client, args) {
425
- const tx = new transactions_1.Transaction();
426
- builder.toLowercase(tx, args);
427
- const inspectRes = await client.devInspectTransactionBlock({
428
- transactionBlock: tx,
429
- sender: sui_2.ZERO_ADDRESS,
430
- });
431
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
432
- }
433
- view.toLowercase = toLowercase;
434
- async function toUppercase(client, args) {
435
- const tx = new transactions_1.Transaction();
436
- builder.toUppercase(tx, args);
437
- const inspectRes = await client.devInspectTransactionBlock({
438
- transactionBlock: tx,
439
- sender: sui_2.ZERO_ADDRESS,
440
- });
441
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
442
- }
443
- view.toUppercase = toUppercase;
444
- async function tryString(client, args) {
445
- const tx = new transactions_1.Transaction();
446
- builder.tryString(tx, args);
447
- const inspectRes = await client.devInspectTransactionBlock({
448
- transactionBlock: tx,
449
- sender: sui_2.ZERO_ADDRESS,
450
- });
451
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
452
- }
453
- view.tryString = tryString;
454
- })(view = ascii.view || (ascii.view = {}));
455
- })(ascii || (exports.ascii = ascii = {}));
456
- var bcs;
457
- (function (bcs) {
458
- let builder;
459
- (function (builder) {
460
- function toBytes(tx, args, typeArguments) {
461
- const _args = [];
462
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
463
- // @ts-ignore
464
- return tx.moveCall({
465
- target: "0x1::bcs::to_bytes",
466
- arguments: _args,
467
- typeArguments: [
468
- typeof typeArguments[0] === "string"
469
- ? typeArguments[0]
470
- : typeArguments[0].getSignature(),
471
- ],
472
- });
473
- }
474
- builder.toBytes = toBytes;
475
- })(builder = bcs.builder || (bcs.builder = {}));
476
- let view;
477
- (function (view) {
478
- async function toBytes(client, args, typeArguments) {
479
- const tx = new transactions_1.Transaction();
480
- builder.toBytes(tx, args, typeArguments);
481
- const inspectRes = await client.devInspectTransactionBlock({
482
- transactionBlock: tx,
483
- sender: sui_2.ZERO_ADDRESS,
484
- });
485
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
486
- }
487
- view.toBytes = toBytes;
488
- })(view = bcs.view || (bcs.view = {}));
489
- })(bcs || (exports.bcs = bcs = {}));
490
- var bit_vector;
491
- (function (bit_vector) {
492
- let BitVector;
493
- (function (BitVector) {
494
- BitVector.TYPE_QNAME = "0x1::bit_vector::BitVector";
495
- const TYPE = new move_1.TypeDescriptor(BitVector.TYPE_QNAME);
496
- function type() {
497
- return TYPE.apply();
498
- }
499
- BitVector.type = type;
500
- })(BitVector = bit_vector.BitVector || (bit_vector.BitVector = {}));
501
- let builder;
502
- (function (builder) {
503
- function isIndexSet(tx, args) {
504
- const _args = [];
505
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
506
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
507
- // @ts-ignore
508
- return tx.moveCall({
509
- target: "0x1::bit_vector::is_index_set",
510
- arguments: _args,
511
- });
512
- }
513
- builder.isIndexSet = isIndexSet;
514
- function length(tx, args) {
515
- const _args = [];
516
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
517
- // @ts-ignore
518
- return tx.moveCall({
519
- target: "0x1::bit_vector::length",
520
- arguments: _args,
521
- });
522
- }
523
- builder.length = length;
524
- function longestSetSequenceStartingAt(tx, args) {
525
- const _args = [];
526
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
527
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
528
- // @ts-ignore
529
- return tx.moveCall({
530
- target: "0x1::bit_vector::longest_set_sequence_starting_at",
531
- arguments: _args,
532
- });
533
- }
534
- builder.longestSetSequenceStartingAt = longestSetSequenceStartingAt;
535
- function new$(tx, args) {
536
- const _args = [];
537
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
538
- // @ts-ignore
539
- return tx.moveCall({
540
- target: "0x1::bit_vector::new",
541
- arguments: _args,
542
- });
543
- }
544
- builder.new$ = new$;
545
- function set(tx, args) {
546
- const _args = [];
547
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
548
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
549
- // @ts-ignore
550
- return tx.moveCall({
551
- target: "0x1::bit_vector::set",
552
- arguments: _args,
553
- });
554
- }
555
- builder.set = set;
556
- function shiftLeft(tx, args) {
557
- const _args = [];
558
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
559
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
560
- // @ts-ignore
561
- return tx.moveCall({
562
- target: "0x1::bit_vector::shift_left",
563
- arguments: _args,
564
- });
565
- }
566
- builder.shiftLeft = shiftLeft;
567
- function unset(tx, args) {
568
- const _args = [];
569
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
570
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
571
- // @ts-ignore
572
- return tx.moveCall({
573
- target: "0x1::bit_vector::unset",
574
- arguments: _args,
575
- });
576
- }
577
- builder.unset = unset;
578
- })(builder = bit_vector.builder || (bit_vector.builder = {}));
579
- let view;
580
- (function (view) {
581
- async function isIndexSet(client, args) {
582
- const tx = new transactions_1.Transaction();
583
- builder.isIndexSet(tx, args);
584
- const inspectRes = await client.devInspectTransactionBlock({
585
- transactionBlock: tx,
586
- sender: sui_2.ZERO_ADDRESS,
587
- });
588
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
589
- }
590
- view.isIndexSet = isIndexSet;
591
- async function length(client, args) {
592
- const tx = new transactions_1.Transaction();
593
- builder.length(tx, args);
594
- const inspectRes = await client.devInspectTransactionBlock({
595
- transactionBlock: tx,
596
- sender: sui_2.ZERO_ADDRESS,
597
- });
598
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
599
- }
600
- view.length = length;
601
- async function longestSetSequenceStartingAt(client, args) {
602
- const tx = new transactions_1.Transaction();
603
- builder.longestSetSequenceStartingAt(tx, args);
604
- const inspectRes = await client.devInspectTransactionBlock({
605
- transactionBlock: tx,
606
- sender: sui_2.ZERO_ADDRESS,
607
- });
608
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
609
- }
610
- view.longestSetSequenceStartingAt = longestSetSequenceStartingAt;
611
- async function new$(client, args) {
612
- const tx = new transactions_1.Transaction();
613
- builder.new$(tx, args);
614
- const inspectRes = await client.devInspectTransactionBlock({
615
- transactionBlock: tx,
616
- sender: sui_2.ZERO_ADDRESS,
617
- });
618
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
619
- }
620
- view.new$ = new$;
621
- async function set(client, args) {
622
- const tx = new transactions_1.Transaction();
623
- builder.set(tx, args);
624
- const inspectRes = await client.devInspectTransactionBlock({
625
- transactionBlock: tx,
626
- sender: sui_2.ZERO_ADDRESS,
627
- });
628
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
629
- }
630
- view.set = set;
631
- async function shiftLeft(client, args) {
632
- const tx = new transactions_1.Transaction();
633
- builder.shiftLeft(tx, args);
634
- const inspectRes = await client.devInspectTransactionBlock({
635
- transactionBlock: tx,
636
- sender: sui_2.ZERO_ADDRESS,
637
- });
638
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
639
- }
640
- view.shiftLeft = shiftLeft;
641
- async function unset(client, args) {
642
- const tx = new transactions_1.Transaction();
643
- builder.unset(tx, args);
644
- const inspectRes = await client.devInspectTransactionBlock({
645
- transactionBlock: tx,
646
- sender: sui_2.ZERO_ADDRESS,
647
- });
648
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
649
- }
650
- view.unset = unset;
651
- })(view = bit_vector.view || (bit_vector.view = {}));
652
- })(bit_vector || (exports.bit_vector = bit_vector = {}));
653
- var debug;
654
- (function (debug) {
655
- let builder;
656
- (function (builder) {
657
- function print(tx, args, typeArguments) {
658
- const _args = [];
659
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
660
- // @ts-ignore
661
- return tx.moveCall({
662
- target: "0x1::debug::print",
663
- arguments: _args,
664
- typeArguments: [
665
- typeof typeArguments[0] === "string"
666
- ? typeArguments[0]
667
- : typeArguments[0].getSignature(),
668
- ],
669
- });
670
- }
671
- builder.print = print;
672
- function printStackTrace(tx, args) {
673
- const _args = [];
674
- // @ts-ignore
675
- return tx.moveCall({
676
- target: "0x1::debug::print_stack_trace",
677
- arguments: _args,
678
- });
679
- }
680
- builder.printStackTrace = printStackTrace;
681
- })(builder = debug.builder || (debug.builder = {}));
682
- let view;
683
- (function (view) {
684
- async function print(client, args, typeArguments) {
685
- const tx = new transactions_1.Transaction();
686
- builder.print(tx, args, typeArguments);
687
- const inspectRes = await client.devInspectTransactionBlock({
688
- transactionBlock: tx,
689
- sender: sui_2.ZERO_ADDRESS,
690
- });
691
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
692
- }
693
- view.print = print;
694
- async function printStackTrace(client, args) {
695
- const tx = new transactions_1.Transaction();
696
- builder.printStackTrace(tx, args);
697
- const inspectRes = await client.devInspectTransactionBlock({
698
- transactionBlock: tx,
699
- sender: sui_2.ZERO_ADDRESS,
700
- });
701
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
702
- }
703
- view.printStackTrace = printStackTrace;
704
- })(view = debug.view || (debug.view = {}));
705
- })(debug || (exports.debug = debug = {}));
706
- var fixed_point32;
707
- (function (fixed_point32) {
708
- let FixedPoint32;
709
- (function (FixedPoint32) {
710
- FixedPoint32.TYPE_QNAME = "0x1::fixed_point32::FixedPoint32";
711
- const TYPE = new move_1.TypeDescriptor(FixedPoint32.TYPE_QNAME);
712
- function type() {
713
- return TYPE.apply();
714
- }
715
- FixedPoint32.type = type;
716
- })(FixedPoint32 = fixed_point32.FixedPoint32 || (fixed_point32.FixedPoint32 = {}));
717
- let builder;
718
- (function (builder) {
719
- function createFromRational(tx, args) {
720
- const _args = [];
721
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
722
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
723
- // @ts-ignore
724
- return tx.moveCall({
725
- target: "0x1::fixed_point32::create_from_rational",
726
- arguments: _args,
727
- });
728
- }
729
- builder.createFromRational = createFromRational;
730
- function createFromRawValue(tx, args) {
731
- const _args = [];
732
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
733
- // @ts-ignore
734
- return tx.moveCall({
735
- target: "0x1::fixed_point32::create_from_raw_value",
736
- arguments: _args,
737
- });
738
- }
739
- builder.createFromRawValue = createFromRawValue;
740
- function divideU64(tx, args) {
741
- const _args = [];
742
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
743
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
744
- // @ts-ignore
745
- return tx.moveCall({
746
- target: "0x1::fixed_point32::divide_u64",
747
- arguments: _args,
748
- });
749
- }
750
- builder.divideU64 = divideU64;
751
- function getRawValue(tx, args) {
752
- const _args = [];
753
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
754
- // @ts-ignore
755
- return tx.moveCall({
756
- target: "0x1::fixed_point32::get_raw_value",
757
- arguments: _args,
758
- });
759
- }
760
- builder.getRawValue = getRawValue;
761
- function isZero(tx, args) {
762
- const _args = [];
763
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
764
- // @ts-ignore
765
- return tx.moveCall({
766
- target: "0x1::fixed_point32::is_zero",
767
- arguments: _args,
768
- });
769
- }
770
- builder.isZero = isZero;
771
- function multiplyU64(tx, args) {
772
- const _args = [];
773
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
774
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
775
- // @ts-ignore
776
- return tx.moveCall({
777
- target: "0x1::fixed_point32::multiply_u64",
778
- arguments: _args,
779
- });
780
- }
781
- builder.multiplyU64 = multiplyU64;
782
- })(builder = fixed_point32.builder || (fixed_point32.builder = {}));
783
- let view;
784
- (function (view) {
785
- async function createFromRational(client, args) {
786
- const tx = new transactions_1.Transaction();
787
- builder.createFromRational(tx, args);
788
- const inspectRes = await client.devInspectTransactionBlock({
789
- transactionBlock: tx,
790
- sender: sui_2.ZERO_ADDRESS,
791
- });
792
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
793
- }
794
- view.createFromRational = createFromRational;
795
- async function createFromRawValue(client, args) {
796
- const tx = new transactions_1.Transaction();
797
- builder.createFromRawValue(tx, args);
798
- const inspectRes = await client.devInspectTransactionBlock({
799
- transactionBlock: tx,
800
- sender: sui_2.ZERO_ADDRESS,
801
- });
802
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
803
- }
804
- view.createFromRawValue = createFromRawValue;
805
- async function divideU64(client, args) {
806
- const tx = new transactions_1.Transaction();
807
- builder.divideU64(tx, args);
808
- const inspectRes = await client.devInspectTransactionBlock({
809
- transactionBlock: tx,
810
- sender: sui_2.ZERO_ADDRESS,
811
- });
812
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
813
- }
814
- view.divideU64 = divideU64;
815
- async function getRawValue(client, args) {
816
- const tx = new transactions_1.Transaction();
817
- builder.getRawValue(tx, args);
818
- const inspectRes = await client.devInspectTransactionBlock({
819
- transactionBlock: tx,
820
- sender: sui_2.ZERO_ADDRESS,
821
- });
822
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
823
- }
824
- view.getRawValue = getRawValue;
825
- async function isZero(client, args) {
826
- const tx = new transactions_1.Transaction();
827
- builder.isZero(tx, args);
828
- const inspectRes = await client.devInspectTransactionBlock({
829
- transactionBlock: tx,
830
- sender: sui_2.ZERO_ADDRESS,
831
- });
832
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
833
- }
834
- view.isZero = isZero;
835
- async function multiplyU64(client, args) {
836
- const tx = new transactions_1.Transaction();
837
- builder.multiplyU64(tx, args);
838
- const inspectRes = await client.devInspectTransactionBlock({
839
- transactionBlock: tx,
840
- sender: sui_2.ZERO_ADDRESS,
841
- });
842
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
843
- }
844
- view.multiplyU64 = multiplyU64;
845
- })(view = fixed_point32.view || (fixed_point32.view = {}));
846
- })(fixed_point32 || (exports.fixed_point32 = fixed_point32 = {}));
847
- var hash;
848
- (function (hash) {
849
- let builder;
850
- (function (builder) {
851
- function sha2256(tx, args) {
852
- const _args = [];
853
- _args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
854
- // @ts-ignore
855
- return tx.moveCall({
856
- target: "0x1::hash::sha2_256",
857
- arguments: _args,
858
- });
859
- }
860
- builder.sha2256 = sha2256;
861
- function sha3256(tx, args) {
862
- const _args = [];
863
- _args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
864
- // @ts-ignore
865
- return tx.moveCall({
866
- target: "0x1::hash::sha3_256",
867
- arguments: _args,
868
- });
869
- }
870
- builder.sha3256 = sha3256;
871
- })(builder = hash.builder || (hash.builder = {}));
872
- let view;
873
- (function (view) {
874
- async function sha2256(client, args) {
875
- const tx = new transactions_1.Transaction();
876
- builder.sha2256(tx, args);
877
- const inspectRes = await client.devInspectTransactionBlock({
878
- transactionBlock: tx,
879
- sender: sui_2.ZERO_ADDRESS,
880
- });
881
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
882
- }
883
- view.sha2256 = sha2256;
884
- async function sha3256(client, args) {
885
- const tx = new transactions_1.Transaction();
886
- builder.sha3256(tx, args);
887
- const inspectRes = await client.devInspectTransactionBlock({
888
- transactionBlock: tx,
889
- sender: sui_2.ZERO_ADDRESS,
890
- });
891
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
892
- }
893
- view.sha3256 = sha3256;
894
- })(view = hash.view || (hash.view = {}));
895
- })(hash || (exports.hash = hash = {}));
896
- var option;
897
- (function (option) {
898
- let Option;
899
- (function (Option) {
900
- Option.TYPE_QNAME = "0x1::option::Option";
901
- const TYPE = new move_1.TypeDescriptor(Option.TYPE_QNAME);
902
- function type(arg0 = move_1.ANY_TYPE) {
903
- return TYPE.apply(arg0);
904
- }
905
- Option.type = type;
906
- })(Option = option.Option || (option.Option = {}));
907
- let builder;
908
- (function (builder) {
909
- function borrow(tx, args, typeArguments) {
910
- const _args = [];
911
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
912
- // @ts-ignore
913
- return tx.moveCall({
914
- target: "0x1::option::borrow",
915
- arguments: _args,
916
- typeArguments: [
917
- typeof typeArguments[0] === "string"
918
- ? typeArguments[0]
919
- : typeArguments[0].getSignature(),
920
- ],
921
- });
922
- }
923
- builder.borrow = borrow;
924
- function borrowMut(tx, args, typeArguments) {
925
- const _args = [];
926
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
927
- // @ts-ignore
928
- return tx.moveCall({
929
- target: "0x1::option::borrow_mut",
930
- arguments: _args,
931
- typeArguments: [
932
- typeof typeArguments[0] === "string"
933
- ? typeArguments[0]
934
- : typeArguments[0].getSignature(),
935
- ],
936
- });
937
- }
938
- builder.borrowMut = borrowMut;
939
- function borrowWithDefault(tx, args, typeArguments) {
940
- const _args = [];
941
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
942
- _args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
943
- // @ts-ignore
944
- return tx.moveCall({
945
- target: "0x1::option::borrow_with_default",
946
- arguments: _args,
947
- typeArguments: [
948
- typeof typeArguments[0] === "string"
949
- ? typeArguments[0]
950
- : typeArguments[0].getSignature(),
951
- ],
952
- });
953
- }
954
- builder.borrowWithDefault = borrowWithDefault;
955
- function contains(tx, args, typeArguments) {
956
- const _args = [];
957
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
958
- _args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
959
- // @ts-ignore
960
- return tx.moveCall({
961
- target: "0x1::option::contains",
962
- arguments: _args,
963
- typeArguments: [
964
- typeof typeArguments[0] === "string"
965
- ? typeArguments[0]
966
- : typeArguments[0].getSignature(),
967
- ],
968
- });
969
- }
970
- builder.contains = contains;
971
- function destroyNone(tx, args, typeArguments) {
972
- const _args = [];
973
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
974
- // @ts-ignore
975
- return tx.moveCall({
976
- target: "0x1::option::destroy_none",
977
- arguments: _args,
978
- typeArguments: [
979
- typeof typeArguments[0] === "string"
980
- ? typeArguments[0]
981
- : typeArguments[0].getSignature(),
982
- ],
983
- });
984
- }
985
- builder.destroyNone = destroyNone;
986
- function destroySome(tx, args, typeArguments) {
987
- const _args = [];
988
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
989
- // @ts-ignore
990
- return tx.moveCall({
991
- target: "0x1::option::destroy_some",
992
- arguments: _args,
993
- typeArguments: [
994
- typeof typeArguments[0] === "string"
995
- ? typeArguments[0]
996
- : typeArguments[0].getSignature(),
997
- ],
998
- });
999
- }
1000
- builder.destroySome = destroySome;
1001
- function destroyWithDefault(tx, args, typeArguments) {
1002
- const _args = [];
1003
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
1004
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
1005
- // @ts-ignore
1006
- return tx.moveCall({
1007
- target: "0x1::option::destroy_with_default",
1008
- arguments: _args,
1009
- typeArguments: [
1010
- typeof typeArguments[0] === "string"
1011
- ? typeArguments[0]
1012
- : typeArguments[0].getSignature(),
1013
- ],
1014
- });
1015
- }
1016
- builder.destroyWithDefault = destroyWithDefault;
1017
- function extract(tx, args, typeArguments) {
1018
- const _args = [];
1019
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1020
- // @ts-ignore
1021
- return tx.moveCall({
1022
- target: "0x1::option::extract",
1023
- arguments: _args,
1024
- typeArguments: [
1025
- typeof typeArguments[0] === "string"
1026
- ? typeArguments[0]
1027
- : typeArguments[0].getSignature(),
1028
- ],
1029
- });
1030
- }
1031
- builder.extract = extract;
1032
- function fill(tx, args, typeArguments) {
1033
- const _args = [];
1034
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1035
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
1036
- // @ts-ignore
1037
- return tx.moveCall({
1038
- target: "0x1::option::fill",
1039
- arguments: _args,
1040
- typeArguments: [
1041
- typeof typeArguments[0] === "string"
1042
- ? typeArguments[0]
1043
- : typeArguments[0].getSignature(),
1044
- ],
1045
- });
1046
- }
1047
- builder.fill = fill;
1048
- function getWithDefault(tx, args, typeArguments) {
1049
- const _args = [];
1050
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1051
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
1052
- // @ts-ignore
1053
- return tx.moveCall({
1054
- target: "0x1::option::get_with_default",
1055
- arguments: _args,
1056
- typeArguments: [
1057
- typeof typeArguments[0] === "string"
1058
- ? typeArguments[0]
1059
- : typeArguments[0].getSignature(),
1060
- ],
1061
- });
1062
- }
1063
- builder.getWithDefault = getWithDefault;
1064
- function isNone(tx, args, typeArguments) {
1065
- const _args = [];
1066
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1067
- // @ts-ignore
1068
- return tx.moveCall({
1069
- target: "0x1::option::is_none",
1070
- arguments: _args,
1071
- typeArguments: [
1072
- typeof typeArguments[0] === "string"
1073
- ? typeArguments[0]
1074
- : typeArguments[0].getSignature(),
1075
- ],
1076
- });
1077
- }
1078
- builder.isNone = isNone;
1079
- function isSome(tx, args, typeArguments) {
1080
- const _args = [];
1081
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1082
- // @ts-ignore
1083
- return tx.moveCall({
1084
- target: "0x1::option::is_some",
1085
- arguments: _args,
1086
- typeArguments: [
1087
- typeof typeArguments[0] === "string"
1088
- ? typeArguments[0]
1089
- : typeArguments[0].getSignature(),
1090
- ],
1091
- });
1092
- }
1093
- builder.isSome = isSome;
1094
- function none(tx, args, typeArguments) {
1095
- const _args = [];
1096
- // @ts-ignore
1097
- return tx.moveCall({
1098
- target: "0x1::option::none",
1099
- arguments: _args,
1100
- typeArguments: [
1101
- typeof typeArguments[0] === "string"
1102
- ? typeArguments[0]
1103
- : typeArguments[0].getSignature(),
1104
- ],
1105
- });
1106
- }
1107
- builder.none = none;
1108
- function some(tx, args, typeArguments) {
1109
- const _args = [];
1110
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
1111
- // @ts-ignore
1112
- return tx.moveCall({
1113
- target: "0x1::option::some",
1114
- arguments: _args,
1115
- typeArguments: [
1116
- typeof typeArguments[0] === "string"
1117
- ? typeArguments[0]
1118
- : typeArguments[0].getSignature(),
1119
- ],
1120
- });
1121
- }
1122
- builder.some = some;
1123
- function swap(tx, args, typeArguments) {
1124
- const _args = [];
1125
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1126
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
1127
- // @ts-ignore
1128
- return tx.moveCall({
1129
- target: "0x1::option::swap",
1130
- arguments: _args,
1131
- typeArguments: [
1132
- typeof typeArguments[0] === "string"
1133
- ? typeArguments[0]
1134
- : typeArguments[0].getSignature(),
1135
- ],
1136
- });
1137
- }
1138
- builder.swap = swap;
1139
- function swapOrFill(tx, args, typeArguments) {
1140
- const _args = [];
1141
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1142
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
1143
- // @ts-ignore
1144
- return tx.moveCall({
1145
- target: "0x1::option::swap_or_fill",
1146
- arguments: _args,
1147
- typeArguments: [
1148
- typeof typeArguments[0] === "string"
1149
- ? typeArguments[0]
1150
- : typeArguments[0].getSignature(),
1151
- ],
1152
- });
1153
- }
1154
- builder.swapOrFill = swapOrFill;
1155
- function toVec(tx, args, typeArguments) {
1156
- const _args = [];
1157
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
1158
- // @ts-ignore
1159
- return tx.moveCall({
1160
- target: "0x1::option::to_vec",
1161
- arguments: _args,
1162
- typeArguments: [
1163
- typeof typeArguments[0] === "string"
1164
- ? typeArguments[0]
1165
- : typeArguments[0].getSignature(),
1166
- ],
1167
- });
1168
- }
1169
- builder.toVec = toVec;
1170
- })(builder = option.builder || (option.builder = {}));
1171
- let view;
1172
- (function (view) {
1173
- async function borrow(client, args, typeArguments) {
1174
- const tx = new transactions_1.Transaction();
1175
- builder.borrow(tx, args, typeArguments);
1176
- const inspectRes = await client.devInspectTransactionBlock({
1177
- transactionBlock: tx,
1178
- sender: sui_2.ZERO_ADDRESS,
1179
- });
1180
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1181
- }
1182
- view.borrow = borrow;
1183
- async function borrowMut(client, args, typeArguments) {
1184
- const tx = new transactions_1.Transaction();
1185
- builder.borrowMut(tx, args, typeArguments);
1186
- const inspectRes = await client.devInspectTransactionBlock({
1187
- transactionBlock: tx,
1188
- sender: sui_2.ZERO_ADDRESS,
1189
- });
1190
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1191
- }
1192
- view.borrowMut = borrowMut;
1193
- async function borrowWithDefault(client, args, typeArguments) {
1194
- const tx = new transactions_1.Transaction();
1195
- builder.borrowWithDefault(tx, args, typeArguments);
1196
- const inspectRes = await client.devInspectTransactionBlock({
1197
- transactionBlock: tx,
1198
- sender: sui_2.ZERO_ADDRESS,
1199
- });
1200
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1201
- }
1202
- view.borrowWithDefault = borrowWithDefault;
1203
- async function contains(client, args, typeArguments) {
1204
- const tx = new transactions_1.Transaction();
1205
- builder.contains(tx, args, typeArguments);
1206
- const inspectRes = await client.devInspectTransactionBlock({
1207
- transactionBlock: tx,
1208
- sender: sui_2.ZERO_ADDRESS,
1209
- });
1210
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1211
- }
1212
- view.contains = contains;
1213
- async function destroyNone(client, args, typeArguments) {
1214
- const tx = new transactions_1.Transaction();
1215
- builder.destroyNone(tx, args, typeArguments);
1216
- const inspectRes = await client.devInspectTransactionBlock({
1217
- transactionBlock: tx,
1218
- sender: sui_2.ZERO_ADDRESS,
1219
- });
1220
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1221
- }
1222
- view.destroyNone = destroyNone;
1223
- async function destroySome(client, args, typeArguments) {
1224
- const tx = new transactions_1.Transaction();
1225
- builder.destroySome(tx, args, typeArguments);
1226
- const inspectRes = await client.devInspectTransactionBlock({
1227
- transactionBlock: tx,
1228
- sender: sui_2.ZERO_ADDRESS,
1229
- });
1230
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1231
- }
1232
- view.destroySome = destroySome;
1233
- async function destroyWithDefault(client, args, typeArguments) {
1234
- const tx = new transactions_1.Transaction();
1235
- builder.destroyWithDefault(tx, args, typeArguments);
1236
- const inspectRes = await client.devInspectTransactionBlock({
1237
- transactionBlock: tx,
1238
- sender: sui_2.ZERO_ADDRESS,
1239
- });
1240
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1241
- }
1242
- view.destroyWithDefault = destroyWithDefault;
1243
- async function extract(client, args, typeArguments) {
1244
- const tx = new transactions_1.Transaction();
1245
- builder.extract(tx, args, typeArguments);
1246
- const inspectRes = await client.devInspectTransactionBlock({
1247
- transactionBlock: tx,
1248
- sender: sui_2.ZERO_ADDRESS,
1249
- });
1250
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1251
- }
1252
- view.extract = extract;
1253
- async function fill(client, args, typeArguments) {
1254
- const tx = new transactions_1.Transaction();
1255
- builder.fill(tx, args, typeArguments);
1256
- const inspectRes = await client.devInspectTransactionBlock({
1257
- transactionBlock: tx,
1258
- sender: sui_2.ZERO_ADDRESS,
1259
- });
1260
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1261
- }
1262
- view.fill = fill;
1263
- async function getWithDefault(client, args, typeArguments) {
1264
- const tx = new transactions_1.Transaction();
1265
- builder.getWithDefault(tx, args, typeArguments);
1266
- const inspectRes = await client.devInspectTransactionBlock({
1267
- transactionBlock: tx,
1268
- sender: sui_2.ZERO_ADDRESS,
1269
- });
1270
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1271
- }
1272
- view.getWithDefault = getWithDefault;
1273
- async function isNone(client, args, typeArguments) {
1274
- const tx = new transactions_1.Transaction();
1275
- builder.isNone(tx, args, typeArguments);
1276
- const inspectRes = await client.devInspectTransactionBlock({
1277
- transactionBlock: tx,
1278
- sender: sui_2.ZERO_ADDRESS,
1279
- });
1280
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1281
- }
1282
- view.isNone = isNone;
1283
- async function isSome(client, args, typeArguments) {
1284
- const tx = new transactions_1.Transaction();
1285
- builder.isSome(tx, args, typeArguments);
1286
- const inspectRes = await client.devInspectTransactionBlock({
1287
- transactionBlock: tx,
1288
- sender: sui_2.ZERO_ADDRESS,
1289
- });
1290
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1291
- }
1292
- view.isSome = isSome;
1293
- async function none(client, args, typeArguments) {
1294
- const tx = new transactions_1.Transaction();
1295
- builder.none(tx, args, typeArguments);
1296
- const inspectRes = await client.devInspectTransactionBlock({
1297
- transactionBlock: tx,
1298
- sender: sui_2.ZERO_ADDRESS,
1299
- });
1300
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1301
- }
1302
- view.none = none;
1303
- async function some(client, args, typeArguments) {
1304
- const tx = new transactions_1.Transaction();
1305
- builder.some(tx, args, typeArguments);
1306
- const inspectRes = await client.devInspectTransactionBlock({
1307
- transactionBlock: tx,
1308
- sender: sui_2.ZERO_ADDRESS,
1309
- });
1310
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1311
- }
1312
- view.some = some;
1313
- async function swap(client, args, typeArguments) {
1314
- const tx = new transactions_1.Transaction();
1315
- builder.swap(tx, args, typeArguments);
1316
- const inspectRes = await client.devInspectTransactionBlock({
1317
- transactionBlock: tx,
1318
- sender: sui_2.ZERO_ADDRESS,
1319
- });
1320
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1321
- }
1322
- view.swap = swap;
1323
- async function swapOrFill(client, args, typeArguments) {
1324
- const tx = new transactions_1.Transaction();
1325
- builder.swapOrFill(tx, args, typeArguments);
1326
- const inspectRes = await client.devInspectTransactionBlock({
1327
- transactionBlock: tx,
1328
- sender: sui_2.ZERO_ADDRESS,
1329
- });
1330
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1331
- }
1332
- view.swapOrFill = swapOrFill;
1333
- async function toVec(client, args, typeArguments) {
1334
- const tx = new transactions_1.Transaction();
1335
- builder.toVec(tx, args, typeArguments);
1336
- const inspectRes = await client.devInspectTransactionBlock({
1337
- transactionBlock: tx,
1338
- sender: sui_2.ZERO_ADDRESS,
1339
- });
1340
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1341
- }
1342
- view.toVec = toVec;
1343
- })(view = option.view || (option.view = {}));
1344
- })(option || (exports.option = option = {}));
1345
- var string$;
1346
- (function (string$) {
1347
- let String;
1348
- (function (String) {
1349
- String.TYPE_QNAME = "0x1::string::String";
1350
- const TYPE = new move_1.TypeDescriptor(String.TYPE_QNAME);
1351
- function type() {
1352
- return TYPE.apply();
1353
- }
1354
- String.type = type;
1355
- })(String = string$.String || (string$.String = {}));
1356
- let builder;
1357
- (function (builder) {
1358
- function append(tx, args) {
1359
- const _args = [];
1360
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1361
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
1362
- // @ts-ignore
1363
- return tx.moveCall({
1364
- target: "0x1::string::append",
1365
- arguments: _args,
1366
- });
1367
- }
1368
- builder.append = append;
1369
- function appendUtf8(tx, args) {
1370
- const _args = [];
1371
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1372
- _args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
1373
- // @ts-ignore
1374
- return tx.moveCall({
1375
- target: "0x1::string::append_utf8",
1376
- arguments: _args,
1377
- });
1378
- }
1379
- builder.appendUtf8 = appendUtf8;
1380
- function asBytes(tx, args) {
1381
- const _args = [];
1382
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1383
- // @ts-ignore
1384
- return tx.moveCall({
1385
- target: "0x1::string::as_bytes",
1386
- arguments: _args,
1387
- });
1388
- }
1389
- builder.asBytes = asBytes;
1390
- function bytes(tx, args) {
1391
- const _args = [];
1392
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1393
- // @ts-ignore
1394
- return tx.moveCall({
1395
- target: "0x1::string::bytes",
1396
- arguments: _args,
1397
- });
1398
- }
1399
- builder.bytes = bytes;
1400
- function fromAscii(tx, args) {
1401
- const _args = [];
1402
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
1403
- // @ts-ignore
1404
- return tx.moveCall({
1405
- target: "0x1::string::from_ascii",
1406
- arguments: _args,
1407
- });
1408
- }
1409
- builder.fromAscii = fromAscii;
1410
- function indexOf(tx, args) {
1411
- const _args = [];
1412
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1413
- _args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
1414
- // @ts-ignore
1415
- return tx.moveCall({
1416
- target: "0x1::string::index_of",
1417
- arguments: _args,
1418
- });
1419
- }
1420
- builder.indexOf = indexOf;
1421
- function insert(tx, args) {
1422
- const _args = [];
1423
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1424
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
1425
- _args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
1426
- // @ts-ignore
1427
- return tx.moveCall({
1428
- target: "0x1::string::insert",
1429
- arguments: _args,
1430
- });
1431
- }
1432
- builder.insert = insert;
1433
- function intoBytes(tx, args) {
1434
- const _args = [];
1435
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
1436
- // @ts-ignore
1437
- return tx.moveCall({
1438
- target: "0x1::string::into_bytes",
1439
- arguments: _args,
1440
- });
1441
- }
1442
- builder.intoBytes = intoBytes;
1443
- function isEmpty(tx, args) {
1444
- const _args = [];
1445
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1446
- // @ts-ignore
1447
- return tx.moveCall({
1448
- target: "0x1::string::is_empty",
1449
- arguments: _args,
1450
- });
1451
- }
1452
- builder.isEmpty = isEmpty;
1453
- function length(tx, args) {
1454
- const _args = [];
1455
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1456
- // @ts-ignore
1457
- return tx.moveCall({
1458
- target: "0x1::string::length",
1459
- arguments: _args,
1460
- });
1461
- }
1462
- builder.length = length;
1463
- function subString(tx, args) {
1464
- const _args = [];
1465
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1466
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
1467
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[2], tx));
1468
- // @ts-ignore
1469
- return tx.moveCall({
1470
- target: "0x1::string::sub_string",
1471
- arguments: _args,
1472
- });
1473
- }
1474
- builder.subString = subString;
1475
- function substring(tx, args) {
1476
- const _args = [];
1477
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1478
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
1479
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[2], tx));
1480
- // @ts-ignore
1481
- return tx.moveCall({
1482
- target: "0x1::string::substring",
1483
- arguments: _args,
1484
- });
1485
- }
1486
- builder.substring = substring;
1487
- function toAscii(tx, args) {
1488
- const _args = [];
1489
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
1490
- // @ts-ignore
1491
- return tx.moveCall({
1492
- target: "0x1::string::to_ascii",
1493
- arguments: _args,
1494
- });
1495
- }
1496
- builder.toAscii = toAscii;
1497
- function tryUtf8(tx, args) {
1498
- const _args = [];
1499
- _args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
1500
- // @ts-ignore
1501
- return tx.moveCall({
1502
- target: "0x1::string::try_utf8",
1503
- arguments: _args,
1504
- });
1505
- }
1506
- builder.tryUtf8 = tryUtf8;
1507
- function utf8(tx, args) {
1508
- const _args = [];
1509
- _args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
1510
- // @ts-ignore
1511
- return tx.moveCall({
1512
- target: "0x1::string::utf8",
1513
- arguments: _args,
1514
- });
1515
- }
1516
- builder.utf8 = utf8;
1517
- })(builder = string$.builder || (string$.builder = {}));
1518
- let view;
1519
- (function (view) {
1520
- async function append(client, args) {
1521
- const tx = new transactions_1.Transaction();
1522
- builder.append(tx, args);
1523
- const inspectRes = await client.devInspectTransactionBlock({
1524
- transactionBlock: tx,
1525
- sender: sui_2.ZERO_ADDRESS,
1526
- });
1527
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1528
- }
1529
- view.append = append;
1530
- async function appendUtf8(client, args) {
1531
- const tx = new transactions_1.Transaction();
1532
- builder.appendUtf8(tx, args);
1533
- const inspectRes = await client.devInspectTransactionBlock({
1534
- transactionBlock: tx,
1535
- sender: sui_2.ZERO_ADDRESS,
1536
- });
1537
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1538
- }
1539
- view.appendUtf8 = appendUtf8;
1540
- async function asBytes(client, args) {
1541
- const tx = new transactions_1.Transaction();
1542
- builder.asBytes(tx, args);
1543
- const inspectRes = await client.devInspectTransactionBlock({
1544
- transactionBlock: tx,
1545
- sender: sui_2.ZERO_ADDRESS,
1546
- });
1547
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1548
- }
1549
- view.asBytes = asBytes;
1550
- async function bytes(client, args) {
1551
- const tx = new transactions_1.Transaction();
1552
- builder.bytes(tx, args);
1553
- const inspectRes = await client.devInspectTransactionBlock({
1554
- transactionBlock: tx,
1555
- sender: sui_2.ZERO_ADDRESS,
1556
- });
1557
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1558
- }
1559
- view.bytes = bytes;
1560
- async function fromAscii(client, args) {
1561
- const tx = new transactions_1.Transaction();
1562
- builder.fromAscii(tx, args);
1563
- const inspectRes = await client.devInspectTransactionBlock({
1564
- transactionBlock: tx,
1565
- sender: sui_2.ZERO_ADDRESS,
1566
- });
1567
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1568
- }
1569
- view.fromAscii = fromAscii;
1570
- async function indexOf(client, args) {
1571
- const tx = new transactions_1.Transaction();
1572
- builder.indexOf(tx, args);
1573
- const inspectRes = await client.devInspectTransactionBlock({
1574
- transactionBlock: tx,
1575
- sender: sui_2.ZERO_ADDRESS,
1576
- });
1577
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1578
- }
1579
- view.indexOf = indexOf;
1580
- async function insert(client, args) {
1581
- const tx = new transactions_1.Transaction();
1582
- builder.insert(tx, args);
1583
- const inspectRes = await client.devInspectTransactionBlock({
1584
- transactionBlock: tx,
1585
- sender: sui_2.ZERO_ADDRESS,
1586
- });
1587
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1588
- }
1589
- view.insert = insert;
1590
- async function intoBytes(client, args) {
1591
- const tx = new transactions_1.Transaction();
1592
- builder.intoBytes(tx, args);
1593
- const inspectRes = await client.devInspectTransactionBlock({
1594
- transactionBlock: tx,
1595
- sender: sui_2.ZERO_ADDRESS,
1596
- });
1597
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1598
- }
1599
- view.intoBytes = intoBytes;
1600
- async function isEmpty(client, args) {
1601
- const tx = new transactions_1.Transaction();
1602
- builder.isEmpty(tx, args);
1603
- const inspectRes = await client.devInspectTransactionBlock({
1604
- transactionBlock: tx,
1605
- sender: sui_2.ZERO_ADDRESS,
1606
- });
1607
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1608
- }
1609
- view.isEmpty = isEmpty;
1610
- async function length(client, args) {
1611
- const tx = new transactions_1.Transaction();
1612
- builder.length(tx, args);
1613
- const inspectRes = await client.devInspectTransactionBlock({
1614
- transactionBlock: tx,
1615
- sender: sui_2.ZERO_ADDRESS,
1616
- });
1617
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1618
- }
1619
- view.length = length;
1620
- async function subString(client, args) {
1621
- const tx = new transactions_1.Transaction();
1622
- builder.subString(tx, args);
1623
- const inspectRes = await client.devInspectTransactionBlock({
1624
- transactionBlock: tx,
1625
- sender: sui_2.ZERO_ADDRESS,
1626
- });
1627
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1628
- }
1629
- view.subString = subString;
1630
- async function substring(client, args) {
1631
- const tx = new transactions_1.Transaction();
1632
- builder.substring(tx, args);
1633
- const inspectRes = await client.devInspectTransactionBlock({
1634
- transactionBlock: tx,
1635
- sender: sui_2.ZERO_ADDRESS,
1636
- });
1637
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1638
- }
1639
- view.substring = substring;
1640
- async function toAscii(client, args) {
1641
- const tx = new transactions_1.Transaction();
1642
- builder.toAscii(tx, args);
1643
- const inspectRes = await client.devInspectTransactionBlock({
1644
- transactionBlock: tx,
1645
- sender: sui_2.ZERO_ADDRESS,
1646
- });
1647
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1648
- }
1649
- view.toAscii = toAscii;
1650
- async function tryUtf8(client, args) {
1651
- const tx = new transactions_1.Transaction();
1652
- builder.tryUtf8(tx, args);
1653
- const inspectRes = await client.devInspectTransactionBlock({
1654
- transactionBlock: tx,
1655
- sender: sui_2.ZERO_ADDRESS,
1656
- });
1657
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1658
- }
1659
- view.tryUtf8 = tryUtf8;
1660
- async function utf8(client, args) {
1661
- const tx = new transactions_1.Transaction();
1662
- builder.utf8(tx, args);
1663
- const inspectRes = await client.devInspectTransactionBlock({
1664
- transactionBlock: tx,
1665
- sender: sui_2.ZERO_ADDRESS,
1666
- });
1667
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1668
- }
1669
- view.utf8 = utf8;
1670
- })(view = string$.view || (string$.view = {}));
1671
- })(string$ || (exports.string$ = string$ = {}));
1672
- var type_name;
1673
- (function (type_name) {
1674
- let TypeName;
1675
- (function (TypeName) {
1676
- TypeName.TYPE_QNAME = "0x1::type_name::TypeName";
1677
- const TYPE = new move_1.TypeDescriptor(TypeName.TYPE_QNAME);
1678
- function type() {
1679
- return TYPE.apply();
1680
- }
1681
- TypeName.type = type;
1682
- })(TypeName = type_name.TypeName || (type_name.TypeName = {}));
1683
- let builder;
1684
- (function (builder) {
1685
- function addressString(tx, args) {
1686
- const _args = [];
1687
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1688
- // @ts-ignore
1689
- return tx.moveCall({
1690
- target: "0x1::type_name::address_string",
1691
- arguments: _args,
1692
- });
1693
- }
1694
- builder.addressString = addressString;
1695
- function asString(tx, args) {
1696
- const _args = [];
1697
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1698
- // @ts-ignore
1699
- return tx.moveCall({
1700
- target: "0x1::type_name::as_string",
1701
- arguments: _args,
1702
- });
1703
- }
1704
- builder.asString = asString;
1705
- function borrowString(tx, args) {
1706
- const _args = [];
1707
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1708
- // @ts-ignore
1709
- return tx.moveCall({
1710
- target: "0x1::type_name::borrow_string",
1711
- arguments: _args,
1712
- });
1713
- }
1714
- builder.borrowString = borrowString;
1715
- function definingId(tx, args, typeArguments) {
1716
- const _args = [];
1717
- // @ts-ignore
1718
- return tx.moveCall({
1719
- target: "0x1::type_name::defining_id",
1720
- arguments: _args,
1721
- typeArguments: [
1722
- typeof typeArguments[0] === "string"
1723
- ? typeArguments[0]
1724
- : typeArguments[0].getSignature(),
1725
- ],
1726
- });
1727
- }
1728
- builder.definingId = definingId;
1729
- function get(tx, args, typeArguments) {
1730
- const _args = [];
1731
- // @ts-ignore
1732
- return tx.moveCall({
1733
- target: "0x1::type_name::get",
1734
- arguments: _args,
1735
- typeArguments: [
1736
- typeof typeArguments[0] === "string"
1737
- ? typeArguments[0]
1738
- : typeArguments[0].getSignature(),
1739
- ],
1740
- });
1741
- }
1742
- builder.get = get;
1743
- function getAddress(tx, args) {
1744
- const _args = [];
1745
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1746
- // @ts-ignore
1747
- return tx.moveCall({
1748
- target: "0x1::type_name::get_address",
1749
- arguments: _args,
1750
- });
1751
- }
1752
- builder.getAddress = getAddress;
1753
- function getModule(tx, args) {
1754
- const _args = [];
1755
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1756
- // @ts-ignore
1757
- return tx.moveCall({
1758
- target: "0x1::type_name::get_module",
1759
- arguments: _args,
1760
- });
1761
- }
1762
- builder.getModule = getModule;
1763
- function getWithOriginalIds(tx, args, typeArguments) {
1764
- const _args = [];
1765
- // @ts-ignore
1766
- return tx.moveCall({
1767
- target: "0x1::type_name::get_with_original_ids",
1768
- arguments: _args,
1769
- typeArguments: [
1770
- typeof typeArguments[0] === "string"
1771
- ? typeArguments[0]
1772
- : typeArguments[0].getSignature(),
1773
- ],
1774
- });
1775
- }
1776
- builder.getWithOriginalIds = getWithOriginalIds;
1777
- function intoString(tx, args) {
1778
- const _args = [];
1779
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
1780
- // @ts-ignore
1781
- return tx.moveCall({
1782
- target: "0x1::type_name::into_string",
1783
- arguments: _args,
1784
- });
1785
- }
1786
- builder.intoString = intoString;
1787
- function isPrimitive(tx, args) {
1788
- const _args = [];
1789
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1790
- // @ts-ignore
1791
- return tx.moveCall({
1792
- target: "0x1::type_name::is_primitive",
1793
- arguments: _args,
1794
- });
1795
- }
1796
- builder.isPrimitive = isPrimitive;
1797
- function moduleString(tx, args) {
1798
- const _args = [];
1799
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
1800
- // @ts-ignore
1801
- return tx.moveCall({
1802
- target: "0x1::type_name::module_string",
1803
- arguments: _args,
1804
- });
1805
- }
1806
- builder.moduleString = moduleString;
1807
- function originalId(tx, args, typeArguments) {
1808
- const _args = [];
1809
- // @ts-ignore
1810
- return tx.moveCall({
1811
- target: "0x1::type_name::original_id",
1812
- arguments: _args,
1813
- typeArguments: [
1814
- typeof typeArguments[0] === "string"
1815
- ? typeArguments[0]
1816
- : typeArguments[0].getSignature(),
1817
- ],
1818
- });
1819
- }
1820
- builder.originalId = originalId;
1821
- function withDefiningIds(tx, args, typeArguments) {
1822
- const _args = [];
1823
- // @ts-ignore
1824
- return tx.moveCall({
1825
- target: "0x1::type_name::with_defining_ids",
1826
- arguments: _args,
1827
- typeArguments: [
1828
- typeof typeArguments[0] === "string"
1829
- ? typeArguments[0]
1830
- : typeArguments[0].getSignature(),
1831
- ],
1832
- });
1833
- }
1834
- builder.withDefiningIds = withDefiningIds;
1835
- function withOriginalIds(tx, args, typeArguments) {
1836
- const _args = [];
1837
- // @ts-ignore
1838
- return tx.moveCall({
1839
- target: "0x1::type_name::with_original_ids",
1840
- arguments: _args,
1841
- typeArguments: [
1842
- typeof typeArguments[0] === "string"
1843
- ? typeArguments[0]
1844
- : typeArguments[0].getSignature(),
1845
- ],
1846
- });
1847
- }
1848
- builder.withOriginalIds = withOriginalIds;
1849
- })(builder = type_name.builder || (type_name.builder = {}));
1850
- let view;
1851
- (function (view) {
1852
- async function addressString(client, args) {
1853
- const tx = new transactions_1.Transaction();
1854
- builder.addressString(tx, args);
1855
- const inspectRes = await client.devInspectTransactionBlock({
1856
- transactionBlock: tx,
1857
- sender: sui_2.ZERO_ADDRESS,
1858
- });
1859
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1860
- }
1861
- view.addressString = addressString;
1862
- async function asString(client, args) {
1863
- const tx = new transactions_1.Transaction();
1864
- builder.asString(tx, args);
1865
- const inspectRes = await client.devInspectTransactionBlock({
1866
- transactionBlock: tx,
1867
- sender: sui_2.ZERO_ADDRESS,
1868
- });
1869
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1870
- }
1871
- view.asString = asString;
1872
- async function borrowString(client, args) {
1873
- const tx = new transactions_1.Transaction();
1874
- builder.borrowString(tx, args);
1875
- const inspectRes = await client.devInspectTransactionBlock({
1876
- transactionBlock: tx,
1877
- sender: sui_2.ZERO_ADDRESS,
1878
- });
1879
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1880
- }
1881
- view.borrowString = borrowString;
1882
- async function definingId(client, args, typeArguments) {
1883
- const tx = new transactions_1.Transaction();
1884
- builder.definingId(tx, args, typeArguments);
1885
- const inspectRes = await client.devInspectTransactionBlock({
1886
- transactionBlock: tx,
1887
- sender: sui_2.ZERO_ADDRESS,
1888
- });
1889
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1890
- }
1891
- view.definingId = definingId;
1892
- async function get(client, args, typeArguments) {
1893
- const tx = new transactions_1.Transaction();
1894
- builder.get(tx, args, typeArguments);
1895
- const inspectRes = await client.devInspectTransactionBlock({
1896
- transactionBlock: tx,
1897
- sender: sui_2.ZERO_ADDRESS,
1898
- });
1899
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1900
- }
1901
- view.get = get;
1902
- async function getAddress(client, args) {
1903
- const tx = new transactions_1.Transaction();
1904
- builder.getAddress(tx, args);
1905
- const inspectRes = await client.devInspectTransactionBlock({
1906
- transactionBlock: tx,
1907
- sender: sui_2.ZERO_ADDRESS,
1908
- });
1909
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1910
- }
1911
- view.getAddress = getAddress;
1912
- async function getModule(client, args) {
1913
- const tx = new transactions_1.Transaction();
1914
- builder.getModule(tx, args);
1915
- const inspectRes = await client.devInspectTransactionBlock({
1916
- transactionBlock: tx,
1917
- sender: sui_2.ZERO_ADDRESS,
1918
- });
1919
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1920
- }
1921
- view.getModule = getModule;
1922
- async function getWithOriginalIds(client, args, typeArguments) {
1923
- const tx = new transactions_1.Transaction();
1924
- builder.getWithOriginalIds(tx, args, typeArguments);
1925
- const inspectRes = await client.devInspectTransactionBlock({
1926
- transactionBlock: tx,
1927
- sender: sui_2.ZERO_ADDRESS,
1928
- });
1929
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1930
- }
1931
- view.getWithOriginalIds = getWithOriginalIds;
1932
- async function intoString(client, args) {
1933
- const tx = new transactions_1.Transaction();
1934
- builder.intoString(tx, args);
1935
- const inspectRes = await client.devInspectTransactionBlock({
1936
- transactionBlock: tx,
1937
- sender: sui_2.ZERO_ADDRESS,
1938
- });
1939
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1940
- }
1941
- view.intoString = intoString;
1942
- async function isPrimitive(client, args) {
1943
- const tx = new transactions_1.Transaction();
1944
- builder.isPrimitive(tx, args);
1945
- const inspectRes = await client.devInspectTransactionBlock({
1946
- transactionBlock: tx,
1947
- sender: sui_2.ZERO_ADDRESS,
1948
- });
1949
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1950
- }
1951
- view.isPrimitive = isPrimitive;
1952
- async function moduleString(client, args) {
1953
- const tx = new transactions_1.Transaction();
1954
- builder.moduleString(tx, args);
1955
- const inspectRes = await client.devInspectTransactionBlock({
1956
- transactionBlock: tx,
1957
- sender: sui_2.ZERO_ADDRESS,
1958
- });
1959
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1960
- }
1961
- view.moduleString = moduleString;
1962
- async function originalId(client, args, typeArguments) {
1963
- const tx = new transactions_1.Transaction();
1964
- builder.originalId(tx, args, typeArguments);
1965
- const inspectRes = await client.devInspectTransactionBlock({
1966
- transactionBlock: tx,
1967
- sender: sui_2.ZERO_ADDRESS,
1968
- });
1969
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1970
- }
1971
- view.originalId = originalId;
1972
- async function withDefiningIds(client, args, typeArguments) {
1973
- const tx = new transactions_1.Transaction();
1974
- builder.withDefiningIds(tx, args, typeArguments);
1975
- const inspectRes = await client.devInspectTransactionBlock({
1976
- transactionBlock: tx,
1977
- sender: sui_2.ZERO_ADDRESS,
1978
- });
1979
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1980
- }
1981
- view.withDefiningIds = withDefiningIds;
1982
- async function withOriginalIds(client, args, typeArguments) {
1983
- const tx = new transactions_1.Transaction();
1984
- builder.withOriginalIds(tx, args, typeArguments);
1985
- const inspectRes = await client.devInspectTransactionBlock({
1986
- transactionBlock: tx,
1987
- sender: sui_2.ZERO_ADDRESS,
1988
- });
1989
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
1990
- }
1991
- view.withOriginalIds = withOriginalIds;
1992
- })(view = type_name.view || (type_name.view = {}));
1993
- })(type_name || (exports.type_name = type_name = {}));
1994
- var u128;
1995
- (function (u128) {
1996
- let builder;
1997
- (function (builder) {
1998
- function bitwiseNot(tx, args) {
1999
- const _args = [];
2000
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[0], tx));
2001
- // @ts-ignore
2002
- return tx.moveCall({
2003
- target: "0x1::u128::bitwise_not",
2004
- arguments: _args,
2005
- });
2006
- }
2007
- builder.bitwiseNot = bitwiseNot;
2008
- function diff(tx, args) {
2009
- const _args = [];
2010
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[0], tx));
2011
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[1], tx));
2012
- // @ts-ignore
2013
- return tx.moveCall({
2014
- target: "0x1::u128::diff",
2015
- arguments: _args,
2016
- });
2017
- }
2018
- builder.diff = diff;
2019
- function divideAndRoundUp(tx, args) {
2020
- const _args = [];
2021
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[0], tx));
2022
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[1], tx));
2023
- // @ts-ignore
2024
- return tx.moveCall({
2025
- target: "0x1::u128::divide_and_round_up",
2026
- arguments: _args,
2027
- });
2028
- }
2029
- builder.divideAndRoundUp = divideAndRoundUp;
2030
- function max(tx, args) {
2031
- const _args = [];
2032
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[0], tx));
2033
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[1], tx));
2034
- // @ts-ignore
2035
- return tx.moveCall({
2036
- target: "0x1::u128::max",
2037
- arguments: _args,
2038
- });
2039
- }
2040
- builder.max = max;
2041
- function min(tx, args) {
2042
- const _args = [];
2043
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[0], tx));
2044
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[1], tx));
2045
- // @ts-ignore
2046
- return tx.moveCall({
2047
- target: "0x1::u128::min",
2048
- arguments: _args,
2049
- });
2050
- }
2051
- builder.min = min;
2052
- function pow(tx, args) {
2053
- const _args = [];
2054
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[0], tx));
2055
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[1], tx));
2056
- // @ts-ignore
2057
- return tx.moveCall({
2058
- target: "0x1::u128::pow",
2059
- arguments: _args,
2060
- });
2061
- }
2062
- builder.pow = pow;
2063
- function sqrt(tx, args) {
2064
- const _args = [];
2065
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[0], tx));
2066
- // @ts-ignore
2067
- return tx.moveCall({
2068
- target: "0x1::u128::sqrt",
2069
- arguments: _args,
2070
- });
2071
- }
2072
- builder.sqrt = sqrt;
2073
- function toString(tx, args) {
2074
- const _args = [];
2075
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[0], tx));
2076
- // @ts-ignore
2077
- return tx.moveCall({
2078
- target: "0x1::u128::to_string",
2079
- arguments: _args,
2080
- });
2081
- }
2082
- builder.toString = toString;
2083
- function tryAsU16(tx, args) {
2084
- const _args = [];
2085
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[0], tx));
2086
- // @ts-ignore
2087
- return tx.moveCall({
2088
- target: "0x1::u128::try_as_u16",
2089
- arguments: _args,
2090
- });
2091
- }
2092
- builder.tryAsU16 = tryAsU16;
2093
- function tryAsU32(tx, args) {
2094
- const _args = [];
2095
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[0], tx));
2096
- // @ts-ignore
2097
- return tx.moveCall({
2098
- target: "0x1::u128::try_as_u32",
2099
- arguments: _args,
2100
- });
2101
- }
2102
- builder.tryAsU32 = tryAsU32;
2103
- function tryAsU64(tx, args) {
2104
- const _args = [];
2105
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[0], tx));
2106
- // @ts-ignore
2107
- return tx.moveCall({
2108
- target: "0x1::u128::try_as_u64",
2109
- arguments: _args,
2110
- });
2111
- }
2112
- builder.tryAsU64 = tryAsU64;
2113
- function tryAsU8(tx, args) {
2114
- const _args = [];
2115
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[0], tx));
2116
- // @ts-ignore
2117
- return tx.moveCall({
2118
- target: "0x1::u128::try_as_u8",
2119
- arguments: _args,
2120
- });
2121
- }
2122
- builder.tryAsU8 = tryAsU8;
2123
- })(builder = u128.builder || (u128.builder = {}));
2124
- let view;
2125
- (function (view) {
2126
- async function bitwiseNot(client, args) {
2127
- const tx = new transactions_1.Transaction();
2128
- builder.bitwiseNot(tx, args);
2129
- const inspectRes = await client.devInspectTransactionBlock({
2130
- transactionBlock: tx,
2131
- sender: sui_2.ZERO_ADDRESS,
2132
- });
2133
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2134
- }
2135
- view.bitwiseNot = bitwiseNot;
2136
- async function diff(client, args) {
2137
- const tx = new transactions_1.Transaction();
2138
- builder.diff(tx, args);
2139
- const inspectRes = await client.devInspectTransactionBlock({
2140
- transactionBlock: tx,
2141
- sender: sui_2.ZERO_ADDRESS,
2142
- });
2143
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2144
- }
2145
- view.diff = diff;
2146
- async function divideAndRoundUp(client, args) {
2147
- const tx = new transactions_1.Transaction();
2148
- builder.divideAndRoundUp(tx, args);
2149
- const inspectRes = await client.devInspectTransactionBlock({
2150
- transactionBlock: tx,
2151
- sender: sui_2.ZERO_ADDRESS,
2152
- });
2153
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2154
- }
2155
- view.divideAndRoundUp = divideAndRoundUp;
2156
- async function max(client, args) {
2157
- const tx = new transactions_1.Transaction();
2158
- builder.max(tx, args);
2159
- const inspectRes = await client.devInspectTransactionBlock({
2160
- transactionBlock: tx,
2161
- sender: sui_2.ZERO_ADDRESS,
2162
- });
2163
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2164
- }
2165
- view.max = max;
2166
- async function min(client, args) {
2167
- const tx = new transactions_1.Transaction();
2168
- builder.min(tx, args);
2169
- const inspectRes = await client.devInspectTransactionBlock({
2170
- transactionBlock: tx,
2171
- sender: sui_2.ZERO_ADDRESS,
2172
- });
2173
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2174
- }
2175
- view.min = min;
2176
- async function pow(client, args) {
2177
- const tx = new transactions_1.Transaction();
2178
- builder.pow(tx, args);
2179
- const inspectRes = await client.devInspectTransactionBlock({
2180
- transactionBlock: tx,
2181
- sender: sui_2.ZERO_ADDRESS,
2182
- });
2183
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2184
- }
2185
- view.pow = pow;
2186
- async function sqrt(client, args) {
2187
- const tx = new transactions_1.Transaction();
2188
- builder.sqrt(tx, args);
2189
- const inspectRes = await client.devInspectTransactionBlock({
2190
- transactionBlock: tx,
2191
- sender: sui_2.ZERO_ADDRESS,
2192
- });
2193
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2194
- }
2195
- view.sqrt = sqrt;
2196
- async function toString(client, args) {
2197
- const tx = new transactions_1.Transaction();
2198
- builder.toString(tx, args);
2199
- const inspectRes = await client.devInspectTransactionBlock({
2200
- transactionBlock: tx,
2201
- sender: sui_2.ZERO_ADDRESS,
2202
- });
2203
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2204
- }
2205
- view.toString = toString;
2206
- async function tryAsU16(client, args) {
2207
- const tx = new transactions_1.Transaction();
2208
- builder.tryAsU16(tx, args);
2209
- const inspectRes = await client.devInspectTransactionBlock({
2210
- transactionBlock: tx,
2211
- sender: sui_2.ZERO_ADDRESS,
2212
- });
2213
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2214
- }
2215
- view.tryAsU16 = tryAsU16;
2216
- async function tryAsU32(client, args) {
2217
- const tx = new transactions_1.Transaction();
2218
- builder.tryAsU32(tx, args);
2219
- const inspectRes = await client.devInspectTransactionBlock({
2220
- transactionBlock: tx,
2221
- sender: sui_2.ZERO_ADDRESS,
2222
- });
2223
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2224
- }
2225
- view.tryAsU32 = tryAsU32;
2226
- async function tryAsU64(client, args) {
2227
- const tx = new transactions_1.Transaction();
2228
- builder.tryAsU64(tx, args);
2229
- const inspectRes = await client.devInspectTransactionBlock({
2230
- transactionBlock: tx,
2231
- sender: sui_2.ZERO_ADDRESS,
2232
- });
2233
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2234
- }
2235
- view.tryAsU64 = tryAsU64;
2236
- async function tryAsU8(client, args) {
2237
- const tx = new transactions_1.Transaction();
2238
- builder.tryAsU8(tx, args);
2239
- const inspectRes = await client.devInspectTransactionBlock({
2240
- transactionBlock: tx,
2241
- sender: sui_2.ZERO_ADDRESS,
2242
- });
2243
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2244
- }
2245
- view.tryAsU8 = tryAsU8;
2246
- })(view = u128.view || (u128.view = {}));
2247
- })(u128 || (exports.u128 = u128 = {}));
2248
- var u16;
2249
- (function (u16) {
2250
- let builder;
2251
- (function (builder) {
2252
- function bitwiseNot(tx, args) {
2253
- const _args = [];
2254
- _args.push((0, sui_3.transactionArgumentOrPureU16)(args[0], tx));
2255
- // @ts-ignore
2256
- return tx.moveCall({
2257
- target: "0x1::u16::bitwise_not",
2258
- arguments: _args,
2259
- });
2260
- }
2261
- builder.bitwiseNot = bitwiseNot;
2262
- function diff(tx, args) {
2263
- const _args = [];
2264
- _args.push((0, sui_3.transactionArgumentOrPureU16)(args[0], tx));
2265
- _args.push((0, sui_3.transactionArgumentOrPureU16)(args[1], tx));
2266
- // @ts-ignore
2267
- return tx.moveCall({
2268
- target: "0x1::u16::diff",
2269
- arguments: _args,
2270
- });
2271
- }
2272
- builder.diff = diff;
2273
- function divideAndRoundUp(tx, args) {
2274
- const _args = [];
2275
- _args.push((0, sui_3.transactionArgumentOrPureU16)(args[0], tx));
2276
- _args.push((0, sui_3.transactionArgumentOrPureU16)(args[1], tx));
2277
- // @ts-ignore
2278
- return tx.moveCall({
2279
- target: "0x1::u16::divide_and_round_up",
2280
- arguments: _args,
2281
- });
2282
- }
2283
- builder.divideAndRoundUp = divideAndRoundUp;
2284
- function max(tx, args) {
2285
- const _args = [];
2286
- _args.push((0, sui_3.transactionArgumentOrPureU16)(args[0], tx));
2287
- _args.push((0, sui_3.transactionArgumentOrPureU16)(args[1], tx));
2288
- // @ts-ignore
2289
- return tx.moveCall({
2290
- target: "0x1::u16::max",
2291
- arguments: _args,
2292
- });
2293
- }
2294
- builder.max = max;
2295
- function min(tx, args) {
2296
- const _args = [];
2297
- _args.push((0, sui_3.transactionArgumentOrPureU16)(args[0], tx));
2298
- _args.push((0, sui_3.transactionArgumentOrPureU16)(args[1], tx));
2299
- // @ts-ignore
2300
- return tx.moveCall({
2301
- target: "0x1::u16::min",
2302
- arguments: _args,
2303
- });
2304
- }
2305
- builder.min = min;
2306
- function pow(tx, args) {
2307
- const _args = [];
2308
- _args.push((0, sui_3.transactionArgumentOrPureU16)(args[0], tx));
2309
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[1], tx));
2310
- // @ts-ignore
2311
- return tx.moveCall({
2312
- target: "0x1::u16::pow",
2313
- arguments: _args,
2314
- });
2315
- }
2316
- builder.pow = pow;
2317
- function sqrt(tx, args) {
2318
- const _args = [];
2319
- _args.push((0, sui_3.transactionArgumentOrPureU16)(args[0], tx));
2320
- // @ts-ignore
2321
- return tx.moveCall({
2322
- target: "0x1::u16::sqrt",
2323
- arguments: _args,
2324
- });
2325
- }
2326
- builder.sqrt = sqrt;
2327
- function toString(tx, args) {
2328
- const _args = [];
2329
- _args.push((0, sui_3.transactionArgumentOrPureU16)(args[0], tx));
2330
- // @ts-ignore
2331
- return tx.moveCall({
2332
- target: "0x1::u16::to_string",
2333
- arguments: _args,
2334
- });
2335
- }
2336
- builder.toString = toString;
2337
- function tryAsU8(tx, args) {
2338
- const _args = [];
2339
- _args.push((0, sui_3.transactionArgumentOrPureU16)(args[0], tx));
2340
- // @ts-ignore
2341
- return tx.moveCall({
2342
- target: "0x1::u16::try_as_u8",
2343
- arguments: _args,
2344
- });
2345
- }
2346
- builder.tryAsU8 = tryAsU8;
2347
- })(builder = u16.builder || (u16.builder = {}));
2348
- let view;
2349
- (function (view) {
2350
- async function bitwiseNot(client, args) {
2351
- const tx = new transactions_1.Transaction();
2352
- builder.bitwiseNot(tx, args);
2353
- const inspectRes = await client.devInspectTransactionBlock({
2354
- transactionBlock: tx,
2355
- sender: sui_2.ZERO_ADDRESS,
2356
- });
2357
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2358
- }
2359
- view.bitwiseNot = bitwiseNot;
2360
- async function diff(client, args) {
2361
- const tx = new transactions_1.Transaction();
2362
- builder.diff(tx, args);
2363
- const inspectRes = await client.devInspectTransactionBlock({
2364
- transactionBlock: tx,
2365
- sender: sui_2.ZERO_ADDRESS,
2366
- });
2367
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2368
- }
2369
- view.diff = diff;
2370
- async function divideAndRoundUp(client, args) {
2371
- const tx = new transactions_1.Transaction();
2372
- builder.divideAndRoundUp(tx, args);
2373
- const inspectRes = await client.devInspectTransactionBlock({
2374
- transactionBlock: tx,
2375
- sender: sui_2.ZERO_ADDRESS,
2376
- });
2377
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2378
- }
2379
- view.divideAndRoundUp = divideAndRoundUp;
2380
- async function max(client, args) {
2381
- const tx = new transactions_1.Transaction();
2382
- builder.max(tx, args);
2383
- const inspectRes = await client.devInspectTransactionBlock({
2384
- transactionBlock: tx,
2385
- sender: sui_2.ZERO_ADDRESS,
2386
- });
2387
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2388
- }
2389
- view.max = max;
2390
- async function min(client, args) {
2391
- const tx = new transactions_1.Transaction();
2392
- builder.min(tx, args);
2393
- const inspectRes = await client.devInspectTransactionBlock({
2394
- transactionBlock: tx,
2395
- sender: sui_2.ZERO_ADDRESS,
2396
- });
2397
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2398
- }
2399
- view.min = min;
2400
- async function pow(client, args) {
2401
- const tx = new transactions_1.Transaction();
2402
- builder.pow(tx, args);
2403
- const inspectRes = await client.devInspectTransactionBlock({
2404
- transactionBlock: tx,
2405
- sender: sui_2.ZERO_ADDRESS,
2406
- });
2407
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2408
- }
2409
- view.pow = pow;
2410
- async function sqrt(client, args) {
2411
- const tx = new transactions_1.Transaction();
2412
- builder.sqrt(tx, args);
2413
- const inspectRes = await client.devInspectTransactionBlock({
2414
- transactionBlock: tx,
2415
- sender: sui_2.ZERO_ADDRESS,
2416
- });
2417
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2418
- }
2419
- view.sqrt = sqrt;
2420
- async function toString(client, args) {
2421
- const tx = new transactions_1.Transaction();
2422
- builder.toString(tx, args);
2423
- const inspectRes = await client.devInspectTransactionBlock({
2424
- transactionBlock: tx,
2425
- sender: sui_2.ZERO_ADDRESS,
2426
- });
2427
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2428
- }
2429
- view.toString = toString;
2430
- async function tryAsU8(client, args) {
2431
- const tx = new transactions_1.Transaction();
2432
- builder.tryAsU8(tx, args);
2433
- const inspectRes = await client.devInspectTransactionBlock({
2434
- transactionBlock: tx,
2435
- sender: sui_2.ZERO_ADDRESS,
2436
- });
2437
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2438
- }
2439
- view.tryAsU8 = tryAsU8;
2440
- })(view = u16.view || (u16.view = {}));
2441
- })(u16 || (exports.u16 = u16 = {}));
2442
- var u256;
2443
- (function (u256) {
2444
- let builder;
2445
- (function (builder) {
2446
- function bitwiseNot(tx, args) {
2447
- const _args = [];
2448
- _args.push((0, sui_3.transactionArgumentOrPureU256)(args[0], tx));
2449
- // @ts-ignore
2450
- return tx.moveCall({
2451
- target: "0x1::u256::bitwise_not",
2452
- arguments: _args,
2453
- });
2454
- }
2455
- builder.bitwiseNot = bitwiseNot;
2456
- function diff(tx, args) {
2457
- const _args = [];
2458
- _args.push((0, sui_3.transactionArgumentOrPureU256)(args[0], tx));
2459
- _args.push((0, sui_3.transactionArgumentOrPureU256)(args[1], tx));
2460
- // @ts-ignore
2461
- return tx.moveCall({
2462
- target: "0x1::u256::diff",
2463
- arguments: _args,
2464
- });
2465
- }
2466
- builder.diff = diff;
2467
- function divideAndRoundUp(tx, args) {
2468
- const _args = [];
2469
- _args.push((0, sui_3.transactionArgumentOrPureU256)(args[0], tx));
2470
- _args.push((0, sui_3.transactionArgumentOrPureU256)(args[1], tx));
2471
- // @ts-ignore
2472
- return tx.moveCall({
2473
- target: "0x1::u256::divide_and_round_up",
2474
- arguments: _args,
2475
- });
2476
- }
2477
- builder.divideAndRoundUp = divideAndRoundUp;
2478
- function max(tx, args) {
2479
- const _args = [];
2480
- _args.push((0, sui_3.transactionArgumentOrPureU256)(args[0], tx));
2481
- _args.push((0, sui_3.transactionArgumentOrPureU256)(args[1], tx));
2482
- // @ts-ignore
2483
- return tx.moveCall({
2484
- target: "0x1::u256::max",
2485
- arguments: _args,
2486
- });
2487
- }
2488
- builder.max = max;
2489
- function min(tx, args) {
2490
- const _args = [];
2491
- _args.push((0, sui_3.transactionArgumentOrPureU256)(args[0], tx));
2492
- _args.push((0, sui_3.transactionArgumentOrPureU256)(args[1], tx));
2493
- // @ts-ignore
2494
- return tx.moveCall({
2495
- target: "0x1::u256::min",
2496
- arguments: _args,
2497
- });
2498
- }
2499
- builder.min = min;
2500
- function pow(tx, args) {
2501
- const _args = [];
2502
- _args.push((0, sui_3.transactionArgumentOrPureU256)(args[0], tx));
2503
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[1], tx));
2504
- // @ts-ignore
2505
- return tx.moveCall({
2506
- target: "0x1::u256::pow",
2507
- arguments: _args,
2508
- });
2509
- }
2510
- builder.pow = pow;
2511
- function toString(tx, args) {
2512
- const _args = [];
2513
- _args.push((0, sui_3.transactionArgumentOrPureU256)(args[0], tx));
2514
- // @ts-ignore
2515
- return tx.moveCall({
2516
- target: "0x1::u256::to_string",
2517
- arguments: _args,
2518
- });
2519
- }
2520
- builder.toString = toString;
2521
- function tryAsU128(tx, args) {
2522
- const _args = [];
2523
- _args.push((0, sui_3.transactionArgumentOrPureU256)(args[0], tx));
2524
- // @ts-ignore
2525
- return tx.moveCall({
2526
- target: "0x1::u256::try_as_u128",
2527
- arguments: _args,
2528
- });
2529
- }
2530
- builder.tryAsU128 = tryAsU128;
2531
- function tryAsU16(tx, args) {
2532
- const _args = [];
2533
- _args.push((0, sui_3.transactionArgumentOrPureU256)(args[0], tx));
2534
- // @ts-ignore
2535
- return tx.moveCall({
2536
- target: "0x1::u256::try_as_u16",
2537
- arguments: _args,
2538
- });
2539
- }
2540
- builder.tryAsU16 = tryAsU16;
2541
- function tryAsU32(tx, args) {
2542
- const _args = [];
2543
- _args.push((0, sui_3.transactionArgumentOrPureU256)(args[0], tx));
2544
- // @ts-ignore
2545
- return tx.moveCall({
2546
- target: "0x1::u256::try_as_u32",
2547
- arguments: _args,
2548
- });
2549
- }
2550
- builder.tryAsU32 = tryAsU32;
2551
- function tryAsU64(tx, args) {
2552
- const _args = [];
2553
- _args.push((0, sui_3.transactionArgumentOrPureU256)(args[0], tx));
2554
- // @ts-ignore
2555
- return tx.moveCall({
2556
- target: "0x1::u256::try_as_u64",
2557
- arguments: _args,
2558
- });
2559
- }
2560
- builder.tryAsU64 = tryAsU64;
2561
- function tryAsU8(tx, args) {
2562
- const _args = [];
2563
- _args.push((0, sui_3.transactionArgumentOrPureU256)(args[0], tx));
2564
- // @ts-ignore
2565
- return tx.moveCall({
2566
- target: "0x1::u256::try_as_u8",
2567
- arguments: _args,
2568
- });
2569
- }
2570
- builder.tryAsU8 = tryAsU8;
2571
- })(builder = u256.builder || (u256.builder = {}));
2572
- let view;
2573
- (function (view) {
2574
- async function bitwiseNot(client, args) {
2575
- const tx = new transactions_1.Transaction();
2576
- builder.bitwiseNot(tx, args);
2577
- const inspectRes = await client.devInspectTransactionBlock({
2578
- transactionBlock: tx,
2579
- sender: sui_2.ZERO_ADDRESS,
2580
- });
2581
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2582
- }
2583
- view.bitwiseNot = bitwiseNot;
2584
- async function diff(client, args) {
2585
- const tx = new transactions_1.Transaction();
2586
- builder.diff(tx, args);
2587
- const inspectRes = await client.devInspectTransactionBlock({
2588
- transactionBlock: tx,
2589
- sender: sui_2.ZERO_ADDRESS,
2590
- });
2591
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2592
- }
2593
- view.diff = diff;
2594
- async function divideAndRoundUp(client, args) {
2595
- const tx = new transactions_1.Transaction();
2596
- builder.divideAndRoundUp(tx, args);
2597
- const inspectRes = await client.devInspectTransactionBlock({
2598
- transactionBlock: tx,
2599
- sender: sui_2.ZERO_ADDRESS,
2600
- });
2601
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2602
- }
2603
- view.divideAndRoundUp = divideAndRoundUp;
2604
- async function max(client, args) {
2605
- const tx = new transactions_1.Transaction();
2606
- builder.max(tx, args);
2607
- const inspectRes = await client.devInspectTransactionBlock({
2608
- transactionBlock: tx,
2609
- sender: sui_2.ZERO_ADDRESS,
2610
- });
2611
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2612
- }
2613
- view.max = max;
2614
- async function min(client, args) {
2615
- const tx = new transactions_1.Transaction();
2616
- builder.min(tx, args);
2617
- const inspectRes = await client.devInspectTransactionBlock({
2618
- transactionBlock: tx,
2619
- sender: sui_2.ZERO_ADDRESS,
2620
- });
2621
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2622
- }
2623
- view.min = min;
2624
- async function pow(client, args) {
2625
- const tx = new transactions_1.Transaction();
2626
- builder.pow(tx, args);
2627
- const inspectRes = await client.devInspectTransactionBlock({
2628
- transactionBlock: tx,
2629
- sender: sui_2.ZERO_ADDRESS,
2630
- });
2631
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2632
- }
2633
- view.pow = pow;
2634
- async function toString(client, args) {
2635
- const tx = new transactions_1.Transaction();
2636
- builder.toString(tx, args);
2637
- const inspectRes = await client.devInspectTransactionBlock({
2638
- transactionBlock: tx,
2639
- sender: sui_2.ZERO_ADDRESS,
2640
- });
2641
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2642
- }
2643
- view.toString = toString;
2644
- async function tryAsU128(client, args) {
2645
- const tx = new transactions_1.Transaction();
2646
- builder.tryAsU128(tx, args);
2647
- const inspectRes = await client.devInspectTransactionBlock({
2648
- transactionBlock: tx,
2649
- sender: sui_2.ZERO_ADDRESS,
2650
- });
2651
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2652
- }
2653
- view.tryAsU128 = tryAsU128;
2654
- async function tryAsU16(client, args) {
2655
- const tx = new transactions_1.Transaction();
2656
- builder.tryAsU16(tx, args);
2657
- const inspectRes = await client.devInspectTransactionBlock({
2658
- transactionBlock: tx,
2659
- sender: sui_2.ZERO_ADDRESS,
2660
- });
2661
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2662
- }
2663
- view.tryAsU16 = tryAsU16;
2664
- async function tryAsU32(client, args) {
2665
- const tx = new transactions_1.Transaction();
2666
- builder.tryAsU32(tx, args);
2667
- const inspectRes = await client.devInspectTransactionBlock({
2668
- transactionBlock: tx,
2669
- sender: sui_2.ZERO_ADDRESS,
2670
- });
2671
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2672
- }
2673
- view.tryAsU32 = tryAsU32;
2674
- async function tryAsU64(client, args) {
2675
- const tx = new transactions_1.Transaction();
2676
- builder.tryAsU64(tx, args);
2677
- const inspectRes = await client.devInspectTransactionBlock({
2678
- transactionBlock: tx,
2679
- sender: sui_2.ZERO_ADDRESS,
2680
- });
2681
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2682
- }
2683
- view.tryAsU64 = tryAsU64;
2684
- async function tryAsU8(client, args) {
2685
- const tx = new transactions_1.Transaction();
2686
- builder.tryAsU8(tx, args);
2687
- const inspectRes = await client.devInspectTransactionBlock({
2688
- transactionBlock: tx,
2689
- sender: sui_2.ZERO_ADDRESS,
2690
- });
2691
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2692
- }
2693
- view.tryAsU8 = tryAsU8;
2694
- })(view = u256.view || (u256.view = {}));
2695
- })(u256 || (exports.u256 = u256 = {}));
2696
- var u32;
2697
- (function (u32) {
2698
- let builder;
2699
- (function (builder) {
2700
- function bitwiseNot(tx, args) {
2701
- const _args = [];
2702
- _args.push((0, sui_3.transactionArgumentOrPureU32)(args[0], tx));
2703
- // @ts-ignore
2704
- return tx.moveCall({
2705
- target: "0x1::u32::bitwise_not",
2706
- arguments: _args,
2707
- });
2708
- }
2709
- builder.bitwiseNot = bitwiseNot;
2710
- function diff(tx, args) {
2711
- const _args = [];
2712
- _args.push((0, sui_3.transactionArgumentOrPureU32)(args[0], tx));
2713
- _args.push((0, sui_3.transactionArgumentOrPureU32)(args[1], tx));
2714
- // @ts-ignore
2715
- return tx.moveCall({
2716
- target: "0x1::u32::diff",
2717
- arguments: _args,
2718
- });
2719
- }
2720
- builder.diff = diff;
2721
- function divideAndRoundUp(tx, args) {
2722
- const _args = [];
2723
- _args.push((0, sui_3.transactionArgumentOrPureU32)(args[0], tx));
2724
- _args.push((0, sui_3.transactionArgumentOrPureU32)(args[1], tx));
2725
- // @ts-ignore
2726
- return tx.moveCall({
2727
- target: "0x1::u32::divide_and_round_up",
2728
- arguments: _args,
2729
- });
2730
- }
2731
- builder.divideAndRoundUp = divideAndRoundUp;
2732
- function max(tx, args) {
2733
- const _args = [];
2734
- _args.push((0, sui_3.transactionArgumentOrPureU32)(args[0], tx));
2735
- _args.push((0, sui_3.transactionArgumentOrPureU32)(args[1], tx));
2736
- // @ts-ignore
2737
- return tx.moveCall({
2738
- target: "0x1::u32::max",
2739
- arguments: _args,
2740
- });
2741
- }
2742
- builder.max = max;
2743
- function min(tx, args) {
2744
- const _args = [];
2745
- _args.push((0, sui_3.transactionArgumentOrPureU32)(args[0], tx));
2746
- _args.push((0, sui_3.transactionArgumentOrPureU32)(args[1], tx));
2747
- // @ts-ignore
2748
- return tx.moveCall({
2749
- target: "0x1::u32::min",
2750
- arguments: _args,
2751
- });
2752
- }
2753
- builder.min = min;
2754
- function pow(tx, args) {
2755
- const _args = [];
2756
- _args.push((0, sui_3.transactionArgumentOrPureU32)(args[0], tx));
2757
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[1], tx));
2758
- // @ts-ignore
2759
- return tx.moveCall({
2760
- target: "0x1::u32::pow",
2761
- arguments: _args,
2762
- });
2763
- }
2764
- builder.pow = pow;
2765
- function sqrt(tx, args) {
2766
- const _args = [];
2767
- _args.push((0, sui_3.transactionArgumentOrPureU32)(args[0], tx));
2768
- // @ts-ignore
2769
- return tx.moveCall({
2770
- target: "0x1::u32::sqrt",
2771
- arguments: _args,
2772
- });
2773
- }
2774
- builder.sqrt = sqrt;
2775
- function toString(tx, args) {
2776
- const _args = [];
2777
- _args.push((0, sui_3.transactionArgumentOrPureU32)(args[0], tx));
2778
- // @ts-ignore
2779
- return tx.moveCall({
2780
- target: "0x1::u32::to_string",
2781
- arguments: _args,
2782
- });
2783
- }
2784
- builder.toString = toString;
2785
- function tryAsU16(tx, args) {
2786
- const _args = [];
2787
- _args.push((0, sui_3.transactionArgumentOrPureU32)(args[0], tx));
2788
- // @ts-ignore
2789
- return tx.moveCall({
2790
- target: "0x1::u32::try_as_u16",
2791
- arguments: _args,
2792
- });
2793
- }
2794
- builder.tryAsU16 = tryAsU16;
2795
- function tryAsU8(tx, args) {
2796
- const _args = [];
2797
- _args.push((0, sui_3.transactionArgumentOrPureU32)(args[0], tx));
2798
- // @ts-ignore
2799
- return tx.moveCall({
2800
- target: "0x1::u32::try_as_u8",
2801
- arguments: _args,
2802
- });
2803
- }
2804
- builder.tryAsU8 = tryAsU8;
2805
- })(builder = u32.builder || (u32.builder = {}));
2806
- let view;
2807
- (function (view) {
2808
- async function bitwiseNot(client, args) {
2809
- const tx = new transactions_1.Transaction();
2810
- builder.bitwiseNot(tx, args);
2811
- const inspectRes = await client.devInspectTransactionBlock({
2812
- transactionBlock: tx,
2813
- sender: sui_2.ZERO_ADDRESS,
2814
- });
2815
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2816
- }
2817
- view.bitwiseNot = bitwiseNot;
2818
- async function diff(client, args) {
2819
- const tx = new transactions_1.Transaction();
2820
- builder.diff(tx, args);
2821
- const inspectRes = await client.devInspectTransactionBlock({
2822
- transactionBlock: tx,
2823
- sender: sui_2.ZERO_ADDRESS,
2824
- });
2825
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2826
- }
2827
- view.diff = diff;
2828
- async function divideAndRoundUp(client, args) {
2829
- const tx = new transactions_1.Transaction();
2830
- builder.divideAndRoundUp(tx, args);
2831
- const inspectRes = await client.devInspectTransactionBlock({
2832
- transactionBlock: tx,
2833
- sender: sui_2.ZERO_ADDRESS,
2834
- });
2835
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2836
- }
2837
- view.divideAndRoundUp = divideAndRoundUp;
2838
- async function max(client, args) {
2839
- const tx = new transactions_1.Transaction();
2840
- builder.max(tx, args);
2841
- const inspectRes = await client.devInspectTransactionBlock({
2842
- transactionBlock: tx,
2843
- sender: sui_2.ZERO_ADDRESS,
2844
- });
2845
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2846
- }
2847
- view.max = max;
2848
- async function min(client, args) {
2849
- const tx = new transactions_1.Transaction();
2850
- builder.min(tx, args);
2851
- const inspectRes = await client.devInspectTransactionBlock({
2852
- transactionBlock: tx,
2853
- sender: sui_2.ZERO_ADDRESS,
2854
- });
2855
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2856
- }
2857
- view.min = min;
2858
- async function pow(client, args) {
2859
- const tx = new transactions_1.Transaction();
2860
- builder.pow(tx, args);
2861
- const inspectRes = await client.devInspectTransactionBlock({
2862
- transactionBlock: tx,
2863
- sender: sui_2.ZERO_ADDRESS,
2864
- });
2865
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2866
- }
2867
- view.pow = pow;
2868
- async function sqrt(client, args) {
2869
- const tx = new transactions_1.Transaction();
2870
- builder.sqrt(tx, args);
2871
- const inspectRes = await client.devInspectTransactionBlock({
2872
- transactionBlock: tx,
2873
- sender: sui_2.ZERO_ADDRESS,
2874
- });
2875
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2876
- }
2877
- view.sqrt = sqrt;
2878
- async function toString(client, args) {
2879
- const tx = new transactions_1.Transaction();
2880
- builder.toString(tx, args);
2881
- const inspectRes = await client.devInspectTransactionBlock({
2882
- transactionBlock: tx,
2883
- sender: sui_2.ZERO_ADDRESS,
2884
- });
2885
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2886
- }
2887
- view.toString = toString;
2888
- async function tryAsU16(client, args) {
2889
- const tx = new transactions_1.Transaction();
2890
- builder.tryAsU16(tx, args);
2891
- const inspectRes = await client.devInspectTransactionBlock({
2892
- transactionBlock: tx,
2893
- sender: sui_2.ZERO_ADDRESS,
2894
- });
2895
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2896
- }
2897
- view.tryAsU16 = tryAsU16;
2898
- async function tryAsU8(client, args) {
2899
- const tx = new transactions_1.Transaction();
2900
- builder.tryAsU8(tx, args);
2901
- const inspectRes = await client.devInspectTransactionBlock({
2902
- transactionBlock: tx,
2903
- sender: sui_2.ZERO_ADDRESS,
2904
- });
2905
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
2906
- }
2907
- view.tryAsU8 = tryAsU8;
2908
- })(view = u32.view || (u32.view = {}));
2909
- })(u32 || (exports.u32 = u32 = {}));
2910
- var u64;
2911
- (function (u64) {
2912
- let builder;
2913
- (function (builder) {
2914
- function bitwiseNot(tx, args) {
2915
- const _args = [];
2916
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
2917
- // @ts-ignore
2918
- return tx.moveCall({
2919
- target: "0x1::u64::bitwise_not",
2920
- arguments: _args,
2921
- });
2922
- }
2923
- builder.bitwiseNot = bitwiseNot;
2924
- function diff(tx, args) {
2925
- const _args = [];
2926
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
2927
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
2928
- // @ts-ignore
2929
- return tx.moveCall({
2930
- target: "0x1::u64::diff",
2931
- arguments: _args,
2932
- });
2933
- }
2934
- builder.diff = diff;
2935
- function divideAndRoundUp(tx, args) {
2936
- const _args = [];
2937
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
2938
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
2939
- // @ts-ignore
2940
- return tx.moveCall({
2941
- target: "0x1::u64::divide_and_round_up",
2942
- arguments: _args,
2943
- });
2944
- }
2945
- builder.divideAndRoundUp = divideAndRoundUp;
2946
- function max(tx, args) {
2947
- const _args = [];
2948
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
2949
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
2950
- // @ts-ignore
2951
- return tx.moveCall({
2952
- target: "0x1::u64::max",
2953
- arguments: _args,
2954
- });
2955
- }
2956
- builder.max = max;
2957
- function min(tx, args) {
2958
- const _args = [];
2959
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
2960
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
2961
- // @ts-ignore
2962
- return tx.moveCall({
2963
- target: "0x1::u64::min",
2964
- arguments: _args,
2965
- });
2966
- }
2967
- builder.min = min;
2968
- function pow(tx, args) {
2969
- const _args = [];
2970
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
2971
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[1], tx));
2972
- // @ts-ignore
2973
- return tx.moveCall({
2974
- target: "0x1::u64::pow",
2975
- arguments: _args,
2976
- });
2977
- }
2978
- builder.pow = pow;
2979
- function sqrt(tx, args) {
2980
- const _args = [];
2981
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
2982
- // @ts-ignore
2983
- return tx.moveCall({
2984
- target: "0x1::u64::sqrt",
2985
- arguments: _args,
2986
- });
2987
- }
2988
- builder.sqrt = sqrt;
2989
- function toString(tx, args) {
2990
- const _args = [];
2991
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
2992
- // @ts-ignore
2993
- return tx.moveCall({
2994
- target: "0x1::u64::to_string",
2995
- arguments: _args,
2996
- });
2997
- }
2998
- builder.toString = toString;
2999
- function tryAsU16(tx, args) {
3000
- const _args = [];
3001
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
3002
- // @ts-ignore
3003
- return tx.moveCall({
3004
- target: "0x1::u64::try_as_u16",
3005
- arguments: _args,
3006
- });
3007
- }
3008
- builder.tryAsU16 = tryAsU16;
3009
- function tryAsU32(tx, args) {
3010
- const _args = [];
3011
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
3012
- // @ts-ignore
3013
- return tx.moveCall({
3014
- target: "0x1::u64::try_as_u32",
3015
- arguments: _args,
3016
- });
3017
- }
3018
- builder.tryAsU32 = tryAsU32;
3019
- function tryAsU8(tx, args) {
3020
- const _args = [];
3021
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
3022
- // @ts-ignore
3023
- return tx.moveCall({
3024
- target: "0x1::u64::try_as_u8",
3025
- arguments: _args,
3026
- });
3027
- }
3028
- builder.tryAsU8 = tryAsU8;
3029
- })(builder = u64.builder || (u64.builder = {}));
3030
- let view;
3031
- (function (view) {
3032
- async function bitwiseNot(client, args) {
3033
- const tx = new transactions_1.Transaction();
3034
- builder.bitwiseNot(tx, args);
3035
- const inspectRes = await client.devInspectTransactionBlock({
3036
- transactionBlock: tx,
3037
- sender: sui_2.ZERO_ADDRESS,
3038
- });
3039
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3040
- }
3041
- view.bitwiseNot = bitwiseNot;
3042
- async function diff(client, args) {
3043
- const tx = new transactions_1.Transaction();
3044
- builder.diff(tx, args);
3045
- const inspectRes = await client.devInspectTransactionBlock({
3046
- transactionBlock: tx,
3047
- sender: sui_2.ZERO_ADDRESS,
3048
- });
3049
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3050
- }
3051
- view.diff = diff;
3052
- async function divideAndRoundUp(client, args) {
3053
- const tx = new transactions_1.Transaction();
3054
- builder.divideAndRoundUp(tx, args);
3055
- const inspectRes = await client.devInspectTransactionBlock({
3056
- transactionBlock: tx,
3057
- sender: sui_2.ZERO_ADDRESS,
3058
- });
3059
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3060
- }
3061
- view.divideAndRoundUp = divideAndRoundUp;
3062
- async function max(client, args) {
3063
- const tx = new transactions_1.Transaction();
3064
- builder.max(tx, args);
3065
- const inspectRes = await client.devInspectTransactionBlock({
3066
- transactionBlock: tx,
3067
- sender: sui_2.ZERO_ADDRESS,
3068
- });
3069
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3070
- }
3071
- view.max = max;
3072
- async function min(client, args) {
3073
- const tx = new transactions_1.Transaction();
3074
- builder.min(tx, args);
3075
- const inspectRes = await client.devInspectTransactionBlock({
3076
- transactionBlock: tx,
3077
- sender: sui_2.ZERO_ADDRESS,
3078
- });
3079
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3080
- }
3081
- view.min = min;
3082
- async function pow(client, args) {
3083
- const tx = new transactions_1.Transaction();
3084
- builder.pow(tx, args);
3085
- const inspectRes = await client.devInspectTransactionBlock({
3086
- transactionBlock: tx,
3087
- sender: sui_2.ZERO_ADDRESS,
3088
- });
3089
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3090
- }
3091
- view.pow = pow;
3092
- async function sqrt(client, args) {
3093
- const tx = new transactions_1.Transaction();
3094
- builder.sqrt(tx, args);
3095
- const inspectRes = await client.devInspectTransactionBlock({
3096
- transactionBlock: tx,
3097
- sender: sui_2.ZERO_ADDRESS,
3098
- });
3099
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3100
- }
3101
- view.sqrt = sqrt;
3102
- async function toString(client, args) {
3103
- const tx = new transactions_1.Transaction();
3104
- builder.toString(tx, args);
3105
- const inspectRes = await client.devInspectTransactionBlock({
3106
- transactionBlock: tx,
3107
- sender: sui_2.ZERO_ADDRESS,
3108
- });
3109
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3110
- }
3111
- view.toString = toString;
3112
- async function tryAsU16(client, args) {
3113
- const tx = new transactions_1.Transaction();
3114
- builder.tryAsU16(tx, args);
3115
- const inspectRes = await client.devInspectTransactionBlock({
3116
- transactionBlock: tx,
3117
- sender: sui_2.ZERO_ADDRESS,
3118
- });
3119
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3120
- }
3121
- view.tryAsU16 = tryAsU16;
3122
- async function tryAsU32(client, args) {
3123
- const tx = new transactions_1.Transaction();
3124
- builder.tryAsU32(tx, args);
3125
- const inspectRes = await client.devInspectTransactionBlock({
3126
- transactionBlock: tx,
3127
- sender: sui_2.ZERO_ADDRESS,
3128
- });
3129
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3130
- }
3131
- view.tryAsU32 = tryAsU32;
3132
- async function tryAsU8(client, args) {
3133
- const tx = new transactions_1.Transaction();
3134
- builder.tryAsU8(tx, args);
3135
- const inspectRes = await client.devInspectTransactionBlock({
3136
- transactionBlock: tx,
3137
- sender: sui_2.ZERO_ADDRESS,
3138
- });
3139
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3140
- }
3141
- view.tryAsU8 = tryAsU8;
3142
- })(view = u64.view || (u64.view = {}));
3143
- })(u64 || (exports.u64 = u64 = {}));
3144
- var u8;
3145
- (function (u8) {
3146
- let builder;
3147
- (function (builder) {
3148
- function bitwiseNot(tx, args) {
3149
- const _args = [];
3150
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[0], tx));
3151
- // @ts-ignore
3152
- return tx.moveCall({
3153
- target: "0x1::u8::bitwise_not",
3154
- arguments: _args,
3155
- });
3156
- }
3157
- builder.bitwiseNot = bitwiseNot;
3158
- function diff(tx, args) {
3159
- const _args = [];
3160
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[0], tx));
3161
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[1], tx));
3162
- // @ts-ignore
3163
- return tx.moveCall({
3164
- target: "0x1::u8::diff",
3165
- arguments: _args,
3166
- });
3167
- }
3168
- builder.diff = diff;
3169
- function divideAndRoundUp(tx, args) {
3170
- const _args = [];
3171
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[0], tx));
3172
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[1], tx));
3173
- // @ts-ignore
3174
- return tx.moveCall({
3175
- target: "0x1::u8::divide_and_round_up",
3176
- arguments: _args,
3177
- });
3178
- }
3179
- builder.divideAndRoundUp = divideAndRoundUp;
3180
- function max(tx, args) {
3181
- const _args = [];
3182
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[0], tx));
3183
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[1], tx));
3184
- // @ts-ignore
3185
- return tx.moveCall({
3186
- target: "0x1::u8::max",
3187
- arguments: _args,
3188
- });
3189
- }
3190
- builder.max = max;
3191
- function min(tx, args) {
3192
- const _args = [];
3193
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[0], tx));
3194
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[1], tx));
3195
- // @ts-ignore
3196
- return tx.moveCall({
3197
- target: "0x1::u8::min",
3198
- arguments: _args,
3199
- });
3200
- }
3201
- builder.min = min;
3202
- function pow(tx, args) {
3203
- const _args = [];
3204
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[0], tx));
3205
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[1], tx));
3206
- // @ts-ignore
3207
- return tx.moveCall({
3208
- target: "0x1::u8::pow",
3209
- arguments: _args,
3210
- });
3211
- }
3212
- builder.pow = pow;
3213
- function sqrt(tx, args) {
3214
- const _args = [];
3215
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[0], tx));
3216
- // @ts-ignore
3217
- return tx.moveCall({
3218
- target: "0x1::u8::sqrt",
3219
- arguments: _args,
3220
- });
3221
- }
3222
- builder.sqrt = sqrt;
3223
- function toString(tx, args) {
3224
- const _args = [];
3225
- _args.push((0, sui_3.transactionArgumentOrPureU8)(args[0], tx));
3226
- // @ts-ignore
3227
- return tx.moveCall({
3228
- target: "0x1::u8::to_string",
3229
- arguments: _args,
3230
- });
3231
- }
3232
- builder.toString = toString;
3233
- })(builder = u8.builder || (u8.builder = {}));
3234
- let view;
3235
- (function (view) {
3236
- async function bitwiseNot(client, args) {
3237
- const tx = new transactions_1.Transaction();
3238
- builder.bitwiseNot(tx, args);
3239
- const inspectRes = await client.devInspectTransactionBlock({
3240
- transactionBlock: tx,
3241
- sender: sui_2.ZERO_ADDRESS,
3242
- });
3243
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3244
- }
3245
- view.bitwiseNot = bitwiseNot;
3246
- async function diff(client, args) {
3247
- const tx = new transactions_1.Transaction();
3248
- builder.diff(tx, args);
3249
- const inspectRes = await client.devInspectTransactionBlock({
3250
- transactionBlock: tx,
3251
- sender: sui_2.ZERO_ADDRESS,
3252
- });
3253
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3254
- }
3255
- view.diff = diff;
3256
- async function divideAndRoundUp(client, args) {
3257
- const tx = new transactions_1.Transaction();
3258
- builder.divideAndRoundUp(tx, args);
3259
- const inspectRes = await client.devInspectTransactionBlock({
3260
- transactionBlock: tx,
3261
- sender: sui_2.ZERO_ADDRESS,
3262
- });
3263
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3264
- }
3265
- view.divideAndRoundUp = divideAndRoundUp;
3266
- async function max(client, args) {
3267
- const tx = new transactions_1.Transaction();
3268
- builder.max(tx, args);
3269
- const inspectRes = await client.devInspectTransactionBlock({
3270
- transactionBlock: tx,
3271
- sender: sui_2.ZERO_ADDRESS,
3272
- });
3273
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3274
- }
3275
- view.max = max;
3276
- async function min(client, args) {
3277
- const tx = new transactions_1.Transaction();
3278
- builder.min(tx, args);
3279
- const inspectRes = await client.devInspectTransactionBlock({
3280
- transactionBlock: tx,
3281
- sender: sui_2.ZERO_ADDRESS,
3282
- });
3283
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3284
- }
3285
- view.min = min;
3286
- async function pow(client, args) {
3287
- const tx = new transactions_1.Transaction();
3288
- builder.pow(tx, args);
3289
- const inspectRes = await client.devInspectTransactionBlock({
3290
- transactionBlock: tx,
3291
- sender: sui_2.ZERO_ADDRESS,
3292
- });
3293
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3294
- }
3295
- view.pow = pow;
3296
- async function sqrt(client, args) {
3297
- const tx = new transactions_1.Transaction();
3298
- builder.sqrt(tx, args);
3299
- const inspectRes = await client.devInspectTransactionBlock({
3300
- transactionBlock: tx,
3301
- sender: sui_2.ZERO_ADDRESS,
3302
- });
3303
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3304
- }
3305
- view.sqrt = sqrt;
3306
- async function toString(client, args) {
3307
- const tx = new transactions_1.Transaction();
3308
- builder.toString(tx, args);
3309
- const inspectRes = await client.devInspectTransactionBlock({
3310
- transactionBlock: tx,
3311
- sender: sui_2.ZERO_ADDRESS,
3312
- });
3313
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3314
- }
3315
- view.toString = toString;
3316
- })(view = u8.view || (u8.view = {}));
3317
- })(u8 || (exports.u8 = u8 = {}));
3318
- var uq32_32;
3319
- (function (uq32_32) {
3320
- let UQ32_32;
3321
- (function (UQ32_32) {
3322
- UQ32_32.TYPE_QNAME = "0x1::uq32_32::UQ32_32";
3323
- const TYPE = new move_1.TypeDescriptor(UQ32_32.TYPE_QNAME);
3324
- function type() {
3325
- return TYPE.apply();
3326
- }
3327
- UQ32_32.type = type;
3328
- })(UQ32_32 = uq32_32.UQ32_32 || (uq32_32.UQ32_32 = {}));
3329
- let builder;
3330
- (function (builder) {
3331
- function add(tx, args) {
3332
- const _args = [];
3333
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3334
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3335
- // @ts-ignore
3336
- return tx.moveCall({
3337
- target: "0x1::uq32_32::add",
3338
- arguments: _args,
3339
- });
3340
- }
3341
- builder.add = add;
3342
- function div(tx, args) {
3343
- const _args = [];
3344
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3345
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3346
- // @ts-ignore
3347
- return tx.moveCall({
3348
- target: "0x1::uq32_32::div",
3349
- arguments: _args,
3350
- });
3351
- }
3352
- builder.div = div;
3353
- function fromInt(tx, args) {
3354
- const _args = [];
3355
- _args.push((0, sui_3.transactionArgumentOrPureU32)(args[0], tx));
3356
- // @ts-ignore
3357
- return tx.moveCall({
3358
- target: "0x1::uq32_32::from_int",
3359
- arguments: _args,
3360
- });
3361
- }
3362
- builder.fromInt = fromInt;
3363
- function fromQuotient(tx, args) {
3364
- const _args = [];
3365
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
3366
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
3367
- // @ts-ignore
3368
- return tx.moveCall({
3369
- target: "0x1::uq32_32::from_quotient",
3370
- arguments: _args,
3371
- });
3372
- }
3373
- builder.fromQuotient = fromQuotient;
3374
- function fromRaw(tx, args) {
3375
- const _args = [];
3376
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
3377
- // @ts-ignore
3378
- return tx.moveCall({
3379
- target: "0x1::uq32_32::from_raw",
3380
- arguments: _args,
3381
- });
3382
- }
3383
- builder.fromRaw = fromRaw;
3384
- function ge(tx, args) {
3385
- const _args = [];
3386
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3387
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3388
- // @ts-ignore
3389
- return tx.moveCall({
3390
- target: "0x1::uq32_32::ge",
3391
- arguments: _args,
3392
- });
3393
- }
3394
- builder.ge = ge;
3395
- function gt(tx, args) {
3396
- const _args = [];
3397
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3398
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3399
- // @ts-ignore
3400
- return tx.moveCall({
3401
- target: "0x1::uq32_32::gt",
3402
- arguments: _args,
3403
- });
3404
- }
3405
- builder.gt = gt;
3406
- function intDiv(tx, args) {
3407
- const _args = [];
3408
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
3409
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3410
- // @ts-ignore
3411
- return tx.moveCall({
3412
- target: "0x1::uq32_32::int_div",
3413
- arguments: _args,
3414
- });
3415
- }
3416
- builder.intDiv = intDiv;
3417
- function intMul(tx, args) {
3418
- const _args = [];
3419
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
3420
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3421
- // @ts-ignore
3422
- return tx.moveCall({
3423
- target: "0x1::uq32_32::int_mul",
3424
- arguments: _args,
3425
- });
3426
- }
3427
- builder.intMul = intMul;
3428
- function le(tx, args) {
3429
- const _args = [];
3430
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3431
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3432
- // @ts-ignore
3433
- return tx.moveCall({
3434
- target: "0x1::uq32_32::le",
3435
- arguments: _args,
3436
- });
3437
- }
3438
- builder.le = le;
3439
- function lt(tx, args) {
3440
- const _args = [];
3441
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3442
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3443
- // @ts-ignore
3444
- return tx.moveCall({
3445
- target: "0x1::uq32_32::lt",
3446
- arguments: _args,
3447
- });
3448
- }
3449
- builder.lt = lt;
3450
- function mul(tx, args) {
3451
- const _args = [];
3452
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3453
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3454
- // @ts-ignore
3455
- return tx.moveCall({
3456
- target: "0x1::uq32_32::mul",
3457
- arguments: _args,
3458
- });
3459
- }
3460
- builder.mul = mul;
3461
- function sub(tx, args) {
3462
- const _args = [];
3463
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3464
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3465
- // @ts-ignore
3466
- return tx.moveCall({
3467
- target: "0x1::uq32_32::sub",
3468
- arguments: _args,
3469
- });
3470
- }
3471
- builder.sub = sub;
3472
- function toInt(tx, args) {
3473
- const _args = [];
3474
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3475
- // @ts-ignore
3476
- return tx.moveCall({
3477
- target: "0x1::uq32_32::to_int",
3478
- arguments: _args,
3479
- });
3480
- }
3481
- builder.toInt = toInt;
3482
- function toRaw(tx, args) {
3483
- const _args = [];
3484
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3485
- // @ts-ignore
3486
- return tx.moveCall({
3487
- target: "0x1::uq32_32::to_raw",
3488
- arguments: _args,
3489
- });
3490
- }
3491
- builder.toRaw = toRaw;
3492
- })(builder = uq32_32.builder || (uq32_32.builder = {}));
3493
- let view;
3494
- (function (view) {
3495
- async function add(client, args) {
3496
- const tx = new transactions_1.Transaction();
3497
- builder.add(tx, args);
3498
- const inspectRes = await client.devInspectTransactionBlock({
3499
- transactionBlock: tx,
3500
- sender: sui_2.ZERO_ADDRESS,
3501
- });
3502
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3503
- }
3504
- view.add = add;
3505
- async function div(client, args) {
3506
- const tx = new transactions_1.Transaction();
3507
- builder.div(tx, args);
3508
- const inspectRes = await client.devInspectTransactionBlock({
3509
- transactionBlock: tx,
3510
- sender: sui_2.ZERO_ADDRESS,
3511
- });
3512
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3513
- }
3514
- view.div = div;
3515
- async function fromInt(client, args) {
3516
- const tx = new transactions_1.Transaction();
3517
- builder.fromInt(tx, args);
3518
- const inspectRes = await client.devInspectTransactionBlock({
3519
- transactionBlock: tx,
3520
- sender: sui_2.ZERO_ADDRESS,
3521
- });
3522
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3523
- }
3524
- view.fromInt = fromInt;
3525
- async function fromQuotient(client, args) {
3526
- const tx = new transactions_1.Transaction();
3527
- builder.fromQuotient(tx, args);
3528
- const inspectRes = await client.devInspectTransactionBlock({
3529
- transactionBlock: tx,
3530
- sender: sui_2.ZERO_ADDRESS,
3531
- });
3532
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3533
- }
3534
- view.fromQuotient = fromQuotient;
3535
- async function fromRaw(client, args) {
3536
- const tx = new transactions_1.Transaction();
3537
- builder.fromRaw(tx, args);
3538
- const inspectRes = await client.devInspectTransactionBlock({
3539
- transactionBlock: tx,
3540
- sender: sui_2.ZERO_ADDRESS,
3541
- });
3542
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3543
- }
3544
- view.fromRaw = fromRaw;
3545
- async function ge(client, args) {
3546
- const tx = new transactions_1.Transaction();
3547
- builder.ge(tx, args);
3548
- const inspectRes = await client.devInspectTransactionBlock({
3549
- transactionBlock: tx,
3550
- sender: sui_2.ZERO_ADDRESS,
3551
- });
3552
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3553
- }
3554
- view.ge = ge;
3555
- async function gt(client, args) {
3556
- const tx = new transactions_1.Transaction();
3557
- builder.gt(tx, args);
3558
- const inspectRes = await client.devInspectTransactionBlock({
3559
- transactionBlock: tx,
3560
- sender: sui_2.ZERO_ADDRESS,
3561
- });
3562
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3563
- }
3564
- view.gt = gt;
3565
- async function intDiv(client, args) {
3566
- const tx = new transactions_1.Transaction();
3567
- builder.intDiv(tx, args);
3568
- const inspectRes = await client.devInspectTransactionBlock({
3569
- transactionBlock: tx,
3570
- sender: sui_2.ZERO_ADDRESS,
3571
- });
3572
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3573
- }
3574
- view.intDiv = intDiv;
3575
- async function intMul(client, args) {
3576
- const tx = new transactions_1.Transaction();
3577
- builder.intMul(tx, args);
3578
- const inspectRes = await client.devInspectTransactionBlock({
3579
- transactionBlock: tx,
3580
- sender: sui_2.ZERO_ADDRESS,
3581
- });
3582
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3583
- }
3584
- view.intMul = intMul;
3585
- async function le(client, args) {
3586
- const tx = new transactions_1.Transaction();
3587
- builder.le(tx, args);
3588
- const inspectRes = await client.devInspectTransactionBlock({
3589
- transactionBlock: tx,
3590
- sender: sui_2.ZERO_ADDRESS,
3591
- });
3592
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3593
- }
3594
- view.le = le;
3595
- async function lt(client, args) {
3596
- const tx = new transactions_1.Transaction();
3597
- builder.lt(tx, args);
3598
- const inspectRes = await client.devInspectTransactionBlock({
3599
- transactionBlock: tx,
3600
- sender: sui_2.ZERO_ADDRESS,
3601
- });
3602
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3603
- }
3604
- view.lt = lt;
3605
- async function mul(client, args) {
3606
- const tx = new transactions_1.Transaction();
3607
- builder.mul(tx, args);
3608
- const inspectRes = await client.devInspectTransactionBlock({
3609
- transactionBlock: tx,
3610
- sender: sui_2.ZERO_ADDRESS,
3611
- });
3612
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3613
- }
3614
- view.mul = mul;
3615
- async function sub(client, args) {
3616
- const tx = new transactions_1.Transaction();
3617
- builder.sub(tx, args);
3618
- const inspectRes = await client.devInspectTransactionBlock({
3619
- transactionBlock: tx,
3620
- sender: sui_2.ZERO_ADDRESS,
3621
- });
3622
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3623
- }
3624
- view.sub = sub;
3625
- async function toInt(client, args) {
3626
- const tx = new transactions_1.Transaction();
3627
- builder.toInt(tx, args);
3628
- const inspectRes = await client.devInspectTransactionBlock({
3629
- transactionBlock: tx,
3630
- sender: sui_2.ZERO_ADDRESS,
3631
- });
3632
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3633
- }
3634
- view.toInt = toInt;
3635
- async function toRaw(client, args) {
3636
- const tx = new transactions_1.Transaction();
3637
- builder.toRaw(tx, args);
3638
- const inspectRes = await client.devInspectTransactionBlock({
3639
- transactionBlock: tx,
3640
- sender: sui_2.ZERO_ADDRESS,
3641
- });
3642
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3643
- }
3644
- view.toRaw = toRaw;
3645
- })(view = uq32_32.view || (uq32_32.view = {}));
3646
- })(uq32_32 || (exports.uq32_32 = uq32_32 = {}));
3647
- var uq64_64;
3648
- (function (uq64_64) {
3649
- let UQ64_64;
3650
- (function (UQ64_64) {
3651
- UQ64_64.TYPE_QNAME = "0x1::uq64_64::UQ64_64";
3652
- const TYPE = new move_1.TypeDescriptor(UQ64_64.TYPE_QNAME);
3653
- function type() {
3654
- return TYPE.apply();
3655
- }
3656
- UQ64_64.type = type;
3657
- })(UQ64_64 = uq64_64.UQ64_64 || (uq64_64.UQ64_64 = {}));
3658
- let builder;
3659
- (function (builder) {
3660
- function add(tx, args) {
3661
- const _args = [];
3662
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3663
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3664
- // @ts-ignore
3665
- return tx.moveCall({
3666
- target: "0x1::uq64_64::add",
3667
- arguments: _args,
3668
- });
3669
- }
3670
- builder.add = add;
3671
- function div(tx, args) {
3672
- const _args = [];
3673
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3674
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3675
- // @ts-ignore
3676
- return tx.moveCall({
3677
- target: "0x1::uq64_64::div",
3678
- arguments: _args,
3679
- });
3680
- }
3681
- builder.div = div;
3682
- function fromInt(tx, args) {
3683
- const _args = [];
3684
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[0], tx));
3685
- // @ts-ignore
3686
- return tx.moveCall({
3687
- target: "0x1::uq64_64::from_int",
3688
- arguments: _args,
3689
- });
3690
- }
3691
- builder.fromInt = fromInt;
3692
- function fromQuotient(tx, args) {
3693
- const _args = [];
3694
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[0], tx));
3695
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[1], tx));
3696
- // @ts-ignore
3697
- return tx.moveCall({
3698
- target: "0x1::uq64_64::from_quotient",
3699
- arguments: _args,
3700
- });
3701
- }
3702
- builder.fromQuotient = fromQuotient;
3703
- function fromRaw(tx, args) {
3704
- const _args = [];
3705
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[0], tx));
3706
- // @ts-ignore
3707
- return tx.moveCall({
3708
- target: "0x1::uq64_64::from_raw",
3709
- arguments: _args,
3710
- });
3711
- }
3712
- builder.fromRaw = fromRaw;
3713
- function ge(tx, args) {
3714
- const _args = [];
3715
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3716
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3717
- // @ts-ignore
3718
- return tx.moveCall({
3719
- target: "0x1::uq64_64::ge",
3720
- arguments: _args,
3721
- });
3722
- }
3723
- builder.ge = ge;
3724
- function gt(tx, args) {
3725
- const _args = [];
3726
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3727
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3728
- // @ts-ignore
3729
- return tx.moveCall({
3730
- target: "0x1::uq64_64::gt",
3731
- arguments: _args,
3732
- });
3733
- }
3734
- builder.gt = gt;
3735
- function intDiv(tx, args) {
3736
- const _args = [];
3737
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[0], tx));
3738
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3739
- // @ts-ignore
3740
- return tx.moveCall({
3741
- target: "0x1::uq64_64::int_div",
3742
- arguments: _args,
3743
- });
3744
- }
3745
- builder.intDiv = intDiv;
3746
- function intMul(tx, args) {
3747
- const _args = [];
3748
- _args.push((0, sui_3.transactionArgumentOrPureU128)(args[0], tx));
3749
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3750
- // @ts-ignore
3751
- return tx.moveCall({
3752
- target: "0x1::uq64_64::int_mul",
3753
- arguments: _args,
3754
- });
3755
- }
3756
- builder.intMul = intMul;
3757
- function le(tx, args) {
3758
- const _args = [];
3759
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3760
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3761
- // @ts-ignore
3762
- return tx.moveCall({
3763
- target: "0x1::uq64_64::le",
3764
- arguments: _args,
3765
- });
3766
- }
3767
- builder.le = le;
3768
- function lt(tx, args) {
3769
- const _args = [];
3770
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3771
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3772
- // @ts-ignore
3773
- return tx.moveCall({
3774
- target: "0x1::uq64_64::lt",
3775
- arguments: _args,
3776
- });
3777
- }
3778
- builder.lt = lt;
3779
- function mul(tx, args) {
3780
- const _args = [];
3781
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3782
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3783
- // @ts-ignore
3784
- return tx.moveCall({
3785
- target: "0x1::uq64_64::mul",
3786
- arguments: _args,
3787
- });
3788
- }
3789
- builder.mul = mul;
3790
- function sub(tx, args) {
3791
- const _args = [];
3792
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3793
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
3794
- // @ts-ignore
3795
- return tx.moveCall({
3796
- target: "0x1::uq64_64::sub",
3797
- arguments: _args,
3798
- });
3799
- }
3800
- builder.sub = sub;
3801
- function toInt(tx, args) {
3802
- const _args = [];
3803
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3804
- // @ts-ignore
3805
- return tx.moveCall({
3806
- target: "0x1::uq64_64::to_int",
3807
- arguments: _args,
3808
- });
3809
- }
3810
- builder.toInt = toInt;
3811
- function toRaw(tx, args) {
3812
- const _args = [];
3813
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
3814
- // @ts-ignore
3815
- return tx.moveCall({
3816
- target: "0x1::uq64_64::to_raw",
3817
- arguments: _args,
3818
- });
3819
- }
3820
- builder.toRaw = toRaw;
3821
- })(builder = uq64_64.builder || (uq64_64.builder = {}));
3822
- let view;
3823
- (function (view) {
3824
- async function add(client, args) {
3825
- const tx = new transactions_1.Transaction();
3826
- builder.add(tx, args);
3827
- const inspectRes = await client.devInspectTransactionBlock({
3828
- transactionBlock: tx,
3829
- sender: sui_2.ZERO_ADDRESS,
3830
- });
3831
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3832
- }
3833
- view.add = add;
3834
- async function div(client, args) {
3835
- const tx = new transactions_1.Transaction();
3836
- builder.div(tx, args);
3837
- const inspectRes = await client.devInspectTransactionBlock({
3838
- transactionBlock: tx,
3839
- sender: sui_2.ZERO_ADDRESS,
3840
- });
3841
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3842
- }
3843
- view.div = div;
3844
- async function fromInt(client, args) {
3845
- const tx = new transactions_1.Transaction();
3846
- builder.fromInt(tx, args);
3847
- const inspectRes = await client.devInspectTransactionBlock({
3848
- transactionBlock: tx,
3849
- sender: sui_2.ZERO_ADDRESS,
3850
- });
3851
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3852
- }
3853
- view.fromInt = fromInt;
3854
- async function fromQuotient(client, args) {
3855
- const tx = new transactions_1.Transaction();
3856
- builder.fromQuotient(tx, args);
3857
- const inspectRes = await client.devInspectTransactionBlock({
3858
- transactionBlock: tx,
3859
- sender: sui_2.ZERO_ADDRESS,
3860
- });
3861
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3862
- }
3863
- view.fromQuotient = fromQuotient;
3864
- async function fromRaw(client, args) {
3865
- const tx = new transactions_1.Transaction();
3866
- builder.fromRaw(tx, args);
3867
- const inspectRes = await client.devInspectTransactionBlock({
3868
- transactionBlock: tx,
3869
- sender: sui_2.ZERO_ADDRESS,
3870
- });
3871
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3872
- }
3873
- view.fromRaw = fromRaw;
3874
- async function ge(client, args) {
3875
- const tx = new transactions_1.Transaction();
3876
- builder.ge(tx, args);
3877
- const inspectRes = await client.devInspectTransactionBlock({
3878
- transactionBlock: tx,
3879
- sender: sui_2.ZERO_ADDRESS,
3880
- });
3881
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3882
- }
3883
- view.ge = ge;
3884
- async function gt(client, args) {
3885
- const tx = new transactions_1.Transaction();
3886
- builder.gt(tx, args);
3887
- const inspectRes = await client.devInspectTransactionBlock({
3888
- transactionBlock: tx,
3889
- sender: sui_2.ZERO_ADDRESS,
3890
- });
3891
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3892
- }
3893
- view.gt = gt;
3894
- async function intDiv(client, args) {
3895
- const tx = new transactions_1.Transaction();
3896
- builder.intDiv(tx, args);
3897
- const inspectRes = await client.devInspectTransactionBlock({
3898
- transactionBlock: tx,
3899
- sender: sui_2.ZERO_ADDRESS,
3900
- });
3901
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3902
- }
3903
- view.intDiv = intDiv;
3904
- async function intMul(client, args) {
3905
- const tx = new transactions_1.Transaction();
3906
- builder.intMul(tx, args);
3907
- const inspectRes = await client.devInspectTransactionBlock({
3908
- transactionBlock: tx,
3909
- sender: sui_2.ZERO_ADDRESS,
3910
- });
3911
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3912
- }
3913
- view.intMul = intMul;
3914
- async function le(client, args) {
3915
- const tx = new transactions_1.Transaction();
3916
- builder.le(tx, args);
3917
- const inspectRes = await client.devInspectTransactionBlock({
3918
- transactionBlock: tx,
3919
- sender: sui_2.ZERO_ADDRESS,
3920
- });
3921
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3922
- }
3923
- view.le = le;
3924
- async function lt(client, args) {
3925
- const tx = new transactions_1.Transaction();
3926
- builder.lt(tx, args);
3927
- const inspectRes = await client.devInspectTransactionBlock({
3928
- transactionBlock: tx,
3929
- sender: sui_2.ZERO_ADDRESS,
3930
- });
3931
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3932
- }
3933
- view.lt = lt;
3934
- async function mul(client, args) {
3935
- const tx = new transactions_1.Transaction();
3936
- builder.mul(tx, args);
3937
- const inspectRes = await client.devInspectTransactionBlock({
3938
- transactionBlock: tx,
3939
- sender: sui_2.ZERO_ADDRESS,
3940
- });
3941
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3942
- }
3943
- view.mul = mul;
3944
- async function sub(client, args) {
3945
- const tx = new transactions_1.Transaction();
3946
- builder.sub(tx, args);
3947
- const inspectRes = await client.devInspectTransactionBlock({
3948
- transactionBlock: tx,
3949
- sender: sui_2.ZERO_ADDRESS,
3950
- });
3951
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3952
- }
3953
- view.sub = sub;
3954
- async function toInt(client, args) {
3955
- const tx = new transactions_1.Transaction();
3956
- builder.toInt(tx, args);
3957
- const inspectRes = await client.devInspectTransactionBlock({
3958
- transactionBlock: tx,
3959
- sender: sui_2.ZERO_ADDRESS,
3960
- });
3961
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3962
- }
3963
- view.toInt = toInt;
3964
- async function toRaw(client, args) {
3965
- const tx = new transactions_1.Transaction();
3966
- builder.toRaw(tx, args);
3967
- const inspectRes = await client.devInspectTransactionBlock({
3968
- transactionBlock: tx,
3969
- sender: sui_2.ZERO_ADDRESS,
3970
- });
3971
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
3972
- }
3973
- view.toRaw = toRaw;
3974
- })(view = uq64_64.view || (uq64_64.view = {}));
3975
- })(uq64_64 || (exports.uq64_64 = uq64_64 = {}));
3976
- var vector;
3977
- (function (vector) {
3978
- let builder;
3979
- (function (builder) {
3980
- function append(tx, args, typeArguments) {
3981
- const _args = [];
3982
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
3983
- _args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
3984
- // @ts-ignore
3985
- return tx.moveCall({
3986
- target: "0x1::vector::append",
3987
- arguments: _args,
3988
- typeArguments: [
3989
- typeof typeArguments[0] === "string"
3990
- ? typeArguments[0]
3991
- : typeArguments[0].getSignature(),
3992
- ],
3993
- });
3994
- }
3995
- builder.append = append;
3996
- function borrow(tx, args, typeArguments) {
3997
- const _args = [];
3998
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
3999
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
4000
- // @ts-ignore
4001
- return tx.moveCall({
4002
- target: "0x1::vector::borrow",
4003
- arguments: _args,
4004
- typeArguments: [
4005
- typeof typeArguments[0] === "string"
4006
- ? typeArguments[0]
4007
- : typeArguments[0].getSignature(),
4008
- ],
4009
- });
4010
- }
4011
- builder.borrow = borrow;
4012
- function borrowMut(tx, args, typeArguments) {
4013
- const _args = [];
4014
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
4015
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
4016
- // @ts-ignore
4017
- return tx.moveCall({
4018
- target: "0x1::vector::borrow_mut",
4019
- arguments: _args,
4020
- typeArguments: [
4021
- typeof typeArguments[0] === "string"
4022
- ? typeArguments[0]
4023
- : typeArguments[0].getSignature(),
4024
- ],
4025
- });
4026
- }
4027
- builder.borrowMut = borrowMut;
4028
- function contains(tx, args, typeArguments) {
4029
- const _args = [];
4030
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
4031
- _args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
4032
- // @ts-ignore
4033
- return tx.moveCall({
4034
- target: "0x1::vector::contains",
4035
- arguments: _args,
4036
- typeArguments: [
4037
- typeof typeArguments[0] === "string"
4038
- ? typeArguments[0]
4039
- : typeArguments[0].getSignature(),
4040
- ],
4041
- });
4042
- }
4043
- builder.contains = contains;
4044
- function destroyEmpty(tx, args, typeArguments) {
4045
- const _args = [];
4046
- _args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
4047
- // @ts-ignore
4048
- return tx.moveCall({
4049
- target: "0x1::vector::destroy_empty",
4050
- arguments: _args,
4051
- typeArguments: [
4052
- typeof typeArguments[0] === "string"
4053
- ? typeArguments[0]
4054
- : typeArguments[0].getSignature(),
4055
- ],
4056
- });
4057
- }
4058
- builder.destroyEmpty = destroyEmpty;
4059
- function empty(tx, args, typeArguments) {
4060
- const _args = [];
4061
- // @ts-ignore
4062
- return tx.moveCall({
4063
- target: "0x1::vector::empty",
4064
- arguments: _args,
4065
- typeArguments: [
4066
- typeof typeArguments[0] === "string"
4067
- ? typeArguments[0]
4068
- : typeArguments[0].getSignature(),
4069
- ],
4070
- });
4071
- }
4072
- builder.empty = empty;
4073
- function flatten(tx, args, typeArguments) {
4074
- const _args = [];
4075
- _args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
4076
- // @ts-ignore
4077
- return tx.moveCall({
4078
- target: "0x1::vector::flatten",
4079
- arguments: _args,
4080
- typeArguments: [
4081
- typeof typeArguments[0] === "string"
4082
- ? typeArguments[0]
4083
- : typeArguments[0].getSignature(),
4084
- ],
4085
- });
4086
- }
4087
- builder.flatten = flatten;
4088
- function indexOf(tx, args, typeArguments) {
4089
- const _args = [];
4090
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
4091
- _args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
4092
- // @ts-ignore
4093
- return tx.moveCall({
4094
- target: "0x1::vector::index_of",
4095
- arguments: _args,
4096
- typeArguments: [
4097
- typeof typeArguments[0] === "string"
4098
- ? typeArguments[0]
4099
- : typeArguments[0].getSignature(),
4100
- ],
4101
- });
4102
- }
4103
- builder.indexOf = indexOf;
4104
- function insert(tx, args, typeArguments) {
4105
- const _args = [];
4106
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
4107
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
4108
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[2], tx));
4109
- // @ts-ignore
4110
- return tx.moveCall({
4111
- target: "0x1::vector::insert",
4112
- arguments: _args,
4113
- typeArguments: [
4114
- typeof typeArguments[0] === "string"
4115
- ? typeArguments[0]
4116
- : typeArguments[0].getSignature(),
4117
- ],
4118
- });
4119
- }
4120
- builder.insert = insert;
4121
- function isEmpty(tx, args, typeArguments) {
4122
- const _args = [];
4123
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
4124
- // @ts-ignore
4125
- return tx.moveCall({
4126
- target: "0x1::vector::is_empty",
4127
- arguments: _args,
4128
- typeArguments: [
4129
- typeof typeArguments[0] === "string"
4130
- ? typeArguments[0]
4131
- : typeArguments[0].getSignature(),
4132
- ],
4133
- });
4134
- }
4135
- builder.isEmpty = isEmpty;
4136
- function length(tx, args, typeArguments) {
4137
- const _args = [];
4138
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
4139
- // @ts-ignore
4140
- return tx.moveCall({
4141
- target: "0x1::vector::length",
4142
- arguments: _args,
4143
- typeArguments: [
4144
- typeof typeArguments[0] === "string"
4145
- ? typeArguments[0]
4146
- : typeArguments[0].getSignature(),
4147
- ],
4148
- });
4149
- }
4150
- builder.length = length;
4151
- function popBack(tx, args, typeArguments) {
4152
- const _args = [];
4153
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
4154
- // @ts-ignore
4155
- return tx.moveCall({
4156
- target: "0x1::vector::pop_back",
4157
- arguments: _args,
4158
- typeArguments: [
4159
- typeof typeArguments[0] === "string"
4160
- ? typeArguments[0]
4161
- : typeArguments[0].getSignature(),
4162
- ],
4163
- });
4164
- }
4165
- builder.popBack = popBack;
4166
- function pushBack(tx, args, typeArguments) {
4167
- const _args = [];
4168
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
4169
- _args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
4170
- // @ts-ignore
4171
- return tx.moveCall({
4172
- target: "0x1::vector::push_back",
4173
- arguments: _args,
4174
- typeArguments: [
4175
- typeof typeArguments[0] === "string"
4176
- ? typeArguments[0]
4177
- : typeArguments[0].getSignature(),
4178
- ],
4179
- });
4180
- }
4181
- builder.pushBack = pushBack;
4182
- function remove(tx, args, typeArguments) {
4183
- const _args = [];
4184
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
4185
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
4186
- // @ts-ignore
4187
- return tx.moveCall({
4188
- target: "0x1::vector::remove",
4189
- arguments: _args,
4190
- typeArguments: [
4191
- typeof typeArguments[0] === "string"
4192
- ? typeArguments[0]
4193
- : typeArguments[0].getSignature(),
4194
- ],
4195
- });
4196
- }
4197
- builder.remove = remove;
4198
- function reverse(tx, args, typeArguments) {
4199
- const _args = [];
4200
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
4201
- // @ts-ignore
4202
- return tx.moveCall({
4203
- target: "0x1::vector::reverse",
4204
- arguments: _args,
4205
- typeArguments: [
4206
- typeof typeArguments[0] === "string"
4207
- ? typeArguments[0]
4208
- : typeArguments[0].getSignature(),
4209
- ],
4210
- });
4211
- }
4212
- builder.reverse = reverse;
4213
- function singleton(tx, args, typeArguments) {
4214
- const _args = [];
4215
- _args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
4216
- // @ts-ignore
4217
- return tx.moveCall({
4218
- target: "0x1::vector::singleton",
4219
- arguments: _args,
4220
- typeArguments: [
4221
- typeof typeArguments[0] === "string"
4222
- ? typeArguments[0]
4223
- : typeArguments[0].getSignature(),
4224
- ],
4225
- });
4226
- }
4227
- builder.singleton = singleton;
4228
- function skip(tx, args, typeArguments) {
4229
- const _args = [];
4230
- _args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
4231
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
4232
- // @ts-ignore
4233
- return tx.moveCall({
4234
- target: "0x1::vector::skip",
4235
- arguments: _args,
4236
- typeArguments: [
4237
- typeof typeArguments[0] === "string"
4238
- ? typeArguments[0]
4239
- : typeArguments[0].getSignature(),
4240
- ],
4241
- });
4242
- }
4243
- builder.skip = skip;
4244
- function swap(tx, args, typeArguments) {
4245
- const _args = [];
4246
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
4247
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
4248
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[2], tx));
4249
- // @ts-ignore
4250
- return tx.moveCall({
4251
- target: "0x1::vector::swap",
4252
- arguments: _args,
4253
- typeArguments: [
4254
- typeof typeArguments[0] === "string"
4255
- ? typeArguments[0]
4256
- : typeArguments[0].getSignature(),
4257
- ],
4258
- });
4259
- }
4260
- builder.swap = swap;
4261
- function swapRemove(tx, args, typeArguments) {
4262
- const _args = [];
4263
- _args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
4264
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
4265
- // @ts-ignore
4266
- return tx.moveCall({
4267
- target: "0x1::vector::swap_remove",
4268
- arguments: _args,
4269
- typeArguments: [
4270
- typeof typeArguments[0] === "string"
4271
- ? typeArguments[0]
4272
- : typeArguments[0].getSignature(),
4273
- ],
4274
- });
4275
- }
4276
- builder.swapRemove = swapRemove;
4277
- function take(tx, args, typeArguments) {
4278
- const _args = [];
4279
- _args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
4280
- _args.push((0, sui_3.transactionArgumentOrPureU64)(args[1], tx));
4281
- // @ts-ignore
4282
- return tx.moveCall({
4283
- target: "0x1::vector::take",
4284
- arguments: _args,
4285
- typeArguments: [
4286
- typeof typeArguments[0] === "string"
4287
- ? typeArguments[0]
4288
- : typeArguments[0].getSignature(),
4289
- ],
4290
- });
4291
- }
4292
- builder.take = take;
4293
- })(builder = vector.builder || (vector.builder = {}));
4294
- let view;
4295
- (function (view) {
4296
- async function append(client, args, typeArguments) {
4297
- const tx = new transactions_1.Transaction();
4298
- builder.append(tx, args, typeArguments);
4299
- const inspectRes = await client.devInspectTransactionBlock({
4300
- transactionBlock: tx,
4301
- sender: sui_2.ZERO_ADDRESS,
4302
- });
4303
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4304
- }
4305
- view.append = append;
4306
- async function borrow(client, args, typeArguments) {
4307
- const tx = new transactions_1.Transaction();
4308
- builder.borrow(tx, args, typeArguments);
4309
- const inspectRes = await client.devInspectTransactionBlock({
4310
- transactionBlock: tx,
4311
- sender: sui_2.ZERO_ADDRESS,
4312
- });
4313
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4314
- }
4315
- view.borrow = borrow;
4316
- async function borrowMut(client, args, typeArguments) {
4317
- const tx = new transactions_1.Transaction();
4318
- builder.borrowMut(tx, args, typeArguments);
4319
- const inspectRes = await client.devInspectTransactionBlock({
4320
- transactionBlock: tx,
4321
- sender: sui_2.ZERO_ADDRESS,
4322
- });
4323
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4324
- }
4325
- view.borrowMut = borrowMut;
4326
- async function contains(client, args, typeArguments) {
4327
- const tx = new transactions_1.Transaction();
4328
- builder.contains(tx, args, typeArguments);
4329
- const inspectRes = await client.devInspectTransactionBlock({
4330
- transactionBlock: tx,
4331
- sender: sui_2.ZERO_ADDRESS,
4332
- });
4333
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4334
- }
4335
- view.contains = contains;
4336
- async function destroyEmpty(client, args, typeArguments) {
4337
- const tx = new transactions_1.Transaction();
4338
- builder.destroyEmpty(tx, args, typeArguments);
4339
- const inspectRes = await client.devInspectTransactionBlock({
4340
- transactionBlock: tx,
4341
- sender: sui_2.ZERO_ADDRESS,
4342
- });
4343
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4344
- }
4345
- view.destroyEmpty = destroyEmpty;
4346
- async function empty(client, args, typeArguments) {
4347
- const tx = new transactions_1.Transaction();
4348
- builder.empty(tx, args, typeArguments);
4349
- const inspectRes = await client.devInspectTransactionBlock({
4350
- transactionBlock: tx,
4351
- sender: sui_2.ZERO_ADDRESS,
4352
- });
4353
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4354
- }
4355
- view.empty = empty;
4356
- async function flatten(client, args, typeArguments) {
4357
- const tx = new transactions_1.Transaction();
4358
- builder.flatten(tx, args, typeArguments);
4359
- const inspectRes = await client.devInspectTransactionBlock({
4360
- transactionBlock: tx,
4361
- sender: sui_2.ZERO_ADDRESS,
4362
- });
4363
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4364
- }
4365
- view.flatten = flatten;
4366
- async function indexOf(client, args, typeArguments) {
4367
- const tx = new transactions_1.Transaction();
4368
- builder.indexOf(tx, args, typeArguments);
4369
- const inspectRes = await client.devInspectTransactionBlock({
4370
- transactionBlock: tx,
4371
- sender: sui_2.ZERO_ADDRESS,
4372
- });
4373
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4374
- }
4375
- view.indexOf = indexOf;
4376
- async function insert(client, args, typeArguments) {
4377
- const tx = new transactions_1.Transaction();
4378
- builder.insert(tx, args, typeArguments);
4379
- const inspectRes = await client.devInspectTransactionBlock({
4380
- transactionBlock: tx,
4381
- sender: sui_2.ZERO_ADDRESS,
4382
- });
4383
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4384
- }
4385
- view.insert = insert;
4386
- async function isEmpty(client, args, typeArguments) {
4387
- const tx = new transactions_1.Transaction();
4388
- builder.isEmpty(tx, args, typeArguments);
4389
- const inspectRes = await client.devInspectTransactionBlock({
4390
- transactionBlock: tx,
4391
- sender: sui_2.ZERO_ADDRESS,
4392
- });
4393
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4394
- }
4395
- view.isEmpty = isEmpty;
4396
- async function length(client, args, typeArguments) {
4397
- const tx = new transactions_1.Transaction();
4398
- builder.length(tx, args, typeArguments);
4399
- const inspectRes = await client.devInspectTransactionBlock({
4400
- transactionBlock: tx,
4401
- sender: sui_2.ZERO_ADDRESS,
4402
- });
4403
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4404
- }
4405
- view.length = length;
4406
- async function popBack(client, args, typeArguments) {
4407
- const tx = new transactions_1.Transaction();
4408
- builder.popBack(tx, args, typeArguments);
4409
- const inspectRes = await client.devInspectTransactionBlock({
4410
- transactionBlock: tx,
4411
- sender: sui_2.ZERO_ADDRESS,
4412
- });
4413
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4414
- }
4415
- view.popBack = popBack;
4416
- async function pushBack(client, args, typeArguments) {
4417
- const tx = new transactions_1.Transaction();
4418
- builder.pushBack(tx, args, typeArguments);
4419
- const inspectRes = await client.devInspectTransactionBlock({
4420
- transactionBlock: tx,
4421
- sender: sui_2.ZERO_ADDRESS,
4422
- });
4423
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4424
- }
4425
- view.pushBack = pushBack;
4426
- async function remove(client, args, typeArguments) {
4427
- const tx = new transactions_1.Transaction();
4428
- builder.remove(tx, args, typeArguments);
4429
- const inspectRes = await client.devInspectTransactionBlock({
4430
- transactionBlock: tx,
4431
- sender: sui_2.ZERO_ADDRESS,
4432
- });
4433
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4434
- }
4435
- view.remove = remove;
4436
- async function reverse(client, args, typeArguments) {
4437
- const tx = new transactions_1.Transaction();
4438
- builder.reverse(tx, args, typeArguments);
4439
- const inspectRes = await client.devInspectTransactionBlock({
4440
- transactionBlock: tx,
4441
- sender: sui_2.ZERO_ADDRESS,
4442
- });
4443
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4444
- }
4445
- view.reverse = reverse;
4446
- async function singleton(client, args, typeArguments) {
4447
- const tx = new transactions_1.Transaction();
4448
- builder.singleton(tx, args, typeArguments);
4449
- const inspectRes = await client.devInspectTransactionBlock({
4450
- transactionBlock: tx,
4451
- sender: sui_2.ZERO_ADDRESS,
4452
- });
4453
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4454
- }
4455
- view.singleton = singleton;
4456
- async function skip(client, args, typeArguments) {
4457
- const tx = new transactions_1.Transaction();
4458
- builder.skip(tx, args, typeArguments);
4459
- const inspectRes = await client.devInspectTransactionBlock({
4460
- transactionBlock: tx,
4461
- sender: sui_2.ZERO_ADDRESS,
4462
- });
4463
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4464
- }
4465
- view.skip = skip;
4466
- async function swap(client, args, typeArguments) {
4467
- const tx = new transactions_1.Transaction();
4468
- builder.swap(tx, args, typeArguments);
4469
- const inspectRes = await client.devInspectTransactionBlock({
4470
- transactionBlock: tx,
4471
- sender: sui_2.ZERO_ADDRESS,
4472
- });
4473
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4474
- }
4475
- view.swap = swap;
4476
- async function swapRemove(client, args, typeArguments) {
4477
- const tx = new transactions_1.Transaction();
4478
- builder.swapRemove(tx, args, typeArguments);
4479
- const inspectRes = await client.devInspectTransactionBlock({
4480
- transactionBlock: tx,
4481
- sender: sui_2.ZERO_ADDRESS,
4482
- });
4483
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4484
- }
4485
- view.swapRemove = swapRemove;
4486
- async function take(client, args, typeArguments) {
4487
- const tx = new transactions_1.Transaction();
4488
- builder.take(tx, args, typeArguments);
4489
- const inspectRes = await client.devInspectTransactionBlock({
4490
- transactionBlock: tx,
4491
- sender: sui_2.ZERO_ADDRESS,
4492
- });
4493
- return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
4494
- }
4495
- view.take = take;
4496
- })(view = vector.view || (vector.view = {}));
4497
- })(vector || (exports.vector = vector = {}));
4498
- 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"]},"append":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[]},"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":[]}}]},"index_of":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":["U64"]},"insert":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},"U64",{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[]},"into_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[{"Vector":"U8"}]},"is_empty":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":["Bool"]},"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":[]}}]},"substring":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},"U64","U64"],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"to_lowercase":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"to_uppercase":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"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":[]}}},"bool":{"fileFormatVersion":6,"address":"0x1","name":"bool","friends":[],"structs":{},"exposedFunctions":{}},"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"}]}}},"macros":{"fileFormatVersion":6,"address":"0x1","name":"macros","friends":[],"structs":{},"exposedFunctions":{}},"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":[]},"as_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}}],"return":[{"Reference":{"Vector":"U8"}}]},"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":[]},"into_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}],"return":[{"Vector":"U8"}]},"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":[]}}]},"substring":{"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":{"address_string":{"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":[]}}]},"as_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":[]}}}]},"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":[]}}}]},"defining_id":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":["Address"]},"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":[]}}]},"get_with_original_ids":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","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":[]}}]},"is_primitive":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}}],"return":["Bool"]},"module_string":{"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":[]}}]},"original_id":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":["Address"]},"with_defining_ids":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}]},"with_original_ids":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}]}}},"u128":{"fileFormatVersion":6,"address":"0x1","name":"u128","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":["U128"]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U8"],"return":["U128"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":["U128"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u16":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"try_as_u32":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"try_as_u64":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u16":{"fileFormatVersion":6,"address":"0x1","name":"u16","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16"],"return":["U16"]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":["U16"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":["U16"]},"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":["U16"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":["U16"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U8"],"return":["U16"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16"],"return":["U16"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u256":{"fileFormatVersion":6,"address":"0x1","name":"u256","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":["U256"]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":["U256"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":["U256"]},"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":["U256"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":["U256"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U8"],"return":["U256"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u128":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U128"]}}]},"try_as_u16":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"try_as_u32":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"try_as_u64":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u32":{"fileFormatVersion":6,"address":"0x1","name":"u32","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":["U32"]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":["U32"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":["U32"]},"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":["U32"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":["U32"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U8"],"return":["U32"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":["U32"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u16":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u64":{"fileFormatVersion":6,"address":"0x1","name":"u64","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":["U64"]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U8"],"return":["U64"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":["U64"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u16":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"try_as_u32":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u8":{"fileFormatVersion":6,"address":"0x1","name":"u8","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8"],"return":["U8"]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8"],"return":["U8"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]}}},"uq32_32":{"fileFormatVersion":6,"address":"0x1","name":"uq32_32","friends":[],"structs":{"UQ32_32":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"pos0","type":"U64"}]}},"exposedFunctions":{"add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"from_int":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"from_quotient":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"from_raw":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"ge":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["Bool"]},"gt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["Bool"]},"int_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64",{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["U64"]},"int_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64",{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["U64"]},"le":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["Bool"]},"lt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["Bool"]},"mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"to_int":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["U32"]},"to_raw":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["U64"]}}},"uq64_64":{"fileFormatVersion":6,"address":"0x1","name":"uq64_64","friends":[],"structs":{"UQ64_64":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"pos0","type":"U128"}]}},"exposedFunctions":{"add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"from_int":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"from_quotient":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"from_raw":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"ge":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["Bool"]},"gt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["Bool"]},"int_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128",{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["U128"]},"int_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128",{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["U128"]},"le":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["Bool"]},"lt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["Bool"]},"mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"to_int":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["U64"]},"to_raw":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["U128"]}}},"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}}]},"flatten":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Vector":{"Vector":{"TypeParameter":0}}}],"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}}]},"skip":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":["Drop"]}],"parameters":[{"Vector":{"TypeParameter":0}},"U64"],"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}]},"take":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":["Drop"]}],"parameters":[{"Vector":{"TypeParameter":0}},"U64"],"return":[{"Vector":{"TypeParameter":0}}]}}}}');
4499
- function loadAllTypes(coder) {
4500
- for (const m of Object.values(MODULES)) {
4501
- coder.load(m, "0x1");
4502
- }
4503
- }
4504
- loadAllTypes((0, sui_1.defaultMoveCoder)());
4505
- //# sourceMappingURL=0x1.js.map