Skip to content

Commit

Permalink
added Worldchain blockTimeMilliseconds entry (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
kev1n-peters authored Dec 16, 2024
1 parent 4b43423 commit b90c148
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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

0 comments on commit b90c148

Please sign in to comment.