Skip to content

Commit e30d5d0

Browse files
authored
Merge pull request #30 from bgd-labs/feat/linea
feat: add linea deployment scripts
2 parents 884db49 + b543b70 commit e30d5d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+509
-91
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RPC_GNOSIS=https://rpc.ankr.com/gnosis
2020
RPC_BNB=https://binance.llamarpc.com
2121
RPC_ZK_SYNC=https://mainnet.era.zksync.io
2222
RPC_ZK_SYNC_TESTNET=https://sepolia.era.zksync.dev
23+
RPC_LINEA=https://rpc.linea.build
2324

2425
# Etherscan api keys for verification & download utils
2526
ETHERSCAN_API_KEY_MAINNET=

.gitmodules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[submodule "lib/aave-delivery-infrastructure"]
22
path = lib/aave-delivery-infrastructure
33
url = https://github.com/bgd-labs/aave-delivery-infrastructure
4+
branch = feat/linea
45
[submodule "lib/aave-helpers"]
56
path = lib/aave-helpers
67
url = https://github.com/bgd-labs/aave-helpers

Makefile

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@ BASE_KEY = --private-key ${PRIVATE_KEY}
1717

1818

1919

20-
#custom_ethereum := --with-gas-price 15000000000 # 53 gwei
20+
custom_ethereum := --with-gas-price 30000000000 # 53 gwei
2121
#custom_polygon := --with-gas-price 190000000000 # 560 gwei
2222
#custom_avalanche := --with-gas-price 27000000000 # 27 gwei
2323
#custom_metis-testnet := --legacy --verifier-url https://goerli.explorer.metisdevops.link/api/
2424
#custom_metis := --verifier-url https://api.routescan.io/v2/network/mainnet/evm/1088/etherscan
2525
#custom_scroll-testnet := --legacy --with-gas-price 1000000000 # 1 gwei
2626
custom_zksync := --zksync
27+
custom_linea-testnet := --legacy --with-gas-price 27000000000 --force # 1 gwei
28+
custom_linea := --with-gas-price 1000000000 --force # 1 gwei
29+
custom_ethereum-testnet := --legacy --with-gas-price 27000000000 --force # 1 gwei
2730

2831
# params:
2932
# 1 - path/file_name
@@ -113,9 +116,12 @@ deploy-zkevm-adapters:
113116
deploy-wormhole-adapters:
114117
$(call deploy_fn,adapters/DeployWormholeAdapter,ethereum celo)
115118

116-
deploy-zksync-adapters-test:
119+
deploy-zksync-adapters:
117120
$(call deploy_fn,adapters/DeployZkSyncAdapter,ethereum)
118121

122+
deploy-linea-adapters:
123+
$(call deploy_fn,adapters/DeployLineaAdapter,ethereum linea)
124+
119125
## Set sender bridge dapters. Only eth pol avax are needed as other networks will only receive
120126
set-ccf-sender-adapters:
121127
$(call deploy_fn,ccc/Set_CCF_Sender_Adapters,ethereum)
@@ -158,11 +164,11 @@ deploy-full:
158164

159165
# Deploy Proxy Factories on all networks
160166
deploy-proxy-factory-test:
161-
$(call deploy_fn,InitialDeployments,zksync)
167+
$(call deploy_fn,InitialDeployments,linea)
162168

163169
# Deploy Cross Chain Infra on all networks
164170
deploy-cross-chain-infra-test:
165-
$(call deploy_fn,ccc/DeployCCC,zksync)
171+
$(call deploy_fn,ccc/DeployCCC,linea)
166172

167173
## Deploy CCIP bridge adapters on all networks
168174
deploy-ccip-bridge-adapters-test:
@@ -204,17 +210,20 @@ deploy-metis-adapters-test:
204210
deploy-base-adapters-test:
205211
$(call deploy_fn,adapters/DeployCBaseAdapter,ethereum)
206212

213+
deploy-linea-adapters-test:
214+
$(call deploy_fn,adapters/DeployLineaAdapter,ethereum)
215+
207216
## Set sender bridge dapters. Only eth pol avax are needed as other networks will only receive
208217
set-ccf-sender-adapters-test:
209218
$(call deploy_fn,ccc/Set_CCF_Sender_Adapters,ethereum)
210219

