@gearbox-protocol/sdk 14.12.0-next.77 → 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/primitives.schema.js +5 -4
- 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/index.js +3 -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/dev/AccountOpener.js +1 -1
- package/dist/esm/dev/withdrawalUtils.js +1 -1
- package/dist/esm/model/primitives.schema.js +6 -5
- package/dist/esm/plugins/adapters/contracts/ERC4626AdapterContract.js +1 -1
- 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/preview/simulate/simulatePoolOperation.js +1 -1
- package/dist/esm/preview/trace/extractTransfers.js +1 -1
- package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +14 -40
- package/dist/esm/sdk/accounts/credit-account-compressor/CreditAccountCompressor.js +1 -1
- package/dist/esm/sdk/accounts/liquidations/LiquidationsService.js +1 -1
- package/dist/esm/sdk/accounts/withdrawal-compressor/RedemptionLoggerV310Contract.js +1 -1
- package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.js +1 -1
- package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.js +1 -1
- package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js +1 -1
- package/dist/esm/sdk/base/TokensMeta.js +2 -2
- package/dist/esm/sdk/chain/detectNetwork.js +1 -1
- package/dist/esm/sdk/core/createAddressProvider.js +1 -1
- package/dist/esm/sdk/index.js +3 -2
- package/dist/esm/sdk/market/credit/CreditFacadeV310BaseContract.js +1 -1
- 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/market/pool/PoolV310Contract.js +1 -1
- package/dist/esm/sdk/market/zapper/IETHZapperContract.js +1 -1
- package/dist/esm/sdk/market/zapper/ZapperContract.js +1 -1
- package/dist/esm/sdk/pools/PoolService.js +1 -1
- package/dist/esm/sdk/utils/index.js +2 -2
- package/dist/esm/sdk/utils/viem/simulateWithPriceUpdates.js +1 -1
- package/dist/esm/sdk/utils/zod.js +36 -15
- package/dist/types/dev/AccountOpener.d.ts +1 -1
- package/dist/types/model/curators.schema.d.ts +1 -1
- package/dist/types/model/history.schema.d.ts +6 -6
- package/dist/types/model/liquidations.schema.d.ts +47 -47
- package/dist/types/model/opportunities.schema.d.ts +101 -101
- package/dist/types/model/positions.schema.d.ts +92 -92
- package/dist/types/model/primitives.d.ts +1 -0
- package/dist/types/model/primitives.schema.d.ts +9 -8
- 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/index.d.ts +25 -24
- 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
|
@@ -19,22 +19,22 @@ declare const liquidatableAccountFilterSchema: z.ZodObject<{
|
|
|
19
19
|
**/
|
|
20
20
|
declare const liquidatableAccountSchema: z.ZodObject<{
|
|
21
21
|
chainId: z.ZodNumber;
|
|
22
|
-
creditAccount: z.
|
|
23
|
-
creditManager: z.
|
|
22
|
+
creditAccount: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
23
|
+
creditManager: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
24
24
|
asset: z.ZodObject<{
|
|
25
25
|
chainId: z.ZodNumber;
|
|
26
|
-
address: z.
|
|
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;
|
|
30
30
|
assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
|
|
31
31
|
}, z.core.$strip>;
|
|
32
32
|
totalValue: z.ZodObject<{
|
|
33
|
-
value: z.ZodBigInt
|
|
33
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
34
34
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
35
35
|
token: z.ZodObject<{
|
|
36
36
|
chainId: z.ZodNumber;
|
|
37
|
-
address: z.
|
|
37
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
38
38
|
symbol: z.ZodString;
|
|
39
39
|
name: z.ZodString;
|
|
40
40
|
decimals: z.ZodNumber;
|
|
@@ -42,11 +42,11 @@ declare const liquidatableAccountSchema: z.ZodObject<{
|
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
}, z.core.$strip>;
|
|
44
44
|
repaymentAmount: z.ZodObject<{
|
|
45
|
-
value: z.ZodBigInt
|
|
45
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
46
46
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
47
47
|
token: z.ZodObject<{
|
|
48
48
|
chainId: z.ZodNumber;
|
|
49
|
-
address: z.
|
|
49
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
50
50
|
symbol: z.ZodString;
|
|
51
51
|
name: z.ZodString;
|
|
52
52
|
decimals: z.ZodNumber;
|
|
@@ -54,11 +54,11 @@ declare const liquidatableAccountSchema: z.ZodObject<{
|
|
|
54
54
|
}, z.core.$strip>;
|
|
55
55
|
}, z.core.$strip>;
|
|
56
56
|
estimatedProfit: z.ZodObject<{
|
|
57
|
-
value: z.ZodBigInt
|
|
57
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
58
58
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
59
59
|
token: z.ZodObject<{
|
|
60
60
|
chainId: z.ZodNumber;
|
|
61
|
-
address: z.
|
|
61
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
62
62
|
symbol: z.ZodString;
|
|
63
63
|
name: z.ZodString;
|
|
64
64
|
decimals: z.ZodNumber;
|
|
@@ -73,11 +73,11 @@ declare const liquidatableAccountSchema: z.ZodObject<{
|
|
|
73
73
|
* {@link InstantReceivedAsset}
|
|
74
74
|
**/
|
|
75
75
|
declare const instantReceivedAssetSchema: z.ZodObject<{
|
|
76
|
-
value: z.ZodBigInt
|
|
76
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
77
77
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
78
78
|
token: z.ZodObject<{
|
|
79
79
|
chainId: z.ZodNumber;
|
|
80
|
-
address: z.
|
|
80
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
81
81
|
symbol: z.ZodString;
|
|
82
82
|
name: z.ZodString;
|
|
83
83
|
decimals: z.ZodNumber;
|
|
@@ -89,29 +89,29 @@ declare const instantReceivedAssetSchema: z.ZodObject<{
|
|
|
89
89
|
* {@link DelayedReceivedAsset}
|
|
90
90
|
**/
|
|
91
91
|
declare const delayedReceivedAssetSchema: z.ZodObject<{
|
|
92
|
-
value: z.ZodBigInt
|
|
92
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
93
93
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
94
94
|
token: z.ZodObject<{
|
|
95
95
|
chainId: z.ZodNumber;
|
|
96
|
-
address: z.
|
|
96
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
97
97
|
symbol: z.ZodString;
|
|
98
98
|
name: z.ZodString;
|
|
99
99
|
decimals: z.ZodNumber;
|
|
100
100
|
assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
|
|
101
101
|
}, z.core.$strip>;
|
|
102
102
|
isDelayed: z.ZodLiteral<true>;
|
|
103
|
-
redeemer: z.ZodOptional<z.
|
|
103
|
+
redeemer: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>>;
|
|
104
104
|
claimableAt: z.ZodOptional<z.ZodNumber>;
|
|
105
105
|
}, z.core.$strip>;
|
|
106
106
|
/**
|
|
107
107
|
* {@link ReceivedAsset}
|
|
108
108
|
**/
|
|
109
109
|
declare const receivedAssetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
110
|
-
value: z.ZodBigInt
|
|
110
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
111
111
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
112
112
|
token: z.ZodObject<{
|
|
113
113
|
chainId: z.ZodNumber;
|
|
114
|
-
address: z.
|
|
114
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
115
115
|
symbol: z.ZodString;
|
|
116
116
|
name: z.ZodString;
|
|
117
117
|
decimals: z.ZodNumber;
|
|
@@ -119,35 +119,35 @@ declare const receivedAssetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
119
119
|
}, z.core.$strip>;
|
|
120
120
|
isDelayed: z.ZodLiteral<false>;
|
|
121
121
|
}, z.core.$strip>, z.ZodObject<{
|
|
122
|
-
value: z.ZodBigInt
|
|
122
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
123
123
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
124
124
|
token: z.ZodObject<{
|
|
125
125
|
chainId: z.ZodNumber;
|
|
126
|
-
address: z.
|
|
126
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
127
127
|
symbol: z.ZodString;
|
|
128
128
|
name: z.ZodString;
|
|
129
129
|
decimals: z.ZodNumber;
|
|
130
130
|
assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
|
|
131
131
|
}, z.core.$strip>;
|
|
132
132
|
isDelayed: z.ZodLiteral<true>;
|
|
133
|
-
redeemer: z.ZodOptional<z.
|
|
133
|
+
redeemer: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>>;
|
|
134
134
|
claimableAt: z.ZodOptional<z.ZodNumber>;
|
|
135
135
|
}, z.core.$strip>], "isDelayed">;
|
|
136
136
|
/**
|
|
137
137
|
* {@link LiquidationApproval}
|
|
138
138
|
**/
|
|
139
139
|
declare const liquidationApprovalSchema: z.ZodObject<{
|
|
140
|
-
value: z.ZodBigInt
|
|
140
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
141
141
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
142
142
|
token: z.ZodObject<{
|
|
143
143
|
chainId: z.ZodNumber;
|
|
144
|
-
address: z.
|
|
144
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
145
145
|
symbol: z.ZodString;
|
|
146
146
|
name: z.ZodString;
|
|
147
147
|
decimals: z.ZodNumber;
|
|
148
148
|
assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
|
|
149
149
|
}, z.core.$strip>;
|
|
150
|
-
spender: z.
|
|
150
|
+
spender: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
151
151
|
}, z.core.$strip>;
|
|
152
152
|
/**
|
|
153
153
|
* {@link LiquidationPosition}
|
|
@@ -158,18 +158,18 @@ declare const liquidationPositionSchema: z.ZodObject<{
|
|
|
158
158
|
chainId: z.ZodNumber;
|
|
159
159
|
sourceToken: z.ZodObject<{
|
|
160
160
|
chainId: z.ZodNumber;
|
|
161
|
-
address: z.
|
|
161
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
162
162
|
symbol: z.ZodString;
|
|
163
163
|
name: z.ZodString;
|
|
164
164
|
decimals: z.ZodNumber;
|
|
165
165
|
assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
|
|
166
166
|
}, z.core.$strip>;
|
|
167
167
|
output: z.ZodObject<{
|
|
168
|
-
value: z.ZodBigInt
|
|
168
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
169
169
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
170
170
|
token: z.ZodObject<{
|
|
171
171
|
chainId: z.ZodNumber;
|
|
172
|
-
address: z.
|
|
172
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
173
173
|
symbol: z.ZodString;
|
|
174
174
|
name: z.ZodString;
|
|
175
175
|
decimals: z.ZodNumber;
|
|
@@ -178,33 +178,33 @@ declare const liquidationPositionSchema: z.ZodObject<{
|
|
|
178
178
|
}, z.core.$strip>;
|
|
179
179
|
claimableAt: z.ZodOptional<z.ZodNumber>;
|
|
180
180
|
claimTx: z.ZodOptional<z.ZodObject<{
|
|
181
|
-
to: z.
|
|
182
|
-
callData: z.
|
|
183
|
-
value: z.ZodOptional<z.ZodBigInt
|
|
181
|
+
to: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
182
|
+
callData: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
183
|
+
value: z.ZodOptional<z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>>;
|
|
184
184
|
}, z.core.$strip>>;
|
|
185
|
-
redeemer: z.ZodOptional<z.
|
|
185
|
+
redeemer: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>>;
|
|
186
186
|
}, z.core.$strip>;
|
|
187
187
|
/**
|
|
188
188
|
* {@link LiquidationDetails}
|
|
189
189
|
**/
|
|
190
190
|
declare const liquidationDetailsSchema: z.ZodObject<{
|
|
191
191
|
chainId: z.ZodNumber;
|
|
192
|
-
creditAccount: z.
|
|
193
|
-
creditManager: z.
|
|
192
|
+
creditAccount: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
193
|
+
creditManager: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
194
194
|
asset: z.ZodObject<{
|
|
195
195
|
chainId: z.ZodNumber;
|
|
196
|
-
address: z.
|
|
196
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
197
197
|
symbol: z.ZodString;
|
|
198
198
|
name: z.ZodString;
|
|
199
199
|
decimals: z.ZodNumber;
|
|
200
200
|
assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
|
|
201
201
|
}, z.core.$strip>;
|
|
202
202
|
totalValue: z.ZodObject<{
|
|
203
|
-
value: z.ZodBigInt
|
|
203
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
204
204
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
205
205
|
token: z.ZodObject<{
|
|
206
206
|
chainId: z.ZodNumber;
|
|
207
|
-
address: z.
|
|
207
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
208
208
|
symbol: z.ZodString;
|
|
209
209
|
name: z.ZodString;
|
|
210
210
|
decimals: z.ZodNumber;
|
|
@@ -212,11 +212,11 @@ declare const liquidationDetailsSchema: z.ZodObject<{
|
|
|
212
212
|
}, z.core.$strip>;
|
|
213
213
|
}, z.core.$strip>;
|
|
214
214
|
estimatedProfit: z.ZodObject<{
|
|
215
|
-
value: z.ZodBigInt
|
|
215
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
216
216
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
217
217
|
token: z.ZodObject<{
|
|
218
218
|
chainId: z.ZodNumber;
|
|
219
|
-
address: z.
|
|
219
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
220
220
|
symbol: z.ZodString;
|
|
221
221
|
name: z.ZodString;
|
|
222
222
|
decimals: z.ZodNumber;
|
|
@@ -227,11 +227,11 @@ declare const liquidationDetailsSchema: z.ZodObject<{
|
|
|
227
227
|
paused: z.ZodBoolean;
|
|
228
228
|
rwa: z.ZodBoolean;
|
|
229
229
|
repaymentAmount: z.ZodObject<{
|
|
230
|
-
value: z.ZodBigInt
|
|
230
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
231
231
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
232
232
|
token: z.ZodObject<{
|
|
233
233
|
chainId: z.ZodNumber;
|
|
234
|
-
address: z.
|
|
234
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
235
235
|
symbol: z.ZodString;
|
|
236
236
|
name: z.ZodString;
|
|
237
237
|
decimals: z.ZodNumber;
|
|
@@ -239,11 +239,11 @@ declare const liquidationDetailsSchema: z.ZodObject<{
|
|
|
239
239
|
}, z.core.$strip>;
|
|
240
240
|
}, z.core.$strip>;
|
|
241
241
|
receivedAssets: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
242
|
-
value: z.ZodBigInt
|
|
242
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
243
243
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
244
244
|
token: z.ZodObject<{
|
|
245
245
|
chainId: z.ZodNumber;
|
|
246
|
-
address: z.
|
|
246
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
247
247
|
symbol: z.ZodString;
|
|
248
248
|
name: z.ZodString;
|
|
249
249
|
decimals: z.ZodNumber;
|
|
@@ -251,18 +251,18 @@ declare const liquidationDetailsSchema: z.ZodObject<{
|
|
|
251
251
|
}, z.core.$strip>;
|
|
252
252
|
isDelayed: z.ZodLiteral<false>;
|
|
253
253
|
}, z.core.$strip>, z.ZodObject<{
|
|
254
|
-
value: z.ZodBigInt
|
|
254
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
255
255
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
256
256
|
token: z.ZodObject<{
|
|
257
257
|
chainId: z.ZodNumber;
|
|
258
|
-
address: z.
|
|
258
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
259
259
|
symbol: z.ZodString;
|
|
260
260
|
name: z.ZodString;
|
|
261
261
|
decimals: z.ZodNumber;
|
|
262
262
|
assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
|
|
263
263
|
}, z.core.$strip>;
|
|
264
264
|
isDelayed: z.ZodLiteral<true>;
|
|
265
|
-
redeemer: z.ZodOptional<z.
|
|
265
|
+
redeemer: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>>;
|
|
266
266
|
claimableAt: z.ZodOptional<z.ZodNumber>;
|
|
267
267
|
}, z.core.$strip>], "isDelayed">>;
|
|
268
268
|
isLiquidatorEligible: z.ZodBoolean;
|
|
@@ -270,24 +270,24 @@ declare const liquidationDetailsSchema: z.ZodObject<{
|
|
|
270
270
|
kycProtocol: z.ZodOptional<z.ZodString>;
|
|
271
271
|
kycToken: z.ZodOptional<z.ZodObject<{
|
|
272
272
|
chainId: z.ZodNumber;
|
|
273
|
-
address: z.
|
|
273
|
+
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
274
274
|
symbol: z.ZodString;
|
|
275
275
|
name: z.ZodString;
|
|
276
276
|
decimals: z.ZodNumber;
|
|
277
277
|
assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
|
|
278
278
|
}, z.core.$strip>>;
|
|
279
279
|
approve: z.ZodOptional<z.ZodObject<{
|
|
280
|
-
value: z.ZodBigInt
|
|
280
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
281
281
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
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;
|
|
288
288
|
assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
|
|
289
289
|
}, z.core.$strip>;
|
|
290
|
-
spender: z.
|
|
290
|
+
spender: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
291
291
|
}, z.core.$strip>>;
|
|
292
292
|
}, z.core.$strip>;
|
|
293
293
|
//#endregion
|