@@ -15,7 +15,7 @@ export const PartialV300ConfigSchema = z.object({
1515 /**
1616 * Address of deployed partial liquidator contract for all credit managers except for GHO- and DOLA- based
1717 */
18- aavePartialLiquidatorAddress : addressLike
18+ aavePartialLiquidatorAddress : addressLike ( )
1919 . optional ( )
2020 . register ( zommandRegistry , {
2121 flags : "--aave-partial-liquidator-address <address>" ,
@@ -26,7 +26,7 @@ export const PartialV300ConfigSchema = z.object({
2626 /**
2727 * Address of deployed partial liquidator contract for GHO credit managers
2828 */
29- ghoPartialLiquidatorAddress : addressLike
29+ ghoPartialLiquidatorAddress : addressLike ( )
3030 . optional ( )
3131 . register ( zommandRegistry , {
3232 flags : "--gho-partial-liquidator-address <address>" ,
@@ -37,7 +37,7 @@ export const PartialV300ConfigSchema = z.object({
3737 /**
3838 * Address of deployed partial liquidator contract for DOLA credit managers
3939 */
40- dolaPartialLiquidatorAddress : addressLike
40+ dolaPartialLiquidatorAddress : addressLike ( )
4141 . optional ( )
4242 . register ( zommandRegistry , {
4343 flags : "--dola-partial-liquidator-address <address>" ,
@@ -48,7 +48,7 @@ export const PartialV300ConfigSchema = z.object({
4848 /**
4949 * Address of deployed partial liquidator contract for Nexo credit managers
5050 */
51- nexoPartialLiquidatorAddress : addressLike
51+ nexoPartialLiquidatorAddress : addressLike ( )
5252 . optional ( )
5353 . register ( zommandRegistry , {
5454 flags : "--nexo-partial-liquidator-address <address>" ,
@@ -59,7 +59,7 @@ export const PartialV300ConfigSchema = z.object({
5959 /**
6060 * Address of deployed partial liquidator contract for Sonic credit managers
6161 */
62- siloPartialLiquidatorAddress : addressLike
62+ siloPartialLiquidatorAddress : addressLike ( )
6363 . optional ( )
6464 . register ( zommandRegistry , {
6565 flags : "--silo-partial-liquidator-address <address>" ,
@@ -82,7 +82,7 @@ export const ConfigSchema = z.object({
8282 * By default uses address provider from @gearbox-protocol/sdk
8383 * Use this option to override address provider
8484 */
85- addressProvider : addressLike . optional ( ) . register ( zommandRegistry , {
85+ addressProvider : addressLike ( ) . optional ( ) . register ( zommandRegistry , {
8686 flags : "--address-provider <address>" ,
8787 description :
8888 "Address provider override, uses default value from SDK otherwise" ,
@@ -91,7 +91,7 @@ export const ConfigSchema = z.object({
9191 /**
9292 * Market configurators addresses to attach SDK
9393 */
94- marketConfigurators : optionalAddressArrayLike . register ( zommandRegistry , {
94+ marketConfigurators : optionalAddressArrayLike ( ) . register ( zommandRegistry , {
9595 flags : "--market-configurators <addresses...>" ,
9696 description :
9797 "Market configurators to use for the process, comma separated. Uses default value from SDK if not specified" ,
@@ -116,15 +116,15 @@ export const ConfigSchema = z.object({
116116 /**
117117 * Only check this account during local debug session
118118 */
119- debugAccount : addressLike . optional ( ) . register ( zommandRegistry , {
119+ debugAccount : addressLike ( ) . optional ( ) . register ( zommandRegistry , {
120120 flags : "--debug-account <address>" ,
121121 description : "Only check this account during local debug session" ,
122122 env : "DEBUG_ACCOUNT" ,
123123 } ) ,
124124 /**
125125 * Only check this credit manager during local debug session
126126 */
127- debugManager : addressLike . optional ( ) . register ( zommandRegistry , {
127+ debugManager : addressLike ( ) . optional ( ) . register ( zommandRegistry , {
128128 flags : "--debug-manager <address>" ,
129129 description : "Only check this credit manager during local debug session" ,
130130 env : "DEBUG_MANAGER" ,
@@ -142,7 +142,7 @@ export const ConfigSchema = z.object({
142142 /**
143143 * RPC providers to use
144144 */
145- jsonRpcProviders : stringArrayLike
145+ jsonRpcProviders : stringArrayLike ( )
146146 . pipe ( z . array ( z . url ( ) . transform ( CensoredURL . transform ) ) )
147147 . transform ( a => ( a . length ? a : undefined ) )
148148 . optional ( )
@@ -154,7 +154,7 @@ export const ConfigSchema = z.object({
154154 /**
155155 * Alchemy API keys to use
156156 */
157- alchemyKeys : stringArrayLike
157+ alchemyKeys : stringArrayLike ( )
158158 . pipe ( z . array ( z . string ( ) . transform ( CensoredString . transform ) ) )
159159 . transform ( a => ( a . length ? a : undefined ) )
160160 . optional ( )
@@ -166,7 +166,7 @@ export const ConfigSchema = z.object({
166166 /**
167167 * DRPC API keys to use
168168 */
169- drpcKeys : stringArrayLike
169+ drpcKeys : stringArrayLike ( )
170170 . pipe ( z . array ( z . string ( ) . transform ( CensoredString . transform ) ) )
171171 . transform ( a => ( a . length ? a : undefined ) )
172172 . optional ( )
@@ -255,7 +255,7 @@ export const ConfigSchema = z.object({
255255 /**
256256 * Enable optimistic liquidations
257257 */
258- optimistic : boolLike . optional ( ) . register ( zommandRegistry , {
258+ optimistic : boolLike ( ) . optional ( ) . register ( zommandRegistry , {
259259 flags : "--optimistic" ,
260260 description : "Enable optimistic liquidations" ,
261261 env : "OPTIMISTIC" ,
@@ -276,7 +276,7 @@ export const ConfigSchema = z.object({
276276 /**
277277 * Do not send transactions in non-optimistic mode, just log them
278278 */
279- dryRun : boolLike . optional ( ) . register ( zommandRegistry , {
279+ dryRun : boolLike ( ) . optional ( ) . register ( zommandRegistry , {
280280 flags : "--dry-run" ,
281281 description :
282282 "Do not send transactions in non-optimistic mode, just log them" ,
@@ -286,7 +286,7 @@ export const ConfigSchema = z.object({
286286 * Redstone gateways override
287287 * Set local caching proxies to avoid rate limiting in test environment
288288 */
289- redstoneGateways : stringArrayLike
289+ redstoneGateways : stringArrayLike ( )
290290 . pipe ( z . array ( z . url ( ) ) )
291291 . transform ( a => ( a . length ? a : undefined ) )
292292 . optional ( )
@@ -299,7 +299,7 @@ export const ConfigSchema = z.object({
299299 /**
300300 * Fallback to use full liquidator when partial liquidator fails
301301 */
302- partialFallback : boolLike . optional ( ) . register ( zommandRegistry , {
302+ partialFallback : boolLike ( ) . optional ( ) . register ( zommandRegistry , {
303303 flags : "--partial-fallback" ,
304304 description :
305305 "Fallback to use full liquidator when partial liquidator fails" ,
@@ -308,7 +308,7 @@ export const ConfigSchema = z.object({
308308 /**
309309 * Optimal HF for partial liquidation will be calculated for accounts with following underlying tokens`
310310 */
311- optimalPartialHF : optionalAddressArrayLike . register ( zommandRegistry , {
311+ optimalPartialHF : optionalAddressArrayLike ( ) . register ( zommandRegistry , {
312312 flags : "--optimal-partial-hf <tokens>" ,
313313 description :
314314 "Optimal HF for partial liquidation will be calculated for accounts with following underlying tokens" ,
@@ -317,7 +317,7 @@ export const ConfigSchema = z.object({
317317 /**
318318 * Address of deployed batch liquidator contract
319319 */
320- batchLiquidatorAddress : addressLike . optional ( ) . register ( zommandRegistry , {
320+ batchLiquidatorAddress : addressLike ( ) . optional ( ) . register ( zommandRegistry , {
321321 flags : "--batch-liquidator-address <address>" ,
322322 description : "Address of deployed batch liquidator contract" ,
323323 env : "BATCH_LIQUIDATOR_ADDRESS" ,
@@ -365,7 +365,7 @@ export const ConfigSchema = z.object({
365365 /**
366366 * Flag to enable less eager liquidations for LRT tokens
367367 */
368- restakingWorkaround : boolLike . optional ( ) . register ( zommandRegistry , {
368+ restakingWorkaround : boolLike ( ) . optional ( ) . register ( zommandRegistry , {
369369 flags : "--restaking-workaround" ,
370370 description : "Flag to enable less eager liquidations for LRT tokens" ,
371371 env : "RESTAKING_WORKAROUND" ,
0 commit comments