Skip to content

Commit 60a79c3

Browse files
nicholaspaibmzig
andauthored
feat: Linea CCTP V2 deployments (#950)
* feat: Linea CCTP V2 deployments (#947) * feat: Deploy Linea Adapter and SpokePool with CCTP V2 support - TODO: Deploy SpokePool * Add LineaSpokePool deployment * improve: query shared bridge address dynamically (#944) * improve: query shared bridge address dynamically Signed-off-by: bennett <[email protected]> * refactor --------- Signed-off-by: bennett <[email protected]> Co-authored-by: nicholaspai <[email protected]> * Revert "feat: Linea CCTP V2 deployments (#947)" (#949) This reverts commit d68d1f7. * Revert "Revert "feat: Linea CCTP V2 deployments (#947)" (#949)" This reverts commit 0dcf7ef. * Revert "improve: query shared bridge address dynamically (#944)" This reverts commit 2727922. * Rdeploy spok epool --------- Signed-off-by: bennett <[email protected]> Co-authored-by: bmzig <[email protected]>
1 parent 2d705ed commit 60a79c3

9 files changed

+1076
-149
lines changed

deploy/028_deploy_linea_adapter.ts

+2-5
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

+2-4
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export const L2_ADDRESS_MAP: { [key: number]: { [contractName: string]: string }
230230
},
231231
[CHAIN_IDs.LINEA]: {
232232
lineaMessageService: "0x508Ca82Df566dCD1B0DE8296e70a96332cD644ec",
233-
cctpV2TokenMessenger: "0xunknown", // No official address from Circle yet.
233+
cctpV2TokenMessenger: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d",
234234
lineaTokenBridge: "0x353012dc4a9A6cF55c941bADC267f82004A8ceB9",
235235
},
236236
[CHAIN_IDs.SCROLL_SEPOLIA]: {

deployments/deployments.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"Polygon_Adapter": { "address": "0xb4AeF0178f5725392A26eE18684C2aB62adc912e", "blockNumber": 19915066 },
1717
"ZkSync_Adapter": { "address": "0xA374585E6062517Ee367ee5044946A6fBe17724f", "blockNumber": 22167105 },
1818
"Base_Adapter": { "address": "0xE1421233BF7158A19f89F17c9735F9cbd3D9529c", "blockNumber": 19915087 },
19-
"Linea_Adapter": { "address": "0x7Ea0D1882D610095A45E512B0113f79cA98a8EfE", "blockNumber": 19402413 },
19+
"Linea_Adapter": { "address": "0x5A44A32c13e2C43416bFDE5dDF5DCb3880c42787", "blockNumber": 22169879 },
2020
"BondToken": { "address": "0xee1dc6bcf1ee967a350e9ac6caaaa236109002ea", "blockNumber": 17980554 },
2121
"SpokePoolVerifier": { "address": "0x3Fb9cED51E968594C87963a371Ed90c39519f65A", "blockNumber": 22420136 },
2222
"Mode_Adapter": { "address": "0xf1B59868697f3925b72889ede818B9E7ba0316d0", "blockNumber": 19914094 },

deployments/linea/Linea_SpokePool.json

+68-116
Large diffs are not rendered by default.

deployments/linea/solcInputs/2f96ba6500a76c3baf62ec03cdb3ac03.json

+156
Large diffs are not rendered by default.

deployments/linea/solcInputs/5a7ad36e5409ab17acc3f1613e73658c.json

+156
Large diffs are not rendered by default.

deployments/mainnet/Linea_Adapter.json

+68-22
Large diffs are not rendered by default.

deployments/mainnet/solcInputs/0e331ee112563bf9d8d36add0a15fd56.json

+622
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)