@dodoex/dodo-contract-request 1.34.0 → 1.35.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.
Files changed (80) hide show
  1. package/.cache/contract-info/DFTManager.json +2832 -0
  2. package/.cache/contract-info/ICHIVault.json +787 -0
  3. package/.cache/contract-info/RWAManager.json +1 -0
  4. package/.cache/contract-info/RWAToken.json +1 -0
  5. package/.cache/contract-info/TransparentUpgradeableProxyWithPros.json +2006 -0
  6. package/CHANGELOG.md +85 -21
  7. package/contract-config/arbitrum.json +1 -1
  8. package/contract-config/berachain.json +4 -2
  9. package/contract-config/birdlayer.json +66 -0
  10. package/contract-config/pharos-atlantic-testnet.json +2 -1
  11. package/contract-config/pharos.json +69 -0
  12. package/contract-config/rise.json +67 -0
  13. package/contract-config/sepolia.json +3 -1
  14. package/contract-config/zetachain-testnet.json +68 -0
  15. package/contract-config/zetachain.json +61 -0
  16. package/dist/index.cjs +1 -1
  17. package/dist/index.js +1 -1
  18. package/dist/types/config/birdlayer.d.ts +29 -0
  19. package/dist/types/config/index.d.ts +10 -0
  20. package/dist/types/config/pharos-atlantic-testnet.d.ts +1 -0
  21. package/dist/types/config/pharos.d.ts +33 -0
  22. package/dist/types/config/rise.d.ts +33 -0
  23. package/dist/types/config/sepolia.d.ts +2 -0
  24. package/dist/types/config/zetachain-testnet.d.ts +32 -0
  25. package/dist/types/config/zetachain.d.ts +30 -0
  26. package/dist/types/contract/DFTManager.d.ts +994 -0
  27. package/dist/types/contract/FeeRateDIP3Impl.d.ts +30 -21
  28. package/dist/types/contract/ICHIVault.d.ts +516 -0
  29. package/dist/types/contract/RWAManager.d.ts +264 -0
  30. package/dist/types/contract/RWAToken.d.ts +179 -0
  31. package/dist/types/contract/TransparentUpgradeableProxyWithPros.d.ts +679 -0
  32. package/dist/types/index.d.ts +5 -0
  33. package/package.json +1 -1
  34. package/scripts/contract-generate.ts +1 -0
  35. package/src/config/birdlayer.ts +4 -0
  36. package/src/config/index.ts +21 -1
  37. package/src/config/pharos-atlantic-testnet.ts +1 -1
  38. package/src/config/pharos.ts +4 -0
  39. package/src/config/rise.ts +4 -0
  40. package/src/config/sepolia.ts +1 -1
  41. package/src/config/zetachain-testnet.ts +4 -0
  42. package/src/config/zetachain.ts +4 -0
  43. package/src/contract/CrowdPoolingFactory.ts +1 -1
  44. package/src/contract/DFTManager.ts +1222 -0
  45. package/src/contract/DODOApprove.ts +1 -1
  46. package/src/contract/DODOApproveProxy.ts +1 -1
  47. package/src/contract/DODOCalleeHelper.ts +1 -1
  48. package/src/contract/DODOCpProxy.ts +1 -1
  49. package/src/contract/DODODppProxy.ts +1 -1
  50. package/src/contract/DODODspProxy.ts +1 -1
  51. package/src/contract/DODODspProxyWithoutGSP.ts +1 -1
  52. package/src/contract/DODOFeeRouteProxy1.ts +1 -1
  53. package/src/contract/DODOFeeRouteProxy2.ts +1 -1
  54. package/src/contract/DODOMineV2Factory.ts +1 -1
  55. package/src/contract/DODOMineV3Proxy.ts +1 -1
  56. package/src/contract/DODOMineV3Registry.ts +1 -1
  57. package/src/contract/DODOSellHelper.ts +1 -1
  58. package/src/contract/DODOSwapCalcHelper.ts +1 -1
  59. package/src/contract/DODOV1PmmHelper.ts +1 -1
  60. package/src/contract/DODOV2Adapter.ts +1 -1
  61. package/src/contract/DODOV2Proxy02.ts +1 -1
  62. package/src/contract/DODOV2RouteHelper.ts +1 -1
  63. package/src/contract/DPPFactory.ts +1 -1
  64. package/src/contract/DSPFactory.ts +1 -1
  65. package/src/contract/DVMFactory.ts +1 -1
  66. package/src/contract/ERC20Helper.ts +1 -1
  67. package/src/contract/ERC20V3Factory.ts +1 -1
  68. package/src/contract/FeeRateDIP3Impl.ts +61 -75
  69. package/src/contract/GSPFactory.ts +1 -1
  70. package/src/contract/ICHIVault.ts +863 -0
  71. package/src/contract/Multicall.ts +1 -1
  72. package/src/contract/MulticallWithValid.ts +1 -1
  73. package/src/contract/NonfungiblePositionManager.ts +1 -1
  74. package/src/contract/RWAManager.ts +479 -0
  75. package/src/contract/RWAToken.ts +330 -0
  76. package/src/contract/TransparentUpgradeableProxyWithPros.ts +1226 -0
  77. package/src/contract/UniswapV2Factory.ts +1 -1
  78. package/src/contract/UniswapV2Router02.ts +1 -1
  79. package/src/contract/UniswapV3Factory.ts +1 -1
  80. package/src/index.ts +5 -0
