Skip to content

Commit 8febef3

Browse files
authored
feat: Support Blast constants (#550)
1 parent f22da17 commit 8febef3

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@across-protocol/contracts",
3-
"version": "3.0.4",
3+
"version": "3.0.5",
44
"author": "UMA Team",
55
"license": "AGPL-3.0-only",
66
"repository": {
@@ -32,7 +32,7 @@
3232
"prepublish": "yarn build && hardhat export --export-all ./cache/massExport.json && ts-node ./scripts/processHardhatExport.ts && prettier --write ./deployments/deployments.json && yarn generate-contract-types"
3333
},
3434
"dependencies": {
35-
"@across-protocol/constants": "^3.1.3",
35+
"@across-protocol/constants": "^3.1.5",
3636
"@defi-wonderland/smock": "^2.3.4",
3737
"@eth-optimism/contracts": "^0.5.40",
3838
"@ethersproject/abstract-provider": "5.7.0",

tasks/enableL1TokenAcrossEcosystem.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { task } from "hardhat/config";
22
import assert from "assert";
33
import { askYesNoQuestion, minimalSpokePoolInterface } from "./utils";
4-
import { TOKEN_SYMBOLS_MAP } from "../utils/constants";
4+
import { TOKEN_SYMBOLS_MAP, CHAIN_IDs } from "../utils/constants";
55

6-
const enabledChainIds = [1, 10, 137, 42161, 324, 8453, 59144, 34443, 1135]; // Supported mainnet chain IDs.
6+
const enabledChainIds = [1, 10, 137, 42161, 324, 1135, 8453, 34443, 59144, 81457]; // Supported mainnet chain IDs.
77

88
const getChainsFromList = (taskArgInput: string): number[] =>
99
taskArgInput
@@ -78,7 +78,10 @@ task("enable-l1-token-across-ecosystem", "Enable a provided token across the ent
7878
`Could not find token address on chain ${chainId} in TOKEN_SYMBOLS_MAP for USDC.e or Native USDC`
7979
);
8080
}
81+
} else if (matchedSymbol === "DAI" && chainId === CHAIN_IDs.BLAST) {
82+
return TOKEN_SYMBOLS_MAP.USDB.addresses[chainId]; // DAI maps to USDB on Blast.
8183
}
84+
8285
const l2Address = TOKEN_SYMBOLS_MAP[matchedSymbol].addresses[chainId];
8386
if (l2Address === undefined) {
8487
throw new Error(`Could not find token address on chain ${chainId} in TOKEN_SYMBOLS_MAP`);

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# yarn lockfile v1
33

44

5-
"@across-protocol/constants@^3.1.3":
6-
version "3.1.3"
7-
resolved "https://registry.yarnpkg.com/@across-protocol/constants/-/constants-3.1.3.tgz#534764a4137bd5181ab4214543d0cbbf44a90c63"
8-
integrity sha512-4pUjJrRor9gFPAsskbva6bDK780tzXYMWtqCtBa1jOUc+X3PxC6U6lF7ZoyX+lqU/KcfAWDLg8YEsz+KLm3NrQ==
5+
"@across-protocol/constants@^3.1.5":
6+
version "3.1.5"
7+
resolved "https://registry.yarnpkg.com/@across-protocol/constants/-/constants-3.1.5.tgz#58cdd06816518b5cf1d92d94a4bc175ab0bc9d0c"
8+
integrity sha512-3bqBNdYhVnpNwd9zwxmDWewM0ixRxTiL0SCHmOWlmDEx9xqPFHx5t+GLJWOa18wIoPP5KWv/TyI+fdwi3Tg5Bw==
99

1010
"@across-protocol/contracts@^0.1.4":
1111
version "0.1.4"

0 commit comments

Comments
 (0)