@gearbox-protocol/sdk 14.12.0-next.76 → 14.12.0-next.78

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 (90) hide show
  1. package/dist/cjs/model/curators.js +1 -0
  2. package/dist/cjs/model/curators.schema.js +38 -0
  3. package/dist/cjs/model/index.js +4 -1
  4. package/dist/cjs/model/opportunities.schema.js +3 -1
  5. package/dist/cjs/model/primitives.schema.js +5 -13
  6. package/dist/cjs/preview/index.js +0 -1
  7. package/dist/cjs/preview/preview/buildDelayedPreview.js +4 -3
  8. package/dist/cjs/preview/preview/index.js +0 -1
  9. package/dist/cjs/preview/preview/previewAdjustCreditAccount.js +3 -2
  10. package/dist/cjs/preview/preview/types.js +0 -16
  11. package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +12 -38
  12. package/dist/cjs/sdk/accounts/credit-account-compressor/CreditAccountCompressor.js +1 -1
  13. package/dist/cjs/sdk/chain/chains.js +1 -1
  14. package/dist/cjs/sdk/index.js +3 -0
  15. package/dist/cjs/sdk/market/MarketConfiguratorContract.js +2 -14
  16. package/dist/cjs/sdk/market/MarketSuite.js +1 -0
  17. package/dist/cjs/sdk/market/credit/CreditFacadeV310Contract.js +10 -0
  18. package/dist/cjs/sdk/market/credit/expectedBalanceDeltas.js +25 -0
  19. package/dist/cjs/sdk/market/credit/index.js +2 -0
  20. package/dist/cjs/sdk/market/index.js +2 -0
  21. package/dist/cjs/sdk/utils/index.js +1 -0
  22. package/dist/cjs/sdk/utils/zod.js +36 -14
  23. package/dist/esm/model/curators.js +1 -0
  24. package/dist/esm/model/curators.schema.js +36 -0
  25. package/dist/esm/model/index.js +4 -2
  26. package/dist/esm/model/opportunities.schema.js +3 -1
  27. package/dist/esm/model/primitives.schema.js +7 -14
  28. package/dist/esm/preview/index.js +2 -2
  29. package/dist/esm/preview/preview/buildDelayedPreview.js +5 -4
  30. package/dist/esm/preview/preview/index.js +2 -2
  31. package/dist/esm/preview/preview/previewAdjustCreditAccount.js +4 -3
  32. package/dist/esm/preview/preview/types.js +1 -16
  33. package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +12 -38
  34. package/dist/esm/sdk/accounts/credit-account-compressor/CreditAccountCompressor.js +1 -1
  35. package/dist/esm/sdk/chain/chains.js +1 -1
  36. package/dist/esm/sdk/index.js +3 -2
  37. package/dist/esm/sdk/market/MarketConfiguratorContract.js +2 -14
  38. package/dist/esm/sdk/market/MarketSuite.js +1 -0
  39. package/dist/esm/sdk/market/credit/CreditFacadeV310Contract.js +10 -0
  40. package/dist/esm/sdk/market/credit/expectedBalanceDeltas.js +24 -0
  41. package/dist/esm/sdk/market/credit/index.js +2 -1
  42. package/dist/esm/sdk/market/index.js +2 -1
  43. package/dist/esm/sdk/utils/index.js +2 -2
  44. package/dist/esm/sdk/utils/zod.js +36 -15
  45. package/dist/types/dev/AccountOpener.d.ts +1 -1
  46. package/dist/types/model/curators.d.ts +33 -0
  47. package/dist/types/model/curators.schema.d.ts +50 -0
  48. package/dist/types/model/history.schema.d.ts +6 -6
  49. package/dist/types/model/index.d.ts +5 -3
  50. package/dist/types/model/liquidations.schema.d.ts +47 -47
  51. package/dist/types/model/opportunities.d.ts +6 -1
  52. package/dist/types/model/opportunities.schema.d.ts +257 -106
  53. package/dist/types/model/positions.schema.d.ts +92 -92
  54. package/dist/types/model/primitives.d.ts +2 -25
  55. package/dist/types/model/primitives.schema.d.ts +10 -17
  56. package/dist/types/preview/index.d.ts +2 -2
  57. package/dist/types/preview/preview/index.d.ts +2 -2
  58. package/dist/types/preview/preview/types.d.ts +1 -16
  59. package/dist/types/sdk/OnchainSDK.d.ts +3 -3
  60. package/dist/types/sdk/accounts/CreditAccountsServiceV310.d.ts +8 -7
  61. package/dist/types/sdk/accounts/bots/types.d.ts +1 -1
  62. package/dist/types/sdk/accounts/credit-account-compressor/CreditAccountCompressor.d.ts +1 -1
  63. package/dist/types/sdk/accounts/credit-account-compressor/CreditAccountCompressorV310Contract.d.ts +1 -1
  64. package/dist/types/sdk/accounts/index.d.ts +2 -2
  65. package/dist/types/sdk/accounts/intents/operations/repay-credit-account/index.d.ts +1 -2
  66. package/dist/types/sdk/accounts/types.d.ts +8 -78
  67. package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.d.ts +1 -1
  68. package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.d.ts +1 -1
  69. package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.d.ts +1 -1
  70. package/dist/types/sdk/base/index.d.ts +2 -2
  71. package/dist/types/sdk/base/types.d.ts +42 -1
  72. package/dist/types/sdk/chain/chains.d.ts +7 -11
  73. package/dist/types/sdk/chain/index.d.ts +2 -2
  74. package/dist/types/sdk/index.d.ts +26 -25
  75. package/dist/types/sdk/market/MarketConfiguratorContract.d.ts +2 -7
  76. package/dist/types/sdk/market/MarketSuite.d.ts +2 -1
  77. package/dist/types/sdk/market/credit/CreditFacadeV310Contract.d.ts +6 -3
  78. package/dist/types/sdk/market/credit/CreditSuite.d.ts +2 -2
  79. package/dist/types/sdk/market/credit/expectedBalanceDeltas.d.ts +39 -0
  80. package/dist/types/sdk/market/credit/index.d.ts +3 -2
  81. package/dist/types/sdk/market/credit/types.d.ts +26 -3
  82. package/dist/types/sdk/market/index.d.ts +4 -3
  83. package/dist/types/sdk/market/rwa/index.d.ts +2 -2
  84. package/dist/types/sdk/market/rwa/securitize/SecuritizeRWAFactory.d.ts +1 -2
  85. package/dist/types/sdk/market/rwa/types.d.ts +11 -2
  86. package/dist/types/sdk/options.d.ts +4 -4
  87. package/dist/types/sdk/pools/types.d.ts +1 -12
  88. package/dist/types/sdk/utils/index.d.ts +2 -2
  89. package/dist/types/sdk/utils/zod.d.ts +7 -3
  90. package/package.json +1 -1
