Skip to content

Commit 9a99dce

Browse files
authored
feat: bump transaction fee & retry if stuck (polygon only) (#597)
* bump tx fee and retry * fix timeout parameters * update package-lock * bump node version * fix dependencies
1 parent 5941ce8 commit 9a99dce

File tree

11 files changed

+16106
-23541
lines changed

11 files changed

+16106
-23541
lines changed

Diff for: .github/workflows/coverage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup node
2222
uses: actions/setup-node@v2
2323
with:
24-
node-version: "16.20.0"
24+
node-version: "18.20.0"
2525

2626
- name: Setup SSH to install dependencies
2727
uses: webfactory/[email protected]

Diff for: .github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup node
1818
uses: actions/setup-node@v2
1919
with:
20-
node-version: "16.20.0"
20+
node-version: "18.20.0"
2121

2222
- name: Setup SSH to install dependencies
2323
uses: webfactory/[email protected]

Diff for: .github/workflows/slither.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup node
2828
uses: actions/setup-node@v2
2929
with:
30-
node-version: "16.20.0"
30+
node-version: "18.20.0"
3131

3232
- name: Setup SSH to install dependencies
3333
uses: webfactory/[email protected]

Diff for: .github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup node
2222
uses: actions/setup-node@v2
2323
with:
24-
node-version: "16.20.0"
24+
node-version: "18.20.0"
2525

2626
- name: Setup SSH to install dependencies
2727
uses: webfactory/[email protected]

Diff for: .npmrc

-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
# disable optional dependencies
2-
optional = false

Diff for: .nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.20
1+
18.20

Diff for: hardhat.config.js

+8-3
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ module.exports = {
158158
count: 10,
159159
},
160160
signerId: process.env.SIGNER || undefined,
161+
gasMultiplier: parseFloat(process.env.GAS_PRICE_MULTIPLIER) || 1,
162+
increaseFactor: parseInt(process.env.GAS_INCREASE_FACTOR) || 135, // base 100 (35% increase by default)
163+
maxRetries: parseInt(process.env.TX_MAX_RETRIES) || 5, // 5 maximum retries for a tx
164+
txTimeoutMs: parseInt(process.env.TX_TIMEOUT_MS) || 5 * 60 * 1000, // 5 minutes in milliseconds (timeout for each tx send to the network)
165+
timeout: parseInt(process.env.TX_TIMEOUT_MS) || 5 * 60 * 1000, // in milliseconds (timeout for the http request needs to match the txTimeout)
161166
},
162167
avalanche: {
163168
url: process.env.ETH_NODE_URL,
@@ -214,10 +219,10 @@ module.exports = {
214219

215220
etherscan: {
216221
apiKey: {
217-
goerli: process.env.ETHERSCAN_API_KEY,
218-
sepolia: process.env.ETHERSCAN_API_KEY,
219-
gnosis: process.env.ETHERSCAN_API_KEY,
220222
mainnet: process.env.ETHERSCAN_API_KEY,
223+
polygon: process.env.ETHERSCAN_API_KEY,
224+
gnosis: process.env.ETHERSCAN_API_KEY,
225+
sepolia: process.env.ETHERSCAN_API_KEY,
221226
},
222227
},
223228
};

0 commit comments

Comments
 (0)