@dodoex/dodo-contract-request 1.5.0 → 1.6.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 (134) hide show
  1. package/.releaserc.json +8 -3
  2. package/CHANGELOG.md +15 -25
  3. package/contract-config/sepolia.json +2 -2
  4. package/dist/index.cjs +1 -1
  5. package/dist/index.js +1 -1
  6. package/dist/types/contract/BuyoutModel.d.ts +42 -12
  7. package/dist/types/contract/CP.d.ts +214 -50
  8. package/dist/types/contract/CloneFactory.d.ts +1 -1
  9. package/dist/types/contract/CrowdPoolingFactory.d.ts +126 -34
  10. package/dist/types/contract/CustomERC20.d.ts +75 -20
  11. package/dist/types/contract/CustomMintableERC20.d.ts +77 -22
  12. package/dist/types/contract/D3Proxy.d.ts +33 -13
  13. package/dist/types/contract/D3Vault.d.ts +324 -123
  14. package/dist/types/contract/DODOApprove.d.ts +44 -14
  15. package/dist/types/contract/DODOApproveProxy.d.ts +51 -16
  16. package/dist/types/contract/DODOCalleeHelper.d.ts +10 -5
  17. package/dist/types/contract/DODOCirculationHelper.d.ts +47 -12
  18. package/dist/types/contract/DODOCpProxy.d.ts +20 -5
  19. package/dist/types/contract/DODOCpProxyWithoutGlobalQuota.d.ts +20 -5
  20. package/dist/types/contract/DODODppProxy.d.ts +20 -5
  21. package/dist/types/contract/DODODspProxy.d.ts +27 -7
  22. package/dist/types/contract/DODODspProxyWithoutGSP.d.ts +20 -5
  23. package/dist/types/contract/DODOIncentive.d.ts +75 -26
  24. package/dist/types/contract/DODOMineV2Factory.d.ts +50 -15
  25. package/dist/types/contract/DODOMineV3Proxy.d.ts +43 -13
  26. package/dist/types/contract/DODOMineV3ProxyWithoutPlatform.d.ts +43 -13
  27. package/dist/types/contract/DODOMineV3Registry.d.ts +43 -13
  28. package/dist/types/contract/DODONFT.d.ts +95 -25
  29. package/dist/types/contract/DODONFT1155.d.ts +56 -16
  30. package/dist/types/contract/DODONFTApprove.d.ts +47 -17
  31. package/dist/types/contract/DODONFTPoolProxy.d.ts +74 -24
  32. package/dist/types/contract/DODONFTProxy.d.ts +84 -24
  33. package/dist/types/contract/DODONFTRegistry.d.ts +49 -17
  34. package/dist/types/contract/DODONFTRouteHelper.d.ts +12 -2
  35. package/dist/types/contract/DODOSellHelper.d.ts +12 -2
  36. package/dist/types/contract/DODOStarterProxy.d.ts +13 -3
  37. package/dist/types/contract/DODOV1.d.ts +269 -77
  38. package/dist/types/contract/DODOV1Adapter.d.ts +8 -3
  39. package/dist/types/contract/DODOV1PmmHelper.d.ts +6 -1
  40. package/dist/types/contract/DODOV1Proxy.d.ts +13 -8
  41. package/dist/types/contract/DODOV2Proxy02.d.ts +97 -32
  42. package/dist/types/contract/DODOV2RouteHelper.d.ts +24 -4
  43. package/dist/types/contract/DPPAdvanced.d.ts +172 -69
  44. package/dist/types/contract/DPPAdvancedAdmin.d.ts +51 -16
  45. package/dist/types/contract/DPPFactory.d.ts +97 -30
  46. package/dist/types/contract/DSP.d.ts +221 -78
  47. package/dist/types/contract/DSPFactory.d.ts +73 -21
  48. package/dist/types/contract/DVM.d.ts +203 -71
  49. package/dist/types/contract/DVMFactory.d.ts +73 -21
  50. package/dist/types/contract/ERC20.d.ts +41 -11
  51. package/dist/types/contract/ERC20Helper.d.ts +24 -23
  52. package/dist/types/contract/ERC20MineV3.d.ts +91 -36
  53. package/dist/types/contract/ERC20V3Factory.d.ts +77 -26
  54. package/dist/types/contract/FeeRateDIP3Impl.d.ts +71 -30
  55. package/dist/types/contract/FeeRateModel.d.ts +28 -8
  56. package/dist/types/contract/GSP.d.ts +265 -95
  57. package/dist/types/contract/GSPFactory.d.ts +68 -21
  58. package/dist/types/contract/InitializableERC20.d.ts +46 -11
  59. package/dist/types/contract/LimitOrder.d.ts +71 -21
  60. package/dist/types/contract/LimitOrderBot.d.ts +45 -15
  61. package/dist/types/contract/MulticallWithValid.d.ts +43 -8
  62. package/dist/types/contract/PermissionManager.d.ts +33 -13
  63. package/dist/types/contract/UniswapV2Factory.d.ts +34 -9
  64. package/dist/types/contract/UniswapV2Pair.d.ts +126 -35
  65. package/dist/types/contract/UniswapV2Router02.d.ts +59 -24
  66. package/dist/types/contract/dodoTeam.d.ts +100 -33
  67. package/dist/types/contract/vDODOToken.d.ts +196 -58
  68. package/dist/types/contractRequests.d.ts +1 -1
  69. package/dist/types/index.d.ts +1 -0
  70. package/package.json +1 -1
  71. package/scripts/contract-generate.ts +8 -1
  72. package/src/config/sepolia.ts +1 -1
  73. package/src/contract/BuyoutModel.ts +60 -0
  74. package/src/contract/CP.ts +340 -0
  75. package/src/contract/CrowdPoolingFactory.ts +190 -0
  76. package/src/contract/CustomERC20.ts +110 -0
  77. package/src/contract/CustomMintableERC20.ts +110 -0
  78. package/src/contract/D3Proxy.ts +40 -0
  79. package/src/contract/D3Vault.ts +480 -0
  80. package/src/contract/DODOApprove.ts +60 -0
  81. package/src/contract/DODOApproveProxy.ts +70 -0
  82. package/src/contract/DODOCalleeHelper.ts +10 -0
  83. package/src/contract/DODOCirculationHelper.ts +70 -0
  84. package/src/contract/DODOCpProxy.ts +30 -0
  85. package/src/contract/DODOCpProxyWithoutGlobalQuota.ts +30 -0
  86. package/src/contract/DODODppProxy.ts +30 -0
  87. package/src/contract/DODODspProxy.ts +40 -0
  88. package/src/contract/DODODspProxyWithoutGSP.ts +30 -0
  89. package/src/contract/DODOIncentive.ts +110 -0
  90. package/src/contract/DODOMineV2Factory.ts +70 -0
  91. package/src/contract/DODOMineV3Proxy.ts +60 -0
  92. package/src/contract/DODOMineV3ProxyWithoutPlatform.ts +60 -0
  93. package/src/contract/DODOMineV3Registry.ts +60 -0
  94. package/src/contract/DODONFT.ts +140 -0
  95. package/src/contract/DODONFT1155.ts +80 -0
  96. package/src/contract/DODONFTApprove.ts +60 -0
  97. package/src/contract/DODONFTPoolProxy.ts +100 -0
  98. package/src/contract/DODONFTProxy.ts +120 -0
  99. package/src/contract/DODONFTRegistry.ts +70 -0
  100. package/src/contract/DODONFTRouteHelper.ts +20 -0
  101. package/src/contract/DODOSellHelper.ts +20 -0
  102. package/src/contract/DODOStarterProxy.ts +20 -0
  103. package/src/contract/DODOV1.ts +390 -0
  104. package/src/contract/DODOV1Adapter.ts +10 -0
  105. package/src/contract/DODOV1PmmHelper.ts +10 -0
  106. package/src/contract/DODOV1Proxy.ts +10 -0
  107. package/src/contract/DODOV2Proxy02.ts +130 -0
  108. package/src/contract/DODOV2RouteHelper.ts +40 -0
  109. package/src/contract/DPPAdvanced.ts +270 -0
  110. package/src/contract/DPPAdvancedAdmin.ts +70 -0
  111. package/src/contract/DPPFactory.ts +140 -0
  112. package/src/contract/DSP.ts +350 -0
  113. package/src/contract/DSPFactory.ts +110 -0
  114. package/src/contract/DVM.ts +320 -0
  115. package/src/contract/DVMFactory.ts +110 -0
  116. package/src/contract/ERC20.ts +60 -0
  117. package/src/contract/ERC20Helper.ts +40 -0
  118. package/src/contract/ERC20MineV3.ts +130 -0
  119. package/src/contract/ERC20V3Factory.ts +110 -0
  120. package/src/contract/FeeRateDIP3Impl.ts +100 -0
  121. package/src/contract/FeeRateModel.ts +40 -0
  122. package/src/contract/GSP.ts +410 -0
  123. package/src/contract/GSPFactory.ts +100 -0
  124. package/src/contract/InitializableERC20.ts +70 -0
  125. package/src/contract/LimitOrder.ts +100 -0
  126. package/src/contract/LimitOrderBot.ts +60 -0
  127. package/src/contract/MulticallWithValid.ts +70 -0
  128. package/src/contract/PermissionManager.ts +40 -0
  129. package/src/contract/UniswapV2Factory.ts +51 -1
  130. package/src/contract/UniswapV2Pair.ts +190 -0
  131. package/src/contract/UniswapV2Router02.ts +71 -1
  132. package/src/contract/dodoTeam.ts +140 -0
  133. package/src/contract/vDODOToken.ts +300 -0
  134. package/src/index.ts +2 -1
