Skip to content

Commit 0d09ab8

Browse files
authored
improve: Update constants version to use Unichain instead of DoctorWho (#896)
Note, I haven't changed the Adapter or SpokePool names yet since I'm not sure how we want to handle production contracts being different from latest contracts in this repo. We can handle that in a subsequent PR
1 parent a34a185 commit 0d09ab8

6 files changed

+17
-17
lines changed

deploy/061_deploy_doctor_who_adapter.ts renamed to deploy/061_deploy_unichain_adapter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { HardhatRuntimeEnvironment } from "hardhat/types";
33
import { CHAIN_IDs } from "../utils";
44
import { L1_ADDRESS_MAP, OP_STACK_ADDRESS_MAP, USDC, WETH } from "./consts";
55

6-
const SPOKE_CHAIN_ID = CHAIN_IDs.DOCTOR_WHO;
6+
const SPOKE_CHAIN_ID = CHAIN_IDs.UNICHAIN;
77

88
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
99
const { deployer } = await hre.getNamedAccounts();

deploy/consts.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const OP_STACK_ADDRESS_MAP: {
8989
L1CrossDomainMessenger: "0x5D4472f31Bd9385709ec61305AFc749F0fA8e9d0",
9090
L1StandardBridge: "0x697402166Fbf2F22E970df8a6486Ef171dbfc524",
9191
},
92-
[CHAIN_IDs.DOCTOR_WHO]: {
92+
[CHAIN_IDs.UNICHAIN]: {
9393
L1CrossDomainMessenger: "0x9A3D64E386C18Cb1d6d5179a9596A4B5736e98A6",
9494
L1StandardBridge: "0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA",
9595
},
@@ -231,7 +231,7 @@ export const L2_ADDRESS_MAP: { [key: number]: { [contractName: string]: string }
231231
l2Weth: "0x3ab6C7AEb93A1CFC64AEEa8BF0f00c176EE42A2C",
232232
polygonZkEvmBridge: "0xF6BEEeBB578e214CA9E23B0e9683454Ff88Ed2A7",
233233
},
234-
[CHAIN_IDs.DOCTOR_WHO]: {
234+
[CHAIN_IDs.UNICHAIN]: {
235235
cctpTokenMessenger: "0x4e744b28E787c3aD0e810eD65A24461D4ac5a762",
236236
cctpMessageTransmitter: "0x353bE9E2E38AB1D19104534e4edC21c643Df86f4",
237237
},

hardhat.config.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,9 @@ const config: HardhatUserConfig = {
323323
accounts: { mnemonic },
324324
companionNetworks: { l1: "mainnet" },
325325
},
326-
doctorwho: {
327-
chainId: CHAIN_IDs.DOCTOR_WHO,
328-
url: "https://doctor-who-mainnet.g.alchemy.com/public",
326+
unichain: {
327+
chainId: CHAIN_IDs.UNICHAIN,
328+
url: "https://mainnet.unichain.org",
329329
saveDeployments: true,
330330
accounts: { mnemonic },
331331
companionNetworks: { l1: "mainnet" },
@@ -361,7 +361,7 @@ const config: HardhatUserConfig = {
361361
alephzero: "blockscout",
362362
ink: "blockscout",
363363
soneium: "blockscout",
364-
doctorwho: "blockscout",
364+
unichain: process.env.UNISCAN_API_KEY!,
365365
},
366366
customChains: [
367367
{
@@ -549,11 +549,11 @@ const config: HardhatUserConfig = {
549549
},
550550
},
551551
{
552-
network: "doctorwho",
553-
chainId: CHAIN_IDs.DOCTOR_WHO,
552+
network: "unichain",
553+
chainId: CHAIN_IDs.UNICHAIN,
554554
urls: {
555-
apiURL: "https://doctor-who.blockscout.com/api",
556-
browserURL: "https://doctorwho.blockscout.com",
555+
apiURL: "https://api.uniscan.xyz/api",
556+
browserURL: "https://uniscan.xyz",
557557
},
558558
},
559559
],

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@across-protocol/contracts",
3-
"version": "4.0.0",
3+
"version": "4.0.1",
44
"author": "UMA Team",
55
"license": "AGPL-3.0-only",
66
"repository": {
@@ -42,7 +42,7 @@
4242
"pre-commit-hook": "sh scripts/preCommitHook.sh"
4343
},
4444
"dependencies": {
45-
"@across-protocol/constants": "^3.1.32",
45+
"@across-protocol/constants": "^3.1.35",
4646
"@coral-xyz/anchor": "^0.30.1",
4747
"@defi-wonderland/smock": "^2.3.4",
4848
"@eth-optimism/contracts": "^0.5.40",

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# yarn lockfile v1
33

44

5-
"@across-protocol/constants@^3.1.32":
6-
version "3.1.32"
7-
resolved "https://registry.yarnpkg.com/@across-protocol/constants/-/constants-3.1.32.tgz#402cccb942f9dc4eb8dde5de7cf801835338c673"
8-
integrity sha512-vSh0pKTE2mwM97Bv9WYCgJ51Pnw29xSKnfbgoSuEhCGrw6GGMeElcwiUqQeZNlF8eMn16y7KcymXR9X4i2sTMA==
5+
"@across-protocol/constants@^3.1.35":
6+
version "3.1.35"
7+
resolved "https://registry.yarnpkg.com/@across-protocol/constants/-/constants-3.1.35.tgz#80ee8e569bc5c1fc94b5087d357d9612fd782151"
8+
integrity sha512-2Fj9mqBEVQu4Bsq6o7helUkhEjpce+uqni0pTV51y1QOEQdgAJU5U5BNQFXUMUDMQRaM3DqB4ys89GVJ4TuA/w==
99

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

0 commit comments

Comments
 (0)