Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bump transaction fee & retry if stuck (polygon only) #597

Merged
merged 5 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading