@typemove/sui 1.13.3 → 1.13.4-rc.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/esm/builtin/0x1.d.ts +157 -0
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js +1599 -67
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +483 -10
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +2028 -71
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +34 -0
- package/dist/esm/builtin/0x3.d.ts.map +1 -1
- package/dist/esm/builtin/0x3.js +81 -1
- package/dist/esm/builtin/0x3.js.map +1 -1
- package/dist/esm/move-coder.test.js.map +1 -1
- package/package.json +10 -31
- package/src/abis/0x1.json +1643 -220
- package/src/abis/0x2.json +3768 -372
- package/src/abis/0x3.json +114 -0
- package/src/builtin/0x1.ts +2265 -150
- package/src/builtin/0x2.ts +3737 -792
- package/src/builtin/0x3.ts +139 -1
- package/builtin/0x1/package.json +0 -5
- package/builtin/0x2/package.json +0 -5
- package/builtin/0x3/package.json +0 -5
- package/builtin/package.json +0 -5
- package/codegen/package.json +0 -5
- package/dist/cjs/builtin/0x1.d.ts +0 -761
- package/dist/cjs/builtin/0x1.d.ts.map +0 -1
- package/dist/cjs/builtin/0x1.js +0 -4505
- package/dist/cjs/builtin/0x1.js.map +0 -1
- package/dist/cjs/builtin/0x2.d.ts +0 -4029
- package/dist/cjs/builtin/0x2.d.ts.map +0 -1
- package/dist/cjs/builtin/0x2.js +0 -16458
- package/dist/cjs/builtin/0x2.js.map +0 -1
- package/dist/cjs/builtin/0x3.d.ts +0 -1930
- package/dist/cjs/builtin/0x3.d.ts.map +0 -1
- package/dist/cjs/builtin/0x3.js +0 -6071
- package/dist/cjs/builtin/0x3.js.map +0 -1
- package/dist/cjs/builtin/index.d.ts +0 -4
- package/dist/cjs/builtin/index.d.ts.map +0 -1
- package/dist/cjs/builtin/index.js +0 -11
- package/dist/cjs/builtin/index.js.map +0 -1
- package/dist/cjs/codegen/codegen.d.ts +0 -20
- package/dist/cjs/codegen/codegen.d.ts.map +0 -1
- package/dist/cjs/codegen/codegen.js +0 -251
- package/dist/cjs/codegen/codegen.js.map +0 -1
- package/dist/cjs/codegen/index.d.ts +0 -2
- package/dist/cjs/codegen/index.d.ts.map +0 -1
- package/dist/cjs/codegen/index.js +0 -5
- package/dist/cjs/codegen/index.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -4
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -11
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models.d.ts +0 -18
- package/dist/cjs/models.d.ts.map +0 -1
- package/dist/cjs/models.js +0 -5
- package/dist/cjs/models.js.map +0 -1
- package/dist/cjs/move-coder.d.ts +0 -26
- package/dist/cjs/move-coder.d.ts.map +0 -1
- package/dist/cjs/move-coder.js +0 -272
- package/dist/cjs/move-coder.js.map +0 -1
- package/dist/cjs/move-coder.test.d.ts +0 -2
- package/dist/cjs/move-coder.test.d.ts.map +0 -1
- package/dist/cjs/move-coder.test.js.map +0 -1
- package/dist/cjs/package.json +0 -3
- package/dist/cjs/sui-chain-adapter.d.ts +0 -15
- package/dist/cjs/sui-chain-adapter.d.ts.map +0 -1
- package/dist/cjs/sui-chain-adapter.js +0 -88
- package/dist/cjs/sui-chain-adapter.js.map +0 -1
- package/dist/cjs/to-internal.d.ts +0 -4
- package/dist/cjs/to-internal.d.ts.map +0 -1
- package/dist/cjs/to-internal.js +0 -99
- package/dist/cjs/to-internal.js.map +0 -1
- package/dist/cjs/transaction.d.ts +0 -15
- package/dist/cjs/transaction.d.ts.map +0 -1
- package/dist/cjs/transaction.js +0 -98
- package/dist/cjs/transaction.js.map +0 -1
package/src/builtin/0x1.ts
CHANGED
|
@@ -1266,6 +1266,63 @@ export namespace hash {
|
|
|
1266
1266
|
}
|
|
1267
1267
|
}
|
|
1268
1268
|
|
|
1269
|
+
export namespace internal {
|
|
1270
|
+
export interface Permit<T0> {
|
|
1271
|
+
dummy_field: boolean;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
export namespace Permit {
|
|
1275
|
+
export const TYPE_QNAME = "0x1::internal::Permit";
|
|
1276
|
+
|
|
1277
|
+
const TYPE = new TypeDescriptor<Permit<any>>(Permit.TYPE_QNAME);
|
|
1278
|
+
|
|
1279
|
+
export function type<T0>(
|
|
1280
|
+
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
1281
|
+
): TypeDescriptor<Permit<T0>> {
|
|
1282
|
+
return TYPE.apply(arg0);
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
export namespace builder {
|
|
1287
|
+
export function permit<T0 = any>(
|
|
1288
|
+
tx: Transaction,
|
|
1289
|
+
args: [],
|
|
1290
|
+
typeArguments: [TypeDescriptor<T0> | string],
|
|
1291
|
+
): TransactionArgument & [] {
|
|
1292
|
+
const _args: any[] = [];
|
|
1293
|
+
|
|
1294
|
+
// @ts-ignore
|
|
1295
|
+
return tx.moveCall({
|
|
1296
|
+
target: "0x1::internal::permit",
|
|
1297
|
+
arguments: _args,
|
|
1298
|
+
typeArguments: [
|
|
1299
|
+
typeof typeArguments[0] === "string"
|
|
1300
|
+
? typeArguments[0]
|
|
1301
|
+
: typeArguments[0].getSignature(),
|
|
1302
|
+
],
|
|
1303
|
+
});
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
export namespace view {
|
|
1307
|
+
export async function permit<T0 = any>(
|
|
1308
|
+
client: SuiClient,
|
|
1309
|
+
args: [],
|
|
1310
|
+
typeArguments: [TypeDescriptor<T0> | string],
|
|
1311
|
+
): Promise<TypedDevInspectResults<[internal.Permit<T0>]>> {
|
|
1312
|
+
const tx = new Transaction();
|
|
1313
|
+
builder.permit(tx, args, typeArguments);
|
|
1314
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1315
|
+
transactionBlock: tx,
|
|
1316
|
+
sender: ZERO_ADDRESS,
|
|
1317
|
+
});
|
|
1318
|
+
|
|
1319
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
1320
|
+
[internal.Permit<T0>]
|
|
1321
|
+
>(inspectRes);
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1269
1326
|
export namespace macros {
|
|
1270
1327
|
export namespace builder {}
|
|
1271
1328
|
export namespace view {}
|
|
@@ -2434,6 +2491,19 @@ export namespace type_name {
|
|
|
2434
2491
|
arguments: _args,
|
|
2435
2492
|
});
|
|
2436
2493
|
}
|
|
2494
|
+
export function datatypeString(
|
|
2495
|
+
tx: Transaction,
|
|
2496
|
+
args: [string | TransactionObjectArgument],
|
|
2497
|
+
): TransactionArgument & [TransactionArgument] {
|
|
2498
|
+
const _args: any[] = [];
|
|
2499
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
2500
|
+
|
|
2501
|
+
// @ts-ignore
|
|
2502
|
+
return tx.moveCall({
|
|
2503
|
+
target: "0x1::type_name::datatype_string",
|
|
2504
|
+
arguments: _args,
|
|
2505
|
+
});
|
|
2506
|
+
}
|
|
2437
2507
|
export function definingId<T0 = any>(
|
|
2438
2508
|
tx: Transaction,
|
|
2439
2509
|
args: [],
|
|
@@ -2654,6 +2724,21 @@ export namespace type_name {
|
|
|
2654
2724
|
inspectRes,
|
|
2655
2725
|
);
|
|
2656
2726
|
}
|
|
2727
|
+
export async function datatypeString(
|
|
2728
|
+
client: SuiClient,
|
|
2729
|
+
args: [string],
|
|
2730
|
+
): Promise<TypedDevInspectResults<[ascii.String]>> {
|
|
2731
|
+
const tx = new Transaction();
|
|
2732
|
+
builder.datatypeString(tx, args);
|
|
2733
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2734
|
+
transactionBlock: tx,
|
|
2735
|
+
sender: ZERO_ADDRESS,
|
|
2736
|
+
});
|
|
2737
|
+
|
|
2738
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
2739
|
+
[ascii.String]
|
|
2740
|
+
>(inspectRes);
|
|
2741
|
+
}
|
|
2657
2742
|
export async function definingId<T0 = any>(
|
|
2658
2743
|
client: SuiClient,
|
|
2659
2744
|
args: [],
|
|
@@ -2843,6 +2928,90 @@ export namespace u128 {
|
|
|
2843
2928
|
arguments: _args,
|
|
2844
2929
|
});
|
|
2845
2930
|
}
|
|
2931
|
+
export function checkedAdd(
|
|
2932
|
+
tx: Transaction,
|
|
2933
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2934
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2935
|
+
const _args: any[] = [];
|
|
2936
|
+
_args.push(transactionArgumentOrPureU128(args[0], tx));
|
|
2937
|
+
_args.push(transactionArgumentOrPureU128(args[1], tx));
|
|
2938
|
+
|
|
2939
|
+
// @ts-ignore
|
|
2940
|
+
return tx.moveCall({
|
|
2941
|
+
target: "0x1::u128::checked_add",
|
|
2942
|
+
arguments: _args,
|
|
2943
|
+
});
|
|
2944
|
+
}
|
|
2945
|
+
export function checkedDiv(
|
|
2946
|
+
tx: Transaction,
|
|
2947
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2948
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2949
|
+
const _args: any[] = [];
|
|
2950
|
+
_args.push(transactionArgumentOrPureU128(args[0], tx));
|
|
2951
|
+
_args.push(transactionArgumentOrPureU128(args[1], tx));
|
|
2952
|
+
|
|
2953
|
+
// @ts-ignore
|
|
2954
|
+
return tx.moveCall({
|
|
2955
|
+
target: "0x1::u128::checked_div",
|
|
2956
|
+
arguments: _args,
|
|
2957
|
+
});
|
|
2958
|
+
}
|
|
2959
|
+
export function checkedMul(
|
|
2960
|
+
tx: Transaction,
|
|
2961
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2962
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2963
|
+
const _args: any[] = [];
|
|
2964
|
+
_args.push(transactionArgumentOrPureU128(args[0], tx));
|
|
2965
|
+
_args.push(transactionArgumentOrPureU128(args[1], tx));
|
|
2966
|
+
|
|
2967
|
+
// @ts-ignore
|
|
2968
|
+
return tx.moveCall({
|
|
2969
|
+
target: "0x1::u128::checked_mul",
|
|
2970
|
+
arguments: _args,
|
|
2971
|
+
});
|
|
2972
|
+
}
|
|
2973
|
+
export function checkedShl(
|
|
2974
|
+
tx: Transaction,
|
|
2975
|
+
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
2976
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2977
|
+
const _args: any[] = [];
|
|
2978
|
+
_args.push(transactionArgumentOrPureU128(args[0], tx));
|
|
2979
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
2980
|
+
|
|
2981
|
+
// @ts-ignore
|
|
2982
|
+
return tx.moveCall({
|
|
2983
|
+
target: "0x1::u128::checked_shl",
|
|
2984
|
+
arguments: _args,
|
|
2985
|
+
});
|
|
2986
|
+
}
|
|
2987
|
+
export function checkedShr(
|
|
2988
|
+
tx: Transaction,
|
|
2989
|
+
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
2990
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2991
|
+
const _args: any[] = [];
|
|
2992
|
+
_args.push(transactionArgumentOrPureU128(args[0], tx));
|
|
2993
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
2994
|
+
|
|
2995
|
+
// @ts-ignore
|
|
2996
|
+
return tx.moveCall({
|
|
2997
|
+
target: "0x1::u128::checked_shr",
|
|
2998
|
+
arguments: _args,
|
|
2999
|
+
});
|
|
3000
|
+
}
|
|
3001
|
+
export function checkedSub(
|
|
3002
|
+
tx: Transaction,
|
|
3003
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3004
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3005
|
+
const _args: any[] = [];
|
|
3006
|
+
_args.push(transactionArgumentOrPureU128(args[0], tx));
|
|
3007
|
+
_args.push(transactionArgumentOrPureU128(args[1], tx));
|
|
3008
|
+
|
|
3009
|
+
// @ts-ignore
|
|
3010
|
+
return tx.moveCall({
|
|
3011
|
+
target: "0x1::u128::checked_sub",
|
|
3012
|
+
arguments: _args,
|
|
3013
|
+
});
|
|
3014
|
+
}
|
|
2846
3015
|
export function diff(
|
|
2847
3016
|
tx: Transaction,
|
|
2848
3017
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
@@ -2871,6 +3040,48 @@ export namespace u128 {
|
|
|
2871
3040
|
arguments: _args,
|
|
2872
3041
|
});
|
|
2873
3042
|
}
|
|
3043
|
+
export function losslessDiv(
|
|
3044
|
+
tx: Transaction,
|
|
3045
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3046
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3047
|
+
const _args: any[] = [];
|
|
3048
|
+
_args.push(transactionArgumentOrPureU128(args[0], tx));
|
|
3049
|
+
_args.push(transactionArgumentOrPureU128(args[1], tx));
|
|
3050
|
+
|
|
3051
|
+
// @ts-ignore
|
|
3052
|
+
return tx.moveCall({
|
|
3053
|
+
target: "0x1::u128::lossless_div",
|
|
3054
|
+
arguments: _args,
|
|
3055
|
+
});
|
|
3056
|
+
}
|
|
3057
|
+
export function losslessShl(
|
|
3058
|
+
tx: Transaction,
|
|
3059
|
+
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
3060
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3061
|
+
const _args: any[] = [];
|
|
3062
|
+
_args.push(transactionArgumentOrPureU128(args[0], tx));
|
|
3063
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
3064
|
+
|
|
3065
|
+
// @ts-ignore
|
|
3066
|
+
return tx.moveCall({
|
|
3067
|
+
target: "0x1::u128::lossless_shl",
|
|
3068
|
+
arguments: _args,
|
|
3069
|
+
});
|
|
3070
|
+
}
|
|
3071
|
+
export function losslessShr(
|
|
3072
|
+
tx: Transaction,
|
|
3073
|
+
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
3074
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3075
|
+
const _args: any[] = [];
|
|
3076
|
+
_args.push(transactionArgumentOrPureU128(args[0], tx));
|
|
3077
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
3078
|
+
|
|
3079
|
+
// @ts-ignore
|
|
3080
|
+
return tx.moveCall({
|
|
3081
|
+
target: "0x1::u128::lossless_shr",
|
|
3082
|
+
arguments: _args,
|
|
3083
|
+
});
|
|
3084
|
+
}
|
|
2874
3085
|
export function max(
|
|
2875
3086
|
tx: Transaction,
|
|
2876
3087
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
@@ -2913,6 +3124,48 @@ export namespace u128 {
|
|
|
2913
3124
|
arguments: _args,
|
|
2914
3125
|
});
|
|
2915
3126
|
}
|
|
3127
|
+
export function saturatingAdd(
|
|
3128
|
+
tx: Transaction,
|
|
3129
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3130
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3131
|
+
const _args: any[] = [];
|
|
3132
|
+
_args.push(transactionArgumentOrPureU128(args[0], tx));
|
|
3133
|
+
_args.push(transactionArgumentOrPureU128(args[1], tx));
|
|
3134
|
+
|
|
3135
|
+
// @ts-ignore
|
|
3136
|
+
return tx.moveCall({
|
|
3137
|
+
target: "0x1::u128::saturating_add",
|
|
3138
|
+
arguments: _args,
|
|
3139
|
+
});
|
|
3140
|
+
}
|
|
3141
|
+
export function saturatingMul(
|
|
3142
|
+
tx: Transaction,
|
|
3143
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3144
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3145
|
+
const _args: any[] = [];
|
|
3146
|
+
_args.push(transactionArgumentOrPureU128(args[0], tx));
|
|
3147
|
+
_args.push(transactionArgumentOrPureU128(args[1], tx));
|
|
3148
|
+
|
|
3149
|
+
// @ts-ignore
|
|
3150
|
+
return tx.moveCall({
|
|
3151
|
+
target: "0x1::u128::saturating_mul",
|
|
3152
|
+
arguments: _args,
|
|
3153
|
+
});
|
|
3154
|
+
}
|
|
3155
|
+
export function saturatingSub(
|
|
3156
|
+
tx: Transaction,
|
|
3157
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3158
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3159
|
+
const _args: any[] = [];
|
|
3160
|
+
_args.push(transactionArgumentOrPureU128(args[0], tx));
|
|
3161
|
+
_args.push(transactionArgumentOrPureU128(args[1], tx));
|
|
3162
|
+
|
|
3163
|
+
// @ts-ignore
|
|
3164
|
+
return tx.moveCall({
|
|
3165
|
+
target: "0x1::u128::saturating_sub",
|
|
3166
|
+
arguments: _args,
|
|
3167
|
+
});
|
|
3168
|
+
}
|
|
2916
3169
|
export function sqrt(
|
|
2917
3170
|
tx: Transaction,
|
|
2918
3171
|
args: [bigint | TransactionArgument],
|
|
@@ -3008,70 +3261,205 @@ export namespace u128 {
|
|
|
3008
3261
|
inspectRes,
|
|
3009
3262
|
);
|
|
3010
3263
|
}
|
|
3011
|
-
export async function
|
|
3264
|
+
export async function checkedAdd(
|
|
3012
3265
|
client: SuiClient,
|
|
3013
3266
|
args: [bigint, bigint],
|
|
3014
|
-
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3267
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
3015
3268
|
const tx = new Transaction();
|
|
3016
|
-
builder.
|
|
3269
|
+
builder.checkedAdd(tx, args);
|
|
3017
3270
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3018
3271
|
transactionBlock: tx,
|
|
3019
3272
|
sender: ZERO_ADDRESS,
|
|
3020
3273
|
});
|
|
3021
3274
|
|
|
3022
|
-
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3023
|
-
|
|
3024
|
-
);
|
|
3275
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3276
|
+
[option.Option<bigint>]
|
|
3277
|
+
>(inspectRes);
|
|
3025
3278
|
}
|
|
3026
|
-
export async function
|
|
3279
|
+
export async function checkedDiv(
|
|
3027
3280
|
client: SuiClient,
|
|
3028
3281
|
args: [bigint, bigint],
|
|
3029
|
-
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3282
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
3030
3283
|
const tx = new Transaction();
|
|
3031
|
-
builder.
|
|
3284
|
+
builder.checkedDiv(tx, args);
|
|
3032
3285
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3033
3286
|
transactionBlock: tx,
|
|
3034
3287
|
sender: ZERO_ADDRESS,
|
|
3035
3288
|
});
|
|
3036
3289
|
|
|
3037
|
-
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3038
|
-
|
|
3039
|
-
);
|
|
3290
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3291
|
+
[option.Option<bigint>]
|
|
3292
|
+
>(inspectRes);
|
|
3040
3293
|
}
|
|
3041
|
-
export async function
|
|
3294
|
+
export async function checkedMul(
|
|
3042
3295
|
client: SuiClient,
|
|
3043
3296
|
args: [bigint, bigint],
|
|
3044
|
-
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3297
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
3045
3298
|
const tx = new Transaction();
|
|
3046
|
-
builder.
|
|
3299
|
+
builder.checkedMul(tx, args);
|
|
3047
3300
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3048
3301
|
transactionBlock: tx,
|
|
3049
3302
|
sender: ZERO_ADDRESS,
|
|
3050
3303
|
});
|
|
3051
3304
|
|
|
3052
|
-
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3053
|
-
|
|
3054
|
-
);
|
|
3305
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3306
|
+
[option.Option<bigint>]
|
|
3307
|
+
>(inspectRes);
|
|
3055
3308
|
}
|
|
3056
|
-
export async function
|
|
3309
|
+
export async function checkedShl(
|
|
3057
3310
|
client: SuiClient,
|
|
3058
|
-
args: [bigint,
|
|
3059
|
-
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3311
|
+
args: [bigint, number],
|
|
3312
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
3060
3313
|
const tx = new Transaction();
|
|
3061
|
-
builder.
|
|
3314
|
+
builder.checkedShl(tx, args);
|
|
3062
3315
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3063
3316
|
transactionBlock: tx,
|
|
3064
3317
|
sender: ZERO_ADDRESS,
|
|
3065
3318
|
});
|
|
3066
3319
|
|
|
3067
|
-
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3068
|
-
|
|
3069
|
-
);
|
|
3320
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3321
|
+
[option.Option<bigint>]
|
|
3322
|
+
>(inspectRes);
|
|
3070
3323
|
}
|
|
3071
|
-
export async function
|
|
3324
|
+
export async function checkedShr(
|
|
3072
3325
|
client: SuiClient,
|
|
3073
3326
|
args: [bigint, number],
|
|
3074
|
-
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3327
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
3328
|
+
const tx = new Transaction();
|
|
3329
|
+
builder.checkedShr(tx, args);
|
|
3330
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3331
|
+
transactionBlock: tx,
|
|
3332
|
+
sender: ZERO_ADDRESS,
|
|
3333
|
+
});
|
|
3334
|
+
|
|
3335
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3336
|
+
[option.Option<bigint>]
|
|
3337
|
+
>(inspectRes);
|
|
3338
|
+
}
|
|
3339
|
+
export async function checkedSub(
|
|
3340
|
+
client: SuiClient,
|
|
3341
|
+
args: [bigint, bigint],
|
|
3342
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
3343
|
+
const tx = new Transaction();
|
|
3344
|
+
builder.checkedSub(tx, args);
|
|
3345
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3346
|
+
transactionBlock: tx,
|
|
3347
|
+
sender: ZERO_ADDRESS,
|
|
3348
|
+
});
|
|
3349
|
+
|
|
3350
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3351
|
+
[option.Option<bigint>]
|
|
3352
|
+
>(inspectRes);
|
|
3353
|
+
}
|
|
3354
|
+
export async function diff(
|
|
3355
|
+
client: SuiClient,
|
|
3356
|
+
args: [bigint, bigint],
|
|
3357
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3358
|
+
const tx = new Transaction();
|
|
3359
|
+
builder.diff(tx, args);
|
|
3360
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3361
|
+
transactionBlock: tx,
|
|
3362
|
+
sender: ZERO_ADDRESS,
|
|
3363
|
+
});
|
|
3364
|
+
|
|
3365
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3366
|
+
inspectRes,
|
|
3367
|
+
);
|
|
3368
|
+
}
|
|
3369
|
+
export async function divideAndRoundUp(
|
|
3370
|
+
client: SuiClient,
|
|
3371
|
+
args: [bigint, bigint],
|
|
3372
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3373
|
+
const tx = new Transaction();
|
|
3374
|
+
builder.divideAndRoundUp(tx, args);
|
|
3375
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3376
|
+
transactionBlock: tx,
|
|
3377
|
+
sender: ZERO_ADDRESS,
|
|
3378
|
+
});
|
|
3379
|
+
|
|
3380
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3381
|
+
inspectRes,
|
|
3382
|
+
);
|
|
3383
|
+
}
|
|
3384
|
+
export async function losslessDiv(
|
|
3385
|
+
client: SuiClient,
|
|
3386
|
+
args: [bigint, bigint],
|
|
3387
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
3388
|
+
const tx = new Transaction();
|
|
3389
|
+
builder.losslessDiv(tx, args);
|
|
3390
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3391
|
+
transactionBlock: tx,
|
|
3392
|
+
sender: ZERO_ADDRESS,
|
|
3393
|
+
});
|
|
3394
|
+
|
|
3395
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3396
|
+
[option.Option<bigint>]
|
|
3397
|
+
>(inspectRes);
|
|
3398
|
+
}
|
|
3399
|
+
export async function losslessShl(
|
|
3400
|
+
client: SuiClient,
|
|
3401
|
+
args: [bigint, number],
|
|
3402
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
3403
|
+
const tx = new Transaction();
|
|
3404
|
+
builder.losslessShl(tx, args);
|
|
3405
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3406
|
+
transactionBlock: tx,
|
|
3407
|
+
sender: ZERO_ADDRESS,
|
|
3408
|
+
});
|
|
3409
|
+
|
|
3410
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3411
|
+
[option.Option<bigint>]
|
|
3412
|
+
>(inspectRes);
|
|
3413
|
+
}
|
|
3414
|
+
export async function losslessShr(
|
|
3415
|
+
client: SuiClient,
|
|
3416
|
+
args: [bigint, number],
|
|
3417
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
3418
|
+
const tx = new Transaction();
|
|
3419
|
+
builder.losslessShr(tx, args);
|
|
3420
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3421
|
+
transactionBlock: tx,
|
|
3422
|
+
sender: ZERO_ADDRESS,
|
|
3423
|
+
});
|
|
3424
|
+
|
|
3425
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3426
|
+
[option.Option<bigint>]
|
|
3427
|
+
>(inspectRes);
|
|
3428
|
+
}
|
|
3429
|
+
export async function max(
|
|
3430
|
+
client: SuiClient,
|
|
3431
|
+
args: [bigint, bigint],
|
|
3432
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3433
|
+
const tx = new Transaction();
|
|
3434
|
+
builder.max(tx, args);
|
|
3435
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3436
|
+
transactionBlock: tx,
|
|
3437
|
+
sender: ZERO_ADDRESS,
|
|
3438
|
+
});
|
|
3439
|
+
|
|
3440
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3441
|
+
inspectRes,
|
|
3442
|
+
);
|
|
3443
|
+
}
|
|
3444
|
+
export async function min(
|
|
3445
|
+
client: SuiClient,
|
|
3446
|
+
args: [bigint, bigint],
|
|
3447
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3448
|
+
const tx = new Transaction();
|
|
3449
|
+
builder.min(tx, args);
|
|
3450
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3451
|
+
transactionBlock: tx,
|
|
3452
|
+
sender: ZERO_ADDRESS,
|
|
3453
|
+
});
|
|
3454
|
+
|
|
3455
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3456
|
+
inspectRes,
|
|
3457
|
+
);
|
|
3458
|
+
}
|
|
3459
|
+
export async function pow(
|
|
3460
|
+
client: SuiClient,
|
|
3461
|
+
args: [bigint, number],
|
|
3462
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3075
3463
|
const tx = new Transaction();
|
|
3076
3464
|
builder.pow(tx, args);
|
|
3077
3465
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
@@ -3083,6 +3471,51 @@ export namespace u128 {
|
|
|
3083
3471
|
inspectRes,
|
|
3084
3472
|
);
|
|
3085
3473
|
}
|
|
3474
|
+
export async function saturatingAdd(
|
|
3475
|
+
client: SuiClient,
|
|
3476
|
+
args: [bigint, bigint],
|
|
3477
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3478
|
+
const tx = new Transaction();
|
|
3479
|
+
builder.saturatingAdd(tx, args);
|
|
3480
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3481
|
+
transactionBlock: tx,
|
|
3482
|
+
sender: ZERO_ADDRESS,
|
|
3483
|
+
});
|
|
3484
|
+
|
|
3485
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3486
|
+
inspectRes,
|
|
3487
|
+
);
|
|
3488
|
+
}
|
|
3489
|
+
export async function saturatingMul(
|
|
3490
|
+
client: SuiClient,
|
|
3491
|
+
args: [bigint, bigint],
|
|
3492
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3493
|
+
const tx = new Transaction();
|
|
3494
|
+
builder.saturatingMul(tx, args);
|
|
3495
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3496
|
+
transactionBlock: tx,
|
|
3497
|
+
sender: ZERO_ADDRESS,
|
|
3498
|
+
});
|
|
3499
|
+
|
|
3500
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3501
|
+
inspectRes,
|
|
3502
|
+
);
|
|
3503
|
+
}
|
|
3504
|
+
export async function saturatingSub(
|
|
3505
|
+
client: SuiClient,
|
|
3506
|
+
args: [bigint, bigint],
|
|
3507
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3508
|
+
const tx = new Transaction();
|
|
3509
|
+
builder.saturatingSub(tx, args);
|
|
3510
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3511
|
+
transactionBlock: tx,
|
|
3512
|
+
sender: ZERO_ADDRESS,
|
|
3513
|
+
});
|
|
3514
|
+
|
|
3515
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3516
|
+
inspectRes,
|
|
3517
|
+
);
|
|
3518
|
+
}
|
|
3086
3519
|
export async function sqrt(
|
|
3087
3520
|
client: SuiClient,
|
|
3088
3521
|
args: [bigint],
|
|
@@ -3191,7 +3624,7 @@ export namespace u16 {
|
|
|
3191
3624
|
arguments: _args,
|
|
3192
3625
|
});
|
|
3193
3626
|
}
|
|
3194
|
-
export function
|
|
3627
|
+
export function checkedAdd(
|
|
3195
3628
|
tx: Transaction,
|
|
3196
3629
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3197
3630
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
@@ -3201,11 +3634,11 @@ export namespace u16 {
|
|
|
3201
3634
|
|
|
3202
3635
|
// @ts-ignore
|
|
3203
3636
|
return tx.moveCall({
|
|
3204
|
-
target: "0x1::u16::
|
|
3637
|
+
target: "0x1::u16::checked_add",
|
|
3205
3638
|
arguments: _args,
|
|
3206
3639
|
});
|
|
3207
3640
|
}
|
|
3208
|
-
export function
|
|
3641
|
+
export function checkedDiv(
|
|
3209
3642
|
tx: Transaction,
|
|
3210
3643
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3211
3644
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
@@ -3215,11 +3648,11 @@ export namespace u16 {
|
|
|
3215
3648
|
|
|
3216
3649
|
// @ts-ignore
|
|
3217
3650
|
return tx.moveCall({
|
|
3218
|
-
target: "0x1::u16::
|
|
3651
|
+
target: "0x1::u16::checked_div",
|
|
3219
3652
|
arguments: _args,
|
|
3220
3653
|
});
|
|
3221
3654
|
}
|
|
3222
|
-
export function
|
|
3655
|
+
export function checkedMul(
|
|
3223
3656
|
tx: Transaction,
|
|
3224
3657
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3225
3658
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
@@ -3229,25 +3662,25 @@ export namespace u16 {
|
|
|
3229
3662
|
|
|
3230
3663
|
// @ts-ignore
|
|
3231
3664
|
return tx.moveCall({
|
|
3232
|
-
target: "0x1::u16::
|
|
3665
|
+
target: "0x1::u16::checked_mul",
|
|
3233
3666
|
arguments: _args,
|
|
3234
3667
|
});
|
|
3235
3668
|
}
|
|
3236
|
-
export function
|
|
3669
|
+
export function checkedShl(
|
|
3237
3670
|
tx: Transaction,
|
|
3238
3671
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3239
3672
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3240
3673
|
const _args: any[] = [];
|
|
3241
3674
|
_args.push(transactionArgumentOrPureU16(args[0], tx));
|
|
3242
|
-
_args.push(
|
|
3675
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
3243
3676
|
|
|
3244
3677
|
// @ts-ignore
|
|
3245
3678
|
return tx.moveCall({
|
|
3246
|
-
target: "0x1::u16::
|
|
3679
|
+
target: "0x1::u16::checked_shl",
|
|
3247
3680
|
arguments: _args,
|
|
3248
3681
|
});
|
|
3249
3682
|
}
|
|
3250
|
-
export function
|
|
3683
|
+
export function checkedShr(
|
|
3251
3684
|
tx: Transaction,
|
|
3252
3685
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3253
3686
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
@@ -3257,86 +3690,344 @@ export namespace u16 {
|
|
|
3257
3690
|
|
|
3258
3691
|
// @ts-ignore
|
|
3259
3692
|
return tx.moveCall({
|
|
3260
|
-
target: "0x1::u16::
|
|
3693
|
+
target: "0x1::u16::checked_shr",
|
|
3261
3694
|
arguments: _args,
|
|
3262
3695
|
});
|
|
3263
3696
|
}
|
|
3264
|
-
export function
|
|
3697
|
+
export function checkedSub(
|
|
3265
3698
|
tx: Transaction,
|
|
3266
|
-
args: [number | TransactionArgument],
|
|
3267
|
-
): TransactionArgument & [TransactionArgument] {
|
|
3699
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3700
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3268
3701
|
const _args: any[] = [];
|
|
3269
3702
|
_args.push(transactionArgumentOrPureU16(args[0], tx));
|
|
3703
|
+
_args.push(transactionArgumentOrPureU16(args[1], tx));
|
|
3270
3704
|
|
|
3271
3705
|
// @ts-ignore
|
|
3272
3706
|
return tx.moveCall({
|
|
3273
|
-
target: "0x1::u16::
|
|
3707
|
+
target: "0x1::u16::checked_sub",
|
|
3274
3708
|
arguments: _args,
|
|
3275
3709
|
});
|
|
3276
3710
|
}
|
|
3277
|
-
export function
|
|
3711
|
+
export function diff(
|
|
3278
3712
|
tx: Transaction,
|
|
3279
|
-
args: [number | TransactionArgument],
|
|
3280
|
-
): TransactionArgument & [TransactionArgument] {
|
|
3713
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3714
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3281
3715
|
const _args: any[] = [];
|
|
3282
3716
|
_args.push(transactionArgumentOrPureU16(args[0], tx));
|
|
3717
|
+
_args.push(transactionArgumentOrPureU16(args[1], tx));
|
|
3283
3718
|
|
|
3284
3719
|
// @ts-ignore
|
|
3285
3720
|
return tx.moveCall({
|
|
3286
|
-
target: "0x1::u16::
|
|
3721
|
+
target: "0x1::u16::diff",
|
|
3287
3722
|
arguments: _args,
|
|
3288
3723
|
});
|
|
3289
3724
|
}
|
|
3290
|
-
export function
|
|
3725
|
+
export function divideAndRoundUp(
|
|
3291
3726
|
tx: Transaction,
|
|
3292
|
-
args: [number | TransactionArgument],
|
|
3293
|
-
): TransactionArgument & [TransactionArgument] {
|
|
3727
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3728
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3294
3729
|
const _args: any[] = [];
|
|
3295
3730
|
_args.push(transactionArgumentOrPureU16(args[0], tx));
|
|
3731
|
+
_args.push(transactionArgumentOrPureU16(args[1], tx));
|
|
3296
3732
|
|
|
3297
3733
|
// @ts-ignore
|
|
3298
3734
|
return tx.moveCall({
|
|
3299
|
-
target: "0x1::u16::
|
|
3735
|
+
target: "0x1::u16::divide_and_round_up",
|
|
3300
3736
|
arguments: _args,
|
|
3301
3737
|
});
|
|
3302
3738
|
}
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
builder.bitwiseNot(tx, args);
|
|
3311
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3312
|
-
transactionBlock: tx,
|
|
3313
|
-
sender: ZERO_ADDRESS,
|
|
3314
|
-
});
|
|
3739
|
+
export function losslessDiv(
|
|
3740
|
+
tx: Transaction,
|
|
3741
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3742
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3743
|
+
const _args: any[] = [];
|
|
3744
|
+
_args.push(transactionArgumentOrPureU16(args[0], tx));
|
|
3745
|
+
_args.push(transactionArgumentOrPureU16(args[1], tx));
|
|
3315
3746
|
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
export async function diff(
|
|
3321
|
-
client: SuiClient,
|
|
3322
|
-
args: [number, number],
|
|
3323
|
-
): Promise<TypedDevInspectResults<[number]>> {
|
|
3324
|
-
const tx = new Transaction();
|
|
3325
|
-
builder.diff(tx, args);
|
|
3326
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3327
|
-
transactionBlock: tx,
|
|
3328
|
-
sender: ZERO_ADDRESS,
|
|
3747
|
+
// @ts-ignore
|
|
3748
|
+
return tx.moveCall({
|
|
3749
|
+
target: "0x1::u16::lossless_div",
|
|
3750
|
+
arguments: _args,
|
|
3329
3751
|
});
|
|
3752
|
+
}
|
|
3753
|
+
export function losslessShl(
|
|
3754
|
+
tx: Transaction,
|
|
3755
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3756
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3757
|
+
const _args: any[] = [];
|
|
3758
|
+
_args.push(transactionArgumentOrPureU16(args[0], tx));
|
|
3759
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
3330
3760
|
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3761
|
+
// @ts-ignore
|
|
3762
|
+
return tx.moveCall({
|
|
3763
|
+
target: "0x1::u16::lossless_shl",
|
|
3764
|
+
arguments: _args,
|
|
3765
|
+
});
|
|
3334
3766
|
}
|
|
3335
|
-
export
|
|
3336
|
-
|
|
3337
|
-
args: [number, number],
|
|
3338
|
-
):
|
|
3339
|
-
const
|
|
3767
|
+
export function losslessShr(
|
|
3768
|
+
tx: Transaction,
|
|
3769
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3770
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3771
|
+
const _args: any[] = [];
|
|
3772
|
+
_args.push(transactionArgumentOrPureU16(args[0], tx));
|
|
3773
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
3774
|
+
|
|
3775
|
+
// @ts-ignore
|
|
3776
|
+
return tx.moveCall({
|
|
3777
|
+
target: "0x1::u16::lossless_shr",
|
|
3778
|
+
arguments: _args,
|
|
3779
|
+
});
|
|
3780
|
+
}
|
|
3781
|
+
export function max(
|
|
3782
|
+
tx: Transaction,
|
|
3783
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3784
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3785
|
+
const _args: any[] = [];
|
|
3786
|
+
_args.push(transactionArgumentOrPureU16(args[0], tx));
|
|
3787
|
+
_args.push(transactionArgumentOrPureU16(args[1], tx));
|
|
3788
|
+
|
|
3789
|
+
// @ts-ignore
|
|
3790
|
+
return tx.moveCall({
|
|
3791
|
+
target: "0x1::u16::max",
|
|
3792
|
+
arguments: _args,
|
|
3793
|
+
});
|
|
3794
|
+
}
|
|
3795
|
+
export function min(
|
|
3796
|
+
tx: Transaction,
|
|
3797
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3798
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3799
|
+
const _args: any[] = [];
|
|
3800
|
+
_args.push(transactionArgumentOrPureU16(args[0], tx));
|
|
3801
|
+
_args.push(transactionArgumentOrPureU16(args[1], tx));
|
|
3802
|
+
|
|
3803
|
+
// @ts-ignore
|
|
3804
|
+
return tx.moveCall({
|
|
3805
|
+
target: "0x1::u16::min",
|
|
3806
|
+
arguments: _args,
|
|
3807
|
+
});
|
|
3808
|
+
}
|
|
3809
|
+
export function pow(
|
|
3810
|
+
tx: Transaction,
|
|
3811
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3812
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3813
|
+
const _args: any[] = [];
|
|
3814
|
+
_args.push(transactionArgumentOrPureU16(args[0], tx));
|
|
3815
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
3816
|
+
|
|
3817
|
+
// @ts-ignore
|
|
3818
|
+
return tx.moveCall({
|
|
3819
|
+
target: "0x1::u16::pow",
|
|
3820
|
+
arguments: _args,
|
|
3821
|
+
});
|
|
3822
|
+
}
|
|
3823
|
+
export function saturatingAdd(
|
|
3824
|
+
tx: Transaction,
|
|
3825
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3826
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3827
|
+
const _args: any[] = [];
|
|
3828
|
+
_args.push(transactionArgumentOrPureU16(args[0], tx));
|
|
3829
|
+
_args.push(transactionArgumentOrPureU16(args[1], tx));
|
|
3830
|
+
|
|
3831
|
+
// @ts-ignore
|
|
3832
|
+
return tx.moveCall({
|
|
3833
|
+
target: "0x1::u16::saturating_add",
|
|
3834
|
+
arguments: _args,
|
|
3835
|
+
});
|
|
3836
|
+
}
|
|
3837
|
+
export function saturatingMul(
|
|
3838
|
+
tx: Transaction,
|
|
3839
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3840
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3841
|
+
const _args: any[] = [];
|
|
3842
|
+
_args.push(transactionArgumentOrPureU16(args[0], tx));
|
|
3843
|
+
_args.push(transactionArgumentOrPureU16(args[1], tx));
|
|
3844
|
+
|
|
3845
|
+
// @ts-ignore
|
|
3846
|
+
return tx.moveCall({
|
|
3847
|
+
target: "0x1::u16::saturating_mul",
|
|
3848
|
+
arguments: _args,
|
|
3849
|
+
});
|
|
3850
|
+
}
|
|
3851
|
+
export function saturatingSub(
|
|
3852
|
+
tx: Transaction,
|
|
3853
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
3854
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
3855
|
+
const _args: any[] = [];
|
|
3856
|
+
_args.push(transactionArgumentOrPureU16(args[0], tx));
|
|
3857
|
+
_args.push(transactionArgumentOrPureU16(args[1], tx));
|
|
3858
|
+
|
|
3859
|
+
// @ts-ignore
|
|
3860
|
+
return tx.moveCall({
|
|
3861
|
+
target: "0x1::u16::saturating_sub",
|
|
3862
|
+
arguments: _args,
|
|
3863
|
+
});
|
|
3864
|
+
}
|
|
3865
|
+
export function sqrt(
|
|
3866
|
+
tx: Transaction,
|
|
3867
|
+
args: [number | TransactionArgument],
|
|
3868
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3869
|
+
const _args: any[] = [];
|
|
3870
|
+
_args.push(transactionArgumentOrPureU16(args[0], tx));
|
|
3871
|
+
|
|
3872
|
+
// @ts-ignore
|
|
3873
|
+
return tx.moveCall({
|
|
3874
|
+
target: "0x1::u16::sqrt",
|
|
3875
|
+
arguments: _args,
|
|
3876
|
+
});
|
|
3877
|
+
}
|
|
3878
|
+
export function toString(
|
|
3879
|
+
tx: Transaction,
|
|
3880
|
+
args: [number | TransactionArgument],
|
|
3881
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3882
|
+
const _args: any[] = [];
|
|
3883
|
+
_args.push(transactionArgumentOrPureU16(args[0], tx));
|
|
3884
|
+
|
|
3885
|
+
// @ts-ignore
|
|
3886
|
+
return tx.moveCall({
|
|
3887
|
+
target: "0x1::u16::to_string",
|
|
3888
|
+
arguments: _args,
|
|
3889
|
+
});
|
|
3890
|
+
}
|
|
3891
|
+
export function tryAsU8(
|
|
3892
|
+
tx: Transaction,
|
|
3893
|
+
args: [number | TransactionArgument],
|
|
3894
|
+
): TransactionArgument & [TransactionArgument] {
|
|
3895
|
+
const _args: any[] = [];
|
|
3896
|
+
_args.push(transactionArgumentOrPureU16(args[0], tx));
|
|
3897
|
+
|
|
3898
|
+
// @ts-ignore
|
|
3899
|
+
return tx.moveCall({
|
|
3900
|
+
target: "0x1::u16::try_as_u8",
|
|
3901
|
+
arguments: _args,
|
|
3902
|
+
});
|
|
3903
|
+
}
|
|
3904
|
+
}
|
|
3905
|
+
export namespace view {
|
|
3906
|
+
export async function bitwiseNot(
|
|
3907
|
+
client: SuiClient,
|
|
3908
|
+
args: [number],
|
|
3909
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
3910
|
+
const tx = new Transaction();
|
|
3911
|
+
builder.bitwiseNot(tx, args);
|
|
3912
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3913
|
+
transactionBlock: tx,
|
|
3914
|
+
sender: ZERO_ADDRESS,
|
|
3915
|
+
});
|
|
3916
|
+
|
|
3917
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
3918
|
+
inspectRes,
|
|
3919
|
+
);
|
|
3920
|
+
}
|
|
3921
|
+
export async function checkedAdd(
|
|
3922
|
+
client: SuiClient,
|
|
3923
|
+
args: [number, number],
|
|
3924
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
3925
|
+
const tx = new Transaction();
|
|
3926
|
+
builder.checkedAdd(tx, args);
|
|
3927
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3928
|
+
transactionBlock: tx,
|
|
3929
|
+
sender: ZERO_ADDRESS,
|
|
3930
|
+
});
|
|
3931
|
+
|
|
3932
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3933
|
+
[option.Option<number>]
|
|
3934
|
+
>(inspectRes);
|
|
3935
|
+
}
|
|
3936
|
+
export async function checkedDiv(
|
|
3937
|
+
client: SuiClient,
|
|
3938
|
+
args: [number, number],
|
|
3939
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
3940
|
+
const tx = new Transaction();
|
|
3941
|
+
builder.checkedDiv(tx, args);
|
|
3942
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3943
|
+
transactionBlock: tx,
|
|
3944
|
+
sender: ZERO_ADDRESS,
|
|
3945
|
+
});
|
|
3946
|
+
|
|
3947
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3948
|
+
[option.Option<number>]
|
|
3949
|
+
>(inspectRes);
|
|
3950
|
+
}
|
|
3951
|
+
export async function checkedMul(
|
|
3952
|
+
client: SuiClient,
|
|
3953
|
+
args: [number, number],
|
|
3954
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
3955
|
+
const tx = new Transaction();
|
|
3956
|
+
builder.checkedMul(tx, args);
|
|
3957
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3958
|
+
transactionBlock: tx,
|
|
3959
|
+
sender: ZERO_ADDRESS,
|
|
3960
|
+
});
|
|
3961
|
+
|
|
3962
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3963
|
+
[option.Option<number>]
|
|
3964
|
+
>(inspectRes);
|
|
3965
|
+
}
|
|
3966
|
+
export async function checkedShl(
|
|
3967
|
+
client: SuiClient,
|
|
3968
|
+
args: [number, number],
|
|
3969
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
3970
|
+
const tx = new Transaction();
|
|
3971
|
+
builder.checkedShl(tx, args);
|
|
3972
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3973
|
+
transactionBlock: tx,
|
|
3974
|
+
sender: ZERO_ADDRESS,
|
|
3975
|
+
});
|
|
3976
|
+
|
|
3977
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3978
|
+
[option.Option<number>]
|
|
3979
|
+
>(inspectRes);
|
|
3980
|
+
}
|
|
3981
|
+
export async function checkedShr(
|
|
3982
|
+
client: SuiClient,
|
|
3983
|
+
args: [number, number],
|
|
3984
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
3985
|
+
const tx = new Transaction();
|
|
3986
|
+
builder.checkedShr(tx, args);
|
|
3987
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3988
|
+
transactionBlock: tx,
|
|
3989
|
+
sender: ZERO_ADDRESS,
|
|
3990
|
+
});
|
|
3991
|
+
|
|
3992
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3993
|
+
[option.Option<number>]
|
|
3994
|
+
>(inspectRes);
|
|
3995
|
+
}
|
|
3996
|
+
export async function checkedSub(
|
|
3997
|
+
client: SuiClient,
|
|
3998
|
+
args: [number, number],
|
|
3999
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
4000
|
+
const tx = new Transaction();
|
|
4001
|
+
builder.checkedSub(tx, args);
|
|
4002
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4003
|
+
transactionBlock: tx,
|
|
4004
|
+
sender: ZERO_ADDRESS,
|
|
4005
|
+
});
|
|
4006
|
+
|
|
4007
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
4008
|
+
[option.Option<number>]
|
|
4009
|
+
>(inspectRes);
|
|
4010
|
+
}
|
|
4011
|
+
export async function diff(
|
|
4012
|
+
client: SuiClient,
|
|
4013
|
+
args: [number, number],
|
|
4014
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
4015
|
+
const tx = new Transaction();
|
|
4016
|
+
builder.diff(tx, args);
|
|
4017
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4018
|
+
transactionBlock: tx,
|
|
4019
|
+
sender: ZERO_ADDRESS,
|
|
4020
|
+
});
|
|
4021
|
+
|
|
4022
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
4023
|
+
inspectRes,
|
|
4024
|
+
);
|
|
4025
|
+
}
|
|
4026
|
+
export async function divideAndRoundUp(
|
|
4027
|
+
client: SuiClient,
|
|
4028
|
+
args: [number, number],
|
|
4029
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
4030
|
+
const tx = new Transaction();
|
|
3340
4031
|
builder.divideAndRoundUp(tx, args);
|
|
3341
4032
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3342
4033
|
transactionBlock: tx,
|
|
@@ -3347,6 +4038,51 @@ export namespace u16 {
|
|
|
3347
4038
|
inspectRes,
|
|
3348
4039
|
);
|
|
3349
4040
|
}
|
|
4041
|
+
export async function losslessDiv(
|
|
4042
|
+
client: SuiClient,
|
|
4043
|
+
args: [number, number],
|
|
4044
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
4045
|
+
const tx = new Transaction();
|
|
4046
|
+
builder.losslessDiv(tx, args);
|
|
4047
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4048
|
+
transactionBlock: tx,
|
|
4049
|
+
sender: ZERO_ADDRESS,
|
|
4050
|
+
});
|
|
4051
|
+
|
|
4052
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
4053
|
+
[option.Option<number>]
|
|
4054
|
+
>(inspectRes);
|
|
4055
|
+
}
|
|
4056
|
+
export async function losslessShl(
|
|
4057
|
+
client: SuiClient,
|
|
4058
|
+
args: [number, number],
|
|
4059
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
4060
|
+
const tx = new Transaction();
|
|
4061
|
+
builder.losslessShl(tx, args);
|
|
4062
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4063
|
+
transactionBlock: tx,
|
|
4064
|
+
sender: ZERO_ADDRESS,
|
|
4065
|
+
});
|
|
4066
|
+
|
|
4067
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
4068
|
+
[option.Option<number>]
|
|
4069
|
+
>(inspectRes);
|
|
4070
|
+
}
|
|
4071
|
+
export async function losslessShr(
|
|
4072
|
+
client: SuiClient,
|
|
4073
|
+
args: [number, number],
|
|
4074
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
4075
|
+
const tx = new Transaction();
|
|
4076
|
+
builder.losslessShr(tx, args);
|
|
4077
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4078
|
+
transactionBlock: tx,
|
|
4079
|
+
sender: ZERO_ADDRESS,
|
|
4080
|
+
});
|
|
4081
|
+
|
|
4082
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
4083
|
+
[option.Option<number>]
|
|
4084
|
+
>(inspectRes);
|
|
4085
|
+
}
|
|
3350
4086
|
export async function max(
|
|
3351
4087
|
client: SuiClient,
|
|
3352
4088
|
args: [number, number],
|
|
@@ -3377,12 +4113,57 @@ export namespace u16 {
|
|
|
3377
4113
|
inspectRes,
|
|
3378
4114
|
);
|
|
3379
4115
|
}
|
|
3380
|
-
export async function pow(
|
|
4116
|
+
export async function pow(
|
|
4117
|
+
client: SuiClient,
|
|
4118
|
+
args: [number, number],
|
|
4119
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
4120
|
+
const tx = new Transaction();
|
|
4121
|
+
builder.pow(tx, args);
|
|
4122
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4123
|
+
transactionBlock: tx,
|
|
4124
|
+
sender: ZERO_ADDRESS,
|
|
4125
|
+
});
|
|
4126
|
+
|
|
4127
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
4128
|
+
inspectRes,
|
|
4129
|
+
);
|
|
4130
|
+
}
|
|
4131
|
+
export async function saturatingAdd(
|
|
4132
|
+
client: SuiClient,
|
|
4133
|
+
args: [number, number],
|
|
4134
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
4135
|
+
const tx = new Transaction();
|
|
4136
|
+
builder.saturatingAdd(tx, args);
|
|
4137
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4138
|
+
transactionBlock: tx,
|
|
4139
|
+
sender: ZERO_ADDRESS,
|
|
4140
|
+
});
|
|
4141
|
+
|
|
4142
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
4143
|
+
inspectRes,
|
|
4144
|
+
);
|
|
4145
|
+
}
|
|
4146
|
+
export async function saturatingMul(
|
|
4147
|
+
client: SuiClient,
|
|
4148
|
+
args: [number, number],
|
|
4149
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
4150
|
+
const tx = new Transaction();
|
|
4151
|
+
builder.saturatingMul(tx, args);
|
|
4152
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4153
|
+
transactionBlock: tx,
|
|
4154
|
+
sender: ZERO_ADDRESS,
|
|
4155
|
+
});
|
|
4156
|
+
|
|
4157
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
4158
|
+
inspectRes,
|
|
4159
|
+
);
|
|
4160
|
+
}
|
|
4161
|
+
export async function saturatingSub(
|
|
3381
4162
|
client: SuiClient,
|
|
3382
4163
|
args: [number, number],
|
|
3383
4164
|
): Promise<TypedDevInspectResults<[number]>> {
|
|
3384
4165
|
const tx = new Transaction();
|
|
3385
|
-
builder.
|
|
4166
|
+
builder.saturatingSub(tx, args);
|
|
3386
4167
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3387
4168
|
transactionBlock: tx,
|
|
3388
4169
|
sender: ZERO_ADDRESS,
|
|
@@ -3455,6 +4236,62 @@ export namespace u256 {
|
|
|
3455
4236
|
arguments: _args,
|
|
3456
4237
|
});
|
|
3457
4238
|
}
|
|
4239
|
+
export function checkedAdd(
|
|
4240
|
+
tx: Transaction,
|
|
4241
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
4242
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4243
|
+
const _args: any[] = [];
|
|
4244
|
+
_args.push(transactionArgumentOrPureU256(args[0], tx));
|
|
4245
|
+
_args.push(transactionArgumentOrPureU256(args[1], tx));
|
|
4246
|
+
|
|
4247
|
+
// @ts-ignore
|
|
4248
|
+
return tx.moveCall({
|
|
4249
|
+
target: "0x1::u256::checked_add",
|
|
4250
|
+
arguments: _args,
|
|
4251
|
+
});
|
|
4252
|
+
}
|
|
4253
|
+
export function checkedDiv(
|
|
4254
|
+
tx: Transaction,
|
|
4255
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
4256
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4257
|
+
const _args: any[] = [];
|
|
4258
|
+
_args.push(transactionArgumentOrPureU256(args[0], tx));
|
|
4259
|
+
_args.push(transactionArgumentOrPureU256(args[1], tx));
|
|
4260
|
+
|
|
4261
|
+
// @ts-ignore
|
|
4262
|
+
return tx.moveCall({
|
|
4263
|
+
target: "0x1::u256::checked_div",
|
|
4264
|
+
arguments: _args,
|
|
4265
|
+
});
|
|
4266
|
+
}
|
|
4267
|
+
export function checkedMul(
|
|
4268
|
+
tx: Transaction,
|
|
4269
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
4270
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4271
|
+
const _args: any[] = [];
|
|
4272
|
+
_args.push(transactionArgumentOrPureU256(args[0], tx));
|
|
4273
|
+
_args.push(transactionArgumentOrPureU256(args[1], tx));
|
|
4274
|
+
|
|
4275
|
+
// @ts-ignore
|
|
4276
|
+
return tx.moveCall({
|
|
4277
|
+
target: "0x1::u256::checked_mul",
|
|
4278
|
+
arguments: _args,
|
|
4279
|
+
});
|
|
4280
|
+
}
|
|
4281
|
+
export function checkedSub(
|
|
4282
|
+
tx: Transaction,
|
|
4283
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
4284
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4285
|
+
const _args: any[] = [];
|
|
4286
|
+
_args.push(transactionArgumentOrPureU256(args[0], tx));
|
|
4287
|
+
_args.push(transactionArgumentOrPureU256(args[1], tx));
|
|
4288
|
+
|
|
4289
|
+
// @ts-ignore
|
|
4290
|
+
return tx.moveCall({
|
|
4291
|
+
target: "0x1::u256::checked_sub",
|
|
4292
|
+
arguments: _args,
|
|
4293
|
+
});
|
|
4294
|
+
}
|
|
3458
4295
|
export function diff(
|
|
3459
4296
|
tx: Transaction,
|
|
3460
4297
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
@@ -3483,6 +4320,48 @@ export namespace u256 {
|
|
|
3483
4320
|
arguments: _args,
|
|
3484
4321
|
});
|
|
3485
4322
|
}
|
|
4323
|
+
export function losslessDiv(
|
|
4324
|
+
tx: Transaction,
|
|
4325
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
4326
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4327
|
+
const _args: any[] = [];
|
|
4328
|
+
_args.push(transactionArgumentOrPureU256(args[0], tx));
|
|
4329
|
+
_args.push(transactionArgumentOrPureU256(args[1], tx));
|
|
4330
|
+
|
|
4331
|
+
// @ts-ignore
|
|
4332
|
+
return tx.moveCall({
|
|
4333
|
+
target: "0x1::u256::lossless_div",
|
|
4334
|
+
arguments: _args,
|
|
4335
|
+
});
|
|
4336
|
+
}
|
|
4337
|
+
export function losslessShl(
|
|
4338
|
+
tx: Transaction,
|
|
4339
|
+
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
4340
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4341
|
+
const _args: any[] = [];
|
|
4342
|
+
_args.push(transactionArgumentOrPureU256(args[0], tx));
|
|
4343
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
4344
|
+
|
|
4345
|
+
// @ts-ignore
|
|
4346
|
+
return tx.moveCall({
|
|
4347
|
+
target: "0x1::u256::lossless_shl",
|
|
4348
|
+
arguments: _args,
|
|
4349
|
+
});
|
|
4350
|
+
}
|
|
4351
|
+
export function losslessShr(
|
|
4352
|
+
tx: Transaction,
|
|
4353
|
+
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
4354
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4355
|
+
const _args: any[] = [];
|
|
4356
|
+
_args.push(transactionArgumentOrPureU256(args[0], tx));
|
|
4357
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
4358
|
+
|
|
4359
|
+
// @ts-ignore
|
|
4360
|
+
return tx.moveCall({
|
|
4361
|
+
target: "0x1::u256::lossless_shr",
|
|
4362
|
+
arguments: _args,
|
|
4363
|
+
});
|
|
4364
|
+
}
|
|
3486
4365
|
export function max(
|
|
3487
4366
|
tx: Transaction,
|
|
3488
4367
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
@@ -3525,6 +4404,48 @@ export namespace u256 {
|
|
|
3525
4404
|
arguments: _args,
|
|
3526
4405
|
});
|
|
3527
4406
|
}
|
|
4407
|
+
export function saturatingAdd(
|
|
4408
|
+
tx: Transaction,
|
|
4409
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
4410
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4411
|
+
const _args: any[] = [];
|
|
4412
|
+
_args.push(transactionArgumentOrPureU256(args[0], tx));
|
|
4413
|
+
_args.push(transactionArgumentOrPureU256(args[1], tx));
|
|
4414
|
+
|
|
4415
|
+
// @ts-ignore
|
|
4416
|
+
return tx.moveCall({
|
|
4417
|
+
target: "0x1::u256::saturating_add",
|
|
4418
|
+
arguments: _args,
|
|
4419
|
+
});
|
|
4420
|
+
}
|
|
4421
|
+
export function saturatingMul(
|
|
4422
|
+
tx: Transaction,
|
|
4423
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
4424
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4425
|
+
const _args: any[] = [];
|
|
4426
|
+
_args.push(transactionArgumentOrPureU256(args[0], tx));
|
|
4427
|
+
_args.push(transactionArgumentOrPureU256(args[1], tx));
|
|
4428
|
+
|
|
4429
|
+
// @ts-ignore
|
|
4430
|
+
return tx.moveCall({
|
|
4431
|
+
target: "0x1::u256::saturating_mul",
|
|
4432
|
+
arguments: _args,
|
|
4433
|
+
});
|
|
4434
|
+
}
|
|
4435
|
+
export function saturatingSub(
|
|
4436
|
+
tx: Transaction,
|
|
4437
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
4438
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4439
|
+
const _args: any[] = [];
|
|
4440
|
+
_args.push(transactionArgumentOrPureU256(args[0], tx));
|
|
4441
|
+
_args.push(transactionArgumentOrPureU256(args[1], tx));
|
|
4442
|
+
|
|
4443
|
+
// @ts-ignore
|
|
4444
|
+
return tx.moveCall({
|
|
4445
|
+
target: "0x1::u256::saturating_sub",
|
|
4446
|
+
arguments: _args,
|
|
4447
|
+
});
|
|
4448
|
+
}
|
|
3528
4449
|
export function toString(
|
|
3529
4450
|
tx: Transaction,
|
|
3530
4451
|
args: [bigint | TransactionArgument],
|
|
@@ -3607,10 +4528,160 @@ export namespace u256 {
|
|
|
3607
4528
|
export namespace view {
|
|
3608
4529
|
export async function bitwiseNot(
|
|
3609
4530
|
client: SuiClient,
|
|
3610
|
-
args: [bigint],
|
|
4531
|
+
args: [bigint],
|
|
4532
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4533
|
+
const tx = new Transaction();
|
|
4534
|
+
builder.bitwiseNot(tx, args);
|
|
4535
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4536
|
+
transactionBlock: tx,
|
|
4537
|
+
sender: ZERO_ADDRESS,
|
|
4538
|
+
});
|
|
4539
|
+
|
|
4540
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
4541
|
+
inspectRes,
|
|
4542
|
+
);
|
|
4543
|
+
}
|
|
4544
|
+
export async function checkedAdd(
|
|
4545
|
+
client: SuiClient,
|
|
4546
|
+
args: [bigint, bigint],
|
|
4547
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
4548
|
+
const tx = new Transaction();
|
|
4549
|
+
builder.checkedAdd(tx, args);
|
|
4550
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4551
|
+
transactionBlock: tx,
|
|
4552
|
+
sender: ZERO_ADDRESS,
|
|
4553
|
+
});
|
|
4554
|
+
|
|
4555
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
4556
|
+
[option.Option<bigint>]
|
|
4557
|
+
>(inspectRes);
|
|
4558
|
+
}
|
|
4559
|
+
export async function checkedDiv(
|
|
4560
|
+
client: SuiClient,
|
|
4561
|
+
args: [bigint, bigint],
|
|
4562
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
4563
|
+
const tx = new Transaction();
|
|
4564
|
+
builder.checkedDiv(tx, args);
|
|
4565
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4566
|
+
transactionBlock: tx,
|
|
4567
|
+
sender: ZERO_ADDRESS,
|
|
4568
|
+
});
|
|
4569
|
+
|
|
4570
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
4571
|
+
[option.Option<bigint>]
|
|
4572
|
+
>(inspectRes);
|
|
4573
|
+
}
|
|
4574
|
+
export async function checkedMul(
|
|
4575
|
+
client: SuiClient,
|
|
4576
|
+
args: [bigint, bigint],
|
|
4577
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
4578
|
+
const tx = new Transaction();
|
|
4579
|
+
builder.checkedMul(tx, args);
|
|
4580
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4581
|
+
transactionBlock: tx,
|
|
4582
|
+
sender: ZERO_ADDRESS,
|
|
4583
|
+
});
|
|
4584
|
+
|
|
4585
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
4586
|
+
[option.Option<bigint>]
|
|
4587
|
+
>(inspectRes);
|
|
4588
|
+
}
|
|
4589
|
+
export async function checkedSub(
|
|
4590
|
+
client: SuiClient,
|
|
4591
|
+
args: [bigint, bigint],
|
|
4592
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
4593
|
+
const tx = new Transaction();
|
|
4594
|
+
builder.checkedSub(tx, args);
|
|
4595
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4596
|
+
transactionBlock: tx,
|
|
4597
|
+
sender: ZERO_ADDRESS,
|
|
4598
|
+
});
|
|
4599
|
+
|
|
4600
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
4601
|
+
[option.Option<bigint>]
|
|
4602
|
+
>(inspectRes);
|
|
4603
|
+
}
|
|
4604
|
+
export async function diff(
|
|
4605
|
+
client: SuiClient,
|
|
4606
|
+
args: [bigint, bigint],
|
|
4607
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4608
|
+
const tx = new Transaction();
|
|
4609
|
+
builder.diff(tx, args);
|
|
4610
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4611
|
+
transactionBlock: tx,
|
|
4612
|
+
sender: ZERO_ADDRESS,
|
|
4613
|
+
});
|
|
4614
|
+
|
|
4615
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
4616
|
+
inspectRes,
|
|
4617
|
+
);
|
|
4618
|
+
}
|
|
4619
|
+
export async function divideAndRoundUp(
|
|
4620
|
+
client: SuiClient,
|
|
4621
|
+
args: [bigint, bigint],
|
|
4622
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4623
|
+
const tx = new Transaction();
|
|
4624
|
+
builder.divideAndRoundUp(tx, args);
|
|
4625
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4626
|
+
transactionBlock: tx,
|
|
4627
|
+
sender: ZERO_ADDRESS,
|
|
4628
|
+
});
|
|
4629
|
+
|
|
4630
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
4631
|
+
inspectRes,
|
|
4632
|
+
);
|
|
4633
|
+
}
|
|
4634
|
+
export async function losslessDiv(
|
|
4635
|
+
client: SuiClient,
|
|
4636
|
+
args: [bigint, bigint],
|
|
4637
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
4638
|
+
const tx = new Transaction();
|
|
4639
|
+
builder.losslessDiv(tx, args);
|
|
4640
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4641
|
+
transactionBlock: tx,
|
|
4642
|
+
sender: ZERO_ADDRESS,
|
|
4643
|
+
});
|
|
4644
|
+
|
|
4645
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
4646
|
+
[option.Option<bigint>]
|
|
4647
|
+
>(inspectRes);
|
|
4648
|
+
}
|
|
4649
|
+
export async function losslessShl(
|
|
4650
|
+
client: SuiClient,
|
|
4651
|
+
args: [bigint, number],
|
|
4652
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
4653
|
+
const tx = new Transaction();
|
|
4654
|
+
builder.losslessShl(tx, args);
|
|
4655
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4656
|
+
transactionBlock: tx,
|
|
4657
|
+
sender: ZERO_ADDRESS,
|
|
4658
|
+
});
|
|
4659
|
+
|
|
4660
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
4661
|
+
[option.Option<bigint>]
|
|
4662
|
+
>(inspectRes);
|
|
4663
|
+
}
|
|
4664
|
+
export async function losslessShr(
|
|
4665
|
+
client: SuiClient,
|
|
4666
|
+
args: [bigint, number],
|
|
4667
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
4668
|
+
const tx = new Transaction();
|
|
4669
|
+
builder.losslessShr(tx, args);
|
|
4670
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4671
|
+
transactionBlock: tx,
|
|
4672
|
+
sender: ZERO_ADDRESS,
|
|
4673
|
+
});
|
|
4674
|
+
|
|
4675
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
4676
|
+
[option.Option<bigint>]
|
|
4677
|
+
>(inspectRes);
|
|
4678
|
+
}
|
|
4679
|
+
export async function max(
|
|
4680
|
+
client: SuiClient,
|
|
4681
|
+
args: [bigint, bigint],
|
|
3611
4682
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3612
4683
|
const tx = new Transaction();
|
|
3613
|
-
builder.
|
|
4684
|
+
builder.max(tx, args);
|
|
3614
4685
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3615
4686
|
transactionBlock: tx,
|
|
3616
4687
|
sender: ZERO_ADDRESS,
|
|
@@ -3620,12 +4691,12 @@ export namespace u256 {
|
|
|
3620
4691
|
inspectRes,
|
|
3621
4692
|
);
|
|
3622
4693
|
}
|
|
3623
|
-
export async function
|
|
4694
|
+
export async function min(
|
|
3624
4695
|
client: SuiClient,
|
|
3625
4696
|
args: [bigint, bigint],
|
|
3626
4697
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3627
4698
|
const tx = new Transaction();
|
|
3628
|
-
builder.
|
|
4699
|
+
builder.min(tx, args);
|
|
3629
4700
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3630
4701
|
transactionBlock: tx,
|
|
3631
4702
|
sender: ZERO_ADDRESS,
|
|
@@ -3635,12 +4706,12 @@ export namespace u256 {
|
|
|
3635
4706
|
inspectRes,
|
|
3636
4707
|
);
|
|
3637
4708
|
}
|
|
3638
|
-
export async function
|
|
4709
|
+
export async function pow(
|
|
3639
4710
|
client: SuiClient,
|
|
3640
|
-
args: [bigint,
|
|
4711
|
+
args: [bigint, number],
|
|
3641
4712
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3642
4713
|
const tx = new Transaction();
|
|
3643
|
-
builder.
|
|
4714
|
+
builder.pow(tx, args);
|
|
3644
4715
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3645
4716
|
transactionBlock: tx,
|
|
3646
4717
|
sender: ZERO_ADDRESS,
|
|
@@ -3650,12 +4721,12 @@ export namespace u256 {
|
|
|
3650
4721
|
inspectRes,
|
|
3651
4722
|
);
|
|
3652
4723
|
}
|
|
3653
|
-
export async function
|
|
4724
|
+
export async function saturatingAdd(
|
|
3654
4725
|
client: SuiClient,
|
|
3655
4726
|
args: [bigint, bigint],
|
|
3656
4727
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3657
4728
|
const tx = new Transaction();
|
|
3658
|
-
builder.
|
|
4729
|
+
builder.saturatingAdd(tx, args);
|
|
3659
4730
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3660
4731
|
transactionBlock: tx,
|
|
3661
4732
|
sender: ZERO_ADDRESS,
|
|
@@ -3665,12 +4736,12 @@ export namespace u256 {
|
|
|
3665
4736
|
inspectRes,
|
|
3666
4737
|
);
|
|
3667
4738
|
}
|
|
3668
|
-
export async function
|
|
4739
|
+
export async function saturatingMul(
|
|
3669
4740
|
client: SuiClient,
|
|
3670
4741
|
args: [bigint, bigint],
|
|
3671
4742
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3672
4743
|
const tx = new Transaction();
|
|
3673
|
-
builder.
|
|
4744
|
+
builder.saturatingMul(tx, args);
|
|
3674
4745
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3675
4746
|
transactionBlock: tx,
|
|
3676
4747
|
sender: ZERO_ADDRESS,
|
|
@@ -3680,12 +4751,12 @@ export namespace u256 {
|
|
|
3680
4751
|
inspectRes,
|
|
3681
4752
|
);
|
|
3682
4753
|
}
|
|
3683
|
-
export async function
|
|
4754
|
+
export async function saturatingSub(
|
|
3684
4755
|
client: SuiClient,
|
|
3685
|
-
args: [bigint,
|
|
4756
|
+
args: [bigint, bigint],
|
|
3686
4757
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3687
4758
|
const tx = new Transaction();
|
|
3688
|
-
builder.
|
|
4759
|
+
builder.saturatingSub(tx, args);
|
|
3689
4760
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3690
4761
|
transactionBlock: tx,
|
|
3691
4762
|
sender: ZERO_ADDRESS,
|
|
@@ -3803,6 +4874,90 @@ export namespace u32 {
|
|
|
3803
4874
|
arguments: _args,
|
|
3804
4875
|
});
|
|
3805
4876
|
}
|
|
4877
|
+
export function checkedAdd(
|
|
4878
|
+
tx: Transaction,
|
|
4879
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
4880
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4881
|
+
const _args: any[] = [];
|
|
4882
|
+
_args.push(transactionArgumentOrPureU32(args[0], tx));
|
|
4883
|
+
_args.push(transactionArgumentOrPureU32(args[1], tx));
|
|
4884
|
+
|
|
4885
|
+
// @ts-ignore
|
|
4886
|
+
return tx.moveCall({
|
|
4887
|
+
target: "0x1::u32::checked_add",
|
|
4888
|
+
arguments: _args,
|
|
4889
|
+
});
|
|
4890
|
+
}
|
|
4891
|
+
export function checkedDiv(
|
|
4892
|
+
tx: Transaction,
|
|
4893
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
4894
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4895
|
+
const _args: any[] = [];
|
|
4896
|
+
_args.push(transactionArgumentOrPureU32(args[0], tx));
|
|
4897
|
+
_args.push(transactionArgumentOrPureU32(args[1], tx));
|
|
4898
|
+
|
|
4899
|
+
// @ts-ignore
|
|
4900
|
+
return tx.moveCall({
|
|
4901
|
+
target: "0x1::u32::checked_div",
|
|
4902
|
+
arguments: _args,
|
|
4903
|
+
});
|
|
4904
|
+
}
|
|
4905
|
+
export function checkedMul(
|
|
4906
|
+
tx: Transaction,
|
|
4907
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
4908
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4909
|
+
const _args: any[] = [];
|
|
4910
|
+
_args.push(transactionArgumentOrPureU32(args[0], tx));
|
|
4911
|
+
_args.push(transactionArgumentOrPureU32(args[1], tx));
|
|
4912
|
+
|
|
4913
|
+
// @ts-ignore
|
|
4914
|
+
return tx.moveCall({
|
|
4915
|
+
target: "0x1::u32::checked_mul",
|
|
4916
|
+
arguments: _args,
|
|
4917
|
+
});
|
|
4918
|
+
}
|
|
4919
|
+
export function checkedShl(
|
|
4920
|
+
tx: Transaction,
|
|
4921
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
4922
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4923
|
+
const _args: any[] = [];
|
|
4924
|
+
_args.push(transactionArgumentOrPureU32(args[0], tx));
|
|
4925
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
4926
|
+
|
|
4927
|
+
// @ts-ignore
|
|
4928
|
+
return tx.moveCall({
|
|
4929
|
+
target: "0x1::u32::checked_shl",
|
|
4930
|
+
arguments: _args,
|
|
4931
|
+
});
|
|
4932
|
+
}
|
|
4933
|
+
export function checkedShr(
|
|
4934
|
+
tx: Transaction,
|
|
4935
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
4936
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4937
|
+
const _args: any[] = [];
|
|
4938
|
+
_args.push(transactionArgumentOrPureU32(args[0], tx));
|
|
4939
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
4940
|
+
|
|
4941
|
+
// @ts-ignore
|
|
4942
|
+
return tx.moveCall({
|
|
4943
|
+
target: "0x1::u32::checked_shr",
|
|
4944
|
+
arguments: _args,
|
|
4945
|
+
});
|
|
4946
|
+
}
|
|
4947
|
+
export function checkedSub(
|
|
4948
|
+
tx: Transaction,
|
|
4949
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
4950
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4951
|
+
const _args: any[] = [];
|
|
4952
|
+
_args.push(transactionArgumentOrPureU32(args[0], tx));
|
|
4953
|
+
_args.push(transactionArgumentOrPureU32(args[1], tx));
|
|
4954
|
+
|
|
4955
|
+
// @ts-ignore
|
|
4956
|
+
return tx.moveCall({
|
|
4957
|
+
target: "0x1::u32::checked_sub",
|
|
4958
|
+
arguments: _args,
|
|
4959
|
+
});
|
|
4960
|
+
}
|
|
3806
4961
|
export function diff(
|
|
3807
4962
|
tx: Transaction,
|
|
3808
4963
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
@@ -3831,6 +4986,48 @@ export namespace u32 {
|
|
|
3831
4986
|
arguments: _args,
|
|
3832
4987
|
});
|
|
3833
4988
|
}
|
|
4989
|
+
export function losslessDiv(
|
|
4990
|
+
tx: Transaction,
|
|
4991
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
4992
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4993
|
+
const _args: any[] = [];
|
|
4994
|
+
_args.push(transactionArgumentOrPureU32(args[0], tx));
|
|
4995
|
+
_args.push(transactionArgumentOrPureU32(args[1], tx));
|
|
4996
|
+
|
|
4997
|
+
// @ts-ignore
|
|
4998
|
+
return tx.moveCall({
|
|
4999
|
+
target: "0x1::u32::lossless_div",
|
|
5000
|
+
arguments: _args,
|
|
5001
|
+
});
|
|
5002
|
+
}
|
|
5003
|
+
export function losslessShl(
|
|
5004
|
+
tx: Transaction,
|
|
5005
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
5006
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
5007
|
+
const _args: any[] = [];
|
|
5008
|
+
_args.push(transactionArgumentOrPureU32(args[0], tx));
|
|
5009
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
5010
|
+
|
|
5011
|
+
// @ts-ignore
|
|
5012
|
+
return tx.moveCall({
|
|
5013
|
+
target: "0x1::u32::lossless_shl",
|
|
5014
|
+
arguments: _args,
|
|
5015
|
+
});
|
|
5016
|
+
}
|
|
5017
|
+
export function losslessShr(
|
|
5018
|
+
tx: Transaction,
|
|
5019
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
5020
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
5021
|
+
const _args: any[] = [];
|
|
5022
|
+
_args.push(transactionArgumentOrPureU32(args[0], tx));
|
|
5023
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
5024
|
+
|
|
5025
|
+
// @ts-ignore
|
|
5026
|
+
return tx.moveCall({
|
|
5027
|
+
target: "0x1::u32::lossless_shr",
|
|
5028
|
+
arguments: _args,
|
|
5029
|
+
});
|
|
5030
|
+
}
|
|
3834
5031
|
export function max(
|
|
3835
5032
|
tx: Transaction,
|
|
3836
5033
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
@@ -3873,6 +5070,48 @@ export namespace u32 {
|
|
|
3873
5070
|
arguments: _args,
|
|
3874
5071
|
});
|
|
3875
5072
|
}
|
|
5073
|
+
export function saturatingAdd(
|
|
5074
|
+
tx: Transaction,
|
|
5075
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
5076
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
5077
|
+
const _args: any[] = [];
|
|
5078
|
+
_args.push(transactionArgumentOrPureU32(args[0], tx));
|
|
5079
|
+
_args.push(transactionArgumentOrPureU32(args[1], tx));
|
|
5080
|
+
|
|
5081
|
+
// @ts-ignore
|
|
5082
|
+
return tx.moveCall({
|
|
5083
|
+
target: "0x1::u32::saturating_add",
|
|
5084
|
+
arguments: _args,
|
|
5085
|
+
});
|
|
5086
|
+
}
|
|
5087
|
+
export function saturatingMul(
|
|
5088
|
+
tx: Transaction,
|
|
5089
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
5090
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
5091
|
+
const _args: any[] = [];
|
|
5092
|
+
_args.push(transactionArgumentOrPureU32(args[0], tx));
|
|
5093
|
+
_args.push(transactionArgumentOrPureU32(args[1], tx));
|
|
5094
|
+
|
|
5095
|
+
// @ts-ignore
|
|
5096
|
+
return tx.moveCall({
|
|
5097
|
+
target: "0x1::u32::saturating_mul",
|
|
5098
|
+
arguments: _args,
|
|
5099
|
+
});
|
|
5100
|
+
}
|
|
5101
|
+
export function saturatingSub(
|
|
5102
|
+
tx: Transaction,
|
|
5103
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
5104
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
5105
|
+
const _args: any[] = [];
|
|
5106
|
+
_args.push(transactionArgumentOrPureU32(args[0], tx));
|
|
5107
|
+
_args.push(transactionArgumentOrPureU32(args[1], tx));
|
|
5108
|
+
|
|
5109
|
+
// @ts-ignore
|
|
5110
|
+
return tx.moveCall({
|
|
5111
|
+
target: "0x1::u32::saturating_sub",
|
|
5112
|
+
arguments: _args,
|
|
5113
|
+
});
|
|
5114
|
+
}
|
|
3876
5115
|
export function sqrt(
|
|
3877
5116
|
tx: Transaction,
|
|
3878
5117
|
args: [number | TransactionArgument],
|
|
@@ -3911,36 +5150,126 @@ export namespace u32 {
|
|
|
3911
5150
|
target: "0x1::u32::try_as_u16",
|
|
3912
5151
|
arguments: _args,
|
|
3913
5152
|
});
|
|
3914
|
-
}
|
|
3915
|
-
export function tryAsU8(
|
|
3916
|
-
tx: Transaction,
|
|
3917
|
-
args: [number | TransactionArgument],
|
|
3918
|
-
): TransactionArgument & [TransactionArgument] {
|
|
3919
|
-
const _args: any[] = [];
|
|
3920
|
-
_args.push(transactionArgumentOrPureU32(args[0], tx));
|
|
5153
|
+
}
|
|
5154
|
+
export function tryAsU8(
|
|
5155
|
+
tx: Transaction,
|
|
5156
|
+
args: [number | TransactionArgument],
|
|
5157
|
+
): TransactionArgument & [TransactionArgument] {
|
|
5158
|
+
const _args: any[] = [];
|
|
5159
|
+
_args.push(transactionArgumentOrPureU32(args[0], tx));
|
|
5160
|
+
|
|
5161
|
+
// @ts-ignore
|
|
5162
|
+
return tx.moveCall({
|
|
5163
|
+
target: "0x1::u32::try_as_u8",
|
|
5164
|
+
arguments: _args,
|
|
5165
|
+
});
|
|
5166
|
+
}
|
|
5167
|
+
}
|
|
5168
|
+
export namespace view {
|
|
5169
|
+
export async function bitwiseNot(
|
|
5170
|
+
client: SuiClient,
|
|
5171
|
+
args: [number],
|
|
5172
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
5173
|
+
const tx = new Transaction();
|
|
5174
|
+
builder.bitwiseNot(tx, args);
|
|
5175
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5176
|
+
transactionBlock: tx,
|
|
5177
|
+
sender: ZERO_ADDRESS,
|
|
5178
|
+
});
|
|
5179
|
+
|
|
5180
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
5181
|
+
inspectRes,
|
|
5182
|
+
);
|
|
5183
|
+
}
|
|
5184
|
+
export async function checkedAdd(
|
|
5185
|
+
client: SuiClient,
|
|
5186
|
+
args: [number, number],
|
|
5187
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
5188
|
+
const tx = new Transaction();
|
|
5189
|
+
builder.checkedAdd(tx, args);
|
|
5190
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5191
|
+
transactionBlock: tx,
|
|
5192
|
+
sender: ZERO_ADDRESS,
|
|
5193
|
+
});
|
|
5194
|
+
|
|
5195
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5196
|
+
[option.Option<number>]
|
|
5197
|
+
>(inspectRes);
|
|
5198
|
+
}
|
|
5199
|
+
export async function checkedDiv(
|
|
5200
|
+
client: SuiClient,
|
|
5201
|
+
args: [number, number],
|
|
5202
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
5203
|
+
const tx = new Transaction();
|
|
5204
|
+
builder.checkedDiv(tx, args);
|
|
5205
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5206
|
+
transactionBlock: tx,
|
|
5207
|
+
sender: ZERO_ADDRESS,
|
|
5208
|
+
});
|
|
5209
|
+
|
|
5210
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5211
|
+
[option.Option<number>]
|
|
5212
|
+
>(inspectRes);
|
|
5213
|
+
}
|
|
5214
|
+
export async function checkedMul(
|
|
5215
|
+
client: SuiClient,
|
|
5216
|
+
args: [number, number],
|
|
5217
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
5218
|
+
const tx = new Transaction();
|
|
5219
|
+
builder.checkedMul(tx, args);
|
|
5220
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5221
|
+
transactionBlock: tx,
|
|
5222
|
+
sender: ZERO_ADDRESS,
|
|
5223
|
+
});
|
|
5224
|
+
|
|
5225
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5226
|
+
[option.Option<number>]
|
|
5227
|
+
>(inspectRes);
|
|
5228
|
+
}
|
|
5229
|
+
export async function checkedShl(
|
|
5230
|
+
client: SuiClient,
|
|
5231
|
+
args: [number, number],
|
|
5232
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
5233
|
+
const tx = new Transaction();
|
|
5234
|
+
builder.checkedShl(tx, args);
|
|
5235
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5236
|
+
transactionBlock: tx,
|
|
5237
|
+
sender: ZERO_ADDRESS,
|
|
5238
|
+
});
|
|
5239
|
+
|
|
5240
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5241
|
+
[option.Option<number>]
|
|
5242
|
+
>(inspectRes);
|
|
5243
|
+
}
|
|
5244
|
+
export async function checkedShr(
|
|
5245
|
+
client: SuiClient,
|
|
5246
|
+
args: [number, number],
|
|
5247
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
5248
|
+
const tx = new Transaction();
|
|
5249
|
+
builder.checkedShr(tx, args);
|
|
5250
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5251
|
+
transactionBlock: tx,
|
|
5252
|
+
sender: ZERO_ADDRESS,
|
|
5253
|
+
});
|
|
3921
5254
|
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
arguments: _args,
|
|
3926
|
-
});
|
|
5255
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5256
|
+
[option.Option<number>]
|
|
5257
|
+
>(inspectRes);
|
|
3927
5258
|
}
|
|
3928
|
-
|
|
3929
|
-
export namespace view {
|
|
3930
|
-
export async function bitwiseNot(
|
|
5259
|
+
export async function checkedSub(
|
|
3931
5260
|
client: SuiClient,
|
|
3932
|
-
args: [number],
|
|
3933
|
-
): Promise<TypedDevInspectResults<[number]>> {
|
|
5261
|
+
args: [number, number],
|
|
5262
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
3934
5263
|
const tx = new Transaction();
|
|
3935
|
-
builder.
|
|
5264
|
+
builder.checkedSub(tx, args);
|
|
3936
5265
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3937
5266
|
transactionBlock: tx,
|
|
3938
5267
|
sender: ZERO_ADDRESS,
|
|
3939
5268
|
});
|
|
3940
5269
|
|
|
3941
|
-
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3942
|
-
|
|
3943
|
-
);
|
|
5270
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5271
|
+
[option.Option<number>]
|
|
5272
|
+
>(inspectRes);
|
|
3944
5273
|
}
|
|
3945
5274
|
export async function diff(
|
|
3946
5275
|
client: SuiClient,
|
|
@@ -3972,6 +5301,51 @@ export namespace u32 {
|
|
|
3972
5301
|
inspectRes,
|
|
3973
5302
|
);
|
|
3974
5303
|
}
|
|
5304
|
+
export async function losslessDiv(
|
|
5305
|
+
client: SuiClient,
|
|
5306
|
+
args: [number, number],
|
|
5307
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
5308
|
+
const tx = new Transaction();
|
|
5309
|
+
builder.losslessDiv(tx, args);
|
|
5310
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5311
|
+
transactionBlock: tx,
|
|
5312
|
+
sender: ZERO_ADDRESS,
|
|
5313
|
+
});
|
|
5314
|
+
|
|
5315
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5316
|
+
[option.Option<number>]
|
|
5317
|
+
>(inspectRes);
|
|
5318
|
+
}
|
|
5319
|
+
export async function losslessShl(
|
|
5320
|
+
client: SuiClient,
|
|
5321
|
+
args: [number, number],
|
|
5322
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
5323
|
+
const tx = new Transaction();
|
|
5324
|
+
builder.losslessShl(tx, args);
|
|
5325
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5326
|
+
transactionBlock: tx,
|
|
5327
|
+
sender: ZERO_ADDRESS,
|
|
5328
|
+
});
|
|
5329
|
+
|
|
5330
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5331
|
+
[option.Option<number>]
|
|
5332
|
+
>(inspectRes);
|
|
5333
|
+
}
|
|
5334
|
+
export async function losslessShr(
|
|
5335
|
+
client: SuiClient,
|
|
5336
|
+
args: [number, number],
|
|
5337
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
5338
|
+
const tx = new Transaction();
|
|
5339
|
+
builder.losslessShr(tx, args);
|
|
5340
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5341
|
+
transactionBlock: tx,
|
|
5342
|
+
sender: ZERO_ADDRESS,
|
|
5343
|
+
});
|
|
5344
|
+
|
|
5345
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5346
|
+
[option.Option<number>]
|
|
5347
|
+
>(inspectRes);
|
|
5348
|
+
}
|
|
3975
5349
|
export async function max(
|
|
3976
5350
|
client: SuiClient,
|
|
3977
5351
|
args: [number, number],
|
|
@@ -4017,6 +5391,51 @@ export namespace u32 {
|
|
|
4017
5391
|
inspectRes,
|
|
4018
5392
|
);
|
|
4019
5393
|
}
|
|
5394
|
+
export async function saturatingAdd(
|
|
5395
|
+
client: SuiClient,
|
|
5396
|
+
args: [number, number],
|
|
5397
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
5398
|
+
const tx = new Transaction();
|
|
5399
|
+
builder.saturatingAdd(tx, args);
|
|
5400
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5401
|
+
transactionBlock: tx,
|
|
5402
|
+
sender: ZERO_ADDRESS,
|
|
5403
|
+
});
|
|
5404
|
+
|
|
5405
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
5406
|
+
inspectRes,
|
|
5407
|
+
);
|
|
5408
|
+
}
|
|
5409
|
+
export async function saturatingMul(
|
|
5410
|
+
client: SuiClient,
|
|
5411
|
+
args: [number, number],
|
|
5412
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
5413
|
+
const tx = new Transaction();
|
|
5414
|
+
builder.saturatingMul(tx, args);
|
|
5415
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5416
|
+
transactionBlock: tx,
|
|
5417
|
+
sender: ZERO_ADDRESS,
|
|
5418
|
+
});
|
|
5419
|
+
|
|
5420
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
5421
|
+
inspectRes,
|
|
5422
|
+
);
|
|
5423
|
+
}
|
|
5424
|
+
export async function saturatingSub(
|
|
5425
|
+
client: SuiClient,
|
|
5426
|
+
args: [number, number],
|
|
5427
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
5428
|
+
const tx = new Transaction();
|
|
5429
|
+
builder.saturatingSub(tx, args);
|
|
5430
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5431
|
+
transactionBlock: tx,
|
|
5432
|
+
sender: ZERO_ADDRESS,
|
|
5433
|
+
});
|
|
5434
|
+
|
|
5435
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
5436
|
+
inspectRes,
|
|
5437
|
+
);
|
|
5438
|
+
}
|
|
4020
5439
|
export async function sqrt(
|
|
4021
5440
|
client: SuiClient,
|
|
4022
5441
|
args: [number],
|
|
@@ -4084,18 +5503,186 @@ export namespace u64 {
|
|
|
4084
5503
|
export namespace builder {
|
|
4085
5504
|
export function bitwiseNot(
|
|
4086
5505
|
tx: Transaction,
|
|
4087
|
-
args: [bigint | TransactionArgument],
|
|
4088
|
-
): TransactionArgument & [TransactionArgument] {
|
|
5506
|
+
args: [bigint | TransactionArgument],
|
|
5507
|
+
): TransactionArgument & [TransactionArgument] {
|
|
5508
|
+
const _args: any[] = [];
|
|
5509
|
+
_args.push(transactionArgumentOrPureU64(args[0], tx));
|
|
5510
|
+
|
|
5511
|
+
// @ts-ignore
|
|
5512
|
+
return tx.moveCall({
|
|
5513
|
+
target: "0x1::u64::bitwise_not",
|
|
5514
|
+
arguments: _args,
|
|
5515
|
+
});
|
|
5516
|
+
}
|
|
5517
|
+
export function checkedAdd(
|
|
5518
|
+
tx: Transaction,
|
|
5519
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
5520
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
5521
|
+
const _args: any[] = [];
|
|
5522
|
+
_args.push(transactionArgumentOrPureU64(args[0], tx));
|
|
5523
|
+
_args.push(transactionArgumentOrPureU64(args[1], tx));
|
|
5524
|
+
|
|
5525
|
+
// @ts-ignore
|
|
5526
|
+
return tx.moveCall({
|
|
5527
|
+
target: "0x1::u64::checked_add",
|
|
5528
|
+
arguments: _args,
|
|
5529
|
+
});
|
|
5530
|
+
}
|
|
5531
|
+
export function checkedDiv(
|
|
5532
|
+
tx: Transaction,
|
|
5533
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
5534
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
5535
|
+
const _args: any[] = [];
|
|
5536
|
+
_args.push(transactionArgumentOrPureU64(args[0], tx));
|
|
5537
|
+
_args.push(transactionArgumentOrPureU64(args[1], tx));
|
|
5538
|
+
|
|
5539
|
+
// @ts-ignore
|
|
5540
|
+
return tx.moveCall({
|
|
5541
|
+
target: "0x1::u64::checked_div",
|
|
5542
|
+
arguments: _args,
|
|
5543
|
+
});
|
|
5544
|
+
}
|
|
5545
|
+
export function checkedMul(
|
|
5546
|
+
tx: Transaction,
|
|
5547
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
5548
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
5549
|
+
const _args: any[] = [];
|
|
5550
|
+
_args.push(transactionArgumentOrPureU64(args[0], tx));
|
|
5551
|
+
_args.push(transactionArgumentOrPureU64(args[1], tx));
|
|
5552
|
+
|
|
5553
|
+
// @ts-ignore
|
|
5554
|
+
return tx.moveCall({
|
|
5555
|
+
target: "0x1::u64::checked_mul",
|
|
5556
|
+
arguments: _args,
|
|
5557
|
+
});
|
|
5558
|
+
}
|
|
5559
|
+
export function checkedShl(
|
|
5560
|
+
tx: Transaction,
|
|
5561
|
+
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
5562
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
5563
|
+
const _args: any[] = [];
|
|
5564
|
+
_args.push(transactionArgumentOrPureU64(args[0], tx));
|
|
5565
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
5566
|
+
|
|
5567
|
+
// @ts-ignore
|
|
5568
|
+
return tx.moveCall({
|
|
5569
|
+
target: "0x1::u64::checked_shl",
|
|
5570
|
+
arguments: _args,
|
|
5571
|
+
});
|
|
5572
|
+
}
|
|
5573
|
+
export function checkedShr(
|
|
5574
|
+
tx: Transaction,
|
|
5575
|
+
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
5576
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
5577
|
+
const _args: any[] = [];
|
|
5578
|
+
_args.push(transactionArgumentOrPureU64(args[0], tx));
|
|
5579
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
5580
|
+
|
|
5581
|
+
// @ts-ignore
|
|
5582
|
+
return tx.moveCall({
|
|
5583
|
+
target: "0x1::u64::checked_shr",
|
|
5584
|
+
arguments: _args,
|
|
5585
|
+
});
|
|
5586
|
+
}
|
|
5587
|
+
export function checkedSub(
|
|
5588
|
+
tx: Transaction,
|
|
5589
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
5590
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
5591
|
+
const _args: any[] = [];
|
|
5592
|
+
_args.push(transactionArgumentOrPureU64(args[0], tx));
|
|
5593
|
+
_args.push(transactionArgumentOrPureU64(args[1], tx));
|
|
5594
|
+
|
|
5595
|
+
// @ts-ignore
|
|
5596
|
+
return tx.moveCall({
|
|
5597
|
+
target: "0x1::u64::checked_sub",
|
|
5598
|
+
arguments: _args,
|
|
5599
|
+
});
|
|
5600
|
+
}
|
|
5601
|
+
export function diff(
|
|
5602
|
+
tx: Transaction,
|
|
5603
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
5604
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
5605
|
+
const _args: any[] = [];
|
|
5606
|
+
_args.push(transactionArgumentOrPureU64(args[0], tx));
|
|
5607
|
+
_args.push(transactionArgumentOrPureU64(args[1], tx));
|
|
5608
|
+
|
|
5609
|
+
// @ts-ignore
|
|
5610
|
+
return tx.moveCall({
|
|
5611
|
+
target: "0x1::u64::diff",
|
|
5612
|
+
arguments: _args,
|
|
5613
|
+
});
|
|
5614
|
+
}
|
|
5615
|
+
export function divideAndRoundUp(
|
|
5616
|
+
tx: Transaction,
|
|
5617
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
5618
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
5619
|
+
const _args: any[] = [];
|
|
5620
|
+
_args.push(transactionArgumentOrPureU64(args[0], tx));
|
|
5621
|
+
_args.push(transactionArgumentOrPureU64(args[1], tx));
|
|
5622
|
+
|
|
5623
|
+
// @ts-ignore
|
|
5624
|
+
return tx.moveCall({
|
|
5625
|
+
target: "0x1::u64::divide_and_round_up",
|
|
5626
|
+
arguments: _args,
|
|
5627
|
+
});
|
|
5628
|
+
}
|
|
5629
|
+
export function losslessDiv(
|
|
5630
|
+
tx: Transaction,
|
|
5631
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
5632
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
5633
|
+
const _args: any[] = [];
|
|
5634
|
+
_args.push(transactionArgumentOrPureU64(args[0], tx));
|
|
5635
|
+
_args.push(transactionArgumentOrPureU64(args[1], tx));
|
|
5636
|
+
|
|
5637
|
+
// @ts-ignore
|
|
5638
|
+
return tx.moveCall({
|
|
5639
|
+
target: "0x1::u64::lossless_div",
|
|
5640
|
+
arguments: _args,
|
|
5641
|
+
});
|
|
5642
|
+
}
|
|
5643
|
+
export function losslessShl(
|
|
5644
|
+
tx: Transaction,
|
|
5645
|
+
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
5646
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
5647
|
+
const _args: any[] = [];
|
|
5648
|
+
_args.push(transactionArgumentOrPureU64(args[0], tx));
|
|
5649
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
5650
|
+
|
|
5651
|
+
// @ts-ignore
|
|
5652
|
+
return tx.moveCall({
|
|
5653
|
+
target: "0x1::u64::lossless_shl",
|
|
5654
|
+
arguments: _args,
|
|
5655
|
+
});
|
|
5656
|
+
}
|
|
5657
|
+
export function losslessShr(
|
|
5658
|
+
tx: Transaction,
|
|
5659
|
+
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
5660
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
5661
|
+
const _args: any[] = [];
|
|
5662
|
+
_args.push(transactionArgumentOrPureU64(args[0], tx));
|
|
5663
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
5664
|
+
|
|
5665
|
+
// @ts-ignore
|
|
5666
|
+
return tx.moveCall({
|
|
5667
|
+
target: "0x1::u64::lossless_shr",
|
|
5668
|
+
arguments: _args,
|
|
5669
|
+
});
|
|
5670
|
+
}
|
|
5671
|
+
export function max(
|
|
5672
|
+
tx: Transaction,
|
|
5673
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
5674
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4089
5675
|
const _args: any[] = [];
|
|
4090
5676
|
_args.push(transactionArgumentOrPureU64(args[0], tx));
|
|
5677
|
+
_args.push(transactionArgumentOrPureU64(args[1], tx));
|
|
4091
5678
|
|
|
4092
5679
|
// @ts-ignore
|
|
4093
5680
|
return tx.moveCall({
|
|
4094
|
-
target: "0x1::u64::
|
|
5681
|
+
target: "0x1::u64::max",
|
|
4095
5682
|
arguments: _args,
|
|
4096
5683
|
});
|
|
4097
5684
|
}
|
|
4098
|
-
export function
|
|
5685
|
+
export function min(
|
|
4099
5686
|
tx: Transaction,
|
|
4100
5687
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
4101
5688
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
@@ -4105,25 +5692,25 @@ export namespace u64 {
|
|
|
4105
5692
|
|
|
4106
5693
|
// @ts-ignore
|
|
4107
5694
|
return tx.moveCall({
|
|
4108
|
-
target: "0x1::u64::
|
|
5695
|
+
target: "0x1::u64::min",
|
|
4109
5696
|
arguments: _args,
|
|
4110
5697
|
});
|
|
4111
5698
|
}
|
|
4112
|
-
export function
|
|
5699
|
+
export function pow(
|
|
4113
5700
|
tx: Transaction,
|
|
4114
|
-
args: [bigint | TransactionArgument,
|
|
5701
|
+
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
4115
5702
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4116
5703
|
const _args: any[] = [];
|
|
4117
5704
|
_args.push(transactionArgumentOrPureU64(args[0], tx));
|
|
4118
|
-
_args.push(
|
|
5705
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
4119
5706
|
|
|
4120
5707
|
// @ts-ignore
|
|
4121
5708
|
return tx.moveCall({
|
|
4122
|
-
target: "0x1::u64::
|
|
5709
|
+
target: "0x1::u64::pow",
|
|
4123
5710
|
arguments: _args,
|
|
4124
5711
|
});
|
|
4125
5712
|
}
|
|
4126
|
-
export function
|
|
5713
|
+
export function saturatingAdd(
|
|
4127
5714
|
tx: Transaction,
|
|
4128
5715
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
4129
5716
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
@@ -4133,11 +5720,11 @@ export namespace u64 {
|
|
|
4133
5720
|
|
|
4134
5721
|
// @ts-ignore
|
|
4135
5722
|
return tx.moveCall({
|
|
4136
|
-
target: "0x1::u64::
|
|
5723
|
+
target: "0x1::u64::saturating_add",
|
|
4137
5724
|
arguments: _args,
|
|
4138
5725
|
});
|
|
4139
5726
|
}
|
|
4140
|
-
export function
|
|
5727
|
+
export function saturatingMul(
|
|
4141
5728
|
tx: Transaction,
|
|
4142
5729
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
4143
5730
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
@@ -4147,21 +5734,21 @@ export namespace u64 {
|
|
|
4147
5734
|
|
|
4148
5735
|
// @ts-ignore
|
|
4149
5736
|
return tx.moveCall({
|
|
4150
|
-
target: "0x1::u64::
|
|
5737
|
+
target: "0x1::u64::saturating_mul",
|
|
4151
5738
|
arguments: _args,
|
|
4152
5739
|
});
|
|
4153
5740
|
}
|
|
4154
|
-
export function
|
|
5741
|
+
export function saturatingSub(
|
|
4155
5742
|
tx: Transaction,
|
|
4156
|
-
args: [bigint | TransactionArgument,
|
|
5743
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
4157
5744
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4158
5745
|
const _args: any[] = [];
|
|
4159
5746
|
_args.push(transactionArgumentOrPureU64(args[0], tx));
|
|
4160
|
-
_args.push(
|
|
5747
|
+
_args.push(transactionArgumentOrPureU64(args[1], tx));
|
|
4161
5748
|
|
|
4162
5749
|
// @ts-ignore
|
|
4163
5750
|
return tx.moveCall({
|
|
4164
|
-
target: "0x1::u64::
|
|
5751
|
+
target: "0x1::u64::saturating_sub",
|
|
4165
5752
|
arguments: _args,
|
|
4166
5753
|
});
|
|
4167
5754
|
}
|
|
@@ -4247,6 +5834,96 @@ export namespace u64 {
|
|
|
4247
5834
|
inspectRes,
|
|
4248
5835
|
);
|
|
4249
5836
|
}
|
|
5837
|
+
export async function checkedAdd(
|
|
5838
|
+
client: SuiClient,
|
|
5839
|
+
args: [bigint, bigint],
|
|
5840
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
5841
|
+
const tx = new Transaction();
|
|
5842
|
+
builder.checkedAdd(tx, args);
|
|
5843
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5844
|
+
transactionBlock: tx,
|
|
5845
|
+
sender: ZERO_ADDRESS,
|
|
5846
|
+
});
|
|
5847
|
+
|
|
5848
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5849
|
+
[option.Option<bigint>]
|
|
5850
|
+
>(inspectRes);
|
|
5851
|
+
}
|
|
5852
|
+
export async function checkedDiv(
|
|
5853
|
+
client: SuiClient,
|
|
5854
|
+
args: [bigint, bigint],
|
|
5855
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
5856
|
+
const tx = new Transaction();
|
|
5857
|
+
builder.checkedDiv(tx, args);
|
|
5858
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5859
|
+
transactionBlock: tx,
|
|
5860
|
+
sender: ZERO_ADDRESS,
|
|
5861
|
+
});
|
|
5862
|
+
|
|
5863
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5864
|
+
[option.Option<bigint>]
|
|
5865
|
+
>(inspectRes);
|
|
5866
|
+
}
|
|
5867
|
+
export async function checkedMul(
|
|
5868
|
+
client: SuiClient,
|
|
5869
|
+
args: [bigint, bigint],
|
|
5870
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
5871
|
+
const tx = new Transaction();
|
|
5872
|
+
builder.checkedMul(tx, args);
|
|
5873
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5874
|
+
transactionBlock: tx,
|
|
5875
|
+
sender: ZERO_ADDRESS,
|
|
5876
|
+
});
|
|
5877
|
+
|
|
5878
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5879
|
+
[option.Option<bigint>]
|
|
5880
|
+
>(inspectRes);
|
|
5881
|
+
}
|
|
5882
|
+
export async function checkedShl(
|
|
5883
|
+
client: SuiClient,
|
|
5884
|
+
args: [bigint, number],
|
|
5885
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
5886
|
+
const tx = new Transaction();
|
|
5887
|
+
builder.checkedShl(tx, args);
|
|
5888
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5889
|
+
transactionBlock: tx,
|
|
5890
|
+
sender: ZERO_ADDRESS,
|
|
5891
|
+
});
|
|
5892
|
+
|
|
5893
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5894
|
+
[option.Option<bigint>]
|
|
5895
|
+
>(inspectRes);
|
|
5896
|
+
}
|
|
5897
|
+
export async function checkedShr(
|
|
5898
|
+
client: SuiClient,
|
|
5899
|
+
args: [bigint, number],
|
|
5900
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
5901
|
+
const tx = new Transaction();
|
|
5902
|
+
builder.checkedShr(tx, args);
|
|
5903
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5904
|
+
transactionBlock: tx,
|
|
5905
|
+
sender: ZERO_ADDRESS,
|
|
5906
|
+
});
|
|
5907
|
+
|
|
5908
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5909
|
+
[option.Option<bigint>]
|
|
5910
|
+
>(inspectRes);
|
|
5911
|
+
}
|
|
5912
|
+
export async function checkedSub(
|
|
5913
|
+
client: SuiClient,
|
|
5914
|
+
args: [bigint, bigint],
|
|
5915
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
5916
|
+
const tx = new Transaction();
|
|
5917
|
+
builder.checkedSub(tx, args);
|
|
5918
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5919
|
+
transactionBlock: tx,
|
|
5920
|
+
sender: ZERO_ADDRESS,
|
|
5921
|
+
});
|
|
5922
|
+
|
|
5923
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5924
|
+
[option.Option<bigint>]
|
|
5925
|
+
>(inspectRes);
|
|
5926
|
+
}
|
|
4250
5927
|
export async function diff(
|
|
4251
5928
|
client: SuiClient,
|
|
4252
5929
|
args: [bigint, bigint],
|
|
@@ -4277,6 +5954,51 @@ export namespace u64 {
|
|
|
4277
5954
|
inspectRes,
|
|
4278
5955
|
);
|
|
4279
5956
|
}
|
|
5957
|
+
export async function losslessDiv(
|
|
5958
|
+
client: SuiClient,
|
|
5959
|
+
args: [bigint, bigint],
|
|
5960
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
5961
|
+
const tx = new Transaction();
|
|
5962
|
+
builder.losslessDiv(tx, args);
|
|
5963
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5964
|
+
transactionBlock: tx,
|
|
5965
|
+
sender: ZERO_ADDRESS,
|
|
5966
|
+
});
|
|
5967
|
+
|
|
5968
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5969
|
+
[option.Option<bigint>]
|
|
5970
|
+
>(inspectRes);
|
|
5971
|
+
}
|
|
5972
|
+
export async function losslessShl(
|
|
5973
|
+
client: SuiClient,
|
|
5974
|
+
args: [bigint, number],
|
|
5975
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
5976
|
+
const tx = new Transaction();
|
|
5977
|
+
builder.losslessShl(tx, args);
|
|
5978
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5979
|
+
transactionBlock: tx,
|
|
5980
|
+
sender: ZERO_ADDRESS,
|
|
5981
|
+
});
|
|
5982
|
+
|
|
5983
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5984
|
+
[option.Option<bigint>]
|
|
5985
|
+
>(inspectRes);
|
|
5986
|
+
}
|
|
5987
|
+
export async function losslessShr(
|
|
5988
|
+
client: SuiClient,
|
|
5989
|
+
args: [bigint, number],
|
|
5990
|
+
): Promise<TypedDevInspectResults<[option.Option<bigint>]>> {
|
|
5991
|
+
const tx = new Transaction();
|
|
5992
|
+
builder.losslessShr(tx, args);
|
|
5993
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5994
|
+
transactionBlock: tx,
|
|
5995
|
+
sender: ZERO_ADDRESS,
|
|
5996
|
+
});
|
|
5997
|
+
|
|
5998
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
5999
|
+
[option.Option<bigint>]
|
|
6000
|
+
>(inspectRes);
|
|
6001
|
+
}
|
|
4280
6002
|
export async function max(
|
|
4281
6003
|
client: SuiClient,
|
|
4282
6004
|
args: [bigint, bigint],
|
|
@@ -4322,6 +6044,51 @@ export namespace u64 {
|
|
|
4322
6044
|
inspectRes,
|
|
4323
6045
|
);
|
|
4324
6046
|
}
|
|
6047
|
+
export async function saturatingAdd(
|
|
6048
|
+
client: SuiClient,
|
|
6049
|
+
args: [bigint, bigint],
|
|
6050
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
6051
|
+
const tx = new Transaction();
|
|
6052
|
+
builder.saturatingAdd(tx, args);
|
|
6053
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
6054
|
+
transactionBlock: tx,
|
|
6055
|
+
sender: ZERO_ADDRESS,
|
|
6056
|
+
});
|
|
6057
|
+
|
|
6058
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
6059
|
+
inspectRes,
|
|
6060
|
+
);
|
|
6061
|
+
}
|
|
6062
|
+
export async function saturatingMul(
|
|
6063
|
+
client: SuiClient,
|
|
6064
|
+
args: [bigint, bigint],
|
|
6065
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
6066
|
+
const tx = new Transaction();
|
|
6067
|
+
builder.saturatingMul(tx, args);
|
|
6068
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
6069
|
+
transactionBlock: tx,
|
|
6070
|
+
sender: ZERO_ADDRESS,
|
|
6071
|
+
});
|
|
6072
|
+
|
|
6073
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
6074
|
+
inspectRes,
|
|
6075
|
+
);
|
|
6076
|
+
}
|
|
6077
|
+
export async function saturatingSub(
|
|
6078
|
+
client: SuiClient,
|
|
6079
|
+
args: [bigint, bigint],
|
|
6080
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
6081
|
+
const tx = new Transaction();
|
|
6082
|
+
builder.saturatingSub(tx, args);
|
|
6083
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
6084
|
+
transactionBlock: tx,
|
|
6085
|
+
sender: ZERO_ADDRESS,
|
|
6086
|
+
});
|
|
6087
|
+
|
|
6088
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
6089
|
+
inspectRes,
|
|
6090
|
+
);
|
|
6091
|
+
}
|
|
4325
6092
|
export async function sqrt(
|
|
4326
6093
|
client: SuiClient,
|
|
4327
6094
|
args: [bigint],
|
|
@@ -4392,26 +6159,110 @@ export namespace u64 {
|
|
|
4392
6159
|
transactionBlock: tx,
|
|
4393
6160
|
sender: ZERO_ADDRESS,
|
|
4394
6161
|
});
|
|
4395
|
-
|
|
4396
|
-
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
4397
|
-
[option.Option<number>]
|
|
4398
|
-
>(inspectRes);
|
|
6162
|
+
|
|
6163
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
6164
|
+
[option.Option<number>]
|
|
6165
|
+
>(inspectRes);
|
|
6166
|
+
}
|
|
6167
|
+
}
|
|
6168
|
+
}
|
|
6169
|
+
|
|
6170
|
+
export namespace u8 {
|
|
6171
|
+
export namespace builder {
|
|
6172
|
+
export function bitwiseNot(
|
|
6173
|
+
tx: Transaction,
|
|
6174
|
+
args: [number | TransactionArgument],
|
|
6175
|
+
): TransactionArgument & [TransactionArgument] {
|
|
6176
|
+
const _args: any[] = [];
|
|
6177
|
+
_args.push(transactionArgumentOrPureU8(args[0], tx));
|
|
6178
|
+
|
|
6179
|
+
// @ts-ignore
|
|
6180
|
+
return tx.moveCall({
|
|
6181
|
+
target: "0x1::u8::bitwise_not",
|
|
6182
|
+
arguments: _args,
|
|
6183
|
+
});
|
|
6184
|
+
}
|
|
6185
|
+
export function checkedAdd(
|
|
6186
|
+
tx: Transaction,
|
|
6187
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
6188
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
6189
|
+
const _args: any[] = [];
|
|
6190
|
+
_args.push(transactionArgumentOrPureU8(args[0], tx));
|
|
6191
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
6192
|
+
|
|
6193
|
+
// @ts-ignore
|
|
6194
|
+
return tx.moveCall({
|
|
6195
|
+
target: "0x1::u8::checked_add",
|
|
6196
|
+
arguments: _args,
|
|
6197
|
+
});
|
|
6198
|
+
}
|
|
6199
|
+
export function checkedDiv(
|
|
6200
|
+
tx: Transaction,
|
|
6201
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
6202
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
6203
|
+
const _args: any[] = [];
|
|
6204
|
+
_args.push(transactionArgumentOrPureU8(args[0], tx));
|
|
6205
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
6206
|
+
|
|
6207
|
+
// @ts-ignore
|
|
6208
|
+
return tx.moveCall({
|
|
6209
|
+
target: "0x1::u8::checked_div",
|
|
6210
|
+
arguments: _args,
|
|
6211
|
+
});
|
|
6212
|
+
}
|
|
6213
|
+
export function checkedMul(
|
|
6214
|
+
tx: Transaction,
|
|
6215
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
6216
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
6217
|
+
const _args: any[] = [];
|
|
6218
|
+
_args.push(transactionArgumentOrPureU8(args[0], tx));
|
|
6219
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
6220
|
+
|
|
6221
|
+
// @ts-ignore
|
|
6222
|
+
return tx.moveCall({
|
|
6223
|
+
target: "0x1::u8::checked_mul",
|
|
6224
|
+
arguments: _args,
|
|
6225
|
+
});
|
|
6226
|
+
}
|
|
6227
|
+
export function checkedShl(
|
|
6228
|
+
tx: Transaction,
|
|
6229
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
6230
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
6231
|
+
const _args: any[] = [];
|
|
6232
|
+
_args.push(transactionArgumentOrPureU8(args[0], tx));
|
|
6233
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
6234
|
+
|
|
6235
|
+
// @ts-ignore
|
|
6236
|
+
return tx.moveCall({
|
|
6237
|
+
target: "0x1::u8::checked_shl",
|
|
6238
|
+
arguments: _args,
|
|
6239
|
+
});
|
|
4399
6240
|
}
|
|
4400
|
-
|
|
4401
|
-
|
|
6241
|
+
export function checkedShr(
|
|
6242
|
+
tx: Transaction,
|
|
6243
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
6244
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
6245
|
+
const _args: any[] = [];
|
|
6246
|
+
_args.push(transactionArgumentOrPureU8(args[0], tx));
|
|
6247
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
4402
6248
|
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
6249
|
+
// @ts-ignore
|
|
6250
|
+
return tx.moveCall({
|
|
6251
|
+
target: "0x1::u8::checked_shr",
|
|
6252
|
+
arguments: _args,
|
|
6253
|
+
});
|
|
6254
|
+
}
|
|
6255
|
+
export function checkedSub(
|
|
4406
6256
|
tx: Transaction,
|
|
4407
|
-
args: [number | TransactionArgument],
|
|
4408
|
-
): TransactionArgument & [TransactionArgument] {
|
|
6257
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
6258
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
4409
6259
|
const _args: any[] = [];
|
|
4410
6260
|
_args.push(transactionArgumentOrPureU8(args[0], tx));
|
|
6261
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
4411
6262
|
|
|
4412
6263
|
// @ts-ignore
|
|
4413
6264
|
return tx.moveCall({
|
|
4414
|
-
target: "0x1::u8::
|
|
6265
|
+
target: "0x1::u8::checked_sub",
|
|
4415
6266
|
arguments: _args,
|
|
4416
6267
|
});
|
|
4417
6268
|
}
|
|
@@ -4443,6 +6294,48 @@ export namespace u8 {
|
|
|
4443
6294
|
arguments: _args,
|
|
4444
6295
|
});
|
|
4445
6296
|
}
|
|
6297
|
+
export function losslessDiv(
|
|
6298
|
+
tx: Transaction,
|
|
6299
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
6300
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
6301
|
+
const _args: any[] = [];
|
|
6302
|
+
_args.push(transactionArgumentOrPureU8(args[0], tx));
|
|
6303
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
6304
|
+
|
|
6305
|
+
// @ts-ignore
|
|
6306
|
+
return tx.moveCall({
|
|
6307
|
+
target: "0x1::u8::lossless_div",
|
|
6308
|
+
arguments: _args,
|
|
6309
|
+
});
|
|
6310
|
+
}
|
|
6311
|
+
export function losslessShl(
|
|
6312
|
+
tx: Transaction,
|
|
6313
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
6314
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
6315
|
+
const _args: any[] = [];
|
|
6316
|
+
_args.push(transactionArgumentOrPureU8(args[0], tx));
|
|
6317
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
6318
|
+
|
|
6319
|
+
// @ts-ignore
|
|
6320
|
+
return tx.moveCall({
|
|
6321
|
+
target: "0x1::u8::lossless_shl",
|
|
6322
|
+
arguments: _args,
|
|
6323
|
+
});
|
|
6324
|
+
}
|
|
6325
|
+
export function losslessShr(
|
|
6326
|
+
tx: Transaction,
|
|
6327
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
6328
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
6329
|
+
const _args: any[] = [];
|
|
6330
|
+
_args.push(transactionArgumentOrPureU8(args[0], tx));
|
|
6331
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
6332
|
+
|
|
6333
|
+
// @ts-ignore
|
|
6334
|
+
return tx.moveCall({
|
|
6335
|
+
target: "0x1::u8::lossless_shr",
|
|
6336
|
+
arguments: _args,
|
|
6337
|
+
});
|
|
6338
|
+
}
|
|
4446
6339
|
export function max(
|
|
4447
6340
|
tx: Transaction,
|
|
4448
6341
|
args: [number | TransactionArgument, number | TransactionArgument],
|
|
@@ -4485,6 +6378,48 @@ export namespace u8 {
|
|
|
4485
6378
|
arguments: _args,
|
|
4486
6379
|
});
|
|
4487
6380
|
}
|
|
6381
|
+
export function saturatingAdd(
|
|
6382
|
+
tx: Transaction,
|
|
6383
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
6384
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
6385
|
+
const _args: any[] = [];
|
|
6386
|
+
_args.push(transactionArgumentOrPureU8(args[0], tx));
|
|
6387
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
6388
|
+
|
|
6389
|
+
// @ts-ignore
|
|
6390
|
+
return tx.moveCall({
|
|
6391
|
+
target: "0x1::u8::saturating_add",
|
|
6392
|
+
arguments: _args,
|
|
6393
|
+
});
|
|
6394
|
+
}
|
|
6395
|
+
export function saturatingMul(
|
|
6396
|
+
tx: Transaction,
|
|
6397
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
6398
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
6399
|
+
const _args: any[] = [];
|
|
6400
|
+
_args.push(transactionArgumentOrPureU8(args[0], tx));
|
|
6401
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
6402
|
+
|
|
6403
|
+
// @ts-ignore
|
|
6404
|
+
return tx.moveCall({
|
|
6405
|
+
target: "0x1::u8::saturating_mul",
|
|
6406
|
+
arguments: _args,
|
|
6407
|
+
});
|
|
6408
|
+
}
|
|
6409
|
+
export function saturatingSub(
|
|
6410
|
+
tx: Transaction,
|
|
6411
|
+
args: [number | TransactionArgument, number | TransactionArgument],
|
|
6412
|
+
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
6413
|
+
const _args: any[] = [];
|
|
6414
|
+
_args.push(transactionArgumentOrPureU8(args[0], tx));
|
|
6415
|
+
_args.push(transactionArgumentOrPureU8(args[1], tx));
|
|
6416
|
+
|
|
6417
|
+
// @ts-ignore
|
|
6418
|
+
return tx.moveCall({
|
|
6419
|
+
target: "0x1::u8::saturating_sub",
|
|
6420
|
+
arguments: _args,
|
|
6421
|
+
});
|
|
6422
|
+
}
|
|
4488
6423
|
export function sqrt(
|
|
4489
6424
|
tx: Transaction,
|
|
4490
6425
|
args: [number | TransactionArgument],
|
|
@@ -4528,6 +6463,96 @@ export namespace u8 {
|
|
|
4528
6463
|
inspectRes,
|
|
4529
6464
|
);
|
|
4530
6465
|
}
|
|
6466
|
+
export async function checkedAdd(
|
|
6467
|
+
client: SuiClient,
|
|
6468
|
+
args: [number, number],
|
|
6469
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
6470
|
+
const tx = new Transaction();
|
|
6471
|
+
builder.checkedAdd(tx, args);
|
|
6472
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
6473
|
+
transactionBlock: tx,
|
|
6474
|
+
sender: ZERO_ADDRESS,
|
|
6475
|
+
});
|
|
6476
|
+
|
|
6477
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
6478
|
+
[option.Option<number>]
|
|
6479
|
+
>(inspectRes);
|
|
6480
|
+
}
|
|
6481
|
+
export async function checkedDiv(
|
|
6482
|
+
client: SuiClient,
|
|
6483
|
+
args: [number, number],
|
|
6484
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
6485
|
+
const tx = new Transaction();
|
|
6486
|
+
builder.checkedDiv(tx, args);
|
|
6487
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
6488
|
+
transactionBlock: tx,
|
|
6489
|
+
sender: ZERO_ADDRESS,
|
|
6490
|
+
});
|
|
6491
|
+
|
|
6492
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
6493
|
+
[option.Option<number>]
|
|
6494
|
+
>(inspectRes);
|
|
6495
|
+
}
|
|
6496
|
+
export async function checkedMul(
|
|
6497
|
+
client: SuiClient,
|
|
6498
|
+
args: [number, number],
|
|
6499
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
6500
|
+
const tx = new Transaction();
|
|
6501
|
+
builder.checkedMul(tx, args);
|
|
6502
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
6503
|
+
transactionBlock: tx,
|
|
6504
|
+
sender: ZERO_ADDRESS,
|
|
6505
|
+
});
|
|
6506
|
+
|
|
6507
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
6508
|
+
[option.Option<number>]
|
|
6509
|
+
>(inspectRes);
|
|
6510
|
+
}
|
|
6511
|
+
export async function checkedShl(
|
|
6512
|
+
client: SuiClient,
|
|
6513
|
+
args: [number, number],
|
|
6514
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
6515
|
+
const tx = new Transaction();
|
|
6516
|
+
builder.checkedShl(tx, args);
|
|
6517
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
6518
|
+
transactionBlock: tx,
|
|
6519
|
+
sender: ZERO_ADDRESS,
|
|
6520
|
+
});
|
|
6521
|
+
|
|
6522
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
6523
|
+
[option.Option<number>]
|
|
6524
|
+
>(inspectRes);
|
|
6525
|
+
}
|
|
6526
|
+
export async function checkedShr(
|
|
6527
|
+
client: SuiClient,
|
|
6528
|
+
args: [number, number],
|
|
6529
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
6530
|
+
const tx = new Transaction();
|
|
6531
|
+
builder.checkedShr(tx, args);
|
|
6532
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
6533
|
+
transactionBlock: tx,
|
|
6534
|
+
sender: ZERO_ADDRESS,
|
|
6535
|
+
});
|
|
6536
|
+
|
|
6537
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
6538
|
+
[option.Option<number>]
|
|
6539
|
+
>(inspectRes);
|
|
6540
|
+
}
|
|
6541
|
+
export async function checkedSub(
|
|
6542
|
+
client: SuiClient,
|
|
6543
|
+
args: [number, number],
|
|
6544
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
6545
|
+
const tx = new Transaction();
|
|
6546
|
+
builder.checkedSub(tx, args);
|
|
6547
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
6548
|
+
transactionBlock: tx,
|
|
6549
|
+
sender: ZERO_ADDRESS,
|
|
6550
|
+
});
|
|
6551
|
+
|
|
6552
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
6553
|
+
[option.Option<number>]
|
|
6554
|
+
>(inspectRes);
|
|
6555
|
+
}
|
|
4531
6556
|
export async function diff(
|
|
4532
6557
|
client: SuiClient,
|
|
4533
6558
|
args: [number, number],
|
|
@@ -4558,6 +6583,51 @@ export namespace u8 {
|
|
|
4558
6583
|
inspectRes,
|
|
4559
6584
|
);
|
|
4560
6585
|
}
|
|
6586
|
+
export async function losslessDiv(
|
|
6587
|
+
client: SuiClient,
|
|
6588
|
+
args: [number, number],
|
|
6589
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
6590
|
+
const tx = new Transaction();
|
|
6591
|
+
builder.losslessDiv(tx, args);
|
|
6592
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
6593
|
+
transactionBlock: tx,
|
|
6594
|
+
sender: ZERO_ADDRESS,
|
|
6595
|
+
});
|
|
6596
|
+
|
|
6597
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
6598
|
+
[option.Option<number>]
|
|
6599
|
+
>(inspectRes);
|
|
6600
|
+
}
|
|
6601
|
+
export async function losslessShl(
|
|
6602
|
+
client: SuiClient,
|
|
6603
|
+
args: [number, number],
|
|
6604
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
6605
|
+
const tx = new Transaction();
|
|
6606
|
+
builder.losslessShl(tx, args);
|
|
6607
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
6608
|
+
transactionBlock: tx,
|
|
6609
|
+
sender: ZERO_ADDRESS,
|
|
6610
|
+
});
|
|
6611
|
+
|
|
6612
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
6613
|
+
[option.Option<number>]
|
|
6614
|
+
>(inspectRes);
|
|
6615
|
+
}
|
|
6616
|
+
export async function losslessShr(
|
|
6617
|
+
client: SuiClient,
|
|
6618
|
+
args: [number, number],
|
|
6619
|
+
): Promise<TypedDevInspectResults<[option.Option<number>]>> {
|
|
6620
|
+
const tx = new Transaction();
|
|
6621
|
+
builder.losslessShr(tx, args);
|
|
6622
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
6623
|
+
transactionBlock: tx,
|
|
6624
|
+
sender: ZERO_ADDRESS,
|
|
6625
|
+
});
|
|
6626
|
+
|
|
6627
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
6628
|
+
[option.Option<number>]
|
|
6629
|
+
>(inspectRes);
|
|
6630
|
+
}
|
|
4561
6631
|
export async function max(
|
|
4562
6632
|
client: SuiClient,
|
|
4563
6633
|
args: [number, number],
|
|
@@ -4603,6 +6673,51 @@ export namespace u8 {
|
|
|
4603
6673
|
inspectRes,
|
|
4604
6674
|
);
|
|
4605
6675
|
}
|
|
6676
|
+
export async function saturatingAdd(
|
|
6677
|
+
client: SuiClient,
|
|
6678
|
+
args: [number, number],
|
|
6679
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
6680
|
+
const tx = new Transaction();
|
|
6681
|
+
builder.saturatingAdd(tx, args);
|
|
6682
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
6683
|
+
transactionBlock: tx,
|
|
6684
|
+
sender: ZERO_ADDRESS,
|
|
6685
|
+
});
|
|
6686
|
+
|
|
6687
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
6688
|
+
inspectRes,
|
|
6689
|
+
);
|
|
6690
|
+
}
|
|
6691
|
+
export async function saturatingMul(
|
|
6692
|
+
client: SuiClient,
|
|
6693
|
+
args: [number, number],
|
|
6694
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
6695
|
+
const tx = new Transaction();
|
|
6696
|
+
builder.saturatingMul(tx, args);
|
|
6697
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
6698
|
+
transactionBlock: tx,
|
|
6699
|
+
sender: ZERO_ADDRESS,
|
|
6700
|
+
});
|
|
6701
|
+
|
|
6702
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
6703
|
+
inspectRes,
|
|
6704
|
+
);
|
|
6705
|
+
}
|
|
6706
|
+
export async function saturatingSub(
|
|
6707
|
+
client: SuiClient,
|
|
6708
|
+
args: [number, number],
|
|
6709
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
6710
|
+
const tx = new Transaction();
|
|
6711
|
+
builder.saturatingSub(tx, args);
|
|
6712
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
6713
|
+
transactionBlock: tx,
|
|
6714
|
+
sender: ZERO_ADDRESS,
|
|
6715
|
+
});
|
|
6716
|
+
|
|
6717
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
6718
|
+
inspectRes,
|
|
6719
|
+
);
|
|
6720
|
+
}
|
|
4606
6721
|
export async function sqrt(
|
|
4607
6722
|
client: SuiClient,
|
|
4608
6723
|
args: [number],
|
|
@@ -6356,7 +8471,7 @@ export namespace vector {
|
|
|
6356
8471
|
}
|
|
6357
8472
|
|
|
6358
8473
|
const MODULES = JSON.parse(
|
|
6359
|
-
'{"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":[]}}},"bool":{"fileFormatVersion":6,"address":"0x1","name":"bool","friends":[],"structs":{},"exposedFunctions":{}},"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":{"address_string":{"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":[]}}]},"as_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":[]}}}]},"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":[]}}}]},"defining_id":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":["Address"]},"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"]},"module_string":{"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":[]}}]},"original_id":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":["Address"]},"with_defining_ids":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}]},"with_original_ids":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}]}}},"u128":{"fileFormatVersion":6,"address":"0x1","name":"u128","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":["U128"]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U8"],"return":["U128"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":["U128"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u16":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"try_as_u32":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"try_as_u64":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u16":{"fileFormatVersion":6,"address":"0x1","name":"u16","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16"],"return":["U16"]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":["U16"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":["U16"]},"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":["U16"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":["U16"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U8"],"return":["U16"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16"],"return":["U16"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u256":{"fileFormatVersion":6,"address":"0x1","name":"u256","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":["U256"]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":["U256"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":["U256"]},"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":["U256"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":["U256"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U8"],"return":["U256"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u128":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U128"]}}]},"try_as_u16":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"try_as_u32":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"try_as_u64":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u32":{"fileFormatVersion":6,"address":"0x1","name":"u32","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":["U32"]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":["U32"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":["U32"]},"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":["U32"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":["U32"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U8"],"return":["U32"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":["U32"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u16":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u64":{"fileFormatVersion":6,"address":"0x1","name":"u64","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":["U64"]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U8"],"return":["U64"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":["U64"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u16":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"try_as_u32":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u8":{"fileFormatVersion":6,"address":"0x1","name":"u8","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8"],"return":["U8"]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8"],"return":["U8"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]}}},"uq32_32":{"fileFormatVersion":6,"address":"0x1","name":"uq32_32","friends":[],"structs":{"UQ32_32":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"pos0","type":"U64"}]}},"exposedFunctions":{"add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"from_int":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"from_quotient":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"from_raw":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"ge":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["Bool"]},"gt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["Bool"]},"int_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64",{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["U64"]},"int_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64",{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["U64"]},"le":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["Bool"]},"lt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["Bool"]},"mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"to_int":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["U32"]},"to_raw":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["U64"]}}},"uq64_64":{"fileFormatVersion":6,"address":"0x1","name":"uq64_64","friends":[],"structs":{"UQ64_64":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"pos0","type":"U128"}]}},"exposedFunctions":{"add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"from_int":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"from_quotient":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"from_raw":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"ge":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["Bool"]},"gt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["Bool"]},"int_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128",{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["U128"]},"int_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128",{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["U128"]},"le":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["Bool"]},"lt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["Bool"]},"mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"to_int":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["U64"]},"to_raw":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["U128"]}}},"vector":{"fileFormatVersion":6,"address":"0x1","name":"vector","friends":[],"structs":{},"exposedFunctions":{"append":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},{"Vector":{"TypeParameter":0}}],"return":[]},"borrow":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}},"U64"],"return":[{"Reference":{"TypeParameter":0}}]},"borrow_mut":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},"U64"],"return":[{"MutableReference":{"TypeParameter":0}}]},"contains":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}},{"Reference":{"TypeParameter":0}}],"return":["Bool"]},"destroy_empty":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Vector":{"TypeParameter":0}}],"return":[]},"empty":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Vector":{"TypeParameter":0}}]},"flatten":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Vector":{"Vector":{"TypeParameter":0}}}],"return":[{"Vector":{"TypeParameter":0}}]},"index_of":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}},{"Reference":{"TypeParameter":0}}],"return":["Bool","U64"]},"insert":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},{"TypeParameter":0},"U64"],"return":[]},"is_empty":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}}],"return":["Bool"]},"length":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}}],"return":["U64"]},"pop_back":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}}],"return":[{"TypeParameter":0}]},"push_back":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},{"TypeParameter":0}],"return":[]},"remove":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},"U64"],"return":[{"TypeParameter":0}]},"reverse":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}}],"return":[]},"singleton":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"TypeParameter":0}],"return":[{"Vector":{"TypeParameter":0}}]},"skip":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":["Drop"]}],"parameters":[{"Vector":{"TypeParameter":0}},"U64"],"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}]},"take":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":["Drop"]}],"parameters":[{"Vector":{"TypeParameter":0}},"U64"],"return":[{"Vector":{"TypeParameter":0}}]}}}}',
|
|
8474
|
+
'{"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":[]}}},"bool":{"fileFormatVersion":6,"address":"0x1","name":"bool","friends":[],"structs":{},"exposedFunctions":{}},"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"}]}}},"internal":{"fileFormatVersion":6,"address":"0x1","name":"internal","friends":[],"structs":{"Permit":{"abilities":{"abilities":["Drop"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"dummy_field","type":"Bool"}]}},"exposedFunctions":{"permit":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Struct":{"address":"0x1","module":"internal","name":"Permit","typeArguments":[{"TypeParameter":0}]}}]}}},"macros":{"fileFormatVersion":6,"address":"0x1","name":"macros","friends":[{"address":"0x1","name":"u128"},{"address":"0x1","name":"u16"},{"address":"0x1","name":"u256"},{"address":"0x1","name":"u32"},{"address":"0x1","name":"u64"},{"address":"0x1","name":"u8"},{"address":"0x1","name":"uq32_32"},{"address":"0x1","name":"uq64_64"}],"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":{"address_string":{"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":[]}}]},"as_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":[]}}}]},"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":[]}}}]},"datatype_string":{"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":[]}}]},"defining_id":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":["Address"]},"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"]},"module_string":{"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":[]}}]},"original_id":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":["Address"]},"with_defining_ids":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}]},"with_original_ids":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}]}}},"u128":{"fileFormatVersion":6,"address":"0x1","name":"u128","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":["U128"]},"checked_add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U128"]}}]},"checked_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U128"]}}]},"checked_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U128"]}}]},"checked_shl":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U128"]}}]},"checked_shr":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U128"]}}]},"checked_sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U128"]}}]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"lossless_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U128"]}}]},"lossless_shl":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U128"]}}]},"lossless_shr":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["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"]},"saturating_add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"saturating_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"saturating_sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":["U128"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u16":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"try_as_u32":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"try_as_u64":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u16":{"fileFormatVersion":6,"address":"0x1","name":"u16","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16"],"return":["U16"]},"checked_add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"checked_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"checked_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"checked_shl":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"checked_shr":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"checked_sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":["U16"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":["U16"]},"lossless_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"lossless_shl":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"lossless_shr":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["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"]},"saturating_add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":["U16"]},"saturating_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":["U16"]},"saturating_sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":["U16"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16"],"return":["U16"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u256":{"fileFormatVersion":6,"address":"0x1","name":"u256","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":["U256"]},"checked_add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U256"]}}]},"checked_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U256"]}}]},"checked_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U256"]}}]},"checked_sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U256"]}}]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":["U256"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":["U256"]},"lossless_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U256"]}}]},"lossless_shl":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U256"]}}]},"lossless_shr":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["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"]},"saturating_add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":["U256"]},"saturating_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":["U256"]},"saturating_sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":["U256"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u128":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U128"]}}]},"try_as_u16":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"try_as_u32":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"try_as_u64":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u32":{"fileFormatVersion":6,"address":"0x1","name":"u32","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":["U32"]},"checked_add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"checked_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"checked_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"checked_shl":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"checked_shr":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"checked_sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":["U32"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":["U32"]},"lossless_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"lossless_shl":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"lossless_shr":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["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"]},"saturating_add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":["U32"]},"saturating_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":["U32"]},"saturating_sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":["U32"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":["U32"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u16":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u64":{"fileFormatVersion":6,"address":"0x1","name":"u64","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":["U64"]},"checked_add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}]},"checked_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}]},"checked_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}]},"checked_shl":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}]},"checked_shr":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}]},"checked_sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"lossless_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}]},"lossless_shl":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}]},"lossless_shr":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["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"]},"saturating_add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"saturating_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"saturating_sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":["U64"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u16":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"try_as_u32":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u8":{"fileFormatVersion":6,"address":"0x1","name":"u8","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8"],"return":["U8"]},"checked_add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]},"checked_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]},"checked_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]},"checked_shl":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]},"checked_shr":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]},"checked_sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"lossless_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]},"lossless_shl":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]},"lossless_shr":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["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"]},"saturating_add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"saturating_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"saturating_sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8"],"return":["U8"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]}}},"uq32_32":{"fileFormatVersion":6,"address":"0x1","name":"uq32_32","friends":[],"structs":{"UQ32_32":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"pos0","type":"U64"}]}},"exposedFunctions":{"add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"from_int":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"from_quotient":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"from_raw":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"ge":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["Bool"]},"gt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["Bool"]},"int_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64",{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["U64"]},"int_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64",{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["U64"]},"le":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["Bool"]},"lt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["Bool"]},"mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"to_int":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["U32"]},"to_raw":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["U64"]}}},"uq64_64":{"fileFormatVersion":6,"address":"0x1","name":"uq64_64","friends":[],"structs":{"UQ64_64":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"pos0","type":"U128"}]}},"exposedFunctions":{"add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"from_int":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"from_quotient":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"from_raw":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"ge":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["Bool"]},"gt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["Bool"]},"int_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128",{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["U128"]},"int_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128",{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["U128"]},"le":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["Bool"]},"lt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["Bool"]},"mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"to_int":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["U64"]},"to_raw":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["U128"]}}},"vector":{"fileFormatVersion":6,"address":"0x1","name":"vector","friends":[],"structs":{},"exposedFunctions":{"append":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},{"Vector":{"TypeParameter":0}}],"return":[]},"borrow":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}},"U64"],"return":[{"Reference":{"TypeParameter":0}}]},"borrow_mut":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},"U64"],"return":[{"MutableReference":{"TypeParameter":0}}]},"contains":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}},{"Reference":{"TypeParameter":0}}],"return":["Bool"]},"destroy_empty":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Vector":{"TypeParameter":0}}],"return":[]},"empty":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Vector":{"TypeParameter":0}}]},"flatten":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Vector":{"Vector":{"TypeParameter":0}}}],"return":[{"Vector":{"TypeParameter":0}}]},"index_of":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}},{"Reference":{"TypeParameter":0}}],"return":["Bool","U64"]},"insert":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},{"TypeParameter":0},"U64"],"return":[]},"is_empty":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}}],"return":["Bool"]},"length":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}}],"return":["U64"]},"pop_back":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}}],"return":[{"TypeParameter":0}]},"push_back":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},{"TypeParameter":0}],"return":[]},"remove":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},"U64"],"return":[{"TypeParameter":0}]},"reverse":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}}],"return":[]},"singleton":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"TypeParameter":0}],"return":[{"Vector":{"TypeParameter":0}}]},"skip":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":["Drop"]}],"parameters":[{"Vector":{"TypeParameter":0}},"U64"],"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}]},"take":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":["Drop"]}],"parameters":[{"Vector":{"TypeParameter":0}},"U64"],"return":[{"Vector":{"TypeParameter":0}}]}}}}',
|
|
6360
8475
|
);
|
|
6361
8476
|
|
|
6362
8477
|
export function loadAllTypes(coder: MoveCoder) {
|