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