Skip to content

Commit

Permalink
Add block time consts
Browse files Browse the repository at this point in the history
  • Loading branch information
barnjamin committed Oct 15, 2023
1 parent 7a1e8e7 commit ec649d7
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions core/base/src/constants/finality.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<readonly [ChainName, number]>;

export const blockTime = constMap(blockTimeMilliseconds);

0 comments on commit ec649d7

Please sign in to comment.