Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added Worldchain blockTimeMilliseconds entry #749

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions core/base/src/constants/finality.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,16 @@ 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
["Blast", 512],
["Xlayer", 300],
["Scroll", 300],
["Mantle", 512],
// Checkpointed after 32 blocks
["Worldchain",512],
// Check-pointed after 32 blocks
["Polygon", 32],
// Single block finality
["Fantom", 1],
Expand All @@ -61,7 +62,6 @@ const finalityThresholds = [
["Berachain", 1],
["Snaxchain", 512],
["Unichain", 512],
["Worldchain",512],
["Ink", 512],
["Cosmoshub", 0],
["Evmos", 0],
Expand Down Expand Up @@ -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],
Expand Down
2 changes: 1 addition & 1 deletion core/definitions/src/contracts.ts
Original file line number Diff line number Diff line change
@@ -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<string, any>;

Expand Down
Loading