@typemove/sui 1.5.6 → 1.5.7-rc.1

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.
@@ -865,7 +865,25 @@ export namespace balance {
865
865
  ],
866
866
  });
867
867
  }
868
+ export function destroySupply<T0 = any>(
869
+ tx: TransactionBlock,
870
+ args: [balance.Supply<T0> | TransactionArgument],
871
+ typeArguments: [TypeDescriptor<T0> | string],
872
+ ): TransactionArgument & [TransactionArgument] {
873
+ const _args: any[] = [];
874
+ _args.push(transactionArgumentOrPure(args[0], tx));
868
875
 
876
+ // @ts-ignore
877
+ return tx.moveCall({
878
+ target: "0x2::balance::destroy_supply",
879
+ arguments: _args,
880
+ typeArguments: [
881
+ typeof typeArguments[0] === "string"
882
+ ? typeArguments[0]
883
+ : typeArguments[0].getSignature(),
884
+ ],
885
+ });
886
+ }
869
887
  export function destroyZero<T0 = any>(
870
888
  tx: TransactionBlock,
871
889
  args: [balance.Balance<T0> | TransactionArgument],
@@ -1066,7 +1084,22 @@ export namespace balance {
1066
1084
  inspectRes,
1067
1085
  );
1068
1086
  }
1087
+ export async function destroySupply<T0 = any>(
1088
+ client: SuiClient,
1089
+ args: [balance.Supply<T0> | TransactionArgument],
1090
+ typeArguments: [TypeDescriptor<T0> | string],
1091
+ ): Promise<TypedDevInspectResults<[bigint]>> {
1092
+ const tx = new TransactionBlock();
1093
+ builder.destroySupply(tx, args, typeArguments);
1094
+ const inspectRes = await client.devInspectTransactionBlock({
1095
+ transactionBlock: tx,
1096
+ sender: ZERO_ADDRESS,
1097
+ });
1069
1098
 
1099
+ return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
1100
+ inspectRes,
1101
+ );
1102
+ }
1070
1103
  export async function destroyZero<T0 = any>(
1071
1104
  client: SuiClient,
1072
1105
  args: [balance.Balance<T0> | TransactionArgument],
@@ -4972,8 +5005,151 @@ export namespace deny_list {
4972
5005
  }
4973
5006
  }
4974
5007
 
4975
- export namespace builder {}
4976
- export namespace view {}
5008
+ export namespace builder {
5009
+ export function add(
5010
+ tx: TransactionBlock,
5011
+ args: [
5012
+ string | TransactionObjectArgument | TransactionArgument,
5013
+ bigint | TransactionArgument,
5014
+ (string | TransactionObjectArgument)[] | TransactionArgument,
5015
+ string | TransactionArgument,
5016
+ ],
5017
+ ): TransactionArgument &
5018
+ [
5019
+ TransactionArgument,
5020
+ TransactionArgument,
5021
+ TransactionArgument,
5022
+ TransactionArgument,
5023
+ ] {
5024
+ const _args: any[] = [];
5025
+ _args.push(transactionArgumentOrObject(args[0], tx));
5026
+ _args.push(transactionArgumentOrPure(args[1], tx));
5027
+ _args.push(transactionArgumentOrVec(args[2], tx));
5028
+ _args.push(transactionArgumentOrPure(args[3], tx));
5029
+
5030
+ // @ts-ignore
5031
+ return tx.moveCall({
5032
+ target: "0x2::deny_list::add",
5033
+ arguments: _args,
5034
+ });
5035
+ }
5036
+ export function contains(
5037
+ tx: TransactionBlock,
5038
+ args: [
5039
+ string | TransactionObjectArgument | TransactionArgument,
5040
+ bigint | TransactionArgument,
5041
+ (string | TransactionObjectArgument)[] | TransactionArgument,
5042
+ string | TransactionArgument,
5043
+ ],
5044
+ ): TransactionArgument &
5045
+ [
5046
+ TransactionArgument,
5047
+ TransactionArgument,
5048
+ TransactionArgument,
5049
+ TransactionArgument,
5050
+ ] {
5051
+ const _args: any[] = [];
5052
+ _args.push(transactionArgumentOrObject(args[0], tx));
5053
+ _args.push(transactionArgumentOrPure(args[1], tx));
5054
+ _args.push(transactionArgumentOrVec(args[2], tx));
5055
+ _args.push(transactionArgumentOrPure(args[3], tx));
5056
+
5057
+ // @ts-ignore
5058
+ return tx.moveCall({
5059
+ target: "0x2::deny_list::contains",
5060
+ arguments: _args,
5061
+ });
5062
+ }
5063
+ export function remove(
5064
+ tx: TransactionBlock,
5065
+ args: [
5066
+ string | TransactionObjectArgument | TransactionArgument,
5067
+ bigint | TransactionArgument,
5068
+ (string | TransactionObjectArgument)[] | TransactionArgument,
5069
+ string | TransactionArgument,
5070
+ ],
5071
+ ): TransactionArgument &
5072
+ [
5073
+ TransactionArgument,
5074
+ TransactionArgument,
5075
+ TransactionArgument,
5076
+ TransactionArgument,
5077
+ ] {
5078
+ const _args: any[] = [];
5079
+ _args.push(transactionArgumentOrObject(args[0], tx));
5080
+ _args.push(transactionArgumentOrPure(args[1], tx));
5081
+ _args.push(transactionArgumentOrVec(args[2], tx));
5082
+ _args.push(transactionArgumentOrPure(args[3], tx));
5083
+
5084
+ // @ts-ignore
5085
+ return tx.moveCall({
5086
+ target: "0x2::deny_list::remove",
5087
+ arguments: _args,
5088
+ });
5089
+ }
5090
+ }
5091
+ export namespace view {
5092
+ export async function add(
5093
+ client: SuiClient,
5094
+ args: [
5095
+ string | TransactionObjectArgument | TransactionArgument,
5096
+ bigint | TransactionArgument,
5097
+ (string | TransactionObjectArgument)[] | TransactionArgument,
5098
+ string | TransactionArgument,
5099
+ ],
5100
+ ): Promise<TypedDevInspectResults<[]>> {
5101
+ const tx = new TransactionBlock();
5102
+ builder.add(tx, args);
5103
+ const inspectRes = await client.devInspectTransactionBlock({
5104
+ transactionBlock: tx,
5105
+ sender: ZERO_ADDRESS,
5106
+ });
5107
+
5108
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
5109
+ inspectRes,
5110
+ );
5111
+ }
5112
+ export async function contains(
5113
+ client: SuiClient,
5114
+ args: [
5115
+ string | TransactionObjectArgument | TransactionArgument,
5116
+ bigint | TransactionArgument,
5117
+ (string | TransactionObjectArgument)[] | TransactionArgument,
5118
+ string | TransactionArgument,
5119
+ ],
5120
+ ): Promise<TypedDevInspectResults<[Boolean]>> {
5121
+ const tx = new TransactionBlock();
5122
+ builder.contains(tx, args);
5123
+ const inspectRes = await client.devInspectTransactionBlock({
5124
+ transactionBlock: tx,
5125
+ sender: ZERO_ADDRESS,
5126
+ });
5127
+
5128
+ return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
5129
+ inspectRes,
5130
+ );
5131
+ }
5132
+ export async function remove(
5133
+ client: SuiClient,
5134
+ args: [
5135
+ string | TransactionObjectArgument | TransactionArgument,
5136
+ bigint | TransactionArgument,
5137
+ (string | TransactionObjectArgument)[] | TransactionArgument,
5138
+ string | TransactionArgument,
5139
+ ],
5140
+ ): Promise<TypedDevInspectResults<[]>> {
5141
+ const tx = new TransactionBlock();
5142
+ builder.remove(tx, args);
5143
+ const inspectRes = await client.devInspectTransactionBlock({
5144
+ transactionBlock: tx,
5145
+ sender: ZERO_ADDRESS,
5146
+ });
5147
+
5148
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
5149
+ inspectRes,
5150
+ );
5151
+ }
5152
+ }
4977
5153
  }
4978
5154
 
4979
5155
  export namespace display {
@@ -5537,7 +5713,26 @@ export namespace dynamic_field {
5537
5713
  ],
5538
5714
  });
5539
5715
  }
5716
+ export function addChildObject<T0 = any>(
5717
+ tx: TransactionBlock,
5718
+ args: [string | TransactionArgument, T0 | TransactionArgument],
5719
+ typeArguments: [TypeDescriptor<T0> | string],
5720
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
5721
+ const _args: any[] = [];
5722
+ _args.push(transactionArgumentOrPure(args[0], tx));
5723
+ _args.push(transactionArgumentOrPure(args[1], tx));
5540
5724
 
5725
+ // @ts-ignore
5726
+ return tx.moveCall({
5727
+ target: "0x2::dynamic_field::add_child_object",
5728
+ arguments: _args,
5729
+ typeArguments: [
5730
+ typeof typeArguments[0] === "string"
5731
+ ? typeArguments[0]
5732
+ : typeArguments[0].getSignature(),
5733
+ ],
5734
+ });
5735
+ }
5541
5736
  export function borrow<T0 = any, T1 = any>(
5542
5737
  tx: TransactionBlock,
5543
5738
  args: [
@@ -5564,14 +5759,13 @@ export namespace dynamic_field {
5564
5759
  ],
5565
5760
  });
5566
5761
  }
