Skip to content

Commit

Permalink
feat: add script to generate block finality difference (#188)
Browse files Browse the repository at this point in the history
* chore: add tag for finality

* feat: add script for printing avg and max difference in latest and finalized blocks

* refactor: update script description and remove unused params

* refactor: address PR comments

* refactor: address PR comments
  • Loading branch information
blockchainguyy authored Mar 18, 2024
1 parent b36e62b commit bff2822
Show file tree
Hide file tree
Showing 5 changed files with 271 additions and 53 deletions.
76 changes: 57 additions & 19 deletions axelar-chains-config/info/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@
"staticGasOptions": {
"gasLimit": 3000000,
"gasPrice": 150000000000
}
},
"finality": "finalized",
"approxFinalityWaitTime": 40
},
"avalanche": {
"name": "Avalanche",
Expand Down Expand Up @@ -242,7 +244,9 @@
"staticGasOptions": {
"gasLimit": 3000000,
"gasPrice": 150000000000
}
},
"finality": "finalized",
"approxFinalityWaitTime": 1
},
"fantom": {
"name": "Fantom",
Expand Down Expand Up @@ -366,7 +370,9 @@
"staticGasOptions": {
"gasLimit": 3000000,
"gasPrice": 1000000000000
}
},
"finality": "1",
"approxFinalityWaitTime": 1
},
"polygon": {
"name": "Polygon",
Expand Down Expand Up @@ -489,7 +495,9 @@
"staticGasOptions": {
"gasLimit": 3000000,
"gasPrice": 350000000000
}
},
"finality": "finalized",
"approxFinalityWaitTime": 5
},
"moonbeam": {
"name": "Moonbeam",
Expand Down Expand Up @@ -609,7 +617,9 @@
"staticGasOptions": {
"gasLimit": 3000000,
"gasPrice": 625000000000
}
},
"finality": "finalized",
"approxFinalityWaitTime": 1
},
"binance": {
"name": "Binance",
Expand Down Expand Up @@ -734,7 +744,9 @@
"staticGasOptions": {
"gasLimit": 3000000,
"gasPrice": 30000000000
}
},
"finality": "finalized",
"approxFinalityWaitTime": 2
},
"arbitrum": {
"name": "Arbitrum",
Expand Down Expand Up @@ -855,7 +867,9 @@
"staticGasOptions": {
"gasLimit": 3000000,
"gasPrice": 2000000000
}
},
"finality": "finalized",
"approxFinalityWaitTime": 25
},
"celo": {
"name": "Celo",
Expand Down Expand Up @@ -977,7 +991,9 @@
"staticGasOptions": {
"gasLimit": 3000000,
"gasPrice": 100000000000
}
},
"finality": "1",
"approxFinalityWaitTime": 1
},
"kava": {
"name": "Kava",
Expand Down Expand Up @@ -1097,7 +1113,9 @@
"staticGasOptions": {
"gasLimit": 3000000,
"gasPrice": 50000000000
}
},
"finality": "finalized",
"approxFinalityWaitTime": 1
},
"filecoin": {
"name": "Filecoin",
Expand Down Expand Up @@ -1221,7 +1239,9 @@
"staticGasOptions": {
"gasLimit": 100000000,
"maxFeePerGas": 1000000000
}
},
"finality": "120",
"approxFinalityWaitTime": 60
},
"optimism": {
"name": "Optimism",
Expand Down Expand Up @@ -1345,7 +1365,9 @@
"staticGasOptions": {
"gasLimit": 3000000,
"gasPrice": 10000000000
}
},
"finality": "finalized",
"approxFinalityWaitTime": 25
},
"linea": {
"name": "Linea",
Expand Down Expand Up @@ -1469,7 +1491,9 @@
"gasOptions": {
"gasLimit": 8000000,
"gasPriceAdjustment": 2
}
},
"finality": "400",
"approxFinalityWaitTime": 30
},
"base": {
"name": "Base",
Expand Down Expand Up @@ -1590,7 +1614,9 @@
"staticGasOptions": {
"gasLimit": 3000000,
"gasPrice": 10000000000
}
},
"finality": "finalized",
"approxFinalityWaitTime": 30
},
"mantle": {
"name": "Mantle",
Expand Down Expand Up @@ -1715,7 +1741,9 @@
"staticGasOptions": {
"gasLimit": 3000000,
"gasPrice": 25000000000
}
},
"finality": "9000",
"approxFinalityWaitTime": 60
},
"scroll": {
"name": "Scroll",
Expand Down Expand Up @@ -1833,7 +1861,9 @@
"staticGasOptions": {
"gasLimit": 3000000,
"gasPrice": 25000000000
}
},
"finality": "finalized",
"approxFinalityWaitTime": 60
},
"centrifuge": {
"name": "Centrifuge",
Expand Down Expand Up @@ -1930,7 +1960,9 @@
"staticGasOptions": {
"gasLimit": 3000000,
"gasPrice": 40
}
},
"finality": "finalized",
"approxFinalityWaitTime": 1
},
"immutable": {
"name": "Immutable",
Expand Down Expand Up @@ -2006,7 +2038,9 @@
"name": "Immutable Explorer",
"url": "https://explorer.immutable.com",
"api": "https://explorer.immutable.com/api"
}
},
"finality": "1",
"approxFinalityWaitTime": 1
},
"fraxtal": {
"name": "Fraxtal",
Expand Down Expand Up @@ -2120,7 +2154,9 @@
"staticGasOptions": {
"gasLimit": 3000000,
"gasPrice": 5001270
}
},
"finality": "finalized",
"approxFinalityWaitTime": 80
},
"blast": {
"name": "Blast",
Expand Down Expand Up @@ -2234,7 +2270,9 @@
"staticGasOptions": {
"gasLimit": 3000000,
"gasPrice": 5641495
}
},
"finality": "finalized",
"approxFinalityWaitTime": 25
}
},
"axelar": {
Expand Down
56 changes: 42 additions & 14 deletions axelar-chains-config/info/stagenet.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@
"explorer": {
"url": "https://goerli.etherscan.io",
"api": "https://api-goerli.etherscan.io/api"
}
},
"finality": "finalized",
"approxFinalityWaitTime": 40
},
"avalanche": {
"name": "Avalanche",
Expand Down Expand Up @@ -166,7 +168,9 @@
"explorer": {
"url": "https://testnet.snowtrace.io",
"api": "https://api-testnet.snowtrace.io/api"
}
},
"finality": "finalized",
"approxFinalityWaitTime": 1
},
"fantom": {
"name": "Fantom",
Expand Down Expand Up @@ -248,7 +252,9 @@
"explorer": {
"url": "https://testnet.ftmscan.com",
"api": "https://api-testnet.ftmscan.com/api"
}
},
"finality": "1",
"approxFinalityWaitTime": 1
},
"polygon": {
"name": "Polygon",
Expand Down Expand Up @@ -330,7 +336,9 @@
"explorer": {
"url": "https://mumbai.polygonscan.com",
"api": "https://api-testnet.polygonscan.com/api"
}
},
"finality": "finalized",
"approxFinalityWaitTime": 5
},
"moonbeam": {
"name": "Moonbeam",
Expand Down Expand Up @@ -412,7 +420,9 @@
"explorer": {
"url": "https://moonbase.moonscan.io",
"api": "https://api-moonbase.moonscan.io/api"
}
},
"finality": "finalized",
"approxFinalityWaitTime": 1
},
"binance": {
"name": "Binance",
Expand Down Expand Up @@ -494,7 +504,9 @@
"explorer": {
"url": "https://testnet.bscscan.com",
"api": "https://api-testnet.bscscan.com/api"
}
},
"finality": "finalized",
"approxFinalityWaitTime": 1
},
"arbitrum": {
"name": "Arbitrum",
Expand Down Expand Up @@ -579,7 +591,9 @@
"explorer": {
"url": "https://goerli.arbiscan.io",
"api": "https://api-goerli.arbiscan.io/api"
}
},
"finality": "finalized",
"approxFinalityWaitTime": 25
},
"kava": {
"name": "Kava",
Expand Down Expand Up @@ -661,7 +675,9 @@
"explorer": {
"url": "https://explorer.evm-alpha.kava.io",
"api": ""
}
},
"finality": "finalized",
"approxFinalityWaitTime": 1
},
"optimism": {
"name": "Optimism",
Expand Down Expand Up @@ -746,7 +762,9 @@
},
"gasOptions": {
"gasLimit": 5000000
}
},
"finality": "finalized",
"approxFinalityWaitTime": 25
},
"base": {
"name": "Base",
Expand Down Expand Up @@ -830,7 +848,9 @@
},
"gasOptions": {
"gasLimit": 5000000
}
},
"finality": "finalized",
"approxFinalityWaitTime": 30
},
"immutable-devnet": {
"name": "immutable-devnet",
Expand Down Expand Up @@ -926,7 +946,9 @@
"explorer": {
"url": "",
"api": ""
}
},
"finality": "1",
"approxFinalityWaitTime": 1
},
"ethereum-sepolia": {
"name": "Ethereum-Sepolia",
Expand Down Expand Up @@ -995,7 +1017,9 @@
"gasOptions": {
"maxFeePerGas": 110000000,
"maxPriorityFeePerGas": 100000000
}
},
"finality": "finalized",
"approxFinalityWaitTime": 40
},
"arbitrum-sepolia": {
"name": "Arbitrum-Sepolia",
Expand Down Expand Up @@ -1060,7 +1084,9 @@
"explorer": {
"url": "https://sepolia.arbiscan.io",
"api": "https://api-sepolia.arbiscan.io/api"
}
},
"finality": "finalized",
"approxFinalityWaitTime": 25
},
"centrifuge": {
"name": "Centrifuge",
Expand Down Expand Up @@ -1125,7 +1151,9 @@
"explorer": {
"url": "",
"api": ""
}
},
"finality": "1",
"approxFinalityWaitTime": 1
}
},
"axelar": {
Expand Down
Loading

0 comments on commit bff2822

Please sign in to comment.