@typemove/sui 1.6.3 → 1.6.4
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/cjs/builtin/0x1.d.ts +187 -131
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js +696 -131
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x2.d.ts +572 -572
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +569 -569
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts +422 -242
- package/dist/cjs/builtin/0x3.d.ts.map +1 -1
- package/dist/cjs/builtin/0x3.js +639 -239
- package/dist/cjs/builtin/0x3.js.map +1 -1
- package/dist/cjs/codegen/codegen.d.ts +1 -1
- package/dist/cjs/codegen/codegen.d.ts.map +1 -1
- package/dist/cjs/codegen/codegen.js +7 -7
- package/dist/cjs/codegen/codegen.js.map +1 -1
- package/dist/cjs/models.d.ts +1 -1
- package/dist/cjs/models.d.ts.map +1 -1
- package/dist/cjs/move-coder.d.ts +5 -4
- package/dist/cjs/move-coder.d.ts.map +1 -1
- package/dist/cjs/move-coder.js +62 -23
- package/dist/cjs/move-coder.js.map +1 -1
- package/dist/cjs/move-coder.test.js.map +1 -1
- package/dist/cjs/sui-chain-adapter.d.ts +1 -1
- package/dist/cjs/sui-chain-adapter.d.ts.map +1 -1
- package/dist/cjs/sui-chain-adapter.js +1 -1
- package/dist/cjs/sui-chain-adapter.js.map +1 -1
- package/dist/cjs/to-internal.d.ts +1 -1
- package/dist/cjs/to-internal.d.ts.map +1 -1
- package/dist/cjs/to-internal.js +4 -4
- package/dist/cjs/transaction.d.ts +4 -4
- package/dist/cjs/transaction.d.ts.map +1 -1
- package/dist/cjs/transaction.js +2 -2
- package/dist/cjs/transaction.js.map +1 -1
- package/dist/esm/builtin/0x1.d.ts +187 -131
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js +696 -131
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +572 -572
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +569 -569
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +422 -242
- package/dist/esm/builtin/0x3.d.ts.map +1 -1
- package/dist/esm/builtin/0x3.js +639 -239
- package/dist/esm/builtin/0x3.js.map +1 -1
- package/dist/esm/codegen/codegen.d.ts +1 -1
- package/dist/esm/codegen/codegen.d.ts.map +1 -1
- package/dist/esm/codegen/codegen.js +7 -7
- package/dist/esm/codegen/codegen.js.map +1 -1
- package/dist/esm/codegen/run.js +1 -1
- package/dist/esm/codegen/run.js.map +1 -1
- package/dist/esm/models.d.ts +1 -1
- package/dist/esm/models.d.ts.map +1 -1
- package/dist/esm/move-coder.d.ts +5 -4
- package/dist/esm/move-coder.d.ts.map +1 -1
- package/dist/esm/move-coder.js +62 -23
- package/dist/esm/move-coder.js.map +1 -1
- package/dist/esm/move-coder.test.js.map +1 -1
- package/dist/esm/sui-chain-adapter.d.ts +1 -1
- package/dist/esm/sui-chain-adapter.d.ts.map +1 -1
- package/dist/esm/sui-chain-adapter.js +1 -1
- package/dist/esm/sui-chain-adapter.js.map +1 -1
- package/dist/esm/to-internal.d.ts +1 -1
- package/dist/esm/to-internal.d.ts.map +1 -1
- package/dist/esm/to-internal.js +5 -5
- package/dist/esm/to-internal.js.map +1 -1
- package/dist/esm/transaction.d.ts +4 -4
- package/dist/esm/transaction.d.ts.map +1 -1
- package/dist/esm/transaction.js +2 -2
- package/dist/esm/transaction.js.map +1 -1
- package/package.json +3 -4
- package/src/abis/0x1.json +499 -0
- package/src/abis/0x3.json +900 -41
- package/src/builtin/0x1.ts +1058 -267
- package/src/builtin/0x2.ts +1141 -1165
- package/src/builtin/0x3.ts +1171 -485
- package/src/codegen/codegen.ts +7 -7
- package/src/codegen/run.ts +1 -1
- package/src/models.ts +1 -1
- package/src/move-coder.ts +60 -28
- package/src/sui-chain-adapter.ts +1 -1
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +11 -11
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +99 -99
- package/src/tests/types/testnet/0xdee9.ts +183 -183
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +313 -316
- package/src/to-internal.ts +7 -7
- package/src/transaction.ts +6 -6
package/src/builtin/0x1.ts
CHANGED
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
getMoveCoder,
|
|
16
16
|
} from "@typemove/sui";
|
|
17
17
|
import {
|
|
18
|
-
|
|
18
|
+
Transaction,
|
|
19
19
|
TransactionArgument,
|
|
20
20
|
TransactionObjectArgument,
|
|
21
|
-
} from "@mysten/sui
|
|
22
|
-
import { SuiClient } from "@mysten/sui
|
|
21
|
+
} from "@mysten/sui/transactions";
|
|
22
|
+
import { SuiClient } from "@mysten/sui/client";
|
|
23
23
|
import {
|
|
24
24
|
transactionArgumentOrObject,
|
|
25
25
|
transactionArgumentOrPure,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
export namespace address {
|
|
30
30
|
export namespace builder {
|
|
31
31
|
export function length(
|
|
32
|
-
tx:
|
|
32
|
+
tx: Transaction,
|
|
33
33
|
args: [],
|
|
34
34
|
): TransactionArgument & [] {
|
|
35
35
|
const _args: any[] = [];
|
|
@@ -46,7 +46,7 @@ export namespace address {
|
|
|
46
46
|
client: SuiClient,
|
|
47
47
|
args: [],
|
|
48
48
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
49
|
-
const tx = new
|
|
49
|
+
const tx = new Transaction();
|
|
50
50
|
builder.length(tx, args);
|
|
51
51
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
52
52
|
transactionBlock: tx,
|
|
@@ -85,7 +85,7 @@ export namespace ascii {
|
|
|
85
85
|
|
|
86
86
|
export namespace builder {
|
|
87
87
|
export function allCharactersPrintable(
|
|
88
|
-
tx:
|
|
88
|
+
tx: Transaction,
|
|
89
89
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
90
90
|
): TransactionArgument & [TransactionArgument] {
|
|
91
91
|
const _args: any[] = [];
|
|
@@ -98,7 +98,7 @@ export namespace ascii {
|
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
export function append(
|
|
101
|
-
tx:
|
|
101
|
+
tx: Transaction,
|
|
102
102
|
args: [
|
|
103
103
|
string | TransactionObjectArgument | TransactionArgument,
|
|
104
104
|
ascii.String | TransactionArgument,
|
|
@@ -115,7 +115,7 @@ export namespace ascii {
|
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
export function asBytes(
|
|
118
|
-
tx:
|
|
118
|
+
tx: Transaction,
|
|
119
119
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
120
120
|
): TransactionArgument & [TransactionArgument] {
|
|
121
121
|
const _args: any[] = [];
|
|
@@ -128,7 +128,7 @@ export namespace ascii {
|
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
export function byte(
|
|
131
|
-
tx:
|
|
131
|
+
tx: Transaction,
|
|
132
132
|
args: [ascii.Char | TransactionArgument],
|
|
133
133
|
): TransactionArgument & [TransactionArgument] {
|
|
134
134
|
const _args: any[] = [];
|
|
@@ -141,7 +141,7 @@ export namespace ascii {
|
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
export function char(
|
|
144
|
-
tx:
|
|
144
|
+
tx: Transaction,
|
|
145
145
|
args: [number | TransactionArgument],
|
|
146
146
|
): TransactionArgument & [TransactionArgument] {
|
|
147
147
|
const _args: any[] = [];
|
|
@@ -154,7 +154,7 @@ export namespace ascii {
|
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
export function indexOf(
|
|
157
|
-
tx:
|
|
157
|
+
tx: Transaction,
|
|
158
158
|
args: [
|
|
159
159
|
string | TransactionObjectArgument | TransactionArgument,
|
|
160
160
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -171,7 +171,7 @@ export namespace ascii {
|
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
export function insert(
|
|
174
|
-
tx:
|
|
174
|
+
tx: Transaction,
|
|
175
175
|
args: [
|
|
176
176
|
string | TransactionObjectArgument | TransactionArgument,
|
|
177
177
|
bigint | TransactionArgument,
|
|
@@ -191,7 +191,7 @@ export namespace ascii {
|
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
193
|
export function intoBytes(
|
|
194
|
-
tx:
|
|
194
|
+
tx: Transaction,
|
|
195
195
|
args: [ascii.String | TransactionArgument],
|
|
196
196
|
): TransactionArgument & [TransactionArgument] {
|
|
197
197
|
const _args: any[] = [];
|
|
@@ -204,7 +204,7 @@ export namespace ascii {
|
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
206
|
export function isEmpty(
|
|
207
|
-
tx:
|
|
207
|
+
tx: Transaction,
|
|
208
208
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
209
209
|
): TransactionArgument & [TransactionArgument] {
|
|
210
210
|
const _args: any[] = [];
|
|
@@ -217,7 +217,7 @@ export namespace ascii {
|
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
219
|
export function isPrintableChar(
|
|
220
|
-
tx:
|
|
220
|
+
tx: Transaction,
|
|
221
221
|
args: [number | TransactionArgument],
|
|
222
222
|
): TransactionArgument & [TransactionArgument] {
|
|
223
223
|
const _args: any[] = [];
|
|
@@ -230,7 +230,7 @@ export namespace ascii {
|
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
232
|
export function isValidChar(
|
|
233
|
-
tx:
|
|
233
|
+
tx: Transaction,
|
|
234
234
|
args: [number | TransactionArgument],
|
|
235
235
|
): TransactionArgument & [TransactionArgument] {
|
|
236
236
|
const _args: any[] = [];
|
|
@@ -243,7 +243,7 @@ export namespace ascii {
|
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
245
|
export function length(
|
|
246
|
-
tx:
|
|
246
|
+
tx: Transaction,
|
|
247
247
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
248
248
|
): TransactionArgument & [TransactionArgument] {
|
|
249
249
|
const _args: any[] = [];
|
|
@@ -256,7 +256,7 @@ export namespace ascii {
|
|
|
256
256
|
});
|
|
257
257
|
}
|
|
258
258
|
export function popChar(
|
|
259
|
-
tx:
|
|
259
|
+
tx: Transaction,
|
|
260
260
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
261
261
|
): TransactionArgument & [TransactionArgument] {
|
|
262
262
|
const _args: any[] = [];
|
|
@@ -269,7 +269,7 @@ export namespace ascii {
|
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
export function pushChar(
|
|
272
|
-
tx:
|
|
272
|
+
tx: Transaction,
|
|
273
273
|
args: [
|
|
274
274
|
string | TransactionObjectArgument | TransactionArgument,
|
|
275
275
|
ascii.Char | TransactionArgument,
|
|
@@ -286,7 +286,7 @@ export namespace ascii {
|
|
|
286
286
|
});
|
|
287
287
|
}
|
|
288
288
|
export function string_(
|
|
289
|
-
tx:
|
|
289
|
+
tx: Transaction,
|
|
290
290
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
291
291
|
): TransactionArgument & [TransactionArgument] {
|
|
292
292
|
const _args: any[] = [];
|
|
@@ -299,7 +299,7 @@ export namespace ascii {
|
|
|
299
299
|
});
|
|
300
300
|
}
|
|
301
301
|
export function substring(
|
|
302
|
-
tx:
|
|
302
|
+
tx: Transaction,
|
|
303
303
|
args: [
|
|
304
304
|
string | TransactionObjectArgument | TransactionArgument,
|
|
305
305
|
bigint | TransactionArgument,
|
|
@@ -319,7 +319,7 @@ export namespace ascii {
|
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
321
|
export function toLowercase(
|
|
322
|
-
tx:
|
|
322
|
+
tx: Transaction,
|
|
323
323
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
324
324
|
): TransactionArgument & [TransactionArgument] {
|
|
325
325
|
const _args: any[] = [];
|
|
@@ -332,7 +332,7 @@ export namespace ascii {
|
|
|
332
332
|
});
|
|
333
333
|
}
|
|
334
334
|
export function toUppercase(
|
|
335
|
-
tx:
|
|
335
|
+
tx: Transaction,
|
|
336
336
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
337
337
|
): TransactionArgument & [TransactionArgument] {
|
|
338
338
|
const _args: any[] = [];
|
|
@@ -345,7 +345,7 @@ export namespace ascii {
|
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
347
|
export function tryString(
|
|
348
|
-
tx:
|
|
348
|
+
tx: Transaction,
|
|
349
349
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
350
350
|
): TransactionArgument & [TransactionArgument] {
|
|
351
351
|
const _args: any[] = [];
|
|
@@ -363,7 +363,7 @@ export namespace ascii {
|
|
|
363
363
|
client: SuiClient,
|
|
364
364
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
365
365
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
366
|
-
const tx = new
|
|
366
|
+
const tx = new Transaction();
|
|
367
367
|
builder.allCharactersPrintable(tx, args);
|
|
368
368
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
369
369
|
transactionBlock: tx,
|
|
@@ -381,7 +381,7 @@ export namespace ascii {
|
|
|
381
381
|
ascii.String | TransactionArgument,
|
|
382
382
|
],
|
|
383
383
|
): Promise<TypedDevInspectResults<[]>> {
|
|
384
|
-
const tx = new
|
|
384
|
+
const tx = new Transaction();
|
|
385
385
|
builder.append(tx, args);
|
|
386
386
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
387
387
|
transactionBlock: tx,
|
|
@@ -396,7 +396,7 @@ export namespace ascii {
|
|
|
396
396
|
client: SuiClient,
|
|
397
397
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
398
398
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
399
|
-
const tx = new
|
|
399
|
+
const tx = new Transaction();
|
|
400
400
|
builder.asBytes(tx, args);
|
|
401
401
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
402
402
|
transactionBlock: tx,
|
|
@@ -411,7 +411,7 @@ export namespace ascii {
|
|
|
411
411
|
client: SuiClient,
|
|
412
412
|
args: [ascii.Char | TransactionArgument],
|
|
413
413
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
414
|
-
const tx = new
|
|
414
|
+
const tx = new Transaction();
|
|
415
415
|
builder.byte(tx, args);
|
|
416
416
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
417
417
|
transactionBlock: tx,
|
|
@@ -426,7 +426,7 @@ export namespace ascii {
|
|
|
426
426
|
client: SuiClient,
|
|
427
427
|
args: [number | TransactionArgument],
|
|
428
428
|
): Promise<TypedDevInspectResults<[ascii.Char]>> {
|
|
429
|
-
const tx = new
|
|
429
|
+
const tx = new Transaction();
|
|
430
430
|
builder.char(tx, args);
|
|
431
431
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
432
432
|
transactionBlock: tx,
|
|
@@ -444,7 +444,7 @@ export namespace ascii {
|
|
|
444
444
|
string | TransactionObjectArgument | TransactionArgument,
|
|
445
445
|
],
|
|
446
446
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
447
|
-
const tx = new
|
|
447
|
+
const tx = new Transaction();
|
|
448
448
|
builder.indexOf(tx, args);
|
|
449
449
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
450
450
|
transactionBlock: tx,
|
|
@@ -463,7 +463,7 @@ export namespace ascii {
|
|
|
463
463
|
ascii.String | TransactionArgument,
|
|
464
464
|
],
|
|
465
465
|
): Promise<TypedDevInspectResults<[]>> {
|
|
466
|
-
const tx = new
|
|
466
|
+
const tx = new Transaction();
|
|
467
467
|
builder.insert(tx, args);
|
|
468
468
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
469
469
|
transactionBlock: tx,
|
|
@@ -478,7 +478,7 @@ export namespace ascii {
|
|
|
478
478
|
client: SuiClient,
|
|
479
479
|
args: [ascii.String | TransactionArgument],
|
|
480
480
|
): Promise<TypedDevInspectResults<[number[]]>> {
|
|
481
|
-
const tx = new
|
|
481
|
+
const tx = new Transaction();
|
|
482
482
|
builder.intoBytes(tx, args);
|
|
483
483
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
484
484
|
transactionBlock: tx,
|
|
@@ -493,7 +493,7 @@ export namespace ascii {
|
|
|
493
493
|
client: SuiClient,
|
|
494
494
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
495
495
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
496
|
-
const tx = new
|
|
496
|
+
const tx = new Transaction();
|
|
497
497
|
builder.isEmpty(tx, args);
|
|
498
498
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
499
499
|
transactionBlock: tx,
|
|
@@ -508,7 +508,7 @@ export namespace ascii {
|
|
|
508
508
|
client: SuiClient,
|
|
509
509
|
args: [number | TransactionArgument],
|
|
510
510
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
511
|
-
const tx = new
|
|
511
|
+
const tx = new Transaction();
|
|
512
512
|
builder.isPrintableChar(tx, args);
|
|
513
513
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
514
514
|
transactionBlock: tx,
|
|
@@ -523,7 +523,7 @@ export namespace ascii {
|
|
|
523
523
|
client: SuiClient,
|
|
524
524
|
args: [number | TransactionArgument],
|
|
525
525
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
526
|
-
const tx = new
|
|
526
|
+
const tx = new Transaction();
|
|
527
527
|
builder.isValidChar(tx, args);
|
|
528
528
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
529
529
|
transactionBlock: tx,
|
|
@@ -538,7 +538,7 @@ export namespace ascii {
|
|
|
538
538
|
client: SuiClient,
|
|
539
539
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
540
540
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
541
|
-
const tx = new
|
|
541
|
+
const tx = new Transaction();
|
|
542
542
|
builder.length(tx, args);
|
|
543
543
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
544
544
|
transactionBlock: tx,
|
|
@@ -553,7 +553,7 @@ export namespace ascii {
|
|
|
553
553
|
client: SuiClient,
|
|
554
554
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
555
555
|
): Promise<TypedDevInspectResults<[ascii.Char]>> {
|
|
556
|
-
const tx = new
|
|
556
|
+
const tx = new Transaction();
|
|
557
557
|
builder.popChar(tx, args);
|
|
558
558
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
559
559
|
transactionBlock: tx,
|
|
@@ -571,7 +571,7 @@ export namespace ascii {
|
|
|
571
571
|
ascii.Char | TransactionArgument,
|
|
572
572
|
],
|
|
573
573
|
): Promise<TypedDevInspectResults<[]>> {
|
|
574
|
-
const tx = new
|
|
574
|
+
const tx = new Transaction();
|
|
575
575
|
builder.pushChar(tx, args);
|
|
576
576
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
577
577
|
transactionBlock: tx,
|
|
@@ -586,7 +586,7 @@ export namespace ascii {
|
|
|
586
586
|
client: SuiClient,
|
|
587
587
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
588
588
|
): Promise<TypedDevInspectResults<[ascii.String]>> {
|
|
589
|
-
const tx = new
|
|
589
|
+
const tx = new Transaction();
|
|
590
590
|
builder.string_(tx, args);
|
|
591
591
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
592
592
|
transactionBlock: tx,
|
|
@@ -605,7 +605,7 @@ export namespace ascii {
|
|
|
605
605
|
bigint | TransactionArgument,
|
|
606
606
|
],
|
|
607
607
|
): Promise<TypedDevInspectResults<[ascii.String]>> {
|
|
608
|
-
const tx = new
|
|
608
|
+
const tx = new Transaction();
|
|
609
609
|
builder.substring(tx, args);
|
|
610
610
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
611
611
|
transactionBlock: tx,
|
|
@@ -620,7 +620,7 @@ export namespace ascii {
|
|
|
620
620
|
client: SuiClient,
|
|
621
621
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
622
622
|
): Promise<TypedDevInspectResults<[ascii.String]>> {
|
|
623
|
-
const tx = new
|
|
623
|
+
const tx = new Transaction();
|
|
624
624
|
builder.toLowercase(tx, args);
|
|
625
625
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
626
626
|
transactionBlock: tx,
|
|
@@ -635,7 +635,7 @@ export namespace ascii {
|
|
|
635
635
|
client: SuiClient,
|
|
636
636
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
637
637
|
): Promise<TypedDevInspectResults<[ascii.String]>> {
|
|
638
|
-
const tx = new
|
|
638
|
+
const tx = new Transaction();
|
|
639
639
|
builder.toUppercase(tx, args);
|
|
640
640
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
641
641
|
transactionBlock: tx,
|
|
@@ -650,7 +650,7 @@ export namespace ascii {
|
|
|
650
650
|
client: SuiClient,
|
|
651
651
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
652
652
|
): Promise<TypedDevInspectResults<[option.Option<ascii.String>]>> {
|
|
653
|
-
const tx = new
|
|
653
|
+
const tx = new Transaction();
|
|
654
654
|
builder.tryString(tx, args);
|
|
655
655
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
656
656
|
transactionBlock: tx,
|
|
@@ -667,7 +667,7 @@ export namespace ascii {
|
|
|
667
667
|
export namespace bcs {
|
|
668
668
|
export namespace builder {
|
|
669
669
|
export function toBytes<T0 = any>(
|
|
670
|
-
tx:
|
|
670
|
+
tx: Transaction,
|
|
671
671
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
672
672
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
673
673
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -692,7 +692,7 @@ export namespace bcs {
|
|
|
692
692
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
693
693
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
694
694
|
): Promise<TypedDevInspectResults<[number[]]>> {
|
|
695
|
-
const tx = new
|
|
695
|
+
const tx = new Transaction();
|
|
696
696
|
builder.toBytes(tx, args, typeArguments);
|
|
697
697
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
698
698
|
transactionBlock: tx,
|
|
@@ -729,7 +729,7 @@ export namespace bit_vector {
|
|
|
729
729
|
|
|
730
730
|
export namespace builder {
|
|
731
731
|
export function isIndexSet(
|
|
732
|
-
tx:
|
|
732
|
+
tx: Transaction,
|
|
733
733
|
args: [
|
|
734
734
|
string | TransactionObjectArgument | TransactionArgument,
|
|
735
735
|
bigint | TransactionArgument,
|
|
@@ -746,7 +746,7 @@ export namespace bit_vector {
|
|
|
746
746
|
});
|
|
747
747
|
}
|
|
748
748
|
export function length(
|
|
749
|
-
tx:
|
|
749
|
+
tx: Transaction,
|
|
750
750
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
751
751
|
): TransactionArgument & [TransactionArgument] {
|
|
752
752
|
const _args: any[] = [];
|
|
@@ -759,7 +759,7 @@ export namespace bit_vector {
|
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
761
|
export function longestSetSequenceStartingAt(
|
|
762
|
-
tx:
|
|
762
|
+
tx: Transaction,
|
|
763
763
|
args: [
|
|
764
764
|
string | TransactionObjectArgument | TransactionArgument,
|
|
765
765
|
bigint | TransactionArgument,
|
|
@@ -776,7 +776,7 @@ export namespace bit_vector {
|
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
778
|
export function new_(
|
|
779
|
-
tx:
|
|
779
|
+
tx: Transaction,
|
|
780
780
|
args: [bigint | TransactionArgument],
|
|
781
781
|
): TransactionArgument & [TransactionArgument] {
|
|
782
782
|
const _args: any[] = [];
|
|
@@ -789,7 +789,7 @@ export namespace bit_vector {
|
|
|
789
789
|
});
|
|
790
790
|
}
|
|
791
791
|
export function set(
|
|
792
|
-
tx:
|
|
792
|
+
tx: Transaction,
|
|
793
793
|
args: [
|
|
794
794
|
string | TransactionObjectArgument | TransactionArgument,
|
|
795
795
|
bigint | TransactionArgument,
|
|
@@ -806,7 +806,7 @@ export namespace bit_vector {
|
|
|
806
806
|
});
|
|
807
807
|
}
|
|
808
808
|
export function shiftLeft(
|
|
809
|
-
tx:
|
|
809
|
+
tx: Transaction,
|
|
810
810
|
args: [
|
|
811
811
|
string | TransactionObjectArgument | TransactionArgument,
|
|
812
812
|
bigint | TransactionArgument,
|
|
@@ -823,7 +823,7 @@ export namespace bit_vector {
|
|
|
823
823
|
});
|
|
824
824
|
}
|
|
825
825
|
export function unset(
|
|
826
|
-
tx:
|
|
826
|
+
tx: Transaction,
|
|
827
827
|
args: [
|
|
828
828
|
string | TransactionObjectArgument | TransactionArgument,
|
|
829
829
|
bigint | TransactionArgument,
|
|
@@ -848,7 +848,7 @@ export namespace bit_vector {
|
|
|
848
848
|
bigint | TransactionArgument,
|
|
849
849
|
],
|
|
850
850
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
851
|
-
const tx = new
|
|
851
|
+
const tx = new Transaction();
|
|
852
852
|
builder.isIndexSet(tx, args);
|
|
853
853
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
854
854
|
transactionBlock: tx,
|
|
@@ -863,7 +863,7 @@ export namespace bit_vector {
|
|
|
863
863
|
client: SuiClient,
|
|
864
864
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
865
865
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
866
|
-
const tx = new
|
|
866
|
+
const tx = new Transaction();
|
|
867
867
|
builder.length(tx, args);
|
|
868
868
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
869
869
|
transactionBlock: tx,
|
|
@@ -881,7 +881,7 @@ export namespace bit_vector {
|
|
|
881
881
|
bigint | TransactionArgument,
|
|
882
882
|
],
|
|
883
883
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
884
|
-
const tx = new
|
|
884
|
+
const tx = new Transaction();
|
|
885
885
|
builder.longestSetSequenceStartingAt(tx, args);
|
|
886
886
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
887
887
|
transactionBlock: tx,
|
|
@@ -896,7 +896,7 @@ export namespace bit_vector {
|
|
|
896
896
|
client: SuiClient,
|
|
897
897
|
args: [bigint | TransactionArgument],
|
|
898
898
|
): Promise<TypedDevInspectResults<[bit_vector.BitVector]>> {
|
|
899
|
-
const tx = new
|
|
899
|
+
const tx = new Transaction();
|
|
900
900
|
builder.new_(tx, args);
|
|
901
901
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
902
902
|
transactionBlock: tx,
|
|
@@ -914,7 +914,7 @@ export namespace bit_vector {
|
|
|
914
914
|
bigint | TransactionArgument,
|
|
915
915
|
],
|
|
916
916
|
): Promise<TypedDevInspectResults<[]>> {
|
|
917
|
-
const tx = new
|
|
917
|
+
const tx = new Transaction();
|
|
918
918
|
builder.set(tx, args);
|
|
919
919
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
920
920
|
transactionBlock: tx,
|
|
@@ -932,7 +932,7 @@ export namespace bit_vector {
|
|
|
932
932
|
bigint | TransactionArgument,
|
|
933
933
|
],
|
|
934
934
|
): Promise<TypedDevInspectResults<[]>> {
|
|
935
|
-
const tx = new
|
|
935
|
+
const tx = new Transaction();
|
|
936
936
|
builder.shiftLeft(tx, args);
|
|
937
937
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
938
938
|
transactionBlock: tx,
|
|
@@ -950,7 +950,7 @@ export namespace bit_vector {
|
|
|
950
950
|
bigint | TransactionArgument,
|
|
951
951
|
],
|
|
952
952
|
): Promise<TypedDevInspectResults<[]>> {
|
|
953
|
-
const tx = new
|
|
953
|
+
const tx = new Transaction();
|
|
954
954
|
builder.unset(tx, args);
|
|
955
955
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
956
956
|
transactionBlock: tx,
|
|
@@ -967,7 +967,7 @@ export namespace bit_vector {
|
|
|
967
967
|
export namespace debug {
|
|
968
968
|
export namespace builder {
|
|
969
969
|
export function print<T0 = any>(
|
|
970
|
-
tx:
|
|
970
|
+
tx: Transaction,
|
|
971
971
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
972
972
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
973
973
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -986,7 +986,7 @@ export namespace debug {
|
|
|
986
986
|
});
|
|
987
987
|
}
|
|
988
988
|
export function printStackTrace(
|
|
989
|
-
tx:
|
|
989
|
+
tx: Transaction,
|
|
990
990
|
args: [],
|
|
991
991
|
): TransactionArgument & [] {
|
|
992
992
|
const _args: any[] = [];
|
|
@@ -1004,7 +1004,7 @@ export namespace debug {
|
|
|
1004
1004
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
1005
1005
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1006
1006
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1007
|
-
const tx = new
|
|
1007
|
+
const tx = new Transaction();
|
|
1008
1008
|
builder.print(tx, args, typeArguments);
|
|
1009
1009
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1010
1010
|
transactionBlock: tx,
|
|
@@ -1019,7 +1019,7 @@ export namespace debug {
|
|
|
1019
1019
|
client: SuiClient,
|
|
1020
1020
|
args: [],
|
|
1021
1021
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1022
|
-
const tx = new
|
|
1022
|
+
const tx = new Transaction();
|
|
1023
1023
|
builder.printStackTrace(tx, args);
|
|
1024
1024
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1025
1025
|
transactionBlock: tx,
|
|
@@ -1056,7 +1056,7 @@ export namespace fixed_point32 {
|
|
|
1056
1056
|
|
|
1057
1057
|
export namespace builder {
|
|
1058
1058
|
export function createFromRational(
|
|
1059
|
-
tx:
|
|
1059
|
+
tx: Transaction,
|
|
1060
1060
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
1061
1061
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
1062
1062
|
const _args: any[] = [];
|
|
@@ -1070,7 +1070,7 @@ export namespace fixed_point32 {
|
|
|
1070
1070
|
});
|
|
1071
1071
|
}
|
|
1072
1072
|
export function createFromRawValue(
|
|
1073
|
-
tx:
|
|
1073
|
+
tx: Transaction,
|
|
1074
1074
|
args: [bigint | TransactionArgument],
|
|
1075
1075
|
): TransactionArgument & [TransactionArgument] {
|
|
1076
1076
|
const _args: any[] = [];
|
|
@@ -1083,7 +1083,7 @@ export namespace fixed_point32 {
|
|
|
1083
1083
|
});
|
|
1084
1084
|
}
|
|
1085
1085
|
export function divideU64(
|
|
1086
|
-
tx:
|
|
1086
|
+
tx: Transaction,
|
|
1087
1087
|
args: [
|
|
1088
1088
|
bigint | TransactionArgument,
|
|
1089
1089
|
fixed_point32.FixedPoint32 | TransactionArgument,
|
|
@@ -1100,7 +1100,7 @@ export namespace fixed_point32 {
|
|
|
1100
1100
|
});
|
|
1101
1101
|
}
|
|
1102
1102
|
export function getRawValue(
|
|
1103
|
-
tx:
|
|
1103
|
+
tx: Transaction,
|
|
1104
1104
|
args: [fixed_point32.FixedPoint32 | TransactionArgument],
|
|
1105
1105
|
): TransactionArgument & [TransactionArgument] {
|
|
1106
1106
|
const _args: any[] = [];
|
|
@@ -1113,7 +1113,7 @@ export namespace fixed_point32 {
|
|
|
1113
1113
|
});
|
|
1114
1114
|
}
|
|
1115
1115
|
export function isZero(
|
|
1116
|
-
tx:
|
|
1116
|
+
tx: Transaction,
|
|
1117
1117
|
args: [fixed_point32.FixedPoint32 | TransactionArgument],
|
|
1118
1118
|
): TransactionArgument & [TransactionArgument] {
|
|
1119
1119
|
const _args: any[] = [];
|
|
@@ -1126,7 +1126,7 @@ export namespace fixed_point32 {
|
|
|
1126
1126
|
});
|
|
1127
1127
|
}
|
|
1128
1128
|
export function multiplyU64(
|
|
1129
|
-
tx:
|
|
1129
|
+
tx: Transaction,
|
|
1130
1130
|
args: [
|
|
1131
1131
|
bigint | TransactionArgument,
|
|
1132
1132
|
fixed_point32.FixedPoint32 | TransactionArgument,
|
|
@@ -1148,7 +1148,7 @@ export namespace fixed_point32 {
|
|
|
1148
1148
|
client: SuiClient,
|
|
1149
1149
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
1150
1150
|
): Promise<TypedDevInspectResults<[fixed_point32.FixedPoint32]>> {
|
|
1151
|
-
const tx = new
|
|
1151
|
+
const tx = new Transaction();
|
|
1152
1152
|
builder.createFromRational(tx, args);
|
|
1153
1153
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1154
1154
|
transactionBlock: tx,
|
|
@@ -1163,7 +1163,7 @@ export namespace fixed_point32 {
|
|
|
1163
1163
|
client: SuiClient,
|
|
1164
1164
|
args: [bigint | TransactionArgument],
|
|
1165
1165
|
): Promise<TypedDevInspectResults<[fixed_point32.FixedPoint32]>> {
|
|
1166
|
-
const tx = new
|
|
1166
|
+
const tx = new Transaction();
|
|
1167
1167
|
builder.createFromRawValue(tx, args);
|
|
1168
1168
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1169
1169
|
transactionBlock: tx,
|
|
@@ -1181,7 +1181,7 @@ export namespace fixed_point32 {
|
|
|
1181
1181
|
fixed_point32.FixedPoint32 | TransactionArgument,
|
|
1182
1182
|
],
|
|
1183
1183
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
1184
|
-
const tx = new
|
|
1184
|
+
const tx = new Transaction();
|
|
1185
1185
|
builder.divideU64(tx, args);
|
|
1186
1186
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1187
1187
|
transactionBlock: tx,
|
|
@@ -1196,7 +1196,7 @@ export namespace fixed_point32 {
|
|
|
1196
1196
|
client: SuiClient,
|
|
1197
1197
|
args: [fixed_point32.FixedPoint32 | TransactionArgument],
|
|
1198
1198
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
1199
|
-
const tx = new
|
|
1199
|
+
const tx = new Transaction();
|
|
1200
1200
|
builder.getRawValue(tx, args);
|
|
1201
1201
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1202
1202
|
transactionBlock: tx,
|
|
@@ -1211,7 +1211,7 @@ export namespace fixed_point32 {
|
|
|
1211
1211
|
client: SuiClient,
|
|
1212
1212
|
args: [fixed_point32.FixedPoint32 | TransactionArgument],
|
|
1213
1213
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
1214
|
-
const tx = new
|
|
1214
|
+
const tx = new Transaction();
|
|
1215
1215
|
builder.isZero(tx, args);
|
|
1216
1216
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1217
1217
|
transactionBlock: tx,
|
|
@@ -1229,7 +1229,7 @@ export namespace fixed_point32 {
|
|
|
1229
1229
|
fixed_point32.FixedPoint32 | TransactionArgument,
|
|
1230
1230
|
],
|
|
1231
1231
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
1232
|
-
const tx = new
|
|
1232
|
+
const tx = new Transaction();
|
|
1233
1233
|
builder.multiplyU64(tx, args);
|
|
1234
1234
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1235
1235
|
transactionBlock: tx,
|
|
@@ -1246,7 +1246,7 @@ export namespace fixed_point32 {
|
|
|
1246
1246
|
export namespace hash {
|
|
1247
1247
|
export namespace builder {
|
|
1248
1248
|
export function sha2256(
|
|
1249
|
-
tx:
|
|
1249
|
+
tx: Transaction,
|
|
1250
1250
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
1251
1251
|
): TransactionArgument & [TransactionArgument] {
|
|
1252
1252
|
const _args: any[] = [];
|
|
@@ -1259,7 +1259,7 @@ export namespace hash {
|
|
|
1259
1259
|
});
|
|
1260
1260
|
}
|
|
1261
1261
|
export function sha3256(
|
|
1262
|
-
tx:
|
|
1262
|
+
tx: Transaction,
|
|
1263
1263
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
1264
1264
|
): TransactionArgument & [TransactionArgument] {
|
|
1265
1265
|
const _args: any[] = [];
|
|
@@ -1277,7 +1277,7 @@ export namespace hash {
|
|
|
1277
1277
|
client: SuiClient,
|
|
1278
1278
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
1279
1279
|
): Promise<TypedDevInspectResults<[number[]]>> {
|
|
1280
|
-
const tx = new
|
|
1280
|
+
const tx = new Transaction();
|
|
1281
1281
|
builder.sha2256(tx, args);
|
|
1282
1282
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1283
1283
|
transactionBlock: tx,
|
|
@@ -1292,7 +1292,7 @@ export namespace hash {
|
|
|
1292
1292
|
client: SuiClient,
|
|
1293
1293
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
1294
1294
|
): Promise<TypedDevInspectResults<[number[]]>> {
|
|
1295
|
-
const tx = new
|
|
1295
|
+
const tx = new Transaction();
|
|
1296
1296
|
builder.sha3256(tx, args);
|
|
1297
1297
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1298
1298
|
transactionBlock: tx,
|
|
@@ -1327,7 +1327,7 @@ export namespace option {
|
|
|
1327
1327
|
|
|
1328
1328
|
export namespace builder {
|
|
1329
1329
|
export function borrow<T0 = any>(
|
|
1330
|
-
tx:
|
|
1330
|
+
tx: Transaction,
|
|
1331
1331
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
1332
1332
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1333
1333
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -1346,7 +1346,7 @@ export namespace option {
|
|
|
1346
1346
|
});
|
|
1347
1347
|
}
|
|
1348
1348
|
export function borrowMut<T0 = any>(
|
|
1349
|
-
tx:
|
|
1349
|
+
tx: Transaction,
|
|
1350
1350
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
1351
1351
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1352
1352
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -1365,7 +1365,7 @@ export namespace option {
|
|
|
1365
1365
|
});
|
|
1366
1366
|
}
|
|
1367
1367
|
export function borrowWithDefault<T0 = any>(
|
|
1368
|
-
tx:
|
|
1368
|
+
tx: Transaction,
|
|
1369
1369
|
args: [
|
|
1370
1370
|
string | TransactionObjectArgument | TransactionArgument,
|
|
1371
1371
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -1388,7 +1388,7 @@ export namespace option {
|
|
|
1388
1388
|
});
|
|
1389
1389
|
}
|
|
1390
1390
|
export function contains<T0 = any>(
|
|
1391
|
-
tx:
|
|
1391
|
+
tx: Transaction,
|
|
1392
1392
|
args: [
|
|
1393
1393
|
string | TransactionObjectArgument | TransactionArgument,
|
|
1394
1394
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -1411,7 +1411,7 @@ export namespace option {
|
|
|
1411
1411
|
});
|
|
1412
1412
|
}
|
|
1413
1413
|
export function destroyNone<T0 = any>(
|
|
1414
|
-
tx:
|
|
1414
|
+
tx: Transaction,
|
|
1415
1415
|
args: [option.Option<T0> | TransactionArgument],
|
|
1416
1416
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1417
1417
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -1430,7 +1430,7 @@ export namespace option {
|
|
|
1430
1430
|
});
|
|
1431
1431
|
}
|
|
1432
1432
|
export function destroySome<T0 = any>(
|
|
1433
|
-
tx:
|
|
1433
|
+
tx: Transaction,
|
|
1434
1434
|
args: [option.Option<T0> | TransactionArgument],
|
|
1435
1435
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1436
1436
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -1449,7 +1449,7 @@ export namespace option {
|
|
|
1449
1449
|
});
|
|
1450
1450
|
}
|
|
1451
1451
|
export function destroyWithDefault<T0 = any>(
|
|
1452
|
-
tx:
|
|
1452
|
+
tx: Transaction,
|
|
1453
1453
|
args: [option.Option<T0> | TransactionArgument, T0 | TransactionArgument],
|
|
1454
1454
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1455
1455
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
@@ -1469,7 +1469,7 @@ export namespace option {
|
|
|
1469
1469
|
});
|
|
1470
1470
|
}
|
|
1471
1471
|
export function extract<T0 = any>(
|
|
1472
|
-
tx:
|
|
1472
|
+
tx: Transaction,
|
|
1473
1473
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
1474
1474
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1475
1475
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -1488,7 +1488,7 @@ export namespace option {
|
|
|
1488
1488
|
});
|
|
1489
1489
|
}
|
|
1490
1490
|
export function fill<T0 = any>(
|
|
1491
|
-
tx:
|
|
1491
|
+
tx: Transaction,
|
|
1492
1492
|
args: [
|
|
1493
1493
|
string | TransactionObjectArgument | TransactionArgument,
|
|
1494
1494
|
T0 | TransactionArgument,
|
|
@@ -1511,7 +1511,7 @@ export namespace option {
|
|
|
1511
1511
|
});
|
|
1512
1512
|
}
|
|
1513
1513
|
export function getWithDefault<T0 = any>(
|
|
1514
|
-
tx:
|
|
1514
|
+
tx: Transaction,
|
|
1515
1515
|
args: [
|
|
1516
1516
|
string | TransactionObjectArgument | TransactionArgument,
|
|
1517
1517
|
T0 | TransactionArgument,
|
|
@@ -1534,7 +1534,7 @@ export namespace option {
|
|
|
1534
1534
|
});
|
|
1535
1535
|
}
|
|
1536
1536
|
export function isNone<T0 = any>(
|
|
1537
|
-
tx:
|
|
1537
|
+
tx: Transaction,
|
|
1538
1538
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
1539
1539
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1540
1540
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -1553,7 +1553,7 @@ export namespace option {
|
|
|
1553
1553
|
});
|
|
1554
1554
|
}
|
|
1555
1555
|
export function isSome<T0 = any>(
|
|
1556
|
-
tx:
|
|
1556
|
+
tx: Transaction,
|
|
1557
1557
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
1558
1558
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1559
1559
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -1572,7 +1572,7 @@ export namespace option {
|
|
|
1572
1572
|
});
|
|
1573
1573
|
}
|
|
1574
1574
|
export function none<T0 = any>(
|
|
1575
|
-
tx:
|
|
1575
|
+
tx: Transaction,
|
|
1576
1576
|
args: [],
|
|
1577
1577
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1578
1578
|
): TransactionArgument & [] {
|
|
@@ -1590,7 +1590,7 @@ export namespace option {
|
|
|
1590
1590
|
});
|
|
1591
1591
|
}
|
|
1592
1592
|
export function some<T0 = any>(
|
|
1593
|
-
tx:
|
|
1593
|
+
tx: Transaction,
|
|
1594
1594
|
args: [T0 | TransactionArgument],
|
|
1595
1595
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1596
1596
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -1609,7 +1609,7 @@ export namespace option {
|
|
|
1609
1609
|
});
|
|
1610
1610
|
}
|
|
1611
1611
|
export function swap<T0 = any>(
|
|
1612
|
-
tx:
|
|
1612
|
+
tx: Transaction,
|
|
1613
1613
|
args: [
|
|
1614
1614
|
string | TransactionObjectArgument | TransactionArgument,
|
|
1615
1615
|
T0 | TransactionArgument,
|
|
@@ -1632,7 +1632,7 @@ export namespace option {
|
|
|
1632
1632
|
});
|
|
1633
1633
|
}
|
|
1634
1634
|
export function swapOrFill<T0 = any>(
|
|
1635
|
-
tx:
|
|
1635
|
+
tx: Transaction,
|
|
1636
1636
|
args: [
|
|
1637
1637
|
string | TransactionObjectArgument | TransactionArgument,
|
|
1638
1638
|
T0 | TransactionArgument,
|
|
@@ -1655,7 +1655,7 @@ export namespace option {
|
|
|
1655
1655
|
});
|
|
1656
1656
|
}
|
|
1657
1657
|
export function toVec<T0 = any>(
|
|
1658
|
-
tx:
|
|
1658
|
+
tx: Transaction,
|
|
1659
1659
|
args: [option.Option<T0> | TransactionArgument],
|
|
1660
1660
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1661
1661
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -1680,7 +1680,7 @@ export namespace option {
|
|
|
1680
1680
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
1681
1681
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1682
1682
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
1683
|
-
const tx = new
|
|
1683
|
+
const tx = new Transaction();
|
|
1684
1684
|
builder.borrow(tx, args, typeArguments);
|
|
1685
1685
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1686
1686
|
transactionBlock: tx,
|
|
@@ -1696,7 +1696,7 @@ export namespace option {
|
|
|
1696
1696
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
1697
1697
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1698
1698
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
1699
|
-
const tx = new
|
|
1699
|
+
const tx = new Transaction();
|
|
1700
1700
|
builder.borrowMut(tx, args, typeArguments);
|
|
1701
1701
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1702
1702
|
transactionBlock: tx,
|
|
@@ -1715,7 +1715,7 @@ export namespace option {
|
|
|
1715
1715
|
],
|
|
1716
1716
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1717
1717
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
1718
|
-
const tx = new
|
|
1718
|
+
const tx = new Transaction();
|
|
1719
1719
|
builder.borrowWithDefault(tx, args, typeArguments);
|
|
1720
1720
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1721
1721
|
transactionBlock: tx,
|
|
@@ -1734,7 +1734,7 @@ export namespace option {
|
|
|
1734
1734
|
],
|
|
1735
1735
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1736
1736
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
1737
|
-
const tx = new
|
|
1737
|
+
const tx = new Transaction();
|
|
1738
1738
|
builder.contains(tx, args, typeArguments);
|
|
1739
1739
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1740
1740
|
transactionBlock: tx,
|
|
@@ -1750,7 +1750,7 @@ export namespace option {
|
|
|
1750
1750
|
args: [option.Option<T0> | TransactionArgument],
|
|
1751
1751
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1752
1752
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1753
|
-
const tx = new
|
|
1753
|
+
const tx = new Transaction();
|
|
1754
1754
|
builder.destroyNone(tx, args, typeArguments);
|
|
1755
1755
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1756
1756
|
transactionBlock: tx,
|
|
@@ -1766,7 +1766,7 @@ export namespace option {
|
|
|
1766
1766
|
args: [option.Option<T0> | TransactionArgument],
|
|
1767
1767
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1768
1768
|
): Promise<TypedDevInspectResults<[T0]>> {
|
|
1769
|
-
const tx = new
|
|
1769
|
+
const tx = new Transaction();
|
|
1770
1770
|
builder.destroySome(tx, args, typeArguments);
|
|
1771
1771
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1772
1772
|
transactionBlock: tx,
|
|
@@ -1782,7 +1782,7 @@ export namespace option {
|
|
|
1782
1782
|
args: [option.Option<T0> | TransactionArgument, T0 | TransactionArgument],
|
|
1783
1783
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1784
1784
|
): Promise<TypedDevInspectResults<[T0]>> {
|
|
1785
|
-
const tx = new
|
|
1785
|
+
const tx = new Transaction();
|
|
1786
1786
|
builder.destroyWithDefault(tx, args, typeArguments);
|
|
1787
1787
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1788
1788
|
transactionBlock: tx,
|
|
@@ -1798,7 +1798,7 @@ export namespace option {
|
|
|
1798
1798
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
1799
1799
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1800
1800
|
): Promise<TypedDevInspectResults<[T0]>> {
|
|
1801
|
-
const tx = new
|
|
1801
|
+
const tx = new Transaction();
|
|
1802
1802
|
builder.extract(tx, args, typeArguments);
|
|
1803
1803
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1804
1804
|
transactionBlock: tx,
|
|
@@ -1817,7 +1817,7 @@ export namespace option {
|
|
|
1817
1817
|
],
|
|
1818
1818
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1819
1819
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1820
|
-
const tx = new
|
|
1820
|
+
const tx = new Transaction();
|
|
1821
1821
|
builder.fill(tx, args, typeArguments);
|
|
1822
1822
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1823
1823
|
transactionBlock: tx,
|
|
@@ -1836,7 +1836,7 @@ export namespace option {
|
|
|
1836
1836
|
],
|
|
1837
1837
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1838
1838
|
): Promise<TypedDevInspectResults<[T0]>> {
|
|
1839
|
-
const tx = new
|
|
1839
|
+
const tx = new Transaction();
|
|
1840
1840
|
builder.getWithDefault(tx, args, typeArguments);
|
|
1841
1841
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1842
1842
|
transactionBlock: tx,
|
|
@@ -1852,7 +1852,7 @@ export namespace option {
|
|
|
1852
1852
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
1853
1853
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1854
1854
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
1855
|
-
const tx = new
|
|
1855
|
+
const tx = new Transaction();
|
|
1856
1856
|
builder.isNone(tx, args, typeArguments);
|
|
1857
1857
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1858
1858
|
transactionBlock: tx,
|
|
@@ -1868,7 +1868,7 @@ export namespace option {
|
|
|
1868
1868
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
1869
1869
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1870
1870
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
1871
|
-
const tx = new
|
|
1871
|
+
const tx = new Transaction();
|
|
1872
1872
|
builder.isSome(tx, args, typeArguments);
|
|
1873
1873
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1874
1874
|
transactionBlock: tx,
|
|
@@ -1884,7 +1884,7 @@ export namespace option {
|
|
|
1884
1884
|
args: [],
|
|
1885
1885
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1886
1886
|
): Promise<TypedDevInspectResults<[option.Option<T0>]>> {
|
|
1887
|
-
const tx = new
|
|
1887
|
+
const tx = new Transaction();
|
|
1888
1888
|
builder.none(tx, args, typeArguments);
|
|
1889
1889
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1890
1890
|
transactionBlock: tx,
|
|
@@ -1900,7 +1900,7 @@ export namespace option {
|
|
|
1900
1900
|
args: [T0 | TransactionArgument],
|
|
1901
1901
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1902
1902
|
): Promise<TypedDevInspectResults<[option.Option<T0>]>> {
|
|
1903
|
-
const tx = new
|
|
1903
|
+
const tx = new Transaction();
|
|
1904
1904
|
builder.some(tx, args, typeArguments);
|
|
1905
1905
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1906
1906
|
transactionBlock: tx,
|
|
@@ -1919,7 +1919,7 @@ export namespace option {
|
|
|
1919
1919
|
],
|
|
1920
1920
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1921
1921
|
): Promise<TypedDevInspectResults<[T0]>> {
|
|
1922
|
-
const tx = new
|
|
1922
|
+
const tx = new Transaction();
|
|
1923
1923
|
builder.swap(tx, args, typeArguments);
|
|
1924
1924
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1925
1925
|
transactionBlock: tx,
|
|
@@ -1938,7 +1938,7 @@ export namespace option {
|
|
|
1938
1938
|
],
|
|
1939
1939
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1940
1940
|
): Promise<TypedDevInspectResults<[option.Option<T0>]>> {
|
|
1941
|
-
const tx = new
|
|
1941
|
+
const tx = new Transaction();
|
|
1942
1942
|
builder.swapOrFill(tx, args, typeArguments);
|
|
1943
1943
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1944
1944
|
transactionBlock: tx,
|
|
@@ -1954,7 +1954,7 @@ export namespace option {
|
|
|
1954
1954
|
args: [option.Option<T0> | TransactionArgument],
|
|
1955
1955
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1956
1956
|
): Promise<TypedDevInspectResults<[T0[] | string]>> {
|
|
1957
|
-
const tx = new
|
|
1957
|
+
const tx = new Transaction();
|
|
1958
1958
|
builder.toVec(tx, args, typeArguments);
|
|
1959
1959
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1960
1960
|
transactionBlock: tx,
|
|
@@ -1990,7 +1990,7 @@ export namespace string_ {
|
|
|
1990
1990
|
|
|
1991
1991
|
export namespace builder {
|
|
1992
1992
|
export function append(
|
|
1993
|
-
tx:
|
|
1993
|
+
tx: Transaction,
|
|
1994
1994
|
args: [
|
|
1995
1995
|
string | TransactionObjectArgument | TransactionArgument,
|
|
1996
1996
|
string | TransactionArgument,
|
|
@@ -2007,7 +2007,7 @@ export namespace string_ {
|
|
|
2007
2007
|
});
|
|
2008
2008
|
}
|
|
2009
2009
|
export function appendUtf8(
|
|
2010
|
-
tx:
|
|
2010
|
+
tx: Transaction,
|
|
2011
2011
|
args: [
|
|
2012
2012
|
string | TransactionObjectArgument | TransactionArgument,
|
|
2013
2013
|
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
@@ -2024,7 +2024,7 @@ export namespace string_ {
|
|
|
2024
2024
|
});
|
|
2025
2025
|
}
|
|
2026
2026
|
export function asBytes(
|
|
2027
|
-
tx:
|
|
2027
|
+
tx: Transaction,
|
|
2028
2028
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
2029
2029
|
): TransactionArgument & [TransactionArgument] {
|
|
2030
2030
|
const _args: any[] = [];
|
|
@@ -2037,7 +2037,7 @@ export namespace string_ {
|
|
|
2037
2037
|
});
|
|
2038
2038
|
}
|
|
2039
2039
|
export function bytes(
|
|
2040
|
-
tx:
|
|
2040
|
+
tx: Transaction,
|
|
2041
2041
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
2042
2042
|
): TransactionArgument & [TransactionArgument] {
|
|
2043
2043
|
const _args: any[] = [];
|
|
@@ -2050,7 +2050,7 @@ export namespace string_ {
|
|
|
2050
2050
|
});
|
|
2051
2051
|
}
|
|
2052
2052
|
export function fromAscii(
|
|
2053
|
-
tx:
|
|
2053
|
+
tx: Transaction,
|
|
2054
2054
|
args: [ascii.String | TransactionArgument],
|
|
2055
2055
|
): TransactionArgument & [TransactionArgument] {
|
|
2056
2056
|
const _args: any[] = [];
|
|
@@ -2063,7 +2063,7 @@ export namespace string_ {
|
|
|
2063
2063
|
});
|
|
2064
2064
|
}
|
|
2065
2065
|
export function indexOf(
|
|
2066
|
-
tx:
|
|
2066
|
+
tx: Transaction,
|
|
2067
2067
|
args: [
|
|
2068
2068
|
string | TransactionObjectArgument | TransactionArgument,
|
|
2069
2069
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -2080,7 +2080,7 @@ export namespace string_ {
|
|
|
2080
2080
|
});
|
|
2081
2081
|
}
|
|
2082
2082
|
export function insert(
|
|
2083
|
-
tx:
|
|
2083
|
+
tx: Transaction,
|
|
2084
2084
|
args: [
|
|
2085
2085
|
string | TransactionObjectArgument | TransactionArgument,
|
|
2086
2086
|
bigint | TransactionArgument,
|
|
@@ -2100,7 +2100,7 @@ export namespace string_ {
|
|
|
2100
2100
|
});
|
|
2101
2101
|
}
|
|
2102
2102
|
export function intoBytes(
|
|
2103
|
-
tx:
|
|
2103
|
+
tx: Transaction,
|
|
2104
2104
|
args: [string | TransactionArgument],
|
|
2105
2105
|
): TransactionArgument & [TransactionArgument] {
|
|
2106
2106
|
const _args: any[] = [];
|
|
@@ -2113,7 +2113,7 @@ export namespace string_ {
|
|
|
2113
2113
|
});
|
|
2114
2114
|
}
|
|
2115
2115
|
export function isEmpty(
|
|
2116
|
-
tx:
|
|
2116
|
+
tx: Transaction,
|
|
2117
2117
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
2118
2118
|
): TransactionArgument & [TransactionArgument] {
|
|
2119
2119
|
const _args: any[] = [];
|
|
@@ -2126,7 +2126,7 @@ export namespace string_ {
|
|
|
2126
2126
|
});
|
|
2127
2127
|
}
|
|
2128
2128
|
export function length(
|
|
2129
|
-
tx:
|
|
2129
|
+
tx: Transaction,
|
|
2130
2130
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
2131
2131
|
): TransactionArgument & [TransactionArgument] {
|
|
2132
2132
|
const _args: any[] = [];
|
|
@@ -2139,7 +2139,7 @@ export namespace string_ {
|
|
|
2139
2139
|
});
|
|
2140
2140
|
}
|
|
2141
2141
|
export function subString(
|
|
2142
|
-
tx:
|
|
2142
|
+
tx: Transaction,
|
|
2143
2143
|
args: [
|
|
2144
2144
|
string | TransactionObjectArgument | TransactionArgument,
|
|
2145
2145
|
bigint | TransactionArgument,
|
|
@@ -2159,7 +2159,7 @@ export namespace string_ {
|
|
|
2159
2159
|
});
|
|
2160
2160
|
}
|
|
2161
2161
|
export function substring(
|
|
2162
|
-
tx:
|
|
2162
|
+
tx: Transaction,
|
|
2163
2163
|
args: [
|
|
2164
2164
|
string | TransactionObjectArgument | TransactionArgument,
|
|
2165
2165
|
bigint | TransactionArgument,
|
|
@@ -2179,7 +2179,7 @@ export namespace string_ {
|
|
|
2179
2179
|
});
|
|
2180
2180
|
}
|
|
2181
2181
|
export function toAscii(
|
|
2182
|
-
tx:
|
|
2182
|
+
tx: Transaction,
|
|
2183
2183
|
args: [string | TransactionArgument],
|
|
2184
2184
|
): TransactionArgument & [TransactionArgument] {
|
|
2185
2185
|
const _args: any[] = [];
|
|
@@ -2192,7 +2192,7 @@ export namespace string_ {
|
|
|
2192
2192
|
});
|
|
2193
2193
|
}
|
|
2194
2194
|
export function tryUtf8(
|
|
2195
|
-
tx:
|
|
2195
|
+
tx: Transaction,
|
|
2196
2196
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
2197
2197
|
): TransactionArgument & [TransactionArgument] {
|
|
2198
2198
|
const _args: any[] = [];
|
|
@@ -2205,7 +2205,7 @@ export namespace string_ {
|
|
|
2205
2205
|
});
|
|
2206
2206
|
}
|
|
2207
2207
|
export function utf8(
|
|
2208
|
-
tx:
|
|
2208
|
+
tx: Transaction,
|
|
2209
2209
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
2210
2210
|
): TransactionArgument & [TransactionArgument] {
|
|
2211
2211
|
const _args: any[] = [];
|
|
@@ -2226,7 +2226,7 @@ export namespace string_ {
|
|
|
2226
2226
|
string | TransactionArgument,
|
|
2227
2227
|
],
|
|
2228
2228
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2229
|
-
const tx = new
|
|
2229
|
+
const tx = new Transaction();
|
|
2230
2230
|
builder.append(tx, args);
|
|
2231
2231
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2232
2232
|
transactionBlock: tx,
|
|
@@ -2244,7 +2244,7 @@ export namespace string_ {
|
|
|
2244
2244
|
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
2245
2245
|
],
|
|
2246
2246
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2247
|
-
const tx = new
|
|
2247
|
+
const tx = new Transaction();
|
|
2248
2248
|
builder.appendUtf8(tx, args);
|
|
2249
2249
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2250
2250
|
transactionBlock: tx,
|
|
@@ -2259,7 +2259,7 @@ export namespace string_ {
|
|
|
2259
2259
|
client: SuiClient,
|
|
2260
2260
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
2261
2261
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
2262
|
-
const tx = new
|
|
2262
|
+
const tx = new Transaction();
|
|
2263
2263
|
builder.asBytes(tx, args);
|
|
2264
2264
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2265
2265
|
transactionBlock: tx,
|
|
@@ -2274,7 +2274,7 @@ export namespace string_ {
|
|
|
2274
2274
|
client: SuiClient,
|
|
2275
2275
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
2276
2276
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
2277
|
-
const tx = new
|
|
2277
|
+
const tx = new Transaction();
|
|
2278
2278
|
builder.bytes(tx, args);
|
|
2279
2279
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2280
2280
|
transactionBlock: tx,
|
|
@@ -2289,7 +2289,7 @@ export namespace string_ {
|
|
|
2289
2289
|
client: SuiClient,
|
|
2290
2290
|
args: [ascii.String | TransactionArgument],
|
|
2291
2291
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
2292
|
-
const tx = new
|
|
2292
|
+
const tx = new Transaction();
|
|
2293
2293
|
builder.fromAscii(tx, args);
|
|
2294
2294
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2295
2295
|
transactionBlock: tx,
|
|
@@ -2307,7 +2307,7 @@ export namespace string_ {
|
|
|
2307
2307
|
string | TransactionObjectArgument | TransactionArgument,
|
|
2308
2308
|
],
|
|
2309
2309
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
2310
|
-
const tx = new
|
|
2310
|
+
const tx = new Transaction();
|
|
2311
2311
|
builder.indexOf(tx, args);
|
|
2312
2312
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2313
2313
|
transactionBlock: tx,
|
|
@@ -2326,7 +2326,7 @@ export namespace string_ {
|
|
|
2326
2326
|
string | TransactionArgument,
|
|
2327
2327
|
],
|
|
2328
2328
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2329
|
-
const tx = new
|
|
2329
|
+
const tx = new Transaction();
|
|
2330
2330
|
builder.insert(tx, args);
|
|
2331
2331
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2332
2332
|
transactionBlock: tx,
|
|
@@ -2341,7 +2341,7 @@ export namespace string_ {
|
|
|
2341
2341
|
client: SuiClient,
|
|
2342
2342
|
args: [string | TransactionArgument],
|
|
2343
2343
|
): Promise<TypedDevInspectResults<[number[]]>> {
|
|
2344
|
-
const tx = new
|
|
2344
|
+
const tx = new Transaction();
|
|
2345
2345
|
builder.intoBytes(tx, args);
|
|
2346
2346
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2347
2347
|
transactionBlock: tx,
|
|
@@ -2356,7 +2356,7 @@ export namespace string_ {
|
|
|
2356
2356
|
client: SuiClient,
|
|
2357
2357
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
2358
2358
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
2359
|
-
const tx = new
|
|
2359
|
+
const tx = new Transaction();
|
|
2360
2360
|
builder.isEmpty(tx, args);
|
|
2361
2361
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2362
2362
|
transactionBlock: tx,
|
|
@@ -2371,7 +2371,7 @@ export namespace string_ {
|
|
|
2371
2371
|
client: SuiClient,
|
|
2372
2372
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
2373
2373
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
2374
|
-
const tx = new
|
|
2374
|
+
const tx = new Transaction();
|
|
2375
2375
|
builder.length(tx, args);
|
|
2376
2376
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2377
2377
|
transactionBlock: tx,
|
|
@@ -2390,7 +2390,7 @@ export namespace string_ {
|
|
|
2390
2390
|
bigint | TransactionArgument,
|
|
2391
2391
|
],
|
|
2392
2392
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
2393
|
-
const tx = new
|
|
2393
|
+
const tx = new Transaction();
|
|
2394
2394
|
builder.subString(tx, args);
|
|
2395
2395
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2396
2396
|
transactionBlock: tx,
|
|
@@ -2409,7 +2409,7 @@ export namespace string_ {
|
|
|
2409
2409
|
bigint | TransactionArgument,
|
|
2410
2410
|
],
|
|
2411
2411
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
2412
|
-
const tx = new
|
|
2412
|
+
const tx = new Transaction();
|
|
2413
2413
|
builder.substring(tx, args);
|
|
2414
2414
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2415
2415
|
transactionBlock: tx,
|
|
@@ -2424,7 +2424,7 @@ export namespace string_ {
|
|
|
2424
2424
|
client: SuiClient,
|
|
2425
2425
|
args: [string | TransactionArgument],
|
|
2426
2426
|
): Promise<TypedDevInspectResults<[ascii.String]>> {
|
|
2427
|
-
const tx = new
|
|
2427
|
+
const tx = new Transaction();
|
|
2428
2428
|
builder.toAscii(tx, args);
|
|
2429
2429
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2430
2430
|
transactionBlock: tx,
|
|
@@ -2439,7 +2439,7 @@ export namespace string_ {
|
|
|
2439
2439
|
client: SuiClient,
|
|
2440
2440
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
2441
2441
|
): Promise<TypedDevInspectResults<[option.Option<string>]>> {
|
|
2442
|
-
const tx = new
|
|
2442
|
+
const tx = new Transaction();
|
|
2443
2443
|
builder.tryUtf8(tx, args);
|
|
2444
2444
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2445
2445
|
transactionBlock: tx,
|
|
@@ -2454,7 +2454,7 @@ export namespace string_ {
|
|
|
2454
2454
|
client: SuiClient,
|
|
2455
2455
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
2456
2456
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
2457
|
-
const tx = new
|
|
2457
|
+
const tx = new Transaction();
|
|
2458
2458
|
builder.utf8(tx, args);
|
|
2459
2459
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2460
2460
|
transactionBlock: tx,
|
|
@@ -2490,7 +2490,7 @@ export namespace type_name {
|
|
|
2490
2490
|
|
|
2491
2491
|
export namespace builder {
|
|
2492
2492
|
export function borrowString(
|
|
2493
|
-
tx:
|
|
2493
|
+
tx: Transaction,
|
|
2494
2494
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
2495
2495
|
): TransactionArgument & [TransactionArgument] {
|
|
2496
2496
|
const _args: any[] = [];
|
|
@@ -2503,7 +2503,7 @@ export namespace type_name {
|
|
|
2503
2503
|
});
|
|
2504
2504
|
}
|
|
2505
2505
|
export function get<T0 = any>(
|
|
2506
|
-
tx:
|
|
2506
|
+
tx: Transaction,
|
|
2507
2507
|
args: [],
|
|
2508
2508
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
2509
2509
|
): TransactionArgument & [] {
|
|
@@ -2521,7 +2521,7 @@ export namespace type_name {
|
|
|
2521
2521
|
});
|
|
2522
2522
|
}
|
|
2523
2523
|
export function getAddress(
|
|
2524
|
-
tx:
|
|
2524
|
+
tx: Transaction,
|
|
2525
2525
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
2526
2526
|
): TransactionArgument & [TransactionArgument] {
|
|
2527
2527
|
const _args: any[] = [];
|
|
@@ -2534,7 +2534,7 @@ export namespace type_name {
|
|
|
2534
2534
|
});
|
|
2535
2535
|
}
|
|
2536
2536
|
export function getModule(
|
|
2537
|
-
tx:
|
|
2537
|
+
tx: Transaction,
|
|
2538
2538
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
2539
2539
|
): TransactionArgument & [TransactionArgument] {
|
|
2540
2540
|
const _args: any[] = [];
|
|
@@ -2547,7 +2547,7 @@ export namespace type_name {
|
|
|
2547
2547
|
});
|
|
2548
2548
|
}
|
|
2549
2549
|
export function getWithOriginalIds<T0 = any>(
|
|
2550
|
-
tx:
|
|
2550
|
+
tx: Transaction,
|
|
2551
2551
|
args: [],
|
|
2552
2552
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
2553
2553
|
): TransactionArgument & [] {
|
|
@@ -2565,7 +2565,7 @@ export namespace type_name {
|
|
|
2565
2565
|
});
|
|
2566
2566
|
}
|
|
2567
2567
|
export function intoString(
|
|
2568
|
-
tx:
|
|
2568
|
+
tx: Transaction,
|
|
2569
2569
|
args: [type_name.TypeName | TransactionArgument],
|
|
2570
2570
|
): TransactionArgument & [TransactionArgument] {
|
|
2571
2571
|
const _args: any[] = [];
|
|
@@ -2578,7 +2578,7 @@ export namespace type_name {
|
|
|
2578
2578
|
});
|
|
2579
2579
|
}
|
|
2580
2580
|
export function isPrimitive(
|
|
2581
|
-
tx:
|
|
2581
|
+
tx: Transaction,
|
|
2582
2582
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
2583
2583
|
): TransactionArgument & [TransactionArgument] {
|
|
2584
2584
|
const _args: any[] = [];
|
|
@@ -2596,7 +2596,7 @@ export namespace type_name {
|
|
|
2596
2596
|
client: SuiClient,
|
|
2597
2597
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
2598
2598
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
2599
|
-
const tx = new
|
|
2599
|
+
const tx = new Transaction();
|
|
2600
2600
|
builder.borrowString(tx, args);
|
|
2601
2601
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2602
2602
|
transactionBlock: tx,
|
|
@@ -2612,7 +2612,7 @@ export namespace type_name {
|
|
|
2612
2612
|
args: [],
|
|
2613
2613
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
2614
2614
|
): Promise<TypedDevInspectResults<[type_name.TypeName]>> {
|
|
2615
|
-
const tx = new
|
|
2615
|
+
const tx = new Transaction();
|
|
2616
2616
|
builder.get(tx, args, typeArguments);
|
|
2617
2617
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2618
2618
|
transactionBlock: tx,
|
|
@@ -2627,7 +2627,7 @@ export namespace type_name {
|
|
|
2627
2627
|
client: SuiClient,
|
|
2628
2628
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
2629
2629
|
): Promise<TypedDevInspectResults<[ascii.String]>> {
|
|
2630
|
-
const tx = new
|
|
2630
|
+
const tx = new Transaction();
|
|
2631
2631
|
builder.getAddress(tx, args);
|
|
2632
2632
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2633
2633
|
transactionBlock: tx,
|
|
@@ -2642,7 +2642,7 @@ export namespace type_name {
|
|
|
2642
2642
|
client: SuiClient,
|
|
2643
2643
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
2644
2644
|
): Promise<TypedDevInspectResults<[ascii.String]>> {
|
|
2645
|
-
const tx = new
|
|
2645
|
+
const tx = new Transaction();
|
|
2646
2646
|
builder.getModule(tx, args);
|
|
2647
2647
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2648
2648
|
transactionBlock: tx,
|
|
@@ -2658,7 +2658,7 @@ export namespace type_name {
|
|
|
2658
2658
|
args: [],
|
|
2659
2659
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
2660
2660
|
): Promise<TypedDevInspectResults<[type_name.TypeName]>> {
|
|
2661
|
-
const tx = new
|
|
2661
|
+
const tx = new Transaction();
|
|
2662
2662
|
builder.getWithOriginalIds(tx, args, typeArguments);
|
|
2663
2663
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2664
2664
|
transactionBlock: tx,
|
|
@@ -2673,7 +2673,7 @@ export namespace type_name {
|
|
|
2673
2673
|
client: SuiClient,
|
|
2674
2674
|
args: [type_name.TypeName | TransactionArgument],
|
|
2675
2675
|
): Promise<TypedDevInspectResults<[ascii.String]>> {
|
|
2676
|
-
const tx = new
|
|
2676
|
+
const tx = new Transaction();
|
|
2677
2677
|
builder.intoString(tx, args);
|
|
2678
2678
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2679
2679
|
transactionBlock: tx,
|
|
@@ -2688,7 +2688,7 @@ export namespace type_name {
|
|
|
2688
2688
|
client: SuiClient,
|
|
2689
2689
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
2690
2690
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
2691
|
-
const tx = new
|
|
2691
|
+
const tx = new Transaction();
|
|
2692
2692
|
builder.isPrimitive(tx, args);
|
|
2693
2693
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2694
2694
|
transactionBlock: tx,
|
|
@@ -2704,8 +2704,21 @@ export namespace type_name {
|
|
|
2704
2704
|
|
|
2705
2705
|
export namespace u128 {
|
|
2706
2706
|
export namespace builder {
|
|
2707
|
+
export function bitwiseNot(
|
|
2708
|
+
tx: Transaction,
|
|
2709
|
+
args: [bigint | TransactionArgument],
|
|
2710
|
+
): TransactionArgument & [TransactionArgument] {
|
|
2711
|
+
const _args: any[] = [];
|
|
2712
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2713
|
+
|
|
2714
|
+
// @ts-ignore
|
|
2715
|
+
return tx.moveCall({
|
|
2716
|
+
target: "0x1::u128::bitwise_not",
|
|
2717
|
+
arguments: _args,
|
|
2718
|
+
});
|
|
2719
|
+
}
|
|
2707
2720
|
export function diff(
|
|
2708
|
-
tx:
|
|
2721
|
+
tx: Transaction,
|
|
2709
2722
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2710
2723
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2711
2724
|
const _args: any[] = [];
|
|
@@ -2719,7 +2732,7 @@ export namespace u128 {
|
|
|
2719
2732
|
});
|
|
2720
2733
|
}
|
|
2721
2734
|
export function divideAndRoundUp(
|
|
2722
|
-
tx:
|
|
2735
|
+
tx: Transaction,
|
|
2723
2736
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2724
2737
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2725
2738
|
const _args: any[] = [];
|
|
@@ -2733,7 +2746,7 @@ export namespace u128 {
|
|
|
2733
2746
|
});
|
|
2734
2747
|
}
|
|
2735
2748
|
export function max(
|
|
2736
|
-
tx:
|
|
2749
|
+
tx: Transaction,
|
|
2737
2750
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2738
2751
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2739
2752
|
const _args: any[] = [];
|
|
@@ -2747,7 +2760,7 @@ export namespace u128 {
|
|
|
2747
2760
|
});
|
|
2748
2761
|
}
|
|
2749
2762
|
export function min(
|
|
2750
|
-
tx:
|
|
2763
|
+
tx: Transaction,
|
|
2751
2764
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2752
2765
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2753
2766
|
const _args: any[] = [];
|
|
@@ -2761,7 +2774,7 @@ export namespace u128 {
|
|
|
2761
2774
|
});
|
|
2762
2775
|
}
|
|
2763
2776
|
export function pow(
|
|
2764
|
-
tx:
|
|
2777
|
+
tx: Transaction,
|
|
2765
2778
|
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
2766
2779
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2767
2780
|
const _args: any[] = [];
|
|
@@ -2775,7 +2788,7 @@ export namespace u128 {
|
|
|
2775
2788
|
});
|
|
2776
2789
|
}
|
|
2777
2790
|
export function sqrt(
|
|
2778
|
-
tx:
|
|
2791
|
+
tx: Transaction,
|
|
2779
2792
|
args: [bigint | TransactionArgument],
|
|
2780
2793
|
): TransactionArgument & [TransactionArgument] {
|
|
2781
2794
|
const _args: any[] = [];
|
|
@@ -2787,13 +2800,93 @@ export namespace u128 {
|
|
|
2787
2800
|
arguments: _args,
|
|
2788
2801
|
});
|
|
2789
2802
|
}
|
|
2803
|
+
export function toString(
|
|
2804
|
+
tx: Transaction,
|
|
2805
|
+
args: [bigint | TransactionArgument],
|
|
2806
|
+
): TransactionArgument & [TransactionArgument] {
|
|
2807
|
+
const _args: any[] = [];
|
|
2808
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2809
|
+
|
|
2810
|
+
// @ts-ignore
|
|
2811
|
+
return tx.moveCall({
|
|
2812
|
+
target: "0x1::u128::to_string",
|
|
2813
|
+
arguments: _args,
|
|
2814
|
+
});
|
|
2815
|
+
}
|
|
2816
|
+
export function tryAsU16(
|
|
2817
|
+
tx: Transaction,
|
|
2818
|
+
args: [bigint | TransactionArgument],
|
|
2819
|
+
): TransactionArgument & [TransactionArgument] {
|
|
2820
|
+
const _args: any[] = [];
|
|
2821
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2822
|
+
|
|
2823
|
+
// @ts-ignore
|
|
2824
|
+
return tx.moveCall({
|
|
2825
|
+
target: "0x1::u128::try_as_u16",
|
|
2826
|
+
arguments: _args,
|
|
2827
|
+
});
|
|
2828
|
+
}
|
|
2829
|
+
export function tryAsU32(
|
|
2830
|
+
tx: Transaction,
|
|
2831
|
+
args: [bigint | TransactionArgument],
|
|
2832
|
+
): TransactionArgument & [TransactionArgument] {
|
|
2833
|
+
const _args: any[] = [];
|
|
2834
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2835
|
+
|
|
2836
|
+
// @ts-ignore
|
|
2837
|
+
return tx.moveCall({
|
|
2838
|
+
target: "0x1::u128::try_as_u32",
|
|
2839
|
+
arguments: _args,
|
|
2840
|
+
});
|
|
2841
|
+
}
|
|
2842
|
+
export function tryAsU64(
|
|
2843
|
+
tx: Transaction,
|
|
2844
|
+
args: [bigint | TransactionArgument],
|
|
2845
|
+
): TransactionArgument & [TransactionArgument] {
|
|
2846
|
+
const _args: any[] = [];
|
|
2847
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2848
|
+
|
|
2849
|
+
// @ts-ignore
|
|
2850
|
+
return tx.moveCall({
|
|
2851
|
+
target: "0x1::u128::try_as_u64",
|
|
2852
|
+
arguments: _args,
|
|
2853
|
+
});
|
|
2854
|
+
}
|
|
2855
|
+
export function tryAsU8(
|
|
2856
|
+
tx: Transaction,
|
|
2857
|
+
args: [bigint | TransactionArgument],
|
|
2858
|
+
): TransactionArgument & [TransactionArgument] {
|
|
2859
|
+
const _args: any[] = [];
|
|
2860
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2861
|
+
|
|
2862
|
+
// @ts-ignore
|
|
2863
|
+
return tx.moveCall({
|
|
2864
|
+
target: "0x1::u128::try_as_u8",
|
|
2865
|
+
arguments: _args,
|
|
2866
|
+
});
|
|
2867
|
+
}
|
|
2790
2868
|
}
|
|
2791
2869
|
export namespace view {
|
|
2870
|
+
export async function bitwiseNot(
|
|
2871
|
+
client: SuiClient,
|
|
2872
|
+
args: [bigint | TransactionArgument],
|
|
2873
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
2874
|
+
const tx = new Transaction();
|
|
2875
|
+
builder.bitwiseNot(tx, args);
|
|
2876
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2877
|
+
transactionBlock: tx,
|
|
2878
|
+
sender: ZERO_ADDRESS,
|
|
2879
|
+
});
|
|
2880
|
+
|
|
2881
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
2882
|
+
inspectRes,
|
|
2883
|
+
);
|
|
2884
|
+
}
|
|
2792
2885
|
export async function diff(
|
|
2793
2886
|
client: SuiClient,
|
|
2794
2887
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2795
2888
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
2796
|
-
const tx = new
|
|
2889
|
+
const tx = new Transaction();
|
|
2797
2890
|
builder.diff(tx, args);
|
|
2798
2891
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2799
2892
|
transactionBlock: tx,
|
|
@@ -2808,7 +2901,7 @@ export namespace u128 {
|
|
|
2808
2901
|
client: SuiClient,
|
|
2809
2902
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2810
2903
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
2811
|
-
const tx = new
|
|
2904
|
+
const tx = new Transaction();
|
|
2812
2905
|
builder.divideAndRoundUp(tx, args);
|
|
2813
2906
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2814
2907
|
transactionBlock: tx,
|
|
@@ -2823,7 +2916,7 @@ export namespace u128 {
|
|
|
2823
2916
|
client: SuiClient,
|
|
2824
2917
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2825
2918
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
2826
|
-
const tx = new
|
|
2919
|
+
const tx = new Transaction();
|
|
2827
2920
|
builder.max(tx, args);
|
|
2828
2921
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2829
2922
|
transactionBlock: tx,
|
|
@@ -2838,7 +2931,7 @@ export namespace u128 {
|
|
|
2838
2931
|
client: SuiClient,
|
|
2839
2932
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2840
2933
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
2841
|
-
const tx = new
|
|
2934
|
+
const tx = new Transaction();
|
|
2842
2935
|
builder.min(tx, args);
|
|
2843
2936
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2844
2937
|
transactionBlock: tx,
|
|
@@ -2853,7 +2946,7 @@ export namespace u128 {
|
|
|
2853
2946
|
client: SuiClient,
|
|
2854
2947
|
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
2855
2948
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
2856
|
-
const tx = new
|
|
2949
|
+
const tx = new Transaction();
|
|
2857
2950
|
builder.pow(tx, args);
|
|
2858
2951
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2859
2952
|
transactionBlock: tx,
|
|
@@ -2868,7 +2961,7 @@ export namespace u128 {
|
|
|
2868
2961
|
client: SuiClient,
|
|
2869
2962
|
args: [bigint | TransactionArgument],
|
|
2870
2963
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
2871
|
-
const tx = new
|
|
2964
|
+
const tx = new Transaction();
|
|
2872
2965
|
builder.sqrt(tx, args);
|
|
2873
2966
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2874
2967
|
transactionBlock: tx,
|
|
@@ -2879,13 +2972,101 @@ export namespace u128 {
|
|
|
2879
2972
|
inspectRes,
|
|
2880
2973
|
);
|
|
2881
2974
|
}
|
|
2975
|
+
export async function toString(
|
|
2976
|
+
client: SuiClient,
|
|
2977
|
+
args: [bigint | TransactionArgument],
|
|
2978
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
2979
|
+
const tx = new Transaction();
|
|
2980
|
+
builder.toString(tx, args);
|
|
2981
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2982
|
+
transactionBlock: tx,
|
|
2983
|
+
sender: ZERO_ADDRESS,
|
|
2984
|
+
});
|
|
2985
|
+
|
|
2986
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
2987
|
+
inspectRes,
|
|
2988
|
+
);
|
|
2989
|
+
}
|
|
2990
|
+
export async function tryAsU16(
|
|
2991
|
+
client: SuiClient,
|
|
2992
|
+
args: [bigint | TransactionArgument],
|
|
2993
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
2994
|
+
const tx = new Transaction();
|
|
2995
|
+
builder.tryAsU16(tx, args);
|
|
2996
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2997
|
+
transactionBlock: tx,
|
|
2998
|
+
sender: ZERO_ADDRESS,
|
|
2999
|
+
});
|
|
3000
|
+
|
|
3001
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3002
|
+
[option.Option<number>]
|
|
3003
|
+
>(inspectRes);
|
|
3004
|
+
}
|
|
3005
|
+
export async function tryAsU32(
|
|
3006
|
+
client: SuiClient,
|
|
3007
|
+
args: [bigint | TransactionArgument],
|
|
3008
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
3009
|
+
const tx = new Transaction();
|
|
3010
|
+
builder.tryAsU32(tx, args);
|
|
3011
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3012
|
+
transactionBlock: tx,
|
|
3013
|
+
sender: ZERO_ADDRESS,
|
|
3014
|
+
});
|
|
3015
|
+
|
|
3016
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3017
|
+
[option.Option<number>]
|
|
3018
|
+
>(inspectRes);
|
|
3019
|
+
}
|
|
3020
|
+
export async function tryAsU64(
|
|
3021
|
+
client: SuiClient,
|
|
3022
|
+
args: [bigint | TransactionArgument],
|
|
3023
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
3024
|
+
const tx = new Transaction();
|
|
3025
|
+
builder.tryAsU64(tx, args);
|
|
3026
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3027
|
+
transactionBlock: tx,
|
|
3028
|
+
sender: ZERO_ADDRESS,
|
|
3029
|
+
});
|
|
3030
|
+
|
|
3031
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3032
|
+
[option.Option<bigint>]
|
|
3033
|
+
>(inspectRes);
|
|
3034
|
+
}
|
|
3035
|
+
export async function tryAsU8(
|
|
3036
|
+
client: SuiClient,
|
|
3037
|
+
args: [bigint | TransactionArgument],
|
|
3038
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
3039
|
+
const tx = new Transaction();
|
|
3040
|
+
builder.tryAsU8(tx, args);
|
|
3041
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3042
|
+
transactionBlock: tx,
|
|
3043
|
+
sender: ZERO_ADDRESS,
|
|
3044
|
+
});
|
|
3045
|
+
|
|
3046
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3047
|
+
[option.Option<number>]
|
|
3048
|
+
>(inspectRes);
|
|
3049
|
+
}
|
|
2882
3050
|
}
|
|
2883
3051
|
}
|
|
2884
3052
|
|
|
2885
3053
|
export namespace u16 {
|
|
2886
3054
|
export namespace builder {
|
|
3055
|
+
export function bitwiseNot(
|
|
3056
|
+
tx: Transaction,
|
|
3057
|
+
args: [number | TransactionArgument],
|
|
3058
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3059
|
+
const _args: any[] = [];
|
|
3060
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3061
|
+
|
|
3062
|
+
// @ts-ignore
|
|
3063
|
+
return tx.moveCall({
|
|
3064
|
+
target: "0x1::u16::bitwise_not",
|
|
3065
|
+
arguments: _args,
|
|
3066
|
+
});
|
|
3067
|
+
}
|
|
2887
3068
|
export function diff(
|
|
2888
|
-
tx:
|
|
3069
|
+
tx: Transaction,
|
|
2889
3070
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
2890
3071
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2891
3072
|
const _args: any[] = [];
|
|
@@ -2899,7 +3080,7 @@ export namespace u16 {
|
|
|
2899
3080
|
});
|
|
2900
3081
|
}
|
|
2901
3082
|
export function divideAndRoundUp(
|
|
2902
|
-
tx:
|
|
3083
|
+
tx: Transaction,
|
|
2903
3084
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
2904
3085
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2905
3086
|
const _args: any[] = [];
|
|
@@ -2913,7 +3094,7 @@ export namespace u16 {
|
|
|
2913
3094
|
});
|
|
2914
3095
|
}
|
|
2915
3096
|
export function max(
|
|
2916
|
-
tx:
|
|
3097
|
+
tx: Transaction,
|
|
2917
3098
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
2918
3099
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2919
3100
|
const _args: any[] = [];
|
|
@@ -2927,7 +3108,7 @@ export namespace u16 {
|
|
|
2927
3108
|
});
|
|
2928
3109
|
}
|
|
2929
3110
|
export function min(
|
|
2930
|
-
tx:
|
|
3111
|
+
tx: Transaction,
|
|
2931
3112
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
2932
3113
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2933
3114
|
const _args: any[] = [];
|
|
@@ -2941,7 +3122,7 @@ export namespace u16 {
|
|
|
2941
3122
|
});
|
|
2942
3123
|
}
|
|
2943
3124
|
export function pow(
|
|
2944
|
-
tx:
|
|
3125
|
+
tx: Transaction,
|
|
2945
3126
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
2946
3127
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2947
3128
|
const _args: any[] = [];
|
|
@@ -2955,7 +3136,7 @@ export namespace u16 {
|
|
|
2955
3136
|
});
|
|
2956
3137
|
}
|
|
2957
3138
|
export function sqrt(
|
|
2958
|
-
tx:
|
|
3139
|
+
tx: Transaction,
|
|
2959
3140
|
args: [number | TransactionArgument],
|
|
2960
3141
|
): TransactionArgument & [TransactionArgument] {
|
|
2961
3142
|
const _args: any[] = [];
|
|
@@ -2967,13 +3148,54 @@ export namespace u16 {
|
|
|
2967
3148
|
arguments: _args,
|
|
2968
3149
|
});
|
|
2969
3150
|
}
|
|
3151
|
+
export function toString(
|
|
3152
|
+
tx: Transaction,
|
|
3153
|
+
args: [number | TransactionArgument],
|
|
3154
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3155
|
+
const _args: any[] = [];
|
|
3156
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3157
|
+
|
|
3158
|
+
// @ts-ignore
|
|
3159
|
+
return tx.moveCall({
|
|
3160
|
+
target: "0x1::u16::to_string",
|
|
3161
|
+
arguments: _args,
|
|
3162
|
+
});
|
|
3163
|
+
}
|
|
3164
|
+
export function tryAsU8(
|
|
3165
|
+
tx: Transaction,
|
|
3166
|
+
args: [number | TransactionArgument],
|
|
3167
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3168
|
+
const _args: any[] = [];
|
|
3169
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3170
|
+
|
|
3171
|
+
// @ts-ignore
|
|
3172
|
+
return tx.moveCall({
|
|
3173
|
+
target: "0x1::u16::try_as_u8",
|
|
3174
|
+
arguments: _args,
|
|
3175
|
+
});
|
|
3176
|
+
}
|
|
2970
3177
|
}
|
|
2971
3178
|
export namespace view {
|
|
3179
|
+
export async function bitwiseNot(
|
|
3180
|
+
client: SuiClient,
|
|
3181
|
+
args: [number | TransactionArgument],
|
|
3182
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3183
|
+
const tx = new Transaction();
|
|
3184
|
+
builder.bitwiseNot(tx, args);
|
|
3185
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3186
|
+
transactionBlock: tx,
|
|
3187
|
+
sender: ZERO_ADDRESS,
|
|
3188
|
+
});
|
|
3189
|
+
|
|
3190
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3191
|
+
inspectRes,
|
|
3192
|
+
);
|
|
3193
|
+
}
|
|
2972
3194
|
export async function diff(
|
|
2973
3195
|
client: SuiClient,
|
|
2974
3196
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
2975
3197
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
2976
|
-
const tx = new
|
|
3198
|
+
const tx = new Transaction();
|
|
2977
3199
|
builder.diff(tx, args);
|
|
2978
3200
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2979
3201
|
transactionBlock: tx,
|
|
@@ -2988,7 +3210,7 @@ export namespace u16 {
|
|
|
2988
3210
|
client: SuiClient,
|
|
2989
3211
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
2990
3212
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
2991
|
-
const tx = new
|
|
3213
|
+
const tx = new Transaction();
|
|
2992
3214
|
builder.divideAndRoundUp(tx, args);
|
|
2993
3215
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2994
3216
|
transactionBlock: tx,
|
|
@@ -3003,7 +3225,7 @@ export namespace u16 {
|
|
|
3003
3225
|
client: SuiClient,
|
|
3004
3226
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3005
3227
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
3006
|
-
const tx = new
|
|
3228
|
+
const tx = new Transaction();
|
|
3007
3229
|
builder.max(tx, args);
|
|
3008
3230
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3009
3231
|
transactionBlock: tx,
|
|
@@ -3018,7 +3240,7 @@ export namespace u16 {
|
|
|
3018
3240
|
client: SuiClient,
|
|
3019
3241
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3020
3242
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
3021
|
-
const tx = new
|
|
3243
|
+
const tx = new Transaction();
|
|
3022
3244
|
builder.min(tx, args);
|
|
3023
3245
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3024
3246
|
transactionBlock: tx,
|
|
@@ -3033,7 +3255,7 @@ export namespace u16 {
|
|
|
3033
3255
|
client: SuiClient,
|
|
3034
3256
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3035
3257
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
3036
|
-
const tx = new
|
|
3258
|
+
const tx = new Transaction();
|
|
3037
3259
|
builder.pow(tx, args);
|
|
3038
3260
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3039
3261
|
transactionBlock: tx,
|
|
@@ -3048,7 +3270,7 @@ export namespace u16 {
|
|
|
3048
3270
|
client: SuiClient,
|
|
3049
3271
|
args: [number | TransactionArgument],
|
|
3050
3272
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
3051
|
-
const tx = new
|
|
3273
|
+
const tx = new Transaction();
|
|
3052
3274
|
builder.sqrt(tx, args);
|
|
3053
3275
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3054
3276
|
transactionBlock: tx,
|
|
@@ -3059,13 +3281,56 @@ export namespace u16 {
|
|
|
3059
3281
|
inspectRes,
|
|
3060
3282
|
);
|
|
3061
3283
|
}
|
|
3284
|
+
export async function toString(
|
|
3285
|
+
client: SuiClient,
|
|
3286
|
+
args: [number | TransactionArgument],
|
|
3287
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3288
|
+
const tx = new Transaction();
|
|
3289
|
+
builder.toString(tx, args);
|
|
3290
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3291
|
+
transactionBlock: tx,
|
|
3292
|
+
sender: ZERO_ADDRESS,
|
|
3293
|
+
});
|
|
3294
|
+
|
|
3295
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3296
|
+
inspectRes,
|
|
3297
|
+
);
|
|
3298
|
+
}
|
|
3299
|
+
export async function tryAsU8(
|
|
3300
|
+
client: SuiClient,
|
|
3301
|
+
args: [number | TransactionArgument],
|
|
3302
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
3303
|
+
const tx = new Transaction();
|
|
3304
|
+
builder.tryAsU8(tx, args);
|
|
3305
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3306
|
+
transactionBlock: tx,
|
|
3307
|
+
sender: ZERO_ADDRESS,
|
|
3308
|
+
});
|
|
3309
|
+
|
|
3310
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3311
|
+
[option.Option<number>]
|
|
3312
|
+
>(inspectRes);
|
|
3313
|
+
}
|
|
3062
3314
|
}
|
|
3063
3315
|
}
|
|
3064
3316
|
|
|
3065
3317
|
export namespace u256 {
|
|
3066
3318
|
export namespace builder {
|
|
3319
|
+
export function bitwiseNot(
|
|
3320
|
+
tx: Transaction,
|
|
3321
|
+
args: [bigint | TransactionArgument],
|
|
3322
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3323
|
+
const _args: any[] = [];
|
|
3324
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3325
|
+
|
|
3326
|
+
// @ts-ignore
|
|
3327
|
+
return tx.moveCall({
|
|
3328
|
+
target: "0x1::u256::bitwise_not",
|
|
3329
|
+
arguments: _args,
|
|
3330
|
+
});
|
|
3331
|
+
}
|
|
3067
3332
|
export function diff(
|
|
3068
|
-
tx:
|
|
3333
|
+
tx: Transaction,
|
|
3069
3334
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3070
3335
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3071
3336
|
const _args: any[] = [];
|
|
@@ -3079,7 +3344,7 @@ export namespace u256 {
|
|
|
3079
3344
|
});
|
|
3080
3345
|
}
|
|
3081
3346
|
export function divideAndRoundUp(
|
|
3082
|
-
tx:
|
|
3347
|
+
tx: Transaction,
|
|
3083
3348
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3084
3349
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3085
3350
|
const _args: any[] = [];
|
|
@@ -3093,7 +3358,7 @@ export namespace u256 {
|
|
|
3093
3358
|
});
|
|
3094
3359
|
}
|
|
3095
3360
|
export function max(
|
|
3096
|
-
tx:
|
|
3361
|
+
tx: Transaction,
|
|
3097
3362
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3098
3363
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3099
3364
|
const _args: any[] = [];
|
|
@@ -3107,7 +3372,7 @@ export namespace u256 {
|
|
|
3107
3372
|
});
|
|
3108
3373
|
}
|
|
3109
3374
|
export function min(
|
|
3110
|
-
tx:
|
|
3375
|
+
tx: Transaction,
|
|
3111
3376
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3112
3377
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3113
3378
|
const _args: any[] = [];
|
|
@@ -3121,7 +3386,7 @@ export namespace u256 {
|
|
|
3121
3386
|
});
|
|
3122
3387
|
}
|
|
3123
3388
|
export function pow(
|
|
3124
|
-
tx:
|
|
3389
|
+
tx: Transaction,
|
|
3125
3390
|
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
3126
3391
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3127
3392
|
const _args: any[] = [];
|
|
@@ -3134,13 +3399,106 @@ export namespace u256 {
|
|
|
3134
3399
|
arguments: _args,
|
|
3135
3400
|
});
|
|
3136
3401
|
}
|
|
3402
|
+
export function toString(
|
|
3403
|
+
tx: Transaction,
|
|
3404
|
+
args: [bigint | TransactionArgument],
|
|
3405
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3406
|
+
const _args: any[] = [];
|
|
3407
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3408
|
+
|
|
3409
|
+
// @ts-ignore
|
|
3410
|
+
return tx.moveCall({
|
|
3411
|
+
target: "0x1::u256::to_string",
|
|
3412
|
+
arguments: _args,
|
|
3413
|
+
});
|
|
3414
|
+
}
|
|
3415
|
+
export function tryAsU128(
|
|
3416
|
+
tx: Transaction,
|
|
3417
|
+
args: [bigint | TransactionArgument],
|
|
3418
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3419
|
+
const _args: any[] = [];
|
|
3420
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3421
|
+
|
|
3422
|
+
// @ts-ignore
|
|
3423
|
+
return tx.moveCall({
|
|
3424
|
+
target: "0x1::u256::try_as_u128",
|
|
3425
|
+
arguments: _args,
|
|
3426
|
+
});
|
|
3427
|
+
}
|
|
3428
|
+
export function tryAsU16(
|
|
3429
|
+
tx: Transaction,
|
|
3430
|
+
args: [bigint | TransactionArgument],
|
|
3431
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3432
|
+
const _args: any[] = [];
|
|
3433
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3434
|
+
|
|
3435
|
+
// @ts-ignore
|
|
3436
|
+
return tx.moveCall({
|
|
3437
|
+
target: "0x1::u256::try_as_u16",
|
|
3438
|
+
arguments: _args,
|
|
3439
|
+
});
|
|
3440
|
+
}
|
|
3441
|
+
export function tryAsU32(
|
|
3442
|
+
tx: Transaction,
|
|
3443
|
+
args: [bigint | TransactionArgument],
|
|
3444
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3445
|
+
const _args: any[] = [];
|
|
3446
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3447
|
+
|
|
3448
|
+
// @ts-ignore
|
|
3449
|
+
return tx.moveCall({
|
|
3450
|
+
target: "0x1::u256::try_as_u32",
|
|
3451
|
+
arguments: _args,
|
|
3452
|
+
});
|
|
3453
|
+
}
|
|
3454
|
+
export function tryAsU64(
|
|
3455
|
+
tx: Transaction,
|
|
3456
|
+
args: [bigint | TransactionArgument],
|
|
3457
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3458
|
+
const _args: any[] = [];
|
|
3459
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3460
|
+
|
|
3461
|
+
// @ts-ignore
|
|
3462
|
+
return tx.moveCall({
|
|
3463
|
+
target: "0x1::u256::try_as_u64",
|
|
3464
|
+
arguments: _args,
|
|
3465
|
+
});
|
|
3466
|
+
}
|
|
3467
|
+
export function tryAsU8(
|
|
3468
|
+
tx: Transaction,
|
|
3469
|
+
args: [bigint | TransactionArgument],
|
|
3470
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3471
|
+
const _args: any[] = [];
|
|
3472
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3473
|
+
|
|
3474
|
+
// @ts-ignore
|
|
3475
|
+
return tx.moveCall({
|
|
3476
|
+
target: "0x1::u256::try_as_u8",
|
|
3477
|
+
arguments: _args,
|
|
3478
|
+
});
|
|
3479
|
+
}
|
|
3137
3480
|
}
|
|
3138
3481
|
export namespace view {
|
|
3482
|
+
export async function bitwiseNot(
|
|
3483
|
+
client: SuiClient,
|
|
3484
|
+
args: [bigint | TransactionArgument],
|
|
3485
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3486
|
+
const tx = new Transaction();
|
|
3487
|
+
builder.bitwiseNot(tx, args);
|
|
3488
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3489
|
+
transactionBlock: tx,
|
|
3490
|
+
sender: ZERO_ADDRESS,
|
|
3491
|
+
});
|
|
3492
|
+
|
|
3493
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3494
|
+
inspectRes,
|
|
3495
|
+
);
|
|
3496
|
+
}
|
|
3139
3497
|
export async function diff(
|
|
3140
3498
|
client: SuiClient,
|
|
3141
3499
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3142
3500
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3143
|
-
const tx = new
|
|
3501
|
+
const tx = new Transaction();
|
|
3144
3502
|
builder.diff(tx, args);
|
|
3145
3503
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3146
3504
|
transactionBlock: tx,
|
|
@@ -3155,7 +3513,7 @@ export namespace u256 {
|
|
|
3155
3513
|
client: SuiClient,
|
|
3156
3514
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3157
3515
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3158
|
-
const tx = new
|
|
3516
|
+
const tx = new Transaction();
|
|
3159
3517
|
builder.divideAndRoundUp(tx, args);
|
|
3160
3518
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3161
3519
|
transactionBlock: tx,
|
|
@@ -3170,7 +3528,7 @@ export namespace u256 {
|
|
|
3170
3528
|
client: SuiClient,
|
|
3171
3529
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3172
3530
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3173
|
-
const tx = new
|
|
3531
|
+
const tx = new Transaction();
|
|
3174
3532
|
builder.max(tx, args);
|
|
3175
3533
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3176
3534
|
transactionBlock: tx,
|
|
@@ -3185,7 +3543,7 @@ export namespace u256 {
|
|
|
3185
3543
|
client: SuiClient,
|
|
3186
3544
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3187
3545
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3188
|
-
const tx = new
|
|
3546
|
+
const tx = new Transaction();
|
|
3189
3547
|
builder.min(tx, args);
|
|
3190
3548
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3191
3549
|
transactionBlock: tx,
|
|
@@ -3200,7 +3558,7 @@ export namespace u256 {
|
|
|
3200
3558
|
client: SuiClient,
|
|
3201
3559
|
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
3202
3560
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3203
|
-
const tx = new
|
|
3561
|
+
const tx = new Transaction();
|
|
3204
3562
|
builder.pow(tx, args);
|
|
3205
3563
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3206
3564
|
transactionBlock: tx,
|
|
@@ -3211,13 +3569,116 @@ export namespace u256 {
|
|
|
3211
3569
|
inspectRes,
|
|
3212
3570
|
);
|
|
3213
3571
|
}
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3572
|
+
export async function toString(
|
|
3573
|
+
client: SuiClient,
|
|
3574
|
+
args: [bigint | TransactionArgument],
|
|
3575
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3576
|
+
const tx = new Transaction();
|
|
3577
|
+
builder.toString(tx, args);
|
|
3578
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3579
|
+
transactionBlock: tx,
|
|
3580
|
+
sender: ZERO_ADDRESS,
|
|
3581
|
+
});
|
|
3582
|
+
|
|
3583
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3584
|
+
inspectRes,
|
|
3585
|
+
);
|
|
3586
|
+
}
|
|
3587
|
+
export async function tryAsU128(
|
|
3588
|
+
client: SuiClient,
|
|
3589
|
+
args: [bigint | TransactionArgument],
|
|
3590
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
3591
|
+
const tx = new Transaction();
|
|
3592
|
+
builder.tryAsU128(tx, args);
|
|
3593
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3594
|
+
transactionBlock: tx,
|
|
3595
|
+
sender: ZERO_ADDRESS,
|
|
3596
|
+
});
|
|
3597
|
+
|
|
3598
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3599
|
+
[option.Option<bigint>]
|
|
3600
|
+
>(inspectRes);
|
|
3601
|
+
}
|
|
3602
|
+
export async function tryAsU16(
|
|
3603
|
+
client: SuiClient,
|
|
3604
|
+
args: [bigint | TransactionArgument],
|
|
3605
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
3606
|
+
const tx = new Transaction();
|
|
3607
|
+
builder.tryAsU16(tx, args);
|
|
3608
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3609
|
+
transactionBlock: tx,
|
|
3610
|
+
sender: ZERO_ADDRESS,
|
|
3611
|
+
});
|
|
3612
|
+
|
|
3613
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3614
|
+
[option.Option<number>]
|
|
3615
|
+
>(inspectRes);
|
|
3616
|
+
}
|
|
3617
|
+
export async function tryAsU32(
|
|
3618
|
+
client: SuiClient,
|
|
3619
|
+
args: [bigint | TransactionArgument],
|
|
3620
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
3621
|
+
const tx = new Transaction();
|
|
3622
|
+
builder.tryAsU32(tx, args);
|
|
3623
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3624
|
+
transactionBlock: tx,
|
|
3625
|
+
sender: ZERO_ADDRESS,
|
|
3626
|
+
});
|
|
3627
|
+
|
|
3628
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3629
|
+
[option.Option<number>]
|
|
3630
|
+
>(inspectRes);
|
|
3631
|
+
}
|
|
3632
|
+
export async function tryAsU64(
|
|
3633
|
+
client: SuiClient,
|
|
3634
|
+
args: [bigint | TransactionArgument],
|
|
3635
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
3636
|
+
const tx = new Transaction();
|
|
3637
|
+
builder.tryAsU64(tx, args);
|
|
3638
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3639
|
+
transactionBlock: tx,
|
|
3640
|
+
sender: ZERO_ADDRESS,
|
|
3641
|
+
});
|
|
3642
|
+
|
|
3643
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3644
|
+
[option.Option<bigint>]
|
|
3645
|
+
>(inspectRes);
|
|
3646
|
+
}
|
|
3647
|
+
export async function tryAsU8(
|
|
3648
|
+
client: SuiClient,
|
|
3649
|
+
args: [bigint | TransactionArgument],
|
|
3650
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
3651
|
+
const tx = new Transaction();
|
|
3652
|
+
builder.tryAsU8(tx, args);
|
|
3653
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3654
|
+
transactionBlock: tx,
|
|
3655
|
+
sender: ZERO_ADDRESS,
|
|
3656
|
+
});
|
|
3657
|
+
|
|
3658
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3659
|
+
[option.Option<number>]
|
|
3660
|
+
>(inspectRes);
|
|
3661
|
+
}
|
|
3662
|
+
}
|
|
3663
|
+
}
|
|
3664
|
+
|
|
3665
|
+
export namespace u32 {
|
|
3666
|
+
export namespace builder {
|
|
3667
|
+
export function bitwiseNot(
|
|
3668
|
+
tx: Transaction,
|
|
3669
|
+
args: [number | TransactionArgument],
|
|
3670
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3671
|
+
const _args: any[] = [];
|
|
3672
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3673
|
+
|
|
3674
|
+
// @ts-ignore
|
|
3675
|
+
return tx.moveCall({
|
|
3676
|
+
target: "0x1::u32::bitwise_not",
|
|
3677
|
+
arguments: _args,
|
|
3678
|
+
});
|
|
3679
|
+
}
|
|
3219
3680
|
export function diff(
|
|
3220
|
-
tx:
|
|
3681
|
+
tx: Transaction,
|
|
3221
3682
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3222
3683
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3223
3684
|
const _args: any[] = [];
|
|
@@ -3231,7 +3692,7 @@ export namespace u32 {
|
|
|
3231
3692
|
});
|
|
3232
3693
|
}
|
|
3233
3694
|
export function divideAndRoundUp(
|
|
3234
|
-
tx:
|
|
3695
|
+
tx: Transaction,
|
|
3235
3696
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3236
3697
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3237
3698
|
const _args: any[] = [];
|
|
@@ -3245,7 +3706,7 @@ export namespace u32 {
|
|
|
3245
3706
|
});
|
|
3246
3707
|
}
|
|
3247
3708
|
export function max(
|
|
3248
|
-
tx:
|
|
3709
|
+
tx: Transaction,
|
|
3249
3710
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3250
3711
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3251
3712
|
const _args: any[] = [];
|
|
@@ -3259,7 +3720,7 @@ export namespace u32 {
|
|
|
3259
3720
|
});
|
|
3260
3721
|
}
|
|
3261
3722
|
export function min(
|
|
3262
|
-
tx:
|
|
3723
|
+
tx: Transaction,
|
|
3263
3724
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3264
3725
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3265
3726
|
const _args: any[] = [];
|
|
@@ -3273,7 +3734,7 @@ export namespace u32 {
|
|
|
3273
3734
|
});
|
|
3274
3735
|
}
|
|
3275
3736
|
export function pow(
|
|
3276
|
-
tx:
|
|
3737
|
+
tx: Transaction,
|
|
3277
3738
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3278
3739
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3279
3740
|
const _args: any[] = [];
|
|
@@ -3287,7 +3748,7 @@ export namespace u32 {
|
|
|
3287
3748
|
});
|
|
3288
3749
|
}
|
|
3289
3750
|
export function sqrt(
|
|
3290
|
-
tx:
|
|
3751
|
+
tx: Transaction,
|
|
3291
3752
|
args: [number | TransactionArgument],
|
|
3292
3753
|
): TransactionArgument & [TransactionArgument] {
|
|
3293
3754
|
const _args: any[] = [];
|
|
@@ -3299,13 +3760,67 @@ export namespace u32 {
|
|
|
3299
3760
|
arguments: _args,
|
|
3300
3761
|
});
|
|
3301
3762
|
}
|
|
3763
|
+
export function toString(
|
|
3764
|
+
tx: Transaction,
|
|
3765
|
+
args: [number | TransactionArgument],
|
|
3766
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3767
|
+
const _args: any[] = [];
|
|
3768
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3769
|
+
|
|
3770
|
+
// @ts-ignore
|
|
3771
|
+
return tx.moveCall({
|
|
3772
|
+
target: "0x1::u32::to_string",
|
|
3773
|
+
arguments: _args,
|
|
3774
|
+
});
|
|
3775
|
+
}
|
|
3776
|
+
export function tryAsU16(
|
|
3777
|
+
tx: Transaction,
|
|
3778
|
+
args: [number | TransactionArgument],
|
|
3779
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3780
|
+
const _args: any[] = [];
|
|
3781
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3782
|
+
|
|
3783
|
+
// @ts-ignore
|
|
3784
|
+
return tx.moveCall({
|
|
3785
|
+
target: "0x1::u32::try_as_u16",
|
|
3786
|
+
arguments: _args,
|
|
3787
|
+
});
|
|
3788
|
+
}
|
|
3789
|
+
export function tryAsU8(
|
|
3790
|
+
tx: Transaction,
|
|
3791
|
+
args: [number | TransactionArgument],
|
|
3792
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3793
|
+
const _args: any[] = [];
|
|
3794
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3795
|
+
|
|
3796
|
+
// @ts-ignore
|
|
3797
|
+
return tx.moveCall({
|
|
3798
|
+
target: "0x1::u32::try_as_u8",
|
|
3799
|
+
arguments: _args,
|
|
3800
|
+
});
|
|
3801
|
+
}
|
|
3302
3802
|
}
|
|
3303
3803
|
export namespace view {
|
|
3804
|
+
export async function bitwiseNot(
|
|
3805
|
+
client: SuiClient,
|
|
3806
|
+
args: [number | TransactionArgument],
|
|
3807
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3808
|
+
const tx = new Transaction();
|
|
3809
|
+
builder.bitwiseNot(tx, args);
|
|
3810
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3811
|
+
transactionBlock: tx,
|
|
3812
|
+
sender: ZERO_ADDRESS,
|
|
3813
|
+
});
|
|
3814
|
+
|
|
3815
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3816
|
+
inspectRes,
|
|
3817
|
+
);
|
|
3818
|
+
}
|
|
3304
3819
|
export async function diff(
|
|
3305
3820
|
client: SuiClient,
|
|
3306
3821
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3307
3822
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
3308
|
-
const tx = new
|
|
3823
|
+
const tx = new Transaction();
|
|
3309
3824
|
builder.diff(tx, args);
|
|
3310
3825
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3311
3826
|
transactionBlock: tx,
|
|
@@ -3320,7 +3835,7 @@ export namespace u32 {
|
|
|
3320
3835
|
client: SuiClient,
|
|
3321
3836
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3322
3837
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
3323
|
-
const tx = new
|
|
3838
|
+
const tx = new Transaction();
|
|
3324
3839
|
builder.divideAndRoundUp(tx, args);
|
|
3325
3840
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3326
3841
|
transactionBlock: tx,
|
|
@@ -3335,7 +3850,7 @@ export namespace u32 {
|
|
|
3335
3850
|
client: SuiClient,
|
|
3336
3851
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3337
3852
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
3338
|
-
const tx = new
|
|
3853
|
+
const tx = new Transaction();
|
|
3339
3854
|
builder.max(tx, args);
|
|
3340
3855
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3341
3856
|
transactionBlock: tx,
|
|
@@ -3350,7 +3865,7 @@ export namespace u32 {
|
|
|
3350
3865
|
client: SuiClient,
|
|
3351
3866
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3352
3867
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
3353
|
-
const tx = new
|
|
3868
|
+
const tx = new Transaction();
|
|
3354
3869
|
builder.min(tx, args);
|
|
3355
3870
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3356
3871
|
transactionBlock: tx,
|
|
@@ -3365,7 +3880,7 @@ export namespace u32 {
|
|
|
3365
3880
|
client: SuiClient,
|
|
3366
3881
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3367
3882
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
3368
|
-
const tx = new
|
|
3883
|
+
const tx = new Transaction();
|
|
3369
3884
|
builder.pow(tx, args);
|
|
3370
3885
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3371
3886
|
transactionBlock: tx,
|
|
@@ -3380,7 +3895,7 @@ export namespace u32 {
|
|
|
3380
3895
|
client: SuiClient,
|
|
3381
3896
|
args: [number | TransactionArgument],
|
|
3382
3897
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
3383
|
-
const tx = new
|
|
3898
|
+
const tx = new Transaction();
|
|
3384
3899
|
builder.sqrt(tx, args);
|
|
3385
3900
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3386
3901
|
transactionBlock: tx,
|
|
@@ -3391,13 +3906,71 @@ export namespace u32 {
|
|
|
3391
3906
|
inspectRes,
|
|
3392
3907
|
);
|
|
3393
3908
|
}
|
|
3909
|
+
export async function toString(
|
|
3910
|
+
client: SuiClient,
|
|
3911
|
+
args: [number | TransactionArgument],
|
|
3912
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3913
|
+
const tx = new Transaction();
|
|
3914
|
+
builder.toString(tx, args);
|
|
3915
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3916
|
+
transactionBlock: tx,
|
|
3917
|
+
sender: ZERO_ADDRESS,
|
|
3918
|
+
});
|
|
3919
|
+
|
|
3920
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3921
|
+
inspectRes,
|
|
3922
|
+
);
|
|
3923
|
+
}
|
|
3924
|
+
export async function tryAsU16(
|
|
3925
|
+
client: SuiClient,
|
|
3926
|
+
args: [number | TransactionArgument],
|
|
3927
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
3928
|
+
const tx = new Transaction();
|
|
3929
|
+
builder.tryAsU16(tx, args);
|
|
3930
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3931
|
+
transactionBlock: tx,
|
|
3932
|
+
sender: ZERO_ADDRESS,
|
|
3933
|
+
});
|
|
3934
|
+
|
|
3935
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3936
|
+
[option.Option<number>]
|
|
3937
|
+
>(inspectRes);
|
|
3938
|
+
}
|
|
3939
|
+
export async function tryAsU8(
|
|
3940
|
+
client: SuiClient,
|
|
3941
|
+
args: [number | TransactionArgument],
|
|
3942
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
3943
|
+
const tx = new Transaction();
|
|
3944
|
+
builder.tryAsU8(tx, args);
|
|
3945
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3946
|
+
transactionBlock: tx,
|
|
3947
|
+
sender: ZERO_ADDRESS,
|
|
3948
|
+
});
|
|
3949
|
+
|
|
3950
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3951
|
+
[option.Option<number>]
|
|
3952
|
+
>(inspectRes);
|
|
3953
|
+
}
|
|
3394
3954
|
}
|
|
3395
3955
|
}
|
|
3396
3956
|
|
|
3397
3957
|
export namespace u64 {
|
|
3398
3958
|
export namespace builder {
|
|
3959
|
+
export function bitwiseNot(
|
|
3960
|
+
tx: Transaction,
|
|
3961
|
+
args: [bigint | TransactionArgument],
|
|
3962
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3963
|
+
const _args: any[] = [];
|
|
3964
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3965
|
+
|
|
3966
|
+
// @ts-ignore
|
|
3967
|
+
return tx.moveCall({
|
|
3968
|
+
target: "0x1::u64::bitwise_not",
|
|
3969
|
+
arguments: _args,
|
|
3970
|
+
});
|
|
3971
|
+
}
|
|
3399
3972
|
export function diff(
|
|
3400
|
-
tx:
|
|
3973
|
+
tx: Transaction,
|
|
3401
3974
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3402
3975
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3403
3976
|
const _args: any[] = [];
|
|
@@ -3411,7 +3984,7 @@ export namespace u64 {
|
|
|
3411
3984
|
});
|
|
3412
3985
|
}
|
|
3413
3986
|
export function divideAndRoundUp(
|
|
3414
|
-
tx:
|
|
3987
|
+
tx: Transaction,
|
|
3415
3988
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3416
3989
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3417
3990
|
const _args: any[] = [];
|
|
@@ -3425,7 +3998,7 @@ export namespace u64 {
|
|
|
3425
3998
|
});
|
|
3426
3999
|
}
|
|
3427
4000
|
export function max(
|
|
3428
|
-
tx:
|
|
4001
|
+
tx: Transaction,
|
|
3429
4002
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3430
4003
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3431
4004
|
const _args: any[] = [];
|
|
@@ -3439,7 +4012,7 @@ export namespace u64 {
|
|
|
3439
4012
|
});
|
|
3440
4013
|
}
|
|
3441
4014
|
export function min(
|
|
3442
|
-
tx:
|
|
4015
|
+
tx: Transaction,
|
|
3443
4016
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3444
4017
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3445
4018
|
const _args: any[] = [];
|
|
@@ -3453,7 +4026,7 @@ export namespace u64 {
|
|
|
3453
4026
|
});
|
|
3454
4027
|
}
|
|
3455
4028
|
export function pow(
|
|
3456
|
-
tx:
|
|
4029
|
+
tx: Transaction,
|
|
3457
4030
|
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
3458
4031
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3459
4032
|
const _args: any[] = [];
|
|
@@ -3467,7 +4040,7 @@ export namespace u64 {
|
|
|
3467
4040
|
});
|
|
3468
4041
|
}
|
|
3469
4042
|
export function sqrt(
|
|
3470
|
-
tx:
|
|
4043
|
+
tx: Transaction,
|
|
3471
4044
|
args: [bigint | TransactionArgument],
|
|
3472
4045
|
): TransactionArgument & [TransactionArgument] {
|
|
3473
4046
|
const _args: any[] = [];
|
|
@@ -3479,13 +4052,80 @@ export namespace u64 {
|
|
|
3479
4052
|
arguments: _args,
|
|
3480
4053
|
});
|
|
3481
4054
|
}
|
|
4055
|
+
export function toString(
|
|
4056
|
+
tx: Transaction,
|
|
4057
|
+
args: [bigint | TransactionArgument],
|
|
4058
|
+
): TransactionArgument & [TransactionArgument] {
|
|
4059
|
+
const _args: any[] = [];
|
|
4060
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
4061
|
+
|
|
4062
|
+
// @ts-ignore
|
|
4063
|
+
return tx.moveCall({
|
|
4064
|
+
target: "0x1::u64::to_string",
|
|
4065
|
+
arguments: _args,
|
|
4066
|
+
});
|
|
4067
|
+
}
|
|
4068
|
+
export function tryAsU16(
|
|
4069
|
+
tx: Transaction,
|
|
4070
|
+
args: [bigint | TransactionArgument],
|
|
4071
|
+
): TransactionArgument & [TransactionArgument] {
|
|
4072
|
+
const _args: any[] = [];
|
|
4073
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
4074
|
+
|
|
4075
|
+
// @ts-ignore
|
|
4076
|
+
return tx.moveCall({
|
|
4077
|
+
target: "0x1::u64::try_as_u16",
|
|
4078
|
+
arguments: _args,
|
|
4079
|
+
});
|
|
4080
|
+
}
|
|
4081
|
+
export function tryAsU32(
|
|
4082
|
+
tx: Transaction,
|
|
4083
|
+
args: [bigint | TransactionArgument],
|
|
4084
|
+
): TransactionArgument & [TransactionArgument] {
|
|
4085
|
+
const _args: any[] = [];
|
|
4086
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
4087
|
+
|
|
4088
|
+
// @ts-ignore
|
|
4089
|
+
return tx.moveCall({
|
|
4090
|
+
target: "0x1::u64::try_as_u32",
|
|
4091
|
+
arguments: _args,
|
|
4092
|
+
});
|
|
4093
|
+
}
|
|
4094
|
+
export function tryAsU8(
|
|
4095
|
+
tx: Transaction,
|
|
4096
|
+
args: [bigint | TransactionArgument],
|
|
4097
|
+
): TransactionArgument & [TransactionArgument] {
|
|
4098
|
+
const _args: any[] = [];
|
|
4099
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
4100
|
+
|
|
4101
|
+
// @ts-ignore
|
|
4102
|
+
return tx.moveCall({
|
|
4103
|
+
target: "0x1::u64::try_as_u8",
|
|
4104
|
+
arguments: _args,
|
|
4105
|
+
});
|
|
4106
|
+
}
|
|
3482
4107
|
}
|
|
3483
4108
|
export namespace view {
|
|
4109
|
+
export async function bitwiseNot(
|
|
4110
|
+
client: SuiClient,
|
|
4111
|
+
args: [bigint | TransactionArgument],
|
|
4112
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4113
|
+
const tx = new Transaction();
|
|
4114
|
+
builder.bitwiseNot(tx, args);
|
|
4115
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4116
|
+
transactionBlock: tx,
|
|
4117
|
+
sender: ZERO_ADDRESS,
|
|
4118
|
+
});
|
|
4119
|
+
|
|
4120
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
4121
|
+
inspectRes,
|
|
4122
|
+
);
|
|
4123
|
+
}
|
|
3484
4124
|
export async function diff(
|
|
3485
4125
|
client: SuiClient,
|
|
3486
4126
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3487
4127
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3488
|
-
const tx = new
|
|
4128
|
+
const tx = new Transaction();
|
|
3489
4129
|
builder.diff(tx, args);
|
|
3490
4130
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3491
4131
|
transactionBlock: tx,
|
|
@@ -3500,7 +4140,7 @@ export namespace u64 {
|
|
|
3500
4140
|
client: SuiClient,
|
|
3501
4141
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3502
4142
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3503
|
-
const tx = new
|
|
4143
|
+
const tx = new Transaction();
|
|
3504
4144
|
builder.divideAndRoundUp(tx, args);
|
|
3505
4145
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3506
4146
|
transactionBlock: tx,
|
|
@@ -3515,7 +4155,7 @@ export namespace u64 {
|
|
|
3515
4155
|
client: SuiClient,
|
|
3516
4156
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3517
4157
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3518
|
-
const tx = new
|
|
4158
|
+
const tx = new Transaction();
|
|
3519
4159
|
builder.max(tx, args);
|
|
3520
4160
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3521
4161
|
transactionBlock: tx,
|
|
@@ -3530,7 +4170,7 @@ export namespace u64 {
|
|
|
3530
4170
|
client: SuiClient,
|
|
3531
4171
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3532
4172
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3533
|
-
const tx = new
|
|
4173
|
+
const tx = new Transaction();
|
|
3534
4174
|
builder.min(tx, args);
|
|
3535
4175
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3536
4176
|
transactionBlock: tx,
|
|
@@ -3545,7 +4185,7 @@ export namespace u64 {
|
|
|
3545
4185
|
client: SuiClient,
|
|
3546
4186
|
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
3547
4187
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3548
|
-
const tx = new
|
|
4188
|
+
const tx = new Transaction();
|
|
3549
4189
|
builder.pow(tx, args);
|
|
3550
4190
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3551
4191
|
transactionBlock: tx,
|
|
@@ -3560,7 +4200,7 @@ export namespace u64 {
|
|
|
3560
4200
|
client: SuiClient,
|
|
3561
4201
|
args: [bigint | TransactionArgument],
|
|
3562
4202
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3563
|
-
const tx = new
|
|
4203
|
+
const tx = new Transaction();
|
|
3564
4204
|
builder.sqrt(tx, args);
|
|
3565
4205
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3566
4206
|
transactionBlock: tx,
|
|
@@ -3571,13 +4211,86 @@ export namespace u64 {
|
|
|
3571
4211
|
inspectRes,
|
|
3572
4212
|
);
|
|
3573
4213
|
}
|
|
4214
|
+
export async function toString(
|
|
4215
|
+
client: SuiClient,
|
|
4216
|
+
args: [bigint | TransactionArgument],
|
|
4217
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
4218
|
+
const tx = new Transaction();
|
|
4219
|
+
builder.toString(tx, args);
|
|
4220
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4221
|
+
transactionBlock: tx,
|
|
4222
|
+
sender: ZERO_ADDRESS,
|
|
4223
|
+
});
|
|
4224
|
+
|
|
4225
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
4226
|
+
inspectRes,
|
|
4227
|
+
);
|
|
4228
|
+
}
|
|
4229
|
+
export async function tryAsU16(
|
|
4230
|
+
client: SuiClient,
|
|
4231
|
+
args: [bigint | TransactionArgument],
|
|
4232
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
4233
|
+
const tx = new Transaction();
|
|
4234
|
+
builder.tryAsU16(tx, args);
|
|
4235
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4236
|
+
transactionBlock: tx,
|
|
4237
|
+
sender: ZERO_ADDRESS,
|
|
4238
|
+
});
|
|
4239
|
+
|
|
4240
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
4241
|
+
[option.Option<number>]
|
|
4242
|
+
>(inspectRes);
|
|
4243
|
+
}
|
|
4244
|
+
export async function tryAsU32(
|
|
4245
|
+
client: SuiClient,
|
|
4246
|
+
args: [bigint | TransactionArgument],
|
|
4247
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
4248
|
+
const tx = new Transaction();
|
|
4249
|
+
builder.tryAsU32(tx, args);
|
|
4250
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4251
|
+
transactionBlock: tx,
|
|
4252
|
+
sender: ZERO_ADDRESS,
|
|
4253
|
+
});
|
|
4254
|
+
|
|
4255
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
4256
|
+
[option.Option<number>]
|
|
4257
|
+
>(inspectRes);
|
|
4258
|
+
}
|
|
4259
|
+
export async function tryAsU8(
|
|
4260
|
+
client: SuiClient,
|
|
4261
|
+
args: [bigint | TransactionArgument],
|
|
4262
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
4263
|
+
const tx = new Transaction();
|
|
4264
|
+
builder.tryAsU8(tx, args);
|
|
4265
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4266
|
+
transactionBlock: tx,
|
|
4267
|
+
sender: ZERO_ADDRESS,
|
|
4268
|
+
});
|
|
4269
|
+
|
|
4270
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
4271
|
+
[option.Option<number>]
|
|
4272
|
+
>(inspectRes);
|
|
4273
|
+
}
|
|
3574
4274
|
}
|
|
3575
4275
|
}
|
|
3576
4276
|
|
|
3577
4277
|
export namespace u8 {
|
|
3578
4278
|
export namespace builder {
|
|
4279
|
+
export function bitwiseNot(
|
|
4280
|
+
tx: Transaction,
|
|
4281
|
+
args: [number | TransactionArgument],
|
|
4282
|
+
): TransactionArgument & [TransactionArgument] {
|
|
4283
|
+
const _args: any[] = [];
|
|
4284
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
4285
|
+
|
|
4286
|
+
// @ts-ignore
|
|
4287
|
+
return tx.moveCall({
|
|
4288
|
+
target: "0x1::u8::bitwise_not",
|
|
4289
|
+
arguments: _args,
|
|
4290
|
+
});
|
|
4291
|
+
}
|
|
3579
4292
|
export function diff(
|
|
3580
|
-
tx:
|
|
4293
|
+
tx: Transaction,
|
|
3581
4294
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3582
4295
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3583
4296
|
const _args: any[] = [];
|
|
@@ -3591,7 +4304,7 @@ export namespace u8 {
|
|
|
3591
4304
|
});
|
|
3592
4305
|
}
|
|
3593
4306
|
export function divideAndRoundUp(
|
|
3594
|
-
tx:
|
|
4307
|
+
tx: Transaction,
|
|
3595
4308
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3596
4309
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3597
4310
|
const _args: any[] = [];
|
|
@@ -3605,7 +4318,7 @@ export namespace u8 {
|
|
|
3605
4318
|
});
|
|
3606
4319
|
}
|
|
3607
4320
|
export function max(
|
|
3608
|
-
tx:
|
|
4321
|
+
tx: Transaction,
|
|
3609
4322
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3610
4323
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3611
4324
|
const _args: any[] = [];
|
|
@@ -3619,7 +4332,7 @@ export namespace u8 {
|
|
|
3619
4332
|
});
|
|
3620
4333
|
}
|
|
3621
4334
|
export function min(
|
|
3622
|
-
tx:
|
|
4335
|
+
tx: Transaction,
|
|
3623
4336
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3624
4337
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3625
4338
|
const _args: any[] = [];
|
|
@@ -3633,7 +4346,7 @@ export namespace u8 {
|
|
|
3633
4346
|
});
|
|
3634
4347
|
}
|
|
3635
4348
|
export function pow(
|
|
3636
|
-
tx:
|
|
4349
|
+
tx: Transaction,
|
|
3637
4350
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3638
4351
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3639
4352
|
const _args: any[] = [];
|
|
@@ -3647,7 +4360,7 @@ export namespace u8 {
|
|
|
3647
4360
|
});
|
|
3648
4361
|
}
|
|
3649
4362
|
export function sqrt(
|
|
3650
|
-
tx:
|
|
4363
|
+
tx: Transaction,
|
|
3651
4364
|
args: [number | TransactionArgument],
|
|
3652
4365
|
): TransactionArgument & [TransactionArgument] {
|
|
3653
4366
|
const _args: any[] = [];
|
|
@@ -3659,13 +4372,41 @@ export namespace u8 {
|
|
|
3659
4372
|
arguments: _args,
|
|
3660
4373
|
});
|
|
3661
4374
|
}
|
|
4375
|
+
export function toString(
|
|
4376
|
+
tx: Transaction,
|
|
4377
|
+
args: [number | TransactionArgument],
|
|
4378
|
+
): TransactionArgument & [TransactionArgument] {
|
|
4379
|
+
const _args: any[] = [];
|
|
4380
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
4381
|
+
|
|
4382
|
+
// @ts-ignore
|
|
4383
|
+
return tx.moveCall({
|
|
4384
|
+
target: "0x1::u8::to_string",
|
|
4385
|
+
arguments: _args,
|
|
4386
|
+
});
|
|
4387
|
+
}
|
|
3662
4388
|
}
|
|
3663
4389
|
export namespace view {
|
|
4390
|
+
export async function bitwiseNot(
|
|
4391
|
+
client: SuiClient,
|
|
4392
|
+
args: [number | TransactionArgument],
|
|
4393
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
4394
|
+
const tx = new Transaction();
|
|
4395
|
+
builder.bitwiseNot(tx, args);
|
|
4396
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4397
|
+
transactionBlock: tx,
|
|
4398
|
+
sender: ZERO_ADDRESS,
|
|
4399
|
+
});
|
|
4400
|
+
|
|
4401
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
4402
|
+
inspectRes,
|
|
4403
|
+
);
|
|
4404
|
+
}
|
|
3664
4405
|
export async function diff(
|
|
3665
4406
|
client: SuiClient,
|
|
3666
4407
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3667
4408
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
3668
|
-
const tx = new
|
|
4409
|
+
const tx = new Transaction();
|
|
3669
4410
|
builder.diff(tx, args);
|
|
3670
4411
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3671
4412
|
transactionBlock: tx,
|
|
@@ -3680,7 +4421,7 @@ export namespace u8 {
|
|
|
3680
4421
|
client: SuiClient,
|
|
3681
4422
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3682
4423
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
3683
|
-
const tx = new
|
|
4424
|
+
const tx = new Transaction();
|
|
3684
4425
|
builder.divideAndRoundUp(tx, args);
|
|
3685
4426
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3686
4427
|
transactionBlock: tx,
|
|
@@ -3695,7 +4436,7 @@ export namespace u8 {
|
|
|
3695
4436
|
client: SuiClient,
|
|
3696
4437
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3697
4438
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
3698
|
-
const tx = new
|
|
4439
|
+
const tx = new Transaction();
|
|
3699
4440
|
builder.max(tx, args);
|
|
3700
4441
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3701
4442
|
transactionBlock: tx,
|
|
@@ -3710,7 +4451,7 @@ export namespace u8 {
|
|
|
3710
4451
|
client: SuiClient,
|
|
3711
4452
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3712
4453
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
3713
|
-
const tx = new
|
|
4454
|
+
const tx = new Transaction();
|
|
3714
4455
|
builder.min(tx, args);
|
|
3715
4456
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3716
4457
|
transactionBlock: tx,
|
|
@@ -3725,7 +4466,7 @@ export namespace u8 {
|
|
|
3725
4466
|
client: SuiClient,
|
|
3726
4467
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3727
4468
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
3728
|
-
const tx = new
|
|
4469
|
+
const tx = new Transaction();
|
|
3729
4470
|
builder.pow(tx, args);
|
|
3730
4471
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3731
4472
|
transactionBlock: tx,
|
|
@@ -3740,7 +4481,7 @@ export namespace u8 {
|
|
|
3740
4481
|
client: SuiClient,
|
|
3741
4482
|
args: [number | TransactionArgument],
|
|
3742
4483
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
3743
|
-
const tx = new
|
|
4484
|
+
const tx = new Transaction();
|
|
3744
4485
|
builder.sqrt(tx, args);
|
|
3745
4486
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3746
4487
|
transactionBlock: tx,
|
|
@@ -3751,13 +4492,28 @@ export namespace u8 {
|
|
|
3751
4492
|
inspectRes,
|
|
3752
4493
|
);
|
|
3753
4494
|
}
|
|
4495
|
+
export async function toString(
|
|
4496
|
+
client: SuiClient,
|
|
4497
|
+
args: [number | TransactionArgument],
|
|
4498
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
4499
|
+
const tx = new Transaction();
|
|
4500
|
+
builder.toString(tx, args);
|
|
4501
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4502
|
+
transactionBlock: tx,
|
|
4503
|
+
sender: ZERO_ADDRESS,
|
|
4504
|
+
});
|
|
4505
|
+
|
|
4506
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
4507
|
+
inspectRes,
|
|
4508
|
+
);
|
|
4509
|
+
}
|
|
3754
4510
|
}
|
|
3755
4511
|
}
|
|
3756
4512
|
|
|
3757
4513
|
export namespace vector {
|
|
3758
4514
|
export namespace builder {
|
|
3759
4515
|
export function append<T0 = any>(
|
|
3760
|
-
tx:
|
|
4516
|
+
tx: Transaction,
|
|
3761
4517
|
args: [
|
|
3762
4518
|
string | TransactionObjectArgument | TransactionArgument,
|
|
3763
4519
|
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
@@ -3780,7 +4536,7 @@ export namespace vector {
|
|
|
3780
4536
|
});
|
|
3781
4537
|
}
|
|
3782
4538
|
export function borrow<T0 = any>(
|
|
3783
|
-
tx:
|
|
4539
|
+
tx: Transaction,
|
|
3784
4540
|
args: [
|
|
3785
4541
|
string | TransactionObjectArgument | TransactionArgument,
|
|
3786
4542
|
bigint | TransactionArgument,
|
|
@@ -3803,7 +4559,7 @@ export namespace vector {
|
|
|
3803
4559
|
});
|
|
3804
4560
|
}
|
|
3805
4561
|
export function borrowMut<T0 = any>(
|
|
3806
|
-
tx:
|
|
4562
|
+
tx: Transaction,
|
|
3807
4563
|
args: [
|
|
3808
4564
|
string | TransactionObjectArgument | TransactionArgument,
|
|
3809
4565
|
bigint | TransactionArgument,
|
|
@@ -3826,7 +4582,7 @@ export namespace vector {
|
|
|
3826
4582
|
});
|
|
3827
4583
|
}
|
|
3828
4584
|
export function contains<T0 = any>(
|
|
3829
|
-
tx:
|
|
4585
|
+
tx: Transaction,
|
|
3830
4586
|
args: [
|
|
3831
4587
|
string | TransactionObjectArgument | TransactionArgument,
|
|
3832
4588
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -3849,7 +4605,7 @@ export namespace vector {
|
|
|
3849
4605
|
});
|
|
3850
4606
|
}
|
|
3851
4607
|
export function destroyEmpty<T0 = any>(
|
|
3852
|
-
tx:
|
|
4608
|
+
tx: Transaction,
|
|
3853
4609
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
3854
4610
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
3855
4611
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -3868,7 +4624,7 @@ export namespace vector {
|
|
|
3868
4624
|
});
|
|
3869
4625
|
}
|
|
3870
4626
|
export function empty<T0 = any>(
|
|
3871
|
-
tx:
|
|
4627
|
+
tx: Transaction,
|
|
3872
4628
|
args: [],
|
|
3873
4629
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
3874
4630
|
): TransactionArgument & [] {
|
|
@@ -3885,8 +4641,27 @@ export namespace vector {
|
|
|
3885
4641
|
],
|
|
3886
4642
|
});
|
|
3887
4643
|
}
|
|
4644
|
+
export function flatten<T0 = any>(
|
|
4645
|
+
tx: Transaction,
|
|
4646
|
+
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
4647
|
+
typeArguments: [TypeDescriptor<T0> | string],
|
|
4648
|
+
): TransactionArgument & [TransactionArgument] {
|
|
4649
|
+
const _args: any[] = [];
|
|
4650
|
+
_args.push(transactionArgumentOrVec(args[0], tx));
|
|
4651
|
+
|
|
4652
|
+
// @ts-ignore
|
|
4653
|
+
return tx.moveCall({
|
|
4654
|
+
target: "0x1::vector::flatten",
|
|
4655
|
+
arguments: _args,
|
|
4656
|
+
typeArguments: [
|
|
4657
|
+
typeof typeArguments[0] === "string"
|
|
4658
|
+
? typeArguments[0]
|
|
4659
|
+
: typeArguments[0].getSignature(),
|
|
4660
|
+
],
|
|
4661
|
+
});
|
|
4662
|
+
}
|
|
3888
4663
|
export function indexOf<T0 = any>(
|
|
3889
|
-
tx:
|
|
4664
|
+
tx: Transaction,
|
|
3890
4665
|
args: [
|
|
3891
4666
|
string | TransactionObjectArgument | TransactionArgument,
|
|
3892
4667
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -3909,7 +4684,7 @@ export namespace vector {
|
|
|
3909
4684
|
});
|
|
3910
4685
|
}
|
|
3911
4686
|
export function insert<T0 = any>(
|
|
3912
|
-
tx:
|
|
4687
|
+
tx: Transaction,
|
|
3913
4688
|
args: [
|
|
3914
4689
|
string | TransactionObjectArgument | TransactionArgument,
|
|
3915
4690
|
T0 | TransactionArgument,
|
|
@@ -3935,7 +4710,7 @@ export namespace vector {
|
|
|
3935
4710
|
});
|
|
3936
4711
|
}
|
|
3937
4712
|
export function isEmpty<T0 = any>(
|
|
3938
|
-
tx:
|
|
4713
|
+
tx: Transaction,
|
|
3939
4714
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
3940
4715
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
3941
4716
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -3954,7 +4729,7 @@ export namespace vector {
|
|
|
3954
4729
|
});
|
|
3955
4730
|
}
|
|
3956
4731
|
export function length<T0 = any>(
|
|
3957
|
-
tx:
|
|
4732
|
+
tx: Transaction,
|
|
3958
4733
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
3959
4734
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
3960
4735
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -3973,7 +4748,7 @@ export namespace vector {
|
|
|
3973
4748
|
});
|
|
3974
4749
|
}
|
|
3975
4750
|
export function popBack<T0 = any>(
|
|
3976
|
-
tx:
|
|
4751
|
+
tx: Transaction,
|
|
3977
4752
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
3978
4753
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
3979
4754
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -3992,7 +4767,7 @@ export namespace vector {
|
|
|
3992
4767
|
});
|
|
3993
4768
|
}
|
|
3994
4769
|
export function pushBack<T0 = any>(
|
|
3995
|
-
tx:
|
|
4770
|
+
tx: Transaction,
|
|
3996
4771
|
args: [
|
|
3997
4772
|
string | TransactionObjectArgument | TransactionArgument,
|
|
3998
4773
|
T0 | TransactionArgument,
|
|
@@ -4015,7 +4790,7 @@ export namespace vector {
|
|
|
4015
4790
|
});
|
|
4016
4791
|
}
|
|
4017
4792
|
export function remove<T0 = any>(
|
|
4018
|
-
tx:
|
|
4793
|
+
tx: Transaction,
|
|
4019
4794
|
args: [
|
|
4020
4795
|
string | TransactionObjectArgument | TransactionArgument,
|
|
4021
4796
|
bigint | TransactionArgument,
|
|
@@ -4038,7 +4813,7 @@ export namespace vector {
|
|
|
4038
4813
|
});
|
|
4039
4814
|
}
|
|
4040
4815
|
export function reverse<T0 = any>(
|
|
4041
|
-
tx:
|
|
4816
|
+
tx: Transaction,
|
|
4042
4817
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
4043
4818
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4044
4819
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -4057,7 +4832,7 @@ export namespace vector {
|
|
|
4057
4832
|
});
|
|
4058
4833
|
}
|
|
4059
4834
|
export function singleton<T0 = any>(
|
|
4060
|
-
tx:
|
|
4835
|
+
tx: Transaction,
|
|
4061
4836
|
args: [T0 | TransactionArgument],
|
|
4062
4837
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4063
4838
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -4076,7 +4851,7 @@ export namespace vector {
|
|
|
4076
4851
|
});
|
|
4077
4852
|
}
|
|
4078
4853
|
export function swap<T0 = any>(
|
|
4079
|
-
tx:
|
|
4854
|
+
tx: Transaction,
|
|
4080
4855
|
args: [
|
|
4081
4856
|
string | TransactionObjectArgument | TransactionArgument,
|
|
4082
4857
|
bigint | TransactionArgument,
|
|
@@ -4102,7 +4877,7 @@ export namespace vector {
|
|
|
4102
4877
|
});
|
|
4103
4878
|
}
|
|
4104
4879
|
export function swapRemove<T0 = any>(
|
|
4105
|
-
tx:
|
|
4880
|
+
tx: Transaction,
|
|
4106
4881
|
args: [
|
|
4107
4882
|
string | TransactionObjectArgument | TransactionArgument,
|
|
4108
4883
|
bigint | TransactionArgument,
|
|
@@ -4134,7 +4909,7 @@ export namespace vector {
|
|
|
4134
4909
|
],
|
|
4135
4910
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4136
4911
|
): Promise<TypedDevInspectResults<[]>> {
|
|
4137
|
-
const tx = new
|
|
4912
|
+
const tx = new Transaction();
|
|
4138
4913
|
builder.append(tx, args, typeArguments);
|
|
4139
4914
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4140
4915
|
transactionBlock: tx,
|
|
@@ -4153,7 +4928,7 @@ export namespace vector {
|
|
|
4153
4928
|
],
|
|
4154
4929
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4155
4930
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
4156
|
-
const tx = new
|
|
4931
|
+
const tx = new Transaction();
|
|
4157
4932
|
builder.borrow(tx, args, typeArguments);
|
|
4158
4933
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4159
4934
|
transactionBlock: tx,
|
|
@@ -4172,7 +4947,7 @@ export namespace vector {
|
|
|
4172
4947
|
],
|
|
4173
4948
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4174
4949
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
4175
|
-
const tx = new
|
|
4950
|
+
const tx = new Transaction();
|
|
4176
4951
|
builder.borrowMut(tx, args, typeArguments);
|
|
4177
4952
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4178
4953
|
transactionBlock: tx,
|
|
@@ -4191,7 +4966,7 @@ export namespace vector {
|
|
|
4191
4966
|
],
|
|
4192
4967
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4193
4968
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
4194
|
-
const tx = new
|
|
4969
|
+
const tx = new Transaction();
|
|
4195
4970
|
builder.contains(tx, args, typeArguments);
|
|
4196
4971
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4197
4972
|
transactionBlock: tx,
|
|
@@ -4207,7 +4982,7 @@ export namespace vector {
|
|
|
4207
4982
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
4208
4983
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4209
4984
|
): Promise<TypedDevInspectResults<[]>> {
|
|
4210
|
-
const tx = new
|
|
4985
|
+
const tx = new Transaction();
|
|
4211
4986
|
builder.destroyEmpty(tx, args, typeArguments);
|
|
4212
4987
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4213
4988
|
transactionBlock: tx,
|
|
@@ -4223,7 +4998,7 @@ export namespace vector {
|
|
|
4223
4998
|
args: [],
|
|
4224
4999
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4225
5000
|
): Promise<TypedDevInspectResults<[T0[] | string]>> {
|
|
4226
|
-
const tx = new
|
|
5001
|
+
const tx = new Transaction();
|
|
4227
5002
|
builder.empty(tx, args, typeArguments);
|
|
4228
5003
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4229
5004
|
transactionBlock: tx,
|
|
@@ -4234,6 +5009,22 @@ export namespace vector {
|
|
|
4234
5009
|
[T0[] | string]
|
|
4235
5010
|
>(inspectRes);
|
|
4236
5011
|
}
|
|
5012
|
+
export async function flatten<T0 = any>(
|
|
5013
|
+
client: SuiClient,
|
|
5014
|
+
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
5015
|
+
typeArguments: [TypeDescriptor<T0> | string],
|
|
5016
|
+
): Promise<TypedDevInspectResults<[T0[] | string]>> {
|
|
5017
|
+
const tx = new Transaction();
|
|
5018
|
+
builder.flatten(tx, args, typeArguments);
|
|
5019
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5020
|
+
transactionBlock: tx,
|
|
5021
|
+
sender: ZERO_ADDRESS,
|
|
5022
|
+
});
|
|
5023
|
+
|
|
5024
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5025
|
+
[T0[] | string]
|
|
5026
|
+
>(inspectRes);
|
|
5027
|
+
}
|
|
4237
5028
|
export async function indexOf<T0 = any>(
|
|
4238
5029
|
client: SuiClient,
|
|
4239
5030
|
args: [
|
|
@@ -4242,7 +5033,7 @@ export namespace vector {
|
|
|
4242
5033
|
],
|
|
4243
5034
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4244
5035
|
): Promise<TypedDevInspectResults<[Boolean, bigint]>> {
|
|
4245
|
-
const tx = new
|
|
5036
|
+
const tx = new Transaction();
|
|
4246
5037
|
builder.indexOf(tx, args, typeArguments);
|
|
4247
5038
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4248
5039
|
transactionBlock: tx,
|
|
@@ -4262,7 +5053,7 @@ export namespace vector {
|
|
|
4262
5053
|
],
|
|
4263
5054
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4264
5055
|
): Promise<TypedDevInspectResults<[]>> {
|
|
4265
|
-
const tx = new
|
|
5056
|
+
const tx = new Transaction();
|
|
4266
5057
|
builder.insert(tx, args, typeArguments);
|
|
4267
5058
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4268
5059
|
transactionBlock: tx,
|
|
@@ -4278,7 +5069,7 @@ export namespace vector {
|
|
|
4278
5069
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
4279
5070
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4280
5071
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
4281
|
-
const tx = new
|
|
5072
|
+
const tx = new Transaction();
|
|
4282
5073
|
builder.isEmpty(tx, args, typeArguments);
|
|
4283
5074
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4284
5075
|
transactionBlock: tx,
|
|
@@ -4294,7 +5085,7 @@ export namespace vector {
|
|
|
4294
5085
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
4295
5086
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4296
5087
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4297
|
-
const tx = new
|
|
5088
|
+
const tx = new Transaction();
|
|
4298
5089
|
builder.length(tx, args, typeArguments);
|
|
4299
5090
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4300
5091
|
transactionBlock: tx,
|
|
@@ -4310,7 +5101,7 @@ export namespace vector {
|
|
|
4310
5101
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
4311
5102
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4312
5103
|
): Promise<TypedDevInspectResults<[T0]>> {
|
|
4313
|
-
const tx = new
|
|
5104
|
+
const tx = new Transaction();
|
|
4314
5105
|
builder.popBack(tx, args, typeArguments);
|
|
4315
5106
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4316
5107
|
transactionBlock: tx,
|
|
@@ -4329,7 +5120,7 @@ export namespace vector {
|
|
|
4329
5120
|
],
|
|
4330
5121
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4331
5122
|
): Promise<TypedDevInspectResults<[]>> {
|
|
4332
|
-
const tx = new
|
|
5123
|
+
const tx = new Transaction();
|
|
4333
5124
|
builder.pushBack(tx, args, typeArguments);
|
|
4334
5125
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4335
5126
|
transactionBlock: tx,
|
|
@@ -4348,7 +5139,7 @@ export namespace vector {
|
|
|
4348
5139
|
],
|
|
4349
5140
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4350
5141
|
): Promise<TypedDevInspectResults<[T0]>> {
|
|
4351
|
-
const tx = new
|
|
5142
|
+
const tx = new Transaction();
|
|
4352
5143
|
builder.remove(tx, args, typeArguments);
|
|
4353
5144
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4354
5145
|
transactionBlock: tx,
|
|
@@ -4364,7 +5155,7 @@ export namespace vector {
|
|
|
4364
5155
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
4365
5156
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4366
5157
|
): Promise<TypedDevInspectResults<[]>> {
|
|
4367
|
-
const tx = new
|
|
5158
|
+
const tx = new Transaction();
|
|
4368
5159
|
builder.reverse(tx, args, typeArguments);
|
|
4369
5160
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4370
5161
|
transactionBlock: tx,
|
|
@@ -4380,7 +5171,7 @@ export namespace vector {
|
|
|
4380
5171
|
args: [T0 | TransactionArgument],
|
|
4381
5172
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4382
5173
|
): Promise<TypedDevInspectResults<[T0[] | string]>> {
|
|
4383
|
-
const tx = new
|
|
5174
|
+
const tx = new Transaction();
|
|
4384
5175
|
builder.singleton(tx, args, typeArguments);
|
|
4385
5176
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4386
5177
|
transactionBlock: tx,
|
|
@@ -4400,7 +5191,7 @@ export namespace vector {
|
|
|
4400
5191
|
],
|
|
4401
5192
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4402
5193
|
): Promise<TypedDevInspectResults<[]>> {
|
|
4403
|
-
const tx = new
|
|
5194
|
+
const tx = new Transaction();
|
|
4404
5195
|
builder.swap(tx, args, typeArguments);
|
|
4405
5196
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4406
5197
|
transactionBlock: tx,
|
|
@@ -4419,7 +5210,7 @@ export namespace vector {
|
|
|
4419
5210
|
],
|
|
4420
5211
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4421
5212
|
): Promise<TypedDevInspectResults<[T0]>> {
|
|
4422
|
-
const tx = new
|
|
5213
|
+
const tx = new Transaction();
|
|
4423
5214
|
builder.swapRemove(tx, args, typeArguments);
|
|
4424
5215
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4425
5216
|
transactionBlock: tx,
|
|
@@ -4434,7 +5225,7 @@ export namespace vector {
|
|
|
4434
5225
|
}
|
|
4435
5226
|
|
|
4436
5227
|
const MODULES = JSON.parse(
|
|
4437
|
-
'{"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":{"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"]}}},"u16":{"fileFormatVersion":6,"address":"0x1","name":"u16","friends":[],"structs":{},"exposedFunctions":{"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"]}}},"u256":{"fileFormatVersion":6,"address":"0x1","name":"u256","friends":[],"structs":{},"exposedFunctions":{"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"]}}},"u32":{"fileFormatVersion":6,"address":"0x1","name":"u32","friends":[],"structs":{},"exposedFunctions":{"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"]}}},"u64":{"fileFormatVersion":6,"address":"0x1","name":"u64","friends":[],"structs":{},"exposedFunctions":{"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"]}}},"u8":{"fileFormatVersion":6,"address":"0x1","name":"u8","friends":[],"structs":{},"exposedFunctions":{"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"]}}},"vector":{"fileFormatVersion":6,"address":"0x1","name":"vector","friends":[],"structs":{},"exposedFunctions":{"append":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},{"Vector":{"TypeParameter":0}}],"return":[]},"borrow":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}},"U64"],"return":[{"Reference":{"TypeParameter":0}}]},"borrow_mut":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},"U64"],"return":[{"MutableReference":{"TypeParameter":0}}]},"contains":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}},{"Reference":{"TypeParameter":0}}],"return":["Bool"]},"destroy_empty":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Vector":{"TypeParameter":0}}],"return":[]},"empty":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Vector":{"TypeParameter":0}}]},"index_of":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}},{"Reference":{"TypeParameter":0}}],"return":["Bool","U64"]},"insert":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},{"TypeParameter":0},"U64"],"return":[]},"is_empty":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}}],"return":["Bool"]},"length":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}}],"return":["U64"]},"pop_back":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}}],"return":[{"TypeParameter":0}]},"push_back":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},{"TypeParameter":0}],"return":[]},"remove":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},"U64"],"return":[{"TypeParameter":0}]},"reverse":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}}],"return":[]},"singleton":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"TypeParameter":0}],"return":[{"Vector":{"TypeParameter":0}}]},"swap":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},"U64","U64"],"return":[]},"swap_remove":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},"U64"],"return":[{"TypeParameter":0}]}}}}',
|
|
5228
|
+
'{"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":[]}}]}}},"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}]}}}}',
|
|
4438
5229
|
);
|
|
4439
5230
|
|
|
4440
5231
|
export function loadAllTypes(coder: MoveCoder) {
|