5567
-
5568
- export function borrowMut<T0 = any, T1 = any>(
5762
+ export function borrowChildObject<T0 = any>(
5569
5763
  tx: TransactionBlock,
5570
5764
  args: [
5571
5765
  string | TransactionObjectArgument | TransactionArgument,
5572
- T0 | TransactionArgument,
5766
+ string | TransactionArgument,
5573
5767
  ],
5574
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
5768
+ typeArguments: [TypeDescriptor<T0> | string],
5575
5769
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
5576
5770
  const _args: any[] = [];
5577
5771
  _args.push(transactionArgumentOrObject(args[0], tx));
@@ -5579,23 +5773,20 @@ export namespace dynamic_field {
5579
5773
 
5580
5774
  // @ts-ignore
5581
5775
  return tx.moveCall({
5582
- target: "0x2::dynamic_field::borrow_mut",
5776
+ target: "0x2::dynamic_field::borrow_child_object",
5583
5777
  arguments: _args,
5584
5778
  typeArguments: [
5585
5779
  typeof typeArguments[0] === "string"
5586
5780
  ? typeArguments[0]
5587
5781
  : typeArguments[0].getSignature(),
5588
- typeof typeArguments[1] === "string"
5589
- ? typeArguments[1]
5590
- : typeArguments[1].getSignature(),
5591
5782
  ],
5592
5783
  });
5593
5784
  }
5594
- export function exists_<T0 = any>(
5785
+ export function borrowChildObjectMut<T0 = any>(
5595
5786
  tx: TransactionBlock,
5596
5787
  args: [
5597
5788
  string | TransactionObjectArgument | TransactionArgument,
5598
- T0 | TransactionArgument,
5789
+ string | TransactionArgument,
5599
5790
  ],
5600
5791
  typeArguments: [TypeDescriptor<T0> | string],
5601
5792
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
@@ -5605,7 +5796,7 @@ export namespace dynamic_field {
5605
5796
 
5606
5797
  // @ts-ignore
5607
5798
  return tx.moveCall({
5608
- target: "0x2::dynamic_field::exists_",
5799
+ target: "0x2::dynamic_field::borrow_child_object_mut",
5609
5800
  arguments: _args,
5610
5801
  typeArguments: [
5611
5802
  typeof typeArguments[0] === "string"
@@ -5614,7 +5805,7 @@ export namespace dynamic_field {
5614
5805
  ],
5615
5806
  });
5616
5807
  }
5617
- export function existsWithType<T0 = any, T1 = any>(
5808
+ export function borrowMut<T0 = any, T1 = any>(
5618
5809
  tx: TransactionBlock,
5619
5810
  args: [
5620
5811
  string | TransactionObjectArgument | TransactionArgument,
@@ -5628,7 +5819,7 @@ export namespace dynamic_field {
5628
5819
 
5629
5820
  // @ts-ignore
5630
5821
  return tx.moveCall({
5631
- target: "0x2::dynamic_field::exists_with_type",
5822
+ target: "0x2::dynamic_field::borrow_mut",
5632
5823
  arguments: _args,
5633
5824
  typeArguments: [
5634
5825
  typeof typeArguments[0] === "string"
@@ -5640,14 +5831,13 @@ export namespace dynamic_field {
5640
5831
  ],
5641
5832
  });
5642
5833
  }
5643
-
5644
- export function remove<T0 = any, T1 = any>(
5834
+ export function exists_<T0 = any>(
5645
5835
  tx: TransactionBlock,
5646
5836
  args: [
5647
5837
  string | TransactionObjectArgument | TransactionArgument,
5648
5838
  T0 | TransactionArgument,
5649
5839
  ],
5650
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
5840
+ typeArguments: [TypeDescriptor<T0> | string],
5651
5841
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
5652
5842
  const _args: any[] = [];
5653
5843
  _args.push(transactionArgumentOrObject(args[0], tx));
@@ -5655,20 +5845,16 @@ export namespace dynamic_field {
5655
5845
 
5656
5846
  // @ts-ignore
5657
5847
  return tx.moveCall({
5658
- target: "0x2::dynamic_field::remove",
5848
+ target: "0x2::dynamic_field::exists_",
5659
5849
  arguments: _args,
5660
5850
  typeArguments: [
5661
5851
  typeof typeArguments[0] === "string"
5662
5852
  ? typeArguments[0]
5663
5853
  : typeArguments[0].getSignature(),
5664
- typeof typeArguments[1] === "string"
5665
- ? typeArguments[1]
5666
- : typeArguments[1].getSignature(),
5667
5854
  ],
5668
5855
  });
5669
5856
  }
5670
-
5671
- export function removeIfExists<T0 = any, T1 = any>(
5857
+ export function existsWithType<T0 = any, T1 = any>(
5672
5858
  tx: TransactionBlock,
5673
5859
  args: [
5674
5860
  string | TransactionObjectArgument | TransactionArgument,
@@ -5682,7 +5868,7 @@ export namespace dynamic_field {
5682
5868
 
5683
5869
  // @ts-ignore
5684
5870
  return tx.moveCall({
5685
- target: "0x2::dynamic_field::remove_if_exists",
5871
+ target: "0x2::dynamic_field::exists_with_type",
5686
5872
  arguments: _args,
5687
5873
  typeArguments: [
5688
5874
  typeof typeArguments[0] === "string"
@@ -5694,268 +5880,98 @@ export namespace dynamic_field {
5694
5880
  ],
5695
5881
  });
5696
5882
  }
5697
- }
5698
- export namespace view {
5699
- export async function add<T0 = any, T1 = any>(
5700
- client: SuiClient,
5883
+ export function fieldInfo<T0 = any>(
5884
+ tx: TransactionBlock,
5701
5885
  args: [
5702
5886
  string | TransactionObjectArgument | TransactionArgument,
5703
5887
  T0 | TransactionArgument,
5704
- T1 | TransactionArgument,
5705
5888
  ],
5706
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
5707
- ): Promise<TypedDevInspectResults<[]>> {
5708
- const tx = new TransactionBlock();
5709
- builder.add(tx, args, typeArguments);
5710
- const inspectRes = await client.devInspectTransactionBlock({
5711
- transactionBlock: tx,
5712
- sender: ZERO_ADDRESS,
5713
- });
5889
+ typeArguments: [TypeDescriptor<T0> | string],
5890
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
5891
+ const _args: any[] = [];
5892
+ _args.push(transactionArgumentOrObject(args[0], tx));
5893
+ _args.push(transactionArgumentOrPure(args[1], tx));
5714
5894
 
5715
- return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
5716
- inspectRes,
5717
- );
5895
+ // @ts-ignore
5896
+ return tx.moveCall({
5897
+ target: "0x2::dynamic_field::field_info",
5898
+ arguments: _args,
5899
+ typeArguments: [
5900
+ typeof typeArguments[0] === "string"
5901
+ ? typeArguments[0]
5902
+ : typeArguments[0].getSignature(),
5903
+ ],
5904
+ });
5718
5905
  }
5719
-
5720
- export async function borrow<T0 = any, T1 = any>(
5721
- client: SuiClient,
5722
- args: [
5723
- string | TransactionObjectArgument | TransactionArgument,
5724
- T0 | TransactionArgument,
5725
- ],
5726
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
5727
- ): Promise<TypedDevInspectResults<[string]>> {
5728
- const tx = new TransactionBlock();
5729
- builder.borrow(tx, args, typeArguments);
5730
- const inspectRes = await client.devInspectTransactionBlock({
5731
- transactionBlock: tx,
5732
- sender: ZERO_ADDRESS,
5733
- });
5734
-
5735
- return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
5736
- inspectRes,
5737
- );
5738
- }
5739
-
5740
- export async function borrowMut<T0 = any, T1 = any>(
5741
- client: SuiClient,
5742
- args: [
5743
- string | TransactionObjectArgument | TransactionArgument,
5744
- T0 | TransactionArgument,
5745
- ],
5746
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
5747
- ): Promise<TypedDevInspectResults<[string]>> {
5748
- const tx = new TransactionBlock();
5749
- builder.borrowMut(tx, args, typeArguments);
5750
- const inspectRes = await client.devInspectTransactionBlock({
5751
- transactionBlock: tx,
5752
- sender: ZERO_ADDRESS,
5753
- });
5754
-
5755
- return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
5756
- inspectRes,
5757
- );
5758
- }
5759
- export async function exists_<T0 = any>(
5760
- client: SuiClient,
5906
+ export function fieldInfoMut<T0 = any>(
5907
+ tx: TransactionBlock,
5761
5908
  args: [
5762
5909
  string | TransactionObjectArgument | TransactionArgument,
5763
5910
  T0 | TransactionArgument,
5764
5911
  ],
5765
5912
  typeArguments: [TypeDescriptor<T0> | string],
5766
- ): Promise<TypedDevInspectResults<[Boolean]>> {
5767
- const tx = new TransactionBlock();
5768
- builder.exists_(tx, args, typeArguments);
5769
- const inspectRes = await client.devInspectTransactionBlock({
5770
- transactionBlock: tx,
5771
- sender: ZERO_ADDRESS,
5772
- });
5773
-
5774
- return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
5775
- inspectRes,
5776
- );
5777
- }
5778
- export async function existsWithType<T0 = any, T1 = any>(
5779
- client: SuiClient,
5780
- args: [
5781
- string | TransactionObjectArgument | TransactionArgument,
5782
- T0 | TransactionArgument,
5783
- ],
5784
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
5785
- ): Promise<TypedDevInspectResults<[Boolean]>> {
5786
- const tx = new TransactionBlock();
5787
- builder.existsWithType(tx, args, typeArguments);
5788
- const inspectRes = await client.devInspectTransactionBlock({
5789
- transactionBlock: tx,
5790
- sender: ZERO_ADDRESS,
5791
- });
5792
-
5793
- return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
5794
- inspectRes,
5795
- );
5796
- }
5797
-
5798
- export async function remove<T0 = any, T1 = any>(
5799
- client: SuiClient,
5800
- args: [
5801
- string | TransactionObjectArgument | TransactionArgument,
5802
- T0 | TransactionArgument,
5803
- ],
5804
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
5805
- ): Promise<TypedDevInspectResults<[T1]>> {
5806
- const tx = new TransactionBlock();
5807
- builder.remove(tx, args, typeArguments);
5808
- const inspectRes = await client.devInspectTransactionBlock({
5809
- transactionBlock: tx,
5810
- sender: ZERO_ADDRESS,
5811
- });
5812
-
5813
- return (await getMoveCoder(client)).decodeDevInspectResult<[T1]>(
5814
- inspectRes,
5815
- );
5816
- }
5817
-
5818
- export async function removeIfExists<T0 = any, T1 = any>(
5819
- client: SuiClient,
5820
- args: [
5821
- string | TransactionObjectArgument | TransactionArgument,
5822
- T0 | TransactionArgument,
5823
- ],
5824
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
5825
- ): Promise<TypedDevInspectResults<[_0x1.option.Option<T1>]>> {
5826
- const tx = new TransactionBlock();
5827
- builder.removeIfExists(tx, args, typeArguments);
5828
- const inspectRes = await client.devInspectTransactionBlock({
5829
- transactionBlock: tx,
5830
- sender: ZERO_ADDRESS,
5831
- });
5832
-
5833
- return (await getMoveCoder(client)).decodeDevInspectResult<
5834
- [_0x1.option.Option<T1>]
5835
- >(inspectRes);
5836
- }
5837
- }
5838
- }
5839
-
5840
- export namespace dynamic_object_field {
5841
- export interface Wrapper<T0> {
5842
- name: T0;
5843
- }
5844
-
5845
- export namespace Wrapper {
5846
- export const TYPE_QNAME = "0x2::dynamic_object_field::Wrapper";
5847
-
5848
- const TYPE = new TypeDescriptor<Wrapper<any>>(Wrapper.TYPE_QNAME);
5849
-
5850
- export function type<T0>(
5851
- arg0: TypeDescriptor<T0> = ANY_TYPE,
5852
- ): TypeDescriptor<Wrapper<T0>> {
5853
- return TYPE.apply(arg0);
5854
- }
5855
- }
5856
-
5857
- export interface WrapperInstance extends TypedEventInstance<Wrapper<any>> {
5858
- data_decoded: Wrapper<any>;
5859
- type_arguments: [string];
5860
- }
5861
-
5862
- export namespace builder {
5863
- export function add<T0 = any, T1 = any>(
5864
- tx: TransactionBlock,
5865
- args: [
5866
- string | TransactionObjectArgument | TransactionArgument,
5867
- T0 | TransactionArgument,
5868
- T1 | TransactionArgument,
5869
- ],
5870
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
5871
- ): TransactionArgument &
5872
- [TransactionArgument, TransactionArgument, TransactionArgument] {
5913
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
5873
5914
  const _args: any[] = [];
5874
5915
  _args.push(transactionArgumentOrObject(args[0], tx));
5875
5916
  _args.push(transactionArgumentOrPure(args[1], tx));
5876
- _args.push(transactionArgumentOrPure(args[2], tx));
5877
5917
 
5878
5918
  // @ts-ignore
5879
5919
  return tx.moveCall({
5880
- target: "0x2::dynamic_object_field::add",
5920
+ target: "0x2::dynamic_field::field_info_mut",
5881
5921
  arguments: _args,
5882
5922
  typeArguments: [
5883
5923
  typeof typeArguments[0] === "string"
5884
5924
  ? typeArguments[0]
5885
5925
  : typeArguments[0].getSignature(),
5886
- typeof typeArguments[1] === "string"
5887
- ? typeArguments[1]
5888
- : typeArguments[1].getSignature(),
5889
5926
  ],
5890
5927
  });
5891
5928
  }
5892
- export function borrow<T0 = any, T1 = any>(
5929
+ export function hasChildObject(
5893
5930
  tx: TransactionBlock,
5894
- args: [
5895
- string | TransactionObjectArgument | TransactionArgument,
5896
- T0 | TransactionArgument,
5897
- ],
5898
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
5931
+ args: [string | TransactionArgument, string | TransactionArgument],
5899
5932
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
5900
5933
  const _args: any[] = [];
5901
- _args.push(transactionArgumentOrObject(args[0], tx));
5934
+ _args.push(transactionArgumentOrPure(args[0], tx));
5902
5935
  _args.push(transactionArgumentOrPure(args[1], tx));
5903
5936
 
5904
5937
  // @ts-ignore
5905
5938
  return tx.moveCall({
5906
- target: "0x2::dynamic_object_field::borrow",
5939
+ target: "0x2::dynamic_field::has_child_object",
5907
5940
  arguments: _args,
5908
- typeArguments: [
5909
- typeof typeArguments[0] === "string"
5910
- ? typeArguments[0]
5911
- : typeArguments[0].getSignature(),
5912
- typeof typeArguments[1] === "string"
5913
- ? typeArguments[1]
5914
- : typeArguments[1].getSignature(),
5915
- ],
5916
5941
  });
5917
5942
  }
5918
- export function borrowMut<T0 = any, T1 = any>(
5943
+ export function hasChildObjectWithTy<T0 = any>(
5919
5944
  tx: TransactionBlock,
5920
- args: [
5921
- string | TransactionObjectArgument | TransactionArgument,
5922
- T0 | TransactionArgument,
5923
- ],
5924
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
5945
+ args: [string | TransactionArgument, string | TransactionArgument],
5946
+ typeArguments: [TypeDescriptor<T0> | string],
5925
5947
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
5926
5948
  const _args: any[] = [];
5927
- _args.push(transactionArgumentOrObject(args[0], tx));
5949
+ _args.push(transactionArgumentOrPure(args[0], tx));
5928
5950
  _args.push(transactionArgumentOrPure(args[1], tx));
5929
5951
 
5930
5952
  // @ts-ignore
5931
5953
  return tx.moveCall({
5932
- target: "0x2::dynamic_object_field::borrow_mut",
5954
+ target: "0x2::dynamic_field::has_child_object_with_ty",
5933
5955
  arguments: _args,
5934
5956
  typeArguments: [
5935
5957
  typeof typeArguments[0] === "string"
5936
5958
  ? typeArguments[0]
5937
5959
  : typeArguments[0].getSignature(),
5938
- typeof typeArguments[1] === "string"
5939
- ? typeArguments[1]
5940
- : typeArguments[1].getSignature(),
5941
5960
  ],
5942
5961
  });
5943
5962
  }
5944
- export function exists_<T0 = any>(
5963
+ export function hashTypeAndKey<T0 = any>(
5945
5964
  tx: TransactionBlock,
5946
- args: [
5947
- string | TransactionObjectArgument | TransactionArgument,
5948
- T0 | TransactionArgument,
5949
- ],
5965
+ args: [string | TransactionArgument, T0 | TransactionArgument],
5950
5966
  typeArguments: [TypeDescriptor<T0> | string],
5951
5967
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
5952
5968
  const _args: any[] = [];
5953
- _args.push(transactionArgumentOrObject(args[0], tx));
5969
+ _args.push(transactionArgumentOrPure(args[0], tx));
5954
5970
  _args.push(transactionArgumentOrPure(args[1], tx));
5955
5971
 
5956
5972
  // @ts-ignore
5957
5973
  return tx.moveCall({
5958
- target: "0x2::dynamic_object_field::exists_",
5974
+ target: "0x2::dynamic_field::hash_type_and_key",
5959
5975
  arguments: _args,
5960
5976
  typeArguments: [
5961
5977
  typeof typeArguments[0] === "string"
@@ -5964,7 +5980,7 @@ export namespace dynamic_object_field {
5964
5980
  ],
5965
5981
  });
5966
5982
  }
5967
- export function existsWithType<T0 = any, T1 = any>(
5983
+ export function remove<T0 = any, T1 = any>(
5968
5984
  tx: TransactionBlock,
5969
5985
  args: [
5970
5986
  string | TransactionObjectArgument | TransactionArgument,
@@ -5978,7 +5994,7 @@ export namespace dynamic_object_field {
5978
5994
 
5979
5995
  // @ts-ignore
5980
5996
  return tx.moveCall({
5981
- target: "0x2::dynamic_object_field::exists_with_type",
5997
+ target: "0x2::dynamic_field::remove",
5982
5998
  arguments: _args,
5983
5999
  typeArguments: [
5984
6000
  typeof typeArguments[0] === "string"
@@ -5990,21 +6006,18 @@ export namespace dynamic_object_field {
5990
6006
  ],
5991
6007
  });
5992
6008
  }
5993
- export function id<T0 = any>(
6009
+ export function removeChildObject<T0 = any>(
5994
6010
  tx: TransactionBlock,
5995
- args: [
5996
- string | TransactionObjectArgument | TransactionArgument,
5997
- T0 | TransactionArgument,
5998
- ],
6011
+ args: [string | TransactionArgument, string | TransactionArgument],
5999
6012
  typeArguments: [TypeDescriptor<T0> | string],
6000
6013
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6001
6014
  const _args: any[] = [];
6002
- _args.push(transactionArgumentOrObject(args[0], tx));
6015
+ _args.push(transactionArgumentOrPure(args[0], tx));
6003
6016
  _args.push(transactionArgumentOrPure(args[1], tx));
6004
6017
 
6005
6018
  // @ts-ignore
6006
6019
  return tx.moveCall({
6007
- target: "0x2::dynamic_object_field::id",
6020
+ target: "0x2::dynamic_field::remove_child_object",
6008
6021
  arguments: _args,
6009
6022
  typeArguments: [
6010
6023
  typeof typeArguments[0] === "string"
@@ -6013,7 +6026,7 @@ export namespace dynamic_object_field {
6013
6026
  ],
6014
6027
  });
6015
6028
  }
6016
- export function remove<T0 = any, T1 = any>(
6029
+ export function removeIfExists<T0 = any, T1 = any>(
6017
6030
  tx: TransactionBlock,
6018
6031
  args: [
6019
6032
  string | TransactionObjectArgument | TransactionArgument,
@@ -6027,7 +6040,7 @@ export namespace dynamic_object_field {
6027
6040
 
6028
6041
  // @ts-ignore
6029
6042
  return tx.moveCall({
6030
- target: "0x2::dynamic_object_field::remove",
6043
+ target: "0x2::dynamic_field::remove_if_exists",
6031
6044
  arguments: _args,
6032
6045
  typeArguments: [
6033
6046
  typeof typeArguments[0] === "string"
@@ -6061,6 +6074,22 @@ export namespace dynamic_object_field {
6061
6074
  inspectRes,
6062
6075
  );
6063
6076
  }
6077
+ export async function addChildObject<T0 = any>(
6078
+ client: SuiClient,
6079
+ args: [string | TransactionArgument, T0 | TransactionArgument],
6080
+ typeArguments: [TypeDescriptor<T0> | string],
6081
+ ): Promise<TypedDevInspectResults<[]>> {
6082
+ const tx = new TransactionBlock();
6083
+ builder.addChildObject(tx, args, typeArguments);
6084
+ const inspectRes = await client.devInspectTransactionBlock({
6085
+ transactionBlock: tx,
6086
+ sender: ZERO_ADDRESS,
6087
+ });
6088
+
6089
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
6090
+ inspectRes,
6091
+ );
6092
+ }
6064
6093
  export async function borrow<T0 = any, T1 = any>(
6065
6094
  client: SuiClient,
6066
6095
  args: [
@@ -6080,6 +6109,44 @@ export namespace dynamic_object_field {
6080
6109
  inspectRes,
6081
6110
  );
6082
6111
  }
6112
+ export async function borrowChildObject<T0 = any>(
6113
+ client: SuiClient,
6114
+ args: [
6115
+ string | TransactionObjectArgument | TransactionArgument,
6116
+ string | TransactionArgument,
6117
+ ],
6118
+ typeArguments: [TypeDescriptor<T0> | string],
6119
+ ): Promise<TypedDevInspectResults<[string]>> {
6120
+ const tx = new TransactionBlock();
6121
+ builder.borrowChildObject(tx, args, typeArguments);
6122
+ const inspectRes = await client.devInspectTransactionBlock({
6123
+ transactionBlock: tx,
6124
+ sender: ZERO_ADDRESS,
6125
+ });
6126
+
6127
+ return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
6128
+ inspectRes,
6129
+ );
6130
+ }
6131
+ export async function borrowChildObjectMut<T0 = any>(
6132
+ client: SuiClient,
6133
+ args: [
6134
+ string | TransactionObjectArgument | TransactionArgument,
6135
+ string | TransactionArgument,
6136
+ ],
6137
+ typeArguments: [TypeDescriptor<T0> | string],
6138
+ ): Promise<TypedDevInspectResults<[string]>> {
6139
+ const tx = new TransactionBlock();
6140
+ builder.borrowChildObjectMut(tx, args, typeArguments);
6141
+ const inspectRes = await client.devInspectTransactionBlock({
6142
+ transactionBlock: tx,
6143
+ sender: ZERO_ADDRESS,
6144
+ });
6145
+
6146
+ return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
6147
+ inspectRes,
6148
+ );
6149
+ }
6083
6150
  export async function borrowMut<T0 = any, T1 = any>(
6084
6151
  client: SuiClient,
6085
6152
  args: [
@@ -6137,349 +6204,420 @@ export namespace dynamic_object_field {
6137
6204
  inspectRes,
6138
6205
  );
6139
6206
  }
6140
- export async function id<T0 = any>(
6207
+ export async function fieldInfo<T0 = any>(
6141
6208
  client: SuiClient,
6142
6209
  args: [
6143
6210
  string | TransactionObjectArgument | TransactionArgument,
6144
6211
  T0 | TransactionArgument,
6145
6212
  ],
6146
6213
  typeArguments: [TypeDescriptor<T0> | string],
6147
- ): Promise<TypedDevInspectResults<[_0x1.option.Option<object_.ID>]>> {
6214
+ ): Promise<TypedDevInspectResults<[string, string]>> {
6148
6215
  const tx = new TransactionBlock();
6149
- builder.id(tx, args, typeArguments);
6216
+ builder.fieldInfo(tx, args, typeArguments);
6150
6217
  const inspectRes = await client.devInspectTransactionBlock({
6151
6218
  transactionBlock: tx,
6152
6219
  sender: ZERO_ADDRESS,
6153
6220
  });
6154
6221
 
6155
6222
  return (await getMoveCoder(client)).decodeDevInspectResult<
6156
- [_0x1.option.Option<object_.ID>]
6223
+ [string, string]
6157
6224
  >(inspectRes);
6158
6225
  }
6159
- export async function remove<T0 = any, T1 = any>(
6226
+ export async function fieldInfoMut<T0 = any>(
6160
6227
  client: SuiClient,
6161
6228
  args: [
6162
6229
  string | TransactionObjectArgument | TransactionArgument,
6163
6230
  T0 | TransactionArgument,
6164
6231
  ],
6165
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
6166
- ): Promise<TypedDevInspectResults<[T1]>> {
6232
+ typeArguments: [TypeDescriptor<T0> | string],
6233
+ ): Promise<TypedDevInspectResults<[string, string]>> {
6167
6234
  const tx = new TransactionBlock();
6168
- builder.remove(tx, args, typeArguments);
6235
+ builder.fieldInfoMut(tx, args, typeArguments);
6169
6236
  const inspectRes = await client.devInspectTransactionBlock({
6170
6237
  transactionBlock: tx,
6171
6238
  sender: ZERO_ADDRESS,
6172
6239
  });
6173
6240
 
6174
- return (await getMoveCoder(client)).decodeDevInspectResult<[T1]>(
6175
- inspectRes,
6176
- );
6241
+ return (await getMoveCoder(client)).decodeDevInspectResult<
6242
+ [string, string]
6243
+ >(inspectRes);
6177
6244
  }
6178
- }
6179
- }
6180
-
6181
- export namespace ecdsa_k1 {
6182
- export namespace builder {
6183
- export function decompressPubkey(
6184
- tx: TransactionBlock,
6185
- args: [string | TransactionObjectArgument | TransactionArgument],
6186
- ): TransactionArgument & [TransactionArgument] {
6187
- const _args: any[] = [];
6188
- _args.push(transactionArgumentOrObject(args[0], tx));
6189
-
6190
- // @ts-ignore
6191
- return tx.moveCall({
6192
- target: "0x2::ecdsa_k1::decompress_pubkey",
6193
- arguments: _args,
6245
+ export async function hasChildObject(
6246
+ client: SuiClient,
6247
+ args: [string | TransactionArgument, string | TransactionArgument],
6248
+ ): Promise<TypedDevInspectResults<[Boolean]>> {
6249
+ const tx = new TransactionBlock();
6250
+ builder.hasChildObject(tx, args);
6251
+ const inspectRes = await client.devInspectTransactionBlock({
6252
+ transactionBlock: tx,
6253
+ sender: ZERO_ADDRESS,
6194
6254
  });
6195
- }
6196
- export function secp256k1Ecrecover(
6197
- tx: TransactionBlock,
6198
- args: [
6199
- string | TransactionObjectArgument | TransactionArgument,
6200
- string | TransactionObjectArgument | TransactionArgument,
6201
- number | TransactionArgument,
6202
- ],
6203
- ): TransactionArgument &
6204
- [TransactionArgument, TransactionArgument, TransactionArgument] {
6205
- const _args: any[] = [];
6206
- _args.push(transactionArgumentOrObject(args[0], tx));
6207
- _args.push(transactionArgumentOrObject(args[1], tx));
6208
- _args.push(transactionArgumentOrPure(args[2], tx));
6209
6255
 
6210
- // @ts-ignore
6211
- return tx.moveCall({
6212
- target: "0x2::ecdsa_k1::secp256k1_ecrecover",
6213
- arguments: _args,
6214
- });
6256
+ return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
6257
+ inspectRes,
6258
+ );
6215
6259
  }
6216
- export function secp256k1Verify(
6217
- tx: TransactionBlock,
6218
- args: [
6219
- string | TransactionObjectArgument | TransactionArgument,
6220
- string | TransactionObjectArgument | TransactionArgument,
6221
- string | TransactionObjectArgument | TransactionArgument,
6222
- number | TransactionArgument,
6223
- ],
6224
- ): TransactionArgument &
6225
- [
6226
- TransactionArgument,
6227
- TransactionArgument,
6228
- TransactionArgument,
6229
- TransactionArgument,
6230
- ] {
6231
- const _args: any[] = [];
6232
- _args.push(transactionArgumentOrObject(args[0], tx));
6233
- _args.push(transactionArgumentOrObject(args[1], tx));
6234
- _args.push(transactionArgumentOrObject(args[2], tx));
6235
- _args.push(transactionArgumentOrPure(args[3], tx));
6236
-
6237
- // @ts-ignore
6238
- return tx.moveCall({
6239
- target: "0x2::ecdsa_k1::secp256k1_verify",
6240
- arguments: _args,
6260
+ export async function hasChildObjectWithTy<T0 = any>(
6261
+ client: SuiClient,
6262
+ args: [string | TransactionArgument, string | TransactionArgument],
6263
+ typeArguments: [TypeDescriptor<T0> | string],
6264
+ ): Promise<TypedDevInspectResults<[Boolean]>> {
6265
+ const tx = new TransactionBlock();
6266
+ builder.hasChildObjectWithTy(tx, args, typeArguments);
6267
+ const inspectRes = await client.devInspectTransactionBlock({
6268
+ transactionBlock: tx,
6269
+ sender: ZERO_ADDRESS,
6241
6270
  });
6271
+
6272
+ return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
6273
+ inspectRes,
6274
+ );
6242
6275
  }
6243
- }
6244
- export namespace view {
6245
- export async function decompressPubkey(
6276
+ export async function hashTypeAndKey<T0 = any>(
6246
6277
  client: SuiClient,
6247
- args: [string | TransactionObjectArgument | TransactionArgument],
6248
- ): Promise<TypedDevInspectResults<[number[]]>> {
6278
+ args: [string | TransactionArgument, T0 | TransactionArgument],
6279
+ typeArguments: [TypeDescriptor<T0> | string],
6280
+ ): Promise<TypedDevInspectResults<[string]>> {
6249
6281
  const tx = new TransactionBlock();
6250
- builder.decompressPubkey(tx, args);
6282
+ builder.hashTypeAndKey(tx, args, typeArguments);
6251
6283
  const inspectRes = await client.devInspectTransactionBlock({
6252
6284
  transactionBlock: tx,
6253
6285
  sender: ZERO_ADDRESS,
6254
6286
  });
6255
6287
 
6256
- return (await getMoveCoder(client)).decodeDevInspectResult<[number[]]>(
6288
+ return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
6257
6289
  inspectRes,
6258
6290
  );
6259
6291
  }
6260
- export async function secp256k1Ecrecover(
6292
+ export async function remove<T0 = any, T1 = any>(
6261
6293
  client: SuiClient,
6262
6294
  args: [
6263
6295
  string | TransactionObjectArgument | TransactionArgument,
6264
- string | TransactionObjectArgument | TransactionArgument,
6265
- number | TransactionArgument,
6296
+ T0 | TransactionArgument,
6266
6297
  ],
6267
- ): Promise<TypedDevInspectResults<[number[]]>> {
6298
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
6299
+ ): Promise<TypedDevInspectResults<[T1]>> {
6268
6300
  const tx = new TransactionBlock();
6269
- builder.secp256k1Ecrecover(tx, args);
6301
+ builder.remove(tx, args, typeArguments);
6270
6302
  const inspectRes = await client.devInspectTransactionBlock({
6271
6303
  transactionBlock: tx,
6272
6304
  sender: ZERO_ADDRESS,
6273
6305
  });
6274
6306
 
6275
- return (await getMoveCoder(client)).decodeDevInspectResult<[number[]]>(
6307
+ return (await getMoveCoder(client)).decodeDevInspectResult<[T1]>(
6276
6308
  inspectRes,
6277
6309
  );
6278
6310
  }
6279
- export async function secp256k1Verify(
6311
+ export async function removeChildObject<T0 = any>(
6312
+ client: SuiClient,
6313
+ args: [string | TransactionArgument, string | TransactionArgument],
6314
+ typeArguments: [TypeDescriptor<T0> | string],
6315
+ ): Promise<TypedDevInspectResults<[T0]>> {
6316
+ const tx = new TransactionBlock();
6317
+ builder.removeChildObject(tx, args, typeArguments);
6318
+ const inspectRes = await client.devInspectTransactionBlock({
6319
+ transactionBlock: tx,
6320
+ sender: ZERO_ADDRESS,
6321
+ });
6322
+
6323
+ return (await getMoveCoder(client)).decodeDevInspectResult<[T0]>(
6324
+ inspectRes,
6325
+ );
6326
+ }
6327
+ export async function removeIfExists<T0 = any, T1 = any>(
6280
6328
  client: SuiClient,
6281
6329
  args: [
6282
6330
  string | TransactionObjectArgument | TransactionArgument,
6283
- string | TransactionObjectArgument | TransactionArgument,
6284
- string | TransactionObjectArgument | TransactionArgument,
6285
- number | TransactionArgument,
6331
+ T0 | TransactionArgument,
6286
6332
  ],
6287
- ): Promise<TypedDevInspectResults<[Boolean]>> {
6333
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
6334
+ ): Promise<TypedDevInspectResults<[_0x1.option.Option<T1>]>> {
6288
6335
  const tx = new TransactionBlock();
6289
- builder.secp256k1Verify(tx, args);
6336
+ builder.removeIfExists(tx, args, typeArguments);
6290
6337
  const inspectRes = await client.devInspectTransactionBlock({
6291
6338
  transactionBlock: tx,
6292
6339
  sender: ZERO_ADDRESS,
6293
6340
  });
6294
6341
 
6295
- return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
6296
- inspectRes,
6297
- );
6342
+ return (await getMoveCoder(client)).decodeDevInspectResult<
6343
+ [_0x1.option.Option<T1>]
6344
+ >(inspectRes);
6298
6345
  }
6299
6346
  }
6300
6347
  }
6301
6348
 
6302
- export namespace ecdsa_r1 {
6349
+ export namespace dynamic_object_field {
6350
+ export interface Wrapper<T0> {
6351
+ name: T0;
6352
+ }
6353
+
6354
+ export namespace Wrapper {
6355
+ export const TYPE_QNAME = "0x2::dynamic_object_field::Wrapper";
6356
+
6357
+ const TYPE = new TypeDescriptor<Wrapper<any>>(Wrapper.TYPE_QNAME);
6358
+
6359
+ export function type<T0>(
6360
+ arg0: TypeDescriptor<T0> = ANY_TYPE,
6361
+ ): TypeDescriptor<Wrapper<T0>> {
6362
+ return TYPE.apply(arg0);
6363
+ }
6364
+ }
6365
+
6366
+ export interface WrapperInstance extends TypedEventInstance<Wrapper<any>> {
6367
+ data_decoded: Wrapper<any>;
6368
+ type_arguments: [string];
6369
+ }
6370
+
6303
6371
  export namespace builder {
6304
- export function secp256r1Ecrecover(
6372
+ export function add<T0 = any, T1 = any>(
6305
6373
  tx: TransactionBlock,
6306
6374
  args: [
6307
6375
  string | TransactionObjectArgument | TransactionArgument,
6308
- string | TransactionObjectArgument | TransactionArgument,
6309
- number | TransactionArgument,
6376
+ T0 | TransactionArgument,
6377
+ T1 | TransactionArgument,
6310
6378
  ],
6379
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
6311
6380
  ): TransactionArgument &
6312
6381
  [TransactionArgument, TransactionArgument, TransactionArgument] {
6313
6382
  const _args: any[] = [];
6314
6383
  _args.push(transactionArgumentOrObject(args[0], tx));
6315
- _args.push(transactionArgumentOrObject(args[1], tx));
6384
+ _args.push(transactionArgumentOrPure(args[1], tx));
6316
6385
  _args.push(transactionArgumentOrPure(args[2], tx));
6317
6386
 
6318
6387
  // @ts-ignore
6319
6388
  return tx.moveCall({
6320
- target: "0x2::ecdsa_r1::secp256r1_ecrecover",
6389
+ target: "0x2::dynamic_object_field::add",
6321
6390
  arguments: _args,
6391
+ typeArguments: [
6392
+ typeof typeArguments[0] === "string"
6393
+ ? typeArguments[0]
6394
+ : typeArguments[0].getSignature(),
6395
+ typeof typeArguments[1] === "string"
6396
+ ? typeArguments[1]
6397
+ : typeArguments[1].getSignature(),
6398
+ ],
6322
6399
  });
6323
6400
  }
6324
- export function secp256r1Verify(
6401
+ export function borrow<T0 = any, T1 = any>(
6325
6402
  tx: TransactionBlock,
6326
6403
  args: [
6327
6404
  string | TransactionObjectArgument | TransactionArgument,
6328
- string | TransactionObjectArgument | TransactionArgument,
6329
- string | TransactionObjectArgument | TransactionArgument,
6330
- number | TransactionArgument,
6405
+ T0 | TransactionArgument,
6331
6406
  ],
6332
- ): TransactionArgument &
6333
- [
6334
- TransactionArgument,
6335
- TransactionArgument,
6336
- TransactionArgument,
6337
- TransactionArgument,
6338
- ] {
6407
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
6408
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6339
6409
  const _args: any[] = [];
6340
6410
  _args.push(transactionArgumentOrObject(args[0], tx));
6341
- _args.push(transactionArgumentOrObject(args[1], tx));
6342
- _args.push(transactionArgumentOrObject(args[2], tx));
6343
- _args.push(transactionArgumentOrPure(args[3], tx));
6411
+ _args.push(transactionArgumentOrPure(args[1], tx));
6344
6412
 
6345
6413
  // @ts-ignore
6346
6414
  return tx.moveCall({
6347
- target: "0x2::ecdsa_r1::secp256r1_verify",
6415
+ target: "0x2::dynamic_object_field::borrow",
6348
6416
  arguments: _args,
6417
+ typeArguments: [
6418
+ typeof typeArguments[0] === "string"
6419
+ ? typeArguments[0]
6420
+ : typeArguments[0].getSignature(),
6421
+ typeof typeArguments[1] === "string"
6422
+ ? typeArguments[1]
6423
+ : typeArguments[1].getSignature(),
6424
+ ],
6349
6425
  });
6350
6426
  }
6351
- }
6352
- export namespace view {
6353
- export async function secp256r1Ecrecover(
6354
- client: SuiClient,
6427
+ export function borrowMut<T0 = any, T1 = any>(
6428
+ tx: TransactionBlock,
6355
6429
  args: [
6356
6430
  string | TransactionObjectArgument | TransactionArgument,
6357
- string | TransactionObjectArgument | TransactionArgument,
6358
- number | TransactionArgument,
6431
+ T0 | TransactionArgument,
6359
6432
  ],
6360
- ): Promise<TypedDevInspectResults<[number[]]>> {
6361
- const tx = new TransactionBlock();
6362
- builder.secp256r1Ecrecover(tx, args);
6363
- const inspectRes = await client.devInspectTransactionBlock({
6364
- transactionBlock: tx,
6365
- sender: ZERO_ADDRESS,
6366
- });
6433
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
6434
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6435
+ const _args: any[] = [];
6436
+ _args.push(transactionArgumentOrObject(args[0], tx));
6437
+ _args.push(transactionArgumentOrPure(args[1], tx));
6367
6438
 
6368
- return (await getMoveCoder(client)).decodeDevInspectResult<[number[]]>(
6369
- inspectRes,
6370
- );
6439
+ // @ts-ignore
6440
+ return tx.moveCall({
6441
+ target: "0x2::dynamic_object_field::borrow_mut",
6442
+ arguments: _args,
6443
+ typeArguments: [
6444
+ typeof typeArguments[0] === "string"
6445
+ ? typeArguments[0]
6446
+ : typeArguments[0].getSignature(),
6447
+ typeof typeArguments[1] === "string"
6448
+ ? typeArguments[1]
6449
+ : typeArguments[1].getSignature(),
6450
+ ],
6451
+ });
6371
6452
  }
6372
- export async function secp256r1Verify(
6373
- client: SuiClient,
6453
+ export function exists_<T0 = any>(
6454
+ tx: TransactionBlock,
6374
6455
  args: [
6375
6456
  string | TransactionObjectArgument | TransactionArgument,
6376
- string | TransactionObjectArgument | TransactionArgument,
6377
- string | TransactionObjectArgument | TransactionArgument,
6378
- number | TransactionArgument,
6457
+ T0 | TransactionArgument,
6379
6458
  ],
6380
- ): Promise<TypedDevInspectResults<[Boolean]>> {
6381
- const tx = new TransactionBlock();
6382
- builder.secp256r1Verify(tx, args);
6383
- const inspectRes = await client.devInspectTransactionBlock({
6384
- transactionBlock: tx,
6385
- sender: ZERO_ADDRESS,
6386
- });
6459
+ typeArguments: [TypeDescriptor<T0> | string],
6460
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6461
+ const _args: any[] = [];
6462
+ _args.push(transactionArgumentOrObject(args[0], tx));
6463
+ _args.push(transactionArgumentOrPure(args[1], tx));
6387
6464
 
6388
- return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
6389
- inspectRes,
6390
- );
6465
+ // @ts-ignore
6466
+ return tx.moveCall({
6467
+ target: "0x2::dynamic_object_field::exists_",
6468
+ arguments: _args,
6469
+ typeArguments: [
6470
+ typeof typeArguments[0] === "string"
6471
+ ? typeArguments[0]
6472
+ : typeArguments[0].getSignature(),
6473
+ ],
6474
+ });
6391
6475
  }
6392
- }
6393
- }
6394
-
6395
- export namespace ecvrf {
6396
- export namespace builder {
6397
- export function ecvrfVerify(
6476
+ export function existsWithType<T0 = any, T1 = any>(
6398
6477
  tx: TransactionBlock,
6399
6478
  args: [
6400
6479
  string | TransactionObjectArgument | TransactionArgument,
6480
+ T0 | TransactionArgument,
6481
+ ],
6482
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
6483
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6484
+ const _args: any[] = [];
6485
+ _args.push(transactionArgumentOrObject(args[0], tx));
6486
+ _args.push(transactionArgumentOrPure(args[1], tx));
6487
+
6488
+ // @ts-ignore
6489
+ return tx.moveCall({
6490
+ target: "0x2::dynamic_object_field::exists_with_type",
6491
+ arguments: _args,
6492
+ typeArguments: [
6493
+ typeof typeArguments[0] === "string"
6494
+ ? typeArguments[0]
6495
+ : typeArguments[0].getSignature(),
6496
+ typeof typeArguments[1] === "string"
6497
+ ? typeArguments[1]
6498
+ : typeArguments[1].getSignature(),
6499
+ ],
6500
+ });
6501
+ }
6502
+ export function id<T0 = any>(
6503
+ tx: TransactionBlock,
6504
+ args: [
6401
6505
  string | TransactionObjectArgument | TransactionArgument,
6506
+ T0 | TransactionArgument,
6507
+ ],
6508
+ typeArguments: [TypeDescriptor<T0> | string],
6509
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6510
+ const _args: any[] = [];
6511
+ _args.push(transactionArgumentOrObject(args[0], tx));
6512
+ _args.push(transactionArgumentOrPure(args[1], tx));
6513
+
6514
+ // @ts-ignore
6515
+ return tx.moveCall({
6516
+ target: "0x2::dynamic_object_field::id",
6517
+ arguments: _args,
6518
+ typeArguments: [
6519
+ typeof typeArguments[0] === "string"
6520
+ ? typeArguments[0]
6521
+ : typeArguments[0].getSignature(),
6522
+ ],
6523
+ });
6524
+ }
6525
+ export function remove<T0 = any, T1 = any>(
6526
+ tx: TransactionBlock,
6527
+ args: [
6402
6528
  string | TransactionObjectArgument | TransactionArgument,
6403
- string | TransactionObjectArgument | TransactionArgument,
6529
+ T0 | TransactionArgument,
6404
6530
  ],
6405
- ): TransactionArgument &
6406
- [
6407
- TransactionArgument,
6408
- TransactionArgument,
6409
- TransactionArgument,
6410
- TransactionArgument,
6411
- ] {
6531
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
6532
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6412
6533
  const _args: any[] = [];
6413
6534
  _args.push(transactionArgumentOrObject(args[0], tx));
6414
- _args.push(transactionArgumentOrObject(args[1], tx));
6415
- _args.push(transactionArgumentOrObject(args[2], tx));
6416
- _args.push(transactionArgumentOrObject(args[3], tx));
6535
+ _args.push(transactionArgumentOrPure(args[1], tx));
6417
6536
 
6418
6537
  // @ts-ignore
6419
6538
  return tx.moveCall({
6420
- target: "0x2::ecvrf::ecvrf_verify",
6539
+ target: "0x2::dynamic_object_field::remove",
6421
6540
  arguments: _args,
6541
+ typeArguments: [
6542
+ typeof typeArguments[0] === "string"
6543
+ ? typeArguments[0]
6544
+ : typeArguments[0].getSignature(),
6545
+ typeof typeArguments[1] === "string"
6546
+ ? typeArguments[1]
6547
+ : typeArguments[1].getSignature(),
6548
+ ],
6422
6549
  });
6423
6550
  }
6424
6551
  }
6425
6552
  export namespace view {
6426
- export async function ecvrfVerify(
6553
+ export async function add<T0 = any, T1 = any>(
6427
6554
  client: SuiClient,
6428
6555
  args: [
6429
6556
  string | TransactionObjectArgument | TransactionArgument,
6430
- string | TransactionObjectArgument | TransactionArgument,
6431
- string | TransactionObjectArgument | TransactionArgument,
6432
- string | TransactionObjectArgument | TransactionArgument,
6557
+ T0 | TransactionArgument,
6558
+ T1 | TransactionArgument,
6433
6559
  ],
6434
- ): Promise<TypedDevInspectResults<[Boolean]>> {
6560
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
6561
+ ): Promise<TypedDevInspectResults<[]>> {
6435
6562
  const tx = new TransactionBlock();
6436
- builder.ecvrfVerify(tx, args);
6563
+ builder.add(tx, args, typeArguments);
6437
6564
  const inspectRes = await client.devInspectTransactionBlock({
6438
6565
  transactionBlock: tx,
6439
6566
  sender: ZERO_ADDRESS,
6440
6567
  });
6441
6568
 
6442
- return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
6569
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
6443
6570
  inspectRes,
6444
6571
  );
6445
6572
  }
6446
- }
6447
- }
6448
-
6449
- export namespace ed25519 {
6450
- export namespace builder {
6451
- export function ed25519Verify(
6452
- tx: TransactionBlock,
6573
+ export async function borrow<T0 = any, T1 = any>(
6574
+ client: SuiClient,
6453
6575
  args: [
6454
6576
  string | TransactionObjectArgument | TransactionArgument,
6455
- string | TransactionObjectArgument | TransactionArgument,
6456
- string | TransactionObjectArgument | TransactionArgument,
6577
+ T0 | TransactionArgument,
6457
6578
  ],
6458
- ): TransactionArgument &
6459
- [TransactionArgument, TransactionArgument, TransactionArgument] {
6460
- const _args: any[] = [];
6461
- _args.push(transactionArgumentOrObject(args[0], tx));
6462
- _args.push(transactionArgumentOrObject(args[1], tx));
6463
- _args.push(transactionArgumentOrObject(args[2], tx));
6464
-
6465
- // @ts-ignore
6466
- return tx.moveCall({
6467
- target: "0x2::ed25519::ed25519_verify",
6468
- arguments: _args,
6579
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
6580
+ ): Promise<TypedDevInspectResults<[string]>> {
6581
+ const tx = new TransactionBlock();
6582
+ builder.borrow(tx, args, typeArguments);
6583
+ const inspectRes = await client.devInspectTransactionBlock({
6584
+ transactionBlock: tx,
6585
+ sender: ZERO_ADDRESS,
6469
6586
  });
6587
+
6588
+ return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
6589
+ inspectRes,
6590
+ );
6470
6591
  }
6471
- }
6472
- export namespace view {
6473
- export async function ed25519Verify(
6592
+ export async function borrowMut<T0 = any, T1 = any>(
6474
6593
  client: SuiClient,
6475
6594
  args: [
6476
6595
  string | TransactionObjectArgument | TransactionArgument,
6596
+ T0 | TransactionArgument,
6597
+ ],
6598
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
6599
+ ): Promise<TypedDevInspectResults<[string]>> {
6600
+ const tx = new TransactionBlock();
6601
+ builder.borrowMut(tx, args, typeArguments);
6602
+ const inspectRes = await client.devInspectTransactionBlock({
6603
+ transactionBlock: tx,
6604
+ sender: ZERO_ADDRESS,
6605
+ });
6606
+
6607
+ return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
6608
+ inspectRes,
6609
+ );
6610
+ }
6611
+ export async function exists_<T0 = any>(
6612
+ client: SuiClient,
6613
+ args: [
6477
6614
  string | TransactionObjectArgument | TransactionArgument,
6478
- string | TransactionObjectArgument | TransactionArgument,
6615
+ T0 | TransactionArgument,
6479
6616
  ],
6617
+ typeArguments: [TypeDescriptor<T0> | string],
6480
6618
  ): Promise<TypedDevInspectResults<[Boolean]>> {
6481
6619
  const tx = new TransactionBlock();
6482
- builder.ed25519Verify(tx, args);
6620
+ builder.exists_(tx, args, typeArguments);
6483
6621
  const inspectRes = await client.devInspectTransactionBlock({
6484
6622
  transactionBlock: tx,
6485
6623
  sender: ZERO_ADDRESS,
@@ -6489,168 +6627,885 @@ export namespace ed25519 {
6489
6627
  inspectRes,
6490
6628
  );
6491
6629
  }
6492
- }
6493
- }
6630
+ export async function existsWithType<T0 = any, T1 = any>(
6631
+ client: SuiClient,
6632
+ args: [
6633
+ string | TransactionObjectArgument | TransactionArgument,
6634
+ T0 | TransactionArgument,
6635
+ ],
6636
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
6637
+ ): Promise<TypedDevInspectResults<[Boolean]>> {
6638
+ const tx = new TransactionBlock();
6639
+ builder.existsWithType(tx, args, typeArguments);
6640
+ const inspectRes = await client.devInspectTransactionBlock({
6641
+ transactionBlock: tx,
6642
+ sender: ZERO_ADDRESS,
6643
+ });
6494
6644
 
6495
- export namespace event {
6496
- export namespace builder {
6497
- export function emit<T0 = any>(
6498
- tx: TransactionBlock,
6499
- args: [T0 | TransactionArgument],
6645
+ return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
6646
+ inspectRes,
6647
+ );
6648
+ }
6649
+ export async function id<T0 = any>(
6650
+ client: SuiClient,
6651
+ args: [
6652
+ string | TransactionObjectArgument | TransactionArgument,
6653
+ T0 | TransactionArgument,
6654
+ ],
6500
6655
  typeArguments: [TypeDescriptor<T0> | string],
6501
- ): TransactionArgument & [TransactionArgument] {
6502
- const _args: any[] = [];
6503
- _args.push(transactionArgumentOrPure(args[0], tx));
6504
-
6505
- // @ts-ignore
6506
- return tx.moveCall({
6507
- target: "0x2::event::emit",
6508
- arguments: _args,
6509
- typeArguments: [
6510
- typeof typeArguments[0] === "string"
6511
- ? typeArguments[0]
6512
- : typeArguments[0].getSignature(),
6513
- ],
6656
+ ): Promise<TypedDevInspectResults<[_0x1.option.Option<object_.ID>]>> {
6657
+ const tx = new TransactionBlock();
6658
+ builder.id(tx, args, typeArguments);
6659
+ const inspectRes = await client.devInspectTransactionBlock({
6660
+ transactionBlock: tx,
6661
+ sender: ZERO_ADDRESS,
6514
6662
  });
6663
+
6664
+ return (await getMoveCoder(client)).decodeDevInspectResult<
6665
+ [_0x1.option.Option<object_.ID>]
6666
+ >(inspectRes);
6515
6667
  }
6516
- }
6517
- export namespace view {
6518
- export async function emit<T0 = any>(
6668
+ export async function remove<T0 = any, T1 = any>(
6519
6669
  client: SuiClient,
6520
- args: [T0 | TransactionArgument],
6521
- typeArguments: [TypeDescriptor<T0> | string],
6522
- ): Promise<TypedDevInspectResults<[]>> {
6670
+ args: [
6671
+ string | TransactionObjectArgument | TransactionArgument,
6672
+ T0 | TransactionArgument,
6673
+ ],
6674
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
6675
+ ): Promise<TypedDevInspectResults<[T1]>> {
6523
6676
  const tx = new TransactionBlock();
6524
- builder.emit(tx, args, typeArguments);
6677
+ builder.remove(tx, args, typeArguments);
6525
6678
  const inspectRes = await client.devInspectTransactionBlock({
6526
6679
  transactionBlock: tx,
6527
6680
  sender: ZERO_ADDRESS,
6528
6681
  });
6529
6682
 
6530
- return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
6683
+ return (await getMoveCoder(client)).decodeDevInspectResult<[T1]>(
6531
6684
  inspectRes,
6532
6685
  );
6533
6686
  }
6534
6687
  }
6535
6688
  }
6536
6689
 
6537
- export namespace groth16 {
6538
- export interface Curve {
6539
- id: number;
6540
- }
6541
-
6542
- export namespace Curve {
6543
- export const TYPE_QNAME = "0x2::groth16::Curve";
6544
-
6545
- const TYPE = new TypeDescriptor<Curve>(Curve.TYPE_QNAME);
6690
+ export namespace ecdsa_k1 {
6691
+ export namespace builder {
6692
+ export function decompressPubkey(
6693
+ tx: TransactionBlock,
6694
+ args: [string | TransactionObjectArgument | TransactionArgument],
6695
+ ): TransactionArgument & [TransactionArgument] {
6696
+ const _args: any[] = [];
6697
+ _args.push(transactionArgumentOrObject(args[0], tx));
6546
6698
 
6547
- export function type(): TypeDescriptor<Curve> {
6548
- return TYPE.apply();
6699
+ // @ts-ignore
6700
+ return tx.moveCall({
6701
+ target: "0x2::ecdsa_k1::decompress_pubkey",
6702
+ arguments: _args,
6703
+ });
6549
6704
  }
6550
- }
6705
+ export function secp256k1Ecrecover(
6706
+ tx: TransactionBlock,
6707
+ args: [
6708
+ string | TransactionObjectArgument | TransactionArgument,
6709
+ string | TransactionObjectArgument | TransactionArgument,
6710
+ number | TransactionArgument,
6711
+ ],
6712
+ ): TransactionArgument &
6713
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
6714
+ const _args: any[] = [];
6715
+ _args.push(transactionArgumentOrObject(args[0], tx));
6716
+ _args.push(transactionArgumentOrObject(args[1], tx));
6717
+ _args.push(transactionArgumentOrPure(args[2], tx));
6551
6718
 
6552
- export interface CurveInstance extends TypedEventInstance<Curve> {
6553
- data_decoded: Curve;
6554
- type_arguments: [];
6555
- }
6719
+ // @ts-ignore
6720
+ return tx.moveCall({
6721
+ target: "0x2::ecdsa_k1::secp256k1_ecrecover",
6722
+ arguments: _args,
6723
+ });
6724
+ }
6725
+ export function secp256k1Verify(
6726
+ tx: TransactionBlock,
6727
+ args: [
6728
+ string | TransactionObjectArgument | TransactionArgument,
6729
+ string | TransactionObjectArgument | TransactionArgument,
6730
+ string | TransactionObjectArgument | TransactionArgument,
6731
+ number | TransactionArgument,
6732
+ ],
6733
+ ): TransactionArgument &
6734
+ [
6735
+ TransactionArgument,
6736
+ TransactionArgument,
6737
+ TransactionArgument,
6738
+ TransactionArgument,
6739
+ ] {
6740
+ const _args: any[] = [];
6741
+ _args.push(transactionArgumentOrObject(args[0], tx));
6742
+ _args.push(transactionArgumentOrObject(args[1], tx));
6743
+ _args.push(transactionArgumentOrObject(args[2], tx));
6744
+ _args.push(transactionArgumentOrPure(args[3], tx));
6556
6745
 
6557
- export interface PreparedVerifyingKey {
6558
- vk_gamma_abc_g1_bytes: number[];
6559
- alpha_g1_beta_g2_bytes: number[];
6560
- gamma_g2_neg_pc_bytes: number[];
6561
- delta_g2_neg_pc_bytes: number[];
6746
+ // @ts-ignore
6747
+ return tx.moveCall({
6748
+ target: "0x2::ecdsa_k1::secp256k1_verify",
6749
+ arguments: _args,
6750
+ });
6751
+ }
6562
6752
  }
6753
+ export namespace view {
6754
+ export async function decompressPubkey(
6755
+ client: SuiClient,
6756
+ args: [string | TransactionObjectArgument | TransactionArgument],
6757
+ ): Promise<TypedDevInspectResults<[number[]]>> {
6758
+ const tx = new TransactionBlock();
6759
+ builder.decompressPubkey(tx, args);
6760
+ const inspectRes = await client.devInspectTransactionBlock({
6761
+ transactionBlock: tx,
6762
+ sender: ZERO_ADDRESS,
6763
+ });
6563
6764
 
6564
- export namespace PreparedVerifyingKey {
6565
- export const TYPE_QNAME = "0x2::groth16::PreparedVerifyingKey";
6765
+ return (await getMoveCoder(client)).decodeDevInspectResult<[number[]]>(
6766
+ inspectRes,
6767
+ );
6768
+ }
6769
+ export async function secp256k1Ecrecover(
6770
+ client: SuiClient,
6771
+ args: [
6772
+ string | TransactionObjectArgument | TransactionArgument,
6773
+ string | TransactionObjectArgument | TransactionArgument,
6774
+ number | TransactionArgument,
6775
+ ],
6776
+ ): Promise<TypedDevInspectResults<[number[]]>> {
6777
+ const tx = new TransactionBlock();
6778
+ builder.secp256k1Ecrecover(tx, args);
6779
+ const inspectRes = await client.devInspectTransactionBlock({
6780
+ transactionBlock: tx,
6781
+ sender: ZERO_ADDRESS,
6782
+ });
6566
6783
 
6567
- const TYPE = new TypeDescriptor<PreparedVerifyingKey>(
6568
- PreparedVerifyingKey.TYPE_QNAME,
6569
- );
6784
+ return (await getMoveCoder(client)).decodeDevInspectResult<[number[]]>(
6785
+ inspectRes,
6786
+ );
6787
+ }
6788
+ export async function secp256k1Verify(
6789
+ client: SuiClient,
6790
+ args: [
6791
+ string | TransactionObjectArgument | TransactionArgument,
6792
+ string | TransactionObjectArgument | TransactionArgument,
6793
+ string | TransactionObjectArgument | TransactionArgument,
6794
+ number | TransactionArgument,
6795
+ ],
6796
+ ): Promise<TypedDevInspectResults<[Boolean]>> {
6797
+ const tx = new TransactionBlock();
6798
+ builder.secp256k1Verify(tx, args);
6799
+ const inspectRes = await client.devInspectTransactionBlock({
6800
+ transactionBlock: tx,
6801
+ sender: ZERO_ADDRESS,
6802
+ });
6570
6803
 
6571
- export function type(): TypeDescriptor<PreparedVerifyingKey> {
6572
- return TYPE.apply();
6804
+ return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
6805
+ inspectRes,
6806
+ );
6573
6807
  }
6574
6808
  }
6809
+ }
6575
6810
 
6576
- export interface PreparedVerifyingKeyInstance
6577
- extends TypedEventInstance<PreparedVerifyingKey> {
6578
- data_decoded: PreparedVerifyingKey;
6579
- type_arguments: [];
6580
- }
6811
+ export namespace ecdsa_r1 {
6812
+ export namespace builder {
6813
+ export function secp256r1Ecrecover(
6814
+ tx: TransactionBlock,
6815
+ args: [
6816
+ string | TransactionObjectArgument | TransactionArgument,
6817
+ string | TransactionObjectArgument | TransactionArgument,
6818
+ number | TransactionArgument,
6819
+ ],
6820
+ ): TransactionArgument &
6821
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
6822
+ const _args: any[] = [];
6823
+ _args.push(transactionArgumentOrObject(args[0], tx));
6824
+ _args.push(transactionArgumentOrObject(args[1], tx));
6825
+ _args.push(transactionArgumentOrPure(args[2], tx));
6581
6826
 
6582
- export interface ProofPoints {
6583
- bytes: number[];
6584
- }
6827
+ // @ts-ignore
6828
+ return tx.moveCall({
6829
+ target: "0x2::ecdsa_r1::secp256r1_ecrecover",
6830
+ arguments: _args,
6831
+ });
6832
+ }
6833
+ export function secp256r1Verify(
6834
+ tx: TransactionBlock,
6835
+ args: [
6836
+ string | TransactionObjectArgument | TransactionArgument,
6837
+ string | TransactionObjectArgument | TransactionArgument,
6838
+ string | TransactionObjectArgument | TransactionArgument,
6839
+ number | TransactionArgument,
6840
+ ],
6841
+ ): TransactionArgument &
6842
+ [
6843
+ TransactionArgument,
6844
+ TransactionArgument,
6845
+ TransactionArgument,
6846
+ TransactionArgument,
6847
+ ] {
6848
+ const _args: any[] = [];
6849
+ _args.push(transactionArgumentOrObject(args[0], tx));
6850
+ _args.push(transactionArgumentOrObject(args[1], tx));
6851
+ _args.push(transactionArgumentOrObject(args[2], tx));
6852
+ _args.push(transactionArgumentOrPure(args[3], tx));
6585
6853
 
6586
- export namespace ProofPoints {
6587
- export const TYPE_QNAME = "0x2::groth16::ProofPoints";
6854
+ // @ts-ignore
6855
+ return tx.moveCall({
6856
+ target: "0x2::ecdsa_r1::secp256r1_verify",
6857
+ arguments: _args,
6858
+ });
6859
+ }
6860
+ }
6861
+ export namespace view {
6862
+ export async function secp256r1Ecrecover(
6863
+ client: SuiClient,
6864
+ args: [
6865
+ string | TransactionObjectArgument | TransactionArgument,
6866
+ string | TransactionObjectArgument | TransactionArgument,
6867
+ number | TransactionArgument,
6868
+ ],
6869
+ ): Promise<TypedDevInspectResults<[number[]]>> {
6870
+ const tx = new TransactionBlock();
6871
+ builder.secp256r1Ecrecover(tx, args);
6872
+ const inspectRes = await client.devInspectTransactionBlock({
6873
+ transactionBlock: tx,
6874
+ sender: ZERO_ADDRESS,
6875
+ });
6588
6876
 
6589
- const TYPE = new TypeDescriptor<ProofPoints>(ProofPoints.TYPE_QNAME);
6877
+ return (await getMoveCoder(client)).decodeDevInspectResult<[number[]]>(
6878
+ inspectRes,
6879
+ );
6880
+ }
6881
+ export async function secp256r1Verify(
6882
+ client: SuiClient,
6883
+ args: [
6884
+ string | TransactionObjectArgument | TransactionArgument,
6885
+ string | TransactionObjectArgument | TransactionArgument,
6886
+ string | TransactionObjectArgument | TransactionArgument,
6887
+ number | TransactionArgument,
6888
+ ],
6889
+ ): Promise<TypedDevInspectResults<[Boolean]>> {
6890
+ const tx = new TransactionBlock();
6891
+ builder.secp256r1Verify(tx, args);
6892
+ const inspectRes = await client.devInspectTransactionBlock({
6893
+ transactionBlock: tx,
6894
+ sender: ZERO_ADDRESS,
6895
+ });
6590
6896
 
6591
- export function type(): TypeDescriptor<ProofPoints> {
6592
- return TYPE.apply();
6897
+ return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
6898
+ inspectRes,
6899
+ );
6593
6900
  }
6594
6901
  }
6902
+ }
6903
+
6904
+ export namespace ecvrf {
6905
+ export namespace builder {
6906
+ export function ecvrfVerify(
6907
+ tx: TransactionBlock,
6908
+ args: [
6909
+ string | TransactionObjectArgument | TransactionArgument,
6910
+ string | TransactionObjectArgument | TransactionArgument,
6911
+ string | TransactionObjectArgument | TransactionArgument,
6912
+ string | TransactionObjectArgument | TransactionArgument,
6913
+ ],
6914
+ ): TransactionArgument &
6915
+ [
6916
+ TransactionArgument,
6917
+ TransactionArgument,
6918
+ TransactionArgument,
6919
+ TransactionArgument,
6920
+ ] {
6921
+ const _args: any[] = [];
6922
+ _args.push(transactionArgumentOrObject(args[0], tx));
6923
+ _args.push(transactionArgumentOrObject(args[1], tx));
6924
+ _args.push(transactionArgumentOrObject(args[2], tx));
6925
+ _args.push(transactionArgumentOrObject(args[3], tx));
6926
+
6927
+ // @ts-ignore
6928
+ return tx.moveCall({
6929
+ target: "0x2::ecvrf::ecvrf_verify",
6930
+ arguments: _args,
6931
+ });
6932
+ }
6933
+ }
6934
+ export namespace view {
6935
+ export async function ecvrfVerify(
6936
+ client: SuiClient,
6937
+ args: [
6938
+ string | TransactionObjectArgument | TransactionArgument,
6939
+ string | TransactionObjectArgument | TransactionArgument,
6940
+ string | TransactionObjectArgument | TransactionArgument,
6941
+ string | TransactionObjectArgument | TransactionArgument,
6942
+ ],
6943
+ ): Promise<TypedDevInspectResults<[Boolean]>> {
6944
+ const tx = new TransactionBlock();
6945
+ builder.ecvrfVerify(tx, args);
6946
+ const inspectRes = await client.devInspectTransactionBlock({
6947
+ transactionBlock: tx,
6948
+ sender: ZERO_ADDRESS,
6949
+ });
6950
+
6951
+ return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
6952
+ inspectRes,
6953
+ );
6954
+ }
6955
+ }
6956
+ }
6957
+
6958
+ export namespace ed25519 {
6959
+ export namespace builder {
6960
+ export function ed25519Verify(
6961
+ tx: TransactionBlock,
6962
+ args: [
6963
+ string | TransactionObjectArgument | TransactionArgument,
6964
+ string | TransactionObjectArgument | TransactionArgument,
6965
+ string | TransactionObjectArgument | TransactionArgument,
6966
+ ],
6967
+ ): TransactionArgument &
6968
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
6969
+ const _args: any[] = [];
6970
+ _args.push(transactionArgumentOrObject(args[0], tx));
6971
+ _args.push(transactionArgumentOrObject(args[1], tx));
6972
+ _args.push(transactionArgumentOrObject(args[2], tx));
6973
+
6974
+ // @ts-ignore
6975
+ return tx.moveCall({
6976
+ target: "0x2::ed25519::ed25519_verify",
6977
+ arguments: _args,
6978
+ });
6979
+ }
6980
+ }
6981
+ export namespace view {
6982
+ export async function ed25519Verify(
6983
+ client: SuiClient,
6984
+ args: [
6985
+ string | TransactionObjectArgument | TransactionArgument,
6986
+ string | TransactionObjectArgument | TransactionArgument,
6987
+ string | TransactionObjectArgument | TransactionArgument,
6988
+ ],
6989
+ ): Promise<TypedDevInspectResults<[Boolean]>> {
6990
+ const tx = new TransactionBlock();
6991
+ builder.ed25519Verify(tx, args);
6992
+ const inspectRes = await client.devInspectTransactionBlock({
6993
+ transactionBlock: tx,
6994
+ sender: ZERO_ADDRESS,
6995
+ });
6996
+
6997
+ return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
6998
+ inspectRes,
6999
+ );
7000
+ }
7001
+ }
7002
+ }
7003
+
7004
+ export namespace event {
7005
+ export namespace builder {
7006
+ export function emit<T0 = any>(
7007
+ tx: TransactionBlock,
7008
+ args: [T0 | TransactionArgument],
7009
+ typeArguments: [TypeDescriptor<T0> | string],
7010
+ ): TransactionArgument & [TransactionArgument] {
7011
+ const _args: any[] = [];
7012
+ _args.push(transactionArgumentOrPure(args[0], tx));
7013
+
7014
+ // @ts-ignore
7015
+ return tx.moveCall({
7016
+ target: "0x2::event::emit",
7017
+ arguments: _args,
7018
+ typeArguments: [
7019
+ typeof typeArguments[0] === "string"
7020
+ ? typeArguments[0]
7021
+ : typeArguments[0].getSignature(),
7022
+ ],
7023
+ });
7024
+ }
7025
+ }
7026
+ export namespace view {
7027
+ export async function emit<T0 = any>(
7028
+ client: SuiClient,
7029
+ args: [T0 | TransactionArgument],
7030
+ typeArguments: [TypeDescriptor<T0> | string],
7031
+ ): Promise<TypedDevInspectResults<[]>> {
7032
+ const tx = new TransactionBlock();
7033
+ builder.emit(tx, args, typeArguments);
7034
+ const inspectRes = await client.devInspectTransactionBlock({
7035
+ transactionBlock: tx,
7036
+ sender: ZERO_ADDRESS,
7037
+ });
7038
+
7039
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
7040
+ inspectRes,
7041
+ );
7042
+ }
7043
+ }
7044
+ }
7045
+
7046
+ export namespace groth16 {
7047
+ export interface Curve {
7048
+ id: number;
7049
+ }
7050
+
7051
+ export namespace Curve {
7052
+ export const TYPE_QNAME = "0x2::groth16::Curve";
7053
+
7054
+ const TYPE = new TypeDescriptor<Curve>(Curve.TYPE_QNAME);
7055
+
7056
+ export function type(): TypeDescriptor<Curve> {
7057
+ return TYPE.apply();
7058
+ }
7059
+ }
7060
+
7061
+ export interface CurveInstance extends TypedEventInstance<Curve> {
7062
+ data_decoded: Curve;
7063
+ type_arguments: [];
7064
+ }
7065
+
7066
+ export interface PreparedVerifyingKey {
7067
+ vk_gamma_abc_g1_bytes: number[];
7068
+ alpha_g1_beta_g2_bytes: number[];
7069
+ gamma_g2_neg_pc_bytes: number[];
7070
+ delta_g2_neg_pc_bytes: number[];
7071
+ }
7072
+
7073
+ export namespace PreparedVerifyingKey {
7074
+ export const TYPE_QNAME = "0x2::groth16::PreparedVerifyingKey";
7075
+
7076
+ const TYPE = new TypeDescriptor<PreparedVerifyingKey>(
7077
+ PreparedVerifyingKey.TYPE_QNAME,
7078
+ );
7079
+
7080
+ export function type(): TypeDescriptor<PreparedVerifyingKey> {
7081
+ return TYPE.apply();
7082
+ }
7083
+ }
7084
+
7085
+ export interface PreparedVerifyingKeyInstance
7086
+ extends TypedEventInstance<PreparedVerifyingKey> {
7087
+ data_decoded: PreparedVerifyingKey;
7088
+ type_arguments: [];
7089
+ }
7090
+
7091
+ export interface ProofPoints {
7092
+ bytes: number[];
7093
+ }
7094
+
7095
+ export namespace ProofPoints {
7096
+ export const TYPE_QNAME = "0x2::groth16::ProofPoints";
7097
+
7098
+ const TYPE = new TypeDescriptor<ProofPoints>(ProofPoints.TYPE_QNAME);
7099
+
7100
+ export function type(): TypeDescriptor<ProofPoints> {
7101
+ return TYPE.apply();
7102
+ }
7103
+ }
7104
+
7105
+ export interface ProofPointsInstance extends TypedEventInstance<ProofPoints> {
7106
+ data_decoded: ProofPoints;
7107
+ type_arguments: [];
7108
+ }
7109
+
7110
+ export interface PublicProofInputs {
7111
+ bytes: number[];
7112
+ }
7113
+
7114
+ export namespace PublicProofInputs {
7115
+ export const TYPE_QNAME = "0x2::groth16::PublicProofInputs";
7116
+
7117
+ const TYPE = new TypeDescriptor<PublicProofInputs>(
7118
+ PublicProofInputs.TYPE_QNAME,
7119
+ );
7120
+
7121
+ export function type(): TypeDescriptor<PublicProofInputs> {
7122
+ return TYPE.apply();
7123
+ }
7124
+ }
7125
+
7126
+ export interface PublicProofInputsInstance
7127
+ extends TypedEventInstance<PublicProofInputs> {
7128
+ data_decoded: PublicProofInputs;
7129
+ type_arguments: [];
7130
+ }
7131
+
7132
+ export namespace builder {
7133
+ export function bls12381(
7134
+ tx: TransactionBlock,
7135
+ args: [],
7136
+ ): TransactionArgument & [] {
7137
+ const _args: any[] = [];
7138
+
7139
+ // @ts-ignore
7140
+ return tx.moveCall({
7141
+ target: "0x2::groth16::bls12381",
7142
+ arguments: _args,
7143
+ });
7144
+ }
7145
+ export function bn254(
7146
+ tx: TransactionBlock,
7147
+ args: [],
7148
+ ): TransactionArgument & [] {
7149
+ const _args: any[] = [];
7150
+
7151
+ // @ts-ignore
7152
+ return tx.moveCall({
7153
+ target: "0x2::groth16::bn254",
7154
+ arguments: _args,
7155
+ });
7156
+ }
7157
+ export function prepareVerifyingKey(
7158
+ tx: TransactionBlock,
7159
+ args: [
7160
+ string | TransactionObjectArgument | TransactionArgument,
7161
+ string | TransactionObjectArgument | TransactionArgument,
7162
+ ],
7163
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
7164
+ const _args: any[] = [];
7165
+ _args.push(transactionArgumentOrObject(args[0], tx));
7166
+ _args.push(transactionArgumentOrObject(args[1], tx));
7167
+
7168
+ // @ts-ignore
7169
+ return tx.moveCall({
7170
+ target: "0x2::groth16::prepare_verifying_key",
7171
+ arguments: _args,
7172
+ });
7173
+ }
7174
+ export function proofPointsFromBytes(
7175
+ tx: TransactionBlock,
7176
+ args: [(string | TransactionObjectArgument)[] | TransactionArgument],
7177
+ ): TransactionArgument & [TransactionArgument] {
7178
+ const _args: any[] = [];
7179
+ _args.push(transactionArgumentOrVec(args[0], tx));
7180
+
7181
+ // @ts-ignore
7182
+ return tx.moveCall({
7183
+ target: "0x2::groth16::proof_points_from_bytes",
7184
+ arguments: _args,
7185
+ });
7186
+ }
7187
+ export function publicProofInputsFromBytes(
7188
+ tx: TransactionBlock,
7189
+ args: [(string | TransactionObjectArgument)[] | TransactionArgument],
7190
+ ): TransactionArgument & [TransactionArgument] {
7191
+ const _args: any[] = [];
7192
+ _args.push(transactionArgumentOrVec(args[0], tx));
7193
+
7194
+ // @ts-ignore
7195
+ return tx.moveCall({
7196
+ target: "0x2::groth16::public_proof_inputs_from_bytes",
7197
+ arguments: _args,
7198
+ });
7199
+ }
7200
+ export function pvkFromBytes(
7201
+ tx: TransactionBlock,
7202
+ args: [
7203
+ (string | TransactionObjectArgument)[] | TransactionArgument,
7204
+ (string | TransactionObjectArgument)[] | TransactionArgument,
7205
+ (string | TransactionObjectArgument)[] | TransactionArgument,
7206
+ (string | TransactionObjectArgument)[] | TransactionArgument,
7207
+ ],
7208
+ ): TransactionArgument &
7209
+ [
7210
+ TransactionArgument,
7211
+ TransactionArgument,
7212
+ TransactionArgument,
7213
+ TransactionArgument,
7214
+ ] {
7215
+ const _args: any[] = [];
7216
+ _args.push(transactionArgumentOrVec(args[0], tx));
7217
+ _args.push(transactionArgumentOrVec(args[1], tx));
7218
+ _args.push(transactionArgumentOrVec(args[2], tx));
7219
+ _args.push(transactionArgumentOrVec(args[3], tx));
7220
+
7221
+ // @ts-ignore
7222
+ return tx.moveCall({
7223
+ target: "0x2::groth16::pvk_from_bytes",
7224
+ arguments: _args,
7225
+ });
7226
+ }
7227
+ export function pvkToBytes(
7228
+ tx: TransactionBlock,
7229
+ args: [groth16.PreparedVerifyingKey | TransactionArgument],
7230
+ ): TransactionArgument & [TransactionArgument] {
7231
+ const _args: any[] = [];
7232
+ _args.push(transactionArgumentOrPure(args[0], tx));
7233
+
7234
+ // @ts-ignore
7235
+ return tx.moveCall({
7236
+ target: "0x2::groth16::pvk_to_bytes",
7237
+ arguments: _args,
7238
+ });
7239
+ }
7240
+ export function verifyGroth16Proof(
7241
+ tx: TransactionBlock,
7242
+ args: [
7243
+ string | TransactionObjectArgument | TransactionArgument,
7244
+ string | TransactionObjectArgument | TransactionArgument,
7245
+ string | TransactionObjectArgument | TransactionArgument,
7246
+ string | TransactionObjectArgument | TransactionArgument,
7247
+ ],
7248
+ ): TransactionArgument &
7249
+ [
7250
+ TransactionArgument,
7251
+ TransactionArgument,
7252
+ TransactionArgument,
7253
+ TransactionArgument,
7254
+ ] {
7255
+ const _args: any[] = [];
7256
+ _args.push(transactionArgumentOrObject(args[0], tx));
7257
+ _args.push(transactionArgumentOrObject(args[1], tx));
7258
+ _args.push(transactionArgumentOrObject(args[2], tx));
7259
+ _args.push(transactionArgumentOrObject(args[3], tx));
7260
+
7261
+ // @ts-ignore
7262
+ return tx.moveCall({
7263
+ target: "0x2::groth16::verify_groth16_proof",
7264
+ arguments: _args,
7265
+ });
7266
+ }
7267
+ }
7268
+ export namespace view {
7269
+ export async function bls12381(
7270
+ client: SuiClient,
7271
+ args: [],
7272
+ ): Promise<TypedDevInspectResults<[groth16.Curve]>> {
7273
+ const tx = new TransactionBlock();
7274
+ builder.bls12381(tx, args);
7275
+ const inspectRes = await client.devInspectTransactionBlock({
7276
+ transactionBlock: tx,
7277
+ sender: ZERO_ADDRESS,
7278
+ });
7279
+
7280
+ return (await getMoveCoder(client)).decodeDevInspectResult<
7281
+ [groth16.Curve]
7282
+ >(inspectRes);
7283
+ }
7284
+ export async function bn254(
7285
+ client: SuiClient,
7286
+ args: [],
7287
+ ): Promise<TypedDevInspectResults<[groth16.Curve]>> {
7288
+ const tx = new TransactionBlock();
7289
+ builder.bn254(tx, args);
7290
+ const inspectRes = await client.devInspectTransactionBlock({
7291
+ transactionBlock: tx,
7292
+ sender: ZERO_ADDRESS,
7293
+ });
7294
+
7295
+ return (await getMoveCoder(client)).decodeDevInspectResult<
7296
+ [groth16.Curve]
7297
+ >(inspectRes);
7298
+ }
7299
+ export async function prepareVerifyingKey(
7300
+ client: SuiClient,
7301
+ args: [
7302
+ string | TransactionObjectArgument | TransactionArgument,
7303
+ string | TransactionObjectArgument | TransactionArgument,
7304
+ ],
7305
+ ): Promise<TypedDevInspectResults<[groth16.PreparedVerifyingKey]>> {
7306
+ const tx = new TransactionBlock();
7307
+ builder.prepareVerifyingKey(tx, args);
7308
+ const inspectRes = await client.devInspectTransactionBlock({
7309
+ transactionBlock: tx,
7310
+ sender: ZERO_ADDRESS,
7311
+ });
7312
+
7313
+ return (await getMoveCoder(client)).decodeDevInspectResult<
7314
+ [groth16.PreparedVerifyingKey]
7315
+ >(inspectRes);
7316
+ }
7317
+ export async function proofPointsFromBytes(
7318
+ client: SuiClient,
7319
+ args: [(string | TransactionObjectArgument)[] | TransactionArgument],
7320
+ ): Promise<TypedDevInspectResults<[groth16.ProofPoints]>> {
7321
+ const tx = new TransactionBlock();
7322
+ builder.proofPointsFromBytes(tx, args);
7323
+ const inspectRes = await client.devInspectTransactionBlock({
7324
+ transactionBlock: tx,
7325
+ sender: ZERO_ADDRESS,
7326
+ });
7327
+
7328
+ return (await getMoveCoder(client)).decodeDevInspectResult<
7329
+ [groth16.ProofPoints]
7330
+ >(inspectRes);
7331
+ }
7332
+ export async function publicProofInputsFromBytes(
7333
+ client: SuiClient,
7334
+ args: [(string | TransactionObjectArgument)[] | TransactionArgument],
7335
+ ): Promise<TypedDevInspectResults<[groth16.PublicProofInputs]>> {
7336
+ const tx = new TransactionBlock();
7337
+ builder.publicProofInputsFromBytes(tx, args);
7338
+ const inspectRes = await client.devInspectTransactionBlock({
7339
+ transactionBlock: tx,
7340
+ sender: ZERO_ADDRESS,
7341
+ });
7342
+
7343
+ return (await getMoveCoder(client)).decodeDevInspectResult<
7344
+ [groth16.PublicProofInputs]
7345
+ >(inspectRes);
7346
+ }
7347
+ export async function pvkFromBytes(
7348
+ client: SuiClient,
7349
+ args: [
7350
+ (string | TransactionObjectArgument)[] | TransactionArgument,
7351
+ (string | TransactionObjectArgument)[] | TransactionArgument,
7352
+ (string | TransactionObjectArgument)[] | TransactionArgument,
7353
+ (string | TransactionObjectArgument)[] | TransactionArgument,
7354
+ ],
7355
+ ): Promise<TypedDevInspectResults<[groth16.PreparedVerifyingKey]>> {
7356
+ const tx = new TransactionBlock();
7357
+ builder.pvkFromBytes(tx, args);
7358
+ const inspectRes = await client.devInspectTransactionBlock({
7359
+ transactionBlock: tx,
7360
+ sender: ZERO_ADDRESS,
7361
+ });
7362
+
7363
+ return (await getMoveCoder(client)).decodeDevInspectResult<
7364
+ [groth16.PreparedVerifyingKey]
7365
+ >(inspectRes);
7366
+ }
7367
+ export async function pvkToBytes(
7368
+ client: SuiClient,
7369
+ args: [groth16.PreparedVerifyingKey | TransactionArgument],
7370
+ ): Promise<TypedDevInspectResults<[number[][]]>> {
7371
+ const tx = new TransactionBlock();
7372
+ builder.pvkToBytes(tx, args);
7373
+ const inspectRes = await client.devInspectTransactionBlock({
7374
+ transactionBlock: tx,
7375
+ sender: ZERO_ADDRESS,
7376
+ });
7377
+
7378
+ return (await getMoveCoder(client)).decodeDevInspectResult<[number[][]]>(
7379
+ inspectRes,
7380
+ );
7381
+ }
7382
+ export async function verifyGroth16Proof(
7383
+ client: SuiClient,
7384
+ args: [
7385
+ string | TransactionObjectArgument | TransactionArgument,
7386
+ string | TransactionObjectArgument | TransactionArgument,
7387
+ string | TransactionObjectArgument | TransactionArgument,
7388
+ string | TransactionObjectArgument | TransactionArgument,
7389
+ ],
7390
+ ): Promise<TypedDevInspectResults<[Boolean]>> {
7391
+ const tx = new TransactionBlock();
7392
+ builder.verifyGroth16Proof(tx, args);
7393
+ const inspectRes = await client.devInspectTransactionBlock({
7394
+ transactionBlock: tx,
7395
+ sender: ZERO_ADDRESS,
7396
+ });
6595
7397
 
6596
- export interface ProofPointsInstance extends TypedEventInstance<ProofPoints> {
6597
- data_decoded: ProofPoints;
6598
- type_arguments: [];
7398
+ return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
7399
+ inspectRes,
7400
+ );
7401
+ }
6599
7402
  }
7403
+ }
6600
7404
 
6601
- export interface PublicProofInputs {
7405
+ export namespace group_ops {
7406
+ export interface Element<T0> {
6602
7407
  bytes: number[];
6603
7408
  }
6604
7409
 
6605
- export namespace PublicProofInputs {
6606
- export const TYPE_QNAME = "0x2::groth16::PublicProofInputs";
7410
+ export namespace Element {
7411
+ export const TYPE_QNAME = "0x2::group_ops::Element";
6607
7412
 
6608
- const TYPE = new TypeDescriptor<PublicProofInputs>(
6609
- PublicProofInputs.TYPE_QNAME,
6610
- );
7413
+ const TYPE = new TypeDescriptor<Element<any>>(Element.TYPE_QNAME);
6611
7414
 
6612
- export function type(): TypeDescriptor<PublicProofInputs> {
6613
- return TYPE.apply();
7415
+ export function type<T0>(
7416
+ arg0: TypeDescriptor<T0> = ANY_TYPE,
7417
+ ): TypeDescriptor<Element<T0>> {
7418
+ return TYPE.apply(arg0);
6614
7419
  }
6615
7420
  }
6616
7421
 
6617
- export interface PublicProofInputsInstance
6618
- extends TypedEventInstance<PublicProofInputs> {
6619
- data_decoded: PublicProofInputs;
6620
- type_arguments: [];
7422
+ export interface ElementInstance extends TypedEventInstance<Element<any>> {
7423
+ data_decoded: Element<any>;
7424
+ type_arguments: [string];
6621
7425
  }
6622
7426
 
6623
7427
  export namespace builder {
6624
- export function bls12381(
7428
+ export function add<T0 = any>(
6625
7429
  tx: TransactionBlock,
6626
- args: [],
6627
- ): TransactionArgument & [] {
7430
+ args: [
7431
+ number | TransactionArgument,
7432
+ string | TransactionObjectArgument | TransactionArgument,
7433
+ string | TransactionObjectArgument | TransactionArgument,
7434
+ ],
7435
+ typeArguments: [TypeDescriptor<T0> | string],
7436
+ ): TransactionArgument &
7437
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
6628
7438
  const _args: any[] = [];
7439
+ _args.push(transactionArgumentOrPure(args[0], tx));
7440
+ _args.push(transactionArgumentOrObject(args[1], tx));
7441
+ _args.push(transactionArgumentOrObject(args[2], tx));
6629
7442
 
6630
7443
  // @ts-ignore
6631
7444
  return tx.moveCall({
6632
- target: "0x2::groth16::bls12381",
7445
+ target: "0x2::group_ops::add",
6633
7446
  arguments: _args,
7447
+ typeArguments: [
7448
+ typeof typeArguments[0] === "string"
7449
+ ? typeArguments[0]
7450
+ : typeArguments[0].getSignature(),
7451
+ ],
6634
7452
  });
6635
7453
  }
6636
- export function bn254(
7454
+ export function bytes<T0 = any>(
6637
7455
  tx: TransactionBlock,
6638
- args: [],
6639
- ): TransactionArgument & [] {
7456
+ args: [string | TransactionObjectArgument | TransactionArgument],
7457
+ typeArguments: [TypeDescriptor<T0> | string],
7458
+ ): TransactionArgument & [TransactionArgument] {
6640
7459
  const _args: any[] = [];
7460
+ _args.push(transactionArgumentOrObject(args[0], tx));
6641
7461
 
6642
7462
  // @ts-ignore
6643
7463
  return tx.moveCall({
6644
- target: "0x2::groth16::bn254",
7464
+ target: "0x2::group_ops::bytes",
7465
+ arguments: _args,
7466
+ typeArguments: [
7467
+ typeof typeArguments[0] === "string"
7468
+ ? typeArguments[0]
7469
+ : typeArguments[0].getSignature(),
7470
+ ],
7471
+ });
7472
+ }
7473
+ export function div<T0 = any, T1 = any>(
7474
+ tx: TransactionBlock,
7475
+ args: [
7476
+ number | TransactionArgument,
7477
+ string | TransactionObjectArgument | TransactionArgument,
7478
+ string | TransactionObjectArgument | TransactionArgument,
7479
+ ],
7480
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7481
+ ): TransactionArgument &
7482
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
7483
+ const _args: any[] = [];
7484
+ _args.push(transactionArgumentOrPure(args[0], tx));
7485
+ _args.push(transactionArgumentOrObject(args[1], tx));
7486
+ _args.push(transactionArgumentOrObject(args[2], tx));
7487
+
7488
+ // @ts-ignore
7489
+ return tx.moveCall({
7490
+ target: "0x2::group_ops::div",
6645
7491
  arguments: _args,
7492
+ typeArguments: [
7493
+ typeof typeArguments[0] === "string"
7494
+ ? typeArguments[0]
7495
+ : typeArguments[0].getSignature(),
7496
+ typeof typeArguments[1] === "string"
7497
+ ? typeArguments[1]
7498
+ : typeArguments[1].getSignature(),
7499
+ ],
6646
7500
  });
6647
7501
  }
6648
- export function prepareVerifyingKey(
7502
+ export function equal<T0 = any>(
6649
7503
  tx: TransactionBlock,
6650
7504
  args: [
6651
7505
  string | TransactionObjectArgument | TransactionArgument,
6652
7506
  string | TransactionObjectArgument | TransactionArgument,
6653
7507
  ],
7508
+ typeArguments: [TypeDescriptor<T0> | string],
6654
7509
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6655
7510
  const _args: any[] = [];
6656
7511
  _args.push(transactionArgumentOrObject(args[0], tx));
@@ -6658,344 +7513,422 @@ export namespace groth16 {
6658
7513
 
6659
7514
  // @ts-ignore
6660
7515
  return tx.moveCall({
6661
- target: "0x2::groth16::prepare_verifying_key",
7516
+ target: "0x2::group_ops::equal",
6662
7517
  arguments: _args,
7518
+ typeArguments: [
7519
+ typeof typeArguments[0] === "string"
7520
+ ? typeArguments[0]
7521
+ : typeArguments[0].getSignature(),
7522
+ ],
6663
7523
  });
6664
7524
  }
6665
- export function proofPointsFromBytes(
7525
+ export function fromBytes<T0 = any>(
6666
7526
  tx: TransactionBlock,
6667
- args: [(string | TransactionObjectArgument)[] | TransactionArgument],
6668
- ): TransactionArgument & [TransactionArgument] {
7527
+ args: [
7528
+ number | TransactionArgument,
7529
+ string | TransactionObjectArgument | TransactionArgument,
7530
+ Boolean | TransactionArgument,
7531
+ ],
7532
+ typeArguments: [TypeDescriptor<T0> | string],
7533
+ ): TransactionArgument &
7534
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
6669
7535
  const _args: any[] = [];
6670
- _args.push(transactionArgumentOrVec(args[0], tx));
7536
+ _args.push(transactionArgumentOrPure(args[0], tx));
7537
+ _args.push(transactionArgumentOrObject(args[1], tx));
7538
+ _args.push(transactionArgumentOrPure(args[2], tx));
6671
7539
 
6672
7540
  // @ts-ignore
6673
7541
  return tx.moveCall({
6674
- target: "0x2::groth16::proof_points_from_bytes",
7542
+ target: "0x2::group_ops::from_bytes",
6675
7543
  arguments: _args,
7544
+ typeArguments: [
7545
+ typeof typeArguments[0] === "string"
7546
+ ? typeArguments[0]
7547
+ : typeArguments[0].getSignature(),
7548
+ ],
6676
7549
  });
6677
7550
  }
6678
- export function publicProofInputsFromBytes(
7551
+ export function hashTo<T0 = any>(
6679
7552
  tx: TransactionBlock,
6680
- args: [(string | TransactionObjectArgument)[] | TransactionArgument],
6681
- ): TransactionArgument & [TransactionArgument] {
7553
+ args: [
7554
+ number | TransactionArgument,
7555
+ string | TransactionObjectArgument | TransactionArgument,
7556
+ ],
7557
+ typeArguments: [TypeDescriptor<T0> | string],
7558
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6682
7559
  const _args: any[] = [];
6683
- _args.push(transactionArgumentOrVec(args[0], tx));
7560
+ _args.push(transactionArgumentOrPure(args[0], tx));
7561
+ _args.push(transactionArgumentOrObject(args[1], tx));
6684
7562
 
6685
7563
  // @ts-ignore
6686
7564
  return tx.moveCall({
6687
- target: "0x2::groth16::public_proof_inputs_from_bytes",
7565
+ target: "0x2::group_ops::hash_to",
6688
7566
  arguments: _args,
7567
+ typeArguments: [
7568
+ typeof typeArguments[0] === "string"
7569
+ ? typeArguments[0]
7570
+ : typeArguments[0].getSignature(),
7571
+ ],
6689
7572
  });
6690
7573
  }
6691
- export function pvkFromBytes(
7574
+ export function mul<T0 = any, T1 = any>(
6692
7575
  tx: TransactionBlock,
6693
7576
  args: [
6694
- (string | TransactionObjectArgument)[] | TransactionArgument,
6695
- (string | TransactionObjectArgument)[] | TransactionArgument,
6696
- (string | TransactionObjectArgument)[] | TransactionArgument,
6697
- (string | TransactionObjectArgument)[] | TransactionArgument,
7577
+ number | TransactionArgument,
7578
+ string | TransactionObjectArgument | TransactionArgument,
7579
+ string | TransactionObjectArgument | TransactionArgument,
6698
7580
  ],
7581
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
6699
7582
  ): TransactionArgument &
6700
- [
6701
- TransactionArgument,
6702
- TransactionArgument,
6703
- TransactionArgument,
6704
- TransactionArgument,
6705
- ] {
7583
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
6706
7584
  const _args: any[] = [];
6707
- _args.push(transactionArgumentOrVec(args[0], tx));
6708
- _args.push(transactionArgumentOrVec(args[1], tx));
6709
- _args.push(transactionArgumentOrVec(args[2], tx));
6710
- _args.push(transactionArgumentOrVec(args[3], tx));
7585
+ _args.push(transactionArgumentOrPure(args[0], tx));
7586
+ _args.push(transactionArgumentOrObject(args[1], tx));
7587
+ _args.push(transactionArgumentOrObject(args[2], tx));
6711
7588
 
6712
7589
  // @ts-ignore
6713
7590
  return tx.moveCall({
6714
- target: "0x2::groth16::pvk_from_bytes",
7591
+ target: "0x2::group_ops::mul",
6715
7592
  arguments: _args,
7593
+ typeArguments: [
7594
+ typeof typeArguments[0] === "string"
7595
+ ? typeArguments[0]
7596
+ : typeArguments[0].getSignature(),
7597
+ typeof typeArguments[1] === "string"
7598
+ ? typeArguments[1]
7599
+ : typeArguments[1].getSignature(),
7600
+ ],
6716
7601
  });
6717
7602
  }
6718
- export function pvkToBytes(
7603
+ export function multiScalarMultiplication<T0 = any, T1 = any>(
6719
7604
  tx: TransactionBlock,
6720
- args: [groth16.PreparedVerifyingKey | TransactionArgument],
6721
- ): TransactionArgument & [TransactionArgument] {
7605
+ args: [
7606
+ number | TransactionArgument,
7607
+ string | TransactionObjectArgument | TransactionArgument,
7608
+ string | TransactionObjectArgument | TransactionArgument,
7609
+ ],
7610
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7611
+ ): TransactionArgument &
7612
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
6722
7613
  const _args: any[] = [];
6723
7614
  _args.push(transactionArgumentOrPure(args[0], tx));
7615
+ _args.push(transactionArgumentOrObject(args[1], tx));
7616
+ _args.push(transactionArgumentOrObject(args[2], tx));
6724
7617
 
6725
7618
  // @ts-ignore
6726
7619
  return tx.moveCall({
6727
- target: "0x2::groth16::pvk_to_bytes",
7620
+ target: "0x2::group_ops::multi_scalar_multiplication",
6728
7621
  arguments: _args,
7622
+ typeArguments: [
7623
+ typeof typeArguments[0] === "string"
7624
+ ? typeArguments[0]
7625
+ : typeArguments[0].getSignature(),
7626
+ typeof typeArguments[1] === "string"
7627
+ ? typeArguments[1]
7628
+ : typeArguments[1].getSignature(),
7629
+ ],
6729
7630
  });
6730
7631
  }
6731
- export function verifyGroth16Proof(
7632
+ export function pairing<T0 = any, T1 = any, T2 = any>(
6732
7633
  tx: TransactionBlock,
6733
7634
  args: [
7635
+ number | TransactionArgument,
6734
7636
  string | TransactionObjectArgument | TransactionArgument,
6735
7637
  string | TransactionObjectArgument | TransactionArgument,
6736
- string | TransactionObjectArgument | TransactionArgument,
7638
+ ],
7639
+ typeArguments: [
7640
+ TypeDescriptor<T0> | string,
7641
+ TypeDescriptor<T1> | string,
7642
+ TypeDescriptor<T2> | string,
7643
+ ],
7644
+ ): TransactionArgument &
7645
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
7646
+ const _args: any[] = [];
7647
+ _args.push(transactionArgumentOrPure(args[0], tx));
7648
+ _args.push(transactionArgumentOrObject(args[1], tx));
7649
+ _args.push(transactionArgumentOrObject(args[2], tx));
7650
+
7651
+ // @ts-ignore
7652
+ return tx.moveCall({
7653
+ target: "0x2::group_ops::pairing",
7654
+ arguments: _args,
7655
+ typeArguments: [
7656
+ typeof typeArguments[0] === "string"
7657
+ ? typeArguments[0]
7658
+ : typeArguments[0].getSignature(),
7659
+ typeof typeArguments[1] === "string"
7660
+ ? typeArguments[1]
7661
+ : typeArguments[1].getSignature(),
7662
+ typeof typeArguments[2] === "string"
7663
+ ? typeArguments[2]
7664
+ : typeArguments[2].getSignature(),
7665
+ ],
7666
+ });
7667
+ }
7668
+ export function setAsPrefix(
7669
+ tx: TransactionBlock,
7670
+ args: [
7671
+ bigint | TransactionArgument,
7672
+ Boolean | TransactionArgument,
6737
7673
  string | TransactionObjectArgument | TransactionArgument,
6738
7674
  ],
6739
7675
  ): TransactionArgument &
6740
- [
6741
- TransactionArgument,
6742
- TransactionArgument,
6743
- TransactionArgument,
6744
- TransactionArgument,
6745
- ] {
7676
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
7677
+ const _args: any[] = [];
7678
+ _args.push(transactionArgumentOrPure(args[0], tx));
7679
+ _args.push(transactionArgumentOrPure(args[1], tx));
7680
+ _args.push(transactionArgumentOrObject(args[2], tx));
7681
+
7682
+ // @ts-ignore
7683
+ return tx.moveCall({
7684
+ target: "0x2::group_ops::set_as_prefix",
7685
+ arguments: _args,
7686
+ });
7687
+ }
7688
+ export function sub<T0 = any>(
7689
+ tx: TransactionBlock,
7690
+ args: [
7691
+ number | TransactionArgument,
7692
+ string | TransactionObjectArgument | TransactionArgument,
7693
+ string | TransactionObjectArgument | TransactionArgument,
7694
+ ],
7695
+ typeArguments: [TypeDescriptor<T0> | string],
7696
+ ): TransactionArgument &
7697
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
6746
7698
  const _args: any[] = [];
6747
- _args.push(transactionArgumentOrObject(args[0], tx));
7699
+ _args.push(transactionArgumentOrPure(args[0], tx));
6748
7700
  _args.push(transactionArgumentOrObject(args[1], tx));
6749
7701
  _args.push(transactionArgumentOrObject(args[2], tx));
6750
- _args.push(transactionArgumentOrObject(args[3], tx));
6751
7702
 
6752
7703
  // @ts-ignore
6753
7704
  return tx.moveCall({
6754
- target: "0x2::groth16::verify_groth16_proof",
7705
+ target: "0x2::group_ops::sub",
6755
7706
  arguments: _args,
7707
+ typeArguments: [
7708
+ typeof typeArguments[0] === "string"
7709
+ ? typeArguments[0]
7710
+ : typeArguments[0].getSignature(),
7711
+ ],
6756
7712
  });
6757
7713
  }
6758
7714
  }
6759
7715
  export namespace view {
6760
- export async function bls12381(
7716
+ export async function add<T0 = any>(
6761
7717
  client: SuiClient,
6762
- args: [],
6763
- ): Promise<TypedDevInspectResults<[groth16.Curve]>> {
7718
+ args: [
7719
+ number | TransactionArgument,
7720
+ string | TransactionObjectArgument | TransactionArgument,
7721
+ string | TransactionObjectArgument | TransactionArgument,
7722
+ ],
7723
+ typeArguments: [TypeDescriptor<T0> | string],
7724
+ ): Promise<TypedDevInspectResults<[group_ops.Element<T0>]>> {
6764
7725
  const tx = new TransactionBlock();
6765
- builder.bls12381(tx, args);
7726
+ builder.add(tx, args, typeArguments);
6766
7727
  const inspectRes = await client.devInspectTransactionBlock({
6767
7728
  transactionBlock: tx,
6768
7729
  sender: ZERO_ADDRESS,
6769
7730
  });
6770
7731
 
6771
7732
  return (await getMoveCoder(client)).decodeDevInspectResult<
6772
- [groth16.Curve]
7733
+ [group_ops.Element<T0>]
6773
7734
  >(inspectRes);
6774
7735
  }
6775
- export async function bn254(
7736
+ export async function bytes<T0 = any>(
6776
7737
  client: SuiClient,
6777
- args: [],
6778
- ): Promise<TypedDevInspectResults<[groth16.Curve]>> {
7738
+ args: [string | TransactionObjectArgument | TransactionArgument],
7739
+ typeArguments: [TypeDescriptor<T0> | string],
7740
+ ): Promise<TypedDevInspectResults<[string]>> {
6779
7741
  const tx = new TransactionBlock();
6780
- builder.bn254(tx, args);
7742
+ builder.bytes(tx, args, typeArguments);
6781
7743
  const inspectRes = await client.devInspectTransactionBlock({
6782
7744
  transactionBlock: tx,
6783
7745
  sender: ZERO_ADDRESS,
6784
7746
  });
6785
7747
 
6786
- return (await getMoveCoder(client)).decodeDevInspectResult<
6787
- [groth16.Curve]
6788
- >(inspectRes);
7748
+ return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
7749
+ inspectRes,
7750
+ );
6789
7751
  }
6790
- export async function prepareVerifyingKey(
7752
+ export async function div<T0 = any, T1 = any>(
6791
7753
  client: SuiClient,
6792
7754
  args: [
7755
+ number | TransactionArgument,
6793
7756
  string | TransactionObjectArgument | TransactionArgument,
6794
7757
  string | TransactionObjectArgument | TransactionArgument,
6795
7758
  ],
6796
- ): Promise<TypedDevInspectResults<[groth16.PreparedVerifyingKey]>> {
7759
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7760
+ ): Promise<TypedDevInspectResults<[group_ops.Element<T1>]>> {
6797
7761
  const tx = new TransactionBlock();
6798
- builder.prepareVerifyingKey(tx, args);
7762
+ builder.div(tx, args, typeArguments);
6799
7763
  const inspectRes = await client.devInspectTransactionBlock({
6800
7764
  transactionBlock: tx,
6801
7765
  sender: ZERO_ADDRESS,
6802
7766
  });
6803
7767
 
6804
7768
  return (await getMoveCoder(client)).decodeDevInspectResult<
6805
- [groth16.PreparedVerifyingKey]
7769
+ [group_ops.Element<T1>]
6806
7770
  >(inspectRes);
6807
7771
  }
6808
- export async function proofPointsFromBytes(
7772
+ export async function equal<T0 = any>(
6809
7773
  client: SuiClient,
6810
- args: [(string | TransactionObjectArgument)[] | TransactionArgument],
6811
- ): Promise<TypedDevInspectResults<[groth16.ProofPoints]>> {
7774
+ args: [
7775
+ string | TransactionObjectArgument | TransactionArgument,
7776
+ string | TransactionObjectArgument | TransactionArgument,
7777
+ ],
7778
+ typeArguments: [TypeDescriptor<T0> | string],
7779
+ ): Promise<TypedDevInspectResults<[Boolean]>> {
6812
7780
  const tx = new TransactionBlock();
6813
- builder.proofPointsFromBytes(tx, args);
7781
+ builder.equal(tx, args, typeArguments);
6814
7782
  const inspectRes = await client.devInspectTransactionBlock({
6815
7783
  transactionBlock: tx,
6816
7784
  sender: ZERO_ADDRESS,
6817
7785
  });
6818
7786
 
6819
- return (await getMoveCoder(client)).decodeDevInspectResult<
6820
- [groth16.ProofPoints]
6821
- >(inspectRes);
7787
+ return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
7788
+ inspectRes,
7789
+ );
6822
7790
  }
6823
- export async function publicProofInputsFromBytes(
7791
+ export async function fromBytes<T0 = any>(
6824
7792
  client: SuiClient,
6825
- args: [(string | TransactionObjectArgument)[] | TransactionArgument],
6826
- ): Promise<TypedDevInspectResults<[groth16.PublicProofInputs]>> {
7793
+ args: [
7794
+ number | TransactionArgument,
7795
+ string | TransactionObjectArgument | TransactionArgument,
7796
+ Boolean | TransactionArgument,
7797
+ ],
7798
+ typeArguments: [TypeDescriptor<T0> | string],
7799
+ ): Promise<TypedDevInspectResults<[group_ops.Element<T0>]>> {
6827
7800
  const tx = new TransactionBlock();
6828
- builder.publicProofInputsFromBytes(tx, args);
7801
+ builder.fromBytes(tx, args, typeArguments);
6829
7802
  const inspectRes = await client.devInspectTransactionBlock({
6830
7803
  transactionBlock: tx,
6831
7804
  sender: ZERO_ADDRESS,
6832
7805
  });
6833
7806
 
6834
7807
  return (await getMoveCoder(client)).decodeDevInspectResult<
6835
- [groth16.PublicProofInputs]
7808
+ [group_ops.Element<T0>]
6836
7809
  >(inspectRes);
6837
7810
  }
6838
- export async function pvkFromBytes(
7811
+ export async function hashTo<T0 = any>(
6839
7812
  client: SuiClient,
6840
7813
  args: [
6841
- (string | TransactionObjectArgument)[] | TransactionArgument,
6842
- (string | TransactionObjectArgument)[] | TransactionArgument,
6843
- (string | TransactionObjectArgument)[] | TransactionArgument,
6844
- (string | TransactionObjectArgument)[] | TransactionArgument,
7814
+ number | TransactionArgument,
7815
+ string | TransactionObjectArgument | TransactionArgument,
6845
7816
  ],
6846
- ): Promise<TypedDevInspectResults<[groth16.PreparedVerifyingKey]>> {
7817
+ typeArguments: [TypeDescriptor<T0> | string],
7818
+ ): Promise<TypedDevInspectResults<[group_ops.Element<T0>]>> {
6847
7819
  const tx = new TransactionBlock();
6848
- builder.pvkFromBytes(tx, args);
7820
+ builder.hashTo(tx, args, typeArguments);
6849
7821
  const inspectRes = await client.devInspectTransactionBlock({
6850
7822
  transactionBlock: tx,
6851
7823
  sender: ZERO_ADDRESS,
6852
7824
  });
6853
7825
 
6854
7826
  return (await getMoveCoder(client)).decodeDevInspectResult<
6855
- [groth16.PreparedVerifyingKey]
7827
+ [group_ops.Element<T0>]
6856
7828
  >(inspectRes);
6857
7829
  }
6858
- export async function pvkToBytes(
7830
+ export async function mul<T0 = any, T1 = any>(
6859
7831
  client: SuiClient,
6860
- args: [groth16.PreparedVerifyingKey | TransactionArgument],
6861
- ): Promise<TypedDevInspectResults<[number[][]]>> {
7832
+ args: [
7833
+ number | TransactionArgument,
7834
+ string | TransactionObjectArgument | TransactionArgument,
7835
+ string | TransactionObjectArgument | TransactionArgument,
7836
+ ],
7837
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7838
+ ): Promise<TypedDevInspectResults<[group_ops.Element<T1>]>> {
6862
7839
  const tx = new TransactionBlock();
6863
- builder.pvkToBytes(tx, args);
7840
+ builder.mul(tx, args, typeArguments);
6864
7841
  const inspectRes = await client.devInspectTransactionBlock({
6865
7842
  transactionBlock: tx,
6866
7843
  sender: ZERO_ADDRESS,
6867
7844
  });
6868
7845
 
6869
- return (await getMoveCoder(client)).decodeDevInspectResult<[number[][]]>(
6870
- inspectRes,
6871
- );
7846
+ return (await getMoveCoder(client)).decodeDevInspectResult<
7847
+ [group_ops.Element<T1>]
7848
+ >(inspectRes);
6872
7849
  }
6873
- export async function verifyGroth16Proof(
7850
+ export async function multiScalarMultiplication<T0 = any, T1 = any>(
6874
7851
  client: SuiClient,
6875
7852
  args: [
6876
- string | TransactionObjectArgument | TransactionArgument,
6877
- string | TransactionObjectArgument | TransactionArgument,
7853
+ number | TransactionArgument,
6878
7854
  string | TransactionObjectArgument | TransactionArgument,
6879
7855
  string | TransactionObjectArgument | TransactionArgument,
6880
7856
  ],
6881
- ): Promise<TypedDevInspectResults<[Boolean]>> {
7857
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7858
+ ): Promise<TypedDevInspectResults<[group_ops.Element<T1>]>> {
6882
7859
  const tx = new TransactionBlock();
6883
- builder.verifyGroth16Proof(tx, args);
7860
+ builder.multiScalarMultiplication(tx, args, typeArguments);
6884
7861
  const inspectRes = await client.devInspectTransactionBlock({
6885
7862
  transactionBlock: tx,
6886
7863
  sender: ZERO_ADDRESS,
6887
7864
  });
6888
7865
 
6889
- return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
6890
- inspectRes,
6891
- );
6892
- }
6893
- }
6894
- }
6895
-
6896
- export namespace group_ops {
6897
- export interface Element<T0> {
6898
- bytes: number[];
6899
- }
6900
-
6901
- export namespace Element {
6902
- export const TYPE_QNAME = "0x2::group_ops::Element";
6903
-
6904
- const TYPE = new TypeDescriptor<Element<any>>(Element.TYPE_QNAME);
6905
-
6906
- export function type<T0>(
6907
- arg0: TypeDescriptor<T0> = ANY_TYPE,
6908
- ): TypeDescriptor<Element<T0>> {
6909
- return TYPE.apply(arg0);
6910
- }
6911
- }
6912
-
6913
- export interface ElementInstance extends TypedEventInstance<Element<any>> {
6914
- data_decoded: Element<any>;
6915
- type_arguments: [string];
6916
- }
6917
-
6918
- export namespace builder {
6919
- export function bytes<T0 = any>(
6920
- tx: TransactionBlock,
6921
- args: [string | TransactionObjectArgument | TransactionArgument],
6922
- typeArguments: [TypeDescriptor<T0> | string],
6923
- ): TransactionArgument & [TransactionArgument] {
6924
- const _args: any[] = [];
6925
- _args.push(transactionArgumentOrObject(args[0], tx));
6926
-
6927
- // @ts-ignore
6928
- return tx.moveCall({
6929
- target: "0x2::group_ops::bytes",
6930
- arguments: _args,
6931
- typeArguments: [
6932
- typeof typeArguments[0] === "string"
6933
- ? typeArguments[0]
6934
- : typeArguments[0].getSignature(),
6935
- ],
6936
- });
7866
+ return (await getMoveCoder(client)).decodeDevInspectResult<
7867
+ [group_ops.Element<T1>]
7868
+ >(inspectRes);
6937
7869
  }
6938
-
6939
- export function equal<T0 = any>(
6940
- tx: TransactionBlock,
7870
+ export async function pairing<T0 = any, T1 = any, T2 = any>(
7871
+ client: SuiClient,
6941
7872
  args: [
7873
+ number | TransactionArgument,
6942
7874
  string | TransactionObjectArgument | TransactionArgument,
6943
7875
  string | TransactionObjectArgument | TransactionArgument,
6944
7876
  ],
6945
- typeArguments: [TypeDescriptor<T0> | string],
6946
- ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6947
- const _args: any[] = [];
6948
- _args.push(transactionArgumentOrObject(args[0], tx));
6949
- _args.push(transactionArgumentOrObject(args[1], tx));
6950
-
6951
- // @ts-ignore
6952
- return tx.moveCall({
6953
- target: "0x2::group_ops::equal",
6954
- arguments: _args,
6955
- typeArguments: [
6956
- typeof typeArguments[0] === "string"
6957
- ? typeArguments[0]
6958
- : typeArguments[0].getSignature(),
6959
- ],
7877
+ typeArguments: [
7878
+ TypeDescriptor<T0> | string,
7879
+ TypeDescriptor<T1> | string,
7880
+ TypeDescriptor<T2> | string,
7881
+ ],
7882
+ ): Promise<TypedDevInspectResults<[group_ops.Element<T2>]>> {
7883
+ const tx = new TransactionBlock();
7884
+ builder.pairing(tx, args, typeArguments);
7885
+ const inspectRes = await client.devInspectTransactionBlock({
7886
+ transactionBlock: tx,
7887
+ sender: ZERO_ADDRESS,
6960
7888
  });
7889
+
7890
+ return (await getMoveCoder(client)).decodeDevInspectResult<
7891
+ [group_ops.Element<T2>]
7892
+ >(inspectRes);
6961
7893
  }
6962
- }
6963
- export namespace view {
6964
- export async function bytes<T0 = any>(
7894
+ export async function setAsPrefix(
6965
7895
  client: SuiClient,
6966
- args: [string | TransactionObjectArgument | TransactionArgument],
6967
- typeArguments: [TypeDescriptor<T0> | string],
6968
- ): Promise<TypedDevInspectResults<[string]>> {
7896
+ args: [
7897
+ bigint | TransactionArgument,
7898
+ Boolean | TransactionArgument,
7899
+ string | TransactionObjectArgument | TransactionArgument,
7900
+ ],
7901
+ ): Promise<TypedDevInspectResults<[]>> {
6969
7902
  const tx = new TransactionBlock();
6970
- builder.bytes(tx, args, typeArguments);
7903
+ builder.setAsPrefix(tx, args);
6971
7904
  const inspectRes = await client.devInspectTransactionBlock({
6972
7905
  transactionBlock: tx,
6973
7906
  sender: ZERO_ADDRESS,
6974
7907
  });
6975
7908
 
6976
- return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
7909
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
6977
7910
  inspectRes,
6978
7911
  );
6979
7912
  }
6980
-
6981
- export async function equal<T0 = any>(
7913
+ export async function sub<T0 = any>(
6982
7914
  client: SuiClient,
6983
7915
  args: [
7916
+ number | TransactionArgument,
6984
7917
  string | TransactionObjectArgument | TransactionArgument,
6985
7918
  string | TransactionObjectArgument | TransactionArgument,
6986
7919
  ],
6987
7920
  typeArguments: [TypeDescriptor<T0> | string],
6988
- ): Promise<TypedDevInspectResults<[Boolean]>> {
7921
+ ): Promise<TypedDevInspectResults<[group_ops.Element<T0>]>> {
6989
7922
  const tx = new TransactionBlock();
6990
- builder.equal(tx, args, typeArguments);
7923
+ builder.sub(tx, args, typeArguments);
6991
7924
  const inspectRes = await client.devInspectTransactionBlock({
6992
7925
  transactionBlock: tx,
6993
7926
  sender: ZERO_ADDRESS,
6994
7927
  });
6995
7928
 
6996
- return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
6997
- inspectRes,
6998
- );
7929
+ return (await getMoveCoder(client)).decodeDevInspectResult<
7930
+ [group_ops.Element<T0>]
7931
+ >(inspectRes);
6999
7932
  }
7000
7933
  }
7001
7934
  }
@@ -7734,7 +8667,29 @@ export namespace kiosk {
7734
8667
  ],
7735
8668
  });
7736
8669
  }
8670
+ export function lockInternal<T0 = any>(
8671
+ tx: TransactionBlock,
8672
+ args: [
8673
+ string | TransactionObjectArgument | TransactionArgument,
8674
+ T0 | TransactionArgument,
8675
+ ],
8676
+ typeArguments: [TypeDescriptor<T0> | string],
8677
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
8678
+ const _args: any[] = [];
8679
+ _args.push(transactionArgumentOrObject(args[0], tx));
8680
+ _args.push(transactionArgumentOrPure(args[1], tx));
7737
8681
 
8682
+ // @ts-ignore
8683
+ return tx.moveCall({
8684
+ target: "0x2::kiosk::lock_internal",
8685
+ arguments: _args,
8686
+ typeArguments: [
8687
+ typeof typeArguments[0] === "string"
8688
+ ? typeArguments[0]
8689
+ : typeArguments[0].getSignature(),
8690
+ ],
8691
+ });
8692
+ }
7738
8693
  export function new_(
7739
8694
  tx: TransactionBlock,
7740
8695
  args: [],
@@ -7819,7 +8774,29 @@ export namespace kiosk {
7819
8774
  ],
7820
8775
  });
7821
8776
  }
8777
+ export function placeInternal<T0 = any>(
8778
+ tx: TransactionBlock,
8779
+ args: [
8780
+ string | TransactionObjectArgument | TransactionArgument,
8781
+ T0 | TransactionArgument,
8782
+ ],
8783
+ typeArguments: [TypeDescriptor<T0> | string],
8784
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
8785
+ const _args: any[] = [];
8786
+ _args.push(transactionArgumentOrObject(args[0], tx));
8787
+ _args.push(transactionArgumentOrPure(args[1], tx));
7822
8788
 
8789
+ // @ts-ignore
8790
+ return tx.moveCall({
8791
+ target: "0x2::kiosk::place_internal",
8792
+ arguments: _args,
8793
+ typeArguments: [
8794
+ typeof typeArguments[0] === "string"
8795
+ ? typeArguments[0]
8796
+ : typeArguments[0].getSignature(),
8797
+ ],
8798
+ });
8799
+ }
7823
8800
  export function profitsAmount(
7824
8801
  tx: TransactionBlock,
7825
8802
  args: [string | TransactionObjectArgument | TransactionArgument],
@@ -8134,7 +9111,19 @@ export namespace kiosk {
8134
9111
  arguments: _args,
8135
9112
  });
8136
9113
  }
9114
+ export function uidMutInternal(
9115
+ tx: TransactionBlock,
9116
+ args: [string | TransactionObjectArgument | TransactionArgument],
9117
+ ): TransactionArgument & [TransactionArgument] {
9118
+ const _args: any[] = [];
9119
+ _args.push(transactionArgumentOrObject(args[0], tx));
8137
9120
 
9121
+ // @ts-ignore
9122
+ return tx.moveCall({
9123
+ target: "0x2::kiosk::uid_mut_internal",
9124
+ arguments: _args,
9125
+ });
9126
+ }
8138
9127
  export function withdraw(
8139
9128
  tx: TransactionBlock,
8140
9129
  args: [
@@ -8458,7 +9447,25 @@ export namespace kiosk {
8458
9447
  inspectRes,
8459
9448
  );
8460
9449
  }
9450
+ export async function lockInternal<T0 = any>(
9451
+ client: SuiClient,
9452
+ args: [
9453
+ string | TransactionObjectArgument | TransactionArgument,
9454
+ T0 | TransactionArgument,
9455
+ ],
9456
+ typeArguments: [TypeDescriptor<T0> | string],
9457
+ ): Promise<TypedDevInspectResults<[]>> {
9458
+ const tx = new TransactionBlock();
9459
+ builder.lockInternal(tx, args, typeArguments);
9460
+ const inspectRes = await client.devInspectTransactionBlock({
9461
+ transactionBlock: tx,
9462
+ sender: ZERO_ADDRESS,
9463
+ });
8461
9464
 
9465
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
9466
+ inspectRes,
9467
+ );
9468
+ }
8462
9469
  export async function new_(
8463
9470
  client: SuiClient,
8464
9471
  args: [],
@@ -8530,7 +9537,25 @@ export namespace kiosk {
8530
9537
  inspectRes,
8531
9538
  );
8532
9539
  }
9540
+ export async function placeInternal<T0 = any>(
9541
+ client: SuiClient,
9542
+ args: [
9543
+ string | TransactionObjectArgument | TransactionArgument,
9544
+ T0 | TransactionArgument,
9545
+ ],
9546
+ typeArguments: [TypeDescriptor<T0> | string],
9547
+ ): Promise<TypedDevInspectResults<[]>> {
9548
+ const tx = new TransactionBlock();
9549
+ builder.placeInternal(tx, args, typeArguments);
9550
+ const inspectRes = await client.devInspectTransactionBlock({
9551
+ transactionBlock: tx,
9552
+ sender: ZERO_ADDRESS,
9553
+ });
8533
9554
 
9555
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
9556
+ inspectRes,
9557
+ );
9558
+ }
8534
9559
  export async function profitsAmount(
8535
9560
  client: SuiClient,
8536
9561
  args: [string | TransactionObjectArgument | TransactionArgument],
@@ -8819,7 +9844,21 @@ export namespace kiosk {
8819
9844
  inspectRes,
8820
9845
  );
8821
9846
  }
9847
+ export async function uidMutInternal(
9848
+ client: SuiClient,
9849
+ args: [string | TransactionObjectArgument | TransactionArgument],
9850
+ ): Promise<TypedDevInspectResults<[string]>> {
9851
+ const tx = new TransactionBlock();
9852
+ builder.uidMutInternal(tx, args);
9853
+ const inspectRes = await client.devInspectTransactionBlock({
9854
+ transactionBlock: tx,
9855
+ sender: ZERO_ADDRESS,
9856
+ });
8822
9857
 
9858
+ return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
9859
+ inspectRes,
9860
+ );
9861
+ }
8823
9862
  export async function withdraw(
8824
9863
  client: SuiClient,
8825
9864
  args: [
@@ -10397,6 +11436,18 @@ export namespace object_ {
10397
11436
  }
10398
11437
 
10399
11438
  export namespace builder {
11439
+ export function authenticatorState(
11440
+ tx: TransactionBlock,
11441
+ args: [],
11442
+ ): TransactionArgument & [] {
11443
+ const _args: any[] = [];
11444
+
11445
+ // @ts-ignore
11446
+ return tx.moveCall({
11447
+ target: "0x2::object::authenticator_state",
11448
+ arguments: _args,
11449
+ });
11450
+ }
10400
11451
  export function borrowId<T0 = any>(
10401
11452
  tx: TransactionBlock,
10402
11453
  args: [string | TransactionObjectArgument | TransactionArgument],
@@ -10416,7 +11467,18 @@ export namespace object_ {
10416
11467
  ],
10417
11468
  });
10418
11469
  }
11470
+ export function clock(
11471
+ tx: TransactionBlock,
11472
+ args: [],
11473
+ ): TransactionArgument & [] {
11474
+ const _args: any[] = [];
10419
11475
 
11476
+ // @ts-ignore
11477
+ return tx.moveCall({
11478
+ target: "0x2::object::clock",
11479
+ arguments: _args,
11480
+ });
11481
+ }
10420
11482
  export function delete_(
10421
11483
  tx: TransactionBlock,
10422
11484
  args: [object_.UID | TransactionArgument],
@@ -10551,7 +11613,43 @@ export namespace object_ {
10551
11613
  arguments: _args,
10552
11614
  });
10553
11615
  }
11616
+ export function newUidFromHash(
11617
+ tx: TransactionBlock,
11618
+ args: [string | TransactionArgument],
11619
+ ): TransactionArgument & [TransactionArgument] {
11620
+ const _args: any[] = [];
11621
+ _args.push(transactionArgumentOrPure(args[0], tx));
11622
+
11623
+ // @ts-ignore
11624
+ return tx.moveCall({
11625
+ target: "0x2::object::new_uid_from_hash",
11626
+ arguments: _args,
11627
+ });
11628
+ }
11629
+ export function randomnessState(
11630
+ tx: TransactionBlock,
11631
+ args: [],
11632
+ ): TransactionArgument & [] {
11633
+ const _args: any[] = [];
11634
+
11635
+ // @ts-ignore
11636
+ return tx.moveCall({
11637
+ target: "0x2::object::randomness_state",
11638
+ arguments: _args,
11639
+ });
11640
+ }
11641
+ export function suiDenyListObjectId(
11642
+ tx: TransactionBlock,
11643
+ args: [],
11644
+ ): TransactionArgument & [] {
11645
+ const _args: any[] = [];
10554
11646
 
11647
+ // @ts-ignore
11648
+ return tx.moveCall({
11649
+ target: "0x2::object::sui_deny_list_object_id",
11650
+ arguments: _args,
11651
+ });
11652
+ }
10555
11653
  export function uidAsInner(
10556
11654
  tx: TransactionBlock,
10557
11655
  args: [string | TransactionObjectArgument | TransactionArgument],
@@ -10606,6 +11704,21 @@ export namespace object_ {
10606
11704
  }
10607
11705
  }
10608
11706
  export namespace view {
11707
+ export async function authenticatorState(
11708
+ client: SuiClient,
11709
+ args: [],
11710
+ ): Promise<TypedDevInspectResults<[object_.UID]>> {
11711
+ const tx = new TransactionBlock();
11712
+ builder.authenticatorState(tx, args);
11713
+ const inspectRes = await client.devInspectTransactionBlock({
11714
+ transactionBlock: tx,
11715
+ sender: ZERO_ADDRESS,
11716
+ });
11717
+
11718
+ return (await getMoveCoder(client)).decodeDevInspectResult<[object_.UID]>(
11719
+ inspectRes,
11720
+ );
11721
+ }
10609
11722
  export async function borrowId<T0 = any>(
10610
11723
  client: SuiClient,
10611
11724
  args: [string | TransactionObjectArgument | TransactionArgument],
@@ -10622,7 +11735,21 @@ export namespace object_ {
10622
11735
  inspectRes,
10623
11736
  );
10624
11737
  }
11738
+ export async function clock(
11739
+ client: SuiClient,
11740
+ args: [],
11741
+ ): Promise<TypedDevInspectResults<[object_.UID]>> {
11742
+ const tx = new TransactionBlock();
11743
+ builder.clock(tx, args);
11744
+ const inspectRes = await client.devInspectTransactionBlock({
11745
+ transactionBlock: tx,
11746
+ sender: ZERO_ADDRESS,
11747
+ });
10625
11748
 
11749
+ return (await getMoveCoder(client)).decodeDevInspectResult<[object_.UID]>(
11750
+ inspectRes,
11751
+ );
11752
+ }
10626
11753
  export async function delete_(
10627
11754
  client: SuiClient,
10628
11755
  args: [object_.UID | TransactionArgument],
@@ -10761,7 +11888,51 @@ export namespace object_ {
10761
11888
  inspectRes,
10762
11889
  );
10763
11890
  }
11891
+ export async function newUidFromHash(
11892
+ client: SuiClient,
11893
+ args: [string | TransactionArgument],
11894
+ ): Promise<TypedDevInspectResults<[object_.UID]>> {
11895
+ const tx = new TransactionBlock();
11896
+ builder.newUidFromHash(tx, args);
11897
+ const inspectRes = await client.devInspectTransactionBlock({
11898
+ transactionBlock: tx,
11899
+ sender: ZERO_ADDRESS,
11900
+ });
11901
+
11902
+ return (await getMoveCoder(client)).decodeDevInspectResult<[object_.UID]>(
11903
+ inspectRes,
11904
+ );
11905
+ }
11906
+ export async function randomnessState(
11907
+ client: SuiClient,
11908
+ args: [],
11909
+ ): Promise<TypedDevInspectResults<[object_.UID]>> {
11910
+ const tx = new TransactionBlock();
11911
+ builder.randomnessState(tx, args);
11912
+ const inspectRes = await client.devInspectTransactionBlock({
11913
+ transactionBlock: tx,
11914
+ sender: ZERO_ADDRESS,
11915
+ });
11916
+
11917
+ return (await getMoveCoder(client)).decodeDevInspectResult<[object_.UID]>(
11918
+ inspectRes,
11919
+ );
11920
+ }
11921
+ export async function suiDenyListObjectId(
11922
+ client: SuiClient,
11923
+ args: [],
11924
+ ): Promise<TypedDevInspectResults<[object_.UID]>> {
11925
+ const tx = new TransactionBlock();
11926
+ builder.suiDenyListObjectId(tx, args);
11927
+ const inspectRes = await client.devInspectTransactionBlock({
11928
+ transactionBlock: tx,
11929
+ sender: ZERO_ADDRESS,
11930
+ });
10764
11931
 
11932
+ return (await getMoveCoder(client)).decodeDevInspectResult<[object_.UID]>(
11933
+ inspectRes,
11934
+ );
11935
+ }
10765
11936
  export async function uidAsInner(
10766
11937
  client: SuiClient,
10767
11938
  args: [string | TransactionObjectArgument | TransactionArgument],
@@ -16647,7 +17818,25 @@ export namespace transfer {
16647
17818
  ],
16648
17819
  });
16649
17820
  }
17821
+ export function freezeObjectImpl<T0 = any>(
17822
+ tx: TransactionBlock,
17823
+ args: [T0 | TransactionArgument],
17824
+ typeArguments: [TypeDescriptor<T0> | string],
17825
+ ): TransactionArgument & [TransactionArgument] {
17826
+ const _args: any[] = [];
17827
+ _args.push(transactionArgumentOrPure(args[0], tx));
16650
17828
 
17829
+ // @ts-ignore
17830
+ return tx.moveCall({
17831
+ target: "0x2::transfer::freeze_object_impl",
17832
+ arguments: _args,
17833
+ typeArguments: [
17834
+ typeof typeArguments[0] === "string"
17835
+ ? typeArguments[0]
17836
+ : typeArguments[0].getSignature(),
17837
+ ],
17838
+ });
17839
+ }
16651
17840
  export function publicFreezeObject<T0 = any>(
16652
17841
  tx: TransactionBlock,
16653
17842
  args: [T0 | TransactionArgument],
@@ -16790,7 +17979,25 @@ export namespace transfer {
16790
17979
  ],
16791
17980
  });
16792
17981
  }
17982
+ export function shareObjectImpl<T0 = any>(
17983
+ tx: TransactionBlock,
17984
+ args: [T0 | TransactionArgument],
17985
+ typeArguments: [TypeDescriptor<T0> | string],
17986
+ ): TransactionArgument & [TransactionArgument] {
17987
+ const _args: any[] = [];
17988
+ _args.push(transactionArgumentOrPure(args[0], tx));
16793
17989
 
17990
+ // @ts-ignore
17991
+ return tx.moveCall({
17992
+ target: "0x2::transfer::share_object_impl",
17993
+ arguments: _args,
17994
+ typeArguments: [
17995
+ typeof typeArguments[0] === "string"
17996
+ ? typeArguments[0]
17997
+ : typeArguments[0].getSignature(),
17998
+ ],
17999
+ });
18000
+ }
16794
18001
  export function transfer<T0 = any>(
16795
18002
  tx: TransactionBlock,
16796
18003
  args: [T0 | TransactionArgument, string | TransactionArgument],
@@ -16811,6 +18018,26 @@ export namespace transfer {
16811
18018
  ],
16812
18019
  });
16813
18020
  }
18021
+ export function transferImpl<T0 = any>(
18022
+ tx: TransactionBlock,
18023
+ args: [T0 | TransactionArgument, string | TransactionArgument],
18024
+ typeArguments: [TypeDescriptor<T0> | string],
18025
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
18026
+ const _args: any[] = [];
18027
+ _args.push(transactionArgumentOrPure(args[0], tx));
18028
+ _args.push(transactionArgumentOrPure(args[1], tx));
18029
+
18030
+ // @ts-ignore
18031
+ return tx.moveCall({
18032
+ target: "0x2::transfer::transfer_impl",
18033
+ arguments: _args,
18034
+ typeArguments: [
18035
+ typeof typeArguments[0] === "string"
18036
+ ? typeArguments[0]
18037
+ : typeArguments[0].getSignature(),
18038
+ ],
18039
+ });
18040
+ }
16814
18041
  }
16815
18042
  export namespace view {
16816
18043
  export async function freezeObject<T0 = any>(
@@ -16829,7 +18056,22 @@ export namespace transfer {
16829
18056
  inspectRes,
16830
18057
  );
16831
18058
  }
18059
+ export async function freezeObjectImpl<T0 = any>(
18060
+ client: SuiClient,
18061
+ args: [T0 | TransactionArgument],
18062
+ typeArguments: [TypeDescriptor<T0> | string],
18063
+ ): Promise<TypedDevInspectResults<[]>> {
18064
+ const tx = new TransactionBlock();
18065
+ builder.freezeObjectImpl(tx, args, typeArguments);
18066
+ const inspectRes = await client.devInspectTransactionBlock({
18067
+ transactionBlock: tx,
18068
+ sender: ZERO_ADDRESS,
18069
+ });
16832
18070
 
18071
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
18072
+ inspectRes,
18073
+ );
18074
+ }
16833
18075
  export async function publicFreezeObject<T0 = any>(
16834
18076
  client: SuiClient,
16835
18077
  args: [T0 | TransactionArgument],
@@ -16948,7 +18190,22 @@ export namespace transfer {
16948
18190
  inspectRes,
16949
18191
  );
16950
18192
  }
18193
+ export async function shareObjectImpl<T0 = any>(
18194
+ client: SuiClient,
18195
+ args: [T0 | TransactionArgument],
18196
+ typeArguments: [TypeDescriptor<T0> | string],
18197
+ ): Promise<TypedDevInspectResults<[]>> {
18198
+ const tx = new TransactionBlock();
18199
+ builder.shareObjectImpl(tx, args, typeArguments);
18200
+ const inspectRes = await client.devInspectTransactionBlock({
18201
+ transactionBlock: tx,
18202
+ sender: ZERO_ADDRESS,
18203
+ });
16951
18204
 
18205
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
18206
+ inspectRes,
18207
+ );
18208
+ }
16952
18209
  export async function transfer<T0 = any>(
16953
18210
  client: SuiClient,
16954
18211
  args: [T0 | TransactionArgument, string | TransactionArgument],
@@ -16961,6 +18218,22 @@ export namespace transfer {
16961
18218
  sender: ZERO_ADDRESS,
16962
18219
  });
16963
18220
 
18221
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
18222
+ inspectRes,
18223
+ );
18224
+ }
18225
+ export async function transferImpl<T0 = any>(
18226
+ client: SuiClient,
18227
+ args: [T0 | TransactionArgument, string | TransactionArgument],
18228
+ typeArguments: [TypeDescriptor<T0> | string],
18229
+ ): Promise<TypedDevInspectResults<[]>> {
18230
+ const tx = new TransactionBlock();
18231
+ builder.transferImpl(tx, args, typeArguments);
18232
+ const inspectRes = await client.devInspectTransactionBlock({
18233
+ transactionBlock: tx,
18234
+ sender: ZERO_ADDRESS,
18235
+ });
18236
+
16964
18237
  return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
16965
18238
  inspectRes,
16966
18239
  );