@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 fetchGSPDOMAIN_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 getFetchGSPDOMAIN_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 fetchGSPDOMAIN_SEPARATOR(chainId, __to);
25
+ }
26
+ }
27
+ }
18
28
 
19
29
  /**
20
30
  * fetch PERMIT_TYPEHASH
@@ -27,6 +37,16 @@ export function fetchGSPPERMIT_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 getFetchGSPPERMIT_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 fetchGSPPERMIT_TYPEHASH(chainId, __to);
47
+ }
48
+ }
49
+ }
30
50
 
31
51
  /**
32
52
  * fetch _ADMIN_
@@ -39,6 +59,16 @@ export function fetchGSP_ADMIN_(chainId: number, __to: string) {
39
59
  const __data = hexlify(concat(['0x63ab5993', __encodeData]));
40
60
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
41
61
  }
62
+ export function getFetchGSP_ADMIN_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 fetchGSP_ADMIN_(chainId, __to);
69
+ }
70
+ }
71
+ }
42
72
 
43
73
  /**
44
74
  * fetch _BASE_PRICE_CUMULATIVE_LAST_
@@ -51,6 +81,16 @@ export function fetchGSP_BASE_PRICE_CUMULATIVE_LAST_(chainId: number, __to: stri
51
81
  const __data = hexlify(concat(['0xfe24cb7f', __encodeData]));
52
82
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
53
83
  }
84
+ export function getFetchGSP_BASE_PRICE_CUMULATIVE_LAST_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 fetchGSP_BASE_PRICE_CUMULATIVE_LAST_(chainId, __to);
91
+ }
92
+ }
93
+ }
54
94
 
55
95
  /**
56
96
  * fetch _BASE_RESERVE_
@@ -63,6 +103,16 @@ export function fetchGSP_BASE_RESERVE_(chainId: number, __to: string) {
63
103
  const __data = hexlify(concat(['0x7d721504', __encodeData]));
64
104
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
65
105
  }
106
+ export function getFetchGSP_BASE_RESERVE_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 fetchGSP_BASE_RESERVE_(chainId, __to);
113
+ }
114
+ }
115
+ }
66
116
 
67
117
  /**
68
118
  * fetch _BASE_TARGET_
@@ -75,6 +125,16 @@ export function fetchGSP_BASE_TARGET_(chainId: number, __to: string) {
75
125
  const __data = hexlify(concat(['0xe539ef49', __encodeData]));
76
126
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
77
127
  }
128
+ export function getFetchGSP_BASE_TARGET_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 fetchGSP_BASE_TARGET_(chainId, __to);
135
+ }
136
+ }
137
+ }
78
138
 
79
139
  /**
80
140
  * fetch _BASE_TOKEN_
@@ -87,6 +147,16 @@ export function fetchGSP_BASE_TOKEN_(chainId: number, __to: string) {
87
147
  const __data = hexlify(concat(['0x4a248d2a', __encodeData]));
88
148
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"contract IERC20","name":"","type":"address"}])
89
149
  }
150
+ export function getFetchGSP_BASE_TOKEN_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 fetchGSP_BASE_TOKEN_(chainId, __to);
157
+ }
158
+ }
159
+ }
90
160
 
91
161
  /**
92
162
  * fetch _BLOCK_TIMESTAMP_LAST_
@@ -99,6 +169,16 @@ export function fetchGSP_BLOCK_TIMESTAMP_LAST_(chainId: number, __to: string) {
99
169
  const __data = hexlify(concat(['0x880a4d87', __encodeData]));
100
170
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint32","name":"","type":"uint32"}])
101
171
  }
172
+ export function getFetchGSP_BLOCK_TIMESTAMP_LAST_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 fetchGSP_BLOCK_TIMESTAMP_LAST_(chainId, __to);
179
+ }
180
+ }
181
+ }
102
182
 
103
183
  /**
104
184
  * fetch _IS_OPEN_TWAP_
@@ -111,6 +191,16 @@ export function fetchGSP_IS_OPEN_TWAP_(chainId: number, __to: string) {
111
191
  const __data = hexlify(concat(['0x2df6cb48', __encodeData]));
112
192
  return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
113
193
  }
194
+ export function getFetchGSP_IS_OPEN_TWAP_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 fetchGSP_IS_OPEN_TWAP_(chainId, __to);
201
+ }
202
+ }
203
+ }
114
204
 
115
205
  /**
116
206
  * fetch _I_
@@ -123,6 +213,16 @@ export function fetchGSP_I_(chainId: number, __to: string) {
123
213
  const __data = hexlify(concat(['0xf811d692', __encodeData]));
124
214
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
125
215
  }
216
+ export function getFetchGSP_I_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 fetchGSP_I_(chainId, __to);
223
+ }
224
+ }
225
+ }
126
226
 
127
227
  /**
128
228
  * fetch _K_
@@ -135,6 +235,16 @@ export function fetchGSP_K_(chainId: number, __to: string) {
135
235
  const __data = hexlify(concat(['0xec2fd46d', __encodeData]));
136
236
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
137
237
  }
238
+ export function getFetchGSP_K_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 fetchGSP_K_(chainId, __to);
245
+ }
246
+ }
247
+ }
138
248
 
139
249
  /**
140
250
  * fetch _LP_FEE_RATE_
@@ -147,6 +257,16 @@ export function fetchGSP_LP_FEE_RATE_(chainId: number, __to: string) {
147
257
  const __data = hexlify(concat(['0xab44a7a3', __encodeData]));
148
258
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
149
259
  }
260
+ export function getFetchGSP_LP_FEE_RATE_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 fetchGSP_LP_FEE_RATE_(chainId, __to);
267
+ }
268
+ }
269
+ }
150
270
 
151
271
  /**
152
272
  * fetch _MAINTAINER_
@@ -159,6 +279,16 @@ export function fetchGSP_MAINTAINER_(chainId: number, __to: string) {
159
279
  const __data = hexlify(concat(['0x4322ec83', __encodeData]));
160
280
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
161
281
  }
282
+ export function getFetchGSP_MAINTAINER_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 fetchGSP_MAINTAINER_(chainId, __to);
289
+ }
290
+ }
291
+ }
162
292
 
163
293
  /**
164
294
  * fetch _MT_FEE_BASE_
@@ -171,6 +301,16 @@ export function fetchGSP_MT_FEE_BASE_(chainId: number, __to: string) {
171
301
  const __data = hexlify(concat(['0xbfdbd723', __encodeData]));
172
302
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
173
303
  }
304
+ export function getFetchGSP_MT_FEE_BASE_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 fetchGSP_MT_FEE_BASE_(chainId, __to);
311
+ }
312
+ }
313
+ }
174
314
 
175
315
  /**
176
316
  * fetch _MT_FEE_QUOTE_
@@ -183,6 +323,16 @@ export function fetchGSP_MT_FEE_QUOTE_(chainId: number, __to: string) {
183
323
  const __data = hexlify(concat(['0x47bbad2e', __encodeData]));
184
324
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
185
325
  }
326
+ export function getFetchGSP_MT_FEE_QUOTE_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 fetchGSP_MT_FEE_QUOTE_(chainId, __to);
333
+ }
334
+ }
335
+ }
186
336
 
187
337
  /**
188
338
  * fetch _MT_FEE_RATE_
@@ -195,6 +345,16 @@ export function fetchGSP_MT_FEE_RATE_(chainId: number, __to: string) {
195
345
  const __data = hexlify(concat(['0xc0ffa178', __encodeData]));
196
346
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
197
347
  }
348
+ export function getFetchGSP_MT_FEE_RATE_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 fetchGSP_MT_FEE_RATE_(chainId, __to);
355
+ }
356
+ }
357
+ }
198
358
 
199
359
  /**
200
360
  * fetch _MT_FEE_RATE_MODEL_
@@ -207,6 +367,16 @@ export function fetchGSP_MT_FEE_RATE_MODEL_(chainId: number, __to: string) {
207
367
  const __data = hexlify(concat(['0xf6b06e70', __encodeData]));
208
368
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
209
369
  }
370
+ export function getFetchGSP_MT_FEE_RATE_MODEL_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 fetchGSP_MT_FEE_RATE_MODEL_(chainId, __to);
377
+ }
378
+ }
379
+ }
210
380
 
211
381
  /**
212
382
  * fetch _PRICE_LIMIT_
@@ -219,6 +389,16 @@ export function fetchGSP_PRICE_LIMIT_(chainId: number, __to: string) {
219
389
  const __data = hexlify(concat(['0x3afdfeba', __encodeData]));
220
390
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
221
391
  }
392
+ export function getFetchGSP_PRICE_LIMIT_QueryOptions(chainId: number | undefined, __to: string | undefined) {
393
+ return {
394
+ queryKey: ['contract-request', chainId, __to],
395
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
396
+ queryFn: () => {
397
+ // @ts-ignore
398
+ return fetchGSP_PRICE_LIMIT_(chainId, __to);
399
+ }
400
+ }
401
+ }
222
402
 
223
403
  /**
224
404
  * fetch _QUOTE_RESERVE_
@@ -231,6 +411,16 @@ export function fetchGSP_QUOTE_RESERVE_(chainId: number, __to: string) {
231
411
  const __data = hexlify(concat(['0xbbf5ce78', __encodeData]));
232
412
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
233
413
  }
414
+ export function getFetchGSP_QUOTE_RESERVE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
415
+ return {
416
+ queryKey: ['contract-request', chainId, __to],
417
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
418
+ queryFn: () => {
419
+ // @ts-ignore
420
+ return fetchGSP_QUOTE_RESERVE_(chainId, __to);
421
+ }
422
+ }
423
+ }
234
424
 
235
425
  /**
236
426
  * fetch _QUOTE_TARGET_
@@ -243,6 +433,16 @@ export function fetchGSP_QUOTE_TARGET_(chainId: number, __to: string) {
243
433
  const __data = hexlify(concat(['0x77f58657', __encodeData]));
244
434
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
245
435
  }
436
+ export function getFetchGSP_QUOTE_TARGET_QueryOptions(chainId: number | undefined, __to: string | undefined) {
437
+ return {
438
+ queryKey: ['contract-request', chainId, __to],
439
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
440
+ queryFn: () => {
441
+ // @ts-ignore
442
+ return fetchGSP_QUOTE_TARGET_(chainId, __to);
443
+ }
444
+ }
445
+ }
246
446
 
247
447
  /**
248
448
  * fetch _QUOTE_TOKEN_
@@ -255,6 +455,16 @@ export function fetchGSP_QUOTE_TOKEN_(chainId: number, __to: string) {
255
455
  const __data = hexlify(concat(['0xd4b97046', __encodeData]));
256
456
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"contract IERC20","name":"","type":"address"}])
257
457
  }
458
+ export function getFetchGSP_QUOTE_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined) {
459
+ return {
460
+ queryKey: ['contract-request', chainId, __to],
461
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
462
+ queryFn: () => {
463
+ // @ts-ignore
464
+ return fetchGSP_QUOTE_TOKEN_(chainId, __to);
465
+ }
466
+ }
467
+ }
258
468
 
259
469
  /**
260
470
  * fetch _RState_
@@ -267,6 +477,16 @@ export function fetchGSP_RState_(chainId: number, __to: string) {
267
477
  const __data = hexlify(concat(['0xbf357dae', __encodeData]));
268
478
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint32","name":"","type":"uint32"}])
269
479
  }
480
+ export function getFetchGSP_RState_QueryOptions(chainId: number | undefined, __to: string | undefined) {
481
+ return {
482
+ queryKey: ['contract-request', chainId, __to],
483
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
484
+ queryFn: () => {
485
+ // @ts-ignore
486
+ return fetchGSP_RState_(chainId, __to);
487
+ }
488
+ }
489
+ }
270
490
 
271
491
  /**
272
492
  * fetch addressToShortString
@@ -280,6 +500,16 @@ export function fetchGSPAddressToShortString(chainId: number, __to: string, _add
280
500
  const __data = hexlify(concat(['0x17101940', __encodeData]));
281
501
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
282
502
  }
503
+ export function getFetchGSPAddressToShortStringQueryOptions(chainId: number | undefined, __to: string | undefined, _addr: string | undefined) {
504
+ return {
505
+ queryKey: ['contract-request', chainId, __to, _addr],
506
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, _addr !== undefined && _addr !== null],
507
+ queryFn: () => {
508
+ // @ts-ignore
509
+ return fetchGSPAddressToShortString(chainId, __to, _addr);
510
+ }
511
+ }
512
+ }
283
513
 
284
514
  /**
285
515
  * fetch allowance
@@ -294,6 +524,16 @@ export function fetchGSPAllowance(chainId: number, __to: string, owner: string,
294
524
  const __data = hexlify(concat(['0xdd62ed3e', __encodeData]));
295
525
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
296
526
  }
527
+ export function getFetchGSPAllowanceQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined, spender: string | undefined) {
528
+ return {
529
+ queryKey: ['contract-request', chainId, __to, owner, spender],
530
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, owner !== undefined && owner !== null, spender !== undefined && spender !== null],
531
+ queryFn: () => {
532
+ // @ts-ignore
533
+ return fetchGSPAllowance(chainId, __to, owner, spender);
534
+ }
535
+ }
536
+ }
297
537
 
298
538
  /**
299
539
  * fetch balanceOf
@@ -307,6 +547,16 @@ export function fetchGSPBalanceOf(chainId: number, __to: string, owner: string)
307
547
  const __data = hexlify(concat(['0x70a08231', __encodeData]));
308
548
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"balance","type":"uint256"}])
309
549
  }
550
+ export function getFetchGSPBalanceOfQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined) {
551
+ return {
552
+ queryKey: ['contract-request', chainId, __to, owner],
553
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, owner !== undefined && owner !== null],
554
+ queryFn: () => {
555
+ // @ts-ignore
556
+ return fetchGSPBalanceOf(chainId, __to, owner);
557
+ }
558
+ }
559
+ }
310
560
 
311
561
  /**
312
562
  * fetch decimals
@@ -319,6 +569,16 @@ export function fetchGSPDecimals(chainId: number, __to: string) {
319
569
  const __data = hexlify(concat(['0x313ce567', __encodeData]));
320
570
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint8","name":"","type":"uint8"}])
321
571
  }
572
+ export function getFetchGSPDecimalsQueryOptions(chainId: number | undefined, __to: string | undefined) {
573
+ return {
574
+ queryKey: ['contract-request', chainId, __to],
575
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
576
+ queryFn: () => {
577
+ // @ts-ignore
578
+ return fetchGSPDecimals(chainId, __to);
579
+ }
580
+ }
581
+ }
322
582
 
323
583
  /**
324
584
  * fetch getBaseInput
@@ -331,6 +591,16 @@ export function fetchGSPGetBaseInput(chainId: number, __to: string) {
331
591
  const __data = hexlify(concat(['0x65f6fcbb', __encodeData]));
332
592
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"input","type":"uint256"}])
333
593
  }
594
+ export function getFetchGSPGetBaseInputQueryOptions(chainId: number | undefined, __to: string | undefined) {
595
+ return {
596
+ queryKey: ['contract-request', chainId, __to],
597
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
598
+ queryFn: () => {
599
+ // @ts-ignore
600
+ return fetchGSPGetBaseInput(chainId, __to);
601
+ }
602
+ }
603
+ }
334
604
 
335
605
  /**
336
606
  * fetch getMidPrice
@@ -343,6 +613,16 @@ export function fetchGSPGetMidPrice(chainId: number, __to: string) {
343
613
  const __data = hexlify(concat(['0xee27c689', __encodeData]));
344
614
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"midPrice","type":"uint256"}])
345
615
  }
616
+ export function getFetchGSPGetMidPriceQueryOptions(chainId: number | undefined, __to: string | undefined) {
617
+ return {
618
+ queryKey: ['contract-request', chainId, __to],
619
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
620
+ queryFn: () => {
621
+ // @ts-ignore
622
+ return fetchGSPGetMidPrice(chainId, __to);
623
+ }
624
+ }
625
+ }
346
626
 
347
627
  /**
348
628
  * fetch getMtFeeTotal
@@ -359,6 +639,16 @@ export function fetchGSPGetMtFeeTotal(chainId: number, __to: string) {
359
639
  mtFeeQuote: bigint;
360
640
  }>(chainId, __to, __data, [{"internalType":"uint256","name":"mtFeeBase","type":"uint256"},{"internalType":"uint256","name":"mtFeeQuote","type":"uint256"}])
361
641
  }
642
+ export function getFetchGSPGetMtFeeTotalQueryOptions(chainId: number | undefined, __to: string | undefined) {
643
+ return {
644
+ queryKey: ['contract-request', chainId, __to],
645
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
646
+ queryFn: () => {
647
+ // @ts-ignore
648
+ return fetchGSPGetMtFeeTotal(chainId, __to);
649
+ }
650
+ }
651
+ }
362
652
 
363
653
  /**
364
654
  * fetch getPMMState
@@ -371,6 +661,16 @@ export function fetchGSPGetPMMState(chainId: number, __to: string) {
371
661
  const __data = hexlify(concat(['0xa382d1b9', __encodeData]));
372
662
  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"}])
373
663
  }
664
+ export function getFetchGSPGetPMMStateQueryOptions(chainId: number | undefined, __to: string | undefined) {
665
+ return {
666
+ queryKey: ['contract-request', chainId, __to],
667
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
668
+ queryFn: () => {
669
+ // @ts-ignore
670
+ return fetchGSPGetPMMState(chainId, __to);
671
+ }
672
+ }
673
+ }
374
674
 
375
675
  /**
376
676
  * fetch getPMMStateForCall
@@ -397,6 +697,16 @@ export function fetchGSPGetPMMStateForCall(chainId: number, __to: string) {
397
697
  R: bigint;
398
698
  }>(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"}])
399
699
  }
700
+ export function getFetchGSPGetPMMStateForCallQueryOptions(chainId: number | undefined, __to: string | undefined) {
701
+ return {
702
+ queryKey: ['contract-request', chainId, __to],
703
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
704
+ queryFn: () => {
705
+ // @ts-ignore
706
+ return fetchGSPGetPMMStateForCall(chainId, __to);
707
+ }
708
+ }
709
+ }
400
710
 
401
711
  /**
402
712
  * fetch getQuoteInput
@@ -409,6 +719,16 @@ export function fetchGSPGetQuoteInput(chainId: number, __to: string) {
409
719
  const __data = hexlify(concat(['0x71f9100c', __encodeData]));
410
720
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"input","type":"uint256"}])
411
721
  }
722
+ export function getFetchGSPGetQuoteInputQueryOptions(chainId: number | undefined, __to: string | undefined) {
723
+ return {
724
+ queryKey: ['contract-request', chainId, __to],
725
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
726
+ queryFn: () => {
727
+ // @ts-ignore
728
+ return fetchGSPGetQuoteInput(chainId, __to);
729
+ }
730
+ }
731
+ }
412
732
 
413
733
  /**
414
734
  * fetch getUserFeeRate
@@ -426,6 +746,16 @@ export function fetchGSPGetUserFeeRate(chainId: number, __to: string, user: stri
426
746
  mtFeeRate: bigint;
427
747
  }>(chainId, __to, __data, [{"internalType":"uint256","name":"lpFeeRate","type":"uint256"},{"internalType":"uint256","name":"mtFeeRate","type":"uint256"}])
428
748
  }
749
+ export function getFetchGSPGetUserFeeRateQueryOptions(chainId: number | undefined, __to: string | undefined, user: string | undefined) {
750
+ return {
751
+ queryKey: ['contract-request', chainId, __to, user],
752
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, user !== undefined && user !== null],
753
+ queryFn: () => {
754
+ // @ts-ignore
755
+ return fetchGSPGetUserFeeRate(chainId, __to, user);
756
+ }
757
+ }
758
+ }
429
759
 
430
760
  /**
431
761
  * fetch getVaultReserve
@@ -442,6 +772,16 @@ export function fetchGSPGetVaultReserve(chainId: number, __to: string) {
442
772
  quoteReserve: bigint;
443
773
  }>(chainId, __to, __data, [{"internalType":"uint256","name":"baseReserve","type":"uint256"},{"internalType":"uint256","name":"quoteReserve","type":"uint256"}])
444
774
  }
775
+ export function getFetchGSPGetVaultReserveQueryOptions(chainId: number | undefined, __to: string | undefined) {
776
+ return {
777
+ queryKey: ['contract-request', chainId, __to],
778
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
779
+ queryFn: () => {
780
+ // @ts-ignore
781
+ return fetchGSPGetVaultReserve(chainId, __to);
782
+ }
783
+ }
784
+ }
445
785
 
446
786
  /**
447
787
  * fetch name
@@ -454,6 +794,16 @@ export function fetchGSPName(chainId: number, __to: string) {
454
794
  const __data = hexlify(concat(['0x06fdde03', __encodeData]));
455
795
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
456
796
  }
797
+ export function getFetchGSPNameQueryOptions(chainId: number | undefined, __to: string | undefined) {
798
+ return {
799
+ queryKey: ['contract-request', chainId, __to],
800
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
801
+ queryFn: () => {
802
+ // @ts-ignore
803
+ return fetchGSPName(chainId, __to);
804
+ }
805
+ }
806
+ }
457
807
 
458
808
  /**
459
809
  * fetch nonces
@@ -467,6 +817,16 @@ export function fetchGSPNonces(chainId: number, __to: string, __input1: string)
467
817
  const __data = hexlify(concat(['0x7ecebe00', __encodeData]));
468
818
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
469
819
  }
820
+ export function getFetchGSPNoncesQueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined) {
821
+ return {
822
+ queryKey: ['contract-request', chainId, __to, __input1],
823
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, __input1 !== undefined && __input1 !== null],
824
+ queryFn: () => {
825
+ // @ts-ignore
826
+ return fetchGSPNonces(chainId, __to, __input1);
827
+ }
828
+ }
829
+ }
470
830
 
471
831
  /**
472
832
  * fetch querySellBase
@@ -489,6 +849,16 @@ export function fetchGSPQuerySellBase(chainId: number, __to: string, trader: str
489
849
  newBaseTarget: bigint;
490
850
  }>(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"}])
491
851
  }
852
+ export function getFetchGSPQuerySellBaseQueryOptions(chainId: number | undefined, __to: string | undefined, trader: string | undefined, payBaseAmount: number | undefined) {
853
+ return {
854
+ queryKey: ['contract-request', chainId, __to, trader, payBaseAmount],
855
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, trader !== undefined && trader !== null, payBaseAmount !== undefined && payBaseAmount !== null],
856
+ queryFn: () => {
857
+ // @ts-ignore
858
+ return fetchGSPQuerySellBase(chainId, __to, trader, payBaseAmount);
859
+ }
860
+ }
861
+ }
492
862
 
493
863
  /**
494
864
  * fetch querySellQuote
@@ -511,6 +881,16 @@ export function fetchGSPQuerySellQuote(chainId: number, __to: string, trader: st
511
881
  newQuoteTarget: bigint;
512
882
  }>(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"}])
513
883
  }
884
+ export function getFetchGSPQuerySellQuoteQueryOptions(chainId: number | undefined, __to: string | undefined, trader: string | undefined, payQuoteAmount: number | undefined) {
885
+ return {
886
+ queryKey: ['contract-request', chainId, __to, trader, payQuoteAmount],
887
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, trader !== undefined && trader !== null, payQuoteAmount !== undefined && payQuoteAmount !== null],
888
+ queryFn: () => {
889
+ // @ts-ignore
890
+ return fetchGSPQuerySellQuote(chainId, __to, trader, payQuoteAmount);
891
+ }
892
+ }
893
+ }
514
894
 
515
895
  /**
516
896
  * fetch symbol
@@ -523,6 +903,16 @@ export function fetchGSPSymbol(chainId: number, __to: string) {
523
903
  const __data = hexlify(concat(['0x95d89b41', __encodeData]));
524
904
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
525
905
  }
906
+ export function getFetchGSPSymbolQueryOptions(chainId: number | undefined, __to: string | undefined) {
907
+ return {
908
+ queryKey: ['contract-request', chainId, __to],
909
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
910
+ queryFn: () => {
911
+ // @ts-ignore
912
+ return fetchGSPSymbol(chainId, __to);
913
+ }
914
+ }
915
+ }
526
916
 
527
917
  /**
528
918
  * fetch totalSupply
@@ -535,6 +925,16 @@ export function fetchGSPTotalSupply(chainId: number, __to: string) {
535
925
  const __data = hexlify(concat(['0x18160ddd', __encodeData]));
536
926
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
537
927
  }
928
+ export function getFetchGSPTotalSupplyQueryOptions(chainId: number | undefined, __to: string | undefined) {
929
+ return {
930
+ queryKey: ['contract-request', chainId, __to],
931
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
932
+ queryFn: () => {
933
+ // @ts-ignore
934
+ return fetchGSPTotalSupply(chainId, __to);
935
+ }
936
+ }
937
+ }
538
938
 
539
939
  /**
540
940
  * fetch version
@@ -547,6 +947,16 @@ export function fetchGSPVersion(chainId: number, __to: string) {
547
947
  const __data = hexlify(concat(['0x54fd4d50', __encodeData]));
548
948
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
549
949
  }
950
+ export function getFetchGSPVersionQueryOptions(chainId: number | undefined, __to: string | undefined) {
951
+ return {
952
+ queryKey: ['contract-request', chainId, __to],
953
+ enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
954
+ queryFn: () => {
955
+ // @ts-ignore
956
+ return fetchGSPVersion(chainId, __to);
957
+ }
958
+ }
959
+ }
550
960
 
551
961
  /**
552
962
  * encode adjustK