@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 fetchCrowdPoolingFactory_CALM_DURATION_(chainId: number) {
21
21
  const __data = hexlify(concat(['0xc2c2757b', __encodeData]));
22
22
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
23
23
  }
24
+ export function getFetchCrowdPoolingFactory_CALM_DURATION_QueryOptions(chainId: number | undefined) {
25
+ return {
26
+ queryKey: ['contract-request', chainId],
27
+ enabled: [chainId !== undefined && chainId !== null],
28
+ queryFn: () => {
29
+ // @ts-ignore
30
+ return fetchCrowdPoolingFactory_CALM_DURATION_(chainId);
31
+ }
32
+ }
33
+ }
24
34
 
25
35
  /**
26
36
  * fetch _CAP_RATIO_
@@ -34,6 +44,16 @@ export function fetchCrowdPoolingFactory_CAP_RATIO_(chainId: number) {
34
44
  const __data = hexlify(concat(['0x792d793b', __encodeData]));
35
45
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
36
46
  }
47
+ export function getFetchCrowdPoolingFactory_CAP_RATIO_QueryOptions(chainId: number | undefined) {
48
+ return {
49
+ queryKey: ['contract-request', chainId],
50
+ enabled: [chainId !== undefined && chainId !== null],
51
+ queryFn: () => {
52
+ // @ts-ignore
53
+ return fetchCrowdPoolingFactory_CAP_RATIO_(chainId);
54
+ }
55
+ }
56
+ }
37
57
 
38
58
  /**
39
59
  * fetch _CLIFF_RATE_
@@ -47,6 +67,16 @@ export function fetchCrowdPoolingFactory_CLIFF_RATE_(chainId: number) {
47
67
  const __data = hexlify(concat(['0x294dafc0', __encodeData]));
48
68
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
49
69
  }
70
+ export function getFetchCrowdPoolingFactory_CLIFF_RATE_QueryOptions(chainId: number | undefined) {
71
+ return {
72
+ queryKey: ['contract-request', chainId],
73
+ enabled: [chainId !== undefined && chainId !== null],
74
+ queryFn: () => {
75
+ // @ts-ignore
76
+ return fetchCrowdPoolingFactory_CLIFF_RATE_(chainId);
77
+ }
78
+ }
79
+ }
50
80
 
51
81
  /**
52
82
  * fetch _CLONE_FACTORY_
@@ -60,6 +90,16 @@ export function fetchCrowdPoolingFactory_CLONE_FACTORY_(chainId: number) {
60
90
  const __data = hexlify(concat(['0xeb774d05', __encodeData]));
61
91
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
62
92
  }
93
+ export function getFetchCrowdPoolingFactory_CLONE_FACTORY_QueryOptions(chainId: number | undefined) {
94
+ return {
95
+ queryKey: ['contract-request', chainId],
96
+ enabled: [chainId !== undefined && chainId !== null],
97
+ queryFn: () => {
98
+ // @ts-ignore
99
+ return fetchCrowdPoolingFactory_CLONE_FACTORY_(chainId);
100
+ }
101
+ }
102
+ }
63
103
 
64
104
  /**
65
105
  * fetch _CP_TEMPLATE_
@@ -73,6 +113,16 @@ export function fetchCrowdPoolingFactory_CP_TEMPLATE_(chainId: number) {
73
113
  const __data = hexlify(concat(['0xa6569b3f', __encodeData]));
74
114
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
75
115
  }
116
+ export function getFetchCrowdPoolingFactory_CP_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 fetchCrowdPoolingFactory_CP_TEMPLATE_(chainId);
123
+ }
124
+ }
125
+ }
76
126
 
77
127
  /**
78
128
  * fetch _DEFAULT_MAINTAINER_
@@ -86,6 +136,16 @@ export function fetchCrowdPoolingFactory_DEFAULT_MAINTAINER_(chainId: number) {
86
136
  const __data = hexlify(concat(['0x81ab4d0a', __encodeData]));
87
137
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
88
138
  }
139
+ export function getFetchCrowdPoolingFactory_DEFAULT_MAINTAINER_QueryOptions(chainId: number | undefined) {
140
+ return {
141
+ queryKey: ['contract-request', chainId],
142
+ enabled: [chainId !== undefined && chainId !== null],
143
+ queryFn: () => {
144
+ // @ts-ignore
145
+ return fetchCrowdPoolingFactory_DEFAULT_MAINTAINER_(chainId);
146
+ }
147
+ }
148
+ }
89
149
 
90
150
  /**
91
151
  * fetch _DEFAULT_MT_FEE_RATE_MODEL_
@@ -99,6 +159,16 @@ export function fetchCrowdPoolingFactory_DEFAULT_MT_FEE_RATE_MODEL_(chainId: num
99
159
  const __data = hexlify(concat(['0x6c5ccb9b', __encodeData]));
100
160
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
101
161
  }
162
+ export function getFetchCrowdPoolingFactory_DEFAULT_MT_FEE_RATE_MODEL_QueryOptions(chainId: number | undefined) {
163
+ return {
164
+ queryKey: ['contract-request', chainId],
165
+ enabled: [chainId !== undefined && chainId !== null],
166
+ queryFn: () => {
167
+ // @ts-ignore
168
+ return fetchCrowdPoolingFactory_DEFAULT_MT_FEE_RATE_MODEL_(chainId);
169
+ }
170
+ }
171
+ }
102
172
 
103
173
  /**
104
174
  * fetch _DEFAULT_PERMISSION_MANAGER_
@@ -112,6 +182,16 @@ export function fetchCrowdPoolingFactory_DEFAULT_PERMISSION_MANAGER_(chainId: nu
112
182
  const __data = hexlify(concat(['0xe0f5d89e', __encodeData]));
113
183
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
114
184
  }
185
+ export function getFetchCrowdPoolingFactory_DEFAULT_PERMISSION_MANAGER_QueryOptions(chainId: number | undefined) {
186
+ return {
187
+ queryKey: ['contract-request', chainId],
188
+ enabled: [chainId !== undefined && chainId !== null],
189
+ queryFn: () => {
190
+ // @ts-ignore
191
+ return fetchCrowdPoolingFactory_DEFAULT_PERMISSION_MANAGER_(chainId);
192
+ }
193
+ }
194
+ }
115
195
 
116
196
  /**
117
197
  * fetch _DVM_FACTORY_
@@ -125,6 +205,16 @@ export function fetchCrowdPoolingFactory_DVM_FACTORY_(chainId: number) {
125
205
  const __data = hexlify(concat(['0x69e4e417', __encodeData]));
126
206
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
127
207
  }
208
+ export function getFetchCrowdPoolingFactory_DVM_FACTORY_QueryOptions(chainId: number | undefined) {
209
+ return {
210
+ queryKey: ['contract-request', chainId],
211
+ enabled: [chainId !== undefined && chainId !== null],
212
+ queryFn: () => {
213
+ // @ts-ignore
214
+ return fetchCrowdPoolingFactory_DVM_FACTORY_(chainId);
215
+ }
216
+ }
217
+ }
128
218
 
129
219
  /**
130
220
  * fetch _FREEZE_DURATION_
@@ -138,6 +228,16 @@ export function fetchCrowdPoolingFactory_FREEZE_DURATION_(chainId: number) {
138
228
  const __data = hexlify(concat(['0xce90ea74', __encodeData]));
139
229
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
140
230
  }
231
+ export function getFetchCrowdPoolingFactory_FREEZE_DURATION_QueryOptions(chainId: number | undefined) {
232
+ return {
233
+ queryKey: ['contract-request', chainId],
234
+ enabled: [chainId !== undefined && chainId !== null],
235
+ queryFn: () => {
236
+ // @ts-ignore
237
+ return fetchCrowdPoolingFactory_FREEZE_DURATION_(chainId);
238
+ }
239
+ }
240
+ }
141
241
 
142
242
  /**
143
243
  * fetch _K_
@@ -151,6 +251,16 @@ export function fetchCrowdPoolingFactory_K_(chainId: number) {
151
251
  const __data = hexlify(concat(['0xec2fd46d', __encodeData]));
152
252
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
153
253
  }
254
+ export function getFetchCrowdPoolingFactory_K_QueryOptions(chainId: number | undefined) {
255
+ return {
256
+ queryKey: ['contract-request', chainId],
257
+ enabled: [chainId !== undefined && chainId !== null],
258
+ queryFn: () => {
259
+ // @ts-ignore
260
+ return fetchCrowdPoolingFactory_K_(chainId);
261
+ }
262
+ }
263
+ }
154
264
 
155
265
  /**
156
266
  * fetch _NEW_OWNER_
@@ -164,6 +274,16 @@ export function fetchCrowdPoolingFactory_NEW_OWNER_(chainId: number) {
164
274
  const __data = hexlify(concat(['0x8456db15', __encodeData]));
165
275
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
166
276
  }
277
+ export function getFetchCrowdPoolingFactory_NEW_OWNER_QueryOptions(chainId: number | undefined) {
278
+ return {
279
+ queryKey: ['contract-request', chainId],
280
+ enabled: [chainId !== undefined && chainId !== null],
281
+ queryFn: () => {
282
+ // @ts-ignore
283
+ return fetchCrowdPoolingFactory_NEW_OWNER_(chainId);
284
+ }
285
+ }
286
+ }
167
287
 
168
288
  /**
169
289
  * fetch _OWNER_
@@ -177,6 +297,16 @@ export function fetchCrowdPoolingFactory_OWNER_(chainId: number) {
177
297
  const __data = hexlify(concat(['0x16048bc4', __encodeData]));
178
298
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
179
299
  }
300
+ export function getFetchCrowdPoolingFactory_OWNER_QueryOptions(chainId: number | undefined) {
301
+ return {
302
+ queryKey: ['contract-request', chainId],
303
+ enabled: [chainId !== undefined && chainId !== null],
304
+ queryFn: () => {
305
+ // @ts-ignore
306
+ return fetchCrowdPoolingFactory_OWNER_(chainId);
307
+ }
308
+ }
309
+ }
180
310
 
181
311
  /**
182
312
  * fetch _REGISTRY_
@@ -193,6 +323,16 @@ export function fetchCrowdPoolingFactory_REGISTRY_(chainId: number, __input1: st
193
323
  const __data = hexlify(concat(['0xbdeb0a91', __encodeData]));
194
324
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
195
325
  }
326
+ export function getFetchCrowdPoolingFactory_REGISTRY_QueryOptions(chainId: number | undefined, __input1: string | undefined, __input2: string | undefined, __input3: number | undefined) {
327
+ return {
328
+ queryKey: ['contract-request', chainId, __input1, __input2, __input3],
329
+ enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null, __input2 !== undefined && __input2 !== null, __input3 !== undefined && __input3 !== null],
330
+ queryFn: () => {
331
+ // @ts-ignore
332
+ return fetchCrowdPoolingFactory_REGISTRY_(chainId, __input1, __input2, __input3);
333
+ }
334
+ }
335
+ }
196
336
 
197
337
  /**
198
338
  * fetch _USER_REGISTRY_
@@ -208,6 +348,16 @@ export function fetchCrowdPoolingFactory_USER_REGISTRY_(chainId: number, __input
208
348
  const __data = hexlify(concat(['0xa58888db', __encodeData]));
209
349
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
210
350
  }
351
+ export function getFetchCrowdPoolingFactory_USER_REGISTRY_QueryOptions(chainId: number | undefined, __input1: string | undefined, __input2: number | undefined) {
352
+ return {
353
+ queryKey: ['contract-request', chainId, __input1, __input2],
354
+ enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null, __input2 !== undefined && __input2 !== null],
355
+ queryFn: () => {
356
+ // @ts-ignore
357
+ return fetchCrowdPoolingFactory_USER_REGISTRY_(chainId, __input1, __input2);
358
+ }
359
+ }
360
+ }
211
361
 
212
362
  /**
213
363
  * fetch _VEST_DURATION_
@@ -221,6 +371,16 @@ export function fetchCrowdPoolingFactory_VEST_DURATION_(chainId: number) {
221
371
  const __data = hexlify(concat(['0x3ff9b61e', __encodeData]));
222
372
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
223
373
  }
374
+ export function getFetchCrowdPoolingFactory_VEST_DURATION_QueryOptions(chainId: number | undefined) {
375
+ return {
376
+ queryKey: ['contract-request', chainId],
377
+ enabled: [chainId !== undefined && chainId !== null],
378
+ queryFn: () => {
379
+ // @ts-ignore
380
+ return fetchCrowdPoolingFactory_VEST_DURATION_(chainId);
381
+ }
382
+ }
383
+ }
224
384
 
225
385
  /**
226
386
  * fetch getCrowdPooling
@@ -236,6 +396,16 @@ export function fetchCrowdPoolingFactoryGetCrowdPooling(chainId: number, baseTok
236
396
  const __data = hexlify(concat(['0x6556c7e5', __encodeData]));
237
397
  return contractRequests.batchCall<Array<string>>(chainId, __to, __data, [{"internalType":"address[]","name":"pools","type":"address[]"}])
238
398
  }
399
+ export function getFetchCrowdPoolingFactoryGetCrowdPoolingQueryOptions(chainId: number | undefined, baseToken: string | undefined, quoteToken: string | undefined) {
400
+ return {
401
+ queryKey: ['contract-request', chainId, baseToken, quoteToken],
402
+ enabled: [chainId !== undefined && chainId !== null, baseToken !== undefined && baseToken !== null, quoteToken !== undefined && quoteToken !== null],
403
+ queryFn: () => {
404
+ // @ts-ignore
405
+ return fetchCrowdPoolingFactoryGetCrowdPooling(chainId, baseToken, quoteToken);
406
+ }
407
+ }
408
+ }
239
409
 
240
410
  /**
241
411
  * fetch getCrowdPoolingBidirection
@@ -255,6 +425,16 @@ export function fetchCrowdPoolingFactoryGetCrowdPoolingBidirection(chainId: numb
255
425
  baseToken1Pools: Array<string>;
256
426
  }>(chainId, __to, __data, [{"internalType":"address[]","name":"baseToken0Pools","type":"address[]"},{"internalType":"address[]","name":"baseToken1Pools","type":"address[]"}])
257
427
  }
428
+ export function getFetchCrowdPoolingFactoryGetCrowdPoolingBidirectionQueryOptions(chainId: number | undefined, token0: string | undefined, token1: string | undefined) {
429
+ return {
430
+ queryKey: ['contract-request', chainId, token0, token1],
431
+ enabled: [chainId !== undefined && chainId !== null, token0 !== undefined && token0 !== null, token1 !== undefined && token1 !== null],
432
+ queryFn: () => {
433
+ // @ts-ignore
434
+ return fetchCrowdPoolingFactoryGetCrowdPoolingBidirection(chainId, token0, token1);
435
+ }
436
+ }
437
+ }
258
438
 
259
439
  /**
260
440
  * fetch getCrowdPoolingByUser
@@ -269,6 +449,16 @@ export function fetchCrowdPoolingFactoryGetCrowdPoolingByUser(chainId: number, u
269
449
  const __data = hexlify(concat(['0xa820636b', __encodeData]));
270
450
  return contractRequests.batchCall<Array<string>>(chainId, __to, __data, [{"internalType":"address[]","name":"pools","type":"address[]"}])
271
451
  }
452
+ export function getFetchCrowdPoolingFactoryGetCrowdPoolingByUserQueryOptions(chainId: number | undefined, user: string | undefined) {
453
+ return {
454
+ queryKey: ['contract-request', chainId, user],
455
+ enabled: [chainId !== undefined && chainId !== null, user !== undefined && user !== null],
456
+ queryFn: () => {
457
+ // @ts-ignore
458
+ return fetchCrowdPoolingFactoryGetCrowdPoolingByUser(chainId, user);
459
+ }
460
+ }
461
+ }
272
462
 
273
463
  /**
274
464
  * encode claimOwnership
@@ -15,6 +15,16 @@ export function fetchCustomERC20_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 getFetchCustomERC20_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 fetchCustomERC20_NEW_OWNER_(chainId, __to);
25
+ }
26
+ }
27
+ }
18
28
 
19
29
  /**
20
30
  * fetch _OWNER_
@@ -27,6 +37,16 @@ export function fetchCustomERC20_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 getFetchCustomERC20_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 fetchCustomERC20_OWNER_(chainId, __to);
47
+ }
48
+ }
49
+ }
30
50
 
31
51
  /**
32
52
  * fetch allowance
@@ -41,6 +61,16 @@ export function fetchCustomERC20Allowance(chainId: number, __to: string, owner:
41
61
  const __data = hexlify(concat(['0xdd62ed3e', __encodeData]));
42
62
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
43
63
  }
64
+ export function getFetchCustomERC20AllowanceQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined, spender: string | undefined) {
65
+ return {
66
+ queryKey: ['contract-request', chainId, __to, owner, spender],
67
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, owner !== undefined && owner !== null, spender !== undefined && spender !== null],
68
+ queryFn: () => {
69
+ // @ts-ignore
70
+ return fetchCustomERC20Allowance(chainId, __to, owner, spender);
71
+ }
72
+ }
73
+ }
44
74
 
45
75
  /**
46
76
  * fetch balanceOf
@@ -54,6 +84,16 @@ export function fetchCustomERC20BalanceOf(chainId: number, __to: string, owner:
54
84
  const __data = hexlify(concat(['0x70a08231', __encodeData]));
55
85
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"balance","type":"uint256"}])
56
86
  }
87
+ export function getFetchCustomERC20BalanceOfQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined) {
88
+ return {
89
+ queryKey: ['contract-request', chainId, __to, owner],
90
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, owner !== undefined && owner !== null],
91
+ queryFn: () => {
92
+ // @ts-ignore
93
+ return fetchCustomERC20BalanceOf(chainId, __to, owner);
94
+ }
95
+ }
96
+ }
57
97
 
58
98
  /**
59
99
  * fetch decimals
@@ -66,6 +106,16 @@ export function fetchCustomERC20Decimals(chainId: number, __to: string) {
66
106
  const __data = hexlify(concat(['0x313ce567', __encodeData]));
67
107
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint8","name":"","type":"uint8"}])
68
108
  }
109
+ export function getFetchCustomERC20DecimalsQueryOptions(chainId: number | undefined, __to: string | undefined) {
110
+ return {
111
+ queryKey: ['contract-request', chainId, __to],
112
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
113
+ queryFn: () => {
114
+ // @ts-ignore
115
+ return fetchCustomERC20Decimals(chainId, __to);
116
+ }
117
+ }
118
+ }
69
119
 
70
120
  /**
71
121
  * fetch name
@@ -78,6 +128,16 @@ export function fetchCustomERC20Name(chainId: number, __to: string) {
78
128
  const __data = hexlify(concat(['0x06fdde03', __encodeData]));
79
129
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
80
130
  }
131
+ export function getFetchCustomERC20NameQueryOptions(chainId: number | undefined, __to: string | undefined) {
132
+ return {
133
+ queryKey: ['contract-request', chainId, __to],
134
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
135
+ queryFn: () => {
136
+ // @ts-ignore
137
+ return fetchCustomERC20Name(chainId, __to);
138
+ }
139
+ }
140
+ }
81
141
 
82
142
  /**
83
143
  * fetch symbol
@@ -90,6 +150,16 @@ export function fetchCustomERC20Symbol(chainId: number, __to: string) {
90
150
  const __data = hexlify(concat(['0x95d89b41', __encodeData]));
91
151
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
92
152
  }
153
+ export function getFetchCustomERC20SymbolQueryOptions(chainId: number | undefined, __to: string | undefined) {
154
+ return {
155
+ queryKey: ['contract-request', chainId, __to],
156
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
157
+ queryFn: () => {
158
+ // @ts-ignore
159
+ return fetchCustomERC20Symbol(chainId, __to);
160
+ }
161
+ }
162
+ }
93
163
 
94
164
  /**
95
165
  * fetch team
@@ -102,6 +172,16 @@ export function fetchCustomERC20Team(chainId: number, __to: string) {
102
172
  const __data = hexlify(concat(['0x85f2aef2', __encodeData]));
103
173
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
104
174
  }
175
+ export function getFetchCustomERC20TeamQueryOptions(chainId: number | undefined, __to: string | undefined) {
176
+ return {
177
+ queryKey: ['contract-request', chainId, __to],
178
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
179
+ queryFn: () => {
180
+ // @ts-ignore
181
+ return fetchCustomERC20Team(chainId, __to);
182
+ }
183
+ }
184
+ }
105
185
 
106
186
  /**
107
187
  * fetch totalSupply
@@ -114,6 +194,16 @@ export function fetchCustomERC20TotalSupply(chainId: number, __to: string) {
114
194
  const __data = hexlify(concat(['0x18160ddd', __encodeData]));
115
195
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
116
196
  }
197
+ export function getFetchCustomERC20TotalSupplyQueryOptions(chainId: number | undefined, __to: string | undefined) {
198
+ return {
199
+ queryKey: ['contract-request', chainId, __to],
200
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
201
+ queryFn: () => {
202
+ // @ts-ignore
203
+ return fetchCustomERC20TotalSupply(chainId, __to);
204
+ }
205
+ }
206
+ }
117
207
 
118
208
  /**
119
209
  * fetch tradeBurnRatio
@@ -126,6 +216,16 @@ export function fetchCustomERC20TradeBurnRatio(chainId: number, __to: string) {
126
216
  const __data = hexlify(concat(['0xe59850f7', __encodeData]));
127
217
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
128
218
  }
219
+ export function getFetchCustomERC20TradeBurnRatioQueryOptions(chainId: number | undefined, __to: string | undefined) {
220
+ return {
221
+ queryKey: ['contract-request', chainId, __to],
222
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
223
+ queryFn: () => {
224
+ // @ts-ignore
225
+ return fetchCustomERC20TradeBurnRatio(chainId, __to);
226
+ }
227
+ }
228
+ }
129
229
 
130
230
  /**
131
231
  * fetch tradeFeeRatio
@@ -138,6 +238,16 @@ export function fetchCustomERC20TradeFeeRatio(chainId: number, __to: string) {
138
238
  const __data = hexlify(concat(['0x870c66d6', __encodeData]));
139
239
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
140
240
  }
241
+ export function getFetchCustomERC20TradeFeeRatioQueryOptions(chainId: number | undefined, __to: string | undefined) {
242
+ return {
243
+ queryKey: ['contract-request', chainId, __to],
244
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
245
+ queryFn: () => {
246
+ // @ts-ignore
247
+ return fetchCustomERC20TradeFeeRatio(chainId, __to);
248
+ }
249
+ }
250
+ }
141
251
 
142
252
  /**
143
253
  * encode abandonOwnership
@@ -15,6 +15,16 @@ export function fetchCustomMintableERC20_NEW_OWNER_(chainId: number, __to: strin
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 getFetchCustomMintableERC20_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 fetchCustomMintableERC20_NEW_OWNER_(chainId, __to);
25
+ }
26
+ }
27
+ }
18
28
 
19
29
  /**
20
30
  * fetch _OWNER_
@@ -27,6 +37,16 @@ export function fetchCustomMintableERC20_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 getFetchCustomMintableERC20_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 fetchCustomMintableERC20_OWNER_(chainId, __to);
47
+ }
48
+ }
49
+ }
30
50
 
31
51
  /**
32
52
  * fetch allowance
@@ -41,6 +61,16 @@ export function fetchCustomMintableERC20Allowance(chainId: number, __to: string,
41
61
  const __data = hexlify(concat(['0xdd62ed3e', __encodeData]));
42
62
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
43
63
  }
64
+ export function getFetchCustomMintableERC20AllowanceQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined, spender: string | undefined) {
65
+ return {
66
+ queryKey: ['contract-request', chainId, __to, owner, spender],
67
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, owner !== undefined && owner !== null, spender !== undefined && spender !== null],
68
+ queryFn: () => {
69
+ // @ts-ignore
70
+ return fetchCustomMintableERC20Allowance(chainId, __to, owner, spender);
71
+ }
72
+ }
73
+ }
44
74
 
45
75
  /**
46
76
  * fetch balanceOf
@@ -54,6 +84,16 @@ export function fetchCustomMintableERC20BalanceOf(chainId: number, __to: string,
54
84
  const __data = hexlify(concat(['0x70a08231', __encodeData]));
55
85
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"balance","type":"uint256"}])
56
86
  }
87
+ export function getFetchCustomMintableERC20BalanceOfQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined) {
88
+ return {
89
+ queryKey: ['contract-request', chainId, __to, owner],
90
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, owner !== undefined && owner !== null],
91
+ queryFn: () => {
92
+ // @ts-ignore
93
+ return fetchCustomMintableERC20BalanceOf(chainId, __to, owner);
94
+ }
95
+ }
96
+ }
57
97
 
58
98
  /**
59
99
  * fetch decimals
@@ -66,6 +106,16 @@ export function fetchCustomMintableERC20Decimals(chainId: number, __to: string)
66
106
  const __data = hexlify(concat(['0x313ce567', __encodeData]));
67
107
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint8","name":"","type":"uint8"}])
68
108
  }
109
+ export function getFetchCustomMintableERC20DecimalsQueryOptions(chainId: number | undefined, __to: string | undefined) {
110
+ return {
111
+ queryKey: ['contract-request', chainId, __to],
112
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
113
+ queryFn: () => {
114
+ // @ts-ignore
115
+ return fetchCustomMintableERC20Decimals(chainId, __to);
116
+ }
117
+ }
118
+ }
69
119
 
70
120
  /**
71
121
  * fetch name
@@ -78,6 +128,16 @@ export function fetchCustomMintableERC20Name(chainId: number, __to: string) {
78
128
  const __data = hexlify(concat(['0x06fdde03', __encodeData]));
79
129
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
80
130
  }
131
+ export function getFetchCustomMintableERC20NameQueryOptions(chainId: number | undefined, __to: string | undefined) {
132
+ return {
133
+ queryKey: ['contract-request', chainId, __to],
134
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
135
+ queryFn: () => {
136
+ // @ts-ignore
137
+ return fetchCustomMintableERC20Name(chainId, __to);
138
+ }
139
+ }
140
+ }
81
141
 
82
142
  /**
83
143
  * fetch symbol
@@ -90,6 +150,16 @@ export function fetchCustomMintableERC20Symbol(chainId: number, __to: string) {
90
150
  const __data = hexlify(concat(['0x95d89b41', __encodeData]));
91
151
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
92
152
  }
153
+ export function getFetchCustomMintableERC20SymbolQueryOptions(chainId: number | undefined, __to: string | undefined) {
154
+ return {
155
+ queryKey: ['contract-request', chainId, __to],
156
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
157
+ queryFn: () => {
158
+ // @ts-ignore
159
+ return fetchCustomMintableERC20Symbol(chainId, __to);
160
+ }
161
+ }
162
+ }
93
163
 
94
164
  /**
95
165
  * fetch team
@@ -102,6 +172,16 @@ export function fetchCustomMintableERC20Team(chainId: number, __to: string) {
102
172
  const __data = hexlify(concat(['0x85f2aef2', __encodeData]));
103
173
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
104
174
  }
175
+ export function getFetchCustomMintableERC20TeamQueryOptions(chainId: number | undefined, __to: string | undefined) {
176
+ return {
177
+ queryKey: ['contract-request', chainId, __to],
178
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
179
+ queryFn: () => {
180
+ // @ts-ignore
181
+ return fetchCustomMintableERC20Team(chainId, __to);
182
+ }
183
+ }
184
+ }
105
185
 
106
186
  /**
107
187
  * fetch totalSupply
@@ -114,6 +194,16 @@ export function fetchCustomMintableERC20TotalSupply(chainId: number, __to: strin
114
194
  const __data = hexlify(concat(['0x18160ddd', __encodeData]));
115
195
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
116
196
  }
197
+ export function getFetchCustomMintableERC20TotalSupplyQueryOptions(chainId: number | undefined, __to: string | undefined) {
198
+ return {
199
+ queryKey: ['contract-request', chainId, __to],
200
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
201
+ queryFn: () => {
202
+ // @ts-ignore
203
+ return fetchCustomMintableERC20TotalSupply(chainId, __to);
204
+ }
205
+ }
206
+ }
117
207
 
118
208
  /**
119
209
  * fetch tradeBurnRatio
@@ -126,6 +216,16 @@ export function fetchCustomMintableERC20TradeBurnRatio(chainId: number, __to: st
126
216
  const __data = hexlify(concat(['0xe59850f7', __encodeData]));
127
217
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
128
218
  }
219
+ export function getFetchCustomMintableERC20TradeBurnRatioQueryOptions(chainId: number | undefined, __to: string | undefined) {
220
+ return {
221
+ queryKey: ['contract-request', chainId, __to],
222
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
223
+ queryFn: () => {
224
+ // @ts-ignore
225
+ return fetchCustomMintableERC20TradeBurnRatio(chainId, __to);
226
+ }
227
+ }
228
+ }
129
229
 
130
230
  /**
131
231
  * fetch tradeFeeRatio
@@ -138,6 +238,16 @@ export function fetchCustomMintableERC20TradeFeeRatio(chainId: number, __to: str
138
238
  const __data = hexlify(concat(['0x870c66d6', __encodeData]));
139
239
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
140
240
  }
241
+ export function getFetchCustomMintableERC20TradeFeeRatioQueryOptions(chainId: number | undefined, __to: string | undefined) {
242
+ return {
243
+ queryKey: ['contract-request', chainId, __to],
244
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
245
+ queryFn: () => {
246
+ // @ts-ignore
247
+ return fetchCustomMintableERC20TradeFeeRatio(chainId, __to);
248
+ }
249
+ }
250
+ }
141
251
 
142
252
  /**
143
253
  * encode abandonOwnership