@@ -2,30 +2,25 @@ import { defaultAbiCoder, concat, hexlify } from '@dodoex/contract-request';
2
2
 
3
3
  import { contractRequests } from '../contractRequests';
4
4
 
5
- export function getFeeRateDIP3ImplContractAddressByChainId(chainId: number) {
6
- const contractAddressObject = {"1":"0x97bBF5BB1dcfC93A8c67e97E50Bea19DB3416A83","10":"0x97bBF5BB1dcfC93A8c67e97E50Bea19DB3416A83","56":"0x04bfc975eb76ac870c1bce812992ab3767d809b6","137":"0x6292e8f7647b3b9dDf5795b1Fb77D0187e30E0F9","196":"0x1235FF08D583d8Ab05f2FD18250120CBb47f9F49","1030":"0x6D208e3dD3ba8dc7b0D23D6Bf15fef9324643984","2818":"0xf7A57DeadcFa3030Ddbf9E1ad371DB3148BC7cB6","5000":"0x6a9De0C6235bDD14B52eeA53F5a08Ff7D4183b3e","8453":"0x4aAe1d041C01078725dB016BA4D4F72455CaF931","10169":"0x4aAe1d041C01078725dB016BA4D4F72455CaF931","42161":"0x97bBF5BB1dcfC93A8c67e97E50Bea19DB3416A83","43114":"0xB2570F5381ee94dd75FbF303e6889F19199922AA","48900":"0x1235FF08D583d8Ab05f2FD18250120CBb47f9F49","59144":"0x65934e2f228Fde069A6255F46E6A15Bc9DE38545","80084":"0x717dd69514175be82266965851DC2EF550fbC809","167000":"0xf7A57DeadcFa3030Ddbf9E1ad371DB3148BC7cB6","200901":"0x4dA809758CC45F28eACeF6B538c599C0E9a42772","534352":"0x4aAe1d041C01078725dB016BA4D4F72455CaF931","543210":"0xa9CcAcf2EA9694882d948DEa138BF3cCA27EB83e","11155111":"0x89872650fA1A391f58B4E144222bB02e44db7e3B","1313161554":"0x16601C94Ad6E26904a519C08a7A1fCBC8e1F9D9c"};
7
- const result = contractAddressObject[String(chainId) as keyof typeof contractAddressObject];
8
- return result
9
- }
5
+
10
6
 
11
7
  /**
12
8
  * fetch _LP_MT_RATIO_
13
9
  * @param {number} chainId - number
10
+ * @param {string} __to - string
14
11
  * @returns {bigint} __output0 - uint256
15
12
  */
