Add a config option and arg to set gas price for auto fees calculation #81

Merged
nabarun merged 9 commits from deep-stack/laconic-registry-cli:pm-support-auto-gas into main 2024-09-06 09:44:48 +00:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit 7e744216c8 - Show all commits

View File

@ -105,6 +105,7 @@ services:
- `gas` config ignored
- uses `auto` fee calculation using gas estimation with default multiplier value from `registry-sdk`
- tx fails mid-execution if it runs out of given gas
- Fees set to a `X` (without `alnt` suffix), gas price set to `Yalnt`:
```bash
@ -116,6 +117,7 @@ services:
- `gas` config ignored
- uses `auto` fee calculation using gas estimation with `fees` as the multiplier
- tx fails mid-execution if it runs out of given gas, can be retried with a higher gas estimation multiplier (`fees`)
- Fees and gas price both not set:
```bash
@ -132,7 +134,7 @@ services:
Gas price must be set in the client options when auto gas is used.
```
- The `gas`, `fees` and `gasPrice` can be set to some default values in the config as shown above, and can be overriden for each command using the `--gas`, `--fees` and `--gasPrice` arguments
- The `gas`, `fees` and `gasPrice` can be set to some default values in the config as shown above, and can be overriden for each command using the `--gas`, `--fees` and `--gasPrice` arguments:
```bash
# Example:

View File

@ -26,4 +26,5 @@ yargs(hideBin(process.argv))
.commandDir('cmds')
.demandCommand()
.help()
.alias('h', 'help')
.argv;