Skip to content

Commit 4929cc1

Browse files
authored
Revert "Revert "feat: Linea CCTP V2 deployments (#947)" (#949)"
This reverts commit 0dcf7ef.
1 parent 0dcf7ef commit 4929cc1

File tree

10 files changed

+925
-94
lines changed

10 files changed

+925
-94
lines changed

deploy/028_deploy_linea_adapter.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { L1_ADDRESS_MAP, WETH, USDCe } from "./consts";
1+
import { L1_ADDRESS_MAP, WETH, USDC } from "./consts";
22
import { DeployFunction } from "hardhat-deploy/types";
33
import { HardhatRuntimeEnvironment } from "hardhat/types";
44

@@ -14,14 +14,11 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
1414
WETH[chainId],
1515
L1_ADDRESS_MAP[chainId].lineaMessageService,
1616
L1_ADDRESS_MAP[chainId].lineaTokenBridge,
17-
// TODO: USDC.e on Linea will be upgraded to USDC so eventually we should add a USDC entry for Linea in consts
18-
// and read from there instead of using the L1 USDC.e address.
19-
USDCe[chainId],
17+
USDC[chainId],
2018
L1_ADDRESS_MAP[chainId].cctpV2TokenMessenger,
2119
],
2220
});
2321
};
2422

2523
module.exports = func;
26-
func.dependencies = ["HubPool"];
2724
func.tags = ["LineaAdapter", "mainnet"];

deploy/029_deploy_linea_spokepool.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { DeployFunction } from "hardhat-deploy/types";
22
import { HardhatRuntimeEnvironment } from "hardhat/types";
33
import { deployNewProxy, getSpokePoolDeploymentInfo } from "../utils/utils.hre";
4-
import { FILL_DEADLINE_BUFFER, L2_ADDRESS_MAP, QUOTE_TIME_BUFFER, WETH, USDCe } from "./consts";
4+
import { FILL_DEADLINE_BUFFER, L2_ADDRESS_MAP, QUOTE_TIME_BUFFER, WETH, USDC } from "./consts";
55

66
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
77
const { hubPool } = await getSpokePoolDeploymentInfo(hre);
@@ -21,9 +21,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
2121
WETH[chainId],
2222
QUOTE_TIME_BUFFER,
2323
FILL_DEADLINE_BUFFER,
24-
// TODO: USDC.e on Linea will be upgraded to USDC so eventually we should add a USDC entry for Linea in consts
25-
// and read from there instead of using the L1 USDC.e address.
26-
USDCe[chainId],
24+
USDC[chainId],
2725
L2_ADDRESS_MAP[chainId].cctpV2TokenMessenger,
2826
];
2927

deploy/consts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export const L2_ADDRESS_MAP: { [key: number]: { [contractName: string]: string }
220220
},
221221
[CHAIN_IDs.LINEA]: {
222222
lineaMessageService: "0x508Ca82Df566dCD1B0DE8296e70a96332cD644ec",
223-
cctpV2TokenMessenger: "0xunknown", // No official address from Circle yet.
223+
cctpV2TokenMessenger: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d",
224224
lineaTokenBridge: "0x353012dc4a9A6cF55c941bADC267f82004A8ceB9",
225225
},
226226
[CHAIN_IDs.SCROLL_SEPOLIA]: {

deployments/deployments.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"Polygon_Adapter": { "address": "0xb4AeF0178f5725392A26eE18684C2aB62adc912e", "blockNumber": 19915066 },
1616
"ZkSync_Adapter": { "address": "0xA374585E6062517Ee367ee5044946A6fBe17724f", "blockNumber": 22167105 },
1717
"Base_Adapter": { "address": "0xE1421233BF7158A19f89F17c9735F9cbd3D9529c", "blockNumber": 19915087 },
18-
"Linea_Adapter": { "address": "0x7Ea0D1882D610095A45E512B0113f79cA98a8EfE", "blockNumber": 19402413 },
18+
"Linea_Adapter": { "address": "0x5A44A32c13e2C43416bFDE5dDF5DCb3880c42787", "blockNumber": 22169879 },
1919
"BondToken": { "address": "0xee1dc6bcf1ee967a350e9ac6caaaa236109002ea", "blockNumber": 17980554 },
2020
"SpokePoolVerifier": { "address": "0xB4A8d45647445EA9FC3E1058096142390683dBC2", "blockNumber": 19510875 },
2121
"Mode_Adapter": { "address": "0xf1B59868697f3925b72889ede818B9E7ba0316d0", "blockNumber": 19914094 },

deployments/linea/Linea_SpokePool.json

Lines changed: 68 additions & 56 deletions
Large diffs are not rendered by default.

deployments/linea/solcInputs/5a7ad36e5409ab17acc3f1613e73658c.json

Lines changed: 156 additions & 0 deletions
Large diffs are not rendered by default.

deployments/mainnet/Linea_Adapter.json

Lines changed: 68 additions & 22 deletions
Large diffs are not rendered by default.

deployments/mainnet/solcInputs/0e331ee112563bf9d8d36add0a15fd56.json

Lines changed: 622 additions & 0 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"pre-commit-hook": "sh scripts/preCommitHook.sh"
4343
},
4444
"dependencies": {
45-
"@across-protocol/constants": "^3.1.46",
45+
"@across-protocol/constants": "^3.1.47-beta.0",
4646
"@coral-xyz/anchor": "^0.30.1",
4747
"@defi-wonderland/smock": "^2.3.4",
4848
"@eth-optimism/contracts": "^0.5.40",

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.46":
6-
version "3.1.46"
7-
resolved "https://registry.yarnpkg.com/@across-protocol/constants/-/constants-3.1.46.tgz#9f567eecd47eaa5035460193c49307f413623167"
8-
integrity sha512-EHwFVLlSfwIOOQsqnL53UUPtjw9GUN1Y7PDEXUDttPxuqcc/IRDSp7xBnYgn7OWhrEg3404SzBKmc2A1l3Sqhw==
5+
"@across-protocol/constants@^3.1.47-beta.0":
6+
version "3.1.47-beta.0"
7+
resolved "https://registry.yarnpkg.com/@across-protocol/constants/-/constants-3.1.47-beta.0.tgz#f12646526156013b23b4df59a21f99aa264bd819"
8+
integrity sha512-f4MOI1NPLSMk5iri0h++m0IEMiGT9f8cifMGkGaM5L+StA8FfiVevezcipXmKUekTAztQ5QqzrKh/L3QJ50rXw==
99

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

0 commit comments

Comments
 (0)