From 5a0053dd898acfeaebbc521e36ed4fbe131f041c Mon Sep 17 00:00:00 2001 From: pk910 Date: Fri, 1 Dec 2023 17:21:05 +0100 Subject: [PATCH] added gas settings to powfaucet chart (#260) --- charts/powfaucet/Chart.yaml | 2 +- charts/powfaucet/README.md | 5 ++++- charts/powfaucet/values.yaml | 15 ++++++++++++--- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/charts/powfaucet/Chart.yaml b/charts/powfaucet/Chart.yaml index c3302d8e..784cf2e0 100644 --- a/charts/powfaucet/Chart.yaml +++ b/charts/powfaucet/Chart.yaml @@ -6,7 +6,7 @@ home: https://github.com/pk910/PoWFaucet sources: - https://github.com/pk910/PoWFaucet type: application -version: 0.0.3 +version: 0.0.4 appVersion: "2.0.0" maintainers: - name: pk910 diff --git a/charts/powfaucet/README.md b/charts/powfaucet/README.md index 334886c0..d2741d6c 100644 --- a/charts/powfaucet/README.md +++ b/charts/powfaucet/README.md @@ -1,7 +1,7 @@ # powfaucet -![Version: 0.0.3](https://img.shields.io/badge/Version-0.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) +![Version: 0.0.4](https://img.shields.io/badge/Version-0.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) PoW Faucet for EVM chains @@ -87,6 +87,9 @@ faucetPowRewardPerHash: 500000000000000000 # 0.5 ETH | faucetRecurringLimitsEnabled | bool | `true` | Enable recurring module (enforce limits for recurring users) | | faucetRpcUrl | string | `"http://your-el-node:8545"` | Faucet el node rpc | | faucetTitle | string | `"PoW Faucet"` | Faucet title | +| faucetTxGasLimit | int | `21000` | Transaction gas limit | +| faucetTxMaxFee | int | `100000000000` | Max transaction gas fee (in wei) | +| faucetTxMaxPrioFee | int | `2000000000` | Max transaction priority fee (in wei) | | fullnameOverride | string | `""` | Overrides the chart's computed fullname | | httpPort | int | `8080` | HTTP port for faucet interface | | httpProxyCount | int | `1` | number of HTTP proxies in front of the faucet | diff --git a/charts/powfaucet/values.yaml b/charts/powfaucet/values.yaml index d8c8cc42..37fb8481 100644 --- a/charts/powfaucet/values.yaml +++ b/charts/powfaucet/values.yaml @@ -184,6 +184,15 @@ faucetExplorerLink: "https://your-el-block-explorer.com/tx/{txid}" # -- Additional html to show on the faucet page faucetHomeHtml: "" +# -- Transaction gas limit +faucetTxGasLimit: 21000 + +# -- Max transaction gas fee (in wei) +faucetTxMaxFee: 100000000000 + +# -- Max transaction priority fee (in wei) +faucetTxMaxPrioFee: 2000000000 + # -- Minimum drop amount in wei faucetMinDropWei: 1000000000000000000 # 1 ETH @@ -362,7 +371,7 @@ config: | # transaction gas limit # use 21000 to prevent transactions to contracts - ethTxGasLimit: 21000 + ethTxGasLimit: {{ .Values.faucetTxGasLimit }} # use legacy (non-eip1559) transaction type # true: Type 0 (Legacy Transactions), false: Type 2 (EIP1559 Transactions) @@ -370,10 +379,10 @@ config: | # max transaction gas fee (in wei) # used as limit for legacy transactions (faucet won't build transactions with higher gas price) - ethTxMaxFee: 100000000000 # 100 gwei + ethTxMaxFee: {{ .Values.faucetTxMaxFee }} # max transaction priority fee (in wei) - ethTxPrioFee: 2000000000 # 2 gwei + ethTxPrioFee: {{ .Values.faucetTxMaxPrioFee }} # max number of unconfirmed transactions to create simultaneously ethMaxPending: 12