From c49dd0534bfe38976862fdeb21a459d3b9801f2d Mon Sep 17 00:00:00 2001 From: Ben Guidarelli Date: Sun, 15 Oct 2023 19:42:01 -0400 Subject: [PATCH] Add block time consts --- core/base/src/constants/finality.ts | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/core/base/src/constants/finality.ts b/core/base/src/constants/finality.ts index c86bac0c5f..c8eee25e9a 100644 --- a/core/base/src/constants/finality.ts +++ b/core/base/src/constants/finality.ts @@ -40,3 +40,42 @@ const finalityThresholds = [ >; export const finalityThreshold = constMap(finalityThresholds); + +const blockTimeMilliseconds = [ + ["Acala", 12000], + ["Algorand", 3300], + ["Aptos", 4000], + ["Arbitrum", 300], + ["Aurora", 3000], + ["Avalanche", 2000], + ["Base", 2000], + ["Bsc", 3000], + ["Celo", 5000], + ["Cosmoshub", 5000], + ["Ethereum", 15000], + ["Evmos", 2000], + ["Fantom", 2500], + ["Gnosis", 5000], + ["Injective", 2500], + ["Karura", 12000], + ["Klaytn", 1000], + ["Kujira", 3000], + ["Moonbeam", 12000], + ["Near", 1500], + ["Neon", 30000], + ["Oasis", 6000], + ["Optimism", 2000], + ["Osmosis", 6000], + ["Polygon", 2000], + ["Rootstock", 30000], + ["Sei", 400], + ["Sepolia", 15000], + ["Solana", 400], + ["Sui", 3000], + ["Terra", 6000], + ["Terra2", 6000], + ["Xpla", 5000], + ["Wormchain", 5000], +] as const satisfies RoArray; + +export const blockTime = constMap(blockTimeMilliseconds);