@typemove/iota 2.0.0 → 2.0.1-rc.1

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