@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.
- package/dist/cjs/model/curators.js +1 -0
- package/dist/cjs/model/curators.schema.js +38 -0
- package/dist/cjs/model/index.js +4 -1
- package/dist/cjs/model/opportunities.schema.js +3 -1
- package/dist/cjs/model/primitives.schema.js +5 -13
- package/dist/cjs/preview/index.js +0 -1
- package/dist/cjs/preview/preview/buildDelayedPreview.js +4 -3
- package/dist/cjs/preview/preview/index.js +0 -1
- package/dist/cjs/preview/preview/previewAdjustCreditAccount.js +3 -2
- package/dist/cjs/preview/preview/types.js +0 -16
- package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +12 -38
- package/dist/cjs/sdk/accounts/credit-account-compressor/CreditAccountCompressor.js +1 -1
- package/dist/cjs/sdk/chain/chains.js +1 -1
- package/dist/cjs/sdk/index.js +3 -0
- package/dist/cjs/sdk/market/MarketConfiguratorContract.js +2 -14
- package/dist/cjs/sdk/market/MarketSuite.js +1 -0
- package/dist/cjs/sdk/market/credit/CreditFacadeV310Contract.js +10 -0
- package/dist/cjs/sdk/market/credit/expectedBalanceDeltas.js +25 -0
- package/dist/cjs/sdk/market/credit/index.js +2 -0
- package/dist/cjs/sdk/market/index.js +2 -0
- package/dist/cjs/sdk/utils/index.js +1 -0
- package/dist/cjs/sdk/utils/zod.js +36 -14
- package/dist/esm/model/curators.js +1 -0
- package/dist/esm/model/curators.schema.js +36 -0
- package/dist/esm/model/index.js +4 -2
- package/dist/esm/model/opportunities.schema.js +3 -1
- package/dist/esm/model/primitives.schema.js +7 -14
- package/dist/esm/preview/index.js +2 -2
- package/dist/esm/preview/preview/buildDelayedPreview.js +5 -4
- package/dist/esm/preview/preview/index.js +2 -2
- package/dist/esm/preview/preview/previewAdjustCreditAccount.js +4 -3
- package/dist/esm/preview/preview/types.js +1 -16
- package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +12 -38
- package/dist/esm/sdk/accounts/credit-account-compressor/CreditAccountCompressor.js +1 -1
- package/dist/esm/sdk/chain/chains.js +1 -1
- package/dist/esm/sdk/index.js +3 -2
- package/dist/esm/sdk/market/MarketConfiguratorContract.js +2 -14
- package/dist/esm/sdk/market/MarketSuite.js +1 -0
- package/dist/esm/sdk/market/credit/CreditFacadeV310Contract.js +10 -0
- package/dist/esm/sdk/market/credit/expectedBalanceDeltas.js +24 -0
- package/dist/esm/sdk/market/credit/index.js +2 -1
- package/dist/esm/sdk/market/index.js +2 -1
- package/dist/esm/sdk/utils/index.js +2 -2
- package/dist/esm/sdk/utils/zod.js +36 -15
- package/dist/types/dev/AccountOpener.d.ts +1 -1
- package/dist/types/model/curators.d.ts +33 -0
- package/dist/types/model/curators.schema.d.ts +50 -0
- package/dist/types/model/history.schema.d.ts +6 -6
- package/dist/types/model/index.d.ts +5 -3
- package/dist/types/model/liquidations.schema.d.ts +47 -47
- package/dist/types/model/opportunities.d.ts +6 -1
- package/dist/types/model/opportunities.schema.d.ts +257 -106
- package/dist/types/model/positions.schema.d.ts +92 -92
- package/dist/types/model/primitives.d.ts +2 -25
- package/dist/types/model/primitives.schema.d.ts +10 -17
- package/dist/types/preview/index.d.ts +2 -2
- package/dist/types/preview/preview/index.d.ts +2 -2
- package/dist/types/preview/preview/types.d.ts +1 -16
- package/dist/types/sdk/OnchainSDK.d.ts +3 -3
- package/dist/types/sdk/accounts/CreditAccountsServiceV310.d.ts +8 -7
- package/dist/types/sdk/accounts/bots/types.d.ts +1 -1
- package/dist/types/sdk/accounts/credit-account-compressor/CreditAccountCompressor.d.ts +1 -1
- package/dist/types/sdk/accounts/credit-account-compressor/CreditAccountCompressorV310Contract.d.ts +1 -1
- package/dist/types/sdk/accounts/index.d.ts +2 -2
- package/dist/types/sdk/accounts/intents/operations/repay-credit-account/index.d.ts +1 -2
- package/dist/types/sdk/accounts/types.d.ts +8 -78
- package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.d.ts +1 -1
- package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.d.ts +1 -1
- package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.d.ts +1 -1
- package/dist/types/sdk/base/index.d.ts +2 -2
- package/dist/types/sdk/base/types.d.ts +42 -1
- package/dist/types/sdk/chain/chains.d.ts +7 -11
- package/dist/types/sdk/chain/index.d.ts +2 -2
- package/dist/types/sdk/index.d.ts +26 -25
- package/dist/types/sdk/market/MarketConfiguratorContract.d.ts +2 -7
- package/dist/types/sdk/market/MarketSuite.d.ts +2 -1
- package/dist/types/sdk/market/credit/CreditFacadeV310Contract.d.ts +6 -3
- package/dist/types/sdk/market/credit/CreditSuite.d.ts +2 -2
- package/dist/types/sdk/market/credit/expectedBalanceDeltas.d.ts +39 -0
- package/dist/types/sdk/market/credit/index.d.ts +3 -2
- package/dist/types/sdk/market/credit/types.d.ts +26 -3
- package/dist/types/sdk/market/index.d.ts +4 -3
- package/dist/types/sdk/market/rwa/index.d.ts +2 -2
- package/dist/types/sdk/market/rwa/securitize/SecuritizeRWAFactory.d.ts +1 -2
- package/dist/types/sdk/market/rwa/types.d.ts +11 -2
- package/dist/types/sdk/options.d.ts +4 -4
- package/dist/types/sdk/pools/types.d.ts +1 -12
- package/dist/types/sdk/utils/index.d.ts +2 -2
- package/dist/types/sdk/utils/zod.d.ts +7 -3
- package/package.json +1 -1
|
@@ -12,11 +12,11 @@ declare const positionKindSchema: z.ZodUnion<readonly [z.ZodLiteral<"pool">, z.Z
|
|
|
12
12
|
* {@link TokenRewardsPnL}
|
|
13
13
|
**/
|
|
14
14
|
declare const tokenRewardsPnLSchema: z.ZodObject<{
|
|
15
|
-
value: z.ZodBigInt
|
|
15
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
16
16
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
17
17
|
token: z.ZodObject<{
|
|
18
18
|
chainId: z.ZodNumber;
|
|
19
|
-
address: z.
|
|
19
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
20
20
|
symbol: z.ZodString;
|
|
21
21
|
name: z.ZodString;
|
|
22
22
|
decimals: z.ZodNumber;
|
|
@@ -49,11 +49,11 @@ declare const pointsRewardsPnLSchema: z.ZodObject<{
|
|
|
49
49
|
* {@link RewardsPnL}
|
|
50
50
|
**/
|
|
51
51
|
declare const rewardsPnLSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52
|
-
value: z.ZodBigInt
|
|
52
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
53
53
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
54
54
|
token: z.ZodObject<{
|
|
55
55
|
chainId: z.ZodNumber;
|
|
56
|
-
address: z.
|
|
56
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
57
57
|
symbol: z.ZodString;
|
|
58
58
|
name: z.ZodString;
|
|
59
59
|
decimals: z.ZodNumber;
|
|
@@ -74,11 +74,11 @@ declare const rewardsPnLSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
74
74
|
**/
|
|
75
75
|
declare const pnlBreakdownSchema: z.ZodObject<{
|
|
76
76
|
organic: z.ZodObject<{
|
|
77
|
-
value: z.ZodBigInt
|
|
77
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
78
78
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
79
79
|
token: z.ZodObject<{
|
|
80
80
|
chainId: z.ZodNumber;
|
|
81
|
-
address: z.
|
|
81
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
82
82
|
symbol: z.ZodString;
|
|
83
83
|
name: z.ZodString;
|
|
84
84
|
decimals: z.ZodNumber;
|
|
@@ -86,11 +86,11 @@ declare const pnlBreakdownSchema: z.ZodObject<{
|
|
|
86
86
|
}, z.core.$strip>;
|
|
87
87
|
}, z.core.$strip>;
|
|
88
88
|
total: z.ZodObject<{
|
|
89
|
-
value: z.ZodBigInt
|
|
89
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
90
90
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
91
91
|
token: z.ZodObject<{
|
|
92
92
|
chainId: z.ZodNumber;
|
|
93
|
-
address: z.
|
|
93
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
94
94
|
symbol: z.ZodString;
|
|
95
95
|
name: z.ZodString;
|
|
96
96
|
decimals: z.ZodNumber;
|
|
@@ -98,11 +98,11 @@ declare const pnlBreakdownSchema: z.ZodObject<{
|
|
|
98
98
|
}, z.core.$strip>;
|
|
99
99
|
}, z.core.$strip>;
|
|
100
100
|
rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
101
|
-
value: z.ZodBigInt
|
|
101
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
102
102
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
103
103
|
token: z.ZodObject<{
|
|
104
104
|
chainId: z.ZodNumber;
|
|
105
|
-
address: z.
|
|
105
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
106
106
|
symbol: z.ZodString;
|
|
107
107
|
name: z.ZodString;
|
|
108
108
|
decimals: z.ZodNumber;
|
|
@@ -124,11 +124,11 @@ declare const pnlBreakdownSchema: z.ZodObject<{
|
|
|
124
124
|
**/
|
|
125
125
|
declare const positionCollateralSchema: z.ZodObject<{
|
|
126
126
|
collateral: z.ZodObject<{
|
|
127
|
-
value: z.ZodBigInt
|
|
127
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
128
128
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
129
129
|
token: z.ZodObject<{
|
|
130
130
|
chainId: z.ZodNumber;
|
|
131
|
-
address: z.
|
|
131
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
132
132
|
symbol: z.ZodString;
|
|
133
133
|
name: z.ZodString;
|
|
134
134
|
decimals: z.ZodNumber;
|
|
@@ -136,11 +136,11 @@ declare const positionCollateralSchema: z.ZodObject<{
|
|
|
136
136
|
}, z.core.$strip>;
|
|
137
137
|
}, z.core.$strip>;
|
|
138
138
|
quota: z.ZodObject<{
|
|
139
|
-
value: z.ZodBigInt
|
|
139
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
140
140
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
141
141
|
token: z.ZodObject<{
|
|
142
142
|
chainId: z.ZodNumber;
|
|
143
|
-
address: z.
|
|
143
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
144
144
|
symbol: z.ZodString;
|
|
145
145
|
name: z.ZodString;
|
|
146
146
|
decimals: z.ZodNumber;
|
|
@@ -148,18 +148,18 @@ declare const positionCollateralSchema: z.ZodObject<{
|
|
|
148
148
|
}, z.core.$strip>;
|
|
149
149
|
}, z.core.$strip>;
|
|
150
150
|
withdrawals: z.ZodArray<z.ZodObject<{
|
|
151
|
-
value: z.ZodBigInt
|
|
151
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
152
152
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
153
153
|
token: z.ZodObject<{
|
|
154
154
|
chainId: z.ZodNumber;
|
|
155
|
-
address: z.
|
|
155
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
156
156
|
symbol: z.ZodString;
|
|
157
157
|
name: z.ZodString;
|
|
158
158
|
decimals: z.ZodNumber;
|
|
159
159
|
assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
|
|
160
160
|
}, z.core.$strip>;
|
|
161
161
|
isDelayed: z.ZodLiteral<true>;
|
|
162
|
-
redeemer: z.ZodOptional<z.
|
|
162
|
+
redeemer: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>>;
|
|
163
163
|
claimableAt: z.ZodOptional<z.ZodNumber>;
|
|
164
164
|
}, z.core.$strip>>;
|
|
165
165
|
}, z.core.$strip>;
|
|
@@ -170,13 +170,13 @@ declare const poolPositionSchema: z.ZodObject<{
|
|
|
170
170
|
kind: z.ZodLiteral<"pool">;
|
|
171
171
|
name: z.ZodString;
|
|
172
172
|
chainId: z.ZodNumber;
|
|
173
|
-
pool: z.
|
|
173
|
+
pool: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
174
174
|
netValue: z.ZodObject<{
|
|
175
|
-
value: z.ZodBigInt
|
|
175
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
176
176
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
177
177
|
token: z.ZodObject<{
|
|
178
178
|
chainId: z.ZodNumber;
|
|
179
|
-
address: z.
|
|
179
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
180
180
|
symbol: z.ZodString;
|
|
181
181
|
name: z.ZodString;
|
|
182
182
|
decimals: z.ZodNumber;
|
|
@@ -190,7 +190,7 @@ declare const poolPositionSchema: z.ZodObject<{
|
|
|
190
190
|
kind: z.ZodLiteral<"token">;
|
|
191
191
|
token: z.ZodObject<{
|
|
192
192
|
chainId: z.ZodNumber;
|
|
193
|
-
address: z.
|
|
193
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
194
194
|
symbol: z.ZodString;
|
|
195
195
|
name: z.ZodString;
|
|
196
196
|
decimals: z.ZodNumber;
|
|
@@ -209,11 +209,11 @@ declare const poolPositionSchema: z.ZodObject<{
|
|
|
209
209
|
}, z.core.$strip>;
|
|
210
210
|
pnl: z.ZodOptional<z.ZodObject<{
|
|
211
211
|
organic: z.ZodObject<{
|
|
212
|
-
value: z.ZodBigInt
|
|
212
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
213
213
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
214
214
|
token: z.ZodObject<{
|
|
215
215
|
chainId: z.ZodNumber;
|
|
216
|
-
address: z.
|
|
216
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
217
217
|
symbol: z.ZodString;
|
|
218
218
|
name: z.ZodString;
|
|
219
219
|
decimals: z.ZodNumber;
|
|
@@ -221,11 +221,11 @@ declare const poolPositionSchema: z.ZodObject<{
|
|
|
221
221
|
}, z.core.$strip>;
|
|
222
222
|
}, z.core.$strip>;
|
|
223
223
|
total: z.ZodObject<{
|
|
224
|
-
value: z.ZodBigInt
|
|
224
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
225
225
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
226
226
|
token: z.ZodObject<{
|
|
227
227
|
chainId: z.ZodNumber;
|
|
228
|
-
address: z.
|
|
228
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
229
229
|
symbol: z.ZodString;
|
|
230
230
|
name: z.ZodString;
|
|
231
231
|
decimals: z.ZodNumber;
|
|
@@ -233,11 +233,11 @@ declare const poolPositionSchema: z.ZodObject<{
|
|
|
233
233
|
}, z.core.$strip>;
|
|
234
234
|
}, z.core.$strip>;
|
|
235
235
|
rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
236
|
-
value: z.ZodBigInt
|
|
236
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
237
237
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
238
238
|
token: z.ZodObject<{
|
|
239
239
|
chainId: z.ZodNumber;
|
|
240
|
-
address: z.
|
|
240
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
241
241
|
symbol: z.ZodString;
|
|
242
242
|
name: z.ZodString;
|
|
243
243
|
decimals: z.ZodNumber;
|
|
@@ -262,11 +262,11 @@ declare const strategyPositionSchema: z.ZodObject<{
|
|
|
262
262
|
kind: z.ZodLiteral<"strategy">;
|
|
263
263
|
name: z.ZodString;
|
|
264
264
|
chainId: z.ZodNumber;
|
|
265
|
-
creditManager: z.
|
|
266
|
-
creditAccount: z.
|
|
265
|
+
creditManager: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
266
|
+
creditAccount: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
267
267
|
targetCollateral: z.ZodNullable<z.ZodObject<{
|
|
268
268
|
chainId: z.ZodNumber;
|
|
269
|
-
address: z.
|
|
269
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
270
270
|
symbol: z.ZodString;
|
|
271
271
|
name: z.ZodString;
|
|
272
272
|
decimals: z.ZodNumber;
|
|
@@ -281,7 +281,7 @@ declare const strategyPositionSchema: z.ZodObject<{
|
|
|
281
281
|
kind: z.ZodLiteral<"token">;
|
|
282
282
|
token: z.ZodObject<{
|
|
283
283
|
chainId: z.ZodNumber;
|
|
284
|
-
address: z.
|
|
284
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
285
285
|
symbol: z.ZodString;
|
|
286
286
|
name: z.ZodString;
|
|
287
287
|
decimals: z.ZodNumber;
|
|
@@ -299,11 +299,11 @@ declare const strategyPositionSchema: z.ZodObject<{
|
|
|
299
299
|
}, z.core.$strip>], "kind">>>;
|
|
300
300
|
}, z.core.$strip>>;
|
|
301
301
|
totalDebt: z.ZodObject<{
|
|
302
|
-
value: z.ZodBigInt
|
|
302
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
303
303
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
304
304
|
token: z.ZodObject<{
|
|
305
305
|
chainId: z.ZodNumber;
|
|
306
|
-
address: z.
|
|
306
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
307
307
|
symbol: z.ZodString;
|
|
308
308
|
name: z.ZodString;
|
|
309
309
|
decimals: z.ZodNumber;
|
|
@@ -311,11 +311,11 @@ declare const strategyPositionSchema: z.ZodObject<{
|
|
|
311
311
|
}, z.core.$strip>;
|
|
312
312
|
}, z.core.$strip>;
|
|
313
313
|
totalValue: z.ZodObject<{
|
|
314
|
-
value: z.ZodBigInt
|
|
314
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
315
315
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
316
316
|
token: z.ZodObject<{
|
|
317
317
|
chainId: z.ZodNumber;
|
|
318
|
-
address: z.
|
|
318
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
319
319
|
symbol: z.ZodString;
|
|
320
320
|
name: z.ZodString;
|
|
321
321
|
decimals: z.ZodNumber;
|
|
@@ -325,11 +325,11 @@ declare const strategyPositionSchema: z.ZodObject<{
|
|
|
325
325
|
healthFactor: z.ZodNumber;
|
|
326
326
|
pnl: z.ZodOptional<z.ZodObject<{
|
|
327
327
|
organic: z.ZodObject<{
|
|
328
|
-
value: z.ZodBigInt
|
|
328
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
329
329
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
330
330
|
token: z.ZodObject<{
|
|
331
331
|
chainId: z.ZodNumber;
|
|
332
|
-
address: z.
|
|
332
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
333
333
|
symbol: z.ZodString;
|
|
334
334
|
name: z.ZodString;
|
|
335
335
|
decimals: z.ZodNumber;
|
|
@@ -337,11 +337,11 @@ declare const strategyPositionSchema: z.ZodObject<{
|
|
|
337
337
|
}, z.core.$strip>;
|
|
338
338
|
}, z.core.$strip>;
|
|
339
339
|
total: z.ZodObject<{
|
|
340
|
-
value: z.ZodBigInt
|
|
340
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
341
341
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
342
342
|
token: z.ZodObject<{
|
|
343
343
|
chainId: z.ZodNumber;
|
|
344
|
-
address: z.
|
|
344
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
345
345
|
symbol: z.ZodString;
|
|
346
346
|
name: z.ZodString;
|
|
347
347
|
decimals: z.ZodNumber;
|
|
@@ -349,11 +349,11 @@ declare const strategyPositionSchema: z.ZodObject<{
|
|
|
349
349
|
}, z.core.$strip>;
|
|
350
350
|
}, z.core.$strip>;
|
|
351
351
|
rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
352
|
-
value: z.ZodBigInt
|
|
352
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
353
353
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
354
354
|
token: z.ZodObject<{
|
|
355
355
|
chainId: z.ZodNumber;
|
|
356
|
-
address: z.
|
|
356
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
357
357
|
symbol: z.ZodString;
|
|
358
358
|
name: z.ZodString;
|
|
359
359
|
decimals: z.ZodNumber;
|
|
@@ -372,11 +372,11 @@ declare const strategyPositionSchema: z.ZodObject<{
|
|
|
372
372
|
}, z.core.$strip>>;
|
|
373
373
|
collaterals: z.ZodArray<z.ZodObject<{
|
|
374
374
|
collateral: z.ZodObject<{
|
|
375
|
-
value: z.ZodBigInt
|
|
375
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
376
376
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
377
377
|
token: z.ZodObject<{
|
|
378
378
|
chainId: z.ZodNumber;
|
|
379
|
-
address: z.
|
|
379
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
380
380
|
symbol: z.ZodString;
|
|
381
381
|
name: z.ZodString;
|
|
382
382
|
decimals: z.ZodNumber;
|
|
@@ -384,11 +384,11 @@ declare const strategyPositionSchema: z.ZodObject<{
|
|
|
384
384
|
}, z.core.$strip>;
|
|
385
385
|
}, z.core.$strip>;
|
|
386
386
|
quota: z.ZodObject<{
|
|
387
|
-
value: z.ZodBigInt
|
|
387
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
388
388
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
389
389
|
token: z.ZodObject<{
|
|
390
390
|
chainId: z.ZodNumber;
|
|
391
|
-
address: z.
|
|
391
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
392
392
|
symbol: z.ZodString;
|
|
393
393
|
name: z.ZodString;
|
|
394
394
|
decimals: z.ZodNumber;
|
|
@@ -396,18 +396,18 @@ declare const strategyPositionSchema: z.ZodObject<{
|
|
|
396
396
|
}, z.core.$strip>;
|
|
397
397
|
}, z.core.$strip>;
|
|
398
398
|
withdrawals: z.ZodArray<z.ZodObject<{
|
|
399
|
-
value: z.ZodBigInt
|
|
399
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
400
400
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
401
401
|
token: z.ZodObject<{
|
|
402
402
|
chainId: z.ZodNumber;
|
|
403
|
-
address: z.
|
|
403
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
404
404
|
symbol: z.ZodString;
|
|
405
405
|
name: z.ZodString;
|
|
406
406
|
decimals: z.ZodNumber;
|
|
407
407
|
assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
|
|
408
408
|
}, z.core.$strip>;
|
|
409
409
|
isDelayed: z.ZodLiteral<true>;
|
|
410
|
-
redeemer: z.ZodOptional<z.
|
|
410
|
+
redeemer: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>>;
|
|
411
411
|
claimableAt: z.ZodOptional<z.ZodNumber>;
|
|
412
412
|
}, z.core.$strip>>;
|
|
413
413
|
}, z.core.$strip>>;
|
|
@@ -419,13 +419,13 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
419
419
|
kind: z.ZodLiteral<"pool">;
|
|
420
420
|
name: z.ZodString;
|
|
421
421
|
chainId: z.ZodNumber;
|
|
422
|
-
pool: z.
|
|
422
|
+
pool: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
423
423
|
netValue: z.ZodObject<{
|
|
424
|
-
value: z.ZodBigInt
|
|
424
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
425
425
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
426
426
|
token: z.ZodObject<{
|
|
427
427
|
chainId: z.ZodNumber;
|
|
428
|
-
address: z.
|
|
428
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
429
429
|
symbol: z.ZodString;
|
|
430
430
|
name: z.ZodString;
|
|
431
431
|
decimals: z.ZodNumber;
|
|
@@ -439,7 +439,7 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
439
439
|
kind: z.ZodLiteral<"token">;
|
|
440
440
|
token: z.ZodObject<{
|
|
441
441
|
chainId: z.ZodNumber;
|
|
442
|
-
address: z.
|
|
442
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
443
443
|
symbol: z.ZodString;
|
|
444
444
|
name: z.ZodString;
|
|
445
445
|
decimals: z.ZodNumber;
|
|
@@ -458,11 +458,11 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
458
458
|
}, z.core.$strip>;
|
|
459
459
|
pnl: z.ZodOptional<z.ZodObject<{
|
|
460
460
|
organic: z.ZodObject<{
|
|
461
|
-
value: z.ZodBigInt
|
|
461
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
462
462
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
463
463
|
token: z.ZodObject<{
|
|
464
464
|
chainId: z.ZodNumber;
|
|
465
|
-
address: z.
|
|
465
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
466
466
|
symbol: z.ZodString;
|
|
467
467
|
name: z.ZodString;
|
|
468
468
|
decimals: z.ZodNumber;
|
|
@@ -470,11 +470,11 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
470
470
|
}, z.core.$strip>;
|
|
471
471
|
}, z.core.$strip>;
|
|
472
472
|
total: z.ZodObject<{
|
|
473
|
-
value: z.ZodBigInt
|
|
473
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
474
474
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
475
475
|
token: z.ZodObject<{
|
|
476
476
|
chainId: z.ZodNumber;
|
|
477
|
-
address: z.
|
|
477
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
478
478
|
symbol: z.ZodString;
|
|
479
479
|
name: z.ZodString;
|
|
480
480
|
decimals: z.ZodNumber;
|
|
@@ -482,11 +482,11 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
482
482
|
}, z.core.$strip>;
|
|
483
483
|
}, z.core.$strip>;
|
|
484
484
|
rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
485
|
-
value: z.ZodBigInt
|
|
485
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
486
486
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
487
487
|
token: z.ZodObject<{
|
|
488
488
|
chainId: z.ZodNumber;
|
|
489
|
-
address: z.
|
|
489
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
490
490
|
symbol: z.ZodString;
|
|
491
491
|
name: z.ZodString;
|
|
492
492
|
decimals: z.ZodNumber;
|
|
@@ -507,11 +507,11 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
507
507
|
kind: z.ZodLiteral<"strategy">;
|
|
508
508
|
name: z.ZodString;
|
|
509
509
|
chainId: z.ZodNumber;
|
|
510
|
-
creditManager: z.
|
|
511
|
-
creditAccount: z.
|
|
510
|
+
creditManager: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
511
|
+
creditAccount: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
512
512
|
targetCollateral: z.ZodNullable<z.ZodObject<{
|
|
513
513
|
chainId: z.ZodNumber;
|
|
514
|
-
address: z.
|
|
514
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
515
515
|
symbol: z.ZodString;
|
|
516
516
|
name: z.ZodString;
|
|
517
517
|
decimals: z.ZodNumber;
|
|
@@ -526,7 +526,7 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
526
526
|
kind: z.ZodLiteral<"token">;
|
|
527
527
|
token: z.ZodObject<{
|
|
528
528
|
chainId: z.ZodNumber;
|
|
529
|
-
address: z.
|
|
529
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
530
530
|
symbol: z.ZodString;
|
|
531
531
|
name: z.ZodString;
|
|
532
532
|
decimals: z.ZodNumber;
|
|
@@ -544,11 +544,11 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
544
544
|
}, z.core.$strip>], "kind">>>;
|
|
545
545
|
}, z.core.$strip>>;
|
|
546
546
|
totalDebt: z.ZodObject<{
|
|
547
|
-
value: z.ZodBigInt
|
|
547
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
548
548
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
549
549
|
token: z.ZodObject<{
|
|
550
550
|
chainId: z.ZodNumber;
|
|
551
|
-
address: z.
|
|
551
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
552
552
|
symbol: z.ZodString;
|
|
553
553
|
name: z.ZodString;
|
|
554
554
|
decimals: z.ZodNumber;
|
|
@@ -556,11 +556,11 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
556
556
|
}, z.core.$strip>;
|
|
557
557
|
}, z.core.$strip>;
|
|
558
558
|
totalValue: z.ZodObject<{
|
|
559
|
-
value: z.ZodBigInt
|
|
559
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
560
560
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
561
561
|
token: z.ZodObject<{
|
|
562
562
|
chainId: z.ZodNumber;
|
|
563
|
-
address: z.
|
|
563
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
564
564
|
symbol: z.ZodString;
|
|
565
565
|
name: z.ZodString;
|
|
566
566
|
decimals: z.ZodNumber;
|
|
@@ -570,11 +570,11 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
570
570
|
healthFactor: z.ZodNumber;
|
|
571
571
|
pnl: z.ZodOptional<z.ZodObject<{
|
|
572
572
|
organic: z.ZodObject<{
|
|
573
|
-
value: z.ZodBigInt
|
|
573
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
574
574
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
575
575
|
token: z.ZodObject<{
|
|
576
576
|
chainId: z.ZodNumber;
|
|
577
|
-
address: z.
|
|
577
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
578
578
|
symbol: z.ZodString;
|
|
579
579
|
name: z.ZodString;
|
|
580
580
|
decimals: z.ZodNumber;
|
|
@@ -582,11 +582,11 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
582
582
|
}, z.core.$strip>;
|
|
583
583
|
}, z.core.$strip>;
|
|
584
584
|
total: z.ZodObject<{
|
|
585
|
-
value: z.ZodBigInt
|
|
585
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
586
586
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
587
587
|
token: z.ZodObject<{
|
|
588
588
|
chainId: z.ZodNumber;
|
|
589
|
-
address: z.
|
|
589
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
590
590
|
symbol: z.ZodString;
|
|
591
591
|
name: z.ZodString;
|
|
592
592
|
decimals: z.ZodNumber;
|
|
@@ -594,11 +594,11 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
594
594
|
}, z.core.$strip>;
|
|
595
595
|
}, z.core.$strip>;
|
|
596
596
|
rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
597
|
-
value: z.ZodBigInt
|
|
597
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
598
598
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
599
599
|
token: z.ZodObject<{
|
|
600
600
|
chainId: z.ZodNumber;
|
|
601
|
-
address: z.
|
|
601
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
602
602
|
symbol: z.ZodString;
|
|
603
603
|
name: z.ZodString;
|
|
604
604
|
decimals: z.ZodNumber;
|
|
@@ -617,11 +617,11 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
617
617
|
}, z.core.$strip>>;
|
|
618
618
|
collaterals: z.ZodArray<z.ZodObject<{
|
|
619
619
|
collateral: z.ZodObject<{
|
|
620
|
-
value: z.ZodBigInt
|
|
620
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
621
621
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
622
622
|
token: z.ZodObject<{
|
|
623
623
|
chainId: z.ZodNumber;
|
|
624
|
-
address: z.
|
|
624
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
625
625
|
symbol: z.ZodString;
|
|
626
626
|
name: z.ZodString;
|
|
627
627
|
decimals: z.ZodNumber;
|
|
@@ -629,11 +629,11 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
629
629
|
}, z.core.$strip>;
|
|
630
630
|
}, z.core.$strip>;
|
|
631
631
|
quota: z.ZodObject<{
|
|
632
|
-
value: z.ZodBigInt
|
|
632
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
633
633
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
634
634
|
token: z.ZodObject<{
|
|
635
635
|
chainId: z.ZodNumber;
|
|
636
|
-
address: z.
|
|
636
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
637
637
|
symbol: z.ZodString;
|
|
638
638
|
name: z.ZodString;
|
|
639
639
|
decimals: z.ZodNumber;
|
|
@@ -641,18 +641,18 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
641
641
|
}, z.core.$strip>;
|
|
642
642
|
}, z.core.$strip>;
|
|
643
643
|
withdrawals: z.ZodArray<z.ZodObject<{
|
|
644
|
-
value: z.ZodBigInt
|
|
644
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
645
645
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
646
646
|
token: z.ZodObject<{
|
|
647
647
|
chainId: z.ZodNumber;
|
|
648
|
-
address: z.
|
|
648
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
649
649
|
symbol: z.ZodString;
|
|
650
650
|
name: z.ZodString;
|
|
651
651
|
decimals: z.ZodNumber;
|
|
652
652
|
assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
|
|
653
653
|
}, z.core.$strip>;
|
|
654
654
|
isDelayed: z.ZodLiteral<true>;
|
|
655
|
-
redeemer: z.ZodOptional<z.
|
|
655
|
+
redeemer: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>>;
|
|
656
656
|
claimableAt: z.ZodOptional<z.ZodNumber>;
|
|
657
657
|
}, z.core.$strip>>;
|
|
658
658
|
}, z.core.$strip>>;
|
|
@@ -662,18 +662,18 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
662
662
|
chainId: z.ZodNumber;
|
|
663
663
|
sourceToken: z.ZodObject<{
|
|
664
664
|
chainId: z.ZodNumber;
|
|
665
|
-
address: z.
|
|
665
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
666
666
|
symbol: z.ZodString;
|
|
667
667
|
name: z.ZodString;
|
|
668
668
|
decimals: z.ZodNumber;
|
|
669
669
|
assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
|
|
670
670
|
}, z.core.$strip>;
|
|
671
671
|
output: z.ZodObject<{
|
|
672
|
-
value: z.ZodBigInt
|
|
672
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
673
673
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
674
674
|
token: z.ZodObject<{
|
|
675
675
|
chainId: z.ZodNumber;
|
|
676
|
-
address: z.
|
|
676
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
677
677
|
symbol: z.ZodString;
|
|
678
678
|
name: z.ZodString;
|
|
679
679
|
decimals: z.ZodNumber;
|
|
@@ -682,11 +682,11 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
682
682
|
}, z.core.$strip>;
|
|
683
683
|
claimableAt: z.ZodOptional<z.ZodNumber>;
|
|
684
684
|
claimTx: z.ZodOptional<z.ZodObject<{
|
|
685
|
-
to: z.
|
|
686
|
-
callData: z.
|
|
687
|
-
value: z.ZodOptional<z.ZodBigInt
|
|
685
|
+
to: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
686
|
+
callData: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
687
|
+
value: z.ZodOptional<z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>>;
|
|
688
688
|
}, z.core.$strip>>;
|
|
689
|
-
redeemer: z.ZodOptional<z.
|
|
689
|
+
redeemer: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>>;
|
|
690
690
|
}, z.core.$strip>], "kind">;
|
|
691
691
|
/**
|
|
692
692
|
* {@link PositionFilter}
|
|
@@ -702,27 +702,27 @@ declare const positionFilterSchema: z.ZodObject<{
|
|
|
702
702
|
**/
|
|
703
703
|
declare const poolPositionKeySchema: z.ZodObject<{
|
|
704
704
|
chainId: z.ZodNumber;
|
|
705
|
-
pool: z.
|
|
706
|
-
wallet: z.
|
|
705
|
+
pool: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
706
|
+
wallet: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
707
707
|
}, z.core.$strip>;
|
|
708
708
|
/**
|
|
709
709
|
* {@link StrategyPositionKey}
|
|
710
710
|
**/
|
|
711
711
|
declare const strategyPositionKeySchema: z.ZodObject<{
|
|
712
712
|
chainId: z.ZodNumber;
|
|
713
|
-
creditAccount: z.
|
|
713
|
+
creditAccount: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
714
714
|
}, z.core.$strip>;
|
|
715
715
|
/**
|
|
716
716
|
* {@link PositionKey}
|
|
717
717
|
**/
|
|
718
718
|
declare const positionKeySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
719
719
|
chainId: z.ZodNumber;
|
|
720
|
-
pool: z.
|
|
721
|
-
wallet: z.
|
|
720
|
+
pool: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
721
|
+
wallet: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
722
722
|
kind: z.ZodLiteral<"pool">;
|
|
723
723
|
}, z.core.$strip>, z.ZodObject<{
|
|
724
724
|
chainId: z.ZodNumber;
|
|
725
|
-
creditAccount: z.
|
|
725
|
+
creditAccount: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
726
726
|
kind: z.ZodLiteral<"strategy">;
|
|
727
727
|
}, z.core.$strip>], "kind">;
|
|
728
728
|
//#endregion
|
|
@@ -58,6 +58,7 @@ type AssetType = "Stable" | "ETH" | "BTC";
|
|
|
58
58
|
* ```ts
|
|
59
59
|
* const leveraged: Leverage = 5.5;
|
|
60
60
|
* const unleveraged: Leverage = 1;
|
|
61
|
+
* const unavailable: Leverage = 0;
|
|
61
62
|
* ```
|
|
62
63
|
**/
|
|
63
64
|
type Leverage = number;
|
|
@@ -166,29 +167,5 @@ interface TxCall {
|
|
|
166
167
|
**/
|
|
167
168
|
value?: bigint;
|
|
168
169
|
}
|
|
169
|
-
/**
|
|
170
|
-
* The entity that curates a market: sets risk parameters, picks collateral and
|
|
171
|
-
* operates the market configurator.
|
|
172
|
-
**/
|
|
173
|
-
interface Curator {
|
|
174
|
-
/**
|
|
175
|
-
* Address of the market configurator the curator operates. This is the
|
|
176
|
-
* on-chain identity of a curator, not a personal wallet.
|
|
177
|
-
**/
|
|
178
|
-
address: Address;
|
|
179
|
-
/**
|
|
180
|
-
* Display name.
|
|
181
|
-
*
|
|
182
|
-
* @example `"Chaos Labs"`
|
|
183
|
-
**/
|
|
184
|
-
name: string;
|
|
185
|
-
/**
|
|
186
|
-
* Link to the curator's page, or `null` when unknown. The chain knows no
|
|
187
|
-
* URLs, so this is `null` for anything served from the on-chain source.
|
|
188
|
-
*
|
|
189
|
-
* @mode offchain
|
|
190
|
-
**/
|
|
191
|
-
url: string | null;
|
|
192
|
-
}
|
|
193
170
|
//#endregion
|
|
194
|
-
export { Amount, AssetType, Bps, ChainId,
|
|
171
|
+
export { Amount, AssetType, Bps, ChainId, Leverage, Timestamp, Token, TokenAmount, TxCall };
|