@@ -23,7 +23,7 @@ declare const tokenRewardsSchema: z.ZodObject<{
23
23
  kind: z.ZodLiteral<"token">;
24
24
  token: z.ZodObject<{
25
25
  chainId: z.ZodNumber;
26
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
26
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
27
27
  symbol: z.ZodString;
28
28
  name: z.ZodString;
29
29
  decimals: z.ZodNumber;
@@ -50,7 +50,7 @@ declare const rewardsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
50
50
  kind: z.ZodLiteral<"token">;
51
51
  token: z.ZodObject<{
52
52
  chainId: z.ZodNumber;
53
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
53
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
54
54
  symbol: z.ZodString;
55
55
  name: z.ZodString;
56
56
  decimals: z.ZodNumber;
@@ -76,7 +76,7 @@ declare const apyBreakdownSchema: z.ZodObject<{
76
76
  kind: z.ZodLiteral<"token">;
77
77
  token: z.ZodObject<{
78
78
  chainId: z.ZodNumber;
79
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
79
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
80
80
  symbol: z.ZodString;
81
81
  name: z.ZodString;
82
82
  decimals: z.ZodNumber;
@@ -100,25 +100,40 @@ declare const opportunityBaseSchema: z.ZodObject<{
100
100
  chainId: z.ZodNumber;
101
101
  name: z.ZodString;
102
102
  curator: z.ZodObject<{
103
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
104
- name: z.ZodString;
103
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
104
+ name: z.ZodOptional<z.ZodEnum<{
105
+ "Chaos Labs": "Chaos Labs";
106
+ "Gami Labs": "Gami Labs";
107
+ Hyperithm: "Hyperithm";
108
+ "Invariant Group": "Invariant Group";
109
+ K3: "K3";
110
+ KPK: "KPK";
111
+ "M11 Credit": "M11 Credit";
112
+ Re7: "Re7";
113
+ Securitize: "Securitize";
114
+ TelosC: "TelosC";
115
+ "Testnet Curator": "Testnet Curator";
116
+ Tulipa: "Tulipa";
117
+ UltraYield: "UltraYield";
118
+ cp0x: "cp0x";
119
+ }>>;
105
120
  url: z.ZodNullable<z.ZodString>;
106
121
  }, z.core.$strip>;
107
122
  underlyingToken: z.ZodObject<{
108
123
  chainId: z.ZodNumber;
109
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
124
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
110
125
  symbol: z.ZodString;
111
126
  name: z.ZodString;
112
127
  decimals: z.ZodNumber;
113
128
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
114
129
  }, z.core.$strip>;
115
130
  totalBorrow: z.ZodObject<{
116
- value: z.ZodBigInt;
131
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
117
132
  valueUsd: z.ZodNullable<z.ZodNumber>;
118
133
  }, z.core.$strip>;
119
134
  collateralTokens: z.ZodArray<z.ZodObject<{
120
135
  chainId: z.ZodNumber;
121
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
136
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
122
137
  symbol: z.ZodString;
123
138
  name: z.ZodString;
124
139
  decimals: z.ZodNumber;
@@ -135,25 +150,40 @@ declare const poolOpportunitySchema: z.ZodObject<{
135
150
  chainId: z.ZodNumber;
136
151
  name: z.ZodString;
137
152
  curator: z.ZodObject<{
138
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
139
- name: z.ZodString;
153
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
154
+ name: z.ZodOptional<z.ZodEnum<{
155
+ "Chaos Labs": "Chaos Labs";
156
+ "Gami Labs": "Gami Labs";
157
+ Hyperithm: "Hyperithm";
158
+ "Invariant Group": "Invariant Group";
159
+ K3: "K3";
160
+ KPK: "KPK";
161
+ "M11 Credit": "M11 Credit";
162
+ Re7: "Re7";
163
+ Securitize: "Securitize";
164
+ TelosC: "TelosC";
165
+ "Testnet Curator": "Testnet Curator";
166
+ Tulipa: "Tulipa";
167
+ UltraYield: "UltraYield";
168
+ cp0x: "cp0x";
169
+ }>>;
140
170
  url: z.ZodNullable<z.ZodString>;
141
171
  }, z.core.$strip>;
142
172
  underlyingToken: z.ZodObject<{
143
173
  chainId: z.ZodNumber;
144
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
174
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
145
175
  symbol: z.ZodString;
146
176
  name: z.ZodString;
147
177
  decimals: z.ZodNumber;
148
178
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
149
179
  }, z.core.$strip>;
150
180
  totalBorrow: z.ZodObject<{
151
- value: z.ZodBigInt;
181
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
152
182
  valueUsd: z.ZodNullable<z.ZodNumber>;
153
183
  }, z.core.$strip>;
154
184
  collateralTokens: z.ZodArray<z.ZodObject<{
155
185
  chainId: z.ZodNumber;
156
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
186
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
157
187
  symbol: z.ZodString;
158
188
  name: z.ZodString;
159
189
  decimals: z.ZodNumber;
@@ -163,9 +193,13 @@ declare const poolOpportunitySchema: z.ZodObject<{
163
193
  rwa: z.ZodBoolean;
164
194
  sunset: z.ZodBoolean;
165
195
  kind: z.ZodLiteral<"pool">;
166
- pool: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
196
+ pool: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
167
197
  totalSupply: z.ZodObject<{
168
- value: z.ZodBigInt;
198
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
199
+ valueUsd: z.ZodNullable<z.ZodNumber>;
200
+ }, z.core.$strip>;
201
+ availableLiquidity: z.ZodObject<{
202
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
169
203
  valueUsd: z.ZodNullable<z.ZodNumber>;
170
204
  }, z.core.$strip>;
171
205
  utilization: z.ZodNumber;
@@ -176,7 +210,7 @@ declare const poolOpportunitySchema: z.ZodObject<{
176
210
  kind: z.ZodLiteral<"token">;
177
211
  token: z.ZodObject<{
178
212
  chainId: z.ZodNumber;
179
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
213
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
180
214
  symbol: z.ZodString;
181
215
  name: z.ZodString;
182
216
  decimals: z.ZodNumber;
@@ -201,25 +235,40 @@ declare const strategyOpportunitySchema: z.ZodObject<{
201
235
  chainId: z.ZodNumber;
202
236
  name: z.ZodString;
203
237
  curator: z.ZodObject<{
204
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
205
- name: z.ZodString;
238
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
239
+ name: z.ZodOptional<z.ZodEnum<{
240
+ "Chaos Labs": "Chaos Labs";
241
+ "Gami Labs": "Gami Labs";
242
+ Hyperithm: "Hyperithm";
243
+ "Invariant Group": "Invariant Group";
244
+ K3: "K3";
245
+ KPK: "KPK";
246
+ "M11 Credit": "M11 Credit";
247
+ Re7: "Re7";
248
+ Securitize: "Securitize";
249
+ TelosC: "TelosC";
250
+ "Testnet Curator": "Testnet Curator";
251
+ Tulipa: "Tulipa";
252
+ UltraYield: "UltraYield";
253
+ cp0x: "cp0x";
254
+ }>>;
206
255
  url: z.ZodNullable<z.ZodString>;
207
256
  }, z.core.$strip>;
208
257
  underlyingToken: z.ZodObject<{
209
258
  chainId: z.ZodNumber;
210
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
259
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
211
260
  symbol: z.ZodString;
212
261
  name: z.ZodString;
213
262
  decimals: z.ZodNumber;
214
263
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
215
264
  }, z.core.$strip>;
216
265
  totalBorrow: z.ZodObject<{
217
- value: z.ZodBigInt;
266
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
218
267
  valueUsd: z.ZodNullable<z.ZodNumber>;
219
268
  }, z.core.$strip>;
220
269
  collateralTokens: z.ZodArray<z.ZodObject<{
221
270
  chainId: z.ZodNumber;
222
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
271
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
223
272
  symbol: z.ZodString;
224
273
  name: z.ZodString;
225
274
  decimals: z.ZodNumber;
@@ -229,10 +278,10 @@ declare const strategyOpportunitySchema: z.ZodObject<{
229
278
  rwa: z.ZodBoolean;
230
279
  sunset: z.ZodBoolean;
231
280
  kind: z.ZodLiteral<"strategy">;
232
- creditManager: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
281
+ creditManager: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
233
282
  targetCollateral: z.ZodObject<{
234
283
  chainId: z.ZodNumber;
235
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
284
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
236
285
  symbol: z.ZodString;
237
286
  name: z.ZodString;
238
287
  decimals: z.ZodNumber;
@@ -249,7 +298,7 @@ declare const strategyOpportunitySchema: z.ZodObject<{
249
298
  kind: z.ZodLiteral<"token">;
250
299
  token: z.ZodObject<{
251
300
  chainId: z.ZodNumber;
252
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
301
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
253
302
  symbol: z.ZodString;
254
303
  name: z.ZodString;
255
304
  decimals: z.ZodNumber;
@@ -273,7 +322,7 @@ declare const strategyOpportunitySchema: z.ZodObject<{
273
322
  kind: z.ZodLiteral<"token">;
274
323
  token: z.ZodObject<{
275
324
  chainId: z.ZodNumber;
276
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
325
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
277
326
  symbol: z.ZodString;
278
327
  name: z.ZodString;
279
328
  decimals: z.ZodNumber;
@@ -293,12 +342,12 @@ declare const strategyOpportunitySchema: z.ZodObject<{
293
342
  borrowApy: z.ZodOptional<z.ZodNumber>;
294
343
  additionalBorrowApy: z.ZodOptional<z.ZodNumber>;
295
344
  totalValue: z.ZodOptional<z.ZodObject<{
296
- value: z.ZodBigInt;
345
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
297
346
  valueUsd: z.ZodNullable<z.ZodNumber>;
298
347
  }, z.core.$strip>>;
299
348
  utilization: z.ZodOptional<z.ZodNumber>;
300
349
  maxBorrowAmount: z.ZodObject<{
301
- value: z.ZodBigInt;
350
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
302
351
  valueUsd: z.ZodNullable<z.ZodNumber>;
303
352
  }, z.core.$strip>;
304
353
  maxLeverage: z.ZodNumber;
@@ -310,25 +359,40 @@ declare const opportunitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
310
359
  chainId: z.ZodNumber;
311
360
  name: z.ZodString;
312
361
  curator: z.ZodObject<{
313
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
314
- name: z.ZodString;
362
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
363
+ name: z.ZodOptional<z.ZodEnum<{
364
+ "Chaos Labs": "Chaos Labs";
365
+ "Gami Labs": "Gami Labs";
366
+ Hyperithm: "Hyperithm";
367
+ "Invariant Group": "Invariant Group";
368
+ K3: "K3";
369
+ KPK: "KPK";
370
+ "M11 Credit": "M11 Credit";
371
+ Re7: "Re7";
372
+ Securitize: "Securitize";
373
+ TelosC: "TelosC";
374
+ "Testnet Curator": "Testnet Curator";
375
+ Tulipa: "Tulipa";
376
+ UltraYield: "UltraYield";
377
+ cp0x: "cp0x";
378
+ }>>;
315
379
  url: z.ZodNullable<z.ZodString>;
316
380
  }, z.core.$strip>;
317
381
  underlyingToken: z.ZodObject<{
318
382
  chainId: z.ZodNumber;
319
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
383
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
320
384
  symbol: z.ZodString;
321
385
  name: z.ZodString;
322
386
  decimals: z.ZodNumber;
323
387
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
324
388
  }, z.core.$strip>;
325
389
  totalBorrow: z.ZodObject<{
326
- value: z.ZodBigInt;
390
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
327
391
  valueUsd: z.ZodNullable<z.ZodNumber>;
328
392
  }, z.core.$strip>;
329
393
  collateralTokens: z.ZodArray<z.ZodObject<{
330
394
  chainId: z.ZodNumber;
331
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
395
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
332
396
  symbol: z.ZodString;
333
397
  name: z.ZodString;
334
398
  decimals: z.ZodNumber;
@@ -338,9 +402,13 @@ declare const opportunitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
338
402
  rwa: z.ZodBoolean;
339
403
  sunset: z.ZodBoolean;
340
404
  kind: z.ZodLiteral<"pool">;
341
- pool: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
405
+ pool: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
342
406
  totalSupply: z.ZodObject<{
343
- value: z.ZodBigInt;
407
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
408
+ valueUsd: z.ZodNullable<z.ZodNumber>;
409
+ }, z.core.$strip>;
410
+ availableLiquidity: z.ZodObject<{
411
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
344
412
  valueUsd: z.ZodNullable<z.ZodNumber>;
345
413
  }, z.core.$strip>;
346
414
  utilization: z.ZodNumber;
@@ -351,7 +419,7 @@ declare const opportunitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
351
419
  kind: z.ZodLiteral<"token">;
352
420
  token: z.ZodObject<{
353
421
  chainId: z.ZodNumber;
354
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
422
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
355
423
  symbol: z.ZodString;
356
424
  name: z.ZodString;
357
425
  decimals: z.ZodNumber;
@@ -372,25 +440,40 @@ declare const opportunitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
372
440
  chainId: z.ZodNumber;
373
441
  name: z.ZodString;
374
442
  curator: z.ZodObject<{
375
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
376
- name: z.ZodString;
443
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
444
+ name: z.ZodOptional<z.ZodEnum<{
445
+ "Chaos Labs": "Chaos Labs";
446
+ "Gami Labs": "Gami Labs";
447
+ Hyperithm: "Hyperithm";
448
+ "Invariant Group": "Invariant Group";
449
+ K3: "K3";
450
+ KPK: "KPK";
451
+ "M11 Credit": "M11 Credit";
452
+ Re7: "Re7";
453
+ Securitize: "Securitize";
454
+ TelosC: "TelosC";
455
+ "Testnet Curator": "Testnet Curator";
456
+ Tulipa: "Tulipa";
457
+ UltraYield: "UltraYield";
458
+ cp0x: "cp0x";
459
+ }>>;
377
460
  url: z.ZodNullable<z.ZodString>;
378
461
  }, z.core.$strip>;
379
462
  underlyingToken: z.ZodObject<{
380
463
  chainId: z.ZodNumber;
381
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
464
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
382
465
  symbol: z.ZodString;
383
466
  name: z.ZodString;
384
467
  decimals: z.ZodNumber;
385
468
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
386
469
  }, z.core.$strip>;
387
470
  totalBorrow: z.ZodObject<{
388
- value: z.ZodBigInt;
471
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
389
472
  valueUsd: z.ZodNullable<z.ZodNumber>;
390
473
  }, z.core.$strip>;
391
474
  collateralTokens: z.ZodArray<z.ZodObject<{
392
475
  chainId: z.ZodNumber;
393
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
476
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
394
477
  symbol: z.ZodString;
395
478
  name: z.ZodString;
396
479
  decimals: z.ZodNumber;
@@ -400,10 +483,10 @@ declare const opportunitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
400
483
  rwa: z.ZodBoolean;
401
484
  sunset: z.ZodBoolean;
402
485
  kind: z.ZodLiteral<"strategy">;
403
- creditManager: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
486
+ creditManager: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
404
487
  targetCollateral: z.ZodObject<{
405
488
  chainId: z.ZodNumber;
406
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
489
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
407
490
  symbol: z.ZodString;
408
491
  name: z.ZodString;
409
492
  decimals: z.ZodNumber;
@@ -420,7 +503,7 @@ declare const opportunitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
420
503
  kind: z.ZodLiteral<"token">;
421
504
  token: z.ZodObject<{
422
505
  chainId: z.ZodNumber;
423
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
506
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
424
507
  symbol: z.ZodString;
425
508
  name: z.ZodString;
426
509
  decimals: z.ZodNumber;
@@ -444,7 +527,7 @@ declare const opportunitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
444
527
  kind: z.ZodLiteral<"token">;
445
528
  token: z.ZodObject<{
446
529
  chainId: z.ZodNumber;
447
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
530
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
448
531
  symbol: z.ZodString;
449
532
  name: z.ZodString;
450
533
  decimals: z.ZodNumber;
@@ -464,12 +547,12 @@ declare const opportunitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
464
547
  borrowApy: z.ZodOptional<z.ZodNumber>;
465
548
  additionalBorrowApy: z.ZodOptional<z.ZodNumber>;
466
549
  totalValue: z.ZodOptional<z.ZodObject<{
467
- value: z.ZodBigInt;
550
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
468
551
  valueUsd: z.ZodNullable<z.ZodNumber>;
469
552
  }, z.core.$strip>>;
470
553
  utilization: z.ZodOptional<z.ZodNumber>;
471
554
  maxBorrowAmount: z.ZodObject<{
472
- value: z.ZodBigInt;
555
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
473
556
  valueUsd: z.ZodNullable<z.ZodNumber>;
474
557
  }, z.core.$strip>;
475
558
  maxLeverage: z.ZodNumber;
@@ -510,7 +593,7 @@ declare const rateCurveSchema: z.ZodObject<{
510
593
  declare const quotaAssetSchema: z.ZodObject<{
511
594
  token: z.ZodObject<{
512
595
  chainId: z.ZodNumber;
513
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
596
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
514
597
  symbol: z.ZodString;
515
598
  name: z.ZodString;
516
599
  decimals: z.ZodNumber;
@@ -518,11 +601,11 @@ declare const quotaAssetSchema: z.ZodObject<{
518
601
  }, z.core.$strip>;
519
602
  quotaRate: z.ZodNumber;
520
603
  limit: z.ZodObject<{
521
- value: z.ZodBigInt;
604
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
522
605
  valueUsd: z.ZodNullable<z.ZodNumber>;
523
606
  }, z.core.$strip>;
524
607
  used: z.ZodObject<{
525
- value: z.ZodBigInt;
608
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
526
609
  valueUsd: z.ZodNullable<z.ZodNumber>;
527
610
  }, z.core.$strip>;
528
611
  }, z.core.$strip>;
@@ -532,7 +615,7 @@ declare const quotaAssetSchema: z.ZodObject<{
532
615
  declare const priceFeedDataSchema: z.ZodObject<{
533
616
  name: z.ZodString;
534
617
  type: z.ZodString;
535
- feedAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
618
+ feedAddress: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
536
619
  dependencies: z.ZodArray<z.ZodObject< /*elided*/ any, z.core.$strip>>;
537
620
  }, z.core.$strip>;
538
621
  /**
@@ -545,13 +628,13 @@ declare const priceFeedSummarySchema: z.ZodObject<{
545
628
  underlyingFeed: z.ZodObject<{
546
629
  name: z.ZodString;
547
630
  type: z.ZodString;
548
- feedAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
631
+ feedAddress: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
549
632
  dependencies: z.ZodArray<z.ZodObject< /*elided*/ any, z.core.$strip>>;
550
633
  }, z.core.$strip>;
551
634
  collateralFeed: z.ZodObject<{
552
635
  name: z.ZodString;
553
636
  type: z.ZodString;
554
- feedAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
637
+ feedAddress: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
555
638
  dependencies: z.ZodArray<z.ZodObject<any, z.core.$strip>>;
556
639
  }, z.core.$strip>;
557
640
  }, z.core.$strip>;
@@ -562,25 +645,40 @@ declare const poolOpportunityDetailSchema: z.ZodObject<{
562
645
  chainId: z.ZodNumber;
563
646
  name: z.ZodString;
564
647
  curator: z.ZodObject<{
565
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
566
- name: z.ZodString;
648
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
649
+ name: z.ZodOptional<z.ZodEnum<{
650
+ "Chaos Labs": "Chaos Labs";
651
+ "Gami Labs": "Gami Labs";
652
+ Hyperithm: "Hyperithm";
653
+ "Invariant Group": "Invariant Group";
654
+ K3: "K3";
655
+ KPK: "KPK";
656
+ "M11 Credit": "M11 Credit";
657
+ Re7: "Re7";
658
+ Securitize: "Securitize";
659
+ TelosC: "TelosC";
660
+ "Testnet Curator": "Testnet Curator";
661
+ Tulipa: "Tulipa";
662
+ UltraYield: "UltraYield";
663
+ cp0x: "cp0x";
664
+ }>>;
567
665
  url: z.ZodNullable<z.ZodString>;
568
666
  }, z.core.$strip>;
569
667
  underlyingToken: z.ZodObject<{
570
668
  chainId: z.ZodNumber;
571
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
669
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
572
670
  symbol: z.ZodString;
573
671
  name: z.ZodString;
574
672
  decimals: z.ZodNumber;
575
673
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
576
674
  }, z.core.$strip>;
577
675
  totalBorrow: z.ZodObject<{
578
- value: z.ZodBigInt;
676
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
579
677
  valueUsd: z.ZodNullable<z.ZodNumber>;
580
678
  }, z.core.$strip>;
581
679
  collateralTokens: z.ZodArray<z.ZodObject<{
582
680
  chainId: z.ZodNumber;
583
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
681
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
584
682
  symbol: z.ZodString;
585
683
  name: z.ZodString;
586
684
  decimals: z.ZodNumber;
@@ -590,9 +688,13 @@ declare const poolOpportunityDetailSchema: z.ZodObject<{
590
688
  rwa: z.ZodBoolean;
591
689
  sunset: z.ZodBoolean;
592
690
  kind: z.ZodLiteral<"pool">;
593
- pool: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
691
+ pool: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
594
692
  totalSupply: z.ZodObject<{
595
- value: z.ZodBigInt;
693
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
694
+ valueUsd: z.ZodNullable<z.ZodNumber>;
695
+ }, z.core.$strip>;
696
+ availableLiquidity: z.ZodObject<{
697
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
596
698
  valueUsd: z.ZodNullable<z.ZodNumber>;
597
699
  }, z.core.$strip>;
598
700
  utilization: z.ZodNumber;
@@ -603,7 +705,7 @@ declare const poolOpportunityDetailSchema: z.ZodObject<{
603
705
  kind: z.ZodLiteral<"token">;
604
706
  token: z.ZodObject<{
605
707
  chainId: z.ZodNumber;
606
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
708
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
607
709
  symbol: z.ZodString;
608
710
  name: z.ZodString;
609
711
  decimals: z.ZodNumber;
@@ -631,7 +733,7 @@ declare const poolOpportunityDetailSchema: z.ZodObject<{
631
733
  quotaAssets: z.ZodArray<z.ZodObject<{
632
734
  token: z.ZodObject<{
633
735
  chainId: z.ZodNumber;
634
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
736
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
635
737
  symbol: z.ZodString;
636
738
  name: z.ZodString;
637
739
  decimals: z.ZodNumber;
@@ -639,11 +741,11 @@ declare const poolOpportunityDetailSchema: z.ZodObject<{
639
741
  }, z.core.$strip>;
640
742
  quotaRate: z.ZodNumber;
641
743
  limit: z.ZodObject<{
642
- value: z.ZodBigInt;
744
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
643
745
  valueUsd: z.ZodNullable<z.ZodNumber>;
644
746
  }, z.core.$strip>;
645
747
  used: z.ZodObject<{
646
- value: z.ZodBigInt;
748
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
647
749
  valueUsd: z.ZodNullable<z.ZodNumber>;
648
750
  }, z.core.$strip>;
649
751
  }, z.core.$strip>>;
@@ -655,25 +757,40 @@ declare const strategyOpportunityDetailSchema: z.ZodObject<{
655
757
  chainId: z.ZodNumber;
656
758
  name: z.ZodString;
657
759
  curator: z.ZodObject<{
658
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
659
- name: z.ZodString;
760
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
761
+ name: z.ZodOptional<z.ZodEnum<{
762
+ "Chaos Labs": "Chaos Labs";
763
+ "Gami Labs": "Gami Labs";
764
+ Hyperithm: "Hyperithm";
765
+ "Invariant Group": "Invariant Group";
766
+ K3: "K3";
767
+ KPK: "KPK";
768
+ "M11 Credit": "M11 Credit";
769
+ Re7: "Re7";
770
+ Securitize: "Securitize";
771
+ TelosC: "TelosC";
772
+ "Testnet Curator": "Testnet Curator";
773
+ Tulipa: "Tulipa";
774
+ UltraYield: "UltraYield";
775
+ cp0x: "cp0x";
776
+ }>>;
660
777
  url: z.ZodNullable<z.ZodString>;
661
778
  }, z.core.$strip>;
662
779
  underlyingToken: z.ZodObject<{
663
780
  chainId: z.ZodNumber;
664
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
781
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
665
782
  symbol: z.ZodString;
666
783
  name: z.ZodString;
667
784
  decimals: z.ZodNumber;
668
785
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
669
786
  }, z.core.$strip>;
670
787
  totalBorrow: z.ZodObject<{
671
- value: z.ZodBigInt;
788
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
672
789
  valueUsd: z.ZodNullable<z.ZodNumber>;
673
790
  }, z.core.$strip>;
674
791
  collateralTokens: z.ZodArray<z.ZodObject<{
675
792
  chainId: z.ZodNumber;
676
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
793
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
677
794
  symbol: z.ZodString;
678
795
  name: z.ZodString;
679
796
  decimals: z.ZodNumber;
@@ -683,10 +800,10 @@ declare const strategyOpportunityDetailSchema: z.ZodObject<{
683
800
  rwa: z.ZodBoolean;
684
801
  sunset: z.ZodBoolean;
685
802
  kind: z.ZodLiteral<"strategy">;
686
- creditManager: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
803
+ creditManager: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
687
804
  targetCollateral: z.ZodObject<{
688
805
  chainId: z.ZodNumber;
689
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
806
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
690
807
  symbol: z.ZodString;
691
808
  name: z.ZodString;
692
809
  decimals: z.ZodNumber;
@@ -703,7 +820,7 @@ declare const strategyOpportunityDetailSchema: z.ZodObject<{
703
820
  kind: z.ZodLiteral<"token">;
704
821
  token: z.ZodObject<{
705
822
  chainId: z.ZodNumber;
706
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
823
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
707
824
  symbol: z.ZodString;
708
825
  name: z.ZodString;
709
826
  decimals: z.ZodNumber;
@@ -727,7 +844,7 @@ declare const strategyOpportunityDetailSchema: z.ZodObject<{
727
844
  kind: z.ZodLiteral<"token">;
728
845
  token: z.ZodObject<{
729
846
  chainId: z.ZodNumber;
730
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
847
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
731
848
  symbol: z.ZodString;
732
849
  name: z.ZodString;
733
850
  decimals: z.ZodNumber;
@@ -747,12 +864,12 @@ declare const strategyOpportunityDetailSchema: z.ZodObject<{
747
864
  borrowApy: z.ZodOptional<z.ZodNumber>;
748
865
  additionalBorrowApy: z.ZodOptional<z.ZodNumber>;
749
866
  totalValue: z.ZodOptional<z.ZodObject<{
750
- value: z.ZodBigInt;
867
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
751
868
  valueUsd: z.ZodNullable<z.ZodNumber>;
752
869
  }, z.core.$strip>>;
753
870
  utilization: z.ZodOptional<z.ZodNumber>;
754
871
  maxBorrowAmount: z.ZodObject<{
755
- value: z.ZodBigInt;
872
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
756
873
  valueUsd: z.ZodNullable<z.ZodNumber>;
757
874
  }, z.core.$strip>;
758
875
  maxLeverage: z.ZodNumber;
@@ -771,13 +888,13 @@ declare const strategyOpportunityDetailSchema: z.ZodObject<{
771
888
  underlyingFeed: z.ZodObject<{
772
889
  name: z.ZodString;
773
890
  type: z.ZodString;
774
- feedAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
891
+ feedAddress: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
775
892
  dependencies: z.ZodArray<z.ZodObject< /*elided*/ any, z.core.$strip>>;
776
893
  }, z.core.$strip>;
777
894
  collateralFeed: z.ZodObject<{
778
895
  name: z.ZodString;
779
896
  type: z.ZodString;
780
- feedAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
897
+ feedAddress: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
781
898
  dependencies: z.ZodArray<z.ZodObject<any, z.core.$strip>>;
782
899
  }, z.core.$strip>;
783
900
  }, z.core.$strip>;
@@ -789,25 +906,40 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
789
906
  chainId: z.ZodNumber;
790
907
  name: z.ZodString;
791
908
  curator: z.ZodObject<{
792
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
793
- name: z.ZodString;
909
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
910
+ name: z.ZodOptional<z.ZodEnum<{
911
+ "Chaos Labs": "Chaos Labs";
912
+ "Gami Labs": "Gami Labs";
913
+ Hyperithm: "Hyperithm";
914
+ "Invariant Group": "Invariant Group";
915
+ K3: "K3";
916
+ KPK: "KPK";
917
+ "M11 Credit": "M11 Credit";
918
+ Re7: "Re7";
919
+ Securitize: "Securitize";
920
+ TelosC: "TelosC";
921
+ "Testnet Curator": "Testnet Curator";
922
+ Tulipa: "Tulipa";
923
+ UltraYield: "UltraYield";
924
+ cp0x: "cp0x";
925
+ }>>;
794
926
  url: z.ZodNullable<z.ZodString>;
795
927
  }, z.core.$strip>;
796
928
  underlyingToken: z.ZodObject<{
797
929
  chainId: z.ZodNumber;
798
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
930
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
799
931
  symbol: z.ZodString;
800
932
  name: z.ZodString;
801
933
  decimals: z.ZodNumber;
802
934
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
803
935
  }, z.core.$strip>;
804
936
  totalBorrow: z.ZodObject<{
805
- value: z.ZodBigInt;
937
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
806
938
  valueUsd: z.ZodNullable<z.ZodNumber>;
807
939
  }, z.core.$strip>;
808
940
  collateralTokens: z.ZodArray<z.ZodObject<{
809
941
  chainId: z.ZodNumber;
810
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
942
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
811
943
  symbol: z.ZodString;
812
944
  name: z.ZodString;
813
945
  decimals: z.ZodNumber;
@@ -817,9 +949,13 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
817
949
  rwa: z.ZodBoolean;
818
950
  sunset: z.ZodBoolean;
819
951
  kind: z.ZodLiteral<"pool">;
820
- pool: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
952
+ pool: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
821
953
  totalSupply: z.ZodObject<{
822
- value: z.ZodBigInt;
954
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
955
+ valueUsd: z.ZodNullable<z.ZodNumber>;
956
+ }, z.core.$strip>;
957
+ availableLiquidity: z.ZodObject<{
958
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
823
959
  valueUsd: z.ZodNullable<z.ZodNumber>;
824
960
  }, z.core.$strip>;
825
961
  utilization: z.ZodNumber;
@@ -830,7 +966,7 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
830
966
  kind: z.ZodLiteral<"token">;
831
967
  token: z.ZodObject<{
832
968
  chainId: z.ZodNumber;
833
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
969
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
834
970
  symbol: z.ZodString;
835
971
  name: z.ZodString;
836
972
  decimals: z.ZodNumber;
@@ -858,7 +994,7 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
858
994
  quotaAssets: z.ZodArray<z.ZodObject<{
859
995
  token: z.ZodObject<{
860
996
  chainId: z.ZodNumber;
861
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
997
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
862
998
  symbol: z.ZodString;
863
999
  name: z.ZodString;
864
1000
  decimals: z.ZodNumber;
@@ -866,11 +1002,11 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
866
1002
  }, z.core.$strip>;
867
1003
  quotaRate: z.ZodNumber;
868
1004
  limit: z.ZodObject<{
869
- value: z.ZodBigInt;
1005
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
870
1006
  valueUsd: z.ZodNullable<z.ZodNumber>;
871
1007
  }, z.core.$strip>;
872
1008
  used: z.ZodObject<{
873
- value: z.ZodBigInt;
1009
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
874
1010
  valueUsd: z.ZodNullable<z.ZodNumber>;
875
1011
  }, z.core.$strip>;
876
1012
  }, z.core.$strip>>;
@@ -878,25 +1014,40 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
878
1014
  chainId: z.ZodNumber;
879
1015
  name: z.ZodString;
880
1016
  curator: z.ZodObject<{
881
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
882
- name: z.ZodString;
1017
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
1018
+ name: z.ZodOptional<z.ZodEnum<{
1019
+ "Chaos Labs": "Chaos Labs";
1020
+ "Gami Labs": "Gami Labs";
1021
+ Hyperithm: "Hyperithm";
1022
+ "Invariant Group": "Invariant Group";
1023
+ K3: "K3";
1024
+ KPK: "KPK";
1025
+ "M11 Credit": "M11 Credit";
1026
+ Re7: "Re7";
1027
+ Securitize: "Securitize";
1028
+ TelosC: "TelosC";
1029
+ "Testnet Curator": "Testnet Curator";
1030
+ Tulipa: "Tulipa";
1031
+ UltraYield: "UltraYield";
1032
+ cp0x: "cp0x";
1033
+ }>>;
883
1034
  url: z.ZodNullable<z.ZodString>;
884
1035
  }, z.core.$strip>;
885
1036
  underlyingToken: z.ZodObject<{
886
1037
  chainId: z.ZodNumber;
887
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1038
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
888
1039
  symbol: z.ZodString;
889
1040
  name: z.ZodString;
890
1041
  decimals: z.ZodNumber;
891
1042
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
892
1043
  }, z.core.$strip>;
893
1044
  totalBorrow: z.ZodObject<{
894
- value: z.ZodBigInt;
1045
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
895
1046
  valueUsd: z.ZodNullable<z.ZodNumber>;
896
1047
  }, z.core.$strip>;
897
1048
  collateralTokens: z.ZodArray<z.ZodObject<{
898
1049
  chainId: z.ZodNumber;
899
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1050
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
900
1051
  symbol: z.ZodString;
901
1052
  name: z.ZodString;
902
1053
  decimals: z.ZodNumber;
@@ -906,10 +1057,10 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
906
1057
  rwa: z.ZodBoolean;
907
1058
  sunset: z.ZodBoolean;
908
1059
  kind: z.ZodLiteral<"strategy">;
909
- creditManager: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1060
+ creditManager: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
910
1061
  targetCollateral: z.ZodObject<{
911
1062
  chainId: z.ZodNumber;
912
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1063
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
913
1064
  symbol: z.ZodString;
914
1065
  name: z.ZodString;
915
1066
  decimals: z.ZodNumber;
@@ -926,7 +1077,7 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
926
1077
  kind: z.ZodLiteral<"token">;
927
1078
  token: z.ZodObject<{
928
1079
  chainId: z.ZodNumber;
929
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1080
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
930
1081
  symbol: z.ZodString;
931
1082
  name: z.ZodString;
932
1083
  decimals: z.ZodNumber;
@@ -950,7 +1101,7 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
950
1101
  kind: z.ZodLiteral<"token">;
951
1102
  token: z.ZodObject<{
952
1103
  chainId: z.ZodNumber;
953
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1104
+ address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
954
1105
  symbol: z.ZodString;
955
1106
  name: z.ZodString;
956
1107
  decimals: z.ZodNumber;
@@ -970,12 +1121,12 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
970
1121
  borrowApy: z.ZodOptional<z.ZodNumber>;
971
1122
  additionalBorrowApy: z.ZodOptional<z.ZodNumber>;
972
1123
  totalValue: z.ZodOptional<z.ZodObject<{
973
- value: z.ZodBigInt;
1124
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
974
1125
  valueUsd: z.ZodNullable<z.ZodNumber>;
975
1126
  }, z.core.$strip>>;
976
1127
  utilization: z.ZodOptional<z.ZodNumber>;
977
1128
  maxBorrowAmount: z.ZodObject<{
978
- value: z.ZodBigInt;
1129
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
979
1130
  valueUsd: z.ZodNullable<z.ZodNumber>;
980
1131
  }, z.core.$strip>;
981
1132
  maxLeverage: z.ZodNumber;
@@ -994,13 +1145,13 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
994
1145
  underlyingFeed: z.ZodObject<{
995
1146
  name: z.ZodString;
996
1147
  type: z.ZodString;
997
- feedAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1148
+ feedAddress: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
998
1149
  dependencies: z.ZodArray<z.ZodObject< /*elided*/ any, z.core.$strip>>;
999
1150
  }, z.core.$strip>;
1000
1151
  collateralFeed: z.ZodObject<{
1001
1152
  name: z.ZodString;
1002
1153
  type: z.ZodString;
1003
- feedAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1154
+ feedAddress: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
1004
1155
  dependencies: z.ZodArray<z.ZodObject<any, z.core.$strip>>;
1005
1156
  }, z.core.$strip>;
1006
1157
  }, z.core.$strip>;
@@ -1010,27 +1161,27 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1010
1161
  **/
1011
1162
  declare const poolOpportunityKeySchema: z.ZodObject<{
1012
1163
  chainId: z.ZodNumber;
1013
- pool: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1164
+ pool: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
1014
1165
  }, z.core.$strip>;
1015
1166
  /**
1016
1167
  * {@link StrategyOpportunityKey}
1017
1168
  **/
1018
1169
  declare const strategyOpportunityKeySchema: z.ZodObject<{
1019
1170
  chainId: z.ZodNumber;
1020
- creditManager: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1021
- targetCollateral: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1171
+ creditManager: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
1172
+ targetCollateral: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
1022
1173
  }, z.core.$strip>;
1023
1174
  /**
1024
1175
  * {@link OpportunityKey}
1025
1176
  **/
1026
1177
  declare const opportunityKeySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1027
1178
  chainId: z.ZodNumber;
1028
- pool: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1179
+ pool: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
1029
1180
  kind: z.ZodLiteral<"pool">;
1030
1181
  }, z.core.$strip>, z.ZodObject<{
1031
1182
  chainId: z.ZodNumber;
1032
- creditManager: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1033
- targetCollateral: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1183
+ creditManager: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
1184
+ targetCollateral: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
1034
1185
  kind: z.ZodLiteral<"strategy">;
1035
1186
  }, z.core.$strip>], "kind">;
1036
1187
  //#endregion