Skip to content

Commit

Permalink
chore: Bump constants for Unichain defs
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl committed Feb 11, 2025
1 parent 189f705 commit eadc706
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@across-protocol/sdk",
"author": "UMA Team",
"version": "4.1.8",
"version": "4.1.9",
"license": "AGPL-3.0",
"homepage": "https://docs.across.to/reference/sdk",
"files": [
Expand Down Expand Up @@ -99,7 +99,7 @@
},
"dependencies": {
"@across-protocol/across-token": "^1.0.0",
"@across-protocol/constants": "^3.1.32",
"@across-protocol/constants": "^3.1.33",
"@across-protocol/contracts": "4.0.0",
"@eth-optimism/sdk": "^3.3.1",
"@ethersproject/bignumber": "^5.7.0",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/BlockUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ const defaultHighBlockOffset = 10;
const cacheTTL = 60 * 15;
const now = getCurrentTime(); // Seed the cache with initial values.
const blockTimes: { [chainId: number]: BlockTimeAverage } = {
[CHAIN_IDs.DOCTOR_WHO]: { average: 1, timestamp: now, blockRange: 1 },
[CHAIN_IDs.INK]: { average: 1, timestamp: now, blockRange: 1 },
[CHAIN_IDs.LINEA]: { average: 3, timestamp: now, blockRange: 1 },
[CHAIN_IDs.MAINNET]: { average: 12.5, timestamp: now, blockRange: 1 },
[CHAIN_IDs.OPTIMISM]: { average: 2, timestamp: now, blockRange: 1 },
[CHAIN_IDs.UNICHAIN]: { average: 1, timestamp: now, blockRange: 1 },
};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/utils/NetworkUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ export function chainIsCCTPEnabled(chainId: number): boolean {
// Mainnets
CHAIN_IDs.ARBITRUM,
CHAIN_IDs.BASE,
CHAIN_IDs.DOCTOR_WHO,
CHAIN_IDs.OPTIMISM,
CHAIN_IDs.POLYGON,
CHAIN_IDs.UNICHAIN,
// Testnets
CHAIN_IDs.BASE_SEPOLIA,
CHAIN_IDs.OPTIMISM_SEPOLIA,
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
resolved "https://registry.yarnpkg.com/@across-protocol/constants/-/constants-3.1.32.tgz#402cccb942f9dc4eb8dde5de7cf801835338c673"
integrity sha512-vSh0pKTE2mwM97Bv9WYCgJ51Pnw29xSKnfbgoSuEhCGrw6GGMeElcwiUqQeZNlF8eMn16y7KcymXR9X4i2sTMA==

"@across-protocol/constants@^3.1.33":
version "3.1.33"
resolved "https://registry.yarnpkg.com/@across-protocol/constants/-/constants-3.1.33.tgz#83e63c628209ab57a3d5e59b0d89adab01461864"
integrity sha512-WqZu+S6qYIxUpTR4UsnpxdS2avlyQG8bpy+DdCSDAx6kLLR9UQu9JsWB+oh5hOY35zQMaQ6gXxcrXoZAdV9lQw==

"@across-protocol/[email protected]":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@across-protocol/contracts/-/contracts-4.0.0.tgz#d263f23ae37e0e71b66d9f3c760ffe6d2af9dccd"
Expand Down

0 comments on commit eadc706

Please sign in to comment.