@gearbox-protocol/liquidator-v2-config 9.2.1 → 9.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1255 -1249
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +502 -541
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,926 +1,931 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
import { AccountsPlugin } from '@gearbox-protocol/sdk/plugins/accounts';
|
|
8
|
-
|
|
1
|
+
import { Address, Transport } from "viem";
|
|
2
|
+
import { CensoredString, ClientWhitelistItem } from "@gearbox-protocol/cli-utils";
|
|
3
|
+
import { z } from "zod/v4";
|
|
4
|
+
import { Curator, GearboxState, MultiCall, PriceUpdate, RawTx } from "@gearbox-protocol/sdk";
|
|
5
|
+
import { AccountsPlugin } from "@gearbox-protocol/sdk/plugins/accounts";
|
|
6
|
+
//#region src/batch-liquidator.d.ts
|
|
9
7
|
declare const BatchLiquidatorSchema: z.ZodObject<{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
8
|
+
network: z.ZodEnum<{
|
|
9
|
+
Arbitrum: "Arbitrum";
|
|
10
|
+
Avalanche: "Avalanche";
|
|
11
|
+
BNB: "BNB";
|
|
12
|
+
Base: "Base";
|
|
13
|
+
Berachain: "Berachain";
|
|
14
|
+
Etherlink: "Etherlink";
|
|
15
|
+
Hemi: "Hemi";
|
|
16
|
+
Lisk: "Lisk";
|
|
17
|
+
Mainnet: "Mainnet";
|
|
18
|
+
MegaETH: "MegaETH";
|
|
19
|
+
Monad: "Monad";
|
|
20
|
+
Optimism: "Optimism";
|
|
21
|
+
Plasma: "Plasma";
|
|
22
|
+
Somnia: "Somnia";
|
|
23
|
+
Sonic: "Sonic";
|
|
24
|
+
WorldChain: "WorldChain";
|
|
25
|
+
}>;
|
|
26
|
+
jsonRpcProviders: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodURL, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredURL, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredURL[] | undefined, import("@gearbox-protocol/cli-utils").CensoredURL[]>>>;
|
|
27
|
+
enabledProviders: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodEnum<{
|
|
28
|
+
alchemy: "alchemy";
|
|
29
|
+
ankr: "ankr";
|
|
30
|
+
custom: "custom";
|
|
31
|
+
drpc: "drpc";
|
|
32
|
+
erpc: "erpc";
|
|
33
|
+
thirdweb: "thirdweb";
|
|
34
|
+
}>>>>;
|
|
35
|
+
alchemyKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
36
|
+
drpcKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
37
|
+
ankrKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
38
|
+
thirdwebKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
39
|
+
erpcProjectId: z.ZodOptional<z.ZodString>;
|
|
40
|
+
erpcUrl: z.ZodDefault<z.ZodURL>;
|
|
41
|
+
jsonRpcTimeout: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
42
|
+
notifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
43
|
+
type: z.ZodLiteral<"slack">;
|
|
44
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
45
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
46
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
47
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
48
|
+
type: z.ZodLiteral<"telegram">;
|
|
49
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
50
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
51
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>>;
|
|
52
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
53
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
54
|
+
}, z.core.$strip>, ...(z.ZodObject<{
|
|
55
|
+
type: z.ZodLiteral<"slack">;
|
|
56
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
57
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
58
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
59
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
60
|
+
type: z.ZodLiteral<"telegram">;
|
|
61
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
62
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
63
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>>;
|
|
64
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
65
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
66
|
+
}, z.core.$strip>)[]], "type">>>>;
|
|
67
|
+
addressProvider: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
68
|
+
marketConfigurators: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
69
|
+
rwaFactories: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
70
|
+
appName: z.ZodDefault<z.ZodString>;
|
|
71
|
+
port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
72
|
+
whitelistUrl: z.ZodOptional<z.ZodURL>;
|
|
73
|
+
hardWhitelist: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
74
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
75
|
+
reason: z.ZodDefault<z.ZodString>;
|
|
76
|
+
contractType: z.ZodOptional<z.ZodString>;
|
|
77
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
}, z.core.$strip>>>;
|
|
79
|
+
debugAccount: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
80
|
+
debugManager: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
81
|
+
castBin: z.ZodOptional<z.ZodString>;
|
|
82
|
+
castTimeout: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
83
|
+
staleBlockThreshold: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
84
|
+
logsPageSize: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
85
|
+
pollingInterval: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
86
|
+
privateKey: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<`0x${string}`>, `0x${string}`>>>;
|
|
87
|
+
liquidatorAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
88
|
+
minBalanceGas: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
89
|
+
hfThreshold: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
90
|
+
numSplits: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
91
|
+
optimistic: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
92
|
+
useProductionScanner: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
93
|
+
optimisticTimestamp: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
94
|
+
failOnMissingFeeds: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
95
|
+
gasLimit: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
96
|
+
dryRun: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
97
|
+
redstoneGateways: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodURL>>, z.ZodTransform<string[] | undefined, string[]>>>;
|
|
98
|
+
compressorBatchSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
99
|
+
slippage: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
100
|
+
updateReservePrices: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>>;
|
|
101
|
+
keepAssets: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
102
|
+
premiumReceiver: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
103
|
+
outDir: z.ZodDefault<z.ZodString>;
|
|
104
|
+
outEndpoint: z.ZodOptional<z.ZodURL>;
|
|
105
|
+
outHeaders: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>;
|
|
106
|
+
outS3Bucket: z.ZodOptional<z.ZodString>;
|
|
107
|
+
outS3Prefix: z.ZodDefault<z.ZodString>;
|
|
108
|
+
outFileName: z.ZodOptional<z.ZodString>;
|
|
109
|
+
liquidationMode: z.ZodLiteral<"batch">;
|
|
110
|
+
batchSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
113
111
|
}, z.core.$strip>;
|
|
114
112
|
type BatchLiquidatorSchema = z.infer<typeof BatchLiquidatorSchema>;
|
|
115
|
-
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/common.d.ts
|
|
116
115
|
declare const CommonSchema: z.ZodObject<{
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
116
|
+
network: z.ZodEnum<{
|
|
117
|
+
Arbitrum: "Arbitrum";
|
|
118
|
+
Avalanche: "Avalanche";
|
|
119
|
+
BNB: "BNB";
|
|
120
|
+
Base: "Base";
|
|
121
|
+
Berachain: "Berachain";
|
|
122
|
+
Etherlink: "Etherlink";
|
|
123
|
+
Hemi: "Hemi";
|
|
124
|
+
Lisk: "Lisk";
|
|
125
|
+
Mainnet: "Mainnet";
|
|
126
|
+
MegaETH: "MegaETH";
|
|
127
|
+
Monad: "Monad";
|
|
128
|
+
Optimism: "Optimism";
|
|
129
|
+
Plasma: "Plasma";
|
|
130
|
+
Somnia: "Somnia";
|
|
131
|
+
Sonic: "Sonic";
|
|
132
|
+
WorldChain: "WorldChain";
|
|
133
|
+
}>;
|
|
134
|
+
jsonRpcProviders: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodURL, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredURL, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredURL[] | undefined, import("@gearbox-protocol/cli-utils").CensoredURL[]>>>;
|
|
135
|
+
enabledProviders: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodEnum<{
|
|
136
|
+
alchemy: "alchemy";
|
|
137
|
+
ankr: "ankr";
|
|
138
|
+
custom: "custom";
|
|
139
|
+
drpc: "drpc";
|
|
140
|
+
erpc: "erpc";
|
|
141
|
+
thirdweb: "thirdweb";
|
|
142
|
+
}>>>>;
|
|
143
|
+
alchemyKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<CensoredString<string>, string>>>>, z.ZodTransform<CensoredString<string>[] | undefined, CensoredString<string>[]>>>;
|
|
144
|
+
drpcKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<CensoredString<string>, string>>>>, z.ZodTransform<CensoredString<string>[] | undefined, CensoredString<string>[]>>>;
|
|
145
|
+
ankrKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<CensoredString<string>, string>>>>, z.ZodTransform<CensoredString<string>[] | undefined, CensoredString<string>[]>>>;
|
|
146
|
+
thirdwebKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<CensoredString<string>, string>>>>, z.ZodTransform<CensoredString<string>[] | undefined, CensoredString<string>[]>>>;
|
|
147
|
+
erpcProjectId: z.ZodOptional<z.ZodString>;
|
|
148
|
+
erpcUrl: z.ZodDefault<z.ZodURL>;
|
|
149
|
+
jsonRpcTimeout: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
150
|
+
notifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
151
|
+
type: z.ZodLiteral<"slack">;
|
|
152
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<CensoredString<string>, CensoredString<string>>]>, z.ZodTransform<CensoredString<string>, string | CensoredString<string>>>;
|
|
153
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
154
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
155
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
156
|
+
type: z.ZodLiteral<"telegram">;
|
|
157
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<CensoredString<string>, CensoredString<string>>]>, z.ZodTransform<CensoredString<string>, string | CensoredString<string>>>;
|
|
158
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<CensoredString<string>, CensoredString<string>>]>, z.ZodTransform<CensoredString<string>, string | CensoredString<string>>>;
|
|
159
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<CensoredString<string>, CensoredString<string>>]>, z.ZodTransform<CensoredString<string>, string | CensoredString<string>>>>;
|
|
160
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
161
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
162
|
+
}, z.core.$strip>, ...(z.ZodObject<{
|
|
163
|
+
type: z.ZodLiteral<"slack">;
|
|
164
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<CensoredString<string>, CensoredString<string>>]>, z.ZodTransform<CensoredString<string>, string | CensoredString<string>>>;
|
|
165
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
166
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
167
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
168
|
+
type: z.ZodLiteral<"telegram">;
|
|
169
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<CensoredString<string>, CensoredString<string>>]>, z.ZodTransform<CensoredString<string>, string | CensoredString<string>>>;
|
|
170
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<CensoredString<string>, CensoredString<string>>]>, z.ZodTransform<CensoredString<string>, string | CensoredString<string>>>;
|
|
171
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<CensoredString<string>, CensoredString<string>>]>, z.ZodTransform<CensoredString<string>, string | CensoredString<string>>>>;
|
|
172
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
173
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
174
|
+
}, z.core.$strip>)[]], "type">>>>;
|
|
175
|
+
addressProvider: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
176
|
+
marketConfigurators: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
177
|
+
rwaFactories: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
178
|
+
appName: z.ZodDefault<z.ZodString>;
|
|
179
|
+
port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
180
|
+
whitelistUrl: z.ZodOptional<z.ZodURL>;
|
|
181
|
+
hardWhitelist: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
182
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
183
|
+
reason: z.ZodDefault<z.ZodString>;
|
|
184
|
+
contractType: z.ZodOptional<z.ZodString>;
|
|
185
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
}, z.core.$strip>>>;
|
|
187
|
+
debugAccount: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
188
|
+
debugManager: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
189
|
+
castBin: z.ZodOptional<z.ZodString>;
|
|
190
|
+
castTimeout: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
191
|
+
staleBlockThreshold: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
192
|
+
logsPageSize: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
193
|
+
pollingInterval: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
194
|
+
privateKey: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>, z.ZodTransform<CensoredString<`0x${string}`>, `0x${string}`>>>;
|
|
195
|
+
liquidatorAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
196
|
+
minBalanceGas: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
197
|
+
hfThreshold: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
198
|
+
numSplits: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
199
|
+
liquidationMode: z.ZodDefault<z.ZodEnum<{
|
|
200
|
+
batch: "batch";
|
|
201
|
+
deleverage: "deleverage";
|
|
202
|
+
full: "full";
|
|
203
|
+
partial: "partial";
|
|
204
|
+
}>>;
|
|
205
|
+
optimistic: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
206
|
+
useProductionScanner: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
207
|
+
optimisticTimestamp: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
208
|
+
failOnMissingFeeds: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
209
|
+
gasLimit: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
210
|
+
dryRun: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
211
|
+
redstoneGateways: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodURL>>, z.ZodTransform<string[] | undefined, string[]>>>;
|
|
212
|
+
compressorBatchSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
213
|
+
slippage: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
214
|
+
updateReservePrices: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>>;
|
|
215
|
+
keepAssets: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
216
|
+
premiumReceiver: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
217
|
+
outDir: z.ZodDefault<z.ZodString>;
|
|
218
|
+
outEndpoint: z.ZodOptional<z.ZodURL>;
|
|
219
|
+
outHeaders: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<CensoredString<string>, string>>;
|
|
220
|
+
outS3Bucket: z.ZodOptional<z.ZodString>;
|
|
221
|
+
outS3Prefix: z.ZodDefault<z.ZodString>;
|
|
222
|
+
outFileName: z.ZodOptional<z.ZodString>;
|
|
224
223
|
}, z.core.$strip>;
|
|
225
224
|
type CommonSchema = z.infer<typeof CommonSchema>;
|
|
226
|
-
|
|
225
|
+
//#endregion
|
|
226
|
+
//#region src/schema.d.ts
|
|
227
227
|
declare const ConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
228
|
+
network: z.ZodEnum<{
|
|
229
|
+
Arbitrum: "Arbitrum";
|
|
230
|
+
Avalanche: "Avalanche";
|
|
231
|
+
BNB: "BNB";
|
|
232
|
+
Base: "Base";
|
|
233
|
+
Berachain: "Berachain";
|
|
234
|
+
Etherlink: "Etherlink";
|
|
235
|
+
Hemi: "Hemi";
|
|
236
|
+
Lisk: "Lisk";
|
|
237
|
+
Mainnet: "Mainnet";
|
|
238
|
+
MegaETH: "MegaETH";
|
|
239
|
+
Monad: "Monad";
|
|
240
|
+
Optimism: "Optimism";
|
|
241
|
+
Plasma: "Plasma";
|
|
242
|
+
Somnia: "Somnia";
|
|
243
|
+
Sonic: "Sonic";
|
|
244
|
+
WorldChain: "WorldChain";
|
|
245
|
+
}>;
|
|
246
|
+
jsonRpcProviders: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodURL, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredURL, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredURL[] | undefined, import("@gearbox-protocol/cli-utils").CensoredURL[]>>>;
|
|
247
|
+
enabledProviders: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodEnum<{
|
|
248
|
+
alchemy: "alchemy";
|
|
249
|
+
ankr: "ankr";
|
|
250
|
+
custom: "custom";
|
|
251
|
+
drpc: "drpc";
|
|
252
|
+
erpc: "erpc";
|
|
253
|
+
thirdweb: "thirdweb";
|
|
254
|
+
}>>>>;
|
|
255
|
+
alchemyKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
256
|
+
drpcKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
257
|
+
ankrKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
258
|
+
thirdwebKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
259
|
+
erpcProjectId: z.ZodOptional<z.ZodString>;
|
|
260
|
+
erpcUrl: z.ZodDefault<z.ZodURL>;
|
|
261
|
+
jsonRpcTimeout: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
262
|
+
notifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
263
|
+
type: z.ZodLiteral<"slack">;
|
|
264
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
265
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
266
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
267
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
268
|
+
type: z.ZodLiteral<"telegram">;
|
|
269
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
270
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
271
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>>;
|
|
272
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
273
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
274
|
+
}, z.core.$strip>, ...(z.ZodObject<{
|
|
275
|
+
type: z.ZodLiteral<"slack">;
|
|
276
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
277
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
278
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
279
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
280
|
+
type: z.ZodLiteral<"telegram">;
|
|
281
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
282
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
283
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>>;
|
|
284
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
285
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
286
|
+
}, z.core.$strip>)[]], "type">>>>;
|
|
287
|
+
addressProvider: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
288
|
+
marketConfigurators: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
289
|
+
rwaFactories: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
290
|
+
appName: z.ZodDefault<z.ZodString>;
|
|
291
|
+
port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
292
|
+
whitelistUrl: z.ZodOptional<z.ZodURL>;
|
|
293
|
+
hardWhitelist: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
294
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
295
|
+
reason: z.ZodDefault<z.ZodString>;
|
|
296
|
+
contractType: z.ZodOptional<z.ZodString>;
|
|
297
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
298
|
+
}, z.core.$strip>>>;
|
|
299
|
+
debugAccount: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
300
|
+
debugManager: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
301
|
+
castBin: z.ZodOptional<z.ZodString>;
|
|
302
|
+
castTimeout: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
303
|
+
staleBlockThreshold: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
304
|
+
logsPageSize: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
305
|
+
pollingInterval: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
306
|
+
privateKey: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<`0x${string}`>, `0x${string}`>>>;
|
|
307
|
+
liquidatorAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
308
|
+
minBalanceGas: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
309
|
+
hfThreshold: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
310
|
+
numSplits: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
311
|
+
optimistic: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
312
|
+
useProductionScanner: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
313
|
+
optimisticTimestamp: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
314
|
+
failOnMissingFeeds: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
315
|
+
gasLimit: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
316
|
+
dryRun: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
317
|
+
redstoneGateways: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodURL>>, z.ZodTransform<string[] | undefined, string[]>>>;
|
|
318
|
+
compressorBatchSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
319
|
+
slippage: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
320
|
+
updateReservePrices: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>>;
|
|
321
|
+
keepAssets: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
322
|
+
premiumReceiver: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
323
|
+
outDir: z.ZodDefault<z.ZodString>;
|
|
324
|
+
outEndpoint: z.ZodOptional<z.ZodURL>;
|
|
325
|
+
outHeaders: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>;
|
|
326
|
+
outS3Bucket: z.ZodOptional<z.ZodString>;
|
|
327
|
+
outS3Prefix: z.ZodDefault<z.ZodString>;
|
|
328
|
+
outFileName: z.ZodOptional<z.ZodString>;
|
|
329
|
+
liquidationMode: z.ZodLiteral<"full">;
|
|
330
|
+
debtPolicy: z.ZodDefault<z.ZodEnum<{
|
|
331
|
+
"debt-expired": "debt-expired";
|
|
332
|
+
"debt-only": "debt-only";
|
|
333
|
+
full: "full";
|
|
334
|
+
}>>;
|
|
335
|
+
strategy: z.ZodDefault<z.ZodEnum<{
|
|
336
|
+
auto: "auto";
|
|
337
|
+
full: "full";
|
|
338
|
+
loss: "loss";
|
|
339
|
+
rwa: "rwa";
|
|
340
|
+
}>>;
|
|
341
341
|
}, z.core.$strip>, z.ZodObject<{
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
342
|
+
network: z.ZodEnum<{
|
|
343
|
+
Arbitrum: "Arbitrum";
|
|
344
|
+
Avalanche: "Avalanche";
|
|
345
|
+
BNB: "BNB";
|
|
346
|
+
Base: "Base";
|
|
347
|
+
Berachain: "Berachain";
|
|
348
|
+
Etherlink: "Etherlink";
|
|
349
|
+
Hemi: "Hemi";
|
|
350
|
+
Lisk: "Lisk";
|
|
351
|
+
Mainnet: "Mainnet";
|
|
352
|
+
MegaETH: "MegaETH";
|
|
353
|
+
Monad: "Monad";
|
|
354
|
+
Optimism: "Optimism";
|
|
355
|
+
Plasma: "Plasma";
|
|
356
|
+
Somnia: "Somnia";
|
|
357
|
+
Sonic: "Sonic";
|
|
358
|
+
WorldChain: "WorldChain";
|
|
359
|
+
}>;
|
|
360
|
+
jsonRpcProviders: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodURL, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredURL, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredURL[] | undefined, import("@gearbox-protocol/cli-utils").CensoredURL[]>>>;
|
|
361
|
+
enabledProviders: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodEnum<{
|
|
362
|
+
alchemy: "alchemy";
|
|
363
|
+
ankr: "ankr";
|
|
364
|
+
custom: "custom";
|
|
365
|
+
drpc: "drpc";
|
|
366
|
+
erpc: "erpc";
|
|
367
|
+
thirdweb: "thirdweb";
|
|
368
|
+
}>>>>;
|
|
369
|
+
alchemyKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
370
|
+
drpcKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
371
|
+
ankrKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
372
|
+
thirdwebKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
373
|
+
erpcProjectId: z.ZodOptional<z.ZodString>;
|
|
374
|
+
erpcUrl: z.ZodDefault<z.ZodURL>;
|
|
375
|
+
jsonRpcTimeout: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
376
|
+
notifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
377
|
+
type: z.ZodLiteral<"slack">;
|
|
378
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
379
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
380
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
381
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
382
|
+
type: z.ZodLiteral<"telegram">;
|
|
383
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
384
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
385
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>>;
|
|
386
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
387
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
388
|
+
}, z.core.$strip>, ...(z.ZodObject<{
|
|
389
|
+
type: z.ZodLiteral<"slack">;
|
|
390
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
391
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
392
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
393
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
394
|
+
type: z.ZodLiteral<"telegram">;
|
|
395
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
396
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
397
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>>;
|
|
398
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
399
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
400
|
+
}, z.core.$strip>)[]], "type">>>>;
|
|
401
|
+
addressProvider: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
402
|
+
marketConfigurators: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
403
|
+
rwaFactories: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
404
|
+
appName: z.ZodDefault<z.ZodString>;
|
|
405
|
+
port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
406
|
+
whitelistUrl: z.ZodOptional<z.ZodURL>;
|
|
407
|
+
hardWhitelist: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
408
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
409
|
+
reason: z.ZodDefault<z.ZodString>;
|
|
410
|
+
contractType: z.ZodOptional<z.ZodString>;
|
|
411
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
412
|
+
}, z.core.$strip>>>;
|
|
413
|
+
debugAccount: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
414
|
+
debugManager: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
415
|
+
castBin: z.ZodOptional<z.ZodString>;
|
|
416
|
+
castTimeout: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
417
|
+
staleBlockThreshold: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
418
|
+
logsPageSize: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
419
|
+
pollingInterval: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
420
|
+
privateKey: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<`0x${string}`>, `0x${string}`>>>;
|
|
421
|
+
liquidatorAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
422
|
+
minBalanceGas: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
423
|
+
hfThreshold: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
424
|
+
numSplits: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
425
|
+
optimistic: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
426
|
+
useProductionScanner: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
427
|
+
optimisticTimestamp: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
428
|
+
failOnMissingFeeds: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
429
|
+
gasLimit: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
430
|
+
dryRun: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
431
|
+
redstoneGateways: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodURL>>, z.ZodTransform<string[] | undefined, string[]>>>;
|
|
432
|
+
compressorBatchSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
433
|
+
slippage: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
434
|
+
updateReservePrices: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>>;
|
|
435
|
+
keepAssets: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
436
|
+
premiumReceiver: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
437
|
+
outDir: z.ZodDefault<z.ZodString>;
|
|
438
|
+
outEndpoint: z.ZodOptional<z.ZodURL>;
|
|
439
|
+
outHeaders: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>;
|
|
440
|
+
outS3Bucket: z.ZodOptional<z.ZodString>;
|
|
441
|
+
outS3Prefix: z.ZodDefault<z.ZodString>;
|
|
442
|
+
outFileName: z.ZodOptional<z.ZodString>;
|
|
443
|
+
liquidationMode: z.ZodLiteral<"partial">;
|
|
444
|
+
partialFallback: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
445
|
+
targetPartialHF: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
446
|
+
calculatePartialHF: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
447
447
|
}, z.core.$strip>, z.ZodObject<{
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
448
|
+
network: z.ZodEnum<{
|
|
449
|
+
Arbitrum: "Arbitrum";
|
|
450
|
+
Avalanche: "Avalanche";
|
|
451
|
+
BNB: "BNB";
|
|
452
|
+
Base: "Base";
|
|
453
|
+
Berachain: "Berachain";
|
|
454
|
+
Etherlink: "Etherlink";
|
|
455
|
+
Hemi: "Hemi";
|
|
456
|
+
Lisk: "Lisk";
|
|
457
|
+
Mainnet: "Mainnet";
|
|
458
|
+
MegaETH: "MegaETH";
|
|
459
|
+
Monad: "Monad";
|
|
460
|
+
Optimism: "Optimism";
|
|
461
|
+
Plasma: "Plasma";
|
|
462
|
+
Somnia: "Somnia";
|
|
463
|
+
Sonic: "Sonic";
|
|
464
|
+
WorldChain: "WorldChain";
|
|
465
|
+
}>;
|
|
466
|
+
jsonRpcProviders: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodURL, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredURL, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredURL[] | undefined, import("@gearbox-protocol/cli-utils").CensoredURL[]>>>;
|
|
467
|
+
enabledProviders: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodEnum<{
|
|
468
|
+
alchemy: "alchemy";
|
|
469
|
+
ankr: "ankr";
|
|
470
|
+
custom: "custom";
|
|
471
|
+
drpc: "drpc";
|
|
472
|
+
erpc: "erpc";
|
|
473
|
+
thirdweb: "thirdweb";
|
|
474
|
+
}>>>>;
|
|
475
|
+
alchemyKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
476
|
+
drpcKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
477
|
+
ankrKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
478
|
+
thirdwebKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
479
|
+
erpcProjectId: z.ZodOptional<z.ZodString>;
|
|
480
|
+
erpcUrl: z.ZodDefault<z.ZodURL>;
|
|
481
|
+
jsonRpcTimeout: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
482
|
+
notifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
483
|
+
type: z.ZodLiteral<"slack">;
|
|
484
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
485
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
486
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
487
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
488
|
+
type: z.ZodLiteral<"telegram">;
|
|
489
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
490
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
491
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>>;
|
|
492
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
493
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
494
|
+
}, z.core.$strip>, ...(z.ZodObject<{
|
|
495
|
+
type: z.ZodLiteral<"slack">;
|
|
496
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
497
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
498
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
499
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
500
|
+
type: z.ZodLiteral<"telegram">;
|
|
501
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
502
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
503
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>>;
|
|
504
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
505
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
506
|
+
}, z.core.$strip>)[]], "type">>>>;
|
|
507
|
+
addressProvider: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
508
|
+
marketConfigurators: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
509
|
+
rwaFactories: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
510
|
+
appName: z.ZodDefault<z.ZodString>;
|
|
511
|
+
port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
512
|
+
whitelistUrl: z.ZodOptional<z.ZodURL>;
|
|
513
|
+
hardWhitelist: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
514
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
515
|
+
reason: z.ZodDefault<z.ZodString>;
|
|
516
|
+
contractType: z.ZodOptional<z.ZodString>;
|
|
517
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
518
|
+
}, z.core.$strip>>>;
|
|
519
|
+
debugAccount: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
520
|
+
debugManager: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
521
|
+
castBin: z.ZodOptional<z.ZodString>;
|
|
522
|
+
castTimeout: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
523
|
+
staleBlockThreshold: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
524
|
+
logsPageSize: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
525
|
+
pollingInterval: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
526
|
+
privateKey: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<`0x${string}`>, `0x${string}`>>>;
|
|
527
|
+
liquidatorAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
528
|
+
minBalanceGas: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
529
|
+
hfThreshold: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
530
|
+
numSplits: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
531
|
+
optimistic: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
532
|
+
useProductionScanner: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
533
|
+
optimisticTimestamp: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
534
|
+
failOnMissingFeeds: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
535
|
+
gasLimit: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
536
|
+
dryRun: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
537
|
+
redstoneGateways: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodURL>>, z.ZodTransform<string[] | undefined, string[]>>>;
|
|
538
|
+
compressorBatchSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
539
|
+
slippage: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
540
|
+
updateReservePrices: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>>;
|
|
541
|
+
keepAssets: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
542
|
+
premiumReceiver: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
543
|
+
outDir: z.ZodDefault<z.ZodString>;
|
|
544
|
+
outEndpoint: z.ZodOptional<z.ZodURL>;
|
|
545
|
+
outHeaders: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>;
|
|
546
|
+
outS3Bucket: z.ZodOptional<z.ZodString>;
|
|
547
|
+
outS3Prefix: z.ZodDefault<z.ZodString>;
|
|
548
|
+
outFileName: z.ZodOptional<z.ZodString>;
|
|
549
|
+
liquidationMode: z.ZodLiteral<"batch">;
|
|
550
|
+
batchSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
551
551
|
}, z.core.$strip>, z.ZodObject<{
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
552
|
+
network: z.ZodEnum<{
|
|
553
|
+
Arbitrum: "Arbitrum";
|
|
554
|
+
Avalanche: "Avalanche";
|
|
555
|
+
BNB: "BNB";
|
|
556
|
+
Base: "Base";
|
|
557
|
+
Berachain: "Berachain";
|
|
558
|
+
Etherlink: "Etherlink";
|
|
559
|
+
Hemi: "Hemi";
|
|
560
|
+
Lisk: "Lisk";
|
|
561
|
+
Mainnet: "Mainnet";
|
|
562
|
+
MegaETH: "MegaETH";
|
|
563
|
+
Monad: "Monad";
|
|
564
|
+
Optimism: "Optimism";
|
|
565
|
+
Plasma: "Plasma";
|
|
566
|
+
Somnia: "Somnia";
|
|
567
|
+
Sonic: "Sonic";
|
|
568
|
+
WorldChain: "WorldChain";
|
|
569
|
+
}>;
|
|
570
|
+
jsonRpcProviders: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodURL, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredURL, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredURL[] | undefined, import("@gearbox-protocol/cli-utils").CensoredURL[]>>>;
|
|
571
|
+
enabledProviders: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodEnum<{
|
|
572
|
+
alchemy: "alchemy";
|
|
573
|
+
ankr: "ankr";
|
|
574
|
+
custom: "custom";
|
|
575
|
+
drpc: "drpc";
|
|
576
|
+
erpc: "erpc";
|
|
577
|
+
thirdweb: "thirdweb";
|
|
578
|
+
}>>>>;
|
|
579
|
+
alchemyKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
580
|
+
drpcKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
581
|
+
ankrKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
582
|
+
thirdwebKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
583
|
+
erpcProjectId: z.ZodOptional<z.ZodString>;
|
|
584
|
+
erpcUrl: z.ZodDefault<z.ZodURL>;
|
|
585
|
+
jsonRpcTimeout: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
586
|
+
notifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
587
|
+
type: z.ZodLiteral<"slack">;
|
|
588
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
589
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
590
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
591
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
592
|
+
type: z.ZodLiteral<"telegram">;
|
|
593
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
594
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
595
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>>;
|
|
596
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
597
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
598
|
+
}, z.core.$strip>, ...(z.ZodObject<{
|
|
599
|
+
type: z.ZodLiteral<"slack">;
|
|
600
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
601
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
602
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
603
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
604
|
+
type: z.ZodLiteral<"telegram">;
|
|
605
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
606
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
607
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>>;
|
|
608
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
609
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
610
|
+
}, z.core.$strip>)[]], "type">>>>;
|
|
611
|
+
addressProvider: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
612
|
+
marketConfigurators: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
613
|
+
rwaFactories: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
614
|
+
appName: z.ZodDefault<z.ZodString>;
|
|
615
|
+
port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
616
|
+
whitelistUrl: z.ZodOptional<z.ZodURL>;
|
|
617
|
+
hardWhitelist: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
618
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
619
|
+
reason: z.ZodDefault<z.ZodString>;
|
|
620
|
+
contractType: z.ZodOptional<z.ZodString>;
|
|
621
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
622
|
+
}, z.core.$strip>>>;
|
|
623
|
+
debugAccount: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
624
|
+
debugManager: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
625
|
+
castBin: z.ZodOptional<z.ZodString>;
|
|
626
|
+
castTimeout: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
627
|
+
staleBlockThreshold: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
628
|
+
logsPageSize: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
629
|
+
pollingInterval: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
630
|
+
privateKey: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<`0x${string}`>, `0x${string}`>>>;
|
|
631
|
+
liquidatorAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
632
|
+
minBalanceGas: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
633
|
+
hfThreshold: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
634
|
+
numSplits: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
635
|
+
optimistic: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
636
|
+
useProductionScanner: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
637
|
+
optimisticTimestamp: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
638
|
+
failOnMissingFeeds: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
639
|
+
gasLimit: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
640
|
+
dryRun: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
641
|
+
redstoneGateways: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodURL>>, z.ZodTransform<string[] | undefined, string[]>>>;
|
|
642
|
+
compressorBatchSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
643
|
+
slippage: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
644
|
+
updateReservePrices: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>>;
|
|
645
|
+
keepAssets: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
646
|
+
premiumReceiver: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
647
|
+
outDir: z.ZodDefault<z.ZodString>;
|
|
648
|
+
outEndpoint: z.ZodOptional<z.ZodURL>;
|
|
649
|
+
outHeaders: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>;
|
|
650
|
+
outS3Bucket: z.ZodOptional<z.ZodString>;
|
|
651
|
+
outS3Prefix: z.ZodDefault<z.ZodString>;
|
|
652
|
+
outFileName: z.ZodOptional<z.ZodString>;
|
|
653
|
+
liquidationMode: z.ZodLiteral<"deleverage">;
|
|
654
654
|
}, z.core.$strip>], "liquidationMode">;
|
|
655
655
|
type ConfigSchema = z.infer<typeof ConfigSchema>;
|
|
656
|
-
|
|
656
|
+
//#endregion
|
|
657
|
+
//#region src/config.d.ts
|
|
657
658
|
type Config = ConfigSchema & {
|
|
658
|
-
|
|
659
|
-
|
|
659
|
+
readonly chainId: number;
|
|
660
|
+
readonly startBlock: bigint;
|
|
660
661
|
};
|
|
661
662
|
type LiqduiatorConfig<TSchema extends CommonSchema> = TSchema & {
|
|
662
|
-
|
|
663
|
-
|
|
663
|
+
readonly chainId: number;
|
|
664
|
+
readonly startBlock: bigint;
|
|
664
665
|
};
|
|
665
666
|
declare class ConfigImplementation {
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
667
|
+
#private;
|
|
668
|
+
constructor(schema: ConfigSchema);
|
|
669
|
+
initialize(transport: Transport): Promise<void>;
|
|
670
|
+
get startBlock(): bigint;
|
|
671
|
+
get chainId(): number;
|
|
671
672
|
}
|
|
672
|
-
|
|
673
|
+
//#endregion
|
|
674
|
+
//#region src/deleverage-liquidator.d.ts
|
|
673
675
|
declare const DeleverageLiquidatorSchema: z.ZodObject<{
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
676
|
+
network: z.ZodEnum<{
|
|
677
|
+
Arbitrum: "Arbitrum";
|
|
678
|
+
Avalanche: "Avalanche";
|
|
679
|
+
BNB: "BNB";
|
|
680
|
+
Base: "Base";
|
|
681
|
+
Berachain: "Berachain";
|
|
682
|
+
Etherlink: "Etherlink";
|
|
683
|
+
Hemi: "Hemi";
|
|
684
|
+
Lisk: "Lisk";
|
|
685
|
+
Mainnet: "Mainnet";
|
|
686
|
+
MegaETH: "MegaETH";
|
|
687
|
+
Monad: "Monad";
|
|
688
|
+
Optimism: "Optimism";
|
|
689
|
+
Plasma: "Plasma";
|
|
690
|
+
Somnia: "Somnia";
|
|
691
|
+
Sonic: "Sonic";
|
|
692
|
+
WorldChain: "WorldChain";
|
|
693
|
+
}>;
|
|
694
|
+
jsonRpcProviders: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodURL, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredURL, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredURL[] | undefined, import("@gearbox-protocol/cli-utils").CensoredURL[]>>>;
|
|
695
|
+
enabledProviders: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodEnum<{
|
|
696
|
+
alchemy: "alchemy";
|
|
697
|
+
ankr: "ankr";
|
|
698
|
+
custom: "custom";
|
|
699
|
+
drpc: "drpc";
|
|
700
|
+
erpc: "erpc";
|
|
701
|
+
thirdweb: "thirdweb";
|
|
702
|
+
}>>>>;
|
|
703
|
+
alchemyKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
704
|
+
drpcKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
705
|
+
ankrKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
706
|
+
thirdwebKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
707
|
+
erpcProjectId: z.ZodOptional<z.ZodString>;
|
|
708
|
+
erpcUrl: z.ZodDefault<z.ZodURL>;
|
|
709
|
+
jsonRpcTimeout: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
710
|
+
notifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
711
|
+
type: z.ZodLiteral<"slack">;
|
|
712
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
713
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
714
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
715
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
716
|
+
type: z.ZodLiteral<"telegram">;
|
|
717
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
718
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
719
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>>;
|
|
720
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
721
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
722
|
+
}, z.core.$strip>, ...(z.ZodObject<{
|
|
723
|
+
type: z.ZodLiteral<"slack">;
|
|
724
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
725
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
726
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
727
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
728
|
+
type: z.ZodLiteral<"telegram">;
|
|
729
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
730
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
731
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>>;
|
|
732
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
733
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
734
|
+
}, z.core.$strip>)[]], "type">>>>;
|
|
735
|
+
addressProvider: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
736
|
+
marketConfigurators: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
737
|
+
rwaFactories: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
738
|
+
appName: z.ZodDefault<z.ZodString>;
|
|
739
|
+
port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
740
|
+
whitelistUrl: z.ZodOptional<z.ZodURL>;
|
|
741
|
+
hardWhitelist: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
742
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
743
|
+
reason: z.ZodDefault<z.ZodString>;
|
|
744
|
+
contractType: z.ZodOptional<z.ZodString>;
|
|
745
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
746
|
+
}, z.core.$strip>>>;
|
|
747
|
+
debugAccount: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
748
|
+
debugManager: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
749
|
+
castBin: z.ZodOptional<z.ZodString>;
|
|
750
|
+
castTimeout: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
751
|
+
staleBlockThreshold: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
752
|
+
logsPageSize: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
753
|
+
pollingInterval: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
754
|
+
privateKey: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<`0x${string}`>, `0x${string}`>>>;
|
|
755
|
+
liquidatorAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
756
|
+
minBalanceGas: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
757
|
+
hfThreshold: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
758
|
+
numSplits: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
759
|
+
optimistic: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
760
|
+
useProductionScanner: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
761
|
+
optimisticTimestamp: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
762
|
+
failOnMissingFeeds: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
763
|
+
gasLimit: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
764
|
+
dryRun: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
765
|
+
redstoneGateways: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodURL>>, z.ZodTransform<string[] | undefined, string[]>>>;
|
|
766
|
+
compressorBatchSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
767
|
+
slippage: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
768
|
+
updateReservePrices: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>>;
|
|
769
|
+
keepAssets: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
770
|
+
premiumReceiver: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
771
|
+
outDir: z.ZodDefault<z.ZodString>;
|
|
772
|
+
outEndpoint: z.ZodOptional<z.ZodURL>;
|
|
773
|
+
outHeaders: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>;
|
|
774
|
+
outS3Bucket: z.ZodOptional<z.ZodString>;
|
|
775
|
+
outS3Prefix: z.ZodDefault<z.ZodString>;
|
|
776
|
+
outFileName: z.ZodOptional<z.ZodString>;
|
|
777
|
+
liquidationMode: z.ZodLiteral<"deleverage">;
|
|
776
778
|
}, z.core.$strip>;
|
|
777
779
|
type DeleverageLiquidatorSchema = z.infer<typeof DeleverageLiquidatorSchema>;
|
|
778
|
-
|
|
780
|
+
//#endregion
|
|
781
|
+
//#region src/full-liquidator.d.ts
|
|
779
782
|
declare const FullLiquidatorSchema: z.ZodObject<{
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
783
|
+
network: z.ZodEnum<{
|
|
784
|
+
Arbitrum: "Arbitrum";
|
|
785
|
+
Avalanche: "Avalanche";
|
|
786
|
+
BNB: "BNB";
|
|
787
|
+
Base: "Base";
|
|
788
|
+
Berachain: "Berachain";
|
|
789
|
+
Etherlink: "Etherlink";
|
|
790
|
+
Hemi: "Hemi";
|
|
791
|
+
Lisk: "Lisk";
|
|
792
|
+
Mainnet: "Mainnet";
|
|
793
|
+
MegaETH: "MegaETH";
|
|
794
|
+
Monad: "Monad";
|
|
795
|
+
Optimism: "Optimism";
|
|
796
|
+
Plasma: "Plasma";
|
|
797
|
+
Somnia: "Somnia";
|
|
798
|
+
Sonic: "Sonic";
|
|
799
|
+
WorldChain: "WorldChain";
|
|
800
|
+
}>;
|
|
801
|
+
jsonRpcProviders: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodURL, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredURL, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredURL[] | undefined, import("@gearbox-protocol/cli-utils").CensoredURL[]>>>;
|
|
802
|
+
enabledProviders: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodEnum<{
|
|
803
|
+
alchemy: "alchemy";
|
|
804
|
+
ankr: "ankr";
|
|
805
|
+
custom: "custom";
|
|
806
|
+
drpc: "drpc";
|
|
807
|
+
erpc: "erpc";
|
|
808
|
+
thirdweb: "thirdweb";
|
|
809
|
+
}>>>>;
|
|
810
|
+
alchemyKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
811
|
+
drpcKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
812
|
+
ankrKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
813
|
+
thirdwebKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
814
|
+
erpcProjectId: z.ZodOptional<z.ZodString>;
|
|
815
|
+
erpcUrl: z.ZodDefault<z.ZodURL>;
|
|
816
|
+
jsonRpcTimeout: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
817
|
+
notifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
818
|
+
type: z.ZodLiteral<"slack">;
|
|
819
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
820
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
821
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
822
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
823
|
+
type: z.ZodLiteral<"telegram">;
|
|
824
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
825
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
826
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>>;
|
|
827
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
828
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
829
|
+
}, z.core.$strip>, ...(z.ZodObject<{
|
|
830
|
+
type: z.ZodLiteral<"slack">;
|
|
831
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
832
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
833
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
834
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
835
|
+
type: z.ZodLiteral<"telegram">;
|
|
836
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
837
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
838
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>>;
|
|
839
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
840
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
841
|
+
}, z.core.$strip>)[]], "type">>>>;
|
|
842
|
+
addressProvider: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
843
|
+
marketConfigurators: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
844
|
+
rwaFactories: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
845
|
+
appName: z.ZodDefault<z.ZodString>;
|
|
846
|
+
port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
847
|
+
whitelistUrl: z.ZodOptional<z.ZodURL>;
|
|
848
|
+
hardWhitelist: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
849
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
850
|
+
reason: z.ZodDefault<z.ZodString>;
|
|
851
|
+
contractType: z.ZodOptional<z.ZodString>;
|
|
852
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
853
|
+
}, z.core.$strip>>>;
|
|
854
|
+
debugAccount: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
855
|
+
debugManager: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
856
|
+
castBin: z.ZodOptional<z.ZodString>;
|
|
857
|
+
castTimeout: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
858
|
+
staleBlockThreshold: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
859
|
+
logsPageSize: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
860
|
+
pollingInterval: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
861
|
+
privateKey: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<`0x${string}`>, `0x${string}`>>>;
|
|
862
|
+
liquidatorAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
863
|
+
minBalanceGas: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
864
|
+
hfThreshold: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
865
|
+
numSplits: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
866
|
+
optimistic: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
867
|
+
useProductionScanner: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
868
|
+
optimisticTimestamp: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
869
|
+
failOnMissingFeeds: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
870
|
+
gasLimit: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
871
|
+
dryRun: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
872
|
+
redstoneGateways: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodURL>>, z.ZodTransform<string[] | undefined, string[]>>>;
|
|
873
|
+
compressorBatchSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
874
|
+
slippage: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
875
|
+
updateReservePrices: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>>;
|
|
876
|
+
keepAssets: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
877
|
+
premiumReceiver: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
878
|
+
outDir: z.ZodDefault<z.ZodString>;
|
|
879
|
+
outEndpoint: z.ZodOptional<z.ZodURL>;
|
|
880
|
+
outHeaders: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>;
|
|
881
|
+
outS3Bucket: z.ZodOptional<z.ZodString>;
|
|
882
|
+
outS3Prefix: z.ZodDefault<z.ZodString>;
|
|
883
|
+
outFileName: z.ZodOptional<z.ZodString>;
|
|
884
|
+
liquidationMode: z.ZodLiteral<"full">;
|
|
885
|
+
debtPolicy: z.ZodDefault<z.ZodEnum<{
|
|
886
|
+
"debt-expired": "debt-expired";
|
|
887
|
+
"debt-only": "debt-only";
|
|
888
|
+
full: "full";
|
|
889
|
+
}>>;
|
|
890
|
+
strategy: z.ZodDefault<z.ZodEnum<{
|
|
891
|
+
auto: "auto";
|
|
892
|
+
full: "full";
|
|
893
|
+
loss: "loss";
|
|
894
|
+
rwa: "rwa";
|
|
895
|
+
}>>;
|
|
893
896
|
}, z.core.$strip>;
|
|
894
897
|
type FullLiquidatorSchema = z.infer<typeof FullLiquidatorSchema>;
|
|
895
|
-
|
|
898
|
+
//#endregion
|
|
899
|
+
//#region src/notifications.d.ts
|
|
896
900
|
declare const NotificationsConfig: z.ZodObject<{
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
901
|
+
notifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
902
|
+
type: z.ZodLiteral<"slack">;
|
|
903
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
904
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
905
|
+
curator: z.ZodOptional<z.ZodCustom<Curator, Curator>>;
|
|
906
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
907
|
+
type: z.ZodLiteral<"telegram">;
|
|
908
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
909
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
910
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>>;
|
|
911
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
912
|
+
curator: z.ZodOptional<z.ZodCustom<Curator, Curator>>;
|
|
913
|
+
}, z.core.$strip>, ...(z.ZodObject<{
|
|
914
|
+
type: z.ZodLiteral<"slack">;
|
|
915
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
916
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
917
|
+
curator: z.ZodOptional<z.ZodCustom<Curator, Curator>>;
|
|
918
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
919
|
+
type: z.ZodLiteral<"telegram">;
|
|
920
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
921
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
922
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>>;
|
|
923
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
924
|
+
curator: z.ZodOptional<z.ZodCustom<Curator, Curator>>;
|
|
925
|
+
}, z.core.$strip>)[]], "type">>>>;
|
|
922
926
|
}, z.core.$strip>;
|
|
923
|
-
|
|
927
|
+
//#endregion
|
|
928
|
+
//#region src/optimist.d.ts
|
|
924
929
|
type Numberish = number | string | bigint;
|
|
925
930
|
/**
|
|
926
931
|
* Discriminator for the liquidation strategy that produced an {@link OptimisticResult}.
|
|
@@ -935,28 +940,28 @@ type LiquidationStrategyKind = "full" | "loss-policy" | "rwa-via-stablecoins" |
|
|
|
935
940
|
* stored as-is in {@link OptimisticResult}.
|
|
936
941
|
*/
|
|
937
942
|
interface FullStrategyPreview<N extends Numberish = Numberish> {
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
943
|
+
/**
|
|
944
|
+
* Router's pre-tx estimate (`routerCloseResult.underlyingBalance`) of how much
|
|
945
|
+
* underlying the account holds after all non-underlying collateral is swapped to
|
|
946
|
+
* underlying: existing underlying plus the amount received from swaps.
|
|
947
|
+
*/
|
|
948
|
+
routerAmount: N;
|
|
949
|
+
/**
|
|
950
|
+
* Minimum acceptable underlying amount out after applying slippage.
|
|
951
|
+
*/
|
|
952
|
+
minAmount?: N;
|
|
953
|
+
/**
|
|
954
|
+
* Multicalls used to liquidate the account.
|
|
955
|
+
*/
|
|
956
|
+
calls: readonly MultiCall[];
|
|
957
|
+
/**
|
|
958
|
+
* Raw liquidation transaction produced by the pathfinder.
|
|
959
|
+
*/
|
|
960
|
+
rawTx: RawTx;
|
|
961
|
+
/**
|
|
962
|
+
* If true, will not attempt to liquidate this account again.
|
|
963
|
+
*/
|
|
964
|
+
skipOnFailure?: boolean;
|
|
960
965
|
}
|
|
961
966
|
/**
|
|
962
967
|
* Preview data shared by partial and deleverage strategies. Carries the
|
|
@@ -964,218 +969,216 @@ interface FullStrategyPreview<N extends Numberish = Numberish> {
|
|
|
964
969
|
* and send the liquidation tx; these are stored as-is in {@link OptimisticResult}.
|
|
965
970
|
*/
|
|
966
971
|
interface PartialStrategyPreview<N extends Numberish = Numberish> {
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
972
|
+
/**
|
|
973
|
+
* Token taken out of the account in exchange for repaying part of the debt.
|
|
974
|
+
*/
|
|
975
|
+
assetOut: Address;
|
|
976
|
+
/**
|
|
977
|
+
* Amount of {@link assetOut} taken out of the account.
|
|
978
|
+
*/
|
|
979
|
+
amountOut: N;
|
|
980
|
+
/**
|
|
981
|
+
* Flash loan amount used to repay the debt during partial liquidation.
|
|
982
|
+
*/
|
|
983
|
+
flashLoanAmount: N;
|
|
984
|
+
/**
|
|
985
|
+
* Partial-liquidator contract's previewed profit in underlying token
|
|
986
|
+
* (`previewPartialLiquidation().profit`).
|
|
987
|
+
*/
|
|
988
|
+
previewedProfit: N;
|
|
989
|
+
/**
|
|
990
|
+
* On-demand (redstone) price updates included in the liquidation call.
|
|
991
|
+
*/
|
|
992
|
+
priceUpdates: PriceUpdate[];
|
|
993
|
+
/**
|
|
994
|
+
* Multicalls used to liquidate the account.
|
|
995
|
+
*/
|
|
996
|
+
calls: readonly MultiCall[];
|
|
997
|
+
/**
|
|
998
|
+
* If true, will not attempt to liquidate this account again.
|
|
999
|
+
*/
|
|
1000
|
+
skipOnFailure?: boolean;
|
|
996
1001
|
}
|
|
997
1002
|
interface RwaStrategyPreview {
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1003
|
+
/**
|
|
1004
|
+
* Securitize redemption gateway used during liquidation.
|
|
1005
|
+
*/
|
|
1006
|
+
redemptionGateway: Address;
|
|
1007
|
+
/**
|
|
1008
|
+
* On-demand (redstone) price updates included in the liquidation call.
|
|
1009
|
+
*/
|
|
1010
|
+
priceUpdates: PriceUpdate[];
|
|
1011
|
+
/**
|
|
1012
|
+
* Multicalls used to liquidate the account.
|
|
1013
|
+
*/
|
|
1014
|
+
calls: readonly MultiCall[];
|
|
1015
|
+
/**
|
|
1016
|
+
* If true, will not attempt to liquidate this account again.
|
|
1017
|
+
*/
|
|
1018
|
+
skipOnFailure?: boolean;
|
|
1014
1019
|
}
|
|
1015
1020
|
interface LossPolicyStrategySetup<N extends Numberish = Numberish> {
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1021
|
+
/**
|
|
1022
|
+
* Amount the account debt was artificially increased by.
|
|
1023
|
+
*/
|
|
1024
|
+
inducedDebtIncrease: N;
|
|
1025
|
+
/**
|
|
1026
|
+
* Resulting account debt after the artificial increase.
|
|
1027
|
+
*/
|
|
1028
|
+
newDebt: N;
|
|
1024
1029
|
}
|
|
1025
1030
|
interface PartialStrategySetup<N extends Numberish = Numberish> {
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1031
|
+
/**
|
|
1032
|
+
* Mapping token address -> [old LT, new LT]
|
|
1033
|
+
*/
|
|
1034
|
+
ltChanges?: Record<Address, [ltOld: N, ltNew: N]> | null;
|
|
1035
|
+
/**
|
|
1036
|
+
* Account health factor after changing LTs
|
|
1037
|
+
*/
|
|
1038
|
+
hfNew: N;
|
|
1034
1039
|
}
|
|
1035
1040
|
interface DeleverageStrategySetup<N extends Numberish = Numberish> extends PartialStrategySetup<N> {
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
+
/**
|
|
1042
|
+
* True when deleverage bot permissions were force-enabled on the account
|
|
1043
|
+
* (false when relying on the production scanner).
|
|
1044
|
+
*/
|
|
1045
|
+
botForceEnabled: boolean;
|
|
1041
1046
|
}
|
|
1042
1047
|
interface RwaStrategySetup {
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1048
|
+
/**
|
|
1049
|
+
* Securitize redemption gateway used to redeem the RWA collateral.
|
|
1050
|
+
*/
|
|
1051
|
+
redemptionGateway: Address;
|
|
1052
|
+
/**
|
|
1053
|
+
* Investor account that owns the RWA position being redeemed.
|
|
1054
|
+
*/
|
|
1055
|
+
investor?: Address;
|
|
1051
1056
|
}
|
|
1052
1057
|
/**
|
|
1053
1058
|
* Maps each {@link LiquidationStrategyKind} to its preview shape.
|
|
1054
1059
|
* `none` has no preview.
|
|
1055
1060
|
*/
|
|
1056
1061
|
interface StrategyPreviews<N extends Numberish = Numberish> {
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1062
|
+
full: FullStrategyPreview<N>;
|
|
1063
|
+
"loss-policy": FullStrategyPreview<N>;
|
|
1064
|
+
partial: PartialStrategyPreview<N>;
|
|
1065
|
+
deleverage: PartialStrategyPreview<N>;
|
|
1066
|
+
"rwa-via-stablecoins": RwaStrategyPreview;
|
|
1067
|
+
none: never;
|
|
1063
1068
|
}
|
|
1064
1069
|
/**
|
|
1065
1070
|
* Maps each {@link LiquidationStrategyKind} to its `setup` shape (how the account
|
|
1066
1071
|
* was made liquidatable). `full`/`none` have no setup.
|
|
1067
1072
|
*/
|
|
1068
1073
|
interface StrategySetups<N extends Numberish = Numberish> {
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1074
|
+
full: never;
|
|
1075
|
+
"loss-policy": LossPolicyStrategySetup<N>;
|
|
1076
|
+
partial: PartialStrategySetup<N>;
|
|
1077
|
+
deleverage: DeleverageStrategySetup<N>;
|
|
1078
|
+
"rwa-via-stablecoins": RwaStrategySetup;
|
|
1079
|
+
none: never;
|
|
1075
1080
|
}
|
|
1076
1081
|
/**
|
|
1077
1082
|
* Fields shared by every {@link OptimisticResult}, independent of strategy.
|
|
1078
1083
|
*/
|
|
1079
1084
|
interface OptimisticResultBase<N extends Numberish = Numberish> {
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1085
|
+
/**
|
|
1086
|
+
* Credit Manager address
|
|
1087
|
+
*/
|
|
1088
|
+
creditManager: Address;
|
|
1089
|
+
/**
|
|
1090
|
+
* Borrower address
|
|
1091
|
+
*/
|
|
1092
|
+
borrower: Address;
|
|
1093
|
+
/**
|
|
1094
|
+
* Credit account address
|
|
1095
|
+
*/
|
|
1096
|
+
account: Address;
|
|
1097
|
+
/**
|
|
1098
|
+
* Gas used for liquidation from tx recepit
|
|
1099
|
+
*/
|
|
1100
|
+
gasUsed: N;
|
|
1101
|
+
/**
|
|
1102
|
+
* Multicalls used as parameter in liquidateCreditAccount function
|
|
1103
|
+
* Can be null or undfined in case of error
|
|
1104
|
+
*/
|
|
1105
|
+
calls?: MultiCall[] | null;
|
|
1106
|
+
/**
|
|
1107
|
+
* Realized change in the premium receiver's underlying token balance across the
|
|
1108
|
+
* liquidation tx (`underlyingAfter - underlyingBefore`). This is the underlying
|
|
1109
|
+
* the liquidator actually pocketed. Measured (not estimated).
|
|
1110
|
+
*/
|
|
1111
|
+
liquidatorPremium: N;
|
|
1112
|
+
/**
|
|
1113
|
+
* Native token (ETH) spent by the executor across the real liquidation tx
|
|
1114
|
+
* (`ethBefore - ethAfter`), stored as a positive value. In practice this is the
|
|
1115
|
+
* gas paid, since the liquidation premium is received in the underlying token
|
|
1116
|
+
* rather than in native token (no underlying->native swap happens here).
|
|
1117
|
+
*/
|
|
1118
|
+
gasCost: N;
|
|
1119
|
+
/**
|
|
1120
|
+
* True if errors accrued
|
|
1121
|
+
*/
|
|
1122
|
+
isError: boolean;
|
|
1123
|
+
/**
|
|
1124
|
+
* How much time it took to liquidate this account (ms)
|
|
1125
|
+
*/
|
|
1126
|
+
duration?: number;
|
|
1127
|
+
/**
|
|
1128
|
+
* Parsed version of calls
|
|
1129
|
+
* Reason why we do it here is that parser is available in gearbox SDK only, which uses ethers-5 and cannot be imported in other places
|
|
1130
|
+
* This field is not available in all the liquidators
|
|
1131
|
+
*/
|
|
1132
|
+
callsHuman?: string[] | null;
|
|
1133
|
+
/**
|
|
1134
|
+
* Token balances before liquidation
|
|
1135
|
+
*/
|
|
1136
|
+
balancesBefore: Record<Address, N>;
|
|
1137
|
+
/**
|
|
1138
|
+
* Token after (partial) liquidation
|
|
1139
|
+
*/
|
|
1140
|
+
balancesAfter: Record<Address, N>;
|
|
1141
|
+
/**
|
|
1142
|
+
* Health factor before liquidation
|
|
1143
|
+
*/
|
|
1144
|
+
hfBefore: N;
|
|
1145
|
+
/**
|
|
1146
|
+
* Health factor after (partial) liquidation
|
|
1147
|
+
*/
|
|
1148
|
+
hfAfter: N;
|
|
1149
|
+
/**
|
|
1150
|
+
* Error occured during liquidation
|
|
1151
|
+
*/
|
|
1152
|
+
error?: string;
|
|
1153
|
+
/**
|
|
1154
|
+
* In case of error, cast call --trace ansii file name
|
|
1155
|
+
*/
|
|
1156
|
+
traceFile?: string;
|
|
1157
|
+
/**
|
|
1158
|
+
* In case when account are liquidated in batches
|
|
1159
|
+
*/
|
|
1160
|
+
batchId?: string;
|
|
1161
|
+
/**
|
|
1162
|
+
* Track identifier. Defaults to the strategy kind in the liquidator; the
|
|
1163
|
+
* optimistic runner (apps/optimist) overwrites it with the actual track id,
|
|
1164
|
+
* so several tracks can share one strategy.
|
|
1165
|
+
*/
|
|
1166
|
+
trackId: string;
|
|
1162
1167
|
}
|
|
1163
|
-
type OptimisticResultByKind<N extends Numberish = Numberish> = {
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
};
|
|
1178
|
-
};
|
|
1168
|
+
type OptimisticResultByKind<N extends Numberish = Numberish> = { [K in LiquidationStrategyKind]: OptimisticResultBase<N> & {
|
|
1169
|
+
/**
|
|
1170
|
+
* Strategy that produced this result.
|
|
1171
|
+
*/
|
|
1172
|
+
strategy: K;
|
|
1173
|
+
/**
|
|
1174
|
+
* Strategy-specific setup that made the account liquidatable.
|
|
1175
|
+
*/
|
|
1176
|
+
setup?: StrategySetups<N>[K];
|
|
1177
|
+
/**
|
|
1178
|
+
* Strategy-specific liquidation preview.
|
|
1179
|
+
*/
|
|
1180
|
+
preview?: StrategyPreviews<N>[K];
|
|
1181
|
+
}; };
|
|
1179
1182
|
/**
|
|
1180
1183
|
* Optimistic liquidation result format, shared by all liquidators.
|
|
1181
1184
|
*
|
|
@@ -1184,159 +1187,162 @@ type OptimisticResultByKind<N extends Numberish = Numberish> = {
|
|
|
1184
1187
|
* `OptimisticResult<bigint, "partial">`) to pin one variant.
|
|
1185
1188
|
*/
|
|
1186
1189
|
type OptimisticResult<N extends Numberish = Numberish, K extends LiquidationStrategyKind = LiquidationStrategyKind> = OptimisticResultByKind<N>[K];
|
|
1187
|
-
|
|
1190
|
+
//#endregion
|
|
1191
|
+
//#region src/partial-liquidator.d.ts
|
|
1188
1192
|
declare const PartialLiquidatorSchema: z.ZodObject<{
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1193
|
+
network: z.ZodEnum<{
|
|
1194
|
+
Arbitrum: "Arbitrum";
|
|
1195
|
+
Avalanche: "Avalanche";
|
|
1196
|
+
BNB: "BNB";
|
|
1197
|
+
Base: "Base";
|
|
1198
|
+
Berachain: "Berachain";
|
|
1199
|
+
Etherlink: "Etherlink";
|
|
1200
|
+
Hemi: "Hemi";
|
|
1201
|
+
Lisk: "Lisk";
|
|
1202
|
+
Mainnet: "Mainnet";
|
|
1203
|
+
MegaETH: "MegaETH";
|
|
1204
|
+
Monad: "Monad";
|
|
1205
|
+
Optimism: "Optimism";
|
|
1206
|
+
Plasma: "Plasma";
|
|
1207
|
+
Somnia: "Somnia";
|
|
1208
|
+
Sonic: "Sonic";
|
|
1209
|
+
WorldChain: "WorldChain";
|
|
1210
|
+
}>;
|
|
1211
|
+
jsonRpcProviders: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodURL, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredURL, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredURL[] | undefined, import("@gearbox-protocol/cli-utils").CensoredURL[]>>>;
|
|
1212
|
+
enabledProviders: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodEnum<{
|
|
1213
|
+
alchemy: "alchemy";
|
|
1214
|
+
ankr: "ankr";
|
|
1215
|
+
custom: "custom";
|
|
1216
|
+
drpc: "drpc";
|
|
1217
|
+
erpc: "erpc";
|
|
1218
|
+
thirdweb: "thirdweb";
|
|
1219
|
+
}>>>>;
|
|
1220
|
+
alchemyKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
1221
|
+
drpcKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
1222
|
+
ankrKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
1223
|
+
thirdwebKeys: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>[] | undefined, import("@gearbox-protocol/cli-utils").CensoredString<string>[]>>>;
|
|
1224
|
+
erpcProjectId: z.ZodOptional<z.ZodString>;
|
|
1225
|
+
erpcUrl: z.ZodDefault<z.ZodURL>;
|
|
1226
|
+
jsonRpcTimeout: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1227
|
+
notifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1228
|
+
type: z.ZodLiteral<"slack">;
|
|
1229
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
1230
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
1231
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
1232
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
1233
|
+
type: z.ZodLiteral<"telegram">;
|
|
1234
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
1235
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
1236
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>>;
|
|
1237
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
1238
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
1239
|
+
}, z.core.$strip>, ...(z.ZodObject<{
|
|
1240
|
+
type: z.ZodLiteral<"slack">;
|
|
1241
|
+
webhookUrl: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
1242
|
+
alertsOnly: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
1243
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
1244
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
1245
|
+
type: z.ZodLiteral<"telegram">;
|
|
1246
|
+
token: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
1247
|
+
alertsChannel: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>;
|
|
1248
|
+
notificationsChannel: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<import("@gearbox-protocol/cli-utils").CensoredString<string>, import("@gearbox-protocol/cli-utils").CensoredString<string>>]>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string | import("@gearbox-protocol/cli-utils").CensoredString<string>>>>;
|
|
1249
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
1250
|
+
curator: z.ZodOptional<z.ZodCustom<import("@gearbox-protocol/sdk").Curator, import("@gearbox-protocol/sdk").Curator>>;
|
|
1251
|
+
}, z.core.$strip>)[]], "type">>>>;
|
|
1252
|
+
addressProvider: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
1253
|
+
marketConfigurators: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
1254
|
+
rwaFactories: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
1255
|
+
appName: z.ZodDefault<z.ZodString>;
|
|
1256
|
+
port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1257
|
+
whitelistUrl: z.ZodOptional<z.ZodURL>;
|
|
1258
|
+
hardWhitelist: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1259
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
1260
|
+
reason: z.ZodDefault<z.ZodString>;
|
|
1261
|
+
contractType: z.ZodOptional<z.ZodString>;
|
|
1262
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
1263
|
+
}, z.core.$strip>>>;
|
|
1264
|
+
debugAccount: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
1265
|
+
debugManager: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
1266
|
+
castBin: z.ZodOptional<z.ZodString>;
|
|
1267
|
+
castTimeout: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1268
|
+
staleBlockThreshold: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1269
|
+
logsPageSize: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
1270
|
+
pollingInterval: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1271
|
+
privateKey: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<`0x${string}`>, `0x${string}`>>>;
|
|
1272
|
+
liquidatorAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
1273
|
+
minBalanceGas: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
1274
|
+
hfThreshold: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
1275
|
+
numSplits: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
1276
|
+
optimistic: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
1277
|
+
useProductionScanner: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
1278
|
+
optimisticTimestamp: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
1279
|
+
failOnMissingFeeds: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
1280
|
+
gasLimit: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
1281
|
+
dryRun: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
1282
|
+
redstoneGateways: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodURL>>, z.ZodTransform<string[] | undefined, string[]>>>;
|
|
1283
|
+
compressorBatchSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1284
|
+
slippage: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1285
|
+
updateReservePrices: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>>;
|
|
1286
|
+
keepAssets: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
1287
|
+
premiumReceiver: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
1288
|
+
outDir: z.ZodDefault<z.ZodString>;
|
|
1289
|
+
outEndpoint: z.ZodOptional<z.ZodURL>;
|
|
1290
|
+
outHeaders: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<import("@gearbox-protocol/cli-utils").CensoredString<string>, string>>;
|
|
1291
|
+
outS3Bucket: z.ZodOptional<z.ZodString>;
|
|
1292
|
+
outS3Prefix: z.ZodDefault<z.ZodString>;
|
|
1293
|
+
outFileName: z.ZodOptional<z.ZodString>;
|
|
1294
|
+
liquidationMode: z.ZodLiteral<"partial">;
|
|
1295
|
+
partialFallback: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<boolean, any>>>;
|
|
1296
|
+
targetPartialHF: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
1297
|
+
calculatePartialHF: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>, z.ZodTransform<`0x${string}`[] | undefined, `0x${string}`[] | undefined>>;
|
|
1294
1298
|
}, z.core.$strip>;
|
|
1295
1299
|
type PartialLiquidatorSchema = z.infer<typeof PartialLiquidatorSchema>;
|
|
1296
|
-
|
|
1300
|
+
//#endregion
|
|
1301
|
+
//#region src/report.d.ts
|
|
1297
1302
|
type TypedSDKState = GearboxState<{
|
|
1298
|
-
|
|
1303
|
+
readonly accounts: AccountsPlugin;
|
|
1299
1304
|
}>;
|
|
1300
1305
|
type WhitelistEntry = ClientWhitelistItem;
|
|
1301
1306
|
interface TrackReport {
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1307
|
+
id: string;
|
|
1308
|
+
name: string;
|
|
1309
|
+
start: Date;
|
|
1310
|
+
end: Date;
|
|
1311
|
+
version: string;
|
|
1312
|
+
emergency: boolean;
|
|
1308
1313
|
}
|
|
1309
1314
|
interface ExecutionReport {
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1315
|
+
/**
|
|
1316
|
+
* execution_id to view logs in grafana
|
|
1317
|
+
*/
|
|
1318
|
+
id: string;
|
|
1319
|
+
start: Date;
|
|
1320
|
+
end: Date;
|
|
1321
|
+
/**
|
|
1322
|
+
* Top-level error in optimistic runner execution (e.g. terminated early)
|
|
1323
|
+
*/
|
|
1324
|
+
error?: string;
|
|
1325
|
+
/**
|
|
1326
|
+
* Executed tracks
|
|
1327
|
+
*/
|
|
1328
|
+
tracks: TrackReport[];
|
|
1329
|
+
/**
|
|
1330
|
+
* Account liquidation results (for all tracks together)
|
|
1331
|
+
*/
|
|
1332
|
+
results: OptimisticResult[];
|
|
1333
|
+
/**
|
|
1334
|
+
* Account/CM/Token addresses that we do not need to alert about, if they cannot be liquidated
|
|
1335
|
+
*/
|
|
1336
|
+
whitelist?: WhitelistEntry[];
|
|
1337
|
+
/**
|
|
1338
|
+
* Gearbox SDK state when it was attached
|
|
1339
|
+
*/
|
|
1340
|
+
sdkState: TypedSDKState;
|
|
1341
|
+
/**
|
|
1342
|
+
* Gas price (wei) at execution block, from sdk.client.getGasPrice()
|
|
1343
|
+
*/
|
|
1344
|
+
gasPrice: bigint;
|
|
1340
1345
|
}
|
|
1341
|
-
|
|
1342
|
-
export { BatchLiquidatorSchema, CommonSchema,
|
|
1346
|
+
//#endregion
|
|
1347
|
+
export { type BatchLiquidatorSchema, type CommonSchema, Config, ConfigImplementation, ConfigSchema, type DeleverageLiquidatorSchema, type DeleverageStrategySetup, type ExecutionReport, type FullLiquidatorSchema, type FullStrategyPreview, LiqduiatorConfig, type LiquidationStrategyKind, type LossPolicyStrategySetup, NotificationsConfig, type Numberish, type OptimisticResult, type OptimisticResultBase, type PartialLiquidatorSchema, type PartialStrategyPreview, type PartialStrategySetup, type RwaStrategyPreview, type RwaStrategySetup, type StrategyPreviews, type StrategySetups, type TrackReport, type TypedSDKState, type WhitelistEntry };
|
|
1348
|
+
//# sourceMappingURL=index.d.ts.map
|