Skip to content

Commit

Permalink
feat: bump transaction fee & retry if stuck (polygon only) (#597)
Browse files Browse the repository at this point in the history
* bump tx fee and retry

* fix timeout parameters

* update package-lock

* bump node version

* fix dependencies
  • Loading branch information
fforbeck authored Apr 1, 2024
1 parent 5941ce8 commit 9a99dce
Show file tree
Hide file tree
Showing 11 changed files with 16,106 additions and 23,541 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: "16.20.0"
node-version: "18.20.0"

- name: Setup SSH to install dependencies
uses: webfactory/ssh-agent@v0.5.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: "16.20.0"
node-version: "18.20.0"

- name: Setup SSH to install dependencies
uses: webfactory/ssh-agent@v0.5.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/slither.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: "16.20.0"
node-version: "18.20.0"

- name: Setup SSH to install dependencies
uses: webfactory/ssh-agent@v0.5.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: "16.20.0"
node-version: "18.20.0"

- name: Setup SSH to install dependencies
uses: webfactory/ssh-agent@v0.5.0
Expand Down
2 changes: 0 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
# disable optional dependencies
optional = false
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.20
18.20
11 changes: 8 additions & 3 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ module.exports = {
count: 10,
},
signerId: process.env.SIGNER || undefined,
gasMultiplier: parseFloat(process.env.GAS_PRICE_MULTIPLIER) || 1,
increaseFactor: parseInt(process.env.GAS_INCREASE_FACTOR) || 135, // base 100 (35% increase by default)
maxRetries: parseInt(process.env.TX_MAX_RETRIES) || 5, // 5 maximum retries for a tx
txTimeoutMs: parseInt(process.env.TX_TIMEOUT_MS) || 5 * 60 * 1000, // 5 minutes in milliseconds (timeout for each tx send to the network)
timeout: parseInt(process.env.TX_TIMEOUT_MS) || 5 * 60 * 1000, // in milliseconds (timeout for the http request needs to match the txTimeout)
},
avalanche: {
url: process.env.ETH_NODE_URL,
Expand Down Expand Up @@ -214,10 +219,10 @@ module.exports = {

etherscan: {
apiKey: {
goerli: process.env.ETHERSCAN_API_KEY,
sepolia: process.env.ETHERSCAN_API_KEY,
gnosis: process.env.ETHERSCAN_API_KEY,
mainnet: process.env.ETHERSCAN_API_KEY,
polygon: process.env.ETHERSCAN_API_KEY,
gnosis: process.env.ETHERSCAN_API_KEY,
sepolia: process.env.ETHERSCAN_API_KEY,
},
},
};
Loading

0 comments on commit 9a99dce

Please sign in to comment.