211220
# Set the bridge adapters allowed to receive messages
212221
set-ccr-receiver-adapters-test:
213-
$(call deploy_fn,ccc/Set_CCR_Receivers_Adapters,zksync)
222+
$(call deploy_fn,ccc/Set_CCR_Receivers_Adapters,linea)
214223

215224
# Sets the required confirmations
216225
set-ccr-confirmations-test:
217-
$(call deploy_fn,ccc/Set_CCR_Confirmations,zksync)
226+
$(call deploy_fn,ccc/Set_CCR_Confirmations,linea)
218227

219228

220229
## Deploy and configure all contracts
@@ -236,13 +245,13 @@ deploy-full-test:
236245
# ----------------------------------------------------------------------------------------------------------------------
237246
# ----------------------------------------- HELPER SCRIPTS ---------------------------------------------------------
238247
remove-bridge-adapters:
239-
$(call deploy_fn,helpers/RemoveBridgeAdapters,celo)
248+
$(call deploy_fn,helpers/RemoveBridgeAdapters,ethereum)
240249

241250
send-direct-message:
242-
$(call deploy_fn,helpers/Send_Direct_CCMessage,avalanche)
251+
$(call deploy_fn,helpers/Send_Direct_CCMessage,ethereum)
243252

244253
deploy_mock_destination:
245-
$(call deploy_fn,helpers/Deploy_Mock_destination,zksync)
254+
$(call deploy_fn,helpers/Deploy_Mock_destination,linea)
246255

247256
set-approved-ccf-senders:
248257
$(call deploy_fn,helpers/Set_Approved_Senders,ethereum)
@@ -257,7 +266,7 @@ send-message-via-adapter:
257266
$(call deploy_fn,helpers/Send_Message_Via_Adapter,ethereum)
258267

259268
deploy_ccc_granular_guardian:
260-
$(call deploy_fn,access_control/network_scripts/GranularGuardianNetworkDeploys,zksync)
269+
$(call deploy_fn,access_control/network_scripts/GranularGuardianNetworkDeploys,linea)
261270

262271
deploy-ccc-revision-and-update:
263272
$(call deploy_fn,CCC/UpdateCCC,ethereum)

deployments/arbitrum.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"granularCCCGuardian": "0x4922093c476CfbCF903C7C4082d2D64bAE8A37cE",
1313
"guardian": "0xEAF6183bAb3eFD3bF856Ac5C058431C8592394d6",
1414
"hlAdapter": "0x0000000000000000000000000000000000000000",
15+
"lineaAdapter": "0x0000000000000000000000000000000000000000",
1516
"lzAdapter": "0x0000000000000000000000000000000000000000",
1617
"metisAdapter": "0x0000000000000000000000000000000000000000",
1718
"mockDestination": "0x9fE056F44510F970d724adA16903ba5D75CC4742",
@@ -25,4 +26,4 @@
2526
"wormholeAdapter": "0x0000000000000000000000000000000000000000",
2627
"zkevmAdapter": "0x0000000000000000000000000000000000000000",
2728
"zksyncAdapter": "0x0000000000000000000000000000000000000000"
28-
}
29+
}

deployments/avalanche.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"granularCCCGuardian": "0xc1162BCb2E5E3ca4725512008c7522dF8C8B7B65",
1313
"guardian": "0xEAF6183bAb3eFD3bF856Ac5C058431C8592394d6",
1414
"hlAdapter": "0x617332a777780F546261247F621051d0b98975Eb",
15+
"lineaAdapter": "0x0000000000000000000000000000000000000000",
1516
"lzAdapter": "0x10f02995a399C0dC0FaF29914220E9C1bCdE8640",
1617
"metisAdapter": "0x0000000000000000000000000000000000000000",
1718
"mockDestination": "0xb962dCD6d9F0bFB4Cb2936C6C5E5c7C3f0D3c778",
@@ -25,4 +26,4 @@
2526
"wormholeAdapter": "0x0000000000000000000000000000000000000000",
2627
"zkevmAdapter": "0x0000000000000000000000000000000000000000",
2728
"zksyncAdapter": "0x0000000000000000000000000000000000000000"
28-
}
29+
}

