@typemove/sui 1.2.0-rc.2 → 1.2.0-rc.3

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 (75) hide show
  1. package/dist/cjs/builtin/0x1.d.ts +83 -82
  2. package/dist/cjs/builtin/0x1.d.ts.map +1 -1
  3. package/dist/cjs/builtin/0x1.js +164 -164
  4. package/dist/cjs/builtin/0x1.js.map +1 -1
  5. package/dist/cjs/builtin/0x2.d.ts +353 -349
  6. package/dist/cjs/builtin/0x2.d.ts.map +1 -1
  7. package/dist/cjs/builtin/0x2.js +698 -698
  8. package/dist/cjs/builtin/0x2.js.map +1 -1
  9. package/dist/cjs/builtin/0x3.d.ts +101 -100
  10. package/dist/cjs/builtin/0x3.d.ts.map +1 -1
  11. package/dist/cjs/builtin/0x3.js +200 -200
  12. package/dist/cjs/builtin/0x3.js.map +1 -1
  13. package/dist/cjs/codegen/codegen.d.ts.map +1 -1
  14. package/dist/cjs/codegen/codegen.js +11 -8
  15. package/dist/cjs/codegen/codegen.js.map +1 -1
  16. package/dist/cjs/index.d.ts +1 -1
  17. package/dist/cjs/index.d.ts.map +1 -1
  18. package/dist/cjs/index.js +2 -1
  19. package/dist/cjs/index.js.map +1 -1
  20. package/dist/cjs/models.d.ts +7 -1
  21. package/dist/cjs/models.d.ts.map +1 -1
  22. package/dist/cjs/models.js +0 -3
  23. package/dist/cjs/models.js.map +1 -1
  24. package/dist/cjs/move-coder.d.ts +6 -3
  25. package/dist/cjs/move-coder.d.ts.map +1 -1
  26. package/dist/cjs/move-coder.js +50 -5
  27. package/dist/cjs/move-coder.js.map +1 -1
  28. package/dist/cjs/sui-chain-adapter.d.ts +4 -1
  29. package/dist/cjs/sui-chain-adapter.d.ts.map +1 -1
  30. package/dist/cjs/sui-chain-adapter.js +10 -4
  31. package/dist/cjs/sui-chain-adapter.js.map +1 -1
  32. package/dist/esm/builtin/0x1.d.ts +83 -82
  33. package/dist/esm/builtin/0x1.d.ts.map +1 -1
  34. package/dist/esm/builtin/0x1.js +165 -165
  35. package/dist/esm/builtin/0x1.js.map +1 -1
  36. package/dist/esm/builtin/0x2.d.ts +353 -349
  37. package/dist/esm/builtin/0x2.d.ts.map +1 -1
  38. package/dist/esm/builtin/0x2.js +699 -699
  39. package/dist/esm/builtin/0x2.js.map +1 -1
  40. package/dist/esm/builtin/0x3.d.ts +101 -100
  41. package/dist/esm/builtin/0x3.d.ts.map +1 -1
  42. package/dist/esm/builtin/0x3.js +201 -201
  43. package/dist/esm/builtin/0x3.js.map +1 -1
  44. package/dist/esm/codegen/codegen.d.ts.map +1 -1
  45. package/dist/esm/codegen/codegen.js +12 -9
  46. package/dist/esm/codegen/codegen.js.map +1 -1
  47. package/dist/esm/index.d.ts +1 -1
  48. package/dist/esm/index.d.ts.map +1 -1
  49. package/dist/esm/index.js +1 -1
  50. package/dist/esm/index.js.map +1 -1
  51. package/dist/esm/models.d.ts +7 -1
  52. package/dist/esm/models.d.ts.map +1 -1
  53. package/dist/esm/models.js +0 -3
  54. package/dist/esm/models.js.map +1 -1
  55. package/dist/esm/move-coder.d.ts +6 -3
  56. package/dist/esm/move-coder.d.ts.map +1 -1
  57. package/dist/esm/move-coder.js +48 -4
  58. package/dist/esm/move-coder.js.map +1 -1
  59. package/dist/esm/sui-chain-adapter.d.ts +4 -1
  60. package/dist/esm/sui-chain-adapter.d.ts.map +1 -1
  61. package/dist/esm/sui-chain-adapter.js +10 -4
  62. package/dist/esm/sui-chain-adapter.js.map +1 -1
  63. package/package.json +2 -2
  64. package/src/builtin/0x1.ts +503 -247
  65. package/src/builtin/0x2.ts +2137 -1049
  66. package/src/builtin/0x3.ts +611 -301
  67. package/src/codegen/codegen.ts +14 -10
  68. package/src/index.ts +1 -1
  69. package/src/models.ts +7 -4
  70. package/src/move-coder.ts +57 -6
  71. package/src/sui-chain-adapter.ts +11 -4
  72. package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +29 -13
  73. package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +319 -145
  74. package/src/tests/types/testnet/0xdee9.ts +303 -142
  75. package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +990 -466
@@ -4,7 +4,7 @@
4
4
  /* Generated modules for account 0x1 */
5
5
  import { TypeDescriptor, ANY_TYPE } from "@typemove/move";
6
6
  import { defaultMoveCoder } from "@typemove/sui";
7
- import { ZERO_ADDRESS } from "@typemove/sui";
7
+ import { ZERO_ADDRESS, getMoveCoder, } from "@typemove/sui";
8
8
  import { TransactionBlock } from "@mysten/sui.js/transactions";
9
9
  import { TransactionArgument } from "@mysten/sui.js";
10
10
  export var address;
@@ -26,11 +26,11 @@ export var address;
26
26
  async function length(client, args) {
27
27
  const tx = new TransactionBlock();
28
28
  builder.length(tx, args);
29
- const res = await client.devInspectTransactionBlock({
29
+ const insepctRes = await client.devInspectTransactionBlock({
30
30
  transactionBlock: tx,
31
31
  sender: ZERO_ADDRESS,
32
32
  });
33
- return res;
33
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
34
34
  }
35
35
  view.length = length;
36
36
  })(view = address.view || (address.view = {}));
