@typemove/sui 1.6.2-rc.2 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/builtin/0x1.d.ts +178 -0
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js +994 -2
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x2.d.ts +535 -6
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +1300 -135
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x1.d.ts +178 -0
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js +993 -1
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +535 -6
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +1298 -133
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/package.json +2 -2
- package/src/abis/0x1.json +748 -12
- package/src/abis/0x2.json +2395 -477
- package/src/builtin/0x1.ts +1385 -1
- package/src/builtin/0x2.ts +2064 -97
package/src/builtin/0x1.ts
CHANGED
|
@@ -97,6 +97,23 @@ export namespace ascii {
|
|
|
97
97
|
arguments: _args,
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
+
export function append(
|
|
101
|
+
tx: TransactionBlock,
|
|
102
|
+
args: [
|
|
103
|
+
string | TransactionObjectArgument | TransactionArgument,
|
|
104
|
+
ascii.String | TransactionArgument,
|
|
105
|
+
],
|
|
106
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
107
|
+
const _args: any[] = [];
|
|
108
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
109
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
110
|
+
|
|
111
|
+
// @ts-ignore
|
|
112
|
+
return tx.moveCall({
|
|
113
|
+
target: "0x1::ascii::append",
|
|
114
|
+
arguments: _args,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
100
117
|
export function asBytes(
|
|
101
118
|
tx: TransactionBlock,
|
|
102
119
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
@@ -136,6 +153,43 @@ export namespace ascii {
|
|
|
136
153
|
arguments: _args,
|
|
137
154
|
});
|
|
138
155
|
}
|
|
156
|
+
export function indexOf(
|
|
157
|
+
tx: TransactionBlock,
|
|
158
|
+
args: [
|
|
159
|
+
string | TransactionObjectArgument | TransactionArgument,
|
|
160
|
+
string | TransactionObjectArgument | TransactionArgument,
|
|
161
|
+
],
|
|
162
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
163
|
+
const _args: any[] = [];
|
|
164
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
165
|
+
_args.push(transactionArgumentOrObject(args[1], tx));
|
|
166
|
+
|
|
167
|
+
// @ts-ignore
|
|
168
|
+
return tx.moveCall({
|
|
169
|
+
target: "0x1::ascii::index_of",
|
|
170
|
+
arguments: _args,
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
export function insert(
|
|
174
|
+
tx: TransactionBlock,
|
|
175
|
+
args: [
|
|
176
|
+
string | TransactionObjectArgument | TransactionArgument,
|
|
177
|
+
bigint | TransactionArgument,
|
|
178
|
+
ascii.String | TransactionArgument,
|
|
179
|
+
],
|
|
180
|
+
): TransactionArgument &
|
|
181
|
+
[TransactionArgument, TransactionArgument, TransactionArgument] {
|
|
182
|
+
const _args: any[] = [];
|
|
183
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
184
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
185
|
+
_args.push(transactionArgumentOrPure(args[2], tx));
|
|
186
|
+
|
|
187
|
+
// @ts-ignore
|
|
188
|
+
return tx.moveCall({
|
|
189
|
+
target: "0x1::ascii::insert",
|
|
190
|
+
arguments: _args,
|
|
191
|
+
});
|
|
192
|
+
}
|
|
139
193
|
export function intoBytes(
|
|
140
194
|
tx: TransactionBlock,
|
|
141
195
|
args: [ascii.String | TransactionArgument],
|
|
@@ -149,6 +203,19 @@ export namespace ascii {
|
|
|
149
203
|
arguments: _args,
|
|
150
204
|
});
|
|
151
205
|
}
|
|
206
|
+
export function isEmpty(
|
|
207
|
+
tx: TransactionBlock,
|
|
208
|
+
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
209
|
+
): TransactionArgument & [TransactionArgument] {
|
|
210
|
+
const _args: any[] = [];
|
|
211
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
212
|
+
|
|
213
|
+
// @ts-ignore
|
|
214
|
+
return tx.moveCall({
|
|
215
|
+
target: "0x1::ascii::is_empty",
|
|
216
|
+
arguments: _args,
|
|
217
|
+
});
|
|
218
|
+
}
|
|
152
219
|
export function isPrintableChar(
|
|
153
220
|
tx: TransactionBlock,
|
|
154
221
|
args: [number | TransactionArgument],
|
|
@@ -231,6 +298,52 @@ export namespace ascii {
|
|
|
231
298
|
arguments: _args,
|
|
232
299
|
});
|
|
233
300
|
}
|
|
301
|
+
export function substring(
|
|
302
|
+
tx: TransactionBlock,
|
|
303
|
+
args: [
|
|
304
|
+
string | TransactionObjectArgument | TransactionArgument,
|
|
305
|
+
bigint | TransactionArgument,
|
|
306
|
+
bigint | TransactionArgument,
|
|
307
|
+
],
|
|
308
|
+
): TransactionArgument &
|
|
309
|
+
[TransactionArgument, TransactionArgument, TransactionArgument] {
|
|
310
|
+
const _args: any[] = [];
|
|
311
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
312
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
313
|
+
_args.push(transactionArgumentOrPure(args[2], tx));
|
|
314
|
+
|
|
315
|
+
// @ts-ignore
|
|
316
|
+
return tx.moveCall({
|
|
317
|
+
target: "0x1::ascii::substring",
|
|
318
|
+
arguments: _args,
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
export function toLowercase(
|
|
322
|
+
tx: TransactionBlock,
|
|
323
|
+
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
324
|
+
): TransactionArgument & [TransactionArgument] {
|
|
325
|
+
const _args: any[] = [];
|
|
326
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
327
|
+
|
|
328
|
+
// @ts-ignore
|
|
329
|
+
return tx.moveCall({
|
|
330
|
+
target: "0x1::ascii::to_lowercase",
|
|
331
|
+
arguments: _args,
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
export function toUppercase(
|
|
335
|
+
tx: TransactionBlock,
|
|
336
|
+
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
337
|
+
): TransactionArgument & [TransactionArgument] {
|
|
338
|
+
const _args: any[] = [];
|
|
339
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
340
|
+
|
|
341
|
+
// @ts-ignore
|
|
342
|
+
return tx.moveCall({
|
|
343
|
+
target: "0x1::ascii::to_uppercase",
|
|
344
|
+
arguments: _args,
|
|
345
|
+
});
|
|
346
|
+
}
|
|
234
347
|
export function tryString(
|
|
235
348
|
tx: TransactionBlock,
|
|
236
349
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
@@ -261,6 +374,24 @@ export namespace ascii {
|
|
|
261
374
|
inspectRes,
|
|
262
375
|
);
|
|
263
376
|
}
|
|
377
|
+
export async function append(
|
|
378
|
+
client: SuiClient,
|
|
379
|
+
args: [
|
|
380
|
+
string | TransactionObjectArgument | TransactionArgument,
|
|
381
|
+
ascii.String | TransactionArgument,
|
|
382
|
+
],
|
|
383
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
384
|
+
const tx = new TransactionBlock();
|
|
385
|
+
builder.append(tx, args);
|
|
386
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
387
|
+
transactionBlock: tx,
|
|
388
|
+
sender: ZERO_ADDRESS,
|
|
389
|
+
});
|
|
390
|
+
|
|
391
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
392
|
+
inspectRes,
|
|
393
|
+
);
|
|
394
|
+
}
|
|
264
395
|
export async function asBytes(
|
|
265
396
|
client: SuiClient,
|
|
266
397
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
@@ -306,6 +437,43 @@ export namespace ascii {
|
|
|
306
437
|
inspectRes,
|
|
307
438
|
);
|
|
308
439
|
}
|
|
440
|
+
export async function indexOf(
|
|
441
|
+
client: SuiClient,
|
|
442
|
+
args: [
|
|
443
|
+
string | TransactionObjectArgument | TransactionArgument,
|
|
444
|
+
string | TransactionObjectArgument | TransactionArgument,
|
|
445
|
+
],
|
|
446
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
447
|
+
const tx = new TransactionBlock();
|
|
448
|
+
builder.indexOf(tx, args);
|
|
449
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
450
|
+
transactionBlock: tx,
|
|
451
|
+
sender: ZERO_ADDRESS,
|
|
452
|
+
});
|
|
453
|
+
|
|
454
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
455
|
+
inspectRes,
|
|
456
|
+
);
|
|
457
|
+
}
|
|
458
|
+
export async function insert(
|
|
459
|
+
client: SuiClient,
|
|
460
|
+
args: [
|
|
461
|
+
string | TransactionObjectArgument | TransactionArgument,
|
|
462
|
+
bigint | TransactionArgument,
|
|
463
|
+
ascii.String | TransactionArgument,
|
|
464
|
+
],
|
|
465
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
466
|
+
const tx = new TransactionBlock();
|
|
467
|
+
builder.insert(tx, args);
|
|
468
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
469
|
+
transactionBlock: tx,
|
|
470
|
+
sender: ZERO_ADDRESS,
|
|
471
|
+
});
|
|
472
|
+
|
|
473
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
474
|
+
inspectRes,
|
|
475
|
+
);
|
|
476
|
+
}
|
|
309
477
|
export async function intoBytes(
|
|
310
478
|
client: SuiClient,
|
|
311
479
|
args: [ascii.String | TransactionArgument],
|
|
@@ -321,6 +489,21 @@ export namespace ascii {
|
|
|
321
489
|
inspectRes,
|
|
322
490
|
);
|
|
323
491
|
}
|
|
492
|
+
export async function isEmpty(
|
|
493
|
+
client: SuiClient,
|
|
494
|
+
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
495
|
+
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
496
|
+
const tx = new TransactionBlock();
|
|
497
|
+
builder.isEmpty(tx, args);
|
|
498
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
499
|
+
transactionBlock: tx,
|
|
500
|
+
sender: ZERO_ADDRESS,
|
|
501
|
+
});
|
|
502
|
+
|
|
503
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
504
|
+
inspectRes,
|
|
505
|
+
);
|
|
506
|
+
}
|
|
324
507
|
export async function isPrintableChar(
|
|
325
508
|
client: SuiClient,
|
|
326
509
|
args: [number | TransactionArgument],
|
|
@@ -414,6 +597,55 @@ export namespace ascii {
|
|
|
414
597
|
[ascii.String]
|
|
415
598
|
>(inspectRes);
|
|
416
599
|
}
|
|
600
|
+
export async function substring(
|
|
601
|
+
client: SuiClient,
|
|
602
|
+
args: [
|
|
603
|
+
string | TransactionObjectArgument | TransactionArgument,
|
|
604
|
+
bigint | TransactionArgument,
|
|
605
|
+
bigint | TransactionArgument,
|
|
606
|
+
],
|
|
607
|
+
): Promise<TypedDevInspectResults<[ascii.String]>> {
|
|
608
|
+
const tx = new TransactionBlock();
|
|
609
|
+
builder.substring(tx, args);
|
|
610
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
611
|
+
transactionBlock: tx,
|
|
612
|
+
sender: ZERO_ADDRESS,
|
|
613
|
+
});
|
|
614
|
+
|
|
615
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
616
|
+
[ascii.String]
|
|
617
|
+
>(inspectRes);
|
|
618
|
+
}
|
|
619
|
+
export async function toLowercase(
|
|
620
|
+
client: SuiClient,
|
|
621
|
+
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
622
|
+
): Promise<TypedDevInspectResults<[ascii.String]>> {
|
|
623
|
+
const tx = new TransactionBlock();
|
|
624
|
+
builder.toLowercase(tx, args);
|
|
625
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
626
|
+
transactionBlock: tx,
|
|
627
|
+
sender: ZERO_ADDRESS,
|
|
628
|
+
});
|
|
629
|
+
|
|
630
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
631
|
+
[ascii.String]
|
|
632
|
+
>(inspectRes);
|
|
633
|
+
}
|
|
634
|
+
export async function toUppercase(
|
|
635
|
+
client: SuiClient,
|
|
636
|
+
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
637
|
+
): Promise<TypedDevInspectResults<[ascii.String]>> {
|
|
638
|
+
const tx = new TransactionBlock();
|
|
639
|
+
builder.toUppercase(tx, args);
|
|
640
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
641
|
+
transactionBlock: tx,
|
|
642
|
+
sender: ZERO_ADDRESS,
|
|
643
|
+
});
|
|
644
|
+
|
|
645
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
646
|
+
[ascii.String]
|
|
647
|
+
>(inspectRes);
|
|
648
|
+
}
|
|
417
649
|
export async function tryString(
|
|
418
650
|
client: SuiClient,
|
|
419
651
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
@@ -1074,6 +1306,11 @@ export namespace hash {
|
|
|
1074
1306
|
}
|
|
1075
1307
|
}
|
|
1076
1308
|
|
|
1309
|
+
export namespace macros {
|
|
1310
|
+
export namespace builder {}
|
|
1311
|
+
export namespace view {}
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1077
1314
|
export namespace option {
|
|
1078
1315
|
export type Option<T> = T | undefined;
|
|
1079
1316
|
export namespace Option {
|
|
@@ -1786,6 +2023,19 @@ export namespace string_ {
|
|
|
1786
2023
|
arguments: _args,
|
|
1787
2024
|
});
|
|
1788
2025
|
}
|
|
2026
|
+
export function asBytes(
|
|
2027
|
+
tx: TransactionBlock,
|
|
2028
|
+
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
2029
|
+
): TransactionArgument & [TransactionArgument] {
|
|
2030
|
+
const _args: any[] = [];
|
|
2031
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
2032
|
+
|
|
2033
|
+
// @ts-ignore
|
|
2034
|
+
return tx.moveCall({
|
|
2035
|
+
target: "0x1::string::as_bytes",
|
|
2036
|
+
arguments: _args,
|
|
2037
|
+
});
|
|
2038
|
+
}
|
|
1789
2039
|
export function bytes(
|
|
1790
2040
|
tx: TransactionBlock,
|
|
1791
2041
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
@@ -1849,6 +2099,19 @@ export namespace string_ {
|
|
|
1849
2099
|
arguments: _args,
|
|
1850
2100
|
});
|
|
1851
2101
|
}
|
|
2102
|
+
export function intoBytes(
|
|
2103
|
+
tx: TransactionBlock,
|
|
2104
|
+
args: [string | TransactionArgument],
|
|
2105
|
+
): TransactionArgument & [TransactionArgument] {
|
|
2106
|
+
const _args: any[] = [];
|
|
2107
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2108
|
+
|
|
2109
|
+
// @ts-ignore
|
|
2110
|
+
return tx.moveCall({
|
|
2111
|
+
target: "0x1::string::into_bytes",
|
|
2112
|
+
arguments: _args,
|
|
2113
|
+
});
|
|
2114
|
+
}
|
|
1852
2115
|
export function isEmpty(
|
|
1853
2116
|
tx: TransactionBlock,
|
|
1854
2117
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
@@ -1895,6 +2158,26 @@ export namespace string_ {
|
|
|
1895
2158
|
arguments: _args,
|
|
1896
2159
|
});
|
|
1897
2160
|
}
|
|
2161
|
+
export function substring(
|
|
2162
|
+
tx: TransactionBlock,
|
|
2163
|
+
args: [
|
|
2164
|
+
string | TransactionObjectArgument | TransactionArgument,
|
|
2165
|
+
bigint | TransactionArgument,
|
|
2166
|
+
bigint | TransactionArgument,
|
|
2167
|
+
],
|
|
2168
|
+
): TransactionArgument &
|
|
2169
|
+
[TransactionArgument, TransactionArgument, TransactionArgument] {
|
|
2170
|
+
const _args: any[] = [];
|
|
2171
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
2172
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
2173
|
+
_args.push(transactionArgumentOrPure(args[2], tx));
|
|
2174
|
+
|
|
2175
|
+
// @ts-ignore
|
|
2176
|
+
return tx.moveCall({
|
|
2177
|
+
target: "0x1::string::substring",
|
|
2178
|
+
arguments: _args,
|
|
2179
|
+
});
|
|
2180
|
+
}
|
|
1898
2181
|
export function toAscii(
|
|
1899
2182
|
tx: TransactionBlock,
|
|
1900
2183
|
args: [string | TransactionArgument],
|
|
@@ -1972,6 +2255,21 @@ export namespace string_ {
|
|
|
1972
2255
|
inspectRes,
|
|
1973
2256
|
);
|
|
1974
2257
|
}
|
|
2258
|
+
export async function asBytes(
|
|
2259
|
+
client: SuiClient,
|
|
2260
|
+
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
2261
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
2262
|
+
const tx = new TransactionBlock();
|
|
2263
|
+
builder.asBytes(tx, args);
|
|
2264
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2265
|
+
transactionBlock: tx,
|
|
2266
|
+
sender: ZERO_ADDRESS,
|
|
2267
|
+
});
|
|
2268
|
+
|
|
2269
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
2270
|
+
inspectRes,
|
|
2271
|
+
);
|
|
2272
|
+
}
|
|
1975
2273
|
export async function bytes(
|
|
1976
2274
|
client: SuiClient,
|
|
1977
2275
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
@@ -2039,6 +2337,21 @@ export namespace string_ {
|
|
|
2039
2337
|
inspectRes,
|
|
2040
2338
|
);
|
|
2041
2339
|
}
|
|
2340
|
+
export async function intoBytes(
|
|
2341
|
+
client: SuiClient,
|
|
2342
|
+
args: [string | TransactionArgument],
|
|
2343
|
+
): Promise<TypedDevInspectResults<[number[]]>> {
|
|
2344
|
+
const tx = new TransactionBlock();
|
|
2345
|
+
builder.intoBytes(tx, args);
|
|
2346
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2347
|
+
transactionBlock: tx,
|
|
2348
|
+
sender: ZERO_ADDRESS,
|
|
2349
|
+
});
|
|
2350
|
+
|
|
2351
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number[]]>(
|
|
2352
|
+
inspectRes,
|
|
2353
|
+
);
|
|
2354
|
+
}
|
|
2042
2355
|
export async function isEmpty(
|
|
2043
2356
|
client: SuiClient,
|
|
2044
2357
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
@@ -2088,6 +2401,25 @@ export namespace string_ {
|
|
|
2088
2401
|
inspectRes,
|
|
2089
2402
|
);
|
|
2090
2403
|
}
|
|
2404
|
+
export async function substring(
|
|
2405
|
+
client: SuiClient,
|
|
2406
|
+
args: [
|
|
2407
|
+
string | TransactionObjectArgument | TransactionArgument,
|
|
2408
|
+
bigint | TransactionArgument,
|
|
2409
|
+
bigint | TransactionArgument,
|
|
2410
|
+
],
|
|
2411
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
2412
|
+
const tx = new TransactionBlock();
|
|
2413
|
+
builder.substring(tx, args);
|
|
2414
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2415
|
+
transactionBlock: tx,
|
|
2416
|
+
sender: ZERO_ADDRESS,
|
|
2417
|
+
});
|
|
2418
|
+
|
|
2419
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
2420
|
+
inspectRes,
|
|
2421
|
+
);
|
|
2422
|
+
}
|
|
2091
2423
|
export async function toAscii(
|
|
2092
2424
|
client: SuiClient,
|
|
2093
2425
|
args: [string | TransactionArgument],
|
|
@@ -2370,6 +2702,1058 @@ export namespace type_name {
|
|
|
2370
2702
|
}
|
|
2371
2703
|
}
|
|
2372
2704
|
|
|
2705
|
+
export namespace u128 {
|
|
2706
|
+
export namespace builder {
|
|
2707
|
+
export function diff(
|
|
2708
|
+
tx: TransactionBlock,
|
|
2709
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2710
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2711
|
+
const _args: any[] = [];
|
|
2712
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2713
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
2714
|
+
|
|
2715
|
+
// @ts-ignore
|
|
2716
|
+
return tx.moveCall({
|
|
2717
|
+
target: "0x1::u128::diff",
|
|
2718
|
+
arguments: _args,
|
|
2719
|
+
});
|
|
2720
|
+
}
|
|
2721
|
+
export function divideAndRoundUp(
|
|
2722
|
+
tx: TransactionBlock,
|
|
2723
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2724
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2725
|
+
const _args: any[] = [];
|
|
2726
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2727
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
2728
|
+
|
|
2729
|
+
// @ts-ignore
|
|
2730
|
+
return tx.moveCall({
|
|
2731
|
+
target: "0x1::u128::divide_and_round_up",
|
|
2732
|
+
arguments: _args,
|
|
2733
|
+
});
|
|
2734
|
+
}
|
|
2735
|
+
export function max(
|
|
2736
|
+
tx: TransactionBlock,
|
|
2737
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2738
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2739
|
+
const _args: any[] = [];
|
|
2740
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2741
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
2742
|
+
|
|
2743
|
+
// @ts-ignore
|
|
2744
|
+
return tx.moveCall({
|
|
2745
|
+
target: "0x1::u128::max",
|
|
2746
|
+
arguments: _args,
|
|
2747
|
+
});
|
|
2748
|
+
}
|
|
2749
|
+
export function min(
|
|
2750
|
+
tx: TransactionBlock,
|
|
2751
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2752
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2753
|
+
const _args: any[] = [];
|
|
2754
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2755
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
2756
|
+
|
|
2757
|
+
// @ts-ignore
|
|
2758
|
+
return tx.moveCall({
|
|
2759
|
+
target: "0x1::u128::min",
|
|
2760
|
+
arguments: _args,
|
|
2761
|
+
});
|
|
2762
|
+
}
|
|
2763
|
+
export function pow(
|
|
2764
|
+
tx: TransactionBlock,
|
|
2765
|
+
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
2766
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2767
|
+
const _args: any[] = [];
|
|
2768
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2769
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
2770
|
+
|
|
2771
|
+
// @ts-ignore
|
|
2772
|
+
return tx.moveCall({
|
|
2773
|
+
target: "0x1::u128::pow",
|
|
2774
|
+
arguments: _args,
|
|
2775
|
+
});
|
|
2776
|
+
}
|
|
2777
|
+
export function sqrt(
|
|
2778
|
+
tx: TransactionBlock,
|
|
2779
|
+
args: [bigint | TransactionArgument],
|
|
2780
|
+
): TransactionArgument & [TransactionArgument] {
|
|
2781
|
+
const _args: any[] = [];
|
|
2782
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2783
|
+
|
|
2784
|
+
// @ts-ignore
|
|
2785
|
+
return tx.moveCall({
|
|
2786
|
+
target: "0x1::u128::sqrt",
|
|
2787
|
+
arguments: _args,
|
|
2788
|
+
});
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
export namespace view {
|
|
2792
|
+
export async function diff(
|
|
2793
|
+
client: SuiClient,
|
|
2794
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2795
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
2796
|
+
const tx = new TransactionBlock();
|
|
2797
|
+
builder.diff(tx, args);
|
|
2798
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2799
|
+
transactionBlock: tx,
|
|
2800
|
+
sender: ZERO_ADDRESS,
|
|
2801
|
+
});
|
|
2802
|
+
|
|
2803
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
2804
|
+
inspectRes,
|
|
2805
|
+
);
|
|
2806
|
+
}
|
|
2807
|
+
export async function divideAndRoundUp(
|
|
2808
|
+
client: SuiClient,
|
|
2809
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2810
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
2811
|
+
const tx = new TransactionBlock();
|
|
2812
|
+
builder.divideAndRoundUp(tx, args);
|
|
2813
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2814
|
+
transactionBlock: tx,
|
|
2815
|
+
sender: ZERO_ADDRESS,
|
|
2816
|
+
});
|
|
2817
|
+
|
|
2818
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
2819
|
+
inspectRes,
|
|
2820
|
+
);
|
|
2821
|
+
}
|
|
2822
|
+
export async function max(
|
|
2823
|
+
client: SuiClient,
|
|
2824
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2825
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
2826
|
+
const tx = new TransactionBlock();
|
|
2827
|
+
builder.max(tx, args);
|
|
2828
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2829
|
+
transactionBlock: tx,
|
|
2830
|
+
sender: ZERO_ADDRESS,
|
|
2831
|
+
});
|
|
2832
|
+
|
|
2833
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
2834
|
+
inspectRes,
|
|
2835
|
+
);
|
|
2836
|
+
}
|
|
2837
|
+
export async function min(
|
|
2838
|
+
client: SuiClient,
|
|
2839
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2840
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
2841
|
+
const tx = new TransactionBlock();
|
|
2842
|
+
builder.min(tx, args);
|
|
2843
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2844
|
+
transactionBlock: tx,
|
|
2845
|
+
sender: ZERO_ADDRESS,
|
|
2846
|
+
});
|
|
2847
|
+
|
|
2848
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
2849
|
+
inspectRes,
|
|
2850
|
+
);
|
|
2851
|
+
}
|
|
2852
|
+
export async function pow(
|
|
2853
|
+
client: SuiClient,
|
|
2854
|
+
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
2855
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
2856
|
+
const tx = new TransactionBlock();
|
|
2857
|
+
builder.pow(tx, args);
|
|
2858
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2859
|
+
transactionBlock: tx,
|
|
2860
|
+
sender: ZERO_ADDRESS,
|
|
2861
|
+
});
|
|
2862
|
+
|
|
2863
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
2864
|
+
inspectRes,
|
|
2865
|
+
);
|
|
2866
|
+
}
|
|
2867
|
+
export async function sqrt(
|
|
2868
|
+
client: SuiClient,
|
|
2869
|
+
args: [bigint | TransactionArgument],
|
|
2870
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
2871
|
+
const tx = new TransactionBlock();
|
|
2872
|
+
builder.sqrt(tx, args);
|
|
2873
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2874
|
+
transactionBlock: tx,
|
|
2875
|
+
sender: ZERO_ADDRESS,
|
|
2876
|
+
});
|
|
2877
|
+
|
|
2878
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
2879
|
+
inspectRes,
|
|
2880
|
+
);
|
|
2881
|
+
}
|
|
2882
|
+
}
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2885
|
+
export namespace u16 {
|
|
2886
|
+
export namespace builder {
|
|
2887
|
+
export function diff(
|
|
2888
|
+
tx: TransactionBlock,
|
|
2889
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
2890
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2891
|
+
const _args: any[] = [];
|
|
2892
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2893
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
2894
|
+
|
|
2895
|
+
// @ts-ignore
|
|
2896
|
+
return tx.moveCall({
|
|
2897
|
+
target: "0x1::u16::diff",
|
|
2898
|
+
arguments: _args,
|
|
2899
|
+
});
|
|
2900
|
+
}
|
|
2901
|
+
export function divideAndRoundUp(
|
|
2902
|
+
tx: TransactionBlock,
|
|
2903
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
2904
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2905
|
+
const _args: any[] = [];
|
|
2906
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2907
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
2908
|
+
|
|
2909
|
+
// @ts-ignore
|
|
2910
|
+
return tx.moveCall({
|
|
2911
|
+
target: "0x1::u16::divide_and_round_up",
|
|
2912
|
+
arguments: _args,
|
|
2913
|
+
});
|
|
2914
|
+
}
|
|
2915
|
+
export function max(
|
|
2916
|
+
tx: TransactionBlock,
|
|
2917
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
2918
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2919
|
+
const _args: any[] = [];
|
|
2920
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2921
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
2922
|
+
|
|
2923
|
+
// @ts-ignore
|
|
2924
|
+
return tx.moveCall({
|
|
2925
|
+
target: "0x1::u16::max",
|
|
2926
|
+
arguments: _args,
|
|
2927
|
+
});
|
|
2928
|
+
}
|
|
2929
|
+
export function min(
|
|
2930
|
+
tx: TransactionBlock,
|
|
2931
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
2932
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2933
|
+
const _args: any[] = [];
|
|
2934
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2935
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
2936
|
+
|
|
2937
|
+
// @ts-ignore
|
|
2938
|
+
return tx.moveCall({
|
|
2939
|
+
target: "0x1::u16::min",
|
|
2940
|
+
arguments: _args,
|
|
2941
|
+
});
|
|
2942
|
+
}
|
|
2943
|
+
export function pow(
|
|
2944
|
+
tx: TransactionBlock,
|
|
2945
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
2946
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2947
|
+
const _args: any[] = [];
|
|
2948
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2949
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
2950
|
+
|
|
2951
|
+
// @ts-ignore
|
|
2952
|
+
return tx.moveCall({
|
|
2953
|
+
target: "0x1::u16::pow",
|
|
2954
|
+
arguments: _args,
|
|
2955
|
+
});
|
|
2956
|
+
}
|
|
2957
|
+
export function sqrt(
|
|
2958
|
+
tx: TransactionBlock,
|
|
2959
|
+
args: [number | TransactionArgument],
|
|
2960
|
+
): TransactionArgument & [TransactionArgument] {
|
|
2961
|
+
const _args: any[] = [];
|
|
2962
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
2963
|
+
|
|
2964
|
+
// @ts-ignore
|
|
2965
|
+
return tx.moveCall({
|
|
2966
|
+
target: "0x1::u16::sqrt",
|
|
2967
|
+
arguments: _args,
|
|
2968
|
+
});
|
|
2969
|
+
}
|
|
2970
|
+
}
|
|
2971
|
+
export namespace view {
|
|
2972
|
+
export async function diff(
|
|
2973
|
+
client: SuiClient,
|
|
2974
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
2975
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
2976
|
+
const tx = new TransactionBlock();
|
|
2977
|
+
builder.diff(tx, args);
|
|
2978
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2979
|
+
transactionBlock: tx,
|
|
2980
|
+
sender: ZERO_ADDRESS,
|
|
2981
|
+
});
|
|
2982
|
+
|
|
2983
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
2984
|
+
inspectRes,
|
|
2985
|
+
);
|
|
2986
|
+
}
|
|
2987
|
+
export async function divideAndRoundUp(
|
|
2988
|
+
client: SuiClient,
|
|
2989
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
2990
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
2991
|
+
const tx = new TransactionBlock();
|
|
2992
|
+
builder.divideAndRoundUp(tx, args);
|
|
2993
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2994
|
+
transactionBlock: tx,
|
|
2995
|
+
sender: ZERO_ADDRESS,
|
|
2996
|
+
});
|
|
2997
|
+
|
|
2998
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
2999
|
+
inspectRes,
|
|
3000
|
+
);
|
|
3001
|
+
}
|
|
3002
|
+
export async function max(
|
|
3003
|
+
client: SuiClient,
|
|
3004
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3005
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3006
|
+
const tx = new TransactionBlock();
|
|
3007
|
+
builder.max(tx, args);
|
|
3008
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3009
|
+
transactionBlock: tx,
|
|
3010
|
+
sender: ZERO_ADDRESS,
|
|
3011
|
+
});
|
|
3012
|
+
|
|
3013
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3014
|
+
inspectRes,
|
|
3015
|
+
);
|
|
3016
|
+
}
|
|
3017
|
+
export async function min(
|
|
3018
|
+
client: SuiClient,
|
|
3019
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3020
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3021
|
+
const tx = new TransactionBlock();
|
|
3022
|
+
builder.min(tx, args);
|
|
3023
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3024
|
+
transactionBlock: tx,
|
|
3025
|
+
sender: ZERO_ADDRESS,
|
|
3026
|
+
});
|
|
3027
|
+
|
|
3028
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3029
|
+
inspectRes,
|
|
3030
|
+
);
|
|
3031
|
+
}
|
|
3032
|
+
export async function pow(
|
|
3033
|
+
client: SuiClient,
|
|
3034
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3035
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3036
|
+
const tx = new TransactionBlock();
|
|
3037
|
+
builder.pow(tx, args);
|
|
3038
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3039
|
+
transactionBlock: tx,
|
|
3040
|
+
sender: ZERO_ADDRESS,
|
|
3041
|
+
});
|
|
3042
|
+
|
|
3043
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3044
|
+
inspectRes,
|
|
3045
|
+
);
|
|
3046
|
+
}
|
|
3047
|
+
export async function sqrt(
|
|
3048
|
+
client: SuiClient,
|
|
3049
|
+
args: [number | TransactionArgument],
|
|
3050
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3051
|
+
const tx = new TransactionBlock();
|
|
3052
|
+
builder.sqrt(tx, args);
|
|
3053
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3054
|
+
transactionBlock: tx,
|
|
3055
|
+
sender: ZERO_ADDRESS,
|
|
3056
|
+
});
|
|
3057
|
+
|
|
3058
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3059
|
+
inspectRes,
|
|
3060
|
+
);
|
|
3061
|
+
}
|
|
3062
|
+
}
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
export namespace u256 {
|
|
3066
|
+
export namespace builder {
|
|
3067
|
+
export function diff(
|
|
3068
|
+
tx: TransactionBlock,
|
|
3069
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3070
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3071
|
+
const _args: any[] = [];
|
|
3072
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3073
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3074
|
+
|
|
3075
|
+
// @ts-ignore
|
|
3076
|
+
return tx.moveCall({
|
|
3077
|
+
target: "0x1::u256::diff",
|
|
3078
|
+
arguments: _args,
|
|
3079
|
+
});
|
|
3080
|
+
}
|
|
3081
|
+
export function divideAndRoundUp(
|
|
3082
|
+
tx: TransactionBlock,
|
|
3083
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3084
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3085
|
+
const _args: any[] = [];
|
|
3086
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3087
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3088
|
+
|
|
3089
|
+
// @ts-ignore
|
|
3090
|
+
return tx.moveCall({
|
|
3091
|
+
target: "0x1::u256::divide_and_round_up",
|
|
3092
|
+
arguments: _args,
|
|
3093
|
+
});
|
|
3094
|
+
}
|
|
3095
|
+
export function max(
|
|
3096
|
+
tx: TransactionBlock,
|
|
3097
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3098
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3099
|
+
const _args: any[] = [];
|
|
3100
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3101
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3102
|
+
|
|
3103
|
+
// @ts-ignore
|
|
3104
|
+
return tx.moveCall({
|
|
3105
|
+
target: "0x1::u256::max",
|
|
3106
|
+
arguments: _args,
|
|
3107
|
+
});
|
|
3108
|
+
}
|
|
3109
|
+
export function min(
|
|
3110
|
+
tx: TransactionBlock,
|
|
3111
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3112
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3113
|
+
const _args: any[] = [];
|
|
3114
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3115
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3116
|
+
|
|
3117
|
+
// @ts-ignore
|
|
3118
|
+
return tx.moveCall({
|
|
3119
|
+
target: "0x1::u256::min",
|
|
3120
|
+
arguments: _args,
|
|
3121
|
+
});
|
|
3122
|
+
}
|
|
3123
|
+
export function pow(
|
|
3124
|
+
tx: TransactionBlock,
|
|
3125
|
+
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
3126
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3127
|
+
const _args: any[] = [];
|
|
3128
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3129
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3130
|
+
|
|
3131
|
+
// @ts-ignore
|
|
3132
|
+
return tx.moveCall({
|
|
3133
|
+
target: "0x1::u256::pow",
|
|
3134
|
+
arguments: _args,
|
|
3135
|
+
});
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3138
|
+
export namespace view {
|
|
3139
|
+
export async function diff(
|
|
3140
|
+
client: SuiClient,
|
|
3141
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3142
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3143
|
+
const tx = new TransactionBlock();
|
|
3144
|
+
builder.diff(tx, args);
|
|
3145
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3146
|
+
transactionBlock: tx,
|
|
3147
|
+
sender: ZERO_ADDRESS,
|
|
3148
|
+
});
|
|
3149
|
+
|
|
3150
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3151
|
+
inspectRes,
|
|
3152
|
+
);
|
|
3153
|
+
}
|
|
3154
|
+
export async function divideAndRoundUp(
|
|
3155
|
+
client: SuiClient,
|
|
3156
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3157
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3158
|
+
const tx = new TransactionBlock();
|
|
3159
|
+
builder.divideAndRoundUp(tx, args);
|
|
3160
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3161
|
+
transactionBlock: tx,
|
|
3162
|
+
sender: ZERO_ADDRESS,
|
|
3163
|
+
});
|
|
3164
|
+
|
|
3165
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3166
|
+
inspectRes,
|
|
3167
|
+
);
|
|
3168
|
+
}
|
|
3169
|
+
export async function max(
|
|
3170
|
+
client: SuiClient,
|
|
3171
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3172
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3173
|
+
const tx = new TransactionBlock();
|
|
3174
|
+
builder.max(tx, args);
|
|
3175
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3176
|
+
transactionBlock: tx,
|
|
3177
|
+
sender: ZERO_ADDRESS,
|
|
3178
|
+
});
|
|
3179
|
+
|
|
3180
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3181
|
+
inspectRes,
|
|
3182
|
+
);
|
|
3183
|
+
}
|
|
3184
|
+
export async function min(
|
|
3185
|
+
client: SuiClient,
|
|
3186
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3187
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3188
|
+
const tx = new TransactionBlock();
|
|
3189
|
+
builder.min(tx, args);
|
|
3190
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3191
|
+
transactionBlock: tx,
|
|
3192
|
+
sender: ZERO_ADDRESS,
|
|
3193
|
+
});
|
|
3194
|
+
|
|
3195
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3196
|
+
inspectRes,
|
|
3197
|
+
);
|
|
3198
|
+
}
|
|
3199
|
+
export async function pow(
|
|
3200
|
+
client: SuiClient,
|
|
3201
|
+
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
3202
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3203
|
+
const tx = new TransactionBlock();
|
|
3204
|
+
builder.pow(tx, args);
|
|
3205
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3206
|
+
transactionBlock: tx,
|
|
3207
|
+
sender: ZERO_ADDRESS,
|
|
3208
|
+
});
|
|
3209
|
+
|
|
3210
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3211
|
+
inspectRes,
|
|
3212
|
+
);
|
|
3213
|
+
}
|
|
3214
|
+
}
|
|
3215
|
+
}
|
|
3216
|
+
|
|
3217
|
+
export namespace u32 {
|
|
3218
|
+
export namespace builder {
|
|
3219
|
+
export function diff(
|
|
3220
|
+
tx: TransactionBlock,
|
|
3221
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3222
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3223
|
+
const _args: any[] = [];
|
|
3224
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3225
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3226
|
+
|
|
3227
|
+
// @ts-ignore
|
|
3228
|
+
return tx.moveCall({
|
|
3229
|
+
target: "0x1::u32::diff",
|
|
3230
|
+
arguments: _args,
|
|
3231
|
+
});
|
|
3232
|
+
}
|
|
3233
|
+
export function divideAndRoundUp(
|
|
3234
|
+
tx: TransactionBlock,
|
|
3235
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3236
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3237
|
+
const _args: any[] = [];
|
|
3238
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3239
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3240
|
+
|
|
3241
|
+
// @ts-ignore
|
|
3242
|
+
return tx.moveCall({
|
|
3243
|
+
target: "0x1::u32::divide_and_round_up",
|
|
3244
|
+
arguments: _args,
|
|
3245
|
+
});
|
|
3246
|
+
}
|
|
3247
|
+
export function max(
|
|
3248
|
+
tx: TransactionBlock,
|
|
3249
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3250
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3251
|
+
const _args: any[] = [];
|
|
3252
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3253
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3254
|
+
|
|
3255
|
+
// @ts-ignore
|
|
3256
|
+
return tx.moveCall({
|
|
3257
|
+
target: "0x1::u32::max",
|
|
3258
|
+
arguments: _args,
|
|
3259
|
+
});
|
|
3260
|
+
}
|
|
3261
|
+
export function min(
|
|
3262
|
+
tx: TransactionBlock,
|
|
3263
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3264
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3265
|
+
const _args: any[] = [];
|
|
3266
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3267
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3268
|
+
|
|
3269
|
+
// @ts-ignore
|
|
3270
|
+
return tx.moveCall({
|
|
3271
|
+
target: "0x1::u32::min",
|
|
3272
|
+
arguments: _args,
|
|
3273
|
+
});
|
|
3274
|
+
}
|
|
3275
|
+
export function pow(
|
|
3276
|
+
tx: TransactionBlock,
|
|
3277
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3278
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3279
|
+
const _args: any[] = [];
|
|
3280
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3281
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3282
|
+
|
|
3283
|
+
// @ts-ignore
|
|
3284
|
+
return tx.moveCall({
|
|
3285
|
+
target: "0x1::u32::pow",
|
|
3286
|
+
arguments: _args,
|
|
3287
|
+
});
|
|
3288
|
+
}
|
|
3289
|
+
export function sqrt(
|
|
3290
|
+
tx: TransactionBlock,
|
|
3291
|
+
args: [number | TransactionArgument],
|
|
3292
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3293
|
+
const _args: any[] = [];
|
|
3294
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3295
|
+
|
|
3296
|
+
// @ts-ignore
|
|
3297
|
+
return tx.moveCall({
|
|
3298
|
+
target: "0x1::u32::sqrt",
|
|
3299
|
+
arguments: _args,
|
|
3300
|
+
});
|
|
3301
|
+
}
|
|
3302
|
+
}
|
|
3303
|
+
export namespace view {
|
|
3304
|
+
export async function diff(
|
|
3305
|
+
client: SuiClient,
|
|
3306
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3307
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3308
|
+
const tx = new TransactionBlock();
|
|
3309
|
+
builder.diff(tx, args);
|
|
3310
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3311
|
+
transactionBlock: tx,
|
|
3312
|
+
sender: ZERO_ADDRESS,
|
|
3313
|
+
});
|
|
3314
|
+
|
|
3315
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3316
|
+
inspectRes,
|
|
3317
|
+
);
|
|
3318
|
+
}
|
|
3319
|
+
export async function divideAndRoundUp(
|
|
3320
|
+
client: SuiClient,
|
|
3321
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3322
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3323
|
+
const tx = new TransactionBlock();
|
|
3324
|
+
builder.divideAndRoundUp(tx, args);
|
|
3325
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3326
|
+
transactionBlock: tx,
|
|
3327
|
+
sender: ZERO_ADDRESS,
|
|
3328
|
+
});
|
|
3329
|
+
|
|
3330
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3331
|
+
inspectRes,
|
|
3332
|
+
);
|
|
3333
|
+
}
|
|
3334
|
+
export async function max(
|
|
3335
|
+
client: SuiClient,
|
|
3336
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3337
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3338
|
+
const tx = new TransactionBlock();
|
|
3339
|
+
builder.max(tx, args);
|
|
3340
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3341
|
+
transactionBlock: tx,
|
|
3342
|
+
sender: ZERO_ADDRESS,
|
|
3343
|
+
});
|
|
3344
|
+
|
|
3345
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3346
|
+
inspectRes,
|
|
3347
|
+
);
|
|
3348
|
+
}
|
|
3349
|
+
export async function min(
|
|
3350
|
+
client: SuiClient,
|
|
3351
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3352
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3353
|
+
const tx = new TransactionBlock();
|
|
3354
|
+
builder.min(tx, args);
|
|
3355
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3356
|
+
transactionBlock: tx,
|
|
3357
|
+
sender: ZERO_ADDRESS,
|
|
3358
|
+
});
|
|
3359
|
+
|
|
3360
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3361
|
+
inspectRes,
|
|
3362
|
+
);
|
|
3363
|
+
}
|
|
3364
|
+
export async function pow(
|
|
3365
|
+
client: SuiClient,
|
|
3366
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3367
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3368
|
+
const tx = new TransactionBlock();
|
|
3369
|
+
builder.pow(tx, args);
|
|
3370
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3371
|
+
transactionBlock: tx,
|
|
3372
|
+
sender: ZERO_ADDRESS,
|
|
3373
|
+
});
|
|
3374
|
+
|
|
3375
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3376
|
+
inspectRes,
|
|
3377
|
+
);
|
|
3378
|
+
}
|
|
3379
|
+
export async function sqrt(
|
|
3380
|
+
client: SuiClient,
|
|
3381
|
+
args: [number | TransactionArgument],
|
|
3382
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3383
|
+
const tx = new TransactionBlock();
|
|
3384
|
+
builder.sqrt(tx, args);
|
|
3385
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3386
|
+
transactionBlock: tx,
|
|
3387
|
+
sender: ZERO_ADDRESS,
|
|
3388
|
+
});
|
|
3389
|
+
|
|
3390
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3391
|
+
inspectRes,
|
|
3392
|
+
);
|
|
3393
|
+
}
|
|
3394
|
+
}
|
|
3395
|
+
}
|
|
3396
|
+
|
|
3397
|
+
export namespace u64 {
|
|
3398
|
+
export namespace builder {
|
|
3399
|
+
export function diff(
|
|
3400
|
+
tx: TransactionBlock,
|
|
3401
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3402
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3403
|
+
const _args: any[] = [];
|
|
3404
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3405
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3406
|
+
|
|
3407
|
+
// @ts-ignore
|
|
3408
|
+
return tx.moveCall({
|
|
3409
|
+
target: "0x1::u64::diff",
|
|
3410
|
+
arguments: _args,
|
|
3411
|
+
});
|
|
3412
|
+
}
|
|
3413
|
+
export function divideAndRoundUp(
|
|
3414
|
+
tx: TransactionBlock,
|
|
3415
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3416
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3417
|
+
const _args: any[] = [];
|
|
3418
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3419
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3420
|
+
|
|
3421
|
+
// @ts-ignore
|
|
3422
|
+
return tx.moveCall({
|
|
3423
|
+
target: "0x1::u64::divide_and_round_up",
|
|
3424
|
+
arguments: _args,
|
|
3425
|
+
});
|
|
3426
|
+
}
|
|
3427
|
+
export function max(
|
|
3428
|
+
tx: TransactionBlock,
|
|
3429
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3430
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3431
|
+
const _args: any[] = [];
|
|
3432
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3433
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3434
|
+
|
|
3435
|
+
// @ts-ignore
|
|
3436
|
+
return tx.moveCall({
|
|
3437
|
+
target: "0x1::u64::max",
|
|
3438
|
+
arguments: _args,
|
|
3439
|
+
});
|
|
3440
|
+
}
|
|
3441
|
+
export function min(
|
|
3442
|
+
tx: TransactionBlock,
|
|
3443
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3444
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3445
|
+
const _args: any[] = [];
|
|
3446
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3447
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3448
|
+
|
|
3449
|
+
// @ts-ignore
|
|
3450
|
+
return tx.moveCall({
|
|
3451
|
+
target: "0x1::u64::min",
|
|
3452
|
+
arguments: _args,
|
|
3453
|
+
});
|
|
3454
|
+
}
|
|
3455
|
+
export function pow(
|
|
3456
|
+
tx: TransactionBlock,
|
|
3457
|
+
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
3458
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3459
|
+
const _args: any[] = [];
|
|
3460
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3461
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3462
|
+
|
|
3463
|
+
// @ts-ignore
|
|
3464
|
+
return tx.moveCall({
|
|
3465
|
+
target: "0x1::u64::pow",
|
|
3466
|
+
arguments: _args,
|
|
3467
|
+
});
|
|
3468
|
+
}
|
|
3469
|
+
export function sqrt(
|
|
3470
|
+
tx: TransactionBlock,
|
|
3471
|
+
args: [bigint | TransactionArgument],
|
|
3472
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3473
|
+
const _args: any[] = [];
|
|
3474
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3475
|
+
|
|
3476
|
+
// @ts-ignore
|
|
3477
|
+
return tx.moveCall({
|
|
3478
|
+
target: "0x1::u64::sqrt",
|
|
3479
|
+
arguments: _args,
|
|
3480
|
+
});
|
|
3481
|
+
}
|
|
3482
|
+
}
|
|
3483
|
+
export namespace view {
|
|
3484
|
+
export async function diff(
|
|
3485
|
+
client: SuiClient,
|
|
3486
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3487
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3488
|
+
const tx = new TransactionBlock();
|
|
3489
|
+
builder.diff(tx, args);
|
|
3490
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3491
|
+
transactionBlock: tx,
|
|
3492
|
+
sender: ZERO_ADDRESS,
|
|
3493
|
+
});
|
|
3494
|
+
|
|
3495
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3496
|
+
inspectRes,
|
|
3497
|
+
);
|
|
3498
|
+
}
|
|
3499
|
+
export async function divideAndRoundUp(
|
|
3500
|
+
client: SuiClient,
|
|
3501
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3502
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3503
|
+
const tx = new TransactionBlock();
|
|
3504
|
+
builder.divideAndRoundUp(tx, args);
|
|
3505
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3506
|
+
transactionBlock: tx,
|
|
3507
|
+
sender: ZERO_ADDRESS,
|
|
3508
|
+
});
|
|
3509
|
+
|
|
3510
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3511
|
+
inspectRes,
|
|
3512
|
+
);
|
|
3513
|
+
}
|
|
3514
|
+
export async function max(
|
|
3515
|
+
client: SuiClient,
|
|
3516
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3517
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3518
|
+
const tx = new TransactionBlock();
|
|
3519
|
+
builder.max(tx, args);
|
|
3520
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3521
|
+
transactionBlock: tx,
|
|
3522
|
+
sender: ZERO_ADDRESS,
|
|
3523
|
+
});
|
|
3524
|
+
|
|
3525
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3526
|
+
inspectRes,
|
|
3527
|
+
);
|
|
3528
|
+
}
|
|
3529
|
+
export async function min(
|
|
3530
|
+
client: SuiClient,
|
|
3531
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3532
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3533
|
+
const tx = new TransactionBlock();
|
|
3534
|
+
builder.min(tx, args);
|
|
3535
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3536
|
+
transactionBlock: tx,
|
|
3537
|
+
sender: ZERO_ADDRESS,
|
|
3538
|
+
});
|
|
3539
|
+
|
|
3540
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3541
|
+
inspectRes,
|
|
3542
|
+
);
|
|
3543
|
+
}
|
|
3544
|
+
export async function pow(
|
|
3545
|
+
client: SuiClient,
|
|
3546
|
+
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
3547
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3548
|
+
const tx = new TransactionBlock();
|
|
3549
|
+
builder.pow(tx, args);
|
|
3550
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3551
|
+
transactionBlock: tx,
|
|
3552
|
+
sender: ZERO_ADDRESS,
|
|
3553
|
+
});
|
|
3554
|
+
|
|
3555
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3556
|
+
inspectRes,
|
|
3557
|
+
);
|
|
3558
|
+
}
|
|
3559
|
+
export async function sqrt(
|
|
3560
|
+
client: SuiClient,
|
|
3561
|
+
args: [bigint | TransactionArgument],
|
|
3562
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3563
|
+
const tx = new TransactionBlock();
|
|
3564
|
+
builder.sqrt(tx, args);
|
|
3565
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3566
|
+
transactionBlock: tx,
|
|
3567
|
+
sender: ZERO_ADDRESS,
|
|
3568
|
+
});
|
|
3569
|
+
|
|
3570
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3571
|
+
inspectRes,
|
|
3572
|
+
);
|
|
3573
|
+
}
|
|
3574
|
+
}
|
|
3575
|
+
}
|
|
3576
|
+
|
|
3577
|
+
export namespace u8 {
|
|
3578
|
+
export namespace builder {
|
|
3579
|
+
export function diff(
|
|
3580
|
+
tx: TransactionBlock,
|
|
3581
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3582
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3583
|
+
const _args: any[] = [];
|
|
3584
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3585
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3586
|
+
|
|
3587
|
+
// @ts-ignore
|
|
3588
|
+
return tx.moveCall({
|
|
3589
|
+
target: "0x1::u8::diff",
|
|
3590
|
+
arguments: _args,
|
|
3591
|
+
});
|
|
3592
|
+
}
|
|
3593
|
+
export function divideAndRoundUp(
|
|
3594
|
+
tx: TransactionBlock,
|
|
3595
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3596
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3597
|
+
const _args: any[] = [];
|
|
3598
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3599
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3600
|
+
|
|
3601
|
+
// @ts-ignore
|
|
3602
|
+
return tx.moveCall({
|
|
3603
|
+
target: "0x1::u8::divide_and_round_up",
|
|
3604
|
+
arguments: _args,
|
|
3605
|
+
});
|
|
3606
|
+
}
|
|
3607
|
+
export function max(
|
|
3608
|
+
tx: TransactionBlock,
|
|
3609
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3610
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3611
|
+
const _args: any[] = [];
|
|
3612
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3613
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3614
|
+
|
|
3615
|
+
// @ts-ignore
|
|
3616
|
+
return tx.moveCall({
|
|
3617
|
+
target: "0x1::u8::max",
|
|
3618
|
+
arguments: _args,
|
|
3619
|
+
});
|
|
3620
|
+
}
|
|
3621
|
+
export function min(
|
|
3622
|
+
tx: TransactionBlock,
|
|
3623
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3624
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3625
|
+
const _args: any[] = [];
|
|
3626
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3627
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3628
|
+
|
|
3629
|
+
// @ts-ignore
|
|
3630
|
+
return tx.moveCall({
|
|
3631
|
+
target: "0x1::u8::min",
|
|
3632
|
+
arguments: _args,
|
|
3633
|
+
});
|
|
3634
|
+
}
|
|
3635
|
+
export function pow(
|
|
3636
|
+
tx: TransactionBlock,
|
|
3637
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3638
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3639
|
+
const _args: any[] = [];
|
|
3640
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3641
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
3642
|
+
|
|
3643
|
+
// @ts-ignore
|
|
3644
|
+
return tx.moveCall({
|
|
3645
|
+
target: "0x1::u8::pow",
|
|
3646
|
+
arguments: _args,
|
|
3647
|
+
});
|
|
3648
|
+
}
|
|
3649
|
+
export function sqrt(
|
|
3650
|
+
tx: TransactionBlock,
|
|
3651
|
+
args: [number | TransactionArgument],
|
|
3652
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3653
|
+
const _args: any[] = [];
|
|
3654
|
+
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
3655
|
+
|
|
3656
|
+
// @ts-ignore
|
|
3657
|
+
return tx.moveCall({
|
|
3658
|
+
target: "0x1::u8::sqrt",
|
|
3659
|
+
arguments: _args,
|
|
3660
|
+
});
|
|
3661
|
+
}
|
|
3662
|
+
}
|
|
3663
|
+
export namespace view {
|
|
3664
|
+
export async function diff(
|
|
3665
|
+
client: SuiClient,
|
|
3666
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3667
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3668
|
+
const tx = new TransactionBlock();
|
|
3669
|
+
builder.diff(tx, args);
|
|
3670
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3671
|
+
transactionBlock: tx,
|
|
3672
|
+
sender: ZERO_ADDRESS,
|
|
3673
|
+
});
|
|
3674
|
+
|
|
3675
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3676
|
+
inspectRes,
|
|
3677
|
+
);
|
|
3678
|
+
}
|
|
3679
|
+
export async function divideAndRoundUp(
|
|
3680
|
+
client: SuiClient,
|
|
3681
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3682
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3683
|
+
const tx = new TransactionBlock();
|
|
3684
|
+
builder.divideAndRoundUp(tx, args);
|
|
3685
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3686
|
+
transactionBlock: tx,
|
|
3687
|
+
sender: ZERO_ADDRESS,
|
|
3688
|
+
});
|
|
3689
|
+
|
|
3690
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3691
|
+
inspectRes,
|
|
3692
|
+
);
|
|
3693
|
+
}
|
|
3694
|
+
export async function max(
|
|
3695
|
+
client: SuiClient,
|
|
3696
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3697
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3698
|
+
const tx = new TransactionBlock();
|
|
3699
|
+
builder.max(tx, args);
|
|
3700
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3701
|
+
transactionBlock: tx,
|
|
3702
|
+
sender: ZERO_ADDRESS,
|
|
3703
|
+
});
|
|
3704
|
+
|
|
3705
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3706
|
+
inspectRes,
|
|
3707
|
+
);
|
|
3708
|
+
}
|
|
3709
|
+
export async function min(
|
|
3710
|
+
client: SuiClient,
|
|
3711
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3712
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3713
|
+
const tx = new TransactionBlock();
|
|
3714
|
+
builder.min(tx, args);
|
|
3715
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3716
|
+
transactionBlock: tx,
|
|
3717
|
+
sender: ZERO_ADDRESS,
|
|
3718
|
+
});
|
|
3719
|
+
|
|
3720
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3721
|
+
inspectRes,
|
|
3722
|
+
);
|
|
3723
|
+
}
|
|
3724
|
+
export async function pow(
|
|
3725
|
+
client: SuiClient,
|
|
3726
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3727
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3728
|
+
const tx = new TransactionBlock();
|
|
3729
|
+
builder.pow(tx, args);
|
|
3730
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3731
|
+
transactionBlock: tx,
|
|
3732
|
+
sender: ZERO_ADDRESS,
|
|
3733
|
+
});
|
|
3734
|
+
|
|
3735
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3736
|
+
inspectRes,
|
|
3737
|
+
);
|
|
3738
|
+
}
|
|
3739
|
+
export async function sqrt(
|
|
3740
|
+
client: SuiClient,
|
|
3741
|
+
args: [number | TransactionArgument],
|
|
3742
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3743
|
+
const tx = new TransactionBlock();
|
|
3744
|
+
builder.sqrt(tx, args);
|
|
3745
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3746
|
+
transactionBlock: tx,
|
|
3747
|
+
sender: ZERO_ADDRESS,
|
|
3748
|
+
});
|
|
3749
|
+
|
|
3750
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3751
|
+
inspectRes,
|
|
3752
|
+
);
|
|
3753
|
+
}
|
|
3754
|
+
}
|
|
3755
|
+
}
|
|
3756
|
+
|
|
2373
3757
|
export namespace vector {
|
|
2374
3758
|
export namespace builder {
|
|
2375
3759
|
export function append<T0 = any>(
|
|
@@ -3050,7 +4434,7 @@ export namespace vector {
|
|
|
3050
4434
|
}
|
|
3051
4435
|
|
|
3052
4436
|
const MODULES = JSON.parse(
|
|
3053
|
-
'{"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"]},"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":[]}}]},"into_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[{"Vector":"U8"}]},"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":[]}}]},"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"}]}}},"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":[]},"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":[]},"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":[]}}]},"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"]}}},"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}]}}}}',
|
|
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}]}}}}',
|
|
3054
4438
|
);
|
|
3055
4439
|
|
|
3056
4440
|
export function loadAllTypes(coder: MoveCoder) {
|