deployments/avalanche_fuji.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"guardian": "0x6D603081563784dB3f83ef1F65Cc389D94365Ac9",
1313
"granularCCCGuardian": "0x0000000000000000000000000000000000000000",
1414
"hlAdapter": "0x16637A2A8877A4bca0906D6B782255283bFCFedb",
15+
"lineaAdapter": "0x0000000000000000000000000000000000000000",
1516
"lzAdapter": "0x3eDeded4327949EeE0c0d2Db2417b9cfb4395383",
1617
"metisAdapter": "0x0000000000000000000000000000000000000000",
1718
"mockDestination": "0x4c27236C1908c4B184AA16d101F9D1D036d2B31f",

deployments/base.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"granularCCCGuardian": "0xa1c6aF35E0205f42256382C05243C543FEDBf4bB",
1313
"guardian": "0xEAF6183bAb3eFD3bF856Ac5C058431C8592394d6",
1414
"hlAdapter": "0x0000000000000000000000000000000000000000",
15+
"lineaAdapter": "0x0000000000000000000000000000000000000000",
1516
"lzAdapter": "0x0000000000000000000000000000000000000000",
1617
"metisAdapter": "0x0000000000000000000000000000000000000000",
1718
"mockDestination": "0x118DFD5418890c0332042ab05173Db4A2C1d283c",
@@ -25,4 +26,4 @@
2526
"wormholeAdapter": "0x0000000000000000000000000000000000000000",
2627
"zkevmAdapter": "0x0000000000000000000000000000000000000000",
2728
"zksyncAdapter": "0x0000000000000000000000000000000000000000"
28-
}
29+
}

deployments/binance.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"granularCCCGuardian": "0xe4FB5e3F506BE0095f38004f993D16fdA8224383",
1313
"guardian": "0xEAF6183bAb3eFD3bF856Ac5C058431C8592394d6",
1414
"hlAdapter": "0x3F006299eC88985c18E6e885EeA29A49eC579882",
15+
"lineaAdapter": "0x0000000000000000000000000000000000000000",
1516
"lzAdapter": "0xa5cc218513305221201f196760E9e64e9D49d98A",
1617
"metisAdapter": "0x0000000000000000000000000000000000000000",
1718
"mockDestination": "0x74c3a74362dF4Dd1b9924a97C357B8772dC45000",
@@ -25,4 +26,4 @@
2526
"wormholeAdapter": "0x0000000000000000000000000000000000000000",
2627
"zkevmAdapter": "0x0000000000000000000000000000000000000000",
2728
"zksyncAdapter": "0x0000000000000000000000000000000000000000"
28-
}
29+
}

deployments/binance_testnet.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"guardian": "0x6D603081563784dB3f83ef1F65Cc389D94365Ac9",
1313
"granularCCCGuardian": "0x0000000000000000000000000000000000000000",
1414
"hlAdapter": "0x430601393302cD5e634C40796533e053744025B9",
15+
"lineaAdapter": "0x0000000000000000000000000000000000000000",
1516
"lzAdapter": "0x57f41202788fc6A77AD76647699B6a6A66ABfc09",
1617
"metisAdapter": "0x0000000000000000000000000000000000000000",
1718
"mockDestination": "0x0000000000000000000000000000000000000000",

deployments/celo.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"guardian": "0xEAF6183bAb3eFD3bF856Ac5C058431C8592394d6",
1313
"granularCCCGuardian": "0x0000000000000000000000000000000000000000",
1414
"hlAdapter": "0xa5cc218513305221201f196760E9e64e9D49d98A",
15+
"lineaAdapter": "0x0000000000000000000000000000000000000000",
1516
"lzAdapter": "0xAE93BEa44dcbE52B625169588574d31e36fb3A67",
1617
"metisAdapter": "0x0000000000000000000000000000000000000000",
1718
"mockDestination": "0x0000000000000000000000000000000000000000",

0 commit comments

Comments
 (0)