tx rejected if given fees < gas * min-gas-price set by the node
tx fails mid-execution if it runs out of given gas
Fees not set, gas price set to Xalnt:
# Example
gas:
fees:
gasPrice: 1alnt
gas config ignored
uses auto fee calculation using gas estimation with default multiplier (2) value from registry-sdk
tx rejected if given gasPrice < min-gas-price set by the node
tx fails mid-execution if it runs out of calculated gas
Fees set to a X (without alnt suffix), gas price set to Yalnt:
# Example
gas:
fees: 1.8
gasPrice: 1alnt
gas config ignored
uses auto fee calculation using gas estimation with fees as the multiplier
tx rejected if given gasPrice < min-gas-price set by the node
tx fails mid-execution if it runs out of calculated gas, can be retried with a higher gas estimation multiplier (fees)
Fees and gas price both not set:
# Example
gas:
fees:
gasPrice:
gas config ignored
uses auto fee calculation using gas estimation
throws error:
Gas price must be set in the client options when auto gas is used.
The provided config can be overridden with CLI args if required.
Part of [Create a public laconicd testnet](https://www.notion.so/Create-a-public-laconicd-testnet-896a11bdd8094eff8f1b49c0be0ca3b8)
Requires https://git.vdb.to/cerc-io/registry-sdk/pulls/22
Behaviour in different configuration scenarios:
- Gas set, fees set to `Xalnt`:
```bash
# Example
gas: 500000
fees: 500000alnt
gasPrice:
```
- `gasPrice` config ignored
- tx rejected if given `fees` < `gas` * `min-gas-price` set by the node
- tx fails mid-execution if it runs out of given `gas`
- Fees not set, gas price set to `Xalnt`:
```bash
# Example
gas:
fees:
gasPrice: 1alnt
```
- `gas` config ignored
- uses `auto` fee calculation using gas estimation with [default multiplier](https://git.vdb.to/cerc-io/registry-sdk/src/branch/main/src/constants.ts) (`2`) value from `registry-sdk`
- tx rejected if given `gasPrice` < `min-gas-price` set by the node
- tx fails mid-execution if it runs out of calculated gas
- Fees set to a `X` (without `alnt` suffix), gas price set to `Yalnt`:
```bash
# Example
gas:
fees: 1.8
gasPrice: 1alnt
```
- `gas` config ignored
- uses `auto` fee calculation using gas estimation with `fees` as the multiplier
- tx rejected if given `gasPrice` < `min-gas-price` set by the node
- tx fails mid-execution if it runs out of calculated gas, can be retried with a higher gas estimation multiplier (`fees`)
- Fees and gas price both not set:
```bash
# Example
gas:
fees:
gasPrice:
```
- `gas` config ignored
- uses `auto` fee calculation using gas estimation
- throws error:
```bash
Gas price must be set in the client options when auto gas is used.
```
The provided config can be overridden with CLI args if required.
prathamesh
changed title from [WIP] Add a config option and arg to set gas price for auto gas estimation to [WIP] Add a config option and arg to set gas price for auto fees calculation2024-08-27 11:00:30 +00:00
prathamesh
changed title from [WIP] Add a config option and arg to set gas price for auto fees calculation to [WIP] Add a config option and arg to set gas price for `auto` fees calculation2024-08-27 11:02:10 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of Create a public laconicd testnet
Requires cerc-io/registry-sdk#22
Behaviour in different configuration scenarios:
Gas set, fees set to
Xalnt:gasPriceconfig ignoredfees<gas*min-gas-priceset by the nodegasFees not set, gas price set to
Xalnt:gasconfig ignoredautofee calculation using gas estimation with default multiplier (2) value fromregistry-sdkgasPrice<min-gas-priceset by the nodeFees set to a
X(withoutalntsuffix), gas price set toYalnt:gasconfig ignoredautofee calculation using gas estimation withfeesas the multipliergasPrice<min-gas-priceset by the nodefees)Fees and gas price both not set:
gasconfig ignoredautofee calculation using gas estimationThe provided config can be overridden with CLI args if required.
[WIP] Add a config option and arg to set gas price for auto gas estimationto [WIP] Add a config option and arg to set gas price for auto fees calculation[WIP] Add a config option and arg to set gas price for auto fees calculationto [WIP] Add a config option and arg to set gas price for `auto` fees calculation2775bf7bb0to60b29e047d