From b90c148c88e951aea1079b584923861b00d50671 Mon Sep 17 00:00:00 2001 From: kev1n-peters <96065607+kev1n-peters@users.noreply.github.com> Date: Mon, 16 Dec 2024 09:55:52 -0600 Subject: [PATCH] added Worldchain blockTimeMilliseconds entry (#749) --- core/base/src/constants/finality.ts | 7 ++++--- core/definitions/src/contracts.ts | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/core/base/src/constants/finality.ts b/core/base/src/constants/finality.ts index 63fc9f97e..b7963a67a 100644 --- a/core/base/src/constants/finality.ts +++ b/core/base/src/constants/finality.ts @@ -28,7 +28,7 @@ const finalityThresholds = [ ["Solana", 32], ["Ethereum", 72], // between 64 and 95 blocks; use 72 as a middle ground ["Bsc", 15], - // Checkpointed to L1 after ~512 blocks + // Check-pointed to L1 after ~512 blocks ["Optimism", 512], ["Base", 512], ["Arbitrum", 4096], // TODO: validate, this is inferred from vaa metrics timing @@ -36,7 +36,8 @@ const finalityThresholds = [ ["Xlayer", 300], ["Scroll", 300], ["Mantle", 512], - // Checkpointed after 32 blocks + ["Worldchain",512], + // Check-pointed after 32 blocks ["Polygon", 32], // Single block finality ["Fantom", 1], @@ -61,7 +62,6 @@ const finalityThresholds = [ ["Berachain", 1], ["Snaxchain", 512], ["Unichain", 512], - ["Worldchain",512], ["Ink", 512], ["Cosmoshub", 0], ["Evmos", 0], @@ -132,6 +132,7 @@ const blockTimeMilliseconds = [ ["Terra2", 6_000], ["Xpla", 5_000], ["Xlayer", 3_000], + ["Worldchain", 2_000], ["Wormchain", 5_000], ["Btc", 600_000], ["Pythnet", 400], diff --git a/core/definitions/src/contracts.ts b/core/definitions/src/contracts.ts index 1268b3157..eef9beb9a 100644 --- a/core/definitions/src/contracts.ts +++ b/core/definitions/src/contracts.ts @@ -1,7 +1,7 @@ import type { Chain, Network } from "@wormhole-foundation/sdk-base"; import { contracts } from "@wormhole-foundation/sdk-base"; -// Allow contracts to be passed that arent +// Allow contracts to be passed that aren't // part of the known contract set type UnknownContracts = Record;