diff --git a/package.json b/package.json index 62ce9d252..5171fe722 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@across-protocol/contracts", - "version": "3.0.4", + "version": "3.0.5", "author": "UMA Team", "license": "AGPL-3.0-only", "repository": { @@ -32,7 +32,7 @@ "prepublish": "yarn build && hardhat export --export-all ./cache/massExport.json && ts-node ./scripts/processHardhatExport.ts && prettier --write ./deployments/deployments.json && yarn generate-contract-types" }, "dependencies": { - "@across-protocol/constants": "^3.1.3", + "@across-protocol/constants": "^3.1.5", "@defi-wonderland/smock": "^2.3.4", "@eth-optimism/contracts": "^0.5.40", "@ethersproject/abstract-provider": "5.7.0", diff --git a/tasks/enableL1TokenAcrossEcosystem.ts b/tasks/enableL1TokenAcrossEcosystem.ts index a1de0a1c9..f5daba836 100644 --- a/tasks/enableL1TokenAcrossEcosystem.ts +++ b/tasks/enableL1TokenAcrossEcosystem.ts @@ -1,9 +1,9 @@ import { task } from "hardhat/config"; import assert from "assert"; import { askYesNoQuestion, minimalSpokePoolInterface } from "./utils"; -import { TOKEN_SYMBOLS_MAP } from "../utils/constants"; +import { TOKEN_SYMBOLS_MAP, CHAIN_IDs } from "../utils/constants"; -const enabledChainIds = [1, 10, 137, 42161, 324, 8453, 59144, 34443, 1135]; // Supported mainnet chain IDs. +const enabledChainIds = [1, 10, 137, 42161, 324, 1135, 8453, 34443, 59144, 81457]; // Supported mainnet chain IDs. const getChainsFromList = (taskArgInput: string): number[] => taskArgInput @@ -78,7 +78,10 @@ task("enable-l1-token-across-ecosystem", "Enable a provided token across the ent `Could not find token address on chain ${chainId} in TOKEN_SYMBOLS_MAP for USDC.e or Native USDC` ); } + } else if (matchedSymbol === "DAI" && chainId === CHAIN_IDs.BLAST) { + return TOKEN_SYMBOLS_MAP.USDB.addresses[chainId]; // DAI maps to USDB on Blast. } + const l2Address = TOKEN_SYMBOLS_MAP[matchedSymbol].addresses[chainId]; if (l2Address === undefined) { throw new Error(`Could not find token address on chain ${chainId} in TOKEN_SYMBOLS_MAP`); diff --git a/yarn.lock b/yarn.lock index 194ab987d..1f44ecb4e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@across-protocol/constants@^3.1.3": - version "3.1.3" - resolved "https://registry.yarnpkg.com/@across-protocol/constants/-/constants-3.1.3.tgz#534764a4137bd5181ab4214543d0cbbf44a90c63" - integrity sha512-4pUjJrRor9gFPAsskbva6bDK780tzXYMWtqCtBa1jOUc+X3PxC6U6lF7ZoyX+lqU/KcfAWDLg8YEsz+KLm3NrQ== +"@across-protocol/constants@^3.1.5": + version "3.1.5" + resolved "https://registry.yarnpkg.com/@across-protocol/constants/-/constants-3.1.5.tgz#58cdd06816518b5cf1d92d94a4bc175ab0bc9d0c" + integrity sha512-3bqBNdYhVnpNwd9zwxmDWewM0ixRxTiL0SCHmOWlmDEx9xqPFHx5t+GLJWOa18wIoPP5KWv/TyI+fdwi3Tg5Bw== "@across-protocol/contracts@^0.1.4": version "0.1.4"