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

ci(GasService): update GasInfo every 2 hours #202

Merged
merged 57 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
55291d4
feat(GasService): script with gas service commands
re1ro Mar 20, 2024
b2923de
fix(GasService): moving extra gas service methods to a separate branch
re1ro Mar 20, 2024
b096699
Update evm/gas-service.js
re1ro Mar 20, 2024
9a2180a
Update evm/gas-service.js
re1ro Mar 20, 2024
8805eb0
fix(GasService): moving extra gas service methods to a separate branch
re1ro Mar 20, 2024
682ba06
Update evm/gas-service.js
re1ro Mar 21, 2024
e14eccf
Update evm/gas-service.js
re1ro Mar 21, 2024
94b9f47
config(GasService): gas estimation params
re1ro Mar 21, 2024
a0db8a4
fix(GasService): PR feedback
re1ro Mar 21, 2024
04528e5
fix(lint): prettier
re1ro Mar 21, 2024
f7d9efe
fix(GasService): PR feedback
re1ro Mar 21, 2024
f98da48
Update axelar-chains-config/info/stagenet.json
re1ro Mar 21, 2024
d06a4b3
Update evm/gas-service.js
re1ro Mar 21, 2024
b543814
Update evm/gas-service.js
re1ro Mar 21, 2024
8a51741
Update evm/gas-service.js
re1ro Mar 21, 2024
89634fa
fix: lint error & trailing spaces
deanamiel Mar 21, 2024
08f565c
Update evm/gas-service.js
re1ro Mar 21, 2024
a0dc655
fix(GasService): PR feedback
re1ro Mar 21, 2024
e233ce8
fix(GasService): PR feedback
re1ro Mar 21, 2024
ccbe96e
feat(GasService): calling updateGasInfo through Operators
re1ro Mar 21, 2024
b622e3a
refactor(GasService): PR feedback
re1ro Mar 21, 2024
fda1217
refactor(GasService): calculating gas in floating numbers
re1ro Mar 21, 2024
5fadade
fix(GasService): flow
re1ro Mar 22, 2024
7a04d1e
feat(GasService): added AxelarScan gas estimate
re1ro Mar 22, 2024
0b22fec
refactor(GasService): converting floating numbers to integer strings
re1ro Mar 22, 2024
2659150
feat(GasService): adding support for express estimation
re1ro Mar 22, 2024
7fefda1
style(JS): prettier
re1ro Mar 22, 2024
eb929c8
fix(GasService): updated estimation script
re1ro Mar 24, 2024
fee1253
Merge branch 'main' into feat/gas-service
re1ro Mar 26, 2024
2d2492a
chore(npm): CGP version bump
re1ro Mar 26, 2024
996a11b
style(JS): prettier
re1ro Mar 26, 2024
3f1cd57
Merge branch 'main' into feat/gas-service
re1ro Mar 26, 2024
f15a6ef
Merge branch 'main' into feat/gas-service
re1ro Mar 28, 2024
da949af
ci(GasService): update GasInfo every 2 hours
re1ro Mar 28, 2024
9974280
style(yaml): prettier
re1ro Mar 28, 2024
c9503a9
ci(GasService): update GasInfo manually
re1ro Mar 28, 2024
da3f7a8
style(yaml): prettier
re1ro Mar 28, 2024
1600842
ci(GasService): update GasInfo on pr
re1ro Mar 28, 2024
26ccb62
ci(GasService): update GasInfo with -y
re1ro Mar 28, 2024
99bb9b8
fix(GasService): toBigNumberString
re1ro Mar 28, 2024
25c74cf
fix(GasService): better logging
re1ro Mar 28, 2024
34efbc0
feat(GasService): update for all chains
re1ro Mar 28, 2024
627d1d0
fix(GasService): testnet config
re1ro Mar 28, 2024
6e75de2
fix(GasService): error handling
re1ro Mar 29, 2024
4653b34
Merge branch 'feat/gas-service' into feat/gas-update-job
re1ro Mar 29, 2024
c6379a6
style(JS): prettier
re1ro Mar 29, 2024
db4075e
ci(GasService): test GasInfo fail
re1ro Mar 29, 2024
6bfb75c
ci(GasService): test GasInfo fail
re1ro Mar 29, 2024
8ab1bd9
ci(GasService): revert GasInfo fail
re1ro Mar 29, 2024
b37bb38
ci(GasService): remove GasUpdate on PR
re1ro Mar 29, 2024
22a0066
fix(GasService): testnet config
re1ro Mar 29, 2024
5326898
Update .github/workflows/update-gas-info.yaml
re1ro Apr 8, 2024
856d5bf
Merge branch 'refs/heads/main' into feat/gas-update-job
re1ro Apr 8, 2024
86b19db
fix(GasService): merge conflicts
re1ro Apr 8, 2024
d5b6e9d
Merge branch 'main' into feat/gas-update-job
re1ro Apr 10, 2024
9e0b757
fix(GasEstimation): estimateMultiplier
re1ro Apr 10, 2024
b562155
fix(GasService): testnet config
re1ro Apr 10, 2024
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
53 changes: 53 additions & 0 deletions .github/workflows/update-gas-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: 'Update Gas Info on Testnet'

