@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 fetchD3VaultDISCOUNT(chainId: number) {
21
21
  const __data = hexlify(concat(['0x0d37b457', __encodeData]));
22
22
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
23
23
  }
24
+ export function getFetchD3VaultDISCOUNTQueryOptions(chainId: number | undefined) {
25
+ return {
26
+ queryKey: ['contract-request', chainId],
27
+ enabled: [chainId !== undefined && chainId !== null],
28
+ queryFn: () => {
29
+ // @ts-ignore
30
+ return fetchD3VaultDISCOUNT(chainId);
31
+ }
32
+ }
33
+ }
24
34
 
25
35
  /**
26
36
  * fetch IM
@@ -34,6 +44,16 @@ export function fetchD3VaultIM(chainId: number) {
34
44
  const __data = hexlify(concat(['0x1d898f52', __encodeData]));
35
45
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
36
46
  }
47
+ export function getFetchD3VaultIMQueryOptions(chainId: number | undefined) {
48
+ return {
49
+ queryKey: ['contract-request', chainId],
50
+ enabled: [chainId !== undefined && chainId !== null],
51
+ queryFn: () => {
52
+ // @ts-ignore
53
+ return fetchD3VaultIM(chainId);
54
+ }
55
+ }
56
+ }
37
57
 
38
58
  /**
39
59
  * fetch MM
@@ -47,6 +67,16 @@ export function fetchD3VaultMM(chainId: number) {
47
67
  const __data = hexlify(concat(['0x3a21c719', __encodeData]));
48
68
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
49
69
  }
70
+ export function getFetchD3VaultMMQueryOptions(chainId: number | undefined) {
71
+ return {
72
+ queryKey: ['contract-request', chainId],
73
+ enabled: [chainId !== undefined && chainId !== null],
74
+ queryFn: () => {
75
+ // @ts-ignore
76
+ return fetchD3VaultMM(chainId);
77
+ }
78
+ }
79
+ }
50
80
 
51
81
  /**
52
82
  * fetch _CLONE_FACTORY_
@@ -60,6 +90,16 @@ export function fetchD3Vault_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 getFetchD3Vault_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 fetchD3Vault_CLONE_FACTORY_(chainId);
100
+ }
101
+ }
102
+ }
63
103
 
64
104
  /**
65
105
  * fetch _D3TOKEN_LOGIC_
@@ -73,6 +113,16 @@ export function fetchD3Vault_D3TOKEN_LOGIC_(chainId: number) {
73
113
  const __data = hexlify(concat(['0x1ad0ee33', __encodeData]));
74
114
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
75
115
  }
116
+ export function getFetchD3Vault_D3TOKEN_LOGIC_QueryOptions(chainId: number | undefined) {
117
+ return {
118
+ queryKey: ['contract-request', chainId],
119
+ enabled: [chainId !== undefined && chainId !== null],
120
+ queryFn: () => {
121
+ // @ts-ignore
122
+ return fetchD3Vault_D3TOKEN_LOGIC_(chainId);
123
+ }
124
+ }
125
+ }
76
126
 
77
127
  /**
78
128
  * fetch _D3_FACTORY_
@@ -86,6 +136,16 @@ export function fetchD3Vault_D3_FACTORY_(chainId: number) {
86
136
  const __data = hexlify(concat(['0xbd31200c', __encodeData]));
87
137
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
88
138
  }
139
+ export function getFetchD3Vault_D3_FACTORY_QueryOptions(chainId: number | undefined) {
140
+ return {
141
+ queryKey: ['contract-request', chainId],
142
+ enabled: [chainId !== undefined && chainId !== null],
143
+ queryFn: () => {
144
+ // @ts-ignore
145
+ return fetchD3Vault_D3_FACTORY_(chainId);
146
+ }
147
+ }
148
+ }
89
149
 
90
150
  /**
91
151
  * fetch _MAINTAINER_
@@ -99,6 +159,16 @@ export function fetchD3Vault_MAINTAINER_(chainId: number) {
99
159
  const __data = hexlify(concat(['0x4322ec83', __encodeData]));
100
160
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
101
161
  }
162
+ export function getFetchD3Vault_MAINTAINER_QueryOptions(chainId: number | undefined) {
163
+ return {
164
+ queryKey: ['contract-request', chainId],
165
+ enabled: [chainId !== undefined && chainId !== null],
166
+ queryFn: () => {
167
+ // @ts-ignore
168
+ return fetchD3Vault_MAINTAINER_(chainId);
169
+ }
170
+ }
171
+ }
102
172
 
103
173
  /**
104
174
  * fetch _ORACLE_
@@ -112,6 +182,16 @@ export function fetchD3Vault_ORACLE_(chainId: number) {
112
182
  const __data = hexlify(concat(['0x73a2ab7c', __encodeData]));
113
183
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
114
184
  }
185
+ export function getFetchD3Vault_ORACLE_QueryOptions(chainId: number | undefined) {
186
+ return {
187
+ queryKey: ['contract-request', chainId],
188
+ enabled: [chainId !== undefined && chainId !== null],
189
+ queryFn: () => {
190
+ // @ts-ignore
191
+ return fetchD3Vault_ORACLE_(chainId);
192
+ }
193
+ }
194
+ }
115
195
 
116
196
  /**
117
197
  * fetch _PENDING_REMOVE_POOL_
@@ -125,6 +205,16 @@ export function fetchD3Vault_PENDING_REMOVE_POOL_(chainId: number) {
125
205
  const __data = hexlify(concat(['0x74aec29c', __encodeData]));
126
206
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
127
207
  }
208
+ export function getFetchD3Vault_PENDING_REMOVE_POOL_QueryOptions(chainId: number | undefined) {
209
+ return {
210
+ queryKey: ['contract-request', chainId],
211
+ enabled: [chainId !== undefined && chainId !== null],
212
+ queryFn: () => {
213
+ // @ts-ignore
214
+ return fetchD3Vault_PENDING_REMOVE_POOL_(chainId);
215
+ }
216
+ }
217
+ }
128
218
 
129
219
  /**
130
220
  * fetch _POOL_QUOTA_
@@ -138,6 +228,16 @@ export function fetchD3Vault_POOL_QUOTA_(chainId: number) {
138
228
  const __data = hexlify(concat(['0x96ec3445', __encodeData]));
139
229
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
140
230
  }
231
+ export function getFetchD3Vault_POOL_QUOTA_QueryOptions(chainId: number | undefined) {
232
+ return {
233
+ queryKey: ['contract-request', chainId],
234
+ enabled: [chainId !== undefined && chainId !== null],
235
+ queryFn: () => {
236
+ // @ts-ignore
237
+ return fetchD3Vault_POOL_QUOTA_(chainId);
238
+ }
239
+ }
240
+ }
141
241
 
142
242
  /**
143
243
  * fetch _RATE_MANAGER_
@@ -151,6 +251,16 @@ export function fetchD3Vault_RATE_MANAGER_(chainId: number) {
151
251
  const __data = hexlify(concat(['0x83728e29', __encodeData]));
152
252
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
153
253
  }
254
+ export function getFetchD3Vault_RATE_MANAGER_QueryOptions(chainId: number | undefined) {
255
+ return {
256
+ queryKey: ['contract-request', chainId],
257
+ enabled: [chainId !== undefined && chainId !== null],
258
+ queryFn: () => {
259
+ // @ts-ignore
260
+ return fetchD3Vault_RATE_MANAGER_(chainId);
261
+ }
262
+ }
263
+ }
154
264
 
155
265
  /**
156
266
  * fetch _USER_QUOTA_
@@ -164,6 +274,16 @@ export function fetchD3Vault_USER_QUOTA_(chainId: number) {
164
274
  const __data = hexlify(concat(['0xf4a48008', __encodeData]));
165
275
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
166
276
  }
277
+ export function getFetchD3Vault_USER_QUOTA_QueryOptions(chainId: number | undefined) {
278
+ return {
279
+ queryKey: ['contract-request', chainId],
280
+ enabled: [chainId !== undefined && chainId !== null],
281
+ queryFn: () => {
282
+ // @ts-ignore
283
+ return fetchD3Vault_USER_QUOTA_(chainId);
284
+ }
285
+ }
286
+ }
167
287
 
168
288
  /**
169
289
  * fetch accrualTimestampMap
@@ -178,6 +298,16 @@ export function fetchD3VaultAccrualTimestampMap(chainId: number, __input1: strin
178
298
  const __data = hexlify(concat(['0x29b8ba37', __encodeData]));
179
299
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
180
300
  }
301
+ export function getFetchD3VaultAccrualTimestampMapQueryOptions(chainId: number | undefined, __input1: string | undefined) {
302
+ return {
303
+ queryKey: ['contract-request', chainId, __input1],
304
+ enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null],
305
+ queryFn: () => {
306
+ // @ts-ignore
307
+ return fetchD3VaultAccrualTimestampMap(chainId, __input1);
308
+ }
309
+ }
310
+ }
181
311
 
182
312
  /**
183
313
  * fetch accrueInterestForRead
@@ -200,6 +330,16 @@ export function fetchD3VaultAccrueInterestForRead(chainId: number, token: string
200
330
  accrualTime: bigint;
201
331
  }>(chainId, __to, __data, [{"internalType":"uint256","name":"totalBorrowsNew","type":"uint256"},{"internalType":"uint256","name":"totalReservesNew","type":"uint256"},{"internalType":"uint256","name":"borrowIndexNew","type":"uint256"},{"internalType":"uint256","name":"accrualTime","type":"uint256"}])
202
332
  }
333
+ export function getFetchD3VaultAccrueInterestForReadQueryOptions(chainId: number | undefined, token: string | undefined) {
334
+ return {
335
+ queryKey: ['contract-request', chainId, token],
336
+ enabled: [chainId !== undefined && chainId !== null, token !== undefined && token !== null],
337
+ queryFn: () => {
338
+ // @ts-ignore
339
+ return fetchD3VaultAccrueInterestForRead(chainId, token);
340
+ }
341
+ }
342
+ }
203
343
 
204
344
  /**
205
345
  * fetch allPoolAddrMap
@@ -214,6 +354,16 @@ export function fetchD3VaultAllPoolAddrMap(chainId: number, __input1: string) {
214
354
  const __data = hexlify(concat(['0x70cd746d', __encodeData]));
215
355
  return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
216
356
  }
357
+ export function getFetchD3VaultAllPoolAddrMapQueryOptions(chainId: number | undefined, __input1: string | undefined) {
358
+ return {
359
+ queryKey: ['contract-request', chainId, __input1],
360
+ enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null],
361
+ queryFn: () => {
362
+ // @ts-ignore
363
+ return fetchD3VaultAllPoolAddrMap(chainId, __input1);
364
+ }
365
+ }
366
+ }
217
367
 
218
368
  /**
219
369
  * fetch allowedLiquidator
@@ -228,6 +378,16 @@ export function fetchD3VaultAllowedLiquidator(chainId: number, __input1: string)
228
378
  const __data = hexlify(concat(['0x1e516051', __encodeData]));
229
379
  return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
230
380
  }
381
+ export function getFetchD3VaultAllowedLiquidatorQueryOptions(chainId: number | undefined, __input1: string | undefined) {
382
+ return {
383
+ queryKey: ['contract-request', chainId, __input1],
384
+ enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null],
385
+ queryFn: () => {
386
+ // @ts-ignore
387
+ return fetchD3VaultAllowedLiquidator(chainId, __input1);
388
+ }
389
+ }
390
+ }
231
391
 
232
392
  /**
233
393
  * fetch allowedRouter
@@ -242,6 +402,16 @@ export function fetchD3VaultAllowedRouter(chainId: number, __input1: string) {
242
402
  const __data = hexlify(concat(['0x30ca07d5', __encodeData]));
243
403
  return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
244
404
  }
405
+ export function getFetchD3VaultAllowedRouterQueryOptions(chainId: number | undefined, __input1: string | undefined) {
406
+ return {
407
+ queryKey: ['contract-request', chainId, __input1],
408
+ enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null],
409
+ queryFn: () => {
410
+ // @ts-ignore
411
+ return fetchD3VaultAllowedRouter(chainId, __input1);
412
+ }
413
+ }
414
+ }
245
415
 
246
416
  /**
247
417
  * fetch assetInfo
@@ -280,6 +450,16 @@ export function fetchD3VaultAssetInfo(chainId: number, __input1: string) {
280
450
  debtWeight: bigint;
281
451
  }>(chainId, __to, __data, [{"internalType":"address","name":"dToken","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"totalBorrows","type":"uint256"},{"internalType":"uint256","name":"borrowIndex","type":"uint256"},{"internalType":"uint256","name":"accrualTime","type":"uint256"},{"internalType":"uint256","name":"totalReserves","type":"uint256"},{"internalType":"uint256","name":"withdrawnReserves","type":"uint256"},{"internalType":"uint256","name":"reserveFactor","type":"uint256"},{"internalType":"uint256","name":"maxDepositAmount","type":"uint256"},{"internalType":"uint256","name":"maxCollateralAmount","type":"uint256"},{"internalType":"uint256","name":"collateralWeight","type":"uint256"},{"internalType":"uint256","name":"debtWeight","type":"uint256"}])
282
452
  }
453
+ export function getFetchD3VaultAssetInfoQueryOptions(chainId: number | undefined, __input1: string | undefined) {
454
+ return {
455
+ queryKey: ['contract-request', chainId, __input1],
456
+ enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null],
457
+ queryFn: () => {
458
+ // @ts-ignore
459
+ return fetchD3VaultAssetInfo(chainId, __input1);
460
+ }
461
+ }
462
+ }
283
463
 
284
464
  /**
285
465
  * fetch checkBadDebt
@@ -294,6 +474,16 @@ export function fetchD3VaultCheckBadDebt(chainId: number, pool: string) {
294
474
  const __data = hexlify(concat(['0xe2c2acff', __encodeData]));
295
475
  return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
296
476
  }
477
+ export function getFetchD3VaultCheckBadDebtQueryOptions(chainId: number | undefined, pool: string | undefined) {
478
+ return {
479
+ queryKey: ['contract-request', chainId, pool],
480
+ enabled: [chainId !== undefined && chainId !== null, pool !== undefined && pool !== null],
481
+ queryFn: () => {
482
+ // @ts-ignore
483
+ return fetchD3VaultCheckBadDebt(chainId, pool);
484
+ }
485
+ }
486
+ }
297
487
 
298
488
  /**
299
489
  * fetch checkBadDebtAfterAccrue
@@ -308,6 +498,16 @@ export function fetchD3VaultCheckBadDebtAfterAccrue(chainId: number, pool: strin
308
498
  const __data = hexlify(concat(['0x1476fcc2', __encodeData]));
309
499
  return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
310
500
  }
501
+ export function getFetchD3VaultCheckBadDebtAfterAccrueQueryOptions(chainId: number | undefined, pool: string | undefined) {
502
+ return {
503
+ queryKey: ['contract-request', chainId, pool],
504
+ enabled: [chainId !== undefined && chainId !== null, pool !== undefined && pool !== null],
505
+ queryFn: () => {
506
+ // @ts-ignore
507
+ return fetchD3VaultCheckBadDebtAfterAccrue(chainId, pool);
508
+ }
509
+ }
510
+ }
311
511
 
312
512
  /**
313
513
  * fetch checkBorrowSafe
@@ -322,6 +522,16 @@ export function fetchD3VaultCheckBorrowSafe(chainId: number, pool: string) {
322
522
  const __data = hexlify(concat(['0x55928664', __encodeData]));
323
523
  return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
324
524
  }
525
+ export function getFetchD3VaultCheckBorrowSafeQueryOptions(chainId: number | undefined, pool: string | undefined) {
526
+ return {
527
+ queryKey: ['contract-request', chainId, pool],
528
+ enabled: [chainId !== undefined && chainId !== null, pool !== undefined && pool !== null],
529
+ queryFn: () => {
530
+ // @ts-ignore
531
+ return fetchD3VaultCheckBorrowSafe(chainId, pool);
532
+ }
533
+ }
534
+ }
325
535
 
326
536
  /**
327
537
  * fetch checkCanBeLiquidated
@@ -336,6 +546,16 @@ export function fetchD3VaultCheckCanBeLiquidated(chainId: number, pool: string)
336
546
  const __data = hexlify(concat(['0x80b47fb0', __encodeData]));
337
547
  return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
338
548
  }
549
+ export function getFetchD3VaultCheckCanBeLiquidatedQueryOptions(chainId: number | undefined, pool: string | undefined) {
550
+ return {
551
+ queryKey: ['contract-request', chainId, pool],
552
+ enabled: [chainId !== undefined && chainId !== null, pool !== undefined && pool !== null],
553
+ queryFn: () => {
554
+ // @ts-ignore
555
+ return fetchD3VaultCheckCanBeLiquidated(chainId, pool);
556
+ }
557
+ }
558
+ }
339
559
 
340
560
  /**
341
561
  * fetch checkCanBeLiquidatedAfterAccrue
@@ -350,6 +570,16 @@ export function fetchD3VaultCheckCanBeLiquidatedAfterAccrue(chainId: number, poo
350
570
  const __data = hexlify(concat(['0x6ad682d3', __encodeData]));
351
571
  return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
352
572
  }
573
+ export function getFetchD3VaultCheckCanBeLiquidatedAfterAccrueQueryOptions(chainId: number | undefined, pool: string | undefined) {
574
+ return {
575
+ queryKey: ['contract-request', chainId, pool],
576
+ enabled: [chainId !== undefined && chainId !== null, pool !== undefined && pool !== null],
577
+ queryFn: () => {
578
+ // @ts-ignore
579
+ return fetchD3VaultCheckCanBeLiquidatedAfterAccrue(chainId, pool);
580
+ }
581
+ }
582
+ }
353
583
 
354
584
  /**
355
585
  * fetch checkSafe
@@ -364,6 +594,16 @@ export function fetchD3VaultCheckSafe(chainId: number, pool: string) {
364
594
  const __data = hexlify(concat(['0x02b345c3', __encodeData]));
365
595
  return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
366
596
  }
597
+ export function getFetchD3VaultCheckSafeQueryOptions(chainId: number | undefined, pool: string | undefined) {
598
+ return {
599
+ queryKey: ['contract-request', chainId, pool],
600
+ enabled: [chainId !== undefined && chainId !== null, pool !== undefined && pool !== null],
601
+ queryFn: () => {
602
+ // @ts-ignore
603
+ return fetchD3VaultCheckSafe(chainId, pool);
604
+ }
605
+ }
606
+ }
367
607
 
368
608
  /**
369
609
  * fetch creatorPoolMap
@@ -379,6 +619,16 @@ export function fetchD3VaultCreatorPoolMap(chainId: number, __input1: string, __
379
619
  const __data = hexlify(concat(['0x1c4905c7', __encodeData]));
380
620
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
381
621
  }
622
+ export function getFetchD3VaultCreatorPoolMapQueryOptions(chainId: number | undefined, __input1: string | undefined, __input2: number | undefined) {
623
+ return {
624
+ queryKey: ['contract-request', chainId, __input1, __input2],
625
+ enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null, __input2 !== undefined && __input2 !== null],
626
+ queryFn: () => {
627
+ // @ts-ignore
628
+ return fetchD3VaultCreatorPoolMap(chainId, __input1, __input2);
629
+ }
630
+ }
631
+ }
382
632
 
383
633
  /**
384
634
  * fetch getAssetInfo
@@ -415,6 +665,16 @@ export function fetchD3VaultGetAssetInfo(chainId: number, token: string) {
415
665
  balance: bigint;
416
666
  }>(chainId, __to, __data, [{"internalType":"address","name":"dToken","type":"address"},{"internalType":"uint256","name":"totalBorrows","type":"uint256"},{"internalType":"uint256","name":"totalReserves","type":"uint256"},{"internalType":"uint256","name":"reserveFactor","type":"uint256"},{"internalType":"uint256","name":"borrowIndex","type":"uint256"},{"internalType":"uint256","name":"accrualTime","type":"uint256"},{"internalType":"uint256","name":"maxDepositAmount","type":"uint256"},{"internalType":"uint256","name":"collateralWeight","type":"uint256"},{"internalType":"uint256","name":"debtWeight","type":"uint256"},{"internalType":"uint256","name":"withdrawnReserves","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"}])
417
667
  }
668
+ export function getFetchD3VaultGetAssetInfoQueryOptions(chainId: number | undefined, token: string | undefined) {
669
+ return {
670
+ queryKey: ['contract-request', chainId, token],
671
+ enabled: [chainId !== undefined && chainId !== null, token !== undefined && token !== null],
672
+ queryFn: () => {
673
+ // @ts-ignore
674
+ return fetchD3VaultGetAssetInfo(chainId, token);
675
+ }
676
+ }
677
+ }
418
678
 
419
679
  /**
420
680
  * fetch getBalanceAndBorrows
@@ -434,6 +694,16 @@ export function fetchD3VaultGetBalanceAndBorrows(chainId: number, pool: string,
434
694
  __output1: bigint;
435
695
  }>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}])
436
696
  }
697
+ export function getFetchD3VaultGetBalanceAndBorrowsQueryOptions(chainId: number | undefined, pool: string | undefined, token: string | undefined) {
698
+ return {
699
+ queryKey: ['contract-request', chainId, pool, token],
700
+ enabled: [chainId !== undefined && chainId !== null, pool !== undefined && pool !== null, token !== undefined && token !== null],
701
+ queryFn: () => {
702
+ // @ts-ignore
703
+ return fetchD3VaultGetBalanceAndBorrows(chainId, pool, token);
704
+ }
705
+ }
706
+ }
437
707
 
438
708
  /**
439
709
  * fetch getBorrowRate
@@ -448,6 +718,16 @@ export function fetchD3VaultGetBorrowRate(chainId: number, token: string) {
448
718
  const __data = hexlify(concat(['0xd71275f6', __encodeData]));
449
719
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"rate","type":"uint256"}])
450
720
  }
721
+ export function getFetchD3VaultGetBorrowRateQueryOptions(chainId: number | undefined, token: string | undefined) {
722
+ return {
723
+ queryKey: ['contract-request', chainId, token],
724
+ enabled: [chainId !== undefined && chainId !== null, token !== undefined && token !== null],
725
+ queryFn: () => {
726
+ // @ts-ignore
727
+ return fetchD3VaultGetBorrowRate(chainId, token);
728
+ }
729
+ }
730
+ }
451
731
 
452
732
  /**
453
733
  * fetch getCash
@@ -462,6 +742,16 @@ export function fetchD3VaultGetCash(chainId: number, token: string) {
462
742
  const __data = hexlify(concat(['0x607b463a', __encodeData]));
463
743
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
464
744
  }
745
+ export function getFetchD3VaultGetCashQueryOptions(chainId: number | undefined, token: string | undefined) {
746
+ return {
747
+ queryKey: ['contract-request', chainId, token],
748
+ enabled: [chainId !== undefined && chainId !== null, token !== undefined && token !== null],
749
+ queryFn: () => {
750
+ // @ts-ignore
751
+ return fetchD3VaultGetCash(chainId, token);
752
+ }
753
+ }
754
+ }
465
755
 
466
756
  /**
467
757
  * fetch getCollateralRatio
@@ -476,6 +766,16 @@ export function fetchD3VaultGetCollateralRatio(chainId: number, pool: string) {
476
766
  const __data = hexlify(concat(['0x15a3ba43', __encodeData]));
477
767
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
478
768
  }
769
+ export function getFetchD3VaultGetCollateralRatioQueryOptions(chainId: number | undefined, pool: string | undefined) {
770
+ return {
771
+ queryKey: ['contract-request', chainId, pool],
772
+ enabled: [chainId !== undefined && chainId !== null, pool !== undefined && pool !== null],
773
+ queryFn: () => {
774
+ // @ts-ignore
775
+ return fetchD3VaultGetCollateralRatio(chainId, pool);
776
+ }
777
+ }
778
+ }
479
779
 
480
780
  /**
481
781
  * fetch getCollateralRatioBorrow
@@ -490,6 +790,16 @@ export function fetchD3VaultGetCollateralRatioBorrow(chainId: number, pool: stri
490
790
  const __data = hexlify(concat(['0x2f38d1f8', __encodeData]));
491
791
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
492
792
  }
793
+ export function getFetchD3VaultGetCollateralRatioBorrowQueryOptions(chainId: number | undefined, pool: string | undefined) {
794
+ return {
795
+ queryKey: ['contract-request', chainId, pool],
796
+ enabled: [chainId !== undefined && chainId !== null, pool !== undefined && pool !== null],
797
+ queryFn: () => {
798
+ // @ts-ignore
799
+ return fetchD3VaultGetCollateralRatioBorrow(chainId, pool);
800
+ }
801
+ }
802
+ }
493
803
 
494
804
  /**
495
805
  * fetch getCompoundInterestRate
@@ -505,6 +815,16 @@ export function fetchD3VaultGetCompoundInterestRate(chainId: number, r: number,
505
815
  const __data = hexlify(concat(['0x40f1e8dc', __encodeData]));
506
816
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
507
817
  }
818
+ export function getFetchD3VaultGetCompoundInterestRateQueryOptions(chainId: number | undefined, r: number | undefined, t: number | undefined) {
819
+ return {
820
+ queryKey: ['contract-request', chainId, r, t],
821
+ enabled: [chainId !== undefined && chainId !== null, r !== undefined && r !== null, t !== undefined && t !== null],
822
+ queryFn: () => {
823
+ // @ts-ignore
824
+ return fetchD3VaultGetCompoundInterestRate(chainId, r, t);
825
+ }
826
+ }
827
+ }
508
828
 
509
829
  /**
510
830
  * fetch getCumulativeBorrowRate
@@ -524,6 +844,16 @@ export function fetchD3VaultGetCumulativeBorrowRate(chainId: number, pool: strin
524
844
  currentAmount: bigint;
525
845
  }>(chainId, __to, __data, [{"internalType":"uint256","name":"cumulativeRate","type":"uint256"},{"internalType":"uint256","name":"currentAmount","type":"uint256"}])
526
846
  }
847
+ export function getFetchD3VaultGetCumulativeBorrowRateQueryOptions(chainId: number | undefined, pool: string | undefined, token: string | undefined) {
848
+ return {
849
+ queryKey: ['contract-request', chainId, pool, token],
850
+ enabled: [chainId !== undefined && chainId !== null, pool !== undefined && pool !== null, token !== undefined && token !== null],
851
+ queryFn: () => {
852
+ // @ts-ignore
853
+ return fetchD3VaultGetCumulativeBorrowRate(chainId, pool, token);
854
+ }
855
+ }
856
+ }
527
857
 
528
858
  /**
529
859
  * fetch getExchangeRate
@@ -538,6 +868,16 @@ export function fetchD3VaultGetExchangeRate(chainId: number, token: string) {
538
868
  const __data = hexlify(concat(['0xefb7601d', __encodeData]));
539
869
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"exchangeRate","type":"uint256"}])
540
870
  }
871
+ export function getFetchD3VaultGetExchangeRateQueryOptions(chainId: number | undefined, token: string | undefined) {
872
+ return {
873
+ queryKey: ['contract-request', chainId, token],
874
+ enabled: [chainId !== undefined && chainId !== null, token !== undefined && token !== null],
875
+ queryFn: () => {
876
+ // @ts-ignore
877
+ return fetchD3VaultGetExchangeRate(chainId, token);
878
+ }
879
+ }
880
+ }
541
881
 
542
882
  /**
543
883
  * fetch getIMMM
@@ -555,6 +895,16 @@ export function fetchD3VaultGetIMMM(chainId: number) {
555
895
  __output1: bigint;
556
896
  }>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}])
557
897
  }
898
+ export function getFetchD3VaultGetIMMMQueryOptions(chainId: number | undefined) {
899
+ return {
900
+ queryKey: ['contract-request', chainId],
901
+ enabled: [chainId !== undefined && chainId !== null],
902
+ queryFn: () => {
903
+ // @ts-ignore
904
+ return fetchD3VaultGetIMMM(chainId);
905
+ }
906
+ }
907
+ }
558
908
 
559
909
  /**
560
910
  * fetch getLatestBorrowIndex
@@ -569,6 +919,16 @@ export function fetchD3VaultGetLatestBorrowIndex(chainId: number, token: string)
569
919
  const __data = hexlify(concat(['0xfe81608f', __encodeData]));
570
920
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"borrowIndex","type":"uint256"}])
571
921
  }
922
+ export function getFetchD3VaultGetLatestBorrowIndexQueryOptions(chainId: number | undefined, token: string | undefined) {
923
+ return {
924
+ queryKey: ['contract-request', chainId, token],
925
+ enabled: [chainId !== undefined && chainId !== null, token !== undefined && token !== null],
926
+ queryFn: () => {
927
+ // @ts-ignore
928
+ return fetchD3VaultGetLatestBorrowIndex(chainId, token);
929
+ }
930
+ }
931
+ }
572
932
 
573
933
  /**
574
934
  * fetch getPoolBorrowAmount
@@ -584,6 +944,16 @@ export function fetchD3VaultGetPoolBorrowAmount(chainId: number, pool: string, t
584
944
  const __data = hexlify(concat(['0x43a0ffd7', __encodeData]));
585
945
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"amount","type":"uint256"}])
586
946
  }
947
+ export function getFetchD3VaultGetPoolBorrowAmountQueryOptions(chainId: number | undefined, pool: string | undefined, token: string | undefined) {
948
+ return {
949
+ queryKey: ['contract-request', chainId, pool, token],
950
+ enabled: [chainId !== undefined && chainId !== null, pool !== undefined && pool !== null, token !== undefined && token !== null],
951
+ queryFn: () => {
952
+ // @ts-ignore
953
+ return fetchD3VaultGetPoolBorrowAmount(chainId, pool, token);
954
+ }
955
+ }
956
+ }
587
957
 
588
958
  /**
589
959
  * fetch getPoolLeftQuota
@@ -599,6 +969,16 @@ export function fetchD3VaultGetPoolLeftQuota(chainId: number, pool: string, toke
599
969
  const __data = hexlify(concat(['0xf3b8fe62', __encodeData]));
600
970
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"leftQuota","type":"uint256"}])
601
971
  }
972
+ export function getFetchD3VaultGetPoolLeftQuotaQueryOptions(chainId: number | undefined, pool: string | undefined, token: string | undefined) {
973
+ return {
974
+ queryKey: ['contract-request', chainId, pool, token],
975
+ enabled: [chainId !== undefined && chainId !== null, pool !== undefined && pool !== null, token !== undefined && token !== null],
976
+ queryFn: () => {
977
+ // @ts-ignore
978
+ return fetchD3VaultGetPoolLeftQuota(chainId, pool, token);
979
+ }
980
+ }
981
+ }
602
982
 
603
983
  /**
604
984
  * fetch getReservesInVault
@@ -613,6 +993,16 @@ export function fetchD3VaultGetReservesInVault(chainId: number, token: string) {
613
993
  const __data = hexlify(concat(['0x2f9bbe0f', __encodeData]));
614
994
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
615
995
  }
996
+ export function getFetchD3VaultGetReservesInVaultQueryOptions(chainId: number | undefined, token: string | undefined) {
997
+ return {
998
+ queryKey: ['contract-request', chainId, token],
999
+ enabled: [chainId !== undefined && chainId !== null, token !== undefined && token !== null],
1000
+ queryFn: () => {
1001
+ // @ts-ignore
1002
+ return fetchD3VaultGetReservesInVault(chainId, token);
1003
+ }
1004
+ }
1005
+ }
616
1006
 
617
1007
  /**
618
1008
  * fetch getTokenList
@@ -626,6 +1016,16 @@ export function fetchD3VaultGetTokenList(chainId: number) {
626
1016
  const __data = hexlify(concat(['0x273cbaa0', __encodeData]));
627
1017
  return contractRequests.batchCall<Array<string>>(chainId, __to, __data, [{"internalType":"address[]","name":"","type":"address[]"}])
628
1018
  }
1019
+ export function getFetchD3VaultGetTokenListQueryOptions(chainId: number | undefined) {
1020
+ return {
1021
+ queryKey: ['contract-request', chainId],
1022
+ enabled: [chainId !== undefined && chainId !== null],
1023
+ queryFn: () => {
1024
+ // @ts-ignore
1025
+ return fetchD3VaultGetTokenList(chainId);
1026
+ }
1027
+ }
1028
+ }
629
1029
 
630
1030
  /**
631
1031
  * fetch getTotalAssetsValue
@@ -640,6 +1040,16 @@ export function fetchD3VaultGetTotalAssetsValue(chainId: number, pool: string) {
640
1040
  const __data = hexlify(concat(['0x0f489b15', __encodeData]));
641
1041
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"totalValue","type":"uint256"}])
642
1042
  }
1043
+ export function getFetchD3VaultGetTotalAssetsValueQueryOptions(chainId: number | undefined, pool: string | undefined) {
1044
+ return {
1045
+ queryKey: ['contract-request', chainId, pool],
1046
+ enabled: [chainId !== undefined && chainId !== null, pool !== undefined && pool !== null],
1047
+ queryFn: () => {
1048
+ // @ts-ignore
1049
+ return fetchD3VaultGetTotalAssetsValue(chainId, pool);
1050
+ }
1051
+ }
1052
+ }
643
1053
 
644
1054
  /**
645
1055
  * fetch getTotalBorrows
@@ -654,6 +1064,16 @@ export function fetchD3VaultGetTotalBorrows(chainId: number, token: string) {
654
1064
  const __data = hexlify(concat(['0xb87147df', __encodeData]));
655
1065
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
656
1066
  }
1067
+ export function getFetchD3VaultGetTotalBorrowsQueryOptions(chainId: number | undefined, token: string | undefined) {
1068
+ return {
1069
+ queryKey: ['contract-request', chainId, token],
1070
+ enabled: [chainId !== undefined && chainId !== null, token !== undefined && token !== null],
1071
+ queryFn: () => {
1072
+ // @ts-ignore
1073
+ return fetchD3VaultGetTotalBorrows(chainId, token);
1074
+ }
1075
+ }
1076
+ }
657
1077
 
658
1078
  /**
659
1079
  * fetch getTotalDebtValue
@@ -668,6 +1088,16 @@ export function fetchD3VaultGetTotalDebtValue(chainId: number, pool: string) {
668
1088
  const __data = hexlify(concat(['0x293a5077', __encodeData]));
669
1089
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"totalDebt","type":"uint256"}])
670
1090
  }
1091
+ export function getFetchD3VaultGetTotalDebtValueQueryOptions(chainId: number | undefined, pool: string | undefined) {
1092
+ return {
1093
+ queryKey: ['contract-request', chainId, pool],
1094
+ enabled: [chainId !== undefined && chainId !== null, pool !== undefined && pool !== null],
1095
+ queryFn: () => {
1096
+ // @ts-ignore
1097
+ return fetchD3VaultGetTotalDebtValue(chainId, pool);
1098
+ }
1099
+ }
1100
+ }
671
1101
 
672
1102
  /**
673
1103
  * fetch getUtilizationRatio
@@ -682,6 +1112,16 @@ export function fetchD3VaultGetUtilizationRatio(chainId: number, token: string)
682
1112
  const __data = hexlify(concat(['0xf12f3453', __encodeData]));
683
1113
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
684
1114
  }
1115
+ export function getFetchD3VaultGetUtilizationRatioQueryOptions(chainId: number | undefined, token: string | undefined) {
1116
+ return {
1117
+ queryKey: ['contract-request', chainId, token],
1118
+ enabled: [chainId !== undefined && chainId !== null, token !== undefined && token !== null],
1119
+ queryFn: () => {
1120
+ // @ts-ignore
1121
+ return fetchD3VaultGetUtilizationRatio(chainId, token);
1122
+ }
1123
+ }
1124
+ }
685
1125
 
686
1126
  /**
687
1127
  * fetch liquidationTarget
@@ -697,6 +1137,16 @@ export function fetchD3VaultLiquidationTarget(chainId: number, __input1: string,
697
1137
  const __data = hexlify(concat(['0x458a6ff8', __encodeData]));
698
1138
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
699
1139
  }
1140
+ export function getFetchD3VaultLiquidationTargetQueryOptions(chainId: number | undefined, __input1: string | undefined, __input2: string | undefined) {
1141
+ return {
1142
+ queryKey: ['contract-request', chainId, __input1, __input2],
1143
+ enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null, __input2 !== undefined && __input2 !== null],
1144
+ queryFn: () => {
1145
+ // @ts-ignore
1146
+ return fetchD3VaultLiquidationTarget(chainId, __input1, __input2);
1147
+ }
1148
+ }
1149
+ }
700
1150
 
701
1151
  /**
702
1152
  * fetch owner
@@ -710,6 +1160,16 @@ export function fetchD3VaultOwner(chainId: number) {
710
1160
  const __data = hexlify(concat(['0x8da5cb5b', __encodeData]));
711
1161
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
712
1162
  }
1163
+ export function getFetchD3VaultOwnerQueryOptions(chainId: number | undefined) {
1164
+ return {
1165
+ queryKey: ['contract-request', chainId],
1166
+ enabled: [chainId !== undefined && chainId !== null],
1167
+ queryFn: () => {
1168
+ // @ts-ignore
1169
+ return fetchD3VaultOwner(chainId);
1170
+ }
1171
+ }
1172
+ }
713
1173
 
714
1174
  /**
715
1175
  * fetch tokenList
@@ -724,6 +1184,16 @@ export function fetchD3VaultTokenList(chainId: number, __input1: number) {
724
1184
  const __data = hexlify(concat(['0x9ead7222', __encodeData]));
725
1185
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
726
1186
  }
1187
+ export function getFetchD3VaultTokenListQueryOptions(chainId: number | undefined, __input1: number | undefined) {
1188
+ return {
1189
+ queryKey: ['contract-request', chainId, __input1],
1190
+ enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null],
1191
+ queryFn: () => {
1192
+ // @ts-ignore
1193
+ return fetchD3VaultTokenList(chainId, __input1);
1194
+ }
1195
+ }
1196
+ }
727
1197
 
728
1198
  /**
729
1199
  * fetch tokens
@@ -738,6 +1208,16 @@ export function fetchD3VaultTokens(chainId: number, __input1: string) {
738
1208
  const __data = hexlify(concat(['0xe4860339', __encodeData]));
739
1209
  return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
740
1210
  }
1211
+ export function getFetchD3VaultTokensQueryOptions(chainId: number | undefined, __input1: string | undefined) {
1212
+ return {
1213
+ queryKey: ['contract-request', chainId, __input1],
1214
+ enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null],
1215
+ queryFn: () => {
1216
+ // @ts-ignore
1217
+ return fetchD3VaultTokens(chainId, __input1);
1218
+ }
1219
+ }
1220
+ }
741
1221
 
742
1222
  /**
743
1223
  * encode accrueInterest