Skip to content

Commit

Permalink
Added missing finality and block times (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
kev1n-peters authored Aug 22, 2024
1 parent cc33e75 commit b2283dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions core/base/src/constants/finality.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ const finalityThresholds = [
["Optimism", 512],
["Base", 512],
["Arbitrum", 4096], // TODO: validate, this is inferred from vaa metrics timing
["Blast", 512],
["Xlayer", 300],
["Scroll", 300],
["Mantle", 512],
// Checkpointed after 32 blocks
["Polygon", 32],
// Single block finality
Expand Down Expand Up @@ -84,6 +88,7 @@ const blockTimeMilliseconds = [
["Avalanche", 2_000],
["Base", 2_000],
["BaseSepolia", 2_000],
["Blast", 2_000],
["Bsc", 3_000],
["Celo", 5_000],
["Cosmoshub", 5_000],
Expand All @@ -96,6 +101,7 @@ const blockTimeMilliseconds = [
["Karura", 12_000],
["Klaytn", 1_000],
["Kujira", 3_000],
["Mantle", 2_000],
["Moonbeam", 12_000],
["Near", 1_500],
["Neon", 30_000],
Expand All @@ -106,6 +112,7 @@ const blockTimeMilliseconds = [
["Polygon", 2_000],
["PolygonSepolia", 2_000],
["Rootstock", 30_000],
["Scroll", 3_000],
["Sei", 400],
["Sepolia", 15_000],
["Solana", 400],
Expand All @@ -115,6 +122,7 @@ const blockTimeMilliseconds = [
["Terra", 6_000],
["Terra2", 6_000],
["Xpla", 5_000],
["Xlayer", 3_000],
["Wormchain", 5_000],
["Btc", 600_000],
["Pythnet", 400],
Expand Down
4 changes: 3 additions & 1 deletion core/base/src/constants/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const rpcConfig = [[
["Gnosis", "https://rpc.ankr.com/gnosis"],
["Rootstock", "https://public-node.rsk.co"],
["Mantle", "https://rpc.mantle.xyz"],
["Klaytn", "https://rpc.ankr.com/klaytn"],
]], [
"Testnet", [
["Ethereum", "https://eth-goerli.public.blastapi.io"],
Expand Down Expand Up @@ -84,7 +85,8 @@ const rpcConfig = [[
["Xlayer", "https://testrpc.xlayer.tech/"],
["Scroll", "https://rpc.ankr.com/scroll_sepolia_testnet"],
["Rootstock", "https://public-node.testnet.rsk.co"],
["Gnosis", "https://rpc.chiadochain.net"]
["Gnosis", "https://rpc.chiadochain.net"],
["Klaytn", "https://rpc.ankr.com/klaytn_testnet"],
]], [
"Devnet", [
["Ethereum", "http://eth-devnet:8545"],
Expand Down

0 comments on commit b2283dc

Please sign in to comment.