From a243fdd0c93e8e9b6ead07b4a8ae71c0cc98d118 Mon Sep 17 00:00:00 2001 From: John Letey Date: Wed, 27 Oct 2021 13:37:18 +0100 Subject: [PATCH] feat: add a gas multiplier flag --- package.json | 4 ++-- src/index.ts | 7 ++++++- yarn.lock | 8 ++++---- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index a0de991..8787983 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kyve/evm", - "version": "0.0.9", + "version": "0.0.10", "license": "MIT", "scripts": { "build": "tsc", @@ -9,7 +9,7 @@ "format": "prettier --write ." }, "dependencies": { - "@kyve/core": "^0.0.11", + "@kyve/core": "^0.0.12", "commander": "^8.2.0", "ethers": "^5.5.1", "object-hash": "^2.2.0" diff --git a/src/index.ts b/src/index.ts index 22ad31a..37fe70a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -30,6 +30,10 @@ cli.option( "-e, --endpoint ", "A custom Moonbase Alpha endpoint. [optional]" ); +cli.option( + "-g, --gas-multiplier ", + "The amount that you want to multiply the default gas price by. [optional]" +); cli.option( "-st, --send-statistics ", "Send statistics. [optional, default = true]", @@ -50,7 +54,8 @@ cli.version(version, "-v, --version"); options.privateKey, options.keyfile && JSON.parse(readFileSync(options.keyfile, "utf-8")), options.name, - options.endpoint + options.endpoint, + options.gasMultiplier ); node.run(uploadFunction, validateFunction); diff --git a/yarn.lock b/yarn.lock index f0a0200..d9a4ec1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -361,10 +361,10 @@ "@ethersproject/properties" "^5.5.0" "@ethersproject/strings" "^5.5.0" -"@kyve/core@^0.0.11": - version "0.0.11" - resolved "https://registry.yarnpkg.com/@kyve/core/-/core-0.0.11.tgz#6e89d060ce895eb1def454a7b7106e84da79b43f" - integrity sha512-2eC7R8/+gIuODPacYX9pAZrNIafbtV8/+kym7oYMF9/4NTcbSmOTewZ0+0t/hCemx9ZrDlKzAjJjGf1pTBEWlg== +"@kyve/core@^0.0.12": + version "0.0.12" + resolved "https://registry.yarnpkg.com/@kyve/core/-/core-0.0.12.tgz#332a3e47e920683957beac8617e8759aa414b5d7" + integrity sha512-gbDCWKUB5tKqim/SkLFPFeKTCGbvY4gGx+YwTwJqRxsnL2AhxE++mhNkysddiJweKSLeYdrzsgjJ7hocVfnQkg== dependencies: arweave "^1.10.17" base64url "^3.0.1"