File tree Expand file tree Collapse file tree 4 files changed +22
-6
lines changed
Expand file tree Collapse file tree 4 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 2727 "@commitlint/cli" : " ^20.1.0" ,
2828 "@commitlint/config-conventional" : " ^20.0.0" ,
2929 "@gearbox-protocol/biome-config" : " ^1.0.13" ,
30- "@gearbox-protocol/cli-utils" : " ^5.60.1 " ,
30+ "@gearbox-protocol/cli-utils" : " ^5.60.2 " ,
3131 "@gearbox-protocol/liquidator-contracts" : " ^1.36.0-experimental.41" ,
3232 "@gearbox-protocol/liquidator-v2-contracts" : " ^2.4.0" ,
3333 "@gearbox-protocol/sdk" : " 11.6.3" ,
Original file line number Diff line number Diff line change @@ -58,8 +58,14 @@ export default async function attachSDK(): Promise<ICreditAccountsService> {
5858 ) ;
5959 }
6060
61+ let gasLimit : bigint | undefined | null = config . gasLimit ;
62+ if ( config . gasLimit === - 1n ) {
63+ gasLimit = null ;
64+ }
65+
6166 const sdk = await GearboxSDK . attach ( {
6267 transport,
68+ gasLimit,
6369 addressProvider : config . addressProvider ,
6470 marketConfigurators : config . marketConfigurators ,
6571 chainId : config . chainId ,
Original file line number Diff line number Diff line change @@ -214,6 +214,16 @@ export const CommonSchema = z.object({
214214 description : "Ignore missing feeds (redstone/pyth)" ,
215215 env : "IGNORE_MISSING_FEEDS" ,
216216 } ) ,
217+ /**
218+ * Explicitly set gas limit for SDK
219+ * -1 to disable explicitly setting gas limit in SDK
220+ * If not set, SDK will use default gas limit
221+ */
222+ gasLimit : z . coerce . bigint ( ) . optional ( ) . register ( zommandRegistry , {
223+ flags : "--gas-limit <limit>" ,
224+ description : "Set gas limit for SDK" ,
225+ env : "GAS_LIMIT" ,
226+ } ) ,
217227 /**
218228 * Do not send transactions in non-optimistic mode, just log them
219229 */
Original file line number Diff line number Diff line change @@ -1878,9 +1878,9 @@ __metadata:
18781878 languageName : node
18791879 linkType : hard
18801880
1881- " @gearbox-protocol/cli-utils@npm:^5.60.1 " :
1882- version : 5.60.1
1883- resolution : " @gearbox-protocol/cli-utils@npm:5.60.1 "
1881+ " @gearbox-protocol/cli-utils@npm:^5.60.2 " :
1882+ version : 5.60.2
1883+ resolution : " @gearbox-protocol/cli-utils@npm:5.60.2 "
18841884 dependencies :
18851885 " @aws-sdk/client-secrets-manager " : " npm:^3.936.0"
18861886 " @aws-sdk/client-ssm " : " npm:^3.936.0"
@@ -1891,7 +1891,7 @@ __metadata:
18911891 viem : " npm:^2.39.3"
18921892 yaml : " npm:^2.8.1"
18931893 zod : " npm:^4.1.12"
1894- checksum : 10c0/7e8dd0c3eeddcd3b791c94db6d2bd0ea5cc3ada982c3de2c8a6c94f10d8217232a3f37a87ff4c2da7809a1026f755e3776c8c0a0f1f48fa42f0d12ebcf62f2c6
1894+ checksum : 10c0/dca7eef87543fdff6d9b8a027bf996ac4102e4e275dd4bb133ed67edd42ca75b1daa634df864a2b7c61e273ea55239f8ca782be94550e482d9fd600507361501
18951895 languageName : node
18961896 linkType : hard
18971897
@@ -1926,7 +1926,7 @@ __metadata:
19261926 " @commitlint/cli " : " npm:^20.1.0"
19271927 " @commitlint/config-conventional " : " npm:^20.0.0"
19281928 " @gearbox-protocol/biome-config " : " npm:^1.0.13"
1929- " @gearbox-protocol/cli-utils " : " npm:^5.60.1 "
1929+ " @gearbox-protocol/cli-utils " : " npm:^5.60.2 "
19301930 " @gearbox-protocol/liquidator-contracts " : " npm:^1.36.0-experimental.41"
19311931 " @gearbox-protocol/liquidator-v2-contracts " : " npm:^2.4.0"
19321932 " @gearbox-protocol/sdk " : " npm:11.6.3"
You can’t perform that action at this time.
0 commit comments