@@ -194,121 +194,121 @@ export var ascii;
194
194
  async function allCharactersPrintable(client, args) {
195
195
  const tx = new TransactionBlock();
196
196
  builder.allCharactersPrintable(tx, args);
197
- const res = await client.devInspectTransactionBlock({
197
+ const insepctRes = await client.devInspectTransactionBlock({
198
198
  transactionBlock: tx,
199
199
  sender: ZERO_ADDRESS,
200
200
  });
201
- return res;
201
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
202
202
  }
203
203
  view.allCharactersPrintable = allCharactersPrintable;
204
204
  async function asBytes(client, args) {
205
205
  const tx = new TransactionBlock();
206
206
  builder.asBytes(tx, args);
207
- const res = await client.devInspectTransactionBlock({
207
+ const insepctRes = await client.devInspectTransactionBlock({
208
208
  transactionBlock: tx,
209
209
  sender: ZERO_ADDRESS,
210
210
  });
211
- return res;
211
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
212
212
  }
213
213
  view.asBytes = asBytes;
214
214
  async function byte(client, args) {
215
215
  const tx = new TransactionBlock();
216
216
  builder.byte(tx, args);
217
- const res = await client.devInspectTransactionBlock({
217
+ const insepctRes = await client.devInspectTransactionBlock({
218
218
  transactionBlock: tx,
219
219
  sender: ZERO_ADDRESS,
220
220
  });
221
- return res;
221
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
222
222
  }
223
223
  view.byte = byte;
224
224
  async function char(client, args) {
225
225
  const tx = new TransactionBlock();
226
226
  builder.char(tx, args);
227
- const res = await client.devInspectTransactionBlock({
227
+ const insepctRes = await client.devInspectTransactionBlock({
228
228
  transactionBlock: tx,
229
229
  sender: ZERO_ADDRESS,
230
230
  });
231
- return res;
231
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
232
232
  }
233
233
  view.char = char;
234
234
  async function intoBytes(client, args) {
235
235
  const tx = new TransactionBlock();
236
236
  builder.intoBytes(tx, args);
237
- const res = await client.devInspectTransactionBlock({
237
+ const insepctRes = await client.devInspectTransactionBlock({
238
238
  transactionBlock: tx,
239
239
  sender: ZERO_ADDRESS,
240
240
  });
241
- return res;
241
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
242
242
  }
243
243
  view.intoBytes = intoBytes;
244
244
  async function isPrintableChar(client, args) {
245
245
  const tx = new TransactionBlock();
246
246
  builder.isPrintableChar(tx, args);
247
- const res = await client.devInspectTransactionBlock({
247
+ const insepctRes = await client.devInspectTransactionBlock({
248
248
  transactionBlock: tx,
249
249
  sender: ZERO_ADDRESS,
250
250
  });
251
- return res;
251
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
252
252
  }
253
253
  view.isPrintableChar = isPrintableChar;
254
254
  async function isValidChar(client, args) {
255
255
  const tx = new TransactionBlock();
256
256
  builder.isValidChar(tx, args);
257
- const res = await client.devInspectTransactionBlock({
257
+ const insepctRes = await client.devInspectTransactionBlock({
258
258
  transactionBlock: tx,
259
259
  sender: ZERO_ADDRESS,
260
260
  });
261
- return res;
261
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
262
262
  }
263
263
  view.isValidChar = isValidChar;
264
264
  async function length(client, args) {
265
265
  const tx = new TransactionBlock();
266
266
  builder.length(tx, args);
267
- const res = await client.devInspectTransactionBlock({
267
+ const insepctRes = await client.devInspectTransactionBlock({
268
268
  transactionBlock: tx,
269
269
  sender: ZERO_ADDRESS,
270
270
  });
271
- return res;
271
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
272
272
  }
273
273
  view.length = length;
274
274
  async function popChar(client, args) {
275
275
  const tx = new TransactionBlock();
276
276
  builder.popChar(tx, args);
277
- const res = await client.devInspectTransactionBlock({
277
+ const insepctRes = await client.devInspectTransactionBlock({
278
278
  transactionBlock: tx,
279
279
  sender: ZERO_ADDRESS,
280
280
  });
281
- return res;
281
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
282
282
  }
283
283
  view.popChar = popChar;
284
284
  async function pushChar(client, args) {
285
285
  const tx = new TransactionBlock();
286
286
  builder.pushChar(tx, args);
287
- const res = await client.devInspectTransactionBlock({
287
+ const insepctRes = await client.devInspectTransactionBlock({
288
288
  transactionBlock: tx,
289
289
  sender: ZERO_ADDRESS,
290
290
  });
291
- return res;
291
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
292
292
  }
293
293
  view.pushChar = pushChar;
294
294
  async function string_(client, args) {
295
295
  const tx = new TransactionBlock();
296
296
  builder.string_(tx, args);
297
- const res = await client.devInspectTransactionBlock({
297
+ const insepctRes = await client.devInspectTransactionBlock({
298
298
  transactionBlock: tx,
299
299
  sender: ZERO_ADDRESS,
300
300
  });
301
- return res;
301
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
302
302
  }
303
303
  view.string_ = string_;
304
304
  async function tryString(client, args) {
305
305
  const tx = new TransactionBlock();
306
306
  builder.tryString(tx, args);
307
- const res = await client.devInspectTransactionBlock({
307
+ const insepctRes = await client.devInspectTransactionBlock({
308
308
  transactionBlock: tx,
309
309
  sender: ZERO_ADDRESS,
310
310
  });
311
- return res;
311
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
312
312
  }
313
313
  view.tryString = tryString;
314
314
  })(view = ascii.view || (ascii.view = {}));
@@ -338,11 +338,11 @@ export var bcs;
338
338
  async function toBytes(client, args, typeArguments) {
339
339
  const tx = new TransactionBlock();
340
340
  builder.toBytes(tx, args, typeArguments);
341
- const res = await client.devInspectTransactionBlock({
341
+ const insepctRes = await client.devInspectTransactionBlock({
342
342
  transactionBlock: tx,
343
343
  sender: ZERO_ADDRESS,
344
344
  });
345
- return res;
345
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
346
346
  }
347
347
  view.toBytes = toBytes;
348
348
  })(view = bcs.view || (bcs.view = {}));
@@ -441,71 +441,71 @@ export var bit_vector;
441
441
  async function isIndexSet(client, args) {
442
442
  const tx = new TransactionBlock();
443
443
  builder.isIndexSet(tx, args);
444
- const res = await client.devInspectTransactionBlock({
444
+ const insepctRes = await client.devInspectTransactionBlock({
445
445
  transactionBlock: tx,
446
446
  sender: ZERO_ADDRESS,
447
447
  });
448
- return res;
448
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
449
449
  }
450
450
  view.isIndexSet = isIndexSet;
451
451
  async function length(client, args) {
452
452
  const tx = new TransactionBlock();
453
453
  builder.length(tx, args);
454
- const res = await client.devInspectTransactionBlock({
454
+ const insepctRes = await client.devInspectTransactionBlock({
455
455
  transactionBlock: tx,
456
456
  sender: ZERO_ADDRESS,
457
457
  });
458
- return res;
458
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
459
459
  }
460
460
  view.length = length;
461
461
  async function longestSetSequenceStartingAt(client, args) {
462
462
  const tx = new TransactionBlock();
463
463
  builder.longestSetSequenceStartingAt(tx, args);
464
- const res = await client.devInspectTransactionBlock({
464
+ const insepctRes = await client.devInspectTransactionBlock({
465
465
  transactionBlock: tx,
466
466
  sender: ZERO_ADDRESS,
467
467
  });
468
- return res;
468
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
469
469
  }
470
470
  view.longestSetSequenceStartingAt = longestSetSequenceStartingAt;
471
471
  async function new_(client, args) {
472
472
  const tx = new TransactionBlock();
473
473
  builder.new_(tx, args);
474
- const res = await client.devInspectTransactionBlock({
474
+ const insepctRes = await client.devInspectTransactionBlock({
475
475
  transactionBlock: tx,
476
476
  sender: ZERO_ADDRESS,
477
477
  });
478
- return res;
478
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
479
479
  }
480
480
  view.new_ = new_;
481
481
  async function set(client, args) {
482
482
  const tx = new TransactionBlock();
483
483
  builder.set(tx, args);
484
- const res = await client.devInspectTransactionBlock({
484
+ const insepctRes = await client.devInspectTransactionBlock({
485
485
  transactionBlock: tx,
486
486
  sender: ZERO_ADDRESS,
487
487
  });
488
- return res;
488
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
489
489
  }
490
490
  view.set = set;
491
491
  async function shiftLeft(client, args) {
492
492
  const tx = new TransactionBlock();
493
493
  builder.shiftLeft(tx, args);
494
- const res = await client.devInspectTransactionBlock({
494
+ const insepctRes = await client.devInspectTransactionBlock({
495
495
  transactionBlock: tx,
496
496
  sender: ZERO_ADDRESS,
497
497
  });
498
- return res;
498
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
499
499
  }
500
500
  view.shiftLeft = shiftLeft;
501
501
  async function unset(client, args) {
502
502
  const tx = new TransactionBlock();
503
503
  builder.unset(tx, args);
504
- const res = await client.devInspectTransactionBlock({
504
+ const insepctRes = await client.devInspectTransactionBlock({
505
505
  transactionBlock: tx,
506
506
  sender: ZERO_ADDRESS,
507
507
  });
508
- return res;
508
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
509
509
  }
510
510
  view.unset = unset;
511
511
  })(view = bit_vector.view || (bit_vector.view = {}));
@@ -544,21 +544,21 @@ export var debug;
544
544
  async function print(client, args, typeArguments) {
545
545
  const tx = new TransactionBlock();
546
546
  builder.print(tx, args, typeArguments);
547
- const res = await client.devInspectTransactionBlock({
547
+ const insepctRes = await client.devInspectTransactionBlock({
548
548
  transactionBlock: tx,
549
549
  sender: ZERO_ADDRESS,
550
550
  });
551
- return res;
551
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
552
552
  }
553
553
  view.print = print;
554
554
  async function printStackTrace(client, args) {
555
555
  const tx = new TransactionBlock();
556
556
  builder.printStackTrace(tx, args);
557
- const res = await client.devInspectTransactionBlock({
557
+ const insepctRes = await client.devInspectTransactionBlock({
558
558
  transactionBlock: tx,
559
559
  sender: ZERO_ADDRESS,
560
560
  });
561
- return res;
561
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
562
562
  }
563
563
  view.printStackTrace = printStackTrace;
564
564
  })(view = debug.view || (debug.view = {}));
@@ -645,61 +645,61 @@ export var fixed_point32;
645
645
  async function createFromRational(client, args) {
646
646
  const tx = new TransactionBlock();
647
647
  builder.createFromRational(tx, args);
648
- const res = await client.devInspectTransactionBlock({
648
+ const insepctRes = await client.devInspectTransactionBlock({
649
649
  transactionBlock: tx,
650
650
  sender: ZERO_ADDRESS,
651
651
  });
652
- return res;
652
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
653
653
  }
654
654
  view.createFromRational = createFromRational;
655
655
  async function createFromRawValue(client, args) {
656
656
  const tx = new TransactionBlock();
657
657
  builder.createFromRawValue(tx, args);
658
- const res = await client.devInspectTransactionBlock({
658
+ const insepctRes = await client.devInspectTransactionBlock({
659
659
  transactionBlock: tx,
660
660
  sender: ZERO_ADDRESS,
661
661
  });
662
- return res;
662
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
663
663
  }
664
664
  view.createFromRawValue = createFromRawValue;
665
665
  async function divideU64(client, args) {
666
666
  const tx = new TransactionBlock();
667
667
  builder.divideU64(tx, args);
668
- const res = await client.devInspectTransactionBlock({
668
+ const insepctRes = await client.devInspectTransactionBlock({
669
669
  transactionBlock: tx,
670
670
  sender: ZERO_ADDRESS,
671
671
  });
672
- return res;
672
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
673
673
  }
674
674
  view.divideU64 = divideU64;
675
675
  async function getRawValue(client, args) {
676
676
  const tx = new TransactionBlock();
677
677
  builder.getRawValue(tx, args);
678
- const res = await client.devInspectTransactionBlock({
678
+ const insepctRes = await client.devInspectTransactionBlock({
679
679
  transactionBlock: tx,
680
680
  sender: ZERO_ADDRESS,
681
681
  });
682
- return res;
682
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
683
683
  }
684
684
  view.getRawValue = getRawValue;
685
685
  async function isZero(client, args) {
686
686
  const tx = new TransactionBlock();
687
687
  builder.isZero(tx, args);
688
- const res = await client.devInspectTransactionBlock({
688
+ const insepctRes = await client.devInspectTransactionBlock({
689
689
  transactionBlock: tx,
690
690
  sender: ZERO_ADDRESS,
691
691
  });
692
- return res;
692
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
693
693
  }
694
694
  view.isZero = isZero;
695
695
  async function multiplyU64(client, args) {
696
696
  const tx = new TransactionBlock();
697
697
  builder.multiplyU64(tx, args);
698
- const res = await client.devInspectTransactionBlock({
698
+ const insepctRes = await client.devInspectTransactionBlock({
699
699
  transactionBlock: tx,
700
700
  sender: ZERO_ADDRESS,
701
701
  });
702
- return res;
702
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
703
703
  }
704
704
  view.multiplyU64 = multiplyU64;
705
705
  })(view = fixed_point32.view || (fixed_point32.view = {}));
@@ -744,21 +744,21 @@ export var hash;
744
744
  async function sha2256(client, args) {
745
745
  const tx = new TransactionBlock();
746
746
  builder.sha2256(tx, args);
747
- const res = await client.devInspectTransactionBlock({
747
+ const insepctRes = await client.devInspectTransactionBlock({
748
748
  transactionBlock: tx,
749
749
  sender: ZERO_ADDRESS,
750
750
  });
751
- return res;
751
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
752
752
  }
753
753
  view.sha2256 = sha2256;
754
754
  async function sha3256(client, args) {
755
755
  const tx = new TransactionBlock();
756
756
  builder.sha3256(tx, args);
757
- const res = await client.devInspectTransactionBlock({
757
+ const insepctRes = await client.devInspectTransactionBlock({
758
758
  transactionBlock: tx,
759
759
  sender: ZERO_ADDRESS,
760
760
  });
761
- return res;
761
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
762
762
  }
763
763
  view.sha3256 = sha3256;
764
764
  })(view = hash.view || (hash.view = {}));
@@ -1043,171 +1043,171 @@ export var option;
1043
1043
  async function borrow(client, args, typeArguments) {
1044
1044
  const tx = new TransactionBlock();
1045
1045
  builder.borrow(tx, args, typeArguments);
1046
- const res = await client.devInspectTransactionBlock({
1046
+ const insepctRes = await client.devInspectTransactionBlock({
1047
1047
  transactionBlock: tx,
1048
1048
  sender: ZERO_ADDRESS,
1049
1049
  });
1050
- return res;
1050
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1051
1051
  }
1052
1052
  view.borrow = borrow;
1053
1053
  async function borrowMut(client, args, typeArguments) {
1054
1054
  const tx = new TransactionBlock();
1055
1055
  builder.borrowMut(tx, args, typeArguments);
1056
- const res = await client.devInspectTransactionBlock({
1056
+ const insepctRes = await client.devInspectTransactionBlock({
1057
1057
  transactionBlock: tx,
1058
1058
  sender: ZERO_ADDRESS,
1059
1059
  });
1060
- return res;
1060
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1061
1061
  }
1062
1062
  view.borrowMut = borrowMut;
1063
1063
  async function borrowWithDefault(client, args, typeArguments) {
1064
1064
  const tx = new TransactionBlock();
1065
1065
  builder.borrowWithDefault(tx, args, typeArguments);
1066
- const res = await client.devInspectTransactionBlock({
1066
+ const insepctRes = await client.devInspectTransactionBlock({
1067
1067
  transactionBlock: tx,
1068
1068
  sender: ZERO_ADDRESS,
1069
1069
  });
1070
- return res;
1070
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1071
1071
  }
1072
1072
  view.borrowWithDefault = borrowWithDefault;
1073
1073
  async function contains(client, args, typeArguments) {
1074
1074
  const tx = new TransactionBlock();
1075
1075
  builder.contains(tx, args, typeArguments);
1076
- const res = await client.devInspectTransactionBlock({
1076
+ const insepctRes = await client.devInspectTransactionBlock({
1077
1077
  transactionBlock: tx,
1078
1078
  sender: ZERO_ADDRESS,
1079
1079
  });
1080
- return res;
1080
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1081
1081
  }
1082
1082
  view.contains = contains;
1083
1083
  async function destroyNone(client, args, typeArguments) {
1084
1084
  const tx = new TransactionBlock();
1085
1085
  builder.destroyNone(tx, args, typeArguments);
1086
- const res = await client.devInspectTransactionBlock({
1086
+ const insepctRes = await client.devInspectTransactionBlock({
1087
1087
  transactionBlock: tx,
1088
1088
  sender: ZERO_ADDRESS,
1089
1089
  });
1090
- return res;
1090
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1091
1091
  }
1092
1092
  view.destroyNone = destroyNone;
1093
1093
  async function destroySome(client, args, typeArguments) {
1094
1094
  const tx = new TransactionBlock();
1095
1095
  builder.destroySome(tx, args, typeArguments);
1096
- const res = await client.devInspectTransactionBlock({
1096
+ const insepctRes = await client.devInspectTransactionBlock({
1097
1097
  transactionBlock: tx,
1098
1098
  sender: ZERO_ADDRESS,
1099
1099
  });
1100
- return res;
1100
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1101
1101
  }
1102
1102
  view.destroySome = destroySome;
1103
1103
  async function destroyWithDefault(client, args, typeArguments) {
1104
1104
  const tx = new TransactionBlock();
1105
1105
  builder.destroyWithDefault(tx, args, typeArguments);
1106
- const res = await client.devInspectTransactionBlock({
1106
+ const insepctRes = await client.devInspectTransactionBlock({
1107
1107
  transactionBlock: tx,
1108
1108
  sender: ZERO_ADDRESS,
1109
1109
  });
1110
- return res;
1110
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1111
1111
  }
1112
1112
  view.destroyWithDefault = destroyWithDefault;
1113
1113
  async function extract(client, args, typeArguments) {
1114
1114
  const tx = new TransactionBlock();
1115
1115
  builder.extract(tx, args, typeArguments);
1116
- const res = await client.devInspectTransactionBlock({
1116
+ const insepctRes = await client.devInspectTransactionBlock({
1117
1117
  transactionBlock: tx,
1118
1118
  sender: ZERO_ADDRESS,
1119
1119
  });
1120
- return res;
1120
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1121
1121
  }
1122
1122
  view.extract = extract;
1123
1123
  async function fill(client, args, typeArguments) {
1124
1124
  const tx = new TransactionBlock();
1125
1125
  builder.fill(tx, args, typeArguments);
1126
- const res = await client.devInspectTransactionBlock({
1126
+ const insepctRes = await client.devInspectTransactionBlock({
1127
1127
  transactionBlock: tx,
1128
1128
  sender: ZERO_ADDRESS,
1129
1129
  });
1130
- return res;
1130
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1131
1131
  }
1132
1132
  view.fill = fill;
1133
1133
  async function getWithDefault(client, args, typeArguments) {
1134
1134
  const tx = new TransactionBlock();
1135
1135
  builder.getWithDefault(tx, args, typeArguments);
1136
- const res = await client.devInspectTransactionBlock({
1136
+ const insepctRes = await client.devInspectTransactionBlock({
1137
1137
  transactionBlock: tx,
1138
1138
  sender: ZERO_ADDRESS,
1139
1139
  });
1140
- return res;
1140
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1141
1141
  }
1142
1142
  view.getWithDefault = getWithDefault;
1143
1143
  async function isNone(client, args, typeArguments) {
1144
1144
  const tx = new TransactionBlock();
1145
1145
  builder.isNone(tx, args, typeArguments);
1146
- const res = await client.devInspectTransactionBlock({
1146
+ const insepctRes = await client.devInspectTransactionBlock({
1147
1147
  transactionBlock: tx,
1148
1148
  sender: ZERO_ADDRESS,
1149
1149
  });
1150
- return res;
1150
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1151
1151
  }
1152
1152
  view.isNone = isNone;
1153
1153
  async function isSome(client, args, typeArguments) {
1154
1154
  const tx = new TransactionBlock();
1155
1155
  builder.isSome(tx, args, typeArguments);
1156
- const res = await client.devInspectTransactionBlock({
1156
+ const insepctRes = await client.devInspectTransactionBlock({
1157
1157
  transactionBlock: tx,
1158
1158
  sender: ZERO_ADDRESS,
1159
1159
  });
1160
- return res;
1160
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1161
1161
  }
1162
1162
  view.isSome = isSome;
1163
1163
  async function none(client, args, typeArguments) {
1164
1164
  const tx = new TransactionBlock();
1165
1165
  builder.none(tx, args, typeArguments);
1166
- const res = await client.devInspectTransactionBlock({
1166
+ const insepctRes = await client.devInspectTransactionBlock({
1167
1167
  transactionBlock: tx,
1168
1168
  sender: ZERO_ADDRESS,
1169
1169
  });
1170
- return res;
1170
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1171
1171
  }
1172
1172
  view.none = none;
1173
1173
  async function some(client, args, typeArguments) {
1174
1174
  const tx = new TransactionBlock();
1175
1175
  builder.some(tx, args, typeArguments);
1176
- const res = await client.devInspectTransactionBlock({
1176
+ const insepctRes = await client.devInspectTransactionBlock({
1177
1177
  transactionBlock: tx,
1178
1178
  sender: ZERO_ADDRESS,
1179
1179
  });
1180
- return res;
1180
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1181
1181
  }
1182
1182
  view.some = some;
1183
1183
  async function swap(client, args, typeArguments) {
1184
1184
  const tx = new TransactionBlock();
1185
1185
  builder.swap(tx, args, typeArguments);
1186
- const res = await client.devInspectTransactionBlock({
1186
+ const insepctRes = await client.devInspectTransactionBlock({
1187
1187
  transactionBlock: tx,
1188
1188
  sender: ZERO_ADDRESS,
1189
1189
  });
1190
- return res;
1190
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1191
1191
  }
1192
1192
  view.swap = swap;
1193
1193
  async function swapOrFill(client, args, typeArguments) {
1194
1194
  const tx = new TransactionBlock();
1195
1195
  builder.swapOrFill(tx, args, typeArguments);
1196
- const res = await client.devInspectTransactionBlock({
1196
+ const insepctRes = await client.devInspectTransactionBlock({
1197
1197
  transactionBlock: tx,
1198
1198
  sender: ZERO_ADDRESS,
1199
1199
  });
1200
- return res;
1200
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1201
1201
  }
1202
1202
  view.swapOrFill = swapOrFill;
1203
1203
  async function toVec(client, args, typeArguments) {
1204
1204
  const tx = new TransactionBlock();
1205
1205
  builder.toVec(tx, args, typeArguments);
1206
- const res = await client.devInspectTransactionBlock({
1206
+ const insepctRes = await client.devInspectTransactionBlock({
1207
1207
  transactionBlock: tx,
1208
1208
  sender: ZERO_ADDRESS,
1209
1209
  });
1210
- return res;
1210
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1211
1211
  }
1212
1212
  view.toVec = toVec;
1213
1213
  })(view = option.view || (option.view = {}));
@@ -1373,121 +1373,121 @@ export var string_;
1373
1373
  async function append(client, args) {
1374
1374
  const tx = new TransactionBlock();
1375
1375
  builder.append(tx, args);
1376
- const res = await client.devInspectTransactionBlock({
1376
+ const insepctRes = await client.devInspectTransactionBlock({
1377
1377
  transactionBlock: tx,
1378
1378
  sender: ZERO_ADDRESS,
1379
1379
  });
1380
- return res;
1380
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1381
1381
  }
1382
1382
  view.append = append;
1383
1383
  async function appendUtf8(client, args) {
1384
1384
  const tx = new TransactionBlock();
1385
1385
  builder.appendUtf8(tx, args);
1386
- const res = await client.devInspectTransactionBlock({
1386
+ const insepctRes = await client.devInspectTransactionBlock({
1387
1387
  transactionBlock: tx,
1388
1388
  sender: ZERO_ADDRESS,
1389
1389
  });
1390
- return res;
1390
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1391
1391
  }
1392
1392
  view.appendUtf8 = appendUtf8;
1393
1393
  async function bytes(client, args) {
1394
1394
  const tx = new TransactionBlock();
1395
1395
  builder.bytes(tx, args);
1396
- const res = await client.devInspectTransactionBlock({
1396
+ const insepctRes = await client.devInspectTransactionBlock({
1397
1397
  transactionBlock: tx,
1398
1398
  sender: ZERO_ADDRESS,
1399
1399
  });
1400
- return res;
1400
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1401
1401
  }
1402
1402
  view.bytes = bytes;
1403
1403
  async function fromAscii(client, args) {
1404
1404
  const tx = new TransactionBlock();
1405
1405
  builder.fromAscii(tx, args);
1406
- const res = await client.devInspectTransactionBlock({
1406
+ const insepctRes = await client.devInspectTransactionBlock({
1407
1407
  transactionBlock: tx,
1408
1408
  sender: ZERO_ADDRESS,
1409
1409
  });
1410
- return res;
1410
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1411
1411
  }
1412
1412
  view.fromAscii = fromAscii;
1413
1413
  async function indexOf(client, args) {
1414
1414
  const tx = new TransactionBlock();
1415
1415
  builder.indexOf(tx, args);
1416
- const res = await client.devInspectTransactionBlock({
1416
+ const insepctRes = await client.devInspectTransactionBlock({
1417
1417
  transactionBlock: tx,
1418
1418
  sender: ZERO_ADDRESS,
1419
1419
  });
1420
- return res;
1420
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1421
1421
  }
1422
1422
  view.indexOf = indexOf;
1423
1423
  async function insert(client, args) {
1424
1424
  const tx = new TransactionBlock();
1425
1425
  builder.insert(tx, args);
1426
- const res = await client.devInspectTransactionBlock({
1426
+ const insepctRes = await client.devInspectTransactionBlock({
1427
1427
  transactionBlock: tx,
1428
1428
  sender: ZERO_ADDRESS,
1429
1429
  });
1430
- return res;
1430
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1431
1431
  }
1432
1432
  view.insert = insert;
1433
1433
  async function isEmpty(client, args) {
1434
1434
  const tx = new TransactionBlock();
1435
1435
  builder.isEmpty(tx, args);
1436
- const res = await client.devInspectTransactionBlock({
1436
+ const insepctRes = await client.devInspectTransactionBlock({
1437
1437
  transactionBlock: tx,
1438
1438
  sender: ZERO_ADDRESS,
1439
1439
  });
1440
- return res;
1440
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1441
1441
  }
1442
1442
  view.isEmpty = isEmpty;
1443
1443
  async function length(client, args) {
1444
1444
  const tx = new TransactionBlock();
1445
1445
  builder.length(tx, args);
1446
- const res = await client.devInspectTransactionBlock({
1446
+ const insepctRes = await client.devInspectTransactionBlock({
1447
1447
  transactionBlock: tx,
1448
1448
  sender: ZERO_ADDRESS,
1449
1449
  });
1450
- return res;
1450
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1451
1451
  }
1452
1452
  view.length = length;
1453
1453
  async function subString(client, args) {
1454
1454
  const tx = new TransactionBlock();
1455
1455
  builder.subString(tx, args);
1456
- const res = await client.devInspectTransactionBlock({
1456
+ const insepctRes = await client.devInspectTransactionBlock({
1457
1457
  transactionBlock: tx,
1458
1458
  sender: ZERO_ADDRESS,
1459
1459
  });
1460
- return res;
1460
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1461
1461
  }
1462
1462
  view.subString = subString;
1463
1463
  async function toAscii(client, args) {
1464
1464
  const tx = new TransactionBlock();
1465
1465
  builder.toAscii(tx, args);
1466
- const res = await client.devInspectTransactionBlock({
1466
+ const insepctRes = await client.devInspectTransactionBlock({
1467
1467
  transactionBlock: tx,
1468
1468
  sender: ZERO_ADDRESS,
1469
1469
  });
1470
- return res;
1470
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1471
1471
  }
1472
1472
  view.toAscii = toAscii;
1473
1473
  async function tryUtf8(client, args) {
1474
1474
  const tx = new TransactionBlock();
1475
1475
  builder.tryUtf8(tx, args);
1476
- const res = await client.devInspectTransactionBlock({
1476
+ const insepctRes = await client.devInspectTransactionBlock({
1477
1477
  transactionBlock: tx,
1478
1478
  sender: ZERO_ADDRESS,
1479
1479
  });
1480
- return res;
1480
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1481
1481
  }
1482
1482
  view.tryUtf8 = tryUtf8;
1483
1483
  async function utf8(client, args) {
1484
1484
  const tx = new TransactionBlock();
1485
1485
  builder.utf8(tx, args);
1486
- const res = await client.devInspectTransactionBlock({
1486
+ const insepctRes = await client.devInspectTransactionBlock({
1487
1487
  transactionBlock: tx,
1488
1488
  sender: ZERO_ADDRESS,
1489
1489
  });
1490
- return res;
1490
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1491
1491
  }
1492
1492
  view.utf8 = utf8;
1493
1493
  })(view = string_.view || (string_.view = {}));
@@ -1565,51 +1565,51 @@ export var type_name;
1565
1565
  async function borrowString(client, args) {
1566
1566
  const tx = new TransactionBlock();
1567
1567
  builder.borrowString(tx, args);
1568
- const res = await client.devInspectTransactionBlock({
1568
+ const insepctRes = await client.devInspectTransactionBlock({
1569
1569
  transactionBlock: tx,
1570
1570
  sender: ZERO_ADDRESS,
1571
1571
  });
1572
- return res;
1572
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1573
1573
  }
1574
1574
  view.borrowString = borrowString;
1575
1575
  async function get(client, args, typeArguments) {
1576
1576
  const tx = new TransactionBlock();
1577
1577
  builder.get(tx, args, typeArguments);
1578
- const res = await client.devInspectTransactionBlock({
1578
+ const insepctRes = await client.devInspectTransactionBlock({
1579
1579
  transactionBlock: tx,
1580
1580
  sender: ZERO_ADDRESS,
1581
1581
  });
1582
- return res;
1582
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1583
1583
  }
1584
1584
  view.get = get;
1585
1585
  async function getAddress(client, args) {
1586
1586
  const tx = new TransactionBlock();
1587
1587
  builder.getAddress(tx, args);
1588
- const res = await client.devInspectTransactionBlock({
1588
+ const insepctRes = await client.devInspectTransactionBlock({
1589
1589
  transactionBlock: tx,
1590
1590
  sender: ZERO_ADDRESS,
1591
1591
  });
1592
- return res;
1592
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1593
1593
  }
1594
1594
  view.getAddress = getAddress;
1595
1595
  async function getModule(client, args) {
1596
1596
  const tx = new TransactionBlock();
1597
1597
  builder.getModule(tx, args);
1598
- const res = await client.devInspectTransactionBlock({
1598
+ const insepctRes = await client.devInspectTransactionBlock({
1599
1599
  transactionBlock: tx,
1600
1600
  sender: ZERO_ADDRESS,
1601
1601
  });
1602
- return res;
1602
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1603
1603
  }
1604
1604
  view.getModule = getModule;
1605
1605
  async function intoString(client, args) {
1606
1606
  const tx = new TransactionBlock();
1607
1607
  builder.intoString(tx, args);
1608
- const res = await client.devInspectTransactionBlock({
1608
+ const insepctRes = await client.devInspectTransactionBlock({
1609
1609
  transactionBlock: tx,
1610
1610
  sender: ZERO_ADDRESS,
1611
1611
  });
1612
- return res;
1612
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1613
1613
  }
1614
1614
  view.intoString = intoString;
1615
1615
  })(view = type_name.view || (type_name.view = {}));
@@ -1900,171 +1900,171 @@ export var vector;
1900
1900
  async function append(client, args, typeArguments) {
1901
1901
  const tx = new TransactionBlock();
1902
1902
  builder.append(tx, args, typeArguments);
1903
- const res = await client.devInspectTransactionBlock({
1903
+ const insepctRes = await client.devInspectTransactionBlock({
1904
1904
  transactionBlock: tx,
1905
1905
  sender: ZERO_ADDRESS,
1906
1906
  });
1907
- return res;
1907
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1908
1908
  }
1909
1909
  view.append = append;
1910
1910
  async function borrow(client, args, typeArguments) {
1911
1911
  const tx = new TransactionBlock();
1912
1912
  builder.borrow(tx, args, typeArguments);
1913
- const res = await client.devInspectTransactionBlock({
1913
+ const insepctRes = await client.devInspectTransactionBlock({
1914
1914
  transactionBlock: tx,
1915
1915
  sender: ZERO_ADDRESS,
1916
1916
  });
1917
- return res;
1917
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1918
1918
  }
1919
1919
  view.borrow = borrow;
1920
1920
  async function borrowMut(client, args, typeArguments) {
1921
1921
  const tx = new TransactionBlock();
1922
1922
  builder.borrowMut(tx, args, typeArguments);
1923
- const res = await client.devInspectTransactionBlock({
1923
+ const insepctRes = await client.devInspectTransactionBlock({
1924
1924
  transactionBlock: tx,
1925
1925
  sender: ZERO_ADDRESS,
1926
1926
  });
1927
- return res;
1927
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1928
1928
  }
1929
1929
  view.borrowMut = borrowMut;
1930
1930
  async function contains(client, args, typeArguments) {
1931
1931
  const tx = new TransactionBlock();
1932
1932
  builder.contains(tx, args, typeArguments);
1933
- const res = await client.devInspectTransactionBlock({
1933
+ const insepctRes = await client.devInspectTransactionBlock({
1934
1934
  transactionBlock: tx,
1935
1935
  sender: ZERO_ADDRESS,
1936
1936
  });
1937
- return res;
1937
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1938
1938
  }
1939
1939
  view.contains = contains;
1940
1940
  async function destroyEmpty(client, args, typeArguments) {
1941
1941
  const tx = new TransactionBlock();
1942
1942
  builder.destroyEmpty(tx, args, typeArguments);
1943
- const res = await client.devInspectTransactionBlock({
1943
+ const insepctRes = await client.devInspectTransactionBlock({
1944
1944
  transactionBlock: tx,
1945
1945
  sender: ZERO_ADDRESS,
1946
1946
  });
1947
- return res;
1947
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1948
1948
  }
1949
1949
  view.destroyEmpty = destroyEmpty;
1950
1950
  async function empty(client, args, typeArguments) {
1951
1951
  const tx = new TransactionBlock();
1952
1952
  builder.empty(tx, args, typeArguments);
1953
- const res = await client.devInspectTransactionBlock({
1953
+ const insepctRes = await client.devInspectTransactionBlock({
1954
1954
  transactionBlock: tx,
1955
1955
  sender: ZERO_ADDRESS,
1956
1956
  });
1957
- return res;
1957
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1958
1958
  }
1959
1959
  view.empty = empty;
1960
1960
  async function indexOf(client, args, typeArguments) {
1961
1961
  const tx = new TransactionBlock();
1962
1962
  builder.indexOf(tx, args, typeArguments);
1963
- const res = await client.devInspectTransactionBlock({
1963
+ const insepctRes = await client.devInspectTransactionBlock({
1964
1964
  transactionBlock: tx,
1965
1965
  sender: ZERO_ADDRESS,
1966
1966
  });
1967
- return res;
1967
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1968
1968
  }
1969
1969
  view.indexOf = indexOf;
1970
1970
  async function insert(client, args, typeArguments) {
1971
1971
  const tx = new TransactionBlock();
1972
1972
  builder.insert(tx, args, typeArguments);
1973
- const res = await client.devInspectTransactionBlock({
1973
+ const insepctRes = await client.devInspectTransactionBlock({
1974
1974
  transactionBlock: tx,
1975
1975
  sender: ZERO_ADDRESS,
1976
1976
  });
1977
- return res;
1977
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1978
1978
  }
1979
1979
  view.insert = insert;
1980
1980
  async function isEmpty(client, args, typeArguments) {
1981
1981
  const tx = new TransactionBlock();
1982
1982
  builder.isEmpty(tx, args, typeArguments);
1983
- const res = await client.devInspectTransactionBlock({
1983
+ const insepctRes = await client.devInspectTransactionBlock({
1984
1984
  transactionBlock: tx,
1985
1985
  sender: ZERO_ADDRESS,
1986
1986
  });
1987
- return res;
1987
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1988
1988
  }
1989
1989
  view.isEmpty = isEmpty;
1990
1990
  async function length(client, args, typeArguments) {
1991
1991
  const tx = new TransactionBlock();
1992
1992
  builder.length(tx, args, typeArguments);
1993
- const res = await client.devInspectTransactionBlock({
1993
+ const insepctRes = await client.devInspectTransactionBlock({
1994
1994
  transactionBlock: tx,
1995
1995
  sender: ZERO_ADDRESS,
1996
1996
  });
1997
- return res;
1997
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1998
1998
  }
1999
1999
  view.length = length;
2000
2000
  async function popBack(client, args, typeArguments) {
2001
2001
  const tx = new TransactionBlock();
2002
2002
  builder.popBack(tx, args, typeArguments);
2003
- const res = await client.devInspectTransactionBlock({
2003
+ const insepctRes = await client.devInspectTransactionBlock({
2004
2004
  transactionBlock: tx,
2005
2005
  sender: ZERO_ADDRESS,
2006
2006
  });
2007
- return res;
2007
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2008
2008
  }
2009
2009
  view.popBack = popBack;
2010
2010
  async function pushBack(client, args, typeArguments) {
2011
2011
  const tx = new TransactionBlock();
2012
2012
  builder.pushBack(tx, args, typeArguments);
2013
- const res = await client.devInspectTransactionBlock({
2013
+ const insepctRes = await client.devInspectTransactionBlock({
2014
2014
  transactionBlock: tx,
2015
2015
  sender: ZERO_ADDRESS,
2016
2016
  });
2017
- return res;
2017
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2018
2018
  }
2019
2019
  view.pushBack = pushBack;
2020
2020
  async function remove(client, args, typeArguments) {
2021
2021
  const tx = new TransactionBlock();
2022
2022
  builder.remove(tx, args, typeArguments);
2023
- const res = await client.devInspectTransactionBlock({
2023
+ const insepctRes = await client.devInspectTransactionBlock({
2024
2024
  transactionBlock: tx,
2025
2025
  sender: ZERO_ADDRESS,
2026
2026
  });
2027
- return res;
2027
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2028
2028
  }
2029
2029
  view.remove = remove;
2030
2030
  async function reverse(client, args, typeArguments) {
2031
2031
  const tx = new TransactionBlock();
2032
2032
  builder.reverse(tx, args, typeArguments);
2033
- const res = await client.devInspectTransactionBlock({
2033
+ const insepctRes = await client.devInspectTransactionBlock({
2034
2034
  transactionBlock: tx,
2035
2035
  sender: ZERO_ADDRESS,
2036
2036
  });
2037
- return res;
2037
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2038
2038
  }
2039
2039
  view.reverse = reverse;
2040
2040
  async function singleton(client, args, typeArguments) {
2041
2041
  const tx = new TransactionBlock();
2042
2042
  builder.singleton(tx, args, typeArguments);
2043
- const res = await client.devInspectTransactionBlock({
2043
+ const insepctRes = await client.devInspectTransactionBlock({
2044
2044
  transactionBlock: tx,
2045
2045
  sender: ZERO_ADDRESS,
2046
2046
  });
2047
- return res;
2047
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2048
2048
  }
2049
2049
  view.singleton = singleton;
2050
2050
  async function swap(client, args, typeArguments) {
2051
2051
  const tx = new TransactionBlock();
2052
2052
  builder.swap(tx, args, typeArguments);
2053
- const res = await client.devInspectTransactionBlock({
2053
+ const insepctRes = await client.devInspectTransactionBlock({
2054
2054
  transactionBlock: tx,
2055
2055
  sender: ZERO_ADDRESS,
2056
2056
  });
2057
- return res;
2057
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2058
2058
  }
2059
2059
  view.swap = swap;
2060
2060
  async function swapRemove(client, args, typeArguments) {
2061
2061
  const tx = new TransactionBlock();
2062
2062
  builder.swapRemove(tx, args, typeArguments);
2063
- const res = await client.devInspectTransactionBlock({
2063
+ const insepctRes = await client.devInspectTransactionBlock({
2064
2064
  transactionBlock: tx,
2065
2065
  sender: ZERO_ADDRESS,
2066
2066
  });
2067
- return res;
2067
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2068
2068
  }
2069
2069
  view.swapRemove = swapRemove;
2070
2070
  })(view = vector.view || (vector.view = {}));