16
- export function fetchFeeRateDIP3Impl_LP_MT_RATIO_(chainId: number): Promise<bigint> {
17
- const __to = getFeeRateDIP3ImplContractAddressByChainId(chainId);
18
-
13
+ export function fetchFeeRateDIP3Impl_LP_MT_RATIO_(chainId: number, __to: string): Promise<bigint> {
19
14
  const __encodeData = defaultAbiCoder.encode([], []);
20
15
  const __data = hexlify(concat(['0xb1efb8f4', __encodeData]));
21
16
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
22
17
  }
23
- export function getFetchFeeRateDIP3Impl_LP_MT_RATIO_QueryOptions(chainId: number | undefined) {
18
+ export function getFetchFeeRateDIP3Impl_LP_MT_RATIO_QueryOptions(chainId: number | undefined, __to: string | undefined) {
24
19
  return {
25
- queryKey: ['contract-request', 'fetchFeeRateDIP3Impl_LP_MT_RATIO_', chainId],
26
- enabled: chainId !== undefined && chainId !== null,
20
+ queryKey: ['contract-request', 'fetchFeeRateDIP3Impl_LP_MT_RATIO_', chainId, __to],
21
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
27
22
  queryFn: () => {
28
- return fetchFeeRateDIP3Impl_LP_MT_RATIO_(chainId as number);
23
+ return fetchFeeRateDIP3Impl_LP_MT_RATIO_(chainId as number,__to as string);
29
24
  }
30
25
  }
31
26
  }
@@ -33,21 +28,20 @@ export function getFetchFeeRateDIP3Impl_LP_MT_RATIO_QueryOptions(chainId: number
33
28
  /**
34
29
  * fetch _NEW_OWNER_
35
30
  * @param {number} chainId - number
31
+ * @param {string} __to - string
36
32
  * @returns {string} __output0 - address
37
33
  */
38
- export function fetchFeeRateDIP3Impl_NEW_OWNER_(chainId: number): Promise<string> {
39
- const __to = getFeeRateDIP3ImplContractAddressByChainId(chainId);
40
-
34
+ export function fetchFeeRateDIP3Impl_NEW_OWNER_(chainId: number, __to: string): Promise<string> {
41
35
  const __encodeData = defaultAbiCoder.encode([], []);
42
36
  const __data = hexlify(concat(['0x8456db15', __encodeData]));
43
37
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
44
38
  }
45
- export function getFetchFeeRateDIP3Impl_NEW_OWNER_QueryOptions(chainId: number | undefined) {
39
+ export function getFetchFeeRateDIP3Impl_NEW_OWNER_QueryOptions(chainId: number | undefined, __to: string | undefined) {
46
40
  return {
47
- queryKey: ['contract-request', 'fetchFeeRateDIP3Impl_NEW_OWNER_', chainId],
48
- enabled: chainId !== undefined && chainId !== null,
41
+ queryKey: ['contract-request', 'fetchFeeRateDIP3Impl_NEW_OWNER_', chainId, __to],
42
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
49
43
  queryFn: () => {
50
- return fetchFeeRateDIP3Impl_NEW_OWNER_(chainId as number);
44
+ return fetchFeeRateDIP3Impl_NEW_OWNER_(chainId as number,__to as string);
51
45
  }
52
46
  }
53
47
  }
@@ -55,21 +49,20 @@ export function getFetchFeeRateDIP3Impl_NEW_OWNER_QueryOptions(chainId: number |
55
49
  /**
56
50
  * fetch _OWNER_
57
51
  * @param {number} chainId - number
52
+ * @param {string} __to - string
58
53
  * @returns {string} __output0 - address
59
54
  */
60
- export function fetchFeeRateDIP3Impl_OWNER_(chainId: number): Promise<string> {
61
- const __to = getFeeRateDIP3ImplContractAddressByChainId(chainId);
62
-
55
+ export function fetchFeeRateDIP3Impl_OWNER_(chainId: number, __to: string): Promise<string> {
63
56
  const __encodeData = defaultAbiCoder.encode([], []);
64
57
  const __data = hexlify(concat(['0x16048bc4', __encodeData]));
65
58
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
66
59
  }
67
- export function getFetchFeeRateDIP3Impl_OWNER_QueryOptions(chainId: number | undefined) {
60
+ export function getFetchFeeRateDIP3Impl_OWNER_QueryOptions(chainId: number | undefined, __to: string | undefined) {
68
61
  return {
69
- queryKey: ['contract-request', 'fetchFeeRateDIP3Impl_OWNER_', chainId],
70
- enabled: chainId !== undefined && chainId !== null,
62
+ queryKey: ['contract-request', 'fetchFeeRateDIP3Impl_OWNER_', chainId, __to],
63
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
71
64
  queryFn: () => {
72
- return fetchFeeRateDIP3Impl_OWNER_(chainId as number);
65
+ return fetchFeeRateDIP3Impl_OWNER_(chainId as number,__to as string);
73
66
  }
74
67
  }
75
68
  }
@@ -77,20 +70,19 @@ export function getFetchFeeRateDIP3Impl_OWNER_QueryOptions(chainId: number | und
77
70
  /**
78
71
  * fetch cpPools
79
72
  * @param {number} chainId - number
73
+ * @param {string} __to - string
80
74
  * @param {string} __input1 - address
81
75
  * @returns {string} quoteToken - address
82
76
  * @returns {bigint} globalQuota - int256
83
77
  * @returns {string} feeAddr - address
84
78
  * @returns {string} quotaAddr - address
85
79
  */
86
- export function fetchFeeRateDIP3ImplCpPools(chainId: number, __input1: string): Promise<{
80
+ export function fetchFeeRateDIP3ImplCpPools(chainId: number, __to: string, __input1: string): Promise<{
87
81
  quoteToken: string;
88
82
  globalQuota: bigint;
89
83
  feeAddr: string;
90
84
  quotaAddr: string;
91
85
  }> {
92
- const __to = getFeeRateDIP3ImplContractAddressByChainId(chainId);
93
-
94
86
  const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
95
87
  const __data = hexlify(concat(['0x68f0cb6f', __encodeData]));
96
88
  return contractRequests.batchCall<{
@@ -100,12 +92,12 @@ export function fetchFeeRateDIP3ImplCpPools(chainId: number, __input1: string):
100
92
  quotaAddr: string;
101
93
  }>(chainId, __to, __data, [{"internalType":"address","name":"quoteToken","type":"address"},{"internalType":"int256","name":"globalQuota","type":"int256"},{"internalType":"address","name":"feeAddr","type":"address"},{"internalType":"address","name":"quotaAddr","type":"address"}])
102
94
  }
103
- export function getFetchFeeRateDIP3ImplCpPoolsQueryOptions(chainId: number | undefined, __input1: string | undefined) {
95
+ export function getFetchFeeRateDIP3ImplCpPoolsQueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined) {
104
96
  return {
105
- queryKey: ['contract-request', 'fetchFeeRateDIP3ImplCpPools', chainId, __input1],
106
- enabled: chainId !== undefined && chainId !== null && __input1 !== undefined && __input1 !== null,
97
+ queryKey: ['contract-request', 'fetchFeeRateDIP3ImplCpPools', chainId, __to, __input1],
98
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && __input1 !== undefined && __input1 !== null,
107
99
  queryFn: () => {
108
- return fetchFeeRateDIP3ImplCpPools(chainId as number,__input1 as string);
100
+ return fetchFeeRateDIP3ImplCpPools(chainId as number,__to as string,__input1 as string);
109
101
  }
110
102
  }
111
103
  }
@@ -113,19 +105,18 @@ export function getFetchFeeRateDIP3ImplCpPoolsQueryOptions(chainId: number | und
113
105
  /**
114
106
  * fetch getCPInfoByUser
115
107
  * @param {number} chainId - number
108
+ * @param {string} __to - string
116
109
  * @param {string} pool - address
117
110
  * @param {string} user - address
118
111
  * @returns {boolean} isHaveCap - bool
119
112
  * @returns {bigint} curQuota - int256
120
113
  * @returns {bigint} userFee - uint256
121
114
  */
122
- export function fetchFeeRateDIP3ImplGetCPInfoByUser(chainId: number, pool: string, user: string): Promise<{
115
+ export function fetchFeeRateDIP3ImplGetCPInfoByUser(chainId: number, __to: string, pool: string, user: string): Promise<{
123
116
  isHaveCap: boolean;
124
117
  curQuota: bigint;
125
118
  userFee: bigint;
126
119
  }> {
127
- const __to = getFeeRateDIP3ImplContractAddressByChainId(chainId);
128
-
129
120
  const __encodeData = defaultAbiCoder.encode(["address","address"], [pool,user]);
130
121
  const __data = hexlify(concat(['0xfae783d8', __encodeData]));
131
122
  return contractRequests.batchCall<{
@@ -134,12 +125,12 @@ export function fetchFeeRateDIP3ImplGetCPInfoByUser(chainId: number, pool: strin
134
125
  userFee: bigint;
135
126
  }>(chainId, __to, __data, [{"internalType":"bool","name":"isHaveCap","type":"bool"},{"internalType":"int256","name":"curQuota","type":"int256"},{"internalType":"uint256","name":"userFee","type":"uint256"}])
136
127
  }
137
- export function getFetchFeeRateDIP3ImplGetCPInfoByUserQueryOptions(chainId: number | undefined, pool: string | undefined, user: string | undefined) {
128
+ export function getFetchFeeRateDIP3ImplGetCPInfoByUserQueryOptions(chainId: number | undefined, __to: string | undefined, pool: string | undefined, user: string | undefined) {
138
129
  return {
139
- queryKey: ['contract-request', 'fetchFeeRateDIP3ImplGetCPInfoByUser', chainId, pool, user],
140
- enabled: chainId !== undefined && chainId !== null && pool !== undefined && pool !== null && user !== undefined && user !== null,
130
+ queryKey: ['contract-request', 'fetchFeeRateDIP3ImplGetCPInfoByUser', chainId, __to, pool, user],
131
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && pool !== undefined && pool !== null && user !== undefined && user !== null,
141
132
  queryFn: () => {
142
- return fetchFeeRateDIP3ImplGetCPInfoByUser(chainId as number,pool as string,user as string);
133
+ return fetchFeeRateDIP3ImplGetCPInfoByUser(chainId as number,__to as string,pool as string,user as string);
143
134
  }
144
135
  }
145
136
  }
@@ -147,23 +138,22 @@ export function getFetchFeeRateDIP3ImplGetCPInfoByUserQueryOptions(chainId: numb
147
138
  /**
148
139
  * fetch getFeeRate
149
140
  * @param {number} chainId - number
141
+ * @param {string} __to - string
150
142
  * @param {string} pool - address
151
143
  * @param {string} user - address
152
144
  * @returns {bigint} __output0 - uint256
153
145
  */
154
- export function fetchFeeRateDIP3ImplGetFeeRate(chainId: number, pool: string, user: string): Promise<bigint> {
155
- const __to = getFeeRateDIP3ImplContractAddressByChainId(chainId);
156
-
146
+ export function fetchFeeRateDIP3ImplGetFeeRate(chainId: number, __to: string, pool: string, user: string): Promise<bigint> {
157
147
  const __encodeData = defaultAbiCoder.encode(["address","address"], [pool,user]);
158
148
  const __data = hexlify(concat(['0x848cc303', __encodeData]));
159
149
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
160
150
  }
161
- export function getFetchFeeRateDIP3ImplGetFeeRateQueryOptions(chainId: number | undefined, pool: string | undefined, user: string | undefined) {
151
+ export function getFetchFeeRateDIP3ImplGetFeeRateQueryOptions(chainId: number | undefined, __to: string | undefined, pool: string | undefined, user: string | undefined) {
162
152
  return {
163
- queryKey: ['contract-request', 'fetchFeeRateDIP3ImplGetFeeRate', chainId, pool, user],
164
- enabled: chainId !== undefined && chainId !== null && pool !== undefined && pool !== null && user !== undefined && user !== null,
153
+ queryKey: ['contract-request', 'fetchFeeRateDIP3ImplGetFeeRate', chainId, __to, pool, user],
154
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && pool !== undefined && pool !== null && user !== undefined && user !== null,
165
155
  queryFn: () => {
166
- return fetchFeeRateDIP3ImplGetFeeRate(chainId as number,pool as string,user as string);
156
+ return fetchFeeRateDIP3ImplGetFeeRate(chainId as number,__to as string,pool as string,user as string);
167
157
  }
168
158
  }
169
159
  }
@@ -171,22 +161,21 @@ export function getFetchFeeRateDIP3ImplGetFeeRateQueryOptions(chainId: number |
171
161
  /**
172
162
  * fetch isAdminListed
173
163
  * @param {number} chainId - number
164
+ * @param {string} __to - string
174
165
  * @param {string} __input1 - address
175
166
  * @returns {boolean} __output0 - bool
176
167
  */
177
- export function fetchFeeRateDIP3ImplIsAdminListed(chainId: number, __input1: string): Promise<boolean> {
178
- const __to = getFeeRateDIP3ImplContractAddressByChainId(chainId);
179
-
168
+ export function fetchFeeRateDIP3ImplIsAdminListed(chainId: number, __to: string, __input1: string): Promise<boolean> {
180
169
  const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
181
170
  const __data = hexlify(concat(['0x1822c0c0', __encodeData]));
182
171
  return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
183
172
  }
184
- export function getFetchFeeRateDIP3ImplIsAdminListedQueryOptions(chainId: number | undefined, __input1: string | undefined) {
173
+ export function getFetchFeeRateDIP3ImplIsAdminListedQueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined) {
185
174
  return {
186
- queryKey: ['contract-request', 'fetchFeeRateDIP3ImplIsAdminListed', chainId, __input1],
187
- enabled: chainId !== undefined && chainId !== null && __input1 !== undefined && __input1 !== null,
175
+ queryKey: ['contract-request', 'fetchFeeRateDIP3ImplIsAdminListed', chainId, __to, __input1],
176
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && __input1 !== undefined && __input1 !== null,
188
177
  queryFn: () => {
189
- return fetchFeeRateDIP3ImplIsAdminListed(chainId as number,__input1 as string);
178
+ return fetchFeeRateDIP3ImplIsAdminListed(chainId as number,__to as string,__input1 as string);
190
179
  }
191
180
  }
192
181
  }
@@ -194,21 +183,20 @@ export function getFetchFeeRateDIP3ImplIsAdminListedQueryOptions(chainId: number
194
183
  /**
195
184
  * fetch poolHeartBeat
196
185
  * @param {number} chainId - number
186
+ * @param {string} __to - string
197
187
  * @returns {string} __output0 - address
198
188
  */
199
- export function fetchFeeRateDIP3ImplPoolHeartBeat(chainId: number): Promise<string> {
200
- const __to = getFeeRateDIP3ImplContractAddressByChainId(chainId);
201
-
189
+ export function fetchFeeRateDIP3ImplPoolHeartBeat(chainId: number, __to: string): Promise<string> {
202
190
  const __encodeData = defaultAbiCoder.encode([], []);
203
191
  const __data = hexlify(concat(['0x8c343296', __encodeData]));
204
192
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
205
193
  }
206
- export function getFetchFeeRateDIP3ImplPoolHeartBeatQueryOptions(chainId: number | undefined) {
194
+ export function getFetchFeeRateDIP3ImplPoolHeartBeatQueryOptions(chainId: number | undefined, __to: string | undefined) {
207
195
  return {
208
- queryKey: ['contract-request', 'fetchFeeRateDIP3ImplPoolHeartBeat', chainId],
209
- enabled: chainId !== undefined && chainId !== null,
196
+ queryKey: ['contract-request', 'fetchFeeRateDIP3ImplPoolHeartBeat', chainId, __to],
197
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
210
198
  queryFn: () => {
211
- return fetchFeeRateDIP3ImplPoolHeartBeat(chainId as number);
199
+ return fetchFeeRateDIP3ImplPoolHeartBeat(chainId as number,__to as string);
212
200
  }
213
201
  }
214
202
  }
@@ -216,22 +204,21 @@ export function getFetchFeeRateDIP3ImplPoolHeartBeatQueryOptions(chainId: number
216
204
  /**
217
205
  * fetch specPoolList
218
206
  * @param {number} chainId - number
207
+ * @param {string} __to - string
219
208
  * @param {string} __input1 - address
220
209
  * @returns {bigint} __output0 - uint256
221
210
  */
222
- export function fetchFeeRateDIP3ImplSpecPoolList(chainId: number, __input1: string): Promise<bigint> {
223
- const __to = getFeeRateDIP3ImplContractAddressByChainId(chainId);
224
-
211
+ export function fetchFeeRateDIP3ImplSpecPoolList(chainId: number, __to: string, __input1: string): Promise<bigint> {
225
212
  const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
226
213
  const __data = hexlify(concat(['0x8614c552', __encodeData]));
227
214
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
228
215
  }
229
- export function getFetchFeeRateDIP3ImplSpecPoolListQueryOptions(chainId: number | undefined, __input1: string | undefined) {
216
+ export function getFetchFeeRateDIP3ImplSpecPoolListQueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined) {
230
217
  return {
231
- queryKey: ['contract-request', 'fetchFeeRateDIP3ImplSpecPoolList', chainId, __input1],
232
- enabled: chainId !== undefined && chainId !== null && __input1 !== undefined && __input1 !== null,
218
+ queryKey: ['contract-request', 'fetchFeeRateDIP3ImplSpecPoolList', chainId, __to, __input1],
219
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && __input1 !== undefined && __input1 !== null,
233
220
  queryFn: () => {
234
- return fetchFeeRateDIP3ImplSpecPoolList(chainId as number,__input1 as string);
221
+ return fetchFeeRateDIP3ImplSpecPoolList(chainId as number,__to as string,__input1 as string);
235
222
  }
236
223
  }
237
224
  }
@@ -239,21 +226,20 @@ export function getFetchFeeRateDIP3ImplSpecPoolListQueryOptions(chainId: number
239
226
  /**
240
227
  * fetch version
241
228
  * @param {number} chainId - number
229
+ * @param {string} __to - string
242
230
  * @returns {string} __output0 - string
243
231
  */
244
- export function fetchFeeRateDIP3ImplVersion(chainId: number): Promise<string> {
245
- const __to = getFeeRateDIP3ImplContractAddressByChainId(chainId);
246
-
232
+ export function fetchFeeRateDIP3ImplVersion(chainId: number, __to: string): Promise<string> {
247
233
  const __encodeData = defaultAbiCoder.encode([], []);
248
234
  const __data = hexlify(concat(['0x54fd4d50', __encodeData]));
249
235
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
250
236
  }
251
- export function getFetchFeeRateDIP3ImplVersionQueryOptions(chainId: number | undefined) {
237
+ export function getFetchFeeRateDIP3ImplVersionQueryOptions(chainId: number | undefined, __to: string | undefined) {
252
238
  return {
253
- queryKey: ['contract-request', 'fetchFeeRateDIP3ImplVersion', chainId],
254
- enabled: chainId !== undefined && chainId !== null,
239
+ queryKey: ['contract-request', 'fetchFeeRateDIP3ImplVersion', chainId, __to],
240
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
255
241
  queryFn: () => {
256
- return fetchFeeRateDIP3ImplVersion(chainId as number);
242
+ return fetchFeeRateDIP3ImplVersion(chainId as number,__to as string);
257
243
  }
258
244
  }
259
245
  }
@@ -3,7 +3,7 @@ import { defaultAbiCoder, concat, hexlify } from '@dodoex/contract-request';
3
3
  import { contractRequests } from '../contractRequests';
4
4
 
5
5
  export function getGSPFactoryContractAddressByChainId(chainId: number) {
6
- const contractAddressObject = {"1":"0x710409D2121B7C8EA4aCAdd6803FDE2D85DF6473","143":"0xF9a6c9BE0a1149C69EF537359c78DeB5e6264ec6","173":"0x82B26eb18382f7532015248078AB1f6030413396","177":"0xc6F5e5Ff8AbBe6A94A879A1E378c101E2A6bb9e6","196":"0x5e132c0ABB9e4E5f1471eF6d1C9740c276Fe520e","988":"0x391f8D754E4BaC453d059BA7D2137C4905bF48d4","1689":"0x2235bB894b7600F1a370fc595Ee5477999A30441","2201":"0xB88f7eb2dA59E1E8E00E0158b195D5ca48403921","2390":"0x4c639e4d0bfeC3D0766AAA0500Ae7e91418505Bf","2818":"0x2235bB894b7600F1a370fc595Ee5477999A30441","10143":"0x470525b96b84dE0A5D5fBA2053ba903FD031d3fF","43111":"0x2235bB894b7600F1a370fc595Ee5477999A30441","47763":"0x7d6FF4f2bEdea9a757F1a5667b40Cb78c2be47Af","80084":"0x9Ac82EAD1945dF394867df6A053f7375634710fb","80094":"0x2235bB894b7600F1a370fc595Ee5477999A30441","98864":"0x6db1ed60c9d6090C87a280a0592365EE83Ca87Ed","98866":"0x82B26eb18382f7532015248078AB1f6030413396","167000":"0x2235bB894b7600F1a370fc595Ee5477999A30441","543210":"0x1E080d9c6133e98A955F6020711AFAf73265A7F6","688688":"0x2672B3BE415Ba0644f2e7d37c6E0Bca294872Ebc","688689":"0x6db1ed60c9d6090C87a280a0592365EE83Ca87Ed","11155931":"0x9Ac82EAD1945dF394867df6A053f7375634710fb"};
6
+ const contractAddressObject = {"1":"0x710409D2121B7C8EA4aCAdd6803FDE2D85DF6473","143":"0xF9a6c9BE0a1149C69EF537359c78DeB5e6264ec6","173":"0x82B26eb18382f7532015248078AB1f6030413396","177":"0xc6F5e5Ff8AbBe6A94A879A1E378c101E2A6bb9e6","196":"0x5e132c0ABB9e4E5f1471eF6d1C9740c276Fe520e","988":"0x391f8D754E4BaC453d059BA7D2137C4905bF48d4","1672":"0xD15f2D50bbf777EFD529052686d0703e498F8380","1689":"0x2235bB894b7600F1a370fc595Ee5477999A30441","2201":"0xB88f7eb2dA59E1E8E00E0158b195D5ca48403921","2390":"0x4c639e4d0bfeC3D0766AAA0500Ae7e91418505Bf","2818":"0x2235bB894b7600F1a370fc595Ee5477999A30441","4153":"0xfcd8EF54A4dA96dE6B2DDF67C6265C7405a3A9c6","7000":"0xa97c5a70Be5B81f573a688F656E7bE569B492A56","7001":"0xBb5a0bF38C0BeA6829fDFef931B7988c8fF00a78","10143":"0x470525b96b84dE0A5D5fBA2053ba903FD031d3fF","43111":"0x2235bB894b7600F1a370fc595Ee5477999A30441","47763":"0x7d6FF4f2bEdea9a757F1a5667b40Cb78c2be47Af","53456":"0xF9a6c9BE0a1149C69EF537359c78DeB5e6264ec6","80084":"0x9Ac82EAD1945dF394867df6A053f7375634710fb","80094":"0x2235bB894b7600F1a370fc595Ee5477999A30441","98864":"0x6db1ed60c9d6090C87a280a0592365EE83Ca87Ed","98866":"0x82B26eb18382f7532015248078AB1f6030413396","167000":"0x2235bB894b7600F1a370fc595Ee5477999A30441","543210":"0x1E080d9c6133e98A955F6020711AFAf73265A7F6","688688":"0x2672B3BE415Ba0644f2e7d37c6E0Bca294872Ebc","688689":"0x6db1ed60c9d6090C87a280a0592365EE83Ca87Ed","11155931":"0x9Ac82EAD1945dF394867df6A053f7375634710fb"};
7
7
  const result = contractAddressObject[String(chainId) as keyof typeof contractAddressObject];
8
8
  return result
9
9
  }