@@ -21,6 +21,16 @@ export function fetchERC20V3Factory_CLONE_FACTORY_(chainId: number) {
21
21
  const __data = hexlify(concat(['0xeb774d05', __encodeData]));
22
22
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
23
23
  }
24
+ export function getFetchERC20V3Factory_CLONE_FACTORY_QueryOptions(chainId: number | undefined) {
25
+ return {
26
+ queryKey: ['contract-request', chainId],
27
+ enabled: [chainId !== undefined && chainId !== null],
28
+ queryFn: () => {
29
+ // @ts-ignore
30
+ return fetchERC20V3Factory_CLONE_FACTORY_(chainId);
31
+ }
32
+ }
33
+ }
24
34
 
25
35
  /**
26
36
  * fetch _CREATE_FEE_
@@ -34,6 +44,16 @@ export function fetchERC20V3Factory_CREATE_FEE_(chainId: number) {
34
44
  const __data = hexlify(concat(['0x21235d4a', __encodeData]));
35
45
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
36
46
  }
47
+ export function getFetchERC20V3Factory_CREATE_FEE_QueryOptions(chainId: number | undefined) {
48
+ return {
49
+ queryKey: ['contract-request', chainId],
50
+ enabled: [chainId !== undefined && chainId !== null],
51
+ queryFn: () => {
52
+ // @ts-ignore
53
+ return fetchERC20V3Factory_CREATE_FEE_(chainId);
54
+ }
55
+ }
56
+ }
37
57
 
38
58
  /**
39
59
  * fetch _CUSTOM_ERC20_TEMPLATE_
@@ -47,6 +67,16 @@ export function fetchERC20V3Factory_CUSTOM_ERC20_TEMPLATE_(chainId: number) {
47
67
  const __data = hexlify(concat(['0xaae79d0c', __encodeData]));
48
68
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
49
69
  }
70
+ export function getFetchERC20V3Factory_CUSTOM_ERC20_TEMPLATE_QueryOptions(chainId: number | undefined) {
71
+ return {
72
+ queryKey: ['contract-request', chainId],
73
+ enabled: [chainId !== undefined && chainId !== null],
74
+ queryFn: () => {
75
+ // @ts-ignore
76
+ return fetchERC20V3Factory_CUSTOM_ERC20_TEMPLATE_(chainId);
77
+ }
78
+ }
79
+ }
50
80
 
51
81
  /**
52
82
  * fetch _CUSTOM_MINTABLE_ERC20_TEMPLATE_
@@ -60,6 +90,16 @@ export function fetchERC20V3Factory_CUSTOM_MINTABLE_ERC20_TEMPLATE_(chainId: num
60
90
  const __data = hexlify(concat(['0xe1f70b6b', __encodeData]));
61
91
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
62
92
  }
93
+ export function getFetchERC20V3Factory_CUSTOM_MINTABLE_ERC20_TEMPLATE_QueryOptions(chainId: number | undefined) {
94
+ return {
95
+ queryKey: ['contract-request', chainId],
96
+ enabled: [chainId !== undefined && chainId !== null],
97
+ queryFn: () => {
98
+ // @ts-ignore
99
+ return fetchERC20V3Factory_CUSTOM_MINTABLE_ERC20_TEMPLATE_(chainId);
100
+ }
101
+ }
102
+ }
63
103
 
64
104
  /**
65
105
  * fetch _ERC20_TEMPLATE_
@@ -73,6 +113,16 @@ export function fetchERC20V3Factory_ERC20_TEMPLATE_(chainId: number) {
73
113
  const __data = hexlify(concat(['0x97381760', __encodeData]));
74
114
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
75
115
  }
116
+ export function getFetchERC20V3Factory_ERC20_TEMPLATE_QueryOptions(chainId: number | undefined) {
117
+ return {
118
+ queryKey: ['contract-request', chainId],
119
+ enabled: [chainId !== undefined && chainId !== null],
120
+ queryFn: () => {
121
+ // @ts-ignore
122
+ return fetchERC20V3Factory_ERC20_TEMPLATE_(chainId);
123
+ }
124
+ }
125
+ }
76
126
 
77
127
  /**
78
128
  * fetch _NEW_OWNER_
@@ -86,6 +136,16 @@ export function fetchERC20V3Factory_NEW_OWNER_(chainId: number) {
86
136
  const __data = hexlify(concat(['0x8456db15', __encodeData]));
87
137
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
88
138
  }
139
+ export function getFetchERC20V3Factory_NEW_OWNER_QueryOptions(chainId: number | undefined) {
140
+ return {
141
+ queryKey: ['contract-request', chainId],
142
+ enabled: [chainId !== undefined && chainId !== null],
143
+ queryFn: () => {
144
+ // @ts-ignore
145
+ return fetchERC20V3Factory_NEW_OWNER_(chainId);
146
+ }
147
+ }
148
+ }
89
149
 
90
150
  /**
91
151
  * fetch _OWNER_
@@ -99,6 +159,16 @@ export function fetchERC20V3Factory_OWNER_(chainId: number) {
99
159
  const __data = hexlify(concat(['0x16048bc4', __encodeData]));
100
160
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
101
161
  }
162
+ export function getFetchERC20V3Factory_OWNER_QueryOptions(chainId: number | undefined) {
163
+ return {
164
+ queryKey: ['contract-request', chainId],
165
+ enabled: [chainId !== undefined && chainId !== null],
166
+ queryFn: () => {
167
+ // @ts-ignore
168
+ return fetchERC20V3Factory_OWNER_(chainId);
169
+ }
170
+ }
171
+ }
102
172
 
103
173
  /**
104
174
  * fetch _USER_CUSTOM_MINTABLE_REGISTRY_
@@ -114,6 +184,16 @@ export function fetchERC20V3Factory_USER_CUSTOM_MINTABLE_REGISTRY_(chainId: numb
114
184
  const __data = hexlify(concat(['0xca7caaad', __encodeData]));
115
185
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
116
186
  }
187
+ export function getFetchERC20V3Factory_USER_CUSTOM_MINTABLE_REGISTRY_QueryOptions(chainId: number | undefined, __input1: string | undefined, __input2: number | undefined) {
188
+ return {
189
+ queryKey: ['contract-request', chainId, __input1, __input2],
190
+ enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null, __input2 !== undefined && __input2 !== null],
191
+ queryFn: () => {
192
+ // @ts-ignore
193
+ return fetchERC20V3Factory_USER_CUSTOM_MINTABLE_REGISTRY_(chainId, __input1, __input2);
194
+ }
195
+ }
196
+ }
117
197
 
118
198
  /**
119
199
  * fetch _USER_CUSTOM_REGISTRY_
@@ -129,6 +209,16 @@ export function fetchERC20V3Factory_USER_CUSTOM_REGISTRY_(chainId: number, __inp
129
209
  const __data = hexlify(concat(['0x051396ff', __encodeData]));
130
210
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
131
211
  }
212
+ export function getFetchERC20V3Factory_USER_CUSTOM_REGISTRY_QueryOptions(chainId: number | undefined, __input1: string | undefined, __input2: number | undefined) {
213
+ return {
214
+ queryKey: ['contract-request', chainId, __input1, __input2],
215
+ enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null, __input2 !== undefined && __input2 !== null],
216
+ queryFn: () => {
217
+ // @ts-ignore
218
+ return fetchERC20V3Factory_USER_CUSTOM_REGISTRY_(chainId, __input1, __input2);
219
+ }
220
+ }
221
+ }
132
222
 
133
223
  /**
134
224
  * fetch _USER_STD_REGISTRY_
@@ -144,6 +234,16 @@ export function fetchERC20V3Factory_USER_STD_REGISTRY_(chainId: number, __input1
144
234
  const __data = hexlify(concat(['0x35c70da0', __encodeData]));
145
235
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
146
236
  }
237
+ export function getFetchERC20V3Factory_USER_STD_REGISTRY_QueryOptions(chainId: number | undefined, __input1: string | undefined, __input2: number | undefined) {
238
+ return {
239
+ queryKey: ['contract-request', chainId, __input1, __input2],
240
+ enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null, __input2 !== undefined && __input2 !== null],
241
+ queryFn: () => {
242
+ // @ts-ignore
243
+ return fetchERC20V3Factory_USER_STD_REGISTRY_(chainId, __input1, __input2);
244
+ }
245
+ }
246
+ }
147
247
 
148
248
  /**
149
249
  * fetch getTokenByUser
@@ -164,6 +264,16 @@ export function fetchERC20V3FactoryGetTokenByUser(chainId: number, user: string)
164
264
  mintables: Array<string>;
165
265
  }>(chainId, __to, __data, [{"internalType":"address[]","name":"stds","type":"address[]"},{"internalType":"address[]","name":"customs","type":"address[]"},{"internalType":"address[]","name":"mintables","type":"address[]"}])
166
266
  }
267
+ export function getFetchERC20V3FactoryGetTokenByUserQueryOptions(chainId: number | undefined, user: string | undefined) {
268
+ return {
269
+ queryKey: ['contract-request', chainId, user],
270
+ enabled: [chainId !== undefined && chainId !== null, user !== undefined && user !== null],
271
+ queryFn: () => {
272
+ // @ts-ignore
273
+ return fetchERC20V3FactoryGetTokenByUser(chainId, user);
274
+ }
275
+ }
276
+ }
167
277
 
168
278
  /**
169
279
  * encode changeCreateFee
@@ -21,6 +21,16 @@ export function fetchFeeRateDIP3Impl_LP_MT_RATIO_(chainId: number) {
21
21
  const __data = hexlify(concat(['0xb1efb8f4', __encodeData]));
22
22
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
23
23
  }
24
+ export function getFetchFeeRateDIP3Impl_LP_MT_RATIO_QueryOptions(chainId: number | undefined) {
25
+ return {
26
+ queryKey: ['contract-request', chainId],
27
+ enabled: [chainId !== undefined && chainId !== null],
28
+ queryFn: () => {
29
+ // @ts-ignore
30
+ return fetchFeeRateDIP3Impl_LP_MT_RATIO_(chainId);
31
+ }
32
+ }
33
+ }
24
34
 
25
35
  /**
26
36
  * fetch _NEW_OWNER_
@@ -34,6 +44,16 @@ export function fetchFeeRateDIP3Impl_NEW_OWNER_(chainId: number) {
34
44
  const __data = hexlify(concat(['0x8456db15', __encodeData]));
35
45
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
36
46
  }
47
+ export function getFetchFeeRateDIP3Impl_NEW_OWNER_QueryOptions(chainId: number | undefined) {
48
+ return {
49
+ queryKey: ['contract-request', chainId],
50
+ enabled: [chainId !== undefined && chainId !== null],
51
+ queryFn: () => {
52
+ // @ts-ignore
53
+ return fetchFeeRateDIP3Impl_NEW_OWNER_(chainId);
54
+ }
55
+ }
56
+ }
37
57
 
38
58
  /**
39
59
  * fetch _OWNER_
@@ -47,6 +67,16 @@ export function fetchFeeRateDIP3Impl_OWNER_(chainId: number) {
47
67
  const __data = hexlify(concat(['0x16048bc4', __encodeData]));
48
68
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
49
69
  }
70
+ export function getFetchFeeRateDIP3Impl_OWNER_QueryOptions(chainId: number | undefined) {
71
+ return {
72
+ queryKey: ['contract-request', chainId],
73
+ enabled: [chainId !== undefined && chainId !== null],
74
+ queryFn: () => {
75
+ // @ts-ignore
76
+ return fetchFeeRateDIP3Impl_OWNER_(chainId);
77
+ }
78
+ }
79
+ }
50
80
 
51
81
  /**
52
82
  * fetch cpPools
@@ -69,6 +99,16 @@ export function fetchFeeRateDIP3ImplCpPools(chainId: number, __input1: string) {
69
99
  quotaAddr: string;
70
100
  }>(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"}])
71
101
  }
102
+ export function getFetchFeeRateDIP3ImplCpPoolsQueryOptions(chainId: number | undefined, __input1: string | undefined) {
103
+ return {
104
+ queryKey: ['contract-request', chainId, __input1],
105
+ enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null],
106
+ queryFn: () => {
107
+ // @ts-ignore
108
+ return fetchFeeRateDIP3ImplCpPools(chainId, __input1);
109
+ }
110
+ }
111
+ }
72
112
 
73
113
  /**
74
114
  * fetch getCPInfoByUser
@@ -90,6 +130,16 @@ export function fetchFeeRateDIP3ImplGetCPInfoByUser(chainId: number, pool: strin
90
130
  userFee: bigint;
91
131
  }>(chainId, __to, __data, [{"internalType":"bool","name":"isHaveCap","type":"bool"},{"internalType":"int256","name":"curQuota","type":"int256"},{"internalType":"uint256","name":"userFee","type":"uint256"}])
92
132
  }
133
+ export function getFetchFeeRateDIP3ImplGetCPInfoByUserQueryOptions(chainId: number | undefined, pool: string | undefined, user: string | undefined) {
134
+ return {
135
+ queryKey: ['contract-request', chainId, pool, user],
136
+ enabled: [chainId !== undefined && chainId !== null, pool !== undefined && pool !== null, user !== undefined && user !== null],
137
+ queryFn: () => {
138
+ // @ts-ignore
139
+ return fetchFeeRateDIP3ImplGetCPInfoByUser(chainId, pool, user);
140
+ }
141
+ }
142
+ }
93
143
 
94
144
  /**
95
145
  * fetch getFeeRate
@@ -105,6 +155,16 @@ export function fetchFeeRateDIP3ImplGetFeeRate(chainId: number, pool: string, us
105
155
  const __data = hexlify(concat(['0x848cc303', __encodeData]));
106
156
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
107
157
  }
158
+ export function getFetchFeeRateDIP3ImplGetFeeRateQueryOptions(chainId: number | undefined, pool: string | undefined, user: string | undefined) {
159
+ return {
160
+ queryKey: ['contract-request', chainId, pool, user],
161
+ enabled: [chainId !== undefined && chainId !== null, pool !== undefined && pool !== null, user !== undefined && user !== null],
162
+ queryFn: () => {
163
+ // @ts-ignore
164
+ return fetchFeeRateDIP3ImplGetFeeRate(chainId, pool, user);
165
+ }
166
+ }
167
+ }
108
168
 
109
169
  /**
110
170
  * fetch isAdminListed
@@ -119,6 +179,16 @@ export function fetchFeeRateDIP3ImplIsAdminListed(chainId: number, __input1: str
119
179
  const __data = hexlify(concat(['0x1822c0c0', __encodeData]));
120
180
  return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
121
181
  }
182
+ export function getFetchFeeRateDIP3ImplIsAdminListedQueryOptions(chainId: number | undefined, __input1: string | undefined) {
183
+ return {
184
+ queryKey: ['contract-request', chainId, __input1],
185
+ enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null],
186
+ queryFn: () => {
187
+ // @ts-ignore
188
+ return fetchFeeRateDIP3ImplIsAdminListed(chainId, __input1);
189
+ }
190
+ }
191
+ }
122
192
 
123
193
  /**
124
194
  * fetch poolHeartBeat
@@ -132,6 +202,16 @@ export function fetchFeeRateDIP3ImplPoolHeartBeat(chainId: number) {
132
202
  const __data = hexlify(concat(['0x8c343296', __encodeData]));
133
203
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
134
204
  }
205
+ export function getFetchFeeRateDIP3ImplPoolHeartBeatQueryOptions(chainId: number | undefined) {
206
+ return {
207
+ queryKey: ['contract-request', chainId],
208
+ enabled: [chainId !== undefined && chainId !== null],
209
+ queryFn: () => {
210
+ // @ts-ignore
211
+ return fetchFeeRateDIP3ImplPoolHeartBeat(chainId);
212
+ }
213
+ }
214
+ }
135
215
 
136
216
  /**
137
217
  * fetch specPoolList
@@ -146,6 +226,16 @@ export function fetchFeeRateDIP3ImplSpecPoolList(chainId: number, __input1: stri
146
226
  const __data = hexlify(concat(['0x8614c552', __encodeData]));
147
227
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
148
228
  }
229
+ export function getFetchFeeRateDIP3ImplSpecPoolListQueryOptions(chainId: number | undefined, __input1: string | undefined) {
230
+ return {
231
+ queryKey: ['contract-request', chainId, __input1],
232
+ enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null],
233
+ queryFn: () => {
234
+ // @ts-ignore
235
+ return fetchFeeRateDIP3ImplSpecPoolList(chainId, __input1);
236
+ }
237
+ }
238
+ }
149
239
 
150
240
  /**
151
241
  * fetch version
@@ -159,6 +249,16 @@ export function fetchFeeRateDIP3ImplVersion(chainId: number) {
159
249
  const __data = hexlify(concat(['0x54fd4d50', __encodeData]));
160
250
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
161
251
  }
252
+ export function getFetchFeeRateDIP3ImplVersionQueryOptions(chainId: number | undefined) {
253
+ return {
254
+ queryKey: ['contract-request', chainId],
255
+ enabled: [chainId !== undefined && chainId !== null],
256
+ queryFn: () => {
257
+ // @ts-ignore
258
+ return fetchFeeRateDIP3ImplVersion(chainId);
259
+ }
260
+ }
261
+ }
162
262
 
163
263
  /**
164
264
  * encode addAdminList
@@ -15,6 +15,16 @@ export function fetchFeeRateModel_NEW_OWNER_(chainId: number, __to: string) {
15
15
  const __data = hexlify(concat(['0x8456db15', __encodeData]));
16
16
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
17
17
  }
18
+ export function getFetchFeeRateModel_NEW_OWNER_QueryOptions(chainId: number | undefined, __to: string | undefined) {
19
+ return {
20
+ queryKey: ['contract-request', chainId, __to],
21
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
22
+ queryFn: () => {
23
+ // @ts-ignore
24
+ return fetchFeeRateModel_NEW_OWNER_(chainId, __to);
25
+ }
26
+ }
27
+ }
18
28
 
19
29
  /**
20
30
  * fetch _OWNER_
@@ -27,6 +37,16 @@ export function fetchFeeRateModel_OWNER_(chainId: number, __to: string) {
27
37
  const __data = hexlify(concat(['0x16048bc4', __encodeData]));
28
38
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
29
39
  }
40
+ export function getFetchFeeRateModel_OWNER_QueryOptions(chainId: number | undefined, __to: string | undefined) {
41
+ return {
42
+ queryKey: ['contract-request', chainId, __to],
43
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
44
+ queryFn: () => {
45
+ // @ts-ignore
46
+ return fetchFeeRateModel_OWNER_(chainId, __to);
47
+ }
48
+ }
49
+ }
30
50
 
31
51
  /**
32
52
  * fetch feeRateImpl
@@ -39,6 +59,16 @@ export function fetchFeeRateModelFeeRateImpl(chainId: number, __to: string) {
39
59
  const __data = hexlify(concat(['0x39b96500', __encodeData]));
40
60
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
41
61
  }
62
+ export function getFetchFeeRateModelFeeRateImplQueryOptions(chainId: number | undefined, __to: string | undefined) {
63
+ return {
64
+ queryKey: ['contract-request', chainId, __to],
65
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
66
+ queryFn: () => {
67
+ // @ts-ignore
68
+ return fetchFeeRateModelFeeRateImpl(chainId, __to);
69
+ }
70
+ }
71
+ }
42
72
 
43
73
  /**
44
74
  * fetch getFeeRate
@@ -52,6 +82,16 @@ export function fetchFeeRateModelGetFeeRate(chainId: number, __to: string, trade
52
82
  const __data = hexlify(concat(['0x8198edbf', __encodeData]));
53
83
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
54
84
  }
85
+ export function getFetchFeeRateModelGetFeeRateQueryOptions(chainId: number | undefined, __to: string | undefined, trader: string | undefined) {
86
+ return {
87
+ queryKey: ['contract-request', chainId, __to, trader],
88
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, trader !== undefined && trader !== null],
89
+ queryFn: () => {
90
+ // @ts-ignore
91
+ return fetchFeeRateModelGetFeeRate(chainId, __to, trader);
92
+ }
93
+ }
94
+ }
55
95
 
56
96
  /**
57
97
  * encode claimOwnership