on:
workflow_dispatch:
inputs:
environment:
description: Environment to update gas info on
required: true
default: testnet
type: choice
options:
- testnet
- mainnet
- stagenet

schedule:
- cron: '0 */2 * * *'

re1ro marked this conversation as resolved.
Show resolved Hide resolved
jobs:
update-gas:
name: 'Update Gas Info'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: |
if [ "${{ github.event_name }}" == "schedule" ]; then
ENV="testnet"
else
ENV="${{ github.event.inputs.environment }}"
fi

case "$ENV" in
testnet)
PRIVATE_KEY="${{ secrets.TESTNET_PRIVATE_KEY }}"
;;
mainnet)
PRIVATE_KEY="${{ secrets.MAINNET_PRIVATE_KEY }}"
;;
stagenet)
PRIVATE_KEY="${{ secrets.STAGENET_PRIVATE_KEY }}"
;;
esac

echo "PRIVATE_KEY=$PRIVATE_KEY" >> .env
echo "ENV=$ENV" >> .env
echo "CHAINS=all" >> .env

node evm/operators.js --action updateGasInfo --chains $(echo $(jq -r '.chains | keys | join(" ")' axelar-chains-config/info/$ENV.json))
milapsheth marked this conversation as resolved.
Show resolved Hide resolved
20 changes: 16 additions & 4 deletions axelar-chains-config/info/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@
"gasPrice": 150000000000
},
"finality": "finalized",
"approxFinalityWaitTime": 40
"approxFinalityWaitTime": 40,
"onchainGasEstimate": {
"blobBaseFee": 1
}
},
"avalanche": {
"name": "Avalanche",
Expand Down Expand Up @@ -1367,7 +1370,11 @@
"gasPrice": 10000000000
},
"finality": "finalized",
"approxFinalityWaitTime": 25
"approxFinalityWaitTime": 25,
"onchainGasEstimate": {
"l1ChainName": "ethereum",
"gasEstimationType": 1
}
},
"linea": {
"name": "Linea",
Expand Down Expand Up @@ -1616,7 +1623,11 @@
"gasPrice": 10000000000
},
"finality": "finalized",
"approxFinalityWaitTime": 30
"approxFinalityWaitTime": 30,
"onchainGasEstimate": {
"l1ChainName": "ethereum",
"gasEstimationType": 1
}
},
"mantle": {
"name": "Mantle",
Expand Down Expand Up @@ -2278,6 +2289,7 @@
"rpc": "https://rpc-axelar.imperator.co:443",
"lcd": "https://lcd-axelar.imperator.co:443",
"grpc": "grpc-axelar.imperator.co:2062",
"tokenSymbol": "AXL"
"tokenSymbol": "AXL",
"axelarscanApi": "https://api.axelarscan.io"
}
}
20 changes: 18 additions & 2 deletions axelar-chains-config/info/stagenet.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@
"api": "https://api-goerli.etherscan.io/api"
},
"finality": "finalized",
"approxFinalityWaitTime": 40
"approxFinalityWaitTime": 40,
"onchainGasEstimate": {
"blobBaseFee": 50187563959
}
},
"avalanche": {
"name": "Avalanche",
Expand Down Expand Up @@ -763,6 +766,10 @@
"gasOptions": {
"gasLimit": 5000000
},
"onchainGasEstimate": {
"l1ChainName": "ethereum",
"gasEstimationType": 1
},
"finality": "finalized",
"approxFinalityWaitTime": 25
},
Expand Down Expand Up @@ -849,6 +856,10 @@
"gasOptions": {
"gasLimit": 5000000
},
"onchainGasEstimate": {
"l1ChainName": "ethereum",
"gasEstimationType": 1
},
"finality": "finalized",
"approxFinalityWaitTime": 30
},
Expand Down Expand Up @@ -1018,6 +1029,10 @@
"maxFeePerGas": 110000000,
"maxPriorityFeePerGas": 100000000
},
"onchainGasEstimate": {
"chainName": "ethereum",
"blobBaseFee": 50187563959
},
"finality": "finalized",
"approxFinalityWaitTime": 40
},
Expand Down Expand Up @@ -1162,6 +1177,7 @@
"rpc": "",
"lcd": "",
"grpc": "",
"tokenSymbol": "AXL"
"tokenSymbol": "AXL",
"axelarscanApi": "https://testnet.api.axelarscan.io"
}
}
36 changes: 26 additions & 10 deletions axelar-chains-config/info/testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@
"gasLimit": 8000000
},
"finality": "finalized",
"approxFinalityWaitTime": 40
"approxFinalityWaitTime": 40,
"onchainGasEstimate": {
"blobBaseFee": 50187563959
}
},
"avalanche": {
"name": "Avalanche",
Expand Down Expand Up @@ -1147,10 +1150,11 @@
"salt": "AxelarGateway v6.2"
},
"AxelarGasService": {
"collector": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"address": "0xbE406F0189A0B4cf3A05C286473D23791Dd44Cc6",
"implementation": "0x5168950236fdc05708468a4e7F6eDd5E092AFC7e",
"deployer": "0x5b593E7b1725dc6FcbbFe80b2415B19153F94A85"
"collector": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"address": "0xF08bF9DA7ae1f63AD240A2643485AbA8F2E30c59",
"implementation": "0x03314Cd91da2f9989453D4B1af1F20F1dA7a1530",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"salt": "AxelarGasService"
},
"AxelarDepositService": {
"wrappedSymbol": "",
Expand Down Expand Up @@ -1402,10 +1406,11 @@
"salt": "Operators"
},
"AxelarGasService": {
"collector": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"address": "0xbE406F0189A0B4cf3A05C286473D23791Dd44Cc6",
"implementation": "0xCD6b34FaF1FD1056C728A27426AB6807f84BAa1b",
"deployer": "0x5b593E7b1725dc6FcbbFe80b2415B19153F94A85"
"collector": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"address": "0xF08bF9DA7ae1f63AD240A2643485AbA8F2E30c59",
"implementation": "0x03314Cd91da2f9989453D4B1af1F20F1dA7a1530",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"salt": "AxelarGasService"
},
"InterchainTokenService": {
"salt": "ITS v1.2.4",
Expand Down Expand Up @@ -1643,6 +1648,11 @@
"gasOptions": {
"gasLimit": 8000000
},
"onchainGasEstimate": {
"chainName": "optimism",
"l1ChainName": "ethereum",
"gasEstimationType": 1
},
"confirmations": 3,
"explorer": {
"name": "Opscan",
Expand Down Expand Up @@ -1751,6 +1761,11 @@
"gasOptions": {
"gasLimit": 8000000
},
"onchainGasEstimate": {
"chainName": "base",
"l1ChainName": "ethereum",
"gasEstimationType": 1
},
"confirmations": 2,
"explorer": {
"name": "Basescan",
Expand Down Expand Up @@ -2072,6 +2087,7 @@
"rpc": "https://rpc-axelar-testnet.imperator.co:443",
"lcd": "https://lcd-axelar-testnet.imperator.co:443",
"grpc": "grpc-axelar-testnet.imperator.co:2062",
"tokenSymbol": "AXL"
"tokenSymbol": "AXL",
"axelarscanApi": "https://testnet.api.axelarscan.io"
}
}
Loading
Loading