@zama-fhe/sdk 2.1.1-alpha.2 → 2.2.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/dist/cjs/activity.cjs +1 -1
- package/dist/cjs/activity.cjs.map +1 -1
- package/dist/cjs/cleartext/index.cjs +1 -2
- package/dist/cjs/cleartext.cjs +2 -0
- package/dist/cjs/{cleartext/index.cjs.map → cleartext.cjs.map} +1 -1
- package/dist/cjs/ethers/index.cjs +1 -1
- package/dist/cjs/ethers/index.cjs.map +1 -1
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/query/index.cjs +1 -1
- package/dist/cjs/query/index.cjs.map +1 -1
- package/dist/cjs/transfer-batcher.cjs +1 -1
- package/dist/cjs/transfer-batcher.cjs.map +1 -1
- package/dist/cjs/viem/index.cjs +1 -1
- package/dist/cjs/viem/index.cjs.map +1 -1
- package/dist/cjs/{erc165.cjs → wrappers-registry.cjs} +2 -2
- package/dist/cjs/wrappers-registry.cjs.map +1 -0
- package/dist/esm/{activity-B4coeVs1.d.ts → activity-BRrEPcPO.d.ts} +256 -27
- package/dist/esm/activity-ChJnF5yd.js +2 -0
- package/dist/esm/activity-ChJnF5yd.js.map +1 -0
- package/dist/esm/cleartext/index.d.ts +5 -2
- package/dist/esm/cleartext/index.js +1 -2
- package/dist/esm/cleartext-CxGEREks.js +2 -0
- package/dist/esm/cleartext-CxGEREks.js.map +1 -0
- package/dist/esm/{eip1193-subscribe-Cl_wlVuQ.js → eip1193-subscribe-Cp2QVN0m.js} +1 -1
- package/dist/esm/{eip1193-subscribe-Cl_wlVuQ.js.map → eip1193-subscribe-Cp2QVN0m.js.map} +1 -1
- package/dist/esm/ethers/index.d.ts +12 -5
- package/dist/esm/ethers/index.js +1 -1
- package/dist/esm/ethers/index.js.map +1 -1
- package/dist/esm/fhe-artifact-cache-vzh7Xn9G.js.map +1 -1
- package/dist/esm/{index-BaBH5_l6.d.ts → index-IhsduS7h.d.ts} +1134 -7
- package/dist/esm/index.d.ts +6 -6
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/node/index.d.ts +3 -3
- package/dist/esm/node/index.js +1 -1
- package/dist/esm/query/index.d.ts +124 -8
- package/dist/esm/query/index.js +1 -1
- package/dist/esm/query/index.js.map +1 -1
- package/dist/esm/{relayer-sdk-mcgawhDN.d.ts → relayer-sdk-CcIghrEq.d.ts} +2 -2
- package/dist/esm/{relayer-sdk.types--cY3a2ni.d.ts → relayer-sdk.types-D7rylLS4.d.ts} +1 -1
- package/dist/esm/{relayer-utils-DgRkaB8f.d.ts → relayer-utils-BcTAyZOr.d.ts} +14 -3
- package/dist/esm/relayer-utils-BeoTNDM4.js +2 -0
- package/dist/esm/relayer-utils-BeoTNDM4.js.map +1 -0
- package/dist/esm/transfer-batcher-BXIo7hnu.js +2 -0
- package/dist/esm/transfer-batcher-BXIo7hnu.js.map +1 -0
- package/dist/esm/viem/index.d.ts +24 -5
- package/dist/esm/viem/index.js +1 -1
- package/dist/esm/viem/index.js.map +1 -1
- package/dist/esm/{erc165-GmIEu75Z.js → wrappers-registry-DqPr_JG2.js} +2 -2
- package/dist/esm/wrappers-registry-DqPr_JG2.js.map +1 -0
- package/package.json +1 -1
- package/dist/cjs/erc165.cjs.map +0 -1
- package/dist/cjs/relayer-utils.cjs +0 -2
- package/dist/cjs/relayer-utils.cjs.map +0 -1
- package/dist/esm/activity-q5o6CCaY.js +0 -2
- package/dist/esm/activity-q5o6CCaY.js.map +0 -1
- package/dist/esm/cleartext/index.js.map +0 -1
- package/dist/esm/erc165-GmIEu75Z.js.map +0 -1
- package/dist/esm/relayer-utils--TV3NTMg.js +0 -2
- package/dist/esm/relayer-utils--TV3NTMg.js.map +0 -1
- package/dist/esm/transfer-batcher-C8gp7S82.js +0 -2
- package/dist/esm/transfer-batcher-C8gp7S82.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as Handle } from "./relayer-sdk.types
|
|
1
|
+
import { o as Handle } from "./relayer-sdk.types-D7rylLS4.js";
|
|
2
2
|
import { Address, Hex } from "viem";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/encrypted.d.ts
|
|
@@ -25862,11 +25862,11 @@ declare function approveContract(tokenAddress: Address, spender: Address, value:
|
|
|
25862
25862
|
* @example
|
|
25863
25863
|
* ```ts
|
|
25864
25864
|
* const wrapper = await signer.readContract(
|
|
25865
|
-
* getWrapperContract(
|
|
25865
|
+
* getWrapperContract(registryAddress, tokenAddress),
|
|
25866
25866
|
* );
|
|
25867
25867
|
* ```
|
|
25868
25868
|
*/
|
|
25869
|
-
declare function getWrapperContract(
|
|
25869
|
+
declare function getWrapperContract(registryAddress: Address, tokenAddress: Address): {
|
|
25870
25870
|
readonly address: `0x${string}`;
|
|
25871
25871
|
readonly abi: readonly [{
|
|
25872
25872
|
readonly inputs: readonly [{
|
|
@@ -25906,11 +25906,11 @@ declare function getWrapperContract(coordinator: Address, tokenAddress: Address)
|
|
|
25906
25906
|
* @example
|
|
25907
25907
|
* ```ts
|
|
25908
25908
|
* const exists = await signer.readContract(
|
|
25909
|
-
* wrapperExistsContract(
|
|
25909
|
+
* wrapperExistsContract(registryAddress, tokenAddress),
|
|
25910
25910
|
* );
|
|
25911
25911
|
* ```
|
|
25912
25912
|
*/
|
|
25913
|
-
declare function wrapperExistsContract(
|
|
25913
|
+
declare function wrapperExistsContract(registryAddress: Address, tokenAddress: Address): {
|
|
25914
25914
|
readonly address: `0x${string}`;
|
|
25915
25915
|
readonly abi: readonly [{
|
|
25916
25916
|
readonly inputs: readonly [{
|
|
@@ -28632,5 +28632,1132 @@ declare function getDelegationExpiryContract(aclAddress: Address, delegatorAddre
|
|
|
28632
28632
|
readonly args: readonly [`0x${string}`, `0x${string}`, `0x${string}`];
|
|
28633
28633
|
};
|
|
28634
28634
|
//#endregion
|
|
28635
|
-
|
|
28636
|
-
|
|
28635
|
+
//#region src/contracts/wrappers-registry.d.ts
|
|
28636
|
+
interface TokenWrapperPair {
|
|
28637
|
+
readonly tokenAddress: Address;
|
|
28638
|
+
readonly confidentialTokenAddress: Address;
|
|
28639
|
+
readonly isValid: boolean;
|
|
28640
|
+
}
|
|
28641
|
+
/** Extended pair with on-chain metadata for both tokens. */
|
|
28642
|
+
interface TokenWrapperPairWithMetadata extends TokenWrapperPair {
|
|
28643
|
+
readonly underlying: {
|
|
28644
|
+
readonly name: string;
|
|
28645
|
+
readonly symbol: string;
|
|
28646
|
+
readonly decimals: number;
|
|
28647
|
+
readonly totalSupply: bigint;
|
|
28648
|
+
};
|
|
28649
|
+
readonly confidential: {
|
|
28650
|
+
readonly name: string;
|
|
28651
|
+
readonly symbol: string;
|
|
28652
|
+
readonly decimals: number;
|
|
28653
|
+
};
|
|
28654
|
+
}
|
|
28655
|
+
/** Paginated result set modelled after standard API pagination. */
|
|
28656
|
+
interface PaginatedResult<T> {
|
|
28657
|
+
readonly items: readonly T[];
|
|
28658
|
+
readonly total: number;
|
|
28659
|
+
readonly page: number;
|
|
28660
|
+
readonly pageSize: number;
|
|
28661
|
+
}
|
|
28662
|
+
/**
|
|
28663
|
+
* Returns the contract config to fetch all token wrapper pairs.
|
|
28664
|
+
*
|
|
28665
|
+
* @example
|
|
28666
|
+
* ```ts
|
|
28667
|
+
* const pairs = await client.readContract(
|
|
28668
|
+
* getTokenPairsContract(registryAddress),
|
|
28669
|
+
* );
|
|
28670
|
+
* ```
|
|
28671
|
+
*/
|
|
28672
|
+
declare function getTokenPairsContract(registry: Address): {
|
|
28673
|
+
readonly address: `0x${string}`;
|
|
28674
|
+
readonly abi: readonly [{
|
|
28675
|
+
readonly inputs: readonly [];
|
|
28676
|
+
readonly name: "getTokenConfidentialTokenPairs";
|
|
28677
|
+
readonly outputs: readonly [{
|
|
28678
|
+
readonly components: readonly [{
|
|
28679
|
+
readonly internalType: "address";
|
|
28680
|
+
readonly name: "tokenAddress";
|
|
28681
|
+
readonly type: "address";
|
|
28682
|
+
}, {
|
|
28683
|
+
readonly internalType: "address";
|
|
28684
|
+
readonly name: "confidentialTokenAddress";
|
|
28685
|
+
readonly type: "address";
|
|
28686
|
+
}, {
|
|
28687
|
+
readonly internalType: "bool";
|
|
28688
|
+
readonly name: "isValid";
|
|
28689
|
+
readonly type: "bool";
|
|
28690
|
+
}];
|
|
28691
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair[]";
|
|
28692
|
+
readonly name: "";
|
|
28693
|
+
readonly type: "tuple[]";
|
|
28694
|
+
}];
|
|
28695
|
+
readonly stateMutability: "view";
|
|
28696
|
+
readonly type: "function";
|
|
28697
|
+
}, {
|
|
28698
|
+
readonly inputs: readonly [];
|
|
28699
|
+
readonly name: "getTokenConfidentialTokenPairsLength";
|
|
28700
|
+
readonly outputs: readonly [{
|
|
28701
|
+
readonly internalType: "uint256";
|
|
28702
|
+
readonly name: "";
|
|
28703
|
+
readonly type: "uint256";
|
|
28704
|
+
}];
|
|
28705
|
+
readonly stateMutability: "view";
|
|
28706
|
+
readonly type: "function";
|
|
28707
|
+
}, {
|
|
28708
|
+
readonly inputs: readonly [{
|
|
28709
|
+
readonly internalType: "uint256";
|
|
28710
|
+
readonly name: "fromIndex";
|
|
28711
|
+
readonly type: "uint256";
|
|
28712
|
+
}, {
|
|
28713
|
+
readonly internalType: "uint256";
|
|
28714
|
+
readonly name: "toIndex";
|
|
28715
|
+
readonly type: "uint256";
|
|
28716
|
+
}];
|
|
28717
|
+
readonly name: "getTokenConfidentialTokenPairsSlice";
|
|
28718
|
+
readonly outputs: readonly [{
|
|
28719
|
+
readonly components: readonly [{
|
|
28720
|
+
readonly internalType: "address";
|
|
28721
|
+
readonly name: "tokenAddress";
|
|
28722
|
+
readonly type: "address";
|
|
28723
|
+
}, {
|
|
28724
|
+
readonly internalType: "address";
|
|
28725
|
+
readonly name: "confidentialTokenAddress";
|
|
28726
|
+
readonly type: "address";
|
|
28727
|
+
}, {
|
|
28728
|
+
readonly internalType: "bool";
|
|
28729
|
+
readonly name: "isValid";
|
|
28730
|
+
readonly type: "bool";
|
|
28731
|
+
}];
|
|
28732
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair[]";
|
|
28733
|
+
readonly name: "";
|
|
28734
|
+
readonly type: "tuple[]";
|
|
28735
|
+
}];
|
|
28736
|
+
readonly stateMutability: "view";
|
|
28737
|
+
readonly type: "function";
|
|
28738
|
+
}, {
|
|
28739
|
+
readonly inputs: readonly [{
|
|
28740
|
+
readonly internalType: "uint256";
|
|
28741
|
+
readonly name: "index";
|
|
28742
|
+
readonly type: "uint256";
|
|
28743
|
+
}];
|
|
28744
|
+
readonly name: "getTokenConfidentialTokenPair";
|
|
28745
|
+
readonly outputs: readonly [{
|
|
28746
|
+
readonly components: readonly [{
|
|
28747
|
+
readonly internalType: "address";
|
|
28748
|
+
readonly name: "tokenAddress";
|
|
28749
|
+
readonly type: "address";
|
|
28750
|
+
}, {
|
|
28751
|
+
readonly internalType: "address";
|
|
28752
|
+
readonly name: "confidentialTokenAddress";
|
|
28753
|
+
readonly type: "address";
|
|
28754
|
+
}, {
|
|
28755
|
+
readonly internalType: "bool";
|
|
28756
|
+
readonly name: "isValid";
|
|
28757
|
+
readonly type: "bool";
|
|
28758
|
+
}];
|
|
28759
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair";
|
|
28760
|
+
readonly name: "";
|
|
28761
|
+
readonly type: "tuple";
|
|
28762
|
+
}];
|
|
28763
|
+
readonly stateMutability: "view";
|
|
28764
|
+
readonly type: "function";
|
|
28765
|
+
}, {
|
|
28766
|
+
readonly inputs: readonly [{
|
|
28767
|
+
readonly internalType: "address";
|
|
28768
|
+
readonly name: "tokenAddress";
|
|
28769
|
+
readonly type: "address";
|
|
28770
|
+
}];
|
|
28771
|
+
readonly name: "getConfidentialTokenAddress";
|
|
28772
|
+
readonly outputs: readonly [{
|
|
28773
|
+
readonly internalType: "bool";
|
|
28774
|
+
readonly name: "";
|
|
28775
|
+
readonly type: "bool";
|
|
28776
|
+
}, {
|
|
28777
|
+
readonly internalType: "address";
|
|
28778
|
+
readonly name: "";
|
|
28779
|
+
readonly type: "address";
|
|
28780
|
+
}];
|
|
28781
|
+
readonly stateMutability: "view";
|
|
28782
|
+
readonly type: "function";
|
|
28783
|
+
}, {
|
|
28784
|
+
readonly inputs: readonly [{
|
|
28785
|
+
readonly internalType: "address";
|
|
28786
|
+
readonly name: "confidentialTokenAddress";
|
|
28787
|
+
readonly type: "address";
|
|
28788
|
+
}];
|
|
28789
|
+
readonly name: "getTokenAddress";
|
|
28790
|
+
readonly outputs: readonly [{
|
|
28791
|
+
readonly internalType: "bool";
|
|
28792
|
+
readonly name: "";
|
|
28793
|
+
readonly type: "bool";
|
|
28794
|
+
}, {
|
|
28795
|
+
readonly internalType: "address";
|
|
28796
|
+
readonly name: "";
|
|
28797
|
+
readonly type: "address";
|
|
28798
|
+
}];
|
|
28799
|
+
readonly stateMutability: "view";
|
|
28800
|
+
readonly type: "function";
|
|
28801
|
+
}, {
|
|
28802
|
+
readonly inputs: readonly [{
|
|
28803
|
+
readonly internalType: "address";
|
|
28804
|
+
readonly name: "confidentialTokenAddress";
|
|
28805
|
+
readonly type: "address";
|
|
28806
|
+
}];
|
|
28807
|
+
readonly name: "isConfidentialTokenValid";
|
|
28808
|
+
readonly outputs: readonly [{
|
|
28809
|
+
readonly internalType: "bool";
|
|
28810
|
+
readonly name: "";
|
|
28811
|
+
readonly type: "bool";
|
|
28812
|
+
}];
|
|
28813
|
+
readonly stateMutability: "view";
|
|
28814
|
+
readonly type: "function";
|
|
28815
|
+
}];
|
|
28816
|
+
readonly functionName: "getTokenConfidentialTokenPairs";
|
|
28817
|
+
readonly args: readonly [];
|
|
28818
|
+
};
|
|
28819
|
+
/**
|
|
28820
|
+
* Returns the contract config to get the number of token wrapper pairs.
|
|
28821
|
+
*
|
|
28822
|
+
* @example
|
|
28823
|
+
* ```ts
|
|
28824
|
+
* const length = await client.readContract(
|
|
28825
|
+
* getTokenPairsLengthContract(registryAddress),
|
|
28826
|
+
* );
|
|
28827
|
+
* ```
|
|
28828
|
+
*/
|
|
28829
|
+
declare function getTokenPairsLengthContract(registry: Address): {
|
|
28830
|
+
readonly address: `0x${string}`;
|
|
28831
|
+
readonly abi: readonly [{
|
|
28832
|
+
readonly inputs: readonly [];
|
|
28833
|
+
readonly name: "getTokenConfidentialTokenPairs";
|
|
28834
|
+
readonly outputs: readonly [{
|
|
28835
|
+
readonly components: readonly [{
|
|
28836
|
+
readonly internalType: "address";
|
|
28837
|
+
readonly name: "tokenAddress";
|
|
28838
|
+
readonly type: "address";
|
|
28839
|
+
}, {
|
|
28840
|
+
readonly internalType: "address";
|
|
28841
|
+
readonly name: "confidentialTokenAddress";
|
|
28842
|
+
readonly type: "address";
|
|
28843
|
+
}, {
|
|
28844
|
+
readonly internalType: "bool";
|
|
28845
|
+
readonly name: "isValid";
|
|
28846
|
+
readonly type: "bool";
|
|
28847
|
+
}];
|
|
28848
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair[]";
|
|
28849
|
+
readonly name: "";
|
|
28850
|
+
readonly type: "tuple[]";
|
|
28851
|
+
}];
|
|
28852
|
+
readonly stateMutability: "view";
|
|
28853
|
+
readonly type: "function";
|
|
28854
|
+
}, {
|
|
28855
|
+
readonly inputs: readonly [];
|
|
28856
|
+
readonly name: "getTokenConfidentialTokenPairsLength";
|
|
28857
|
+
readonly outputs: readonly [{
|
|
28858
|
+
readonly internalType: "uint256";
|
|
28859
|
+
readonly name: "";
|
|
28860
|
+
readonly type: "uint256";
|
|
28861
|
+
}];
|
|
28862
|
+
readonly stateMutability: "view";
|
|
28863
|
+
readonly type: "function";
|
|
28864
|
+
}, {
|
|
28865
|
+
readonly inputs: readonly [{
|
|
28866
|
+
readonly internalType: "uint256";
|
|
28867
|
+
readonly name: "fromIndex";
|
|
28868
|
+
readonly type: "uint256";
|
|
28869
|
+
}, {
|
|
28870
|
+
readonly internalType: "uint256";
|
|
28871
|
+
readonly name: "toIndex";
|
|
28872
|
+
readonly type: "uint256";
|
|
28873
|
+
}];
|
|
28874
|
+
readonly name: "getTokenConfidentialTokenPairsSlice";
|
|
28875
|
+
readonly outputs: readonly [{
|
|
28876
|
+
readonly components: readonly [{
|
|
28877
|
+
readonly internalType: "address";
|
|
28878
|
+
readonly name: "tokenAddress";
|
|
28879
|
+
readonly type: "address";
|
|
28880
|
+
}, {
|
|
28881
|
+
readonly internalType: "address";
|
|
28882
|
+
readonly name: "confidentialTokenAddress";
|
|
28883
|
+
readonly type: "address";
|
|
28884
|
+
}, {
|
|
28885
|
+
readonly internalType: "bool";
|
|
28886
|
+
readonly name: "isValid";
|
|
28887
|
+
readonly type: "bool";
|
|
28888
|
+
}];
|
|
28889
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair[]";
|
|
28890
|
+
readonly name: "";
|
|
28891
|
+
readonly type: "tuple[]";
|
|
28892
|
+
}];
|
|
28893
|
+
readonly stateMutability: "view";
|
|
28894
|
+
readonly type: "function";
|
|
28895
|
+
}, {
|
|
28896
|
+
readonly inputs: readonly [{
|
|
28897
|
+
readonly internalType: "uint256";
|
|
28898
|
+
readonly name: "index";
|
|
28899
|
+
readonly type: "uint256";
|
|
28900
|
+
}];
|
|
28901
|
+
readonly name: "getTokenConfidentialTokenPair";
|
|
28902
|
+
readonly outputs: readonly [{
|
|
28903
|
+
readonly components: readonly [{
|
|
28904
|
+
readonly internalType: "address";
|
|
28905
|
+
readonly name: "tokenAddress";
|
|
28906
|
+
readonly type: "address";
|
|
28907
|
+
}, {
|
|
28908
|
+
readonly internalType: "address";
|
|
28909
|
+
readonly name: "confidentialTokenAddress";
|
|
28910
|
+
readonly type: "address";
|
|
28911
|
+
}, {
|
|
28912
|
+
readonly internalType: "bool";
|
|
28913
|
+
readonly name: "isValid";
|
|
28914
|
+
readonly type: "bool";
|
|
28915
|
+
}];
|
|
28916
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair";
|
|
28917
|
+
readonly name: "";
|
|
28918
|
+
readonly type: "tuple";
|
|
28919
|
+
}];
|
|
28920
|
+
readonly stateMutability: "view";
|
|
28921
|
+
readonly type: "function";
|
|
28922
|
+
}, {
|
|
28923
|
+
readonly inputs: readonly [{
|
|
28924
|
+
readonly internalType: "address";
|
|
28925
|
+
readonly name: "tokenAddress";
|
|
28926
|
+
readonly type: "address";
|
|
28927
|
+
}];
|
|
28928
|
+
readonly name: "getConfidentialTokenAddress";
|
|
28929
|
+
readonly outputs: readonly [{
|
|
28930
|
+
readonly internalType: "bool";
|
|
28931
|
+
readonly name: "";
|
|
28932
|
+
readonly type: "bool";
|
|
28933
|
+
}, {
|
|
28934
|
+
readonly internalType: "address";
|
|
28935
|
+
readonly name: "";
|
|
28936
|
+
readonly type: "address";
|
|
28937
|
+
}];
|
|
28938
|
+
readonly stateMutability: "view";
|
|
28939
|
+
readonly type: "function";
|
|
28940
|
+
}, {
|
|
28941
|
+
readonly inputs: readonly [{
|
|
28942
|
+
readonly internalType: "address";
|
|
28943
|
+
readonly name: "confidentialTokenAddress";
|
|
28944
|
+
readonly type: "address";
|
|
28945
|
+
}];
|
|
28946
|
+
readonly name: "getTokenAddress";
|
|
28947
|
+
readonly outputs: readonly [{
|
|
28948
|
+
readonly internalType: "bool";
|
|
28949
|
+
readonly name: "";
|
|
28950
|
+
readonly type: "bool";
|
|
28951
|
+
}, {
|
|
28952
|
+
readonly internalType: "address";
|
|
28953
|
+
readonly name: "";
|
|
28954
|
+
readonly type: "address";
|
|
28955
|
+
}];
|
|
28956
|
+
readonly stateMutability: "view";
|
|
28957
|
+
readonly type: "function";
|
|
28958
|
+
}, {
|
|
28959
|
+
readonly inputs: readonly [{
|
|
28960
|
+
readonly internalType: "address";
|
|
28961
|
+
readonly name: "confidentialTokenAddress";
|
|
28962
|
+
readonly type: "address";
|
|
28963
|
+
}];
|
|
28964
|
+
readonly name: "isConfidentialTokenValid";
|
|
28965
|
+
readonly outputs: readonly [{
|
|
28966
|
+
readonly internalType: "bool";
|
|
28967
|
+
readonly name: "";
|
|
28968
|
+
readonly type: "bool";
|
|
28969
|
+
}];
|
|
28970
|
+
readonly stateMutability: "view";
|
|
28971
|
+
readonly type: "function";
|
|
28972
|
+
}];
|
|
28973
|
+
readonly functionName: "getTokenConfidentialTokenPairsLength";
|
|
28974
|
+
readonly args: readonly [];
|
|
28975
|
+
};
|
|
28976
|
+
/**
|
|
28977
|
+
* Returns the contract config to fetch a slice of token wrapper pairs.
|
|
28978
|
+
*
|
|
28979
|
+
* @example
|
|
28980
|
+
* ```ts
|
|
28981
|
+
* const pairs = await client.readContract(
|
|
28982
|
+
* getTokenPairsSliceContract(registryAddress, 0n, 10n),
|
|
28983
|
+
* );
|
|
28984
|
+
* ```
|
|
28985
|
+
*/
|
|
28986
|
+
declare function getTokenPairsSliceContract(registry: Address, fromIndex: bigint, toIndex: bigint): {
|
|
28987
|
+
readonly address: `0x${string}`;
|
|
28988
|
+
readonly abi: readonly [{
|
|
28989
|
+
readonly inputs: readonly [];
|
|
28990
|
+
readonly name: "getTokenConfidentialTokenPairs";
|
|
28991
|
+
readonly outputs: readonly [{
|
|
28992
|
+
readonly components: readonly [{
|
|
28993
|
+
readonly internalType: "address";
|
|
28994
|
+
readonly name: "tokenAddress";
|
|
28995
|
+
readonly type: "address";
|
|
28996
|
+
}, {
|
|
28997
|
+
readonly internalType: "address";
|
|
28998
|
+
readonly name: "confidentialTokenAddress";
|
|
28999
|
+
readonly type: "address";
|
|
29000
|
+
}, {
|
|
29001
|
+
readonly internalType: "bool";
|
|
29002
|
+
readonly name: "isValid";
|
|
29003
|
+
readonly type: "bool";
|
|
29004
|
+
}];
|
|
29005
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair[]";
|
|
29006
|
+
readonly name: "";
|
|
29007
|
+
readonly type: "tuple[]";
|
|
29008
|
+
}];
|
|
29009
|
+
readonly stateMutability: "view";
|
|
29010
|
+
readonly type: "function";
|
|
29011
|
+
}, {
|
|
29012
|
+
readonly inputs: readonly [];
|
|
29013
|
+
readonly name: "getTokenConfidentialTokenPairsLength";
|
|
29014
|
+
readonly outputs: readonly [{
|
|
29015
|
+
readonly internalType: "uint256";
|
|
29016
|
+
readonly name: "";
|
|
29017
|
+
readonly type: "uint256";
|
|
29018
|
+
}];
|
|
29019
|
+
readonly stateMutability: "view";
|
|
29020
|
+
readonly type: "function";
|
|
29021
|
+
}, {
|
|
29022
|
+
readonly inputs: readonly [{
|
|
29023
|
+
readonly internalType: "uint256";
|
|
29024
|
+
readonly name: "fromIndex";
|
|
29025
|
+
readonly type: "uint256";
|
|
29026
|
+
}, {
|
|
29027
|
+
readonly internalType: "uint256";
|
|
29028
|
+
readonly name: "toIndex";
|
|
29029
|
+
readonly type: "uint256";
|
|
29030
|
+
}];
|
|
29031
|
+
readonly name: "getTokenConfidentialTokenPairsSlice";
|
|
29032
|
+
readonly outputs: readonly [{
|
|
29033
|
+
readonly components: readonly [{
|
|
29034
|
+
readonly internalType: "address";
|
|
29035
|
+
readonly name: "tokenAddress";
|
|
29036
|
+
readonly type: "address";
|
|
29037
|
+
}, {
|
|
29038
|
+
readonly internalType: "address";
|
|
29039
|
+
readonly name: "confidentialTokenAddress";
|
|
29040
|
+
readonly type: "address";
|
|
29041
|
+
}, {
|
|
29042
|
+
readonly internalType: "bool";
|
|
29043
|
+
readonly name: "isValid";
|
|
29044
|
+
readonly type: "bool";
|
|
29045
|
+
}];
|
|
29046
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair[]";
|
|
29047
|
+
readonly name: "";
|
|
29048
|
+
readonly type: "tuple[]";
|
|
29049
|
+
}];
|
|
29050
|
+
readonly stateMutability: "view";
|
|
29051
|
+
readonly type: "function";
|
|
29052
|
+
}, {
|
|
29053
|
+
readonly inputs: readonly [{
|
|
29054
|
+
readonly internalType: "uint256";
|
|
29055
|
+
readonly name: "index";
|
|
29056
|
+
readonly type: "uint256";
|
|
29057
|
+
}];
|
|
29058
|
+
readonly name: "getTokenConfidentialTokenPair";
|
|
29059
|
+
readonly outputs: readonly [{
|
|
29060
|
+
readonly components: readonly [{
|
|
29061
|
+
readonly internalType: "address";
|
|
29062
|
+
readonly name: "tokenAddress";
|
|
29063
|
+
readonly type: "address";
|
|
29064
|
+
}, {
|
|
29065
|
+
readonly internalType: "address";
|
|
29066
|
+
readonly name: "confidentialTokenAddress";
|
|
29067
|
+
readonly type: "address";
|
|
29068
|
+
}, {
|
|
29069
|
+
readonly internalType: "bool";
|
|
29070
|
+
readonly name: "isValid";
|
|
29071
|
+
readonly type: "bool";
|
|
29072
|
+
}];
|
|
29073
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair";
|
|
29074
|
+
readonly name: "";
|
|
29075
|
+
readonly type: "tuple";
|
|
29076
|
+
}];
|
|
29077
|
+
readonly stateMutability: "view";
|
|
29078
|
+
readonly type: "function";
|
|
29079
|
+
}, {
|
|
29080
|
+
readonly inputs: readonly [{
|
|
29081
|
+
readonly internalType: "address";
|
|
29082
|
+
readonly name: "tokenAddress";
|
|
29083
|
+
readonly type: "address";
|
|
29084
|
+
}];
|
|
29085
|
+
readonly name: "getConfidentialTokenAddress";
|
|
29086
|
+
readonly outputs: readonly [{
|
|
29087
|
+
readonly internalType: "bool";
|
|
29088
|
+
readonly name: "";
|
|
29089
|
+
readonly type: "bool";
|
|
29090
|
+
}, {
|
|
29091
|
+
readonly internalType: "address";
|
|
29092
|
+
readonly name: "";
|
|
29093
|
+
readonly type: "address";
|
|
29094
|
+
}];
|
|
29095
|
+
readonly stateMutability: "view";
|
|
29096
|
+
readonly type: "function";
|
|
29097
|
+
}, {
|
|
29098
|
+
readonly inputs: readonly [{
|
|
29099
|
+
readonly internalType: "address";
|
|
29100
|
+
readonly name: "confidentialTokenAddress";
|
|
29101
|
+
readonly type: "address";
|
|
29102
|
+
}];
|
|
29103
|
+
readonly name: "getTokenAddress";
|
|
29104
|
+
readonly outputs: readonly [{
|
|
29105
|
+
readonly internalType: "bool";
|
|
29106
|
+
readonly name: "";
|
|
29107
|
+
readonly type: "bool";
|
|
29108
|
+
}, {
|
|
29109
|
+
readonly internalType: "address";
|
|
29110
|
+
readonly name: "";
|
|
29111
|
+
readonly type: "address";
|
|
29112
|
+
}];
|
|
29113
|
+
readonly stateMutability: "view";
|
|
29114
|
+
readonly type: "function";
|
|
29115
|
+
}, {
|
|
29116
|
+
readonly inputs: readonly [{
|
|
29117
|
+
readonly internalType: "address";
|
|
29118
|
+
readonly name: "confidentialTokenAddress";
|
|
29119
|
+
readonly type: "address";
|
|
29120
|
+
}];
|
|
29121
|
+
readonly name: "isConfidentialTokenValid";
|
|
29122
|
+
readonly outputs: readonly [{
|
|
29123
|
+
readonly internalType: "bool";
|
|
29124
|
+
readonly name: "";
|
|
29125
|
+
readonly type: "bool";
|
|
29126
|
+
}];
|
|
29127
|
+
readonly stateMutability: "view";
|
|
29128
|
+
readonly type: "function";
|
|
29129
|
+
}];
|
|
29130
|
+
readonly functionName: "getTokenConfidentialTokenPairsSlice";
|
|
29131
|
+
readonly args: readonly [bigint, bigint];
|
|
29132
|
+
};
|
|
29133
|
+
/**
|
|
29134
|
+
* Returns the contract config to fetch a single token wrapper pair by index.
|
|
29135
|
+
*
|
|
29136
|
+
* @example
|
|
29137
|
+
* ```ts
|
|
29138
|
+
* const pair = await client.readContract(
|
|
29139
|
+
* getTokenPairContract(registryAddress, 0n),
|
|
29140
|
+
* );
|
|
29141
|
+
* ```
|
|
29142
|
+
*/
|
|
29143
|
+
declare function getTokenPairContract(registry: Address, index: bigint): {
|
|
29144
|
+
readonly address: `0x${string}`;
|
|
29145
|
+
readonly abi: readonly [{
|
|
29146
|
+
readonly inputs: readonly [];
|
|
29147
|
+
readonly name: "getTokenConfidentialTokenPairs";
|
|
29148
|
+
readonly outputs: readonly [{
|
|
29149
|
+
readonly components: readonly [{
|
|
29150
|
+
readonly internalType: "address";
|
|
29151
|
+
readonly name: "tokenAddress";
|
|
29152
|
+
readonly type: "address";
|
|
29153
|
+
}, {
|
|
29154
|
+
readonly internalType: "address";
|
|
29155
|
+
readonly name: "confidentialTokenAddress";
|
|
29156
|
+
readonly type: "address";
|
|
29157
|
+
}, {
|
|
29158
|
+
readonly internalType: "bool";
|
|
29159
|
+
readonly name: "isValid";
|
|
29160
|
+
readonly type: "bool";
|
|
29161
|
+
}];
|
|
29162
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair[]";
|
|
29163
|
+
readonly name: "";
|
|
29164
|
+
readonly type: "tuple[]";
|
|
29165
|
+
}];
|
|
29166
|
+
readonly stateMutability: "view";
|
|
29167
|
+
readonly type: "function";
|
|
29168
|
+
}, {
|
|
29169
|
+
readonly inputs: readonly [];
|
|
29170
|
+
readonly name: "getTokenConfidentialTokenPairsLength";
|
|
29171
|
+
readonly outputs: readonly [{
|
|
29172
|
+
readonly internalType: "uint256";
|
|
29173
|
+
readonly name: "";
|
|
29174
|
+
readonly type: "uint256";
|
|
29175
|
+
}];
|
|
29176
|
+
readonly stateMutability: "view";
|
|
29177
|
+
readonly type: "function";
|
|
29178
|
+
}, {
|
|
29179
|
+
readonly inputs: readonly [{
|
|
29180
|
+
readonly internalType: "uint256";
|
|
29181
|
+
readonly name: "fromIndex";
|
|
29182
|
+
readonly type: "uint256";
|
|
29183
|
+
}, {
|
|
29184
|
+
readonly internalType: "uint256";
|
|
29185
|
+
readonly name: "toIndex";
|
|
29186
|
+
readonly type: "uint256";
|
|
29187
|
+
}];
|
|
29188
|
+
readonly name: "getTokenConfidentialTokenPairsSlice";
|
|
29189
|
+
readonly outputs: readonly [{
|
|
29190
|
+
readonly components: readonly [{
|
|
29191
|
+
readonly internalType: "address";
|
|
29192
|
+
readonly name: "tokenAddress";
|
|
29193
|
+
readonly type: "address";
|
|
29194
|
+
}, {
|
|
29195
|
+
readonly internalType: "address";
|
|
29196
|
+
readonly name: "confidentialTokenAddress";
|
|
29197
|
+
readonly type: "address";
|
|
29198
|
+
}, {
|
|
29199
|
+
readonly internalType: "bool";
|
|
29200
|
+
readonly name: "isValid";
|
|
29201
|
+
readonly type: "bool";
|
|
29202
|
+
}];
|
|
29203
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair[]";
|
|
29204
|
+
readonly name: "";
|
|
29205
|
+
readonly type: "tuple[]";
|
|
29206
|
+
}];
|
|
29207
|
+
readonly stateMutability: "view";
|
|
29208
|
+
readonly type: "function";
|
|
29209
|
+
}, {
|
|
29210
|
+
readonly inputs: readonly [{
|
|
29211
|
+
readonly internalType: "uint256";
|
|
29212
|
+
readonly name: "index";
|
|
29213
|
+
readonly type: "uint256";
|
|
29214
|
+
}];
|
|
29215
|
+
readonly name: "getTokenConfidentialTokenPair";
|
|
29216
|
+
readonly outputs: readonly [{
|
|
29217
|
+
readonly components: readonly [{
|
|
29218
|
+
readonly internalType: "address";
|
|
29219
|
+
readonly name: "tokenAddress";
|
|
29220
|
+
readonly type: "address";
|
|
29221
|
+
}, {
|
|
29222
|
+
readonly internalType: "address";
|
|
29223
|
+
readonly name: "confidentialTokenAddress";
|
|
29224
|
+
readonly type: "address";
|
|
29225
|
+
}, {
|
|
29226
|
+
readonly internalType: "bool";
|
|
29227
|
+
readonly name: "isValid";
|
|
29228
|
+
readonly type: "bool";
|
|
29229
|
+
}];
|
|
29230
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair";
|
|
29231
|
+
readonly name: "";
|
|
29232
|
+
readonly type: "tuple";
|
|
29233
|
+
}];
|
|
29234
|
+
readonly stateMutability: "view";
|
|
29235
|
+
readonly type: "function";
|
|
29236
|
+
}, {
|
|
29237
|
+
readonly inputs: readonly [{
|
|
29238
|
+
readonly internalType: "address";
|
|
29239
|
+
readonly name: "tokenAddress";
|
|
29240
|
+
readonly type: "address";
|
|
29241
|
+
}];
|
|
29242
|
+
readonly name: "getConfidentialTokenAddress";
|
|
29243
|
+
readonly outputs: readonly [{
|
|
29244
|
+
readonly internalType: "bool";
|
|
29245
|
+
readonly name: "";
|
|
29246
|
+
readonly type: "bool";
|
|
29247
|
+
}, {
|
|
29248
|
+
readonly internalType: "address";
|
|
29249
|
+
readonly name: "";
|
|
29250
|
+
readonly type: "address";
|
|
29251
|
+
}];
|
|
29252
|
+
readonly stateMutability: "view";
|
|
29253
|
+
readonly type: "function";
|
|
29254
|
+
}, {
|
|
29255
|
+
readonly inputs: readonly [{
|
|
29256
|
+
readonly internalType: "address";
|
|
29257
|
+
readonly name: "confidentialTokenAddress";
|
|
29258
|
+
readonly type: "address";
|
|
29259
|
+
}];
|
|
29260
|
+
readonly name: "getTokenAddress";
|
|
29261
|
+
readonly outputs: readonly [{
|
|
29262
|
+
readonly internalType: "bool";
|
|
29263
|
+
readonly name: "";
|
|
29264
|
+
readonly type: "bool";
|
|
29265
|
+
}, {
|
|
29266
|
+
readonly internalType: "address";
|
|
29267
|
+
readonly name: "";
|
|
29268
|
+
readonly type: "address";
|
|
29269
|
+
}];
|
|
29270
|
+
readonly stateMutability: "view";
|
|
29271
|
+
readonly type: "function";
|
|
29272
|
+
}, {
|
|
29273
|
+
readonly inputs: readonly [{
|
|
29274
|
+
readonly internalType: "address";
|
|
29275
|
+
readonly name: "confidentialTokenAddress";
|
|
29276
|
+
readonly type: "address";
|
|
29277
|
+
}];
|
|
29278
|
+
readonly name: "isConfidentialTokenValid";
|
|
29279
|
+
readonly outputs: readonly [{
|
|
29280
|
+
readonly internalType: "bool";
|
|
29281
|
+
readonly name: "";
|
|
29282
|
+
readonly type: "bool";
|
|
29283
|
+
}];
|
|
29284
|
+
readonly stateMutability: "view";
|
|
29285
|
+
readonly type: "function";
|
|
29286
|
+
}];
|
|
29287
|
+
readonly functionName: "getTokenConfidentialTokenPair";
|
|
29288
|
+
readonly args: readonly [bigint];
|
|
29289
|
+
};
|
|
29290
|
+
/**
|
|
29291
|
+
* Returns the contract config to look up the confidential token for a given plain token.
|
|
29292
|
+
*
|
|
29293
|
+
* @example
|
|
29294
|
+
* ```ts
|
|
29295
|
+
* const [found, confidentialToken] = await client.readContract(
|
|
29296
|
+
* getConfidentialTokenAddressContract(registryAddress, tokenAddress),
|
|
29297
|
+
* );
|
|
29298
|
+
* ```
|
|
29299
|
+
*/
|
|
29300
|
+
declare function getConfidentialTokenAddressContract(registry: Address, tokenAddress: Address): {
|
|
29301
|
+
readonly address: `0x${string}`;
|
|
29302
|
+
readonly abi: readonly [{
|
|
29303
|
+
readonly inputs: readonly [];
|
|
29304
|
+
readonly name: "getTokenConfidentialTokenPairs";
|
|
29305
|
+
readonly outputs: readonly [{
|
|
29306
|
+
readonly components: readonly [{
|
|
29307
|
+
readonly internalType: "address";
|
|
29308
|
+
readonly name: "tokenAddress";
|
|
29309
|
+
readonly type: "address";
|
|
29310
|
+
}, {
|
|
29311
|
+
readonly internalType: "address";
|
|
29312
|
+
readonly name: "confidentialTokenAddress";
|
|
29313
|
+
readonly type: "address";
|
|
29314
|
+
}, {
|
|
29315
|
+
readonly internalType: "bool";
|
|
29316
|
+
readonly name: "isValid";
|
|
29317
|
+
readonly type: "bool";
|
|
29318
|
+
}];
|
|
29319
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair[]";
|
|
29320
|
+
readonly name: "";
|
|
29321
|
+
readonly type: "tuple[]";
|
|
29322
|
+
}];
|
|
29323
|
+
readonly stateMutability: "view";
|
|
29324
|
+
readonly type: "function";
|
|
29325
|
+
}, {
|
|
29326
|
+
readonly inputs: readonly [];
|
|
29327
|
+
readonly name: "getTokenConfidentialTokenPairsLength";
|
|
29328
|
+
readonly outputs: readonly [{
|
|
29329
|
+
readonly internalType: "uint256";
|
|
29330
|
+
readonly name: "";
|
|
29331
|
+
readonly type: "uint256";
|
|
29332
|
+
}];
|
|
29333
|
+
readonly stateMutability: "view";
|
|
29334
|
+
readonly type: "function";
|
|
29335
|
+
}, {
|
|
29336
|
+
readonly inputs: readonly [{
|
|
29337
|
+
readonly internalType: "uint256";
|
|
29338
|
+
readonly name: "fromIndex";
|
|
29339
|
+
readonly type: "uint256";
|
|
29340
|
+
}, {
|
|
29341
|
+
readonly internalType: "uint256";
|
|
29342
|
+
readonly name: "toIndex";
|
|
29343
|
+
readonly type: "uint256";
|
|
29344
|
+
}];
|
|
29345
|
+
readonly name: "getTokenConfidentialTokenPairsSlice";
|
|
29346
|
+
readonly outputs: readonly [{
|
|
29347
|
+
readonly components: readonly [{
|
|
29348
|
+
readonly internalType: "address";
|
|
29349
|
+
readonly name: "tokenAddress";
|
|
29350
|
+
readonly type: "address";
|
|
29351
|
+
}, {
|
|
29352
|
+
readonly internalType: "address";
|
|
29353
|
+
readonly name: "confidentialTokenAddress";
|
|
29354
|
+
readonly type: "address";
|
|
29355
|
+
}, {
|
|
29356
|
+
readonly internalType: "bool";
|
|
29357
|
+
readonly name: "isValid";
|
|
29358
|
+
readonly type: "bool";
|
|
29359
|
+
}];
|
|
29360
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair[]";
|
|
29361
|
+
readonly name: "";
|
|
29362
|
+
readonly type: "tuple[]";
|
|
29363
|
+
}];
|
|
29364
|
+
readonly stateMutability: "view";
|
|
29365
|
+
readonly type: "function";
|
|
29366
|
+
}, {
|
|
29367
|
+
readonly inputs: readonly [{
|
|
29368
|
+
readonly internalType: "uint256";
|
|
29369
|
+
readonly name: "index";
|
|
29370
|
+
readonly type: "uint256";
|
|
29371
|
+
}];
|
|
29372
|
+
readonly name: "getTokenConfidentialTokenPair";
|
|
29373
|
+
readonly outputs: readonly [{
|
|
29374
|
+
readonly components: readonly [{
|
|
29375
|
+
readonly internalType: "address";
|
|
29376
|
+
readonly name: "tokenAddress";
|
|
29377
|
+
readonly type: "address";
|
|
29378
|
+
}, {
|
|
29379
|
+
readonly internalType: "address";
|
|
29380
|
+
readonly name: "confidentialTokenAddress";
|
|
29381
|
+
readonly type: "address";
|
|
29382
|
+
}, {
|
|
29383
|
+
readonly internalType: "bool";
|
|
29384
|
+
readonly name: "isValid";
|
|
29385
|
+
readonly type: "bool";
|
|
29386
|
+
}];
|
|
29387
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair";
|
|
29388
|
+
readonly name: "";
|
|
29389
|
+
readonly type: "tuple";
|
|
29390
|
+
}];
|
|
29391
|
+
readonly stateMutability: "view";
|
|
29392
|
+
readonly type: "function";
|
|
29393
|
+
}, {
|
|
29394
|
+
readonly inputs: readonly [{
|
|
29395
|
+
readonly internalType: "address";
|
|
29396
|
+
readonly name: "tokenAddress";
|
|
29397
|
+
readonly type: "address";
|
|
29398
|
+
}];
|
|
29399
|
+
readonly name: "getConfidentialTokenAddress";
|
|
29400
|
+
readonly outputs: readonly [{
|
|
29401
|
+
readonly internalType: "bool";
|
|
29402
|
+
readonly name: "";
|
|
29403
|
+
readonly type: "bool";
|
|
29404
|
+
}, {
|
|
29405
|
+
readonly internalType: "address";
|
|
29406
|
+
readonly name: "";
|
|
29407
|
+
readonly type: "address";
|
|
29408
|
+
}];
|
|
29409
|
+
readonly stateMutability: "view";
|
|
29410
|
+
readonly type: "function";
|
|
29411
|
+
}, {
|
|
29412
|
+
readonly inputs: readonly [{
|
|
29413
|
+
readonly internalType: "address";
|
|
29414
|
+
readonly name: "confidentialTokenAddress";
|
|
29415
|
+
readonly type: "address";
|
|
29416
|
+
}];
|
|
29417
|
+
readonly name: "getTokenAddress";
|
|
29418
|
+
readonly outputs: readonly [{
|
|
29419
|
+
readonly internalType: "bool";
|
|
29420
|
+
readonly name: "";
|
|
29421
|
+
readonly type: "bool";
|
|
29422
|
+
}, {
|
|
29423
|
+
readonly internalType: "address";
|
|
29424
|
+
readonly name: "";
|
|
29425
|
+
readonly type: "address";
|
|
29426
|
+
}];
|
|
29427
|
+
readonly stateMutability: "view";
|
|
29428
|
+
readonly type: "function";
|
|
29429
|
+
}, {
|
|
29430
|
+
readonly inputs: readonly [{
|
|
29431
|
+
readonly internalType: "address";
|
|
29432
|
+
readonly name: "confidentialTokenAddress";
|
|
29433
|
+
readonly type: "address";
|
|
29434
|
+
}];
|
|
29435
|
+
readonly name: "isConfidentialTokenValid";
|
|
29436
|
+
readonly outputs: readonly [{
|
|
29437
|
+
readonly internalType: "bool";
|
|
29438
|
+
readonly name: "";
|
|
29439
|
+
readonly type: "bool";
|
|
29440
|
+
}];
|
|
29441
|
+
readonly stateMutability: "view";
|
|
29442
|
+
readonly type: "function";
|
|
29443
|
+
}];
|
|
29444
|
+
readonly functionName: "getConfidentialTokenAddress";
|
|
29445
|
+
readonly args: readonly [`0x${string}`];
|
|
29446
|
+
};
|
|
29447
|
+
/**
|
|
29448
|
+
* Returns the contract config to look up the plain token for a given confidential token.
|
|
29449
|
+
*
|
|
29450
|
+
* @example
|
|
29451
|
+
* ```ts
|
|
29452
|
+
* const [found, token] = await client.readContract(
|
|
29453
|
+
* getTokenAddressContract(registryAddress, confidentialTokenAddress),
|
|
29454
|
+
* );
|
|
29455
|
+
* ```
|
|
29456
|
+
*/
|
|
29457
|
+
declare function getTokenAddressContract(registry: Address, confidentialTokenAddress: Address): {
|
|
29458
|
+
readonly address: `0x${string}`;
|
|
29459
|
+
readonly abi: readonly [{
|
|
29460
|
+
readonly inputs: readonly [];
|
|
29461
|
+
readonly name: "getTokenConfidentialTokenPairs";
|
|
29462
|
+
readonly outputs: readonly [{
|
|
29463
|
+
readonly components: readonly [{
|
|
29464
|
+
readonly internalType: "address";
|
|
29465
|
+
readonly name: "tokenAddress";
|
|
29466
|
+
readonly type: "address";
|
|
29467
|
+
}, {
|
|
29468
|
+
readonly internalType: "address";
|
|
29469
|
+
readonly name: "confidentialTokenAddress";
|
|
29470
|
+
readonly type: "address";
|
|
29471
|
+
}, {
|
|
29472
|
+
readonly internalType: "bool";
|
|
29473
|
+
readonly name: "isValid";
|
|
29474
|
+
readonly type: "bool";
|
|
29475
|
+
}];
|
|
29476
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair[]";
|
|
29477
|
+
readonly name: "";
|
|
29478
|
+
readonly type: "tuple[]";
|
|
29479
|
+
}];
|
|
29480
|
+
readonly stateMutability: "view";
|
|
29481
|
+
readonly type: "function";
|
|
29482
|
+
}, {
|
|
29483
|
+
readonly inputs: readonly [];
|
|
29484
|
+
readonly name: "getTokenConfidentialTokenPairsLength";
|
|
29485
|
+
readonly outputs: readonly [{
|
|
29486
|
+
readonly internalType: "uint256";
|
|
29487
|
+
readonly name: "";
|
|
29488
|
+
readonly type: "uint256";
|
|
29489
|
+
}];
|
|
29490
|
+
readonly stateMutability: "view";
|
|
29491
|
+
readonly type: "function";
|
|
29492
|
+
}, {
|
|
29493
|
+
readonly inputs: readonly [{
|
|
29494
|
+
readonly internalType: "uint256";
|
|
29495
|
+
readonly name: "fromIndex";
|
|
29496
|
+
readonly type: "uint256";
|
|
29497
|
+
}, {
|
|
29498
|
+
readonly internalType: "uint256";
|
|
29499
|
+
readonly name: "toIndex";
|
|
29500
|
+
readonly type: "uint256";
|
|
29501
|
+
}];
|
|
29502
|
+
readonly name: "getTokenConfidentialTokenPairsSlice";
|
|
29503
|
+
readonly outputs: readonly [{
|
|
29504
|
+
readonly components: readonly [{
|
|
29505
|
+
readonly internalType: "address";
|
|
29506
|
+
readonly name: "tokenAddress";
|
|
29507
|
+
readonly type: "address";
|
|
29508
|
+
}, {
|
|
29509
|
+
readonly internalType: "address";
|
|
29510
|
+
readonly name: "confidentialTokenAddress";
|
|
29511
|
+
readonly type: "address";
|
|
29512
|
+
}, {
|
|
29513
|
+
readonly internalType: "bool";
|
|
29514
|
+
readonly name: "isValid";
|
|
29515
|
+
readonly type: "bool";
|
|
29516
|
+
}];
|
|
29517
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair[]";
|
|
29518
|
+
readonly name: "";
|
|
29519
|
+
readonly type: "tuple[]";
|
|
29520
|
+
}];
|
|
29521
|
+
readonly stateMutability: "view";
|
|
29522
|
+
readonly type: "function";
|
|
29523
|
+
}, {
|
|
29524
|
+
readonly inputs: readonly [{
|
|
29525
|
+
readonly internalType: "uint256";
|
|
29526
|
+
readonly name: "index";
|
|
29527
|
+
readonly type: "uint256";
|
|
29528
|
+
}];
|
|
29529
|
+
readonly name: "getTokenConfidentialTokenPair";
|
|
29530
|
+
readonly outputs: readonly [{
|
|
29531
|
+
readonly components: readonly [{
|
|
29532
|
+
readonly internalType: "address";
|
|
29533
|
+
readonly name: "tokenAddress";
|
|
29534
|
+
readonly type: "address";
|
|
29535
|
+
}, {
|
|
29536
|
+
readonly internalType: "address";
|
|
29537
|
+
readonly name: "confidentialTokenAddress";
|
|
29538
|
+
readonly type: "address";
|
|
29539
|
+
}, {
|
|
29540
|
+
readonly internalType: "bool";
|
|
29541
|
+
readonly name: "isValid";
|
|
29542
|
+
readonly type: "bool";
|
|
29543
|
+
}];
|
|
29544
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair";
|
|
29545
|
+
readonly name: "";
|
|
29546
|
+
readonly type: "tuple";
|
|
29547
|
+
}];
|
|
29548
|
+
readonly stateMutability: "view";
|
|
29549
|
+
readonly type: "function";
|
|
29550
|
+
}, {
|
|
29551
|
+
readonly inputs: readonly [{
|
|
29552
|
+
readonly internalType: "address";
|
|
29553
|
+
readonly name: "tokenAddress";
|
|
29554
|
+
readonly type: "address";
|
|
29555
|
+
}];
|
|
29556
|
+
readonly name: "getConfidentialTokenAddress";
|
|
29557
|
+
readonly outputs: readonly [{
|
|
29558
|
+
readonly internalType: "bool";
|
|
29559
|
+
readonly name: "";
|
|
29560
|
+
readonly type: "bool";
|
|
29561
|
+
}, {
|
|
29562
|
+
readonly internalType: "address";
|
|
29563
|
+
readonly name: "";
|
|
29564
|
+
readonly type: "address";
|
|
29565
|
+
}];
|
|
29566
|
+
readonly stateMutability: "view";
|
|
29567
|
+
readonly type: "function";
|
|
29568
|
+
}, {
|
|
29569
|
+
readonly inputs: readonly [{
|
|
29570
|
+
readonly internalType: "address";
|
|
29571
|
+
readonly name: "confidentialTokenAddress";
|
|
29572
|
+
readonly type: "address";
|
|
29573
|
+
}];
|
|
29574
|
+
readonly name: "getTokenAddress";
|
|
29575
|
+
readonly outputs: readonly [{
|
|
29576
|
+
readonly internalType: "bool";
|
|
29577
|
+
readonly name: "";
|
|
29578
|
+
readonly type: "bool";
|
|
29579
|
+
}, {
|
|
29580
|
+
readonly internalType: "address";
|
|
29581
|
+
readonly name: "";
|
|
29582
|
+
readonly type: "address";
|
|
29583
|
+
}];
|
|
29584
|
+
readonly stateMutability: "view";
|
|
29585
|
+
readonly type: "function";
|
|
29586
|
+
}, {
|
|
29587
|
+
readonly inputs: readonly [{
|
|
29588
|
+
readonly internalType: "address";
|
|
29589
|
+
readonly name: "confidentialTokenAddress";
|
|
29590
|
+
readonly type: "address";
|
|
29591
|
+
}];
|
|
29592
|
+
readonly name: "isConfidentialTokenValid";
|
|
29593
|
+
readonly outputs: readonly [{
|
|
29594
|
+
readonly internalType: "bool";
|
|
29595
|
+
readonly name: "";
|
|
29596
|
+
readonly type: "bool";
|
|
29597
|
+
}];
|
|
29598
|
+
readonly stateMutability: "view";
|
|
29599
|
+
readonly type: "function";
|
|
29600
|
+
}];
|
|
29601
|
+
readonly functionName: "getTokenAddress";
|
|
29602
|
+
readonly args: readonly [`0x${string}`];
|
|
29603
|
+
};
|
|
29604
|
+
/**
|
|
29605
|
+
* Returns the contract config to check if a confidential token is valid.
|
|
29606
|
+
*
|
|
29607
|
+
* @example
|
|
29608
|
+
* ```ts
|
|
29609
|
+
* const isValid = await client.readContract(
|
|
29610
|
+
* isConfidentialTokenValidContract(registryAddress, confidentialTokenAddress),
|
|
29611
|
+
* );
|
|
29612
|
+
* ```
|
|
29613
|
+
*/
|
|
29614
|
+
declare function isConfidentialTokenValidContract(registry: Address, confidentialTokenAddress: Address): {
|
|
29615
|
+
readonly address: `0x${string}`;
|
|
29616
|
+
readonly abi: readonly [{
|
|
29617
|
+
readonly inputs: readonly [];
|
|
29618
|
+
readonly name: "getTokenConfidentialTokenPairs";
|
|
29619
|
+
readonly outputs: readonly [{
|
|
29620
|
+
readonly components: readonly [{
|
|
29621
|
+
readonly internalType: "address";
|
|
29622
|
+
readonly name: "tokenAddress";
|
|
29623
|
+
readonly type: "address";
|
|
29624
|
+
}, {
|
|
29625
|
+
readonly internalType: "address";
|
|
29626
|
+
readonly name: "confidentialTokenAddress";
|
|
29627
|
+
readonly type: "address";
|
|
29628
|
+
}, {
|
|
29629
|
+
readonly internalType: "bool";
|
|
29630
|
+
readonly name: "isValid";
|
|
29631
|
+
readonly type: "bool";
|
|
29632
|
+
}];
|
|
29633
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair[]";
|
|
29634
|
+
readonly name: "";
|
|
29635
|
+
readonly type: "tuple[]";
|
|
29636
|
+
}];
|
|
29637
|
+
readonly stateMutability: "view";
|
|
29638
|
+
readonly type: "function";
|
|
29639
|
+
}, {
|
|
29640
|
+
readonly inputs: readonly [];
|
|
29641
|
+
readonly name: "getTokenConfidentialTokenPairsLength";
|
|
29642
|
+
readonly outputs: readonly [{
|
|
29643
|
+
readonly internalType: "uint256";
|
|
29644
|
+
readonly name: "";
|
|
29645
|
+
readonly type: "uint256";
|
|
29646
|
+
}];
|
|
29647
|
+
readonly stateMutability: "view";
|
|
29648
|
+
readonly type: "function";
|
|
29649
|
+
}, {
|
|
29650
|
+
readonly inputs: readonly [{
|
|
29651
|
+
readonly internalType: "uint256";
|
|
29652
|
+
readonly name: "fromIndex";
|
|
29653
|
+
readonly type: "uint256";
|
|
29654
|
+
}, {
|
|
29655
|
+
readonly internalType: "uint256";
|
|
29656
|
+
readonly name: "toIndex";
|
|
29657
|
+
readonly type: "uint256";
|
|
29658
|
+
}];
|
|
29659
|
+
readonly name: "getTokenConfidentialTokenPairsSlice";
|
|
29660
|
+
readonly outputs: readonly [{
|
|
29661
|
+
readonly components: readonly [{
|
|
29662
|
+
readonly internalType: "address";
|
|
29663
|
+
readonly name: "tokenAddress";
|
|
29664
|
+
readonly type: "address";
|
|
29665
|
+
}, {
|
|
29666
|
+
readonly internalType: "address";
|
|
29667
|
+
readonly name: "confidentialTokenAddress";
|
|
29668
|
+
readonly type: "address";
|
|
29669
|
+
}, {
|
|
29670
|
+
readonly internalType: "bool";
|
|
29671
|
+
readonly name: "isValid";
|
|
29672
|
+
readonly type: "bool";
|
|
29673
|
+
}];
|
|
29674
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair[]";
|
|
29675
|
+
readonly name: "";
|
|
29676
|
+
readonly type: "tuple[]";
|
|
29677
|
+
}];
|
|
29678
|
+
readonly stateMutability: "view";
|
|
29679
|
+
readonly type: "function";
|
|
29680
|
+
}, {
|
|
29681
|
+
readonly inputs: readonly [{
|
|
29682
|
+
readonly internalType: "uint256";
|
|
29683
|
+
readonly name: "index";
|
|
29684
|
+
readonly type: "uint256";
|
|
29685
|
+
}];
|
|
29686
|
+
readonly name: "getTokenConfidentialTokenPair";
|
|
29687
|
+
readonly outputs: readonly [{
|
|
29688
|
+
readonly components: readonly [{
|
|
29689
|
+
readonly internalType: "address";
|
|
29690
|
+
readonly name: "tokenAddress";
|
|
29691
|
+
readonly type: "address";
|
|
29692
|
+
}, {
|
|
29693
|
+
readonly internalType: "address";
|
|
29694
|
+
readonly name: "confidentialTokenAddress";
|
|
29695
|
+
readonly type: "address";
|
|
29696
|
+
}, {
|
|
29697
|
+
readonly internalType: "bool";
|
|
29698
|
+
readonly name: "isValid";
|
|
29699
|
+
readonly type: "bool";
|
|
29700
|
+
}];
|
|
29701
|
+
readonly internalType: "struct ConfidentialTokenWrappersRegistry.TokenWrapperPair";
|
|
29702
|
+
readonly name: "";
|
|
29703
|
+
readonly type: "tuple";
|
|
29704
|
+
}];
|
|
29705
|
+
readonly stateMutability: "view";
|
|
29706
|
+
readonly type: "function";
|
|
29707
|
+
}, {
|
|
29708
|
+
readonly inputs: readonly [{
|
|
29709
|
+
readonly internalType: "address";
|
|
29710
|
+
readonly name: "tokenAddress";
|
|
29711
|
+
readonly type: "address";
|
|
29712
|
+
}];
|
|
29713
|
+
readonly name: "getConfidentialTokenAddress";
|
|
29714
|
+
readonly outputs: readonly [{
|
|
29715
|
+
readonly internalType: "bool";
|
|
29716
|
+
readonly name: "";
|
|
29717
|
+
readonly type: "bool";
|
|
29718
|
+
}, {
|
|
29719
|
+
readonly internalType: "address";
|
|
29720
|
+
readonly name: "";
|
|
29721
|
+
readonly type: "address";
|
|
29722
|
+
}];
|
|
29723
|
+
readonly stateMutability: "view";
|
|
29724
|
+
readonly type: "function";
|
|
29725
|
+
}, {
|
|
29726
|
+
readonly inputs: readonly [{
|
|
29727
|
+
readonly internalType: "address";
|
|
29728
|
+
readonly name: "confidentialTokenAddress";
|
|
29729
|
+
readonly type: "address";
|
|
29730
|
+
}];
|
|
29731
|
+
readonly name: "getTokenAddress";
|
|
29732
|
+
readonly outputs: readonly [{
|
|
29733
|
+
readonly internalType: "bool";
|
|
29734
|
+
readonly name: "";
|
|
29735
|
+
readonly type: "bool";
|
|
29736
|
+
}, {
|
|
29737
|
+
readonly internalType: "address";
|
|
29738
|
+
readonly name: "";
|
|
29739
|
+
readonly type: "address";
|
|
29740
|
+
}];
|
|
29741
|
+
readonly stateMutability: "view";
|
|
29742
|
+
readonly type: "function";
|
|
29743
|
+
}, {
|
|
29744
|
+
readonly inputs: readonly [{
|
|
29745
|
+
readonly internalType: "address";
|
|
29746
|
+
readonly name: "confidentialTokenAddress";
|
|
29747
|
+
readonly type: "address";
|
|
29748
|
+
}];
|
|
29749
|
+
readonly name: "isConfidentialTokenValid";
|
|
29750
|
+
readonly outputs: readonly [{
|
|
29751
|
+
readonly internalType: "bool";
|
|
29752
|
+
readonly name: "";
|
|
29753
|
+
readonly type: "bool";
|
|
29754
|
+
}];
|
|
29755
|
+
readonly stateMutability: "view";
|
|
29756
|
+
readonly type: "function";
|
|
29757
|
+
}];
|
|
29758
|
+
readonly functionName: "isConfidentialTokenValid";
|
|
29759
|
+
readonly args: readonly [`0x${string}`];
|
|
29760
|
+
};
|
|
29761
|
+
//#endregion
|
|
29762
|
+
export { decimalsContract as A, confidentialTransferFromContract as B, isConfidentialWrapperContract as C, allowanceContract as D, wrapperExistsContract as E, wrapContract as F, setFinalizeUnwrapOperatorContract as G, isFinalizeUnwrapOperatorContract as H, wrapETHContract as I, unwrapContract as J, setOperatorContract as K, confidentialBalanceOfContract as L, symbolContract as M, finalizeUnwrapContract as N, approveContract as O, underlyingContract as P, confidentialTotalSupplyContract as R, isConfidentialTokenContract as S, getWrapperContract as T, isOperatorContract as U, deploymentCoordinatorContract as V, rateContract as W, unwrapFromBalanceContract as Y, getFeeRecipientContract as _, getTokenAddressContract as a, ERC7984_INTERFACE_ID as b, getTokenPairsLengthContract as c, delegateForUserDecryptionContract as d, getDelegationExpiryContract as f, getBatchTransferFeeContract as g, confidentialBatchTransferContract as h, getConfidentialTokenAddressContract as i, nameContract as j, balanceOfContract as k, getTokenPairsSliceContract as l, BatchTransferData as m, TokenWrapperPair as n, getTokenPairContract as o, revokeDelegationContract as p, totalSupplyContract as q, TokenWrapperPairWithMetadata as r, getTokenPairsContract as s, PaginatedResult as t, isConfidentialTokenValidContract as u, getUnwrapFeeContract as v, supportsInterfaceContract as w, ERC7984_WRAPPER_INTERFACE_ID as x, getWrapFeeContract as y, confidentialTransferContract as z };
|
|
29763
|
+
//# sourceMappingURL=index-IhsduS7h.d.ts.map
|