From b2283dc02ee4ce8ffcd2fd4e45042c5a2aa19abf Mon Sep 17 00:00:00 2001 From: kev1n-peters <96065607+kev1n-peters@users.noreply.github.com> Date: Thu, 22 Aug 2024 09:33:59 -0600 Subject: [PATCH] Added missing finality and block times (#674) --- core/base/src/constants/finality.ts | 8 ++++++++ core/base/src/constants/rpc.ts | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/core/base/src/constants/finality.ts b/core/base/src/constants/finality.ts index a3617fda7..a1e7fbeef 100644 --- a/core/base/src/constants/finality.ts +++ b/core/base/src/constants/finality.ts @@ -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 @@ -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], @@ -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], @@ -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], @@ -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], diff --git a/core/base/src/constants/rpc.ts b/core/base/src/constants/rpc.ts index 7866307bb..ce0c2b5b2 100644 --- a/core/base/src/constants/rpc.ts +++ b/core/base/src/constants/rpc.ts @@ -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"], @@ -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"],