@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
@@ -15,6 +15,16 @@ export function fetchDSPDOMAIN_SEPARATOR(chainId: number, __to: string) {
15
15
  const __data = hexlify(concat(['0x3644e515', __encodeData]));
16
16
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"bytes32","name":"","type":"bytes32"}])
17
17
  }
18
+ export function getFetchDSPDOMAIN_SEPARATORQueryOptions(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 fetchDSPDOMAIN_SEPARATOR(chainId, __to);
25
+ }
26
+ }
27
+ }
18
28
 
19
29
  /**
20
30
  * fetch PERMIT_TYPEHASH
@@ -27,6 +37,16 @@ export function fetchDSPPERMIT_TYPEHASH(chainId: number, __to: string) {
27
37
  const __data = hexlify(concat(['0x30adf81f', __encodeData]));
28
38
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"bytes32","name":"","type":"bytes32"}])
29
39
  }
40
+ export function getFetchDSPPERMIT_TYPEHASHQueryOptions(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 fetchDSPPERMIT_TYPEHASH(chainId, __to);
47
+ }
48
+ }
49
+ }
30
50
 
31
51
  /**
32
52
  * fetch _BASE_PRICE_CUMULATIVE_LAST_
@@ -39,6 +59,16 @@ export function fetchDSP_BASE_PRICE_CUMULATIVE_LAST_(chainId: number, __to: stri
39
59
  const __data = hexlify(concat(['0xfe24cb7f', __encodeData]));
40
60
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
41
61
  }
62
+ export function getFetchDSP_BASE_PRICE_CUMULATIVE_LAST_QueryOptions(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 fetchDSP_BASE_PRICE_CUMULATIVE_LAST_(chainId, __to);
69
+ }
70
+ }
71
+ }
42
72
 
43
73
  /**
44
74
  * fetch _BASE_RESERVE_
@@ -51,6 +81,16 @@ export function fetchDSP_BASE_RESERVE_(chainId: number, __to: string) {
51
81
  const __data = hexlify(concat(['0x7d721504', __encodeData]));
52
82
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
53
83
  }
84
+ export function getFetchDSP_BASE_RESERVE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
85
+ return {
86
+ queryKey: ['contract-request', chainId, __to],
87
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
88
+ queryFn: () => {
89
+ // @ts-ignore
90
+ return fetchDSP_BASE_RESERVE_(chainId, __to);
91
+ }
92
+ }
93
+ }
54
94
 
55
95
  /**
56
96
  * fetch _BASE_TARGET_
@@ -63,6 +103,16 @@ export function fetchDSP_BASE_TARGET_(chainId: number, __to: string) {
63
103
  const __data = hexlify(concat(['0xe539ef49', __encodeData]));
64
104
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
65
105
  }
106
+ export function getFetchDSP_BASE_TARGET_QueryOptions(chainId: number | undefined, __to: string | undefined) {
107
+ return {
108
+ queryKey: ['contract-request', chainId, __to],
109
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
110
+ queryFn: () => {
111
+ // @ts-ignore
112
+ return fetchDSP_BASE_TARGET_(chainId, __to);
113
+ }
114
+ }
115
+ }
66
116
 
67
117
  /**
68
118
  * fetch _BASE_TOKEN_
@@ -75,6 +125,16 @@ export function fetchDSP_BASE_TOKEN_(chainId: number, __to: string) {
75
125
  const __data = hexlify(concat(['0x4a248d2a', __encodeData]));
76
126
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"contract IERC20","name":"","type":"address"}])
77
127
  }
128
+ export function getFetchDSP_BASE_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined) {
129
+ return {
130
+ queryKey: ['contract-request', chainId, __to],
131
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
132
+ queryFn: () => {
133
+ // @ts-ignore
134
+ return fetchDSP_BASE_TOKEN_(chainId, __to);
135
+ }
136
+ }
137
+ }
78
138
 
79
139
  /**
80
140
  * fetch _BLOCK_TIMESTAMP_LAST_
@@ -87,6 +147,16 @@ export function fetchDSP_BLOCK_TIMESTAMP_LAST_(chainId: number, __to: string) {
87
147
  const __data = hexlify(concat(['0x880a4d87', __encodeData]));
88
148
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint32","name":"","type":"uint32"}])
89
149
  }
150
+ export function getFetchDSP_BLOCK_TIMESTAMP_LAST_QueryOptions(chainId: number | undefined, __to: string | undefined) {
151
+ return {
152
+ queryKey: ['contract-request', chainId, __to],
153
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
154
+ queryFn: () => {
155
+ // @ts-ignore
156
+ return fetchDSP_BLOCK_TIMESTAMP_LAST_(chainId, __to);
157
+ }
158
+ }
159
+ }
90
160
 
91
161
  /**
92
162
  * fetch _IS_OPEN_TWAP_
@@ -99,6 +169,16 @@ export function fetchDSP_IS_OPEN_TWAP_(chainId: number, __to: string) {
99
169
  const __data = hexlify(concat(['0x2df6cb48', __encodeData]));
100
170
  return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
101
171
  }
172
+ export function getFetchDSP_IS_OPEN_TWAP_QueryOptions(chainId: number | undefined, __to: string | undefined) {
173
+ return {
174
+ queryKey: ['contract-request', chainId, __to],
175
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
176
+ queryFn: () => {
177
+ // @ts-ignore
178
+ return fetchDSP_IS_OPEN_TWAP_(chainId, __to);
179
+ }
180
+ }
181
+ }
102
182
 
103
183
  /**
104
184
  * fetch _I_
@@ -111,6 +191,16 @@ export function fetchDSP_I_(chainId: number, __to: string) {
111
191
  const __data = hexlify(concat(['0xf811d692', __encodeData]));
112
192
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
113
193
  }
194
+ export function getFetchDSP_I_QueryOptions(chainId: number | undefined, __to: string | undefined) {
195
+ return {
196
+ queryKey: ['contract-request', chainId, __to],
197
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
198
+ queryFn: () => {
199
+ // @ts-ignore
200
+ return fetchDSP_I_(chainId, __to);
201
+ }
202
+ }
203
+ }
114
204
 
115
205
  /**
116
206
  * fetch _K_
@@ -123,6 +213,16 @@ export function fetchDSP_K_(chainId: number, __to: string) {
123
213
  const __data = hexlify(concat(['0xec2fd46d', __encodeData]));
124
214
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
125
215
  }
216
+ export function getFetchDSP_K_QueryOptions(chainId: number | undefined, __to: string | undefined) {
217
+ return {
218
+ queryKey: ['contract-request', chainId, __to],
219
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
220
+ queryFn: () => {
221
+ // @ts-ignore
222
+ return fetchDSP_K_(chainId, __to);
223
+ }
224
+ }
225
+ }
126
226
 
127
227
  /**
128
228
  * fetch _LP_FEE_RATE_
@@ -135,6 +235,16 @@ export function fetchDSP_LP_FEE_RATE_(chainId: number, __to: string) {
135
235
  const __data = hexlify(concat(['0xab44a7a3', __encodeData]));
136
236
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
137
237
  }
238
+ export function getFetchDSP_LP_FEE_RATE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
239
+ return {
240
+ queryKey: ['contract-request', chainId, __to],
241
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
242
+ queryFn: () => {
243
+ // @ts-ignore
244
+ return fetchDSP_LP_FEE_RATE_(chainId, __to);
245
+ }
246
+ }
247
+ }
138
248
 
139
249
  /**
140
250
  * fetch _MAINTAINER_
@@ -147,6 +257,16 @@ export function fetchDSP_MAINTAINER_(chainId: number, __to: string) {
147
257
  const __data = hexlify(concat(['0x4322ec83', __encodeData]));
148
258
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
149
259
  }
260
+ export function getFetchDSP_MAINTAINER_QueryOptions(chainId: number | undefined, __to: string | undefined) {
261
+ return {
262
+ queryKey: ['contract-request', chainId, __to],
263
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
264
+ queryFn: () => {
265
+ // @ts-ignore
266
+ return fetchDSP_MAINTAINER_(chainId, __to);
267
+ }
268
+ }
269
+ }
150
270
 
151
271
  /**
152
272
  * fetch _MT_FEE_RATE_MODEL_
@@ -159,6 +279,16 @@ export function fetchDSP_MT_FEE_RATE_MODEL_(chainId: number, __to: string) {
159
279
  const __data = hexlify(concat(['0xf6b06e70', __encodeData]));
160
280
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"contract IFeeRateModel","name":"","type":"address"}])
161
281
  }
282
+ export function getFetchDSP_MT_FEE_RATE_MODEL_QueryOptions(chainId: number | undefined, __to: string | undefined) {
283
+ return {
284
+ queryKey: ['contract-request', chainId, __to],
285
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
286
+ queryFn: () => {
287
+ // @ts-ignore
288
+ return fetchDSP_MT_FEE_RATE_MODEL_(chainId, __to);
289
+ }
290
+ }
291
+ }
162
292
 
163
293
  /**
164
294
  * fetch _QUOTE_RESERVE_
@@ -171,6 +301,16 @@ export function fetchDSP_QUOTE_RESERVE_(chainId: number, __to: string) {
171
301
  const __data = hexlify(concat(['0xbbf5ce78', __encodeData]));
172
302
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
173
303
  }
304
+ export function getFetchDSP_QUOTE_RESERVE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
305
+ return {
306
+ queryKey: ['contract-request', chainId, __to],
307
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
308
+ queryFn: () => {
309
+ // @ts-ignore
310
+ return fetchDSP_QUOTE_RESERVE_(chainId, __to);
311
+ }
312
+ }
313
+ }
174
314
 
175
315
  /**
176
316
  * fetch _QUOTE_TARGET_
@@ -183,6 +323,16 @@ export function fetchDSP_QUOTE_TARGET_(chainId: number, __to: string) {
183
323
  const __data = hexlify(concat(['0x77f58657', __encodeData]));
184
324
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
185
325
  }
326
+ export function getFetchDSP_QUOTE_TARGET_QueryOptions(chainId: number | undefined, __to: string | undefined) {
327
+ return {
328
+ queryKey: ['contract-request', chainId, __to],
329
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
330
+ queryFn: () => {
331
+ // @ts-ignore
332
+ return fetchDSP_QUOTE_TARGET_(chainId, __to);
333
+ }
334
+ }
335
+ }
186
336
 
187
337
  /**
188
338
  * fetch _QUOTE_TOKEN_
@@ -195,6 +345,16 @@ export function fetchDSP_QUOTE_TOKEN_(chainId: number, __to: string) {
195
345
  const __data = hexlify(concat(['0xd4b97046', __encodeData]));
196
346
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"contract IERC20","name":"","type":"address"}])
197
347
  }
348
+ export function getFetchDSP_QUOTE_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined) {
349
+ return {
350
+ queryKey: ['contract-request', chainId, __to],
351
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
352
+ queryFn: () => {
353
+ // @ts-ignore
354
+ return fetchDSP_QUOTE_TOKEN_(chainId, __to);
355
+ }
356
+ }
357
+ }
198
358
 
199
359
  /**
200
360
  * fetch _RState_
@@ -207,6 +367,16 @@ export function fetchDSP_RState_(chainId: number, __to: string) {
207
367
  const __data = hexlify(concat(['0xbf357dae', __encodeData]));
208
368
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint32","name":"","type":"uint32"}])
209
369
  }
370
+ export function getFetchDSP_RState_QueryOptions(chainId: number | undefined, __to: string | undefined) {
371
+ return {
372
+ queryKey: ['contract-request', chainId, __to],
373
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
374
+ queryFn: () => {
375
+ // @ts-ignore
376
+ return fetchDSP_RState_(chainId, __to);
377
+ }
378
+ }
379
+ }
210
380
 
211
381
  /**
212
382
  * fetch addressToShortString
@@ -220,6 +390,16 @@ export function fetchDSPAddressToShortString(chainId: number, __to: string, _add
220
390
  const __data = hexlify(concat(['0x17101940', __encodeData]));
221
391
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
222
392
  }
393
+ export function getFetchDSPAddressToShortStringQueryOptions(chainId: number | undefined, __to: string | undefined, _addr: string | undefined) {
394
+ return {
395
+ queryKey: ['contract-request', chainId, __to, _addr],
396
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, _addr !== undefined && _addr !== null],
397
+ queryFn: () => {
398
+ // @ts-ignore
399
+ return fetchDSPAddressToShortString(chainId, __to, _addr);
400
+ }
401
+ }
402
+ }
223
403
 
224
404
  /**
225
405
  * fetch allowance
@@ -234,6 +414,16 @@ export function fetchDSPAllowance(chainId: number, __to: string, owner: string,
234
414
  const __data = hexlify(concat(['0xdd62ed3e', __encodeData]));
235
415
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
236
416
  }
417
+ export function getFetchDSPAllowanceQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined, spender: string | undefined) {
418
+ return {
419
+ queryKey: ['contract-request', chainId, __to, owner, spender],
420
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, owner !== undefined && owner !== null, spender !== undefined && spender !== null],
421
+ queryFn: () => {
422
+ // @ts-ignore
423
+ return fetchDSPAllowance(chainId, __to, owner, spender);
424
+ }
425
+ }
426
+ }
237
427
 
238
428
  /**
239
429
  * fetch balanceOf
@@ -247,6 +437,16 @@ export function fetchDSPBalanceOf(chainId: number, __to: string, owner: string)
247
437
  const __data = hexlify(concat(['0x70a08231', __encodeData]));
248
438
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"balance","type":"uint256"}])
249
439
  }
440
+ export function getFetchDSPBalanceOfQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined) {
441
+ return {
442
+ queryKey: ['contract-request', chainId, __to, owner],
443
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, owner !== undefined && owner !== null],
444
+ queryFn: () => {
445
+ // @ts-ignore
446
+ return fetchDSPBalanceOf(chainId, __to, owner);
447
+ }
448
+ }
449
+ }
250
450
 
251
451
  /**
252
452
  * fetch decimals
@@ -259,6 +459,16 @@ export function fetchDSPDecimals(chainId: number, __to: string) {
259
459
  const __data = hexlify(concat(['0x313ce567', __encodeData]));
260
460
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint8","name":"","type":"uint8"}])
261
461
  }
462
+ export function getFetchDSPDecimalsQueryOptions(chainId: number | undefined, __to: string | undefined) {
463
+ return {
464
+ queryKey: ['contract-request', chainId, __to],
465
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
466
+ queryFn: () => {
467
+ // @ts-ignore
468
+ return fetchDSPDecimals(chainId, __to);
469
+ }
470
+ }
471
+ }
262
472
 
263
473
  /**
264
474
  * fetch getBaseInput
@@ -271,6 +481,16 @@ export function fetchDSPGetBaseInput(chainId: number, __to: string) {
271
481
  const __data = hexlify(concat(['0x65f6fcbb', __encodeData]));
272
482
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"input","type":"uint256"}])
273
483
  }
484
+ export function getFetchDSPGetBaseInputQueryOptions(chainId: number | undefined, __to: string | undefined) {
485
+ return {
486
+ queryKey: ['contract-request', chainId, __to],
487
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
488
+ queryFn: () => {
489
+ // @ts-ignore
490
+ return fetchDSPGetBaseInput(chainId, __to);
491
+ }
492
+ }
493
+ }
274
494
 
275
495
  /**
276
496
  * fetch getMidPrice
@@ -283,6 +503,16 @@ export function fetchDSPGetMidPrice(chainId: number, __to: string) {
283
503
  const __data = hexlify(concat(['0xee27c689', __encodeData]));
284
504
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"midPrice","type":"uint256"}])
285
505
  }
506
+ export function getFetchDSPGetMidPriceQueryOptions(chainId: number | undefined, __to: string | undefined) {
507
+ return {
508
+ queryKey: ['contract-request', chainId, __to],
509
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
510
+ queryFn: () => {
511
+ // @ts-ignore
512
+ return fetchDSPGetMidPrice(chainId, __to);
513
+ }
514
+ }
515
+ }
286
516
 
287
517
  /**
288
518
  * fetch getPMMState
@@ -295,6 +525,16 @@ export function fetchDSPGetPMMState(chainId: number, __to: string) {
295
525
  const __data = hexlify(concat(['0xa382d1b9', __encodeData]));
296
526
  return contractRequests.batchCall<{i: bigint; K: bigint; B: bigint; Q: bigint; B0: bigint; Q0: bigint; R: bigint}>(chainId, __to, __data, [{"components":[{"internalType":"uint256","name":"i","type":"uint256"},{"internalType":"uint256","name":"K","type":"uint256"},{"internalType":"uint256","name":"B","type":"uint256"},{"internalType":"uint256","name":"Q","type":"uint256"},{"internalType":"uint256","name":"B0","type":"uint256"},{"internalType":"uint256","name":"Q0","type":"uint256"},{"internalType":"enum PMMPricing.RState","name":"R","type":"uint8"}],"internalType":"struct PMMPricing.PMMState","name":"state","type":"tuple"}])
297
527
  }
528
+ export function getFetchDSPGetPMMStateQueryOptions(chainId: number | undefined, __to: string | undefined) {
529
+ return {
530
+ queryKey: ['contract-request', chainId, __to],
531
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
532
+ queryFn: () => {
533
+ // @ts-ignore
534
+ return fetchDSPGetPMMState(chainId, __to);
535
+ }
536
+ }
537
+ }
298
538
 
299
539
  /**
300
540
  * fetch getPMMStateForCall
@@ -321,6 +561,16 @@ export function fetchDSPGetPMMStateForCall(chainId: number, __to: string) {
321
561
  R: bigint;
322
562
  }>(chainId, __to, __data, [{"internalType":"uint256","name":"i","type":"uint256"},{"internalType":"uint256","name":"K","type":"uint256"},{"internalType":"uint256","name":"B","type":"uint256"},{"internalType":"uint256","name":"Q","type":"uint256"},{"internalType":"uint256","name":"B0","type":"uint256"},{"internalType":"uint256","name":"Q0","type":"uint256"},{"internalType":"uint256","name":"R","type":"uint256"}])
323
563
  }
564
+ export function getFetchDSPGetPMMStateForCallQueryOptions(chainId: number | undefined, __to: string | undefined) {
565
+ return {
566
+ queryKey: ['contract-request', chainId, __to],
567
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
568
+ queryFn: () => {
569
+ // @ts-ignore
570
+ return fetchDSPGetPMMStateForCall(chainId, __to);
571
+ }
572
+ }
573
+ }
324
574
 
325
575
  /**
326
576
  * fetch getQuoteInput
@@ -333,6 +583,16 @@ export function fetchDSPGetQuoteInput(chainId: number, __to: string) {
333
583
  const __data = hexlify(concat(['0x71f9100c', __encodeData]));
334
584
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"input","type":"uint256"}])
335
585
  }
586
+ export function getFetchDSPGetQuoteInputQueryOptions(chainId: number | undefined, __to: string | undefined) {
587
+ return {
588
+ queryKey: ['contract-request', chainId, __to],
589
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
590
+ queryFn: () => {
591
+ // @ts-ignore
592
+ return fetchDSPGetQuoteInput(chainId, __to);
593
+ }
594
+ }
595
+ }
336
596
 
337
597
  /**
338
598
  * fetch getUserFeeRate
@@ -350,6 +610,16 @@ export function fetchDSPGetUserFeeRate(chainId: number, __to: string, user: stri
350
610
  mtFeeRate: bigint;
351
611
  }>(chainId, __to, __data, [{"internalType":"uint256","name":"lpFeeRate","type":"uint256"},{"internalType":"uint256","name":"mtFeeRate","type":"uint256"}])
352
612
  }
613
+ export function getFetchDSPGetUserFeeRateQueryOptions(chainId: number | undefined, __to: string | undefined, user: string | undefined) {
614
+ return {
615
+ queryKey: ['contract-request', chainId, __to, user],
616
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, user !== undefined && user !== null],
617
+ queryFn: () => {
618
+ // @ts-ignore
619
+ return fetchDSPGetUserFeeRate(chainId, __to, user);
620
+ }
621
+ }
622
+ }
353
623
 
354
624
  /**
355
625
  * fetch getVaultReserve
@@ -366,6 +636,16 @@ export function fetchDSPGetVaultReserve(chainId: number, __to: string) {
366
636
  quoteReserve: bigint;
367
637
  }>(chainId, __to, __data, [{"internalType":"uint256","name":"baseReserve","type":"uint256"},{"internalType":"uint256","name":"quoteReserve","type":"uint256"}])
368
638
  }
639
+ export function getFetchDSPGetVaultReserveQueryOptions(chainId: number | undefined, __to: string | undefined) {
640
+ return {
641
+ queryKey: ['contract-request', chainId, __to],
642
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
643
+ queryFn: () => {
644
+ // @ts-ignore
645
+ return fetchDSPGetVaultReserve(chainId, __to);
646
+ }
647
+ }
648
+ }
369
649
 
370
650
  /**
371
651
  * fetch name
@@ -378,6 +658,16 @@ export function fetchDSPName(chainId: number, __to: string) {
378
658
  const __data = hexlify(concat(['0x06fdde03', __encodeData]));
379
659
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
380
660
  }
661
+ export function getFetchDSPNameQueryOptions(chainId: number | undefined, __to: string | undefined) {
662
+ return {
663
+ queryKey: ['contract-request', chainId, __to],
664
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
665
+ queryFn: () => {
666
+ // @ts-ignore
667
+ return fetchDSPName(chainId, __to);
668
+ }
669
+ }
670
+ }
381
671
 
382
672
  /**
383
673
  * fetch nonces
@@ -391,6 +681,16 @@ export function fetchDSPNonces(chainId: number, __to: string, __input1: string)
391
681
  const __data = hexlify(concat(['0x7ecebe00', __encodeData]));
392
682
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
393
683
  }
684
+ export function getFetchDSPNoncesQueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined) {
685
+ return {
686
+ queryKey: ['contract-request', chainId, __to, __input1],
687
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, __input1 !== undefined && __input1 !== null],
688
+ queryFn: () => {
689
+ // @ts-ignore
690
+ return fetchDSPNonces(chainId, __to, __input1);
691
+ }
692
+ }
693
+ }
394
694
 
395
695
  /**
396
696
  * fetch querySellBase
@@ -413,6 +713,16 @@ export function fetchDSPQuerySellBase(chainId: number, __to: string, trader: str
413
713
  newBaseTarget: bigint;
414
714
  }>(chainId, __to, __data, [{"internalType":"uint256","name":"receiveQuoteAmount","type":"uint256"},{"internalType":"uint256","name":"mtFee","type":"uint256"},{"internalType":"enum PMMPricing.RState","name":"newRState","type":"uint8"},{"internalType":"uint256","name":"newBaseTarget","type":"uint256"}])
415
715
  }
716
+ export function getFetchDSPQuerySellBaseQueryOptions(chainId: number | undefined, __to: string | undefined, trader: string | undefined, payBaseAmount: number | undefined) {
717
+ return {
718
+ queryKey: ['contract-request', chainId, __to, trader, payBaseAmount],
719
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, trader !== undefined && trader !== null, payBaseAmount !== undefined && payBaseAmount !== null],
720
+ queryFn: () => {
721
+ // @ts-ignore
722
+ return fetchDSPQuerySellBase(chainId, __to, trader, payBaseAmount);
723
+ }
724
+ }
725
+ }
416
726
 
417
727
  /**
418
728
  * fetch querySellQuote
@@ -435,6 +745,16 @@ export function fetchDSPQuerySellQuote(chainId: number, __to: string, trader: st
435
745
  newQuoteTarget: bigint;
436
746
  }>(chainId, __to, __data, [{"internalType":"uint256","name":"receiveBaseAmount","type":"uint256"},{"internalType":"uint256","name":"mtFee","type":"uint256"},{"internalType":"enum PMMPricing.RState","name":"newRState","type":"uint8"},{"internalType":"uint256","name":"newQuoteTarget","type":"uint256"}])
437
747
  }
748
+ export function getFetchDSPQuerySellQuoteQueryOptions(chainId: number | undefined, __to: string | undefined, trader: string | undefined, payQuoteAmount: number | undefined) {
749
+ return {
750
+ queryKey: ['contract-request', chainId, __to, trader, payQuoteAmount],
751
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, trader !== undefined && trader !== null, payQuoteAmount !== undefined && payQuoteAmount !== null],
752
+ queryFn: () => {
753
+ // @ts-ignore
754
+ return fetchDSPQuerySellQuote(chainId, __to, trader, payQuoteAmount);
755
+ }
756
+ }
757
+ }
438
758
 
439
759
  /**
440
760
  * fetch symbol
@@ -447,6 +767,16 @@ export function fetchDSPSymbol(chainId: number, __to: string) {
447
767
  const __data = hexlify(concat(['0x95d89b41', __encodeData]));
448
768
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
449
769
  }
770
+ export function getFetchDSPSymbolQueryOptions(chainId: number | undefined, __to: string | undefined) {
771
+ return {
772
+ queryKey: ['contract-request', chainId, __to],
773
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
774
+ queryFn: () => {
775
+ // @ts-ignore
776
+ return fetchDSPSymbol(chainId, __to);
777
+ }
778
+ }
779
+ }
450
780
 
451
781
  /**
452
782
  * fetch totalSupply
@@ -459,6 +789,16 @@ export function fetchDSPTotalSupply(chainId: number, __to: string) {
459
789
  const __data = hexlify(concat(['0x18160ddd', __encodeData]));
460
790
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
461
791
  }
792
+ export function getFetchDSPTotalSupplyQueryOptions(chainId: number | undefined, __to: string | undefined) {
793
+ return {
794
+ queryKey: ['contract-request', chainId, __to],
795
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
796
+ queryFn: () => {
797
+ // @ts-ignore
798
+ return fetchDSPTotalSupply(chainId, __to);
799
+ }
800
+ }
801
+ }
462
802
 
463
803
  /**
464
804
  * fetch version
@@ -471,6 +811,16 @@ export function fetchDSPVersion(chainId: number, __to: string) {
471
811
  const __data = hexlify(concat(['0x54fd4d50', __encodeData]));
472
812
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
473
813
  }
814
+ export function getFetchDSPVersionQueryOptions(chainId: number | undefined, __to: string | undefined) {
815
+ return {
816
+ queryKey: ['contract-request', chainId, __to],
817
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
818
+ queryFn: () => {
819
+ // @ts-ignore
820
+ return fetchDSPVersion(chainId, __to);
821
+ }
822
+ }
823
+ }
474
824
 
475
825
  /**
476
826
  * encode approve