@typemove/sui 1.5.6 → 1.5.7-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/cjs/builtin/0x2.d.ts +261 -2
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +897 -72
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts +1288 -127
- package/dist/cjs/builtin/0x3.d.ts.map +1 -1
- package/dist/cjs/builtin/0x3.js +3045 -268
- package/dist/cjs/builtin/0x3.js.map +1 -1
- package/dist/cjs/codegen/codegen.js +2 -2
- package/dist/cjs/codegen/codegen.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +261 -2
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +897 -72
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +1288 -127
- package/dist/esm/builtin/0x3.d.ts.map +1 -1
- package/dist/esm/builtin/0x3.js +3045 -268
- package/dist/esm/builtin/0x3.js.map +1 -1
- package/dist/esm/codegen/codegen.js +2 -2
- package/dist/esm/codegen/codegen.js.map +1 -1
- package/package.json +4 -4
- package/src/builtin/0x2.ts +1972 -699
- package/src/builtin/0x3.ts +5427 -777
- package/src/codegen/codegen.ts +2 -2
- package/src/tests/types/testnet/0xdee9.ts +1890 -173
package/dist/cjs/builtin/0x2.js
CHANGED
|
@@ -569,6 +569,21 @@ var balance;
|
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
571
|
builder.decreaseSupply = decreaseSupply;
|
|
572
|
+
function destroySupply(tx, args, typeArguments) {
|
|
573
|
+
const _args = [];
|
|
574
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
575
|
+
// @ts-ignore
|
|
576
|
+
return tx.moveCall({
|
|
577
|
+
target: "0x2::balance::destroy_supply",
|
|
578
|
+
arguments: _args,
|
|
579
|
+
typeArguments: [
|
|
580
|
+
typeof typeArguments[0] === "string"
|
|
581
|
+
? typeArguments[0]
|
|
582
|
+
: typeArguments[0].getSignature(),
|
|
583
|
+
],
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
builder.destroySupply = destroySupply;
|
|
572
587
|
function destroyZero(tx, args, typeArguments) {
|
|
573
588
|
const _args = [];
|
|
574
589
|
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
@@ -714,6 +729,16 @@ var balance;
|
|
|
714
729
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
715
730
|
}
|
|
716
731
|
view.decreaseSupply = decreaseSupply;
|
|
732
|
+
async function destroySupply(client, args, typeArguments) {
|
|
733
|
+
const tx = new transactions_1.TransactionBlock();
|
|
734
|
+
builder.destroySupply(tx, args, typeArguments);
|
|
735
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
736
|
+
transactionBlock: tx,
|
|
737
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
738
|
+
});
|
|
739
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
740
|
+
}
|
|
741
|
+
view.destroySupply = destroySupply;
|
|
717
742
|
async function destroyZero(client, args, typeArguments) {
|
|
718
743
|
const tx = new transactions_1.TransactionBlock();
|
|
719
744
|
builder.destroyZero(tx, args, typeArguments);
|
|
@@ -3256,6 +3281,81 @@ var deny_list;
|
|
|
3256
3281
|
}
|
|
3257
3282
|
PerTypeList.type = type;
|
|
3258
3283
|
})(PerTypeList = deny_list.PerTypeList || (deny_list.PerTypeList = {}));
|
|
3284
|
+
let builder;
|
|
3285
|
+
(function (builder) {
|
|
3286
|
+
function add(tx, args) {
|
|
3287
|
+
const _args = [];
|
|
3288
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3289
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3290
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[2], tx));
|
|
3291
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[3], tx));
|
|
3292
|
+
// @ts-ignore
|
|
3293
|
+
return tx.moveCall({
|
|
3294
|
+
target: "0x2::deny_list::add",
|
|
3295
|
+
arguments: _args,
|
|
3296
|
+
});
|
|
3297
|
+
}
|
|
3298
|
+
builder.add = add;
|
|
3299
|
+
function contains(tx, args) {
|
|
3300
|
+
const _args = [];
|
|
3301
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3302
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3303
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[2], tx));
|
|
3304
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[3], tx));
|
|
3305
|
+
// @ts-ignore
|
|
3306
|
+
return tx.moveCall({
|
|
3307
|
+
target: "0x2::deny_list::contains",
|
|
3308
|
+
arguments: _args,
|
|
3309
|
+
});
|
|
3310
|
+
}
|
|
3311
|
+
builder.contains = contains;
|
|
3312
|
+
function remove(tx, args) {
|
|
3313
|
+
const _args = [];
|
|
3314
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3315
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3316
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[2], tx));
|
|
3317
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[3], tx));
|
|
3318
|
+
// @ts-ignore
|
|
3319
|
+
return tx.moveCall({
|
|
3320
|
+
target: "0x2::deny_list::remove",
|
|
3321
|
+
arguments: _args,
|
|
3322
|
+
});
|
|
3323
|
+
}
|
|
3324
|
+
builder.remove = remove;
|
|
3325
|
+
})(builder = deny_list.builder || (deny_list.builder = {}));
|
|
3326
|
+
let view;
|
|
3327
|
+
(function (view) {
|
|
3328
|
+
async function add(client, args) {
|
|
3329
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3330
|
+
builder.add(tx, args);
|
|
3331
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3332
|
+
transactionBlock: tx,
|
|
3333
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3334
|
+
});
|
|
3335
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3336
|
+
}
|
|
3337
|
+
view.add = add;
|
|
3338
|
+
async function contains(client, args) {
|
|
3339
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3340
|
+
builder.contains(tx, args);
|
|
3341
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3342
|
+
transactionBlock: tx,
|
|
3343
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3344
|
+
});
|
|
3345
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3346
|
+
}
|
|
3347
|
+
view.contains = contains;
|
|
3348
|
+
async function remove(client, args) {
|
|
3349
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3350
|
+
builder.remove(tx, args);
|
|
3351
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3352
|
+
transactionBlock: tx,
|
|
3353
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3354
|
+
});
|
|
3355
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3356
|
+
}
|
|
3357
|
+
view.remove = remove;
|
|
3358
|
+
})(view = deny_list.view || (deny_list.view = {}));
|
|
3259
3359
|
})(deny_list || (exports.deny_list = deny_list = {}));
|
|
3260
3360
|
var display;
|
|
3261
3361
|
(function (display) {
|
|
@@ -3610,6 +3710,22 @@ var dynamic_field;
|
|
|
3610
3710
|
});
|
|
3611
3711
|
}
|
|
3612
3712
|
builder.add = add;
|
|
3713
|
+
function addChildObject(tx, args, typeArguments) {
|
|
3714
|
+
const _args = [];
|
|
3715
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
3716
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3717
|
+
// @ts-ignore
|
|
3718
|
+
return tx.moveCall({
|
|
3719
|
+
target: "0x2::dynamic_field::add_child_object",
|
|
3720
|
+
arguments: _args,
|
|
3721
|
+
typeArguments: [
|
|
3722
|
+
typeof typeArguments[0] === "string"
|
|
3723
|
+
? typeArguments[0]
|
|
3724
|
+
: typeArguments[0].getSignature(),
|
|
3725
|
+
],
|
|
3726
|
+
});
|
|
3727
|
+
}
|
|
3728
|
+
builder.addChildObject = addChildObject;
|
|
3613
3729
|
function borrow(tx, args, typeArguments) {
|
|
3614
3730
|
const _args = [];
|
|
3615
3731
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -3629,6 +3745,38 @@ var dynamic_field;
|
|
|
3629
3745
|
});
|
|
3630
3746
|
}
|
|
3631
3747
|
builder.borrow = borrow;
|
|
3748
|
+
function borrowChildObject(tx, args, typeArguments) {
|
|
3749
|
+
const _args = [];
|
|
3750
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3751
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3752
|
+
// @ts-ignore
|
|
3753
|
+
return tx.moveCall({
|
|
3754
|
+
target: "0x2::dynamic_field::borrow_child_object",
|
|
3755
|
+
arguments: _args,
|
|
3756
|
+
typeArguments: [
|
|
3757
|
+
typeof typeArguments[0] === "string"
|
|
3758
|
+
? typeArguments[0]
|
|
3759
|
+
: typeArguments[0].getSignature(),
|
|
3760
|
+
],
|
|
3761
|
+
});
|
|
3762
|
+
}
|
|
3763
|
+
builder.borrowChildObject = borrowChildObject;
|
|
3764
|
+
function borrowChildObjectMut(tx, args, typeArguments) {
|
|
3765
|
+
const _args = [];
|
|
3766
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3767
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3768
|
+
// @ts-ignore
|
|
3769
|
+
return tx.moveCall({
|
|
3770
|
+
target: "0x2::dynamic_field::borrow_child_object_mut",
|
|
3771
|
+
arguments: _args,
|
|
3772
|
+
typeArguments: [
|
|
3773
|
+
typeof typeArguments[0] === "string"
|
|
3774
|
+
? typeArguments[0]
|
|
3775
|
+
: typeArguments[0].getSignature(),
|
|
3776
|
+
],
|
|
3777
|
+
});
|
|
3778
|
+
}
|
|
3779
|
+
builder.borrowChildObjectMut = borrowChildObjectMut;
|
|
3632
3780
|
function borrowMut(tx, args, typeArguments) {
|
|
3633
3781
|
const _args = [];
|
|
3634
3782
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -3683,6 +3831,81 @@ var dynamic_field;
|
|
|
3683
3831
|
});
|
|
3684
3832
|
}
|
|
3685
3833
|
builder.existsWithType = existsWithType;
|
|
3834
|
+
function fieldInfo(tx, args, typeArguments) {
|
|
3835
|
+
const _args = [];
|
|
3836
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3837
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3838
|
+
// @ts-ignore
|
|
3839
|
+
return tx.moveCall({
|
|
3840
|
+
target: "0x2::dynamic_field::field_info",
|
|
3841
|
+
arguments: _args,
|
|
3842
|
+
typeArguments: [
|
|
3843
|
+
typeof typeArguments[0] === "string"
|
|
3844
|
+
? typeArguments[0]
|
|
3845
|
+
: typeArguments[0].getSignature(),
|
|
3846
|
+
],
|
|
3847
|
+
});
|
|
3848
|
+
}
|
|
3849
|
+
builder.fieldInfo = fieldInfo;
|
|
3850
|
+
function fieldInfoMut(tx, args, typeArguments) {
|
|
3851
|
+
const _args = [];
|
|
3852
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3853
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3854
|
+
// @ts-ignore
|
|
3855
|
+
return tx.moveCall({
|
|
3856
|
+
target: "0x2::dynamic_field::field_info_mut",
|
|
3857
|
+
arguments: _args,
|
|
3858
|
+
typeArguments: [
|
|
3859
|
+
typeof typeArguments[0] === "string"
|
|
3860
|
+
? typeArguments[0]
|
|
3861
|
+
: typeArguments[0].getSignature(),
|
|
3862
|
+
],
|
|
3863
|
+
});
|
|
3864
|
+
}
|
|
3865
|
+
builder.fieldInfoMut = fieldInfoMut;
|
|
3866
|
+
function hasChildObject(tx, args) {
|
|
3867
|
+
const _args = [];
|
|
3868
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
3869
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3870
|
+
// @ts-ignore
|
|
3871
|
+
return tx.moveCall({
|
|
3872
|
+
target: "0x2::dynamic_field::has_child_object",
|
|
3873
|
+
arguments: _args,
|
|
3874
|
+
});
|
|
3875
|
+
}
|
|
3876
|
+
builder.hasChildObject = hasChildObject;
|
|
3877
|
+
function hasChildObjectWithTy(tx, args, typeArguments) {
|
|
3878
|
+
const _args = [];
|
|
3879
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
3880
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3881
|
+
// @ts-ignore
|
|
3882
|
+
return tx.moveCall({
|
|
3883
|
+
target: "0x2::dynamic_field::has_child_object_with_ty",
|
|
3884
|
+
arguments: _args,
|
|
3885
|
+
typeArguments: [
|
|
3886
|
+
typeof typeArguments[0] === "string"
|
|
3887
|
+
? typeArguments[0]
|
|
3888
|
+
: typeArguments[0].getSignature(),
|
|
3889
|
+
],
|
|
3890
|
+
});
|
|
3891
|
+
}
|
|
3892
|
+
builder.hasChildObjectWithTy = hasChildObjectWithTy;
|
|
3893
|
+
function hashTypeAndKey(tx, args, typeArguments) {
|
|
3894
|
+
const _args = [];
|
|
3895
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
3896
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3897
|
+
// @ts-ignore
|
|
3898
|
+
return tx.moveCall({
|
|
3899
|
+
target: "0x2::dynamic_field::hash_type_and_key",
|
|
3900
|
+
arguments: _args,
|
|
3901
|
+
typeArguments: [
|
|
3902
|
+
typeof typeArguments[0] === "string"
|
|
3903
|
+
? typeArguments[0]
|
|
3904
|
+
: typeArguments[0].getSignature(),
|
|
3905
|
+
],
|
|
3906
|
+
});
|
|
3907
|
+
}
|
|
3908
|
+
builder.hashTypeAndKey = hashTypeAndKey;
|
|
3686
3909
|
function remove(tx, args, typeArguments) {
|
|
3687
3910
|
const _args = [];
|
|
3688
3911
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -3702,6 +3925,22 @@ var dynamic_field;
|
|
|
3702
3925
|
});
|
|
3703
3926
|
}
|
|
3704
3927
|
builder.remove = remove;
|
|
3928
|
+
function removeChildObject(tx, args, typeArguments) {
|
|
3929
|
+
const _args = [];
|
|
3930
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
3931
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3932
|
+
// @ts-ignore
|
|
3933
|
+
return tx.moveCall({
|
|
3934
|
+
target: "0x2::dynamic_field::remove_child_object",
|
|
3935
|
+
arguments: _args,
|
|
3936
|
+
typeArguments: [
|
|
3937
|
+
typeof typeArguments[0] === "string"
|
|
3938
|
+
? typeArguments[0]
|
|
3939
|
+
: typeArguments[0].getSignature(),
|
|
3940
|
+
],
|
|
3941
|
+
});
|
|
3942
|
+
}
|
|
3943
|
+
builder.removeChildObject = removeChildObject;
|
|
3705
3944
|
function removeIfExists(tx, args, typeArguments) {
|
|
3706
3945
|
const _args = [];
|
|
3707
3946
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -3734,6 +3973,16 @@ var dynamic_field;
|
|
|
3734
3973
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3735
3974
|
}
|
|
3736
3975
|
view.add = add;
|
|
3976
|
+
async function addChildObject(client, args, typeArguments) {
|
|
3977
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3978
|
+
builder.addChildObject(tx, args, typeArguments);
|
|
3979
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3980
|
+
transactionBlock: tx,
|
|
3981
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3982
|
+
});
|
|
3983
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3984
|
+
}
|
|
3985
|
+
view.addChildObject = addChildObject;
|
|
3737
3986
|
async function borrow(client, args, typeArguments) {
|
|
3738
3987
|
const tx = new transactions_1.TransactionBlock();
|
|
3739
3988
|
builder.borrow(tx, args, typeArguments);
|
|
@@ -3744,6 +3993,26 @@ var dynamic_field;
|
|
|
3744
3993
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3745
3994
|
}
|
|
3746
3995
|
view.borrow = borrow;
|
|
3996
|
+
async function borrowChildObject(client, args, typeArguments) {
|
|
3997
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3998
|
+
builder.borrowChildObject(tx, args, typeArguments);
|
|
3999
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4000
|
+
transactionBlock: tx,
|
|
4001
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4002
|
+
});
|
|
4003
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4004
|
+
}
|
|
4005
|
+
view.borrowChildObject = borrowChildObject;
|
|
4006
|
+
async function borrowChildObjectMut(client, args, typeArguments) {
|
|
4007
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4008
|
+
builder.borrowChildObjectMut(tx, args, typeArguments);
|
|
4009
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4010
|
+
transactionBlock: tx,
|
|
4011
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4012
|
+
});
|
|
4013
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4014
|
+
}
|
|
4015
|
+
view.borrowChildObjectMut = borrowChildObjectMut;
|
|
3747
4016
|
async function borrowMut(client, args, typeArguments) {
|
|
3748
4017
|
const tx = new transactions_1.TransactionBlock();
|
|
3749
4018
|
builder.borrowMut(tx, args, typeArguments);
|
|
@@ -3774,6 +4043,56 @@ var dynamic_field;
|
|
|
3774
4043
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3775
4044
|
}
|
|
3776
4045
|
view.existsWithType = existsWithType;
|
|
4046
|
+
async function fieldInfo(client, args, typeArguments) {
|
|
4047
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4048
|
+
builder.fieldInfo(tx, args, typeArguments);
|
|
4049
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4050
|
+
transactionBlock: tx,
|
|
4051
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4052
|
+
});
|
|
4053
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4054
|
+
}
|
|
4055
|
+
view.fieldInfo = fieldInfo;
|
|
4056
|
+
async function fieldInfoMut(client, args, typeArguments) {
|
|
4057
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4058
|
+
builder.fieldInfoMut(tx, args, typeArguments);
|
|
4059
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4060
|
+
transactionBlock: tx,
|
|
4061
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4062
|
+
});
|
|
4063
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4064
|
+
}
|
|
4065
|
+
view.fieldInfoMut = fieldInfoMut;
|
|
4066
|
+
async function hasChildObject(client, args) {
|
|
4067
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4068
|
+
builder.hasChildObject(tx, args);
|
|
4069
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4070
|
+
transactionBlock: tx,
|
|
4071
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4072
|
+
});
|
|
4073
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4074
|
+
}
|
|
4075
|
+
view.hasChildObject = hasChildObject;
|
|
4076
|
+
async function hasChildObjectWithTy(client, args, typeArguments) {
|
|
4077
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4078
|
+
builder.hasChildObjectWithTy(tx, args, typeArguments);
|
|
4079
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4080
|
+
transactionBlock: tx,
|
|
4081
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4082
|
+
});
|
|
4083
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4084
|
+
}
|
|
4085
|
+
view.hasChildObjectWithTy = hasChildObjectWithTy;
|
|
4086
|
+
async function hashTypeAndKey(client, args, typeArguments) {
|
|
4087
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4088
|
+
builder.hashTypeAndKey(tx, args, typeArguments);
|
|
4089
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4090
|
+
transactionBlock: tx,
|
|
4091
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4092
|
+
});
|
|
4093
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4094
|
+
}
|
|
4095
|
+
view.hashTypeAndKey = hashTypeAndKey;
|
|
3777
4096
|
async function remove(client, args, typeArguments) {
|
|
3778
4097
|
const tx = new transactions_1.TransactionBlock();
|
|
3779
4098
|
builder.remove(tx, args, typeArguments);
|
|
@@ -3784,6 +4103,16 @@ var dynamic_field;
|
|
|
3784
4103
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3785
4104
|
}
|
|
3786
4105
|
view.remove = remove;
|
|
4106
|
+
async function removeChildObject(client, args, typeArguments) {
|
|
4107
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4108
|
+
builder.removeChildObject(tx, args, typeArguments);
|
|
4109
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4110
|
+
transactionBlock: tx,
|
|
4111
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4112
|
+
});
|
|
4113
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4114
|
+
}
|
|
4115
|
+
view.removeChildObject = removeChildObject;
|
|
3787
4116
|
async function removeIfExists(client, args, typeArguments) {
|
|
3788
4117
|
const tx = new transactions_1.TransactionBlock();
|
|
3789
4118
|
builder.removeIfExists(tx, args, typeArguments);
|
|
@@ -4387,133 +4716,385 @@ var groth16;
|
|
|
4387
4716
|
view.bn254 = bn254;
|
|
4388
4717
|
async function prepareVerifyingKey(client, args) {
|
|
4389
4718
|
const tx = new transactions_1.TransactionBlock();
|
|
4390
|
-
builder.prepareVerifyingKey(tx, args);
|
|
4719
|
+
builder.prepareVerifyingKey(tx, args);
|
|
4720
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4721
|
+
transactionBlock: tx,
|
|
4722
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4723
|
+
});
|
|
4724
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4725
|
+
}
|
|
4726
|
+
view.prepareVerifyingKey = prepareVerifyingKey;
|
|
4727
|
+
async function proofPointsFromBytes(client, args) {
|
|
4728
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4729
|
+
builder.proofPointsFromBytes(tx, args);
|
|
4730
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4731
|
+
transactionBlock: tx,
|
|
4732
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4733
|
+
});
|
|
4734
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4735
|
+
}
|
|
4736
|
+
view.proofPointsFromBytes = proofPointsFromBytes;
|
|
4737
|
+
async function publicProofInputsFromBytes(client, args) {
|
|
4738
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4739
|
+
builder.publicProofInputsFromBytes(tx, args);
|
|
4740
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4741
|
+
transactionBlock: tx,
|
|
4742
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4743
|
+
});
|
|
4744
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4745
|
+
}
|
|
4746
|
+
view.publicProofInputsFromBytes = publicProofInputsFromBytes;
|
|
4747
|
+
async function pvkFromBytes(client, args) {
|
|
4748
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4749
|
+
builder.pvkFromBytes(tx, args);
|
|
4750
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4751
|
+
transactionBlock: tx,
|
|
4752
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4753
|
+
});
|
|
4754
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4755
|
+
}
|
|
4756
|
+
view.pvkFromBytes = pvkFromBytes;
|
|
4757
|
+
async function pvkToBytes(client, args) {
|
|
4758
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4759
|
+
builder.pvkToBytes(tx, args);
|
|
4760
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4761
|
+
transactionBlock: tx,
|
|
4762
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4763
|
+
});
|
|
4764
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4765
|
+
}
|
|
4766
|
+
view.pvkToBytes = pvkToBytes;
|
|
4767
|
+
async function verifyGroth16Proof(client, args) {
|
|
4768
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4769
|
+
builder.verifyGroth16Proof(tx, args);
|
|
4770
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4771
|
+
transactionBlock: tx,
|
|
4772
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4773
|
+
});
|
|
4774
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4775
|
+
}
|
|
4776
|
+
view.verifyGroth16Proof = verifyGroth16Proof;
|
|
4777
|
+
})(view = groth16.view || (groth16.view = {}));
|
|
4778
|
+
})(groth16 || (exports.groth16 = groth16 = {}));
|
|
4779
|
+
var group_ops;
|
|
4780
|
+
(function (group_ops) {
|
|
4781
|
+
let Element;
|
|
4782
|
+
(function (Element) {
|
|
4783
|
+
Element.TYPE_QNAME = "0x2::group_ops::Element";
|
|
4784
|
+
const TYPE = new move_1.TypeDescriptor(Element.TYPE_QNAME);
|
|
4785
|
+
function type(arg0 = move_1.ANY_TYPE) {
|
|
4786
|
+
return TYPE.apply(arg0);
|
|
4787
|
+
}
|
|
4788
|
+
Element.type = type;
|
|
4789
|
+
})(Element = group_ops.Element || (group_ops.Element = {}));
|
|
4790
|
+
let builder;
|
|
4791
|
+
(function (builder) {
|
|
4792
|
+
function add(tx, args, typeArguments) {
|
|
4793
|
+
const _args = [];
|
|
4794
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
4795
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
4796
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[2], tx));
|
|
4797
|
+
// @ts-ignore
|
|
4798
|
+
return tx.moveCall({
|
|
4799
|
+
target: "0x2::group_ops::add",
|
|
4800
|
+
arguments: _args,
|
|
4801
|
+
typeArguments: [
|
|
4802
|
+
typeof typeArguments[0] === "string"
|
|
4803
|
+
? typeArguments[0]
|
|
4804
|
+
: typeArguments[0].getSignature(),
|
|
4805
|
+
],
|
|
4806
|
+
});
|
|
4807
|
+
}
|
|
4808
|
+
builder.add = add;
|
|
4809
|
+
function bytes(tx, args, typeArguments) {
|
|
4810
|
+
const _args = [];
|
|
4811
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4812
|
+
// @ts-ignore
|
|
4813
|
+
return tx.moveCall({
|
|
4814
|
+
target: "0x2::group_ops::bytes",
|
|
4815
|
+
arguments: _args,
|
|
4816
|
+
typeArguments: [
|
|
4817
|
+
typeof typeArguments[0] === "string"
|
|
4818
|
+
? typeArguments[0]
|
|
4819
|
+
: typeArguments[0].getSignature(),
|
|
4820
|
+
],
|
|
4821
|
+
});
|
|
4822
|
+
}
|
|
4823
|
+
builder.bytes = bytes;
|
|
4824
|
+
function div(tx, args, typeArguments) {
|
|
4825
|
+
const _args = [];
|
|
4826
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
4827
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
4828
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[2], tx));
|
|
4829
|
+
// @ts-ignore
|
|
4830
|
+
return tx.moveCall({
|
|
4831
|
+
target: "0x2::group_ops::div",
|
|
4832
|
+
arguments: _args,
|
|
4833
|
+
typeArguments: [
|
|
4834
|
+
typeof typeArguments[0] === "string"
|
|
4835
|
+
? typeArguments[0]
|
|
4836
|
+
: typeArguments[0].getSignature(),
|
|
4837
|
+
typeof typeArguments[1] === "string"
|
|
4838
|
+
? typeArguments[1]
|
|
4839
|
+
: typeArguments[1].getSignature(),
|
|
4840
|
+
],
|
|
4841
|
+
});
|
|
4842
|
+
}
|
|
4843
|
+
builder.div = div;
|
|
4844
|
+
function equal(tx, args, typeArguments) {
|
|
4845
|
+
const _args = [];
|
|
4846
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4847
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
4848
|
+
// @ts-ignore
|
|
4849
|
+
return tx.moveCall({
|
|
4850
|
+
target: "0x2::group_ops::equal",
|
|
4851
|
+
arguments: _args,
|
|
4852
|
+
typeArguments: [
|
|
4853
|
+
typeof typeArguments[0] === "string"
|
|
4854
|
+
? typeArguments[0]
|
|
4855
|
+
: typeArguments[0].getSignature(),
|
|
4856
|
+
],
|
|
4857
|
+
});
|
|
4858
|
+
}
|
|
4859
|
+
builder.equal = equal;
|
|
4860
|
+
function fromBytes(tx, args, typeArguments) {
|
|
4861
|
+
const _args = [];
|
|
4862
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
4863
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
4864
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
4865
|
+
// @ts-ignore
|
|
4866
|
+
return tx.moveCall({
|
|
4867
|
+
target: "0x2::group_ops::from_bytes",
|
|
4868
|
+
arguments: _args,
|
|
4869
|
+
typeArguments: [
|
|
4870
|
+
typeof typeArguments[0] === "string"
|
|
4871
|
+
? typeArguments[0]
|
|
4872
|
+
: typeArguments[0].getSignature(),
|
|
4873
|
+
],
|
|
4874
|
+
});
|
|
4875
|
+
}
|
|
4876
|
+
builder.fromBytes = fromBytes;
|
|
4877
|
+
function hashTo(tx, args, typeArguments) {
|
|
4878
|
+
const _args = [];
|
|
4879
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
4880
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
4881
|
+
// @ts-ignore
|
|
4882
|
+
return tx.moveCall({
|
|
4883
|
+
target: "0x2::group_ops::hash_to",
|
|
4884
|
+
arguments: _args,
|
|
4885
|
+
typeArguments: [
|
|
4886
|
+
typeof typeArguments[0] === "string"
|
|
4887
|
+
? typeArguments[0]
|
|
4888
|
+
: typeArguments[0].getSignature(),
|
|
4889
|
+
],
|
|
4890
|
+
});
|
|
4891
|
+
}
|
|
4892
|
+
builder.hashTo = hashTo;
|
|
4893
|
+
function mul(tx, args, typeArguments) {
|
|
4894
|
+
const _args = [];
|
|
4895
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
4896
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
4897
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[2], tx));
|
|
4898
|
+
// @ts-ignore
|
|
4899
|
+
return tx.moveCall({
|
|
4900
|
+
target: "0x2::group_ops::mul",
|
|
4901
|
+
arguments: _args,
|
|
4902
|
+
typeArguments: [
|
|
4903
|
+
typeof typeArguments[0] === "string"
|
|
4904
|
+
? typeArguments[0]
|
|
4905
|
+
: typeArguments[0].getSignature(),
|
|
4906
|
+
typeof typeArguments[1] === "string"
|
|
4907
|
+
? typeArguments[1]
|
|
4908
|
+
: typeArguments[1].getSignature(),
|
|
4909
|
+
],
|
|
4910
|
+
});
|
|
4911
|
+
}
|
|
4912
|
+
builder.mul = mul;
|
|
4913
|
+
function multiScalarMultiplication(tx, args, typeArguments) {
|
|
4914
|
+
const _args = [];
|
|
4915
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
4916
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
4917
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[2], tx));
|
|
4918
|
+
// @ts-ignore
|
|
4919
|
+
return tx.moveCall({
|
|
4920
|
+
target: "0x2::group_ops::multi_scalar_multiplication",
|
|
4921
|
+
arguments: _args,
|
|
4922
|
+
typeArguments: [
|
|
4923
|
+
typeof typeArguments[0] === "string"
|
|
4924
|
+
? typeArguments[0]
|
|
4925
|
+
: typeArguments[0].getSignature(),
|
|
4926
|
+
typeof typeArguments[1] === "string"
|
|
4927
|
+
? typeArguments[1]
|
|
4928
|
+
: typeArguments[1].getSignature(),
|
|
4929
|
+
],
|
|
4930
|
+
});
|
|
4931
|
+
}
|
|
4932
|
+
builder.multiScalarMultiplication = multiScalarMultiplication;
|
|
4933
|
+
function pairing(tx, args, typeArguments) {
|
|
4934
|
+
const _args = [];
|
|
4935
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
4936
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
4937
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[2], tx));
|
|
4938
|
+
// @ts-ignore
|
|
4939
|
+
return tx.moveCall({
|
|
4940
|
+
target: "0x2::group_ops::pairing",
|
|
4941
|
+
arguments: _args,
|
|
4942
|
+
typeArguments: [
|
|
4943
|
+
typeof typeArguments[0] === "string"
|
|
4944
|
+
? typeArguments[0]
|
|
4945
|
+
: typeArguments[0].getSignature(),
|
|
4946
|
+
typeof typeArguments[1] === "string"
|
|
4947
|
+
? typeArguments[1]
|
|
4948
|
+
: typeArguments[1].getSignature(),
|
|
4949
|
+
typeof typeArguments[2] === "string"
|
|
4950
|
+
? typeArguments[2]
|
|
4951
|
+
: typeArguments[2].getSignature(),
|
|
4952
|
+
],
|
|
4953
|
+
});
|
|
4954
|
+
}
|
|
4955
|
+
builder.pairing = pairing;
|
|
4956
|
+
function setAsPrefix(tx, args) {
|
|
4957
|
+
const _args = [];
|
|
4958
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
4959
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
4960
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[2], tx));
|
|
4961
|
+
// @ts-ignore
|
|
4962
|
+
return tx.moveCall({
|
|
4963
|
+
target: "0x2::group_ops::set_as_prefix",
|
|
4964
|
+
arguments: _args,
|
|
4965
|
+
});
|
|
4966
|
+
}
|
|
4967
|
+
builder.setAsPrefix = setAsPrefix;
|
|
4968
|
+
function sub(tx, args, typeArguments) {
|
|
4969
|
+
const _args = [];
|
|
4970
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
4971
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
4972
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[2], tx));
|
|
4973
|
+
// @ts-ignore
|
|
4974
|
+
return tx.moveCall({
|
|
4975
|
+
target: "0x2::group_ops::sub",
|
|
4976
|
+
arguments: _args,
|
|
4977
|
+
typeArguments: [
|
|
4978
|
+
typeof typeArguments[0] === "string"
|
|
4979
|
+
? typeArguments[0]
|
|
4980
|
+
: typeArguments[0].getSignature(),
|
|
4981
|
+
],
|
|
4982
|
+
});
|
|
4983
|
+
}
|
|
4984
|
+
builder.sub = sub;
|
|
4985
|
+
})(builder = group_ops.builder || (group_ops.builder = {}));
|
|
4986
|
+
let view;
|
|
4987
|
+
(function (view) {
|
|
4988
|
+
async function add(client, args, typeArguments) {
|
|
4989
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4990
|
+
builder.add(tx, args, typeArguments);
|
|
4991
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4992
|
+
transactionBlock: tx,
|
|
4993
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4994
|
+
});
|
|
4995
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4996
|
+
}
|
|
4997
|
+
view.add = add;
|
|
4998
|
+
async function bytes(client, args, typeArguments) {
|
|
4999
|
+
const tx = new transactions_1.TransactionBlock();
|
|
5000
|
+
builder.bytes(tx, args, typeArguments);
|
|
5001
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5002
|
+
transactionBlock: tx,
|
|
5003
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
5004
|
+
});
|
|
5005
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5006
|
+
}
|
|
5007
|
+
view.bytes = bytes;
|
|
5008
|
+
async function div(client, args, typeArguments) {
|
|
5009
|
+
const tx = new transactions_1.TransactionBlock();
|
|
5010
|
+
builder.div(tx, args, typeArguments);
|
|
5011
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5012
|
+
transactionBlock: tx,
|
|
5013
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
5014
|
+
});
|
|
5015
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5016
|
+
}
|
|
5017
|
+
view.div = div;
|
|
5018
|
+
async function equal(client, args, typeArguments) {
|
|
5019
|
+
const tx = new transactions_1.TransactionBlock();
|
|
5020
|
+
builder.equal(tx, args, typeArguments);
|
|
4391
5021
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4392
5022
|
transactionBlock: tx,
|
|
4393
5023
|
sender: sui_2.ZERO_ADDRESS,
|
|
4394
5024
|
});
|
|
4395
5025
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4396
5026
|
}
|
|
4397
|
-
view.
|
|
4398
|
-
async function
|
|
5027
|
+
view.equal = equal;
|
|
5028
|
+
async function fromBytes(client, args, typeArguments) {
|
|
4399
5029
|
const tx = new transactions_1.TransactionBlock();
|
|
4400
|
-
builder.
|
|
5030
|
+
builder.fromBytes(tx, args, typeArguments);
|
|
4401
5031
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4402
5032
|
transactionBlock: tx,
|
|
4403
5033
|
sender: sui_2.ZERO_ADDRESS,
|
|
4404
5034
|
});
|
|
4405
5035
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4406
5036
|
}
|
|
4407
|
-
view.
|
|
4408
|
-
async function
|
|
5037
|
+
view.fromBytes = fromBytes;
|
|
5038
|
+
async function hashTo(client, args, typeArguments) {
|
|
4409
5039
|
const tx = new transactions_1.TransactionBlock();
|
|
4410
|
-
builder.
|
|
5040
|
+
builder.hashTo(tx, args, typeArguments);
|
|
4411
5041
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4412
5042
|
transactionBlock: tx,
|
|
4413
5043
|
sender: sui_2.ZERO_ADDRESS,
|
|
4414
5044
|
});
|
|
4415
5045
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4416
5046
|
}
|
|
4417
|
-
view.
|
|
4418
|
-
async function
|
|
5047
|
+
view.hashTo = hashTo;
|
|
5048
|
+
async function mul(client, args, typeArguments) {
|
|
4419
5049
|
const tx = new transactions_1.TransactionBlock();
|
|
4420
|
-
builder.
|
|
5050
|
+
builder.mul(tx, args, typeArguments);
|
|
4421
5051
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4422
5052
|
transactionBlock: tx,
|
|
4423
5053
|
sender: sui_2.ZERO_ADDRESS,
|
|
4424
5054
|
});
|
|
4425
5055
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4426
5056
|
}
|
|
4427
|
-
view.
|
|
4428
|
-
async function
|
|
5057
|
+
view.mul = mul;
|
|
5058
|
+
async function multiScalarMultiplication(client, args, typeArguments) {
|
|
4429
5059
|
const tx = new transactions_1.TransactionBlock();
|
|
4430
|
-
builder.
|
|
5060
|
+
builder.multiScalarMultiplication(tx, args, typeArguments);
|
|
4431
5061
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4432
5062
|
transactionBlock: tx,
|
|
4433
5063
|
sender: sui_2.ZERO_ADDRESS,
|
|
4434
5064
|
});
|
|
4435
5065
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4436
5066
|
}
|
|
4437
|
-
view.
|
|
4438
|
-
async function
|
|
5067
|
+
view.multiScalarMultiplication = multiScalarMultiplication;
|
|
5068
|
+
async function pairing(client, args, typeArguments) {
|
|
4439
5069
|
const tx = new transactions_1.TransactionBlock();
|
|
4440
|
-
builder.
|
|
5070
|
+
builder.pairing(tx, args, typeArguments);
|
|
4441
5071
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4442
5072
|
transactionBlock: tx,
|
|
4443
5073
|
sender: sui_2.ZERO_ADDRESS,
|
|
4444
5074
|
});
|
|
4445
5075
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4446
5076
|
}
|
|
4447
|
-
view.
|
|
4448
|
-
|
|
4449
|
-
})(groth16 || (exports.groth16 = groth16 = {}));
|
|
4450
|
-
var group_ops;
|
|
4451
|
-
(function (group_ops) {
|
|
4452
|
-
let Element;
|
|
4453
|
-
(function (Element) {
|
|
4454
|
-
Element.TYPE_QNAME = "0x2::group_ops::Element";
|
|
4455
|
-
const TYPE = new move_1.TypeDescriptor(Element.TYPE_QNAME);
|
|
4456
|
-
function type(arg0 = move_1.ANY_TYPE) {
|
|
4457
|
-
return TYPE.apply(arg0);
|
|
4458
|
-
}
|
|
4459
|
-
Element.type = type;
|
|
4460
|
-
})(Element = group_ops.Element || (group_ops.Element = {}));
|
|
4461
|
-
let builder;
|
|
4462
|
-
(function (builder) {
|
|
4463
|
-
function bytes(tx, args, typeArguments) {
|
|
4464
|
-
const _args = [];
|
|
4465
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4466
|
-
// @ts-ignore
|
|
4467
|
-
return tx.moveCall({
|
|
4468
|
-
target: "0x2::group_ops::bytes",
|
|
4469
|
-
arguments: _args,
|
|
4470
|
-
typeArguments: [
|
|
4471
|
-
typeof typeArguments[0] === "string"
|
|
4472
|
-
? typeArguments[0]
|
|
4473
|
-
: typeArguments[0].getSignature(),
|
|
4474
|
-
],
|
|
4475
|
-
});
|
|
4476
|
-
}
|
|
4477
|
-
builder.bytes = bytes;
|
|
4478
|
-
function equal(tx, args, typeArguments) {
|
|
4479
|
-
const _args = [];
|
|
4480
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4481
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
4482
|
-
// @ts-ignore
|
|
4483
|
-
return tx.moveCall({
|
|
4484
|
-
target: "0x2::group_ops::equal",
|
|
4485
|
-
arguments: _args,
|
|
4486
|
-
typeArguments: [
|
|
4487
|
-
typeof typeArguments[0] === "string"
|
|
4488
|
-
? typeArguments[0]
|
|
4489
|
-
: typeArguments[0].getSignature(),
|
|
4490
|
-
],
|
|
4491
|
-
});
|
|
4492
|
-
}
|
|
4493
|
-
builder.equal = equal;
|
|
4494
|
-
})(builder = group_ops.builder || (group_ops.builder = {}));
|
|
4495
|
-
let view;
|
|
4496
|
-
(function (view) {
|
|
4497
|
-
async function bytes(client, args, typeArguments) {
|
|
5077
|
+
view.pairing = pairing;
|
|
5078
|
+
async function setAsPrefix(client, args) {
|
|
4498
5079
|
const tx = new transactions_1.TransactionBlock();
|
|
4499
|
-
builder.
|
|
5080
|
+
builder.setAsPrefix(tx, args);
|
|
4500
5081
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4501
5082
|
transactionBlock: tx,
|
|
4502
5083
|
sender: sui_2.ZERO_ADDRESS,
|
|
4503
5084
|
});
|
|
4504
5085
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4505
5086
|
}
|
|
4506
|
-
view.
|
|
4507
|
-
async function
|
|
5087
|
+
view.setAsPrefix = setAsPrefix;
|
|
5088
|
+
async function sub(client, args, typeArguments) {
|
|
4508
5089
|
const tx = new transactions_1.TransactionBlock();
|
|
4509
|
-
builder.
|
|
5090
|
+
builder.sub(tx, args, typeArguments);
|
|
4510
5091
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4511
5092
|
transactionBlock: tx,
|
|
4512
5093
|
sender: sui_2.ZERO_ADDRESS,
|
|
4513
5094
|
});
|
|
4514
5095
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4515
5096
|
}
|
|
4516
|
-
view.
|
|
5097
|
+
view.sub = sub;
|
|
4517
5098
|
})(view = group_ops.view || (group_ops.view = {}));
|
|
4518
5099
|
})(group_ops || (exports.group_ops = group_ops = {}));
|
|
4519
5100
|
var hash;
|
|
@@ -4971,6 +5552,22 @@ var kiosk;
|
|
|
4971
5552
|
});
|
|
4972
5553
|
}
|
|
4973
5554
|
builder.lock = lock;
|
|
5555
|
+
function lockInternal(tx, args, typeArguments) {
|
|
5556
|
+
const _args = [];
|
|
5557
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
5558
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
5559
|
+
// @ts-ignore
|
|
5560
|
+
return tx.moveCall({
|
|
5561
|
+
target: "0x2::kiosk::lock_internal",
|
|
5562
|
+
arguments: _args,
|
|
5563
|
+
typeArguments: [
|
|
5564
|
+
typeof typeArguments[0] === "string"
|
|
5565
|
+
? typeArguments[0]
|
|
5566
|
+
: typeArguments[0].getSignature(),
|
|
5567
|
+
],
|
|
5568
|
+
});
|
|
5569
|
+
}
|
|
5570
|
+
builder.lockInternal = lockInternal;
|
|
4974
5571
|
function new_(tx, args) {
|
|
4975
5572
|
const _args = [];
|
|
4976
5573
|
// @ts-ignore
|
|
@@ -5025,6 +5622,22 @@ var kiosk;
|
|
|
5025
5622
|
});
|
|
5026
5623
|
}
|
|
5027
5624
|
builder.placeAndList = placeAndList;
|
|
5625
|
+
function placeInternal(tx, args, typeArguments) {
|
|
5626
|
+
const _args = [];
|
|
5627
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
5628
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
5629
|
+
// @ts-ignore
|
|
5630
|
+
return tx.moveCall({
|
|
5631
|
+
target: "0x2::kiosk::place_internal",
|
|
5632
|
+
arguments: _args,
|
|
5633
|
+
typeArguments: [
|
|
5634
|
+
typeof typeArguments[0] === "string"
|
|
5635
|
+
? typeArguments[0]
|
|
5636
|
+
: typeArguments[0].getSignature(),
|
|
5637
|
+
],
|
|
5638
|
+
});
|
|
5639
|
+
}
|
|
5640
|
+
builder.placeInternal = placeInternal;
|
|
5028
5641
|
function profitsAmount(tx, args) {
|
|
5029
5642
|
const _args = [];
|
|
5030
5643
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -5241,6 +5854,16 @@ var kiosk;
|
|
|
5241
5854
|
});
|
|
5242
5855
|
}
|
|
5243
5856
|
builder.uidMutAsOwner = uidMutAsOwner;
|
|
5857
|
+
function uidMutInternal(tx, args) {
|
|
5858
|
+
const _args = [];
|
|
5859
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
5860
|
+
// @ts-ignore
|
|
5861
|
+
return tx.moveCall({
|
|
5862
|
+
target: "0x2::kiosk::uid_mut_internal",
|
|
5863
|
+
arguments: _args,
|
|
5864
|
+
});
|
|
5865
|
+
}
|
|
5866
|
+
builder.uidMutInternal = uidMutInternal;
|
|
5244
5867
|
function withdraw(tx, args) {
|
|
5245
5868
|
const _args = [];
|
|
5246
5869
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -5416,6 +6039,16 @@ var kiosk;
|
|
|
5416
6039
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5417
6040
|
}
|
|
5418
6041
|
view.lock = lock;
|
|
6042
|
+
async function lockInternal(client, args, typeArguments) {
|
|
6043
|
+
const tx = new transactions_1.TransactionBlock();
|
|
6044
|
+
builder.lockInternal(tx, args, typeArguments);
|
|
6045
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
6046
|
+
transactionBlock: tx,
|
|
6047
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
6048
|
+
});
|
|
6049
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
6050
|
+
}
|
|
6051
|
+
view.lockInternal = lockInternal;
|
|
5419
6052
|
async function new_(client, args) {
|
|
5420
6053
|
const tx = new transactions_1.TransactionBlock();
|
|
5421
6054
|
builder.new_(tx, args);
|
|
@@ -5456,6 +6089,16 @@ var kiosk;
|
|
|
5456
6089
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5457
6090
|
}
|
|
5458
6091
|
view.placeAndList = placeAndList;
|
|
6092
|
+
async function placeInternal(client, args, typeArguments) {
|
|
6093
|
+
const tx = new transactions_1.TransactionBlock();
|
|
6094
|
+
builder.placeInternal(tx, args, typeArguments);
|
|
6095
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
6096
|
+
transactionBlock: tx,
|
|
6097
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
6098
|
+
});
|
|
6099
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
6100
|
+
}
|
|
6101
|
+
view.placeInternal = placeInternal;
|
|
5459
6102
|
async function profitsAmount(client, args) {
|
|
5460
6103
|
const tx = new transactions_1.TransactionBlock();
|
|
5461
6104
|
builder.profitsAmount(tx, args);
|
|
@@ -5616,6 +6259,16 @@ var kiosk;
|
|
|
5616
6259
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5617
6260
|
}
|
|
5618
6261
|
view.uidMutAsOwner = uidMutAsOwner;
|
|
6262
|
+
async function uidMutInternal(client, args) {
|
|
6263
|
+
const tx = new transactions_1.TransactionBlock();
|
|
6264
|
+
builder.uidMutInternal(tx, args);
|
|
6265
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
6266
|
+
transactionBlock: tx,
|
|
6267
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
6268
|
+
});
|
|
6269
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
6270
|
+
}
|
|
6271
|
+
view.uidMutInternal = uidMutInternal;
|
|
5619
6272
|
async function withdraw(client, args) {
|
|
5620
6273
|
const tx = new transactions_1.TransactionBlock();
|
|
5621
6274
|
builder.withdraw(tx, args);
|
|
@@ -6663,6 +7316,15 @@ var object_;
|
|
|
6663
7316
|
})(UID = object_.UID || (object_.UID = {}));
|
|
6664
7317
|
let builder;
|
|
6665
7318
|
(function (builder) {
|
|
7319
|
+
function authenticatorState(tx, args) {
|
|
7320
|
+
const _args = [];
|
|
7321
|
+
// @ts-ignore
|
|
7322
|
+
return tx.moveCall({
|
|
7323
|
+
target: "0x2::object::authenticator_state",
|
|
7324
|
+
arguments: _args,
|
|
7325
|
+
});
|
|
7326
|
+
}
|
|
7327
|
+
builder.authenticatorState = authenticatorState;
|
|
6666
7328
|
function borrowId(tx, args, typeArguments) {
|
|
6667
7329
|
const _args = [];
|
|
6668
7330
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -6678,6 +7340,15 @@ var object_;
|
|
|
6678
7340
|
});
|
|
6679
7341
|
}
|
|
6680
7342
|
builder.borrowId = borrowId;
|
|
7343
|
+
function clock(tx, args) {
|
|
7344
|
+
const _args = [];
|
|
7345
|
+
// @ts-ignore
|
|
7346
|
+
return tx.moveCall({
|
|
7347
|
+
target: "0x2::object::clock",
|
|
7348
|
+
arguments: _args,
|
|
7349
|
+
});
|
|
7350
|
+
}
|
|
7351
|
+
builder.clock = clock;
|
|
6681
7352
|
function delete_(tx, args) {
|
|
6682
7353
|
const _args = [];
|
|
6683
7354
|
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
@@ -6782,6 +7453,34 @@ var object_;
|
|
|
6782
7453
|
});
|
|
6783
7454
|
}
|
|
6784
7455
|
builder.new_ = new_;
|
|
7456
|
+
function newUidFromHash(tx, args) {
|
|
7457
|
+
const _args = [];
|
|
7458
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
7459
|
+
// @ts-ignore
|
|
7460
|
+
return tx.moveCall({
|
|
7461
|
+
target: "0x2::object::new_uid_from_hash",
|
|
7462
|
+
arguments: _args,
|
|
7463
|
+
});
|
|
7464
|
+
}
|
|
7465
|
+
builder.newUidFromHash = newUidFromHash;
|
|
7466
|
+
function randomnessState(tx, args) {
|
|
7467
|
+
const _args = [];
|
|
7468
|
+
// @ts-ignore
|
|
7469
|
+
return tx.moveCall({
|
|
7470
|
+
target: "0x2::object::randomness_state",
|
|
7471
|
+
arguments: _args,
|
|
7472
|
+
});
|
|
7473
|
+
}
|
|
7474
|
+
builder.randomnessState = randomnessState;
|
|
7475
|
+
function suiDenyListObjectId(tx, args) {
|
|
7476
|
+
const _args = [];
|
|
7477
|
+
// @ts-ignore
|
|
7478
|
+
return tx.moveCall({
|
|
7479
|
+
target: "0x2::object::sui_deny_list_object_id",
|
|
7480
|
+
arguments: _args,
|
|
7481
|
+
});
|
|
7482
|
+
}
|
|
7483
|
+
builder.suiDenyListObjectId = suiDenyListObjectId;
|
|
6785
7484
|
function uidAsInner(tx, args) {
|
|
6786
7485
|
const _args = [];
|
|
6787
7486
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -6825,6 +7524,16 @@ var object_;
|
|
|
6825
7524
|
})(builder = object_.builder || (object_.builder = {}));
|
|
6826
7525
|
let view;
|
|
6827
7526
|
(function (view) {
|
|
7527
|
+
async function authenticatorState(client, args) {
|
|
7528
|
+
const tx = new transactions_1.TransactionBlock();
|
|
7529
|
+
builder.authenticatorState(tx, args);
|
|
7530
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
7531
|
+
transactionBlock: tx,
|
|
7532
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
7533
|
+
});
|
|
7534
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
7535
|
+
}
|
|
7536
|
+
view.authenticatorState = authenticatorState;
|
|
6828
7537
|
async function borrowId(client, args, typeArguments) {
|
|
6829
7538
|
const tx = new transactions_1.TransactionBlock();
|
|
6830
7539
|
builder.borrowId(tx, args, typeArguments);
|
|
@@ -6835,6 +7544,16 @@ var object_;
|
|
|
6835
7544
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
6836
7545
|
}
|
|
6837
7546
|
view.borrowId = borrowId;
|
|
7547
|
+
async function clock(client, args) {
|
|
7548
|
+
const tx = new transactions_1.TransactionBlock();
|
|
7549
|
+
builder.clock(tx, args);
|
|
7550
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
7551
|
+
transactionBlock: tx,
|
|
7552
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
7553
|
+
});
|
|
7554
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
7555
|
+
}
|
|
7556
|
+
view.clock = clock;
|
|
6838
7557
|
async function delete_(client, args) {
|
|
6839
7558
|
const tx = new transactions_1.TransactionBlock();
|
|
6840
7559
|
builder.delete_(tx, args);
|
|
@@ -6925,6 +7644,36 @@ var object_;
|
|
|
6925
7644
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
6926
7645
|
}
|
|
6927
7646
|
view.new_ = new_;
|
|
7647
|
+
async function newUidFromHash(client, args) {
|
|
7648
|
+
const tx = new transactions_1.TransactionBlock();
|
|
7649
|
+
builder.newUidFromHash(tx, args);
|
|
7650
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
7651
|
+
transactionBlock: tx,
|
|
7652
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
7653
|
+
});
|
|
7654
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
7655
|
+
}
|
|
7656
|
+
view.newUidFromHash = newUidFromHash;
|
|
7657
|
+
async function randomnessState(client, args) {
|
|
7658
|
+
const tx = new transactions_1.TransactionBlock();
|
|
7659
|
+
builder.randomnessState(tx, args);
|
|
7660
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
7661
|
+
transactionBlock: tx,
|
|
7662
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
7663
|
+
});
|
|
7664
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
7665
|
+
}
|
|
7666
|
+
view.randomnessState = randomnessState;
|
|
7667
|
+
async function suiDenyListObjectId(client, args) {
|
|
7668
|
+
const tx = new transactions_1.TransactionBlock();
|
|
7669
|
+
builder.suiDenyListObjectId(tx, args);
|
|
7670
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
7671
|
+
transactionBlock: tx,
|
|
7672
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
7673
|
+
});
|
|
7674
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
7675
|
+
}
|
|
7676
|
+
view.suiDenyListObjectId = suiDenyListObjectId;
|
|
6928
7677
|
async function uidAsInner(client, args) {
|
|
6929
7678
|
const tx = new transactions_1.TransactionBlock();
|
|
6930
7679
|
builder.uidAsInner(tx, args);
|
|
@@ -10775,6 +11524,21 @@ var transfer;
|
|
|
10775
11524
|
});
|
|
10776
11525
|
}
|
|
10777
11526
|
builder.freezeObject = freezeObject;
|
|
11527
|
+
function freezeObjectImpl(tx, args, typeArguments) {
|
|
11528
|
+
const _args = [];
|
|
11529
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
11530
|
+
// @ts-ignore
|
|
11531
|
+
return tx.moveCall({
|
|
11532
|
+
target: "0x2::transfer::freeze_object_impl",
|
|
11533
|
+
arguments: _args,
|
|
11534
|
+
typeArguments: [
|
|
11535
|
+
typeof typeArguments[0] === "string"
|
|
11536
|
+
? typeArguments[0]
|
|
11537
|
+
: typeArguments[0].getSignature(),
|
|
11538
|
+
],
|
|
11539
|
+
});
|
|
11540
|
+
}
|
|
11541
|
+
builder.freezeObjectImpl = freezeObjectImpl;
|
|
10778
11542
|
function publicFreezeObject(tx, args, typeArguments) {
|
|
10779
11543
|
const _args = [];
|
|
10780
11544
|
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
@@ -10883,6 +11647,21 @@ var transfer;
|
|
|
10883
11647
|
});
|
|
10884
11648
|
}
|
|
10885
11649
|
builder.shareObject = shareObject;
|
|
11650
|
+
function shareObjectImpl(tx, args, typeArguments) {
|
|
11651
|
+
const _args = [];
|
|
11652
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
11653
|
+
// @ts-ignore
|
|
11654
|
+
return tx.moveCall({
|
|
11655
|
+
target: "0x2::transfer::share_object_impl",
|
|
11656
|
+
arguments: _args,
|
|
11657
|
+
typeArguments: [
|
|
11658
|
+
typeof typeArguments[0] === "string"
|
|
11659
|
+
? typeArguments[0]
|
|
11660
|
+
: typeArguments[0].getSignature(),
|
|
11661
|
+
],
|
|
11662
|
+
});
|
|
11663
|
+
}
|
|
11664
|
+
builder.shareObjectImpl = shareObjectImpl;
|
|
10886
11665
|
function transfer(tx, args, typeArguments) {
|
|
10887
11666
|
const _args = [];
|
|
10888
11667
|
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
@@ -10899,6 +11678,22 @@ var transfer;
|
|
|
10899
11678
|
});
|
|
10900
11679
|
}
|
|
10901
11680
|
builder.transfer = transfer;
|
|
11681
|
+
function transferImpl(tx, args, typeArguments) {
|
|
11682
|
+
const _args = [];
|
|
11683
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
11684
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
11685
|
+
// @ts-ignore
|
|
11686
|
+
return tx.moveCall({
|
|
11687
|
+
target: "0x2::transfer::transfer_impl",
|
|
11688
|
+
arguments: _args,
|
|
11689
|
+
typeArguments: [
|
|
11690
|
+
typeof typeArguments[0] === "string"
|
|
11691
|
+
? typeArguments[0]
|
|
11692
|
+
: typeArguments[0].getSignature(),
|
|
11693
|
+
],
|
|
11694
|
+
});
|
|
11695
|
+
}
|
|
11696
|
+
builder.transferImpl = transferImpl;
|
|
10902
11697
|
})(builder = transfer_1.builder || (transfer_1.builder = {}));
|
|
10903
11698
|
let view;
|
|
10904
11699
|
(function (view) {
|
|
@@ -10912,6 +11707,16 @@ var transfer;
|
|
|
10912
11707
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
10913
11708
|
}
|
|
10914
11709
|
view.freezeObject = freezeObject;
|
|
11710
|
+
async function freezeObjectImpl(client, args, typeArguments) {
|
|
11711
|
+
const tx = new transactions_1.TransactionBlock();
|
|
11712
|
+
builder.freezeObjectImpl(tx, args, typeArguments);
|
|
11713
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
11714
|
+
transactionBlock: tx,
|
|
11715
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
11716
|
+
});
|
|
11717
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
11718
|
+
}
|
|
11719
|
+
view.freezeObjectImpl = freezeObjectImpl;
|
|
10915
11720
|
async function publicFreezeObject(client, args, typeArguments) {
|
|
10916
11721
|
const tx = new transactions_1.TransactionBlock();
|
|
10917
11722
|
builder.publicFreezeObject(tx, args, typeArguments);
|
|
@@ -10982,6 +11787,16 @@ var transfer;
|
|
|
10982
11787
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
10983
11788
|
}
|
|
10984
11789
|
view.shareObject = shareObject;
|
|
11790
|
+
async function shareObjectImpl(client, args, typeArguments) {
|
|
11791
|
+
const tx = new transactions_1.TransactionBlock();
|
|
11792
|
+
builder.shareObjectImpl(tx, args, typeArguments);
|
|
11793
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
11794
|
+
transactionBlock: tx,
|
|
11795
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
11796
|
+
});
|
|
11797
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
11798
|
+
}
|
|
11799
|
+
view.shareObjectImpl = shareObjectImpl;
|
|
10985
11800
|
async function transfer(client, args, typeArguments) {
|
|
10986
11801
|
const tx = new transactions_1.TransactionBlock();
|
|
10987
11802
|
builder.transfer(tx, args, typeArguments);
|
|
@@ -10992,6 +11807,16 @@ var transfer;
|
|
|
10992
11807
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
10993
11808
|
}
|
|
10994
11809
|
view.transfer = transfer;
|
|
11810
|
+
async function transferImpl(client, args, typeArguments) {
|
|
11811
|
+
const tx = new transactions_1.TransactionBlock();
|
|
11812
|
+
builder.transferImpl(tx, args, typeArguments);
|
|
11813
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
11814
|
+
transactionBlock: tx,
|
|
11815
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
11816
|
+
});
|
|
11817
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
11818
|
+
}
|
|
11819
|
+
view.transferImpl = transferImpl;
|
|
10995
11820
|
})(view = transfer_1.view || (transfer_1.view = {}));
|
|
10996
11821
|
})(transfer || (exports.transfer = transfer = {}));
|
|
10997
11822
|
var transfer_policy;
|