Skip to content

Commit accfe18

Browse files
authored
Merge pull request #56 from bgd-labs/feat/plasma
feat: Update all scripts for Plasma deployment
2 parents 3bcca5f + 43db512 commit accfe18

27 files changed

+578
-34
lines changed

Makefile

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

1818

1919

20-
custom_ethereum := --with-gas-price 2000000000 # 53 gwei
20+
custom_ethereum := --with-gas-price 500000000 # 0.5 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/
@@ -39,7 +39,7 @@ custom_ethereum-testnet := --legacy --with-gas-price 27000000000 --force # 1 gw
3939
define deploy_single_fn
4040
forge script \
4141
scripts/$(1).s.sol:$(if $(3),$(if $(PROD),$(3),$(3)_testnet),$(shell UP=$(if $(PROD),$(2),$(2)_testnet); echo $${UP} | perl -nE 'say ucfirst')) \
42-
--rpc-url $(if $(PROD),$(2),$(2)-testnet) --broadcast --verify -vvvv \
42+
--rpc-url $(if $(PROD),$(2),$(2)-testnet) --broadcast --verify --legacy -vvvv \
4343
$(if $(LEDGER),$(BASE_LEDGER),$(BASE_KEY)) \
4444
$(custom_$(if $(PROD),$(2),$(2)-testnet))
4545

@@ -165,23 +165,23 @@ deploy-full:
165165

166166
# Deploy Proxy Factories on all networks
167167
deploy-proxy-factory-test:
168-
$(call deploy_fn,InitialDeployments,bob)
168+
$(call deploy_fn,InitialDeployments,plasma)
169169

170170
# Deploy Cross Chain Infra on all networks
171171
deploy-cross-chain-infra-test:
172-
$(call deploy_fn,ccc/DeployCCC,bob)
172+
$(call deploy_fn,ccc/DeployCCC,plasma)
173173

174174
## Deploy CCIP bridge adapters on all networks
175175
deploy-ccip-bridge-adapters-test:
176176
$(call deploy_fn,adapters/DeployCCIPAdapter,ethereum)
177177

178178
## Deploy LayerZero bridge adapters on all networks
179179
deploy-lz-bridge-adapters-test:
180-
$(call deploy_fn,adapters/DeployLZ,sonic)
180+
$(call deploy_fn,adapters/DeployLZ,ethereum)
181181

182182
## Deploy HyperLane bridge adapters on all networks
183183
deploy-hl-bridge-adapters-test:
184-
$(call deploy_fn,adapters/DeployHL,sonic)
184+
$(call deploy_fn,adapters/DeployHL,ethereum)
185185

186186
## Deploy SameChain adapters on ethereum
187187
deploy-same-chain-adapters-test:
@@ -232,11 +232,11 @@ set-ccf-sender-adapters-test:
232232

233233
# Set the bridge adapters allowed to receive messages
234234
set-ccr-receiver-adapters-test:
235-
$(call deploy_fn,ccc/Set_CCR_Receivers_Adapters,bob)
235+
$(call deploy_fn,ccc/Set_CCR_Receivers_Adapters,plasma)
236236

237237
# Sets the required confirmations
238238
set-ccr-confirmations-test:
239-
$(call deploy_fn,ccc/Set_CCR_Confirmations,bob)
239+
$(call deploy_fn,ccc/Set_CCR_Confirmations,plasma)
240240

241241

242242
## Deploy and configure all contracts
@@ -264,7 +264,7 @@ send-direct-message:
264264
$(call deploy_fn,helpers/Send_Direct_CCMessage,ethereum)
265265

266266
deploy_mock_destination:
267-
$(call deploy_fn,helpers/Deploy_Mock_destination,bob)
267+
$(call deploy_fn,helpers/Deploy_Mock_destination,plasma)
268268

269269
set-approved-ccf-senders:
270270
$(call deploy_fn,helpers/Set_Approved_Senders,ethereum)
@@ -279,7 +279,7 @@ send-message-via-adapter:
279279
$(call deploy_fn,helpers/Send_Message_Via_Adapter,ethereum)
280280

281281
deploy_ccc_granular_guardian:
282-
$(call deploy_fn,access_control/network_scripts/GranularGuardianNetworkDeploys,bob)
282+
$(call deploy_fn,access_control/network_scripts/GranularGuardianNetworkDeploys,plasma)
283283

284284
deploy-ccc-revision-and-update:
285285
$(call deploy_fn,CCC/UpdateCCC,ethereum)
@@ -297,4 +297,4 @@ update-owners-and-guardians:
297297
$(call deploy_fn,helpers/Update_Ownership,zksync)
298298

299299
update-ccc-permissions:
300-
$(call deploy_fn,helpers/UpdateCCCPermissions,bob)
300+
$(call deploy_fn,helpers/UpdateCCCPermissions,plasma)

deployments/cc/mainnet/ethereum.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"arbAdapter": "0x88d6D01e08d3e64513b15fD46528dBbA7d755883",
33
"baseAdapter": "0xa5948b0ac79f72966dFFC5C13E44f6dfDD3D58A0",
44
"bobAdapter": "0x1e2bFEF32EdAbf6b3EF8B674044DC00f082Addff",
5-
"ccipAdapter": "0xe3a0d9754aD3452D687cf580Ba3674c2D7D2f7AE",
5+
"ccipAdapter": "0x352C71092fB60ce2f94DFF4ACda330DdffD946B0",
66
"chainId": 1,
77
"clEmergencyOracle": "0x0000000000000000000000000000000000000000",
88
"create3Factory": "0xcc3C54B95f3f1867A43009B80ed4DD930E3cE2F7",
@@ -13,10 +13,10 @@
1313
"gnosisAdapter": "0x7238d75fD75bb936E83b75854c653F104Ce9c9d8",
1414
"granularCCCGuardian": "0x4457cA11E90f416Cc1D3a8E1cA41C0cdEcC251d4",
1515
"guardian": "0xEAF6183bAb3eFD3bF856Ac5C058431C8592394d6",
16-
"hlAdapter": "0x01dcb90Cf13b82Cde4A0BAcC655585a83Af3cCC1",
16+
"hlAdapter": "0x6bda311748E6542d578b167d791A4130f3FbBc67",
1717
"inkAdapter": "0x98E78C2cD3013BF13a658E210e27C3732c8Dc48A",
1818
"lineaAdapter": "0x8097555ffDa4176C93FEf92dF473b9763e467686",
19-
"lzAdapter": "0x8FD7D8dd557817966181F584f2abB53549B4ABbe",
19+
"lzAdapter": "0xBA0Ee375e9d0c815097D9eB7EB9Db20b59c06792",
2020
"mantleAdapter": "0xb66FA987fa7975Cac3d12B629c9c44e459e50990",
2121
"metisAdapter": "0x6B3Dc800E7c813Db3fe8D0F30fDCaE636935dC14",
2222
"mockDestination": "0x19198689FfBE82207F023248dca175a84c52eCE1",

deployments/cc/mainnet/plasma.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"arbAdapter": "0x0000000000000000000000000000000000000000",
3+
"baseAdapter": "0x0000000000000000000000000000000000000000",
4+
"bobAdapter": "0x0000000000000000000000000000000000000000",
5+
"ccipAdapter": "0x719e23D7B48Fc5AEa65Cff1bc58865C2b8d89A34",
6+
"chainId": 9745,
7+
"clEmergencyOracle": "0xF61FE74Ec1cFbd9Ee8Bd27592D2EDEe0E2aA85Cf",
8+
"create3Factory": "0x0000000000000000000000000000000000000000",
9+
"crossChainController": "0x643441742f73e270e565619be6DE5f4D55E08cd6",
10+
"crossChainControllerImpl": "0x625240dbc93D9fC046e7Ead21d61F272E7521b1f",
11+
"emergencyRegistry": "0x0000000000000000000000000000000000000000",
12+
"executor": "0x47aAdaAE1F05C978E6aBb7568d11B7F6e0FC4d6A",
13+
"gnosisAdapter": "0x0000000000000000000000000000000000000000",
14+
"granularCCCGuardian": "0x60665b4F4FF7073C5fed2656852dCa271DfE2684",
15+
"guardian": "0xEAF6183bAb3eFD3bF856Ac5C058431C8592394d6",
16+
"hlAdapter": "0x13Dc9eBb19bb1A14aa56215b443B2703A07ba2D5",
17+
"inkAdapter": "0x0000000000000000000000000000000000000000",
18+
"lineaAdapter": "0x0000000000000000000000000000000000000000",
19+
"lzAdapter": "0x99950E7C7eB320A8551916e8676a42b90b058d5D",
20+
"mantleAdapter": "0x0000000000000000000000000000000000000000",
21+
"metisAdapter": "0x0000000000000000000000000000000000000000",
22+
"mockDestination": "0x0000000000000000000000000000000000000000",
23+
"opAdapter": "0x0000000000000000000000000000000000000000",
24+
"owner": "0xEAF6183bAb3eFD3bF856Ac5C058431C8592394d6",
25+
"polAdapter": "0x0000000000000000000000000000000000000000",
26+
"proxyAdminCCC": "0x4B58BD6163c7020333b6e33a6E6495F308f420B9",
27+
"proxyFactory": "0xEB0682d148e874553008730f0686ea89db7DA412",
28+
"sameChainAdapter": "0x0000000000000000000000000000000000000000",
29+
"scrollAdapter": "0x0000000000000000000000000000000000000000",
30+
"soneiumAdapter": "0x0000000000000000000000000000000000000000",
31+
"wormholeAdapter": "0x0000000000000000000000000000000000000000",
32+
"zkevmAdapter": "0x0000000000000000000000000000000000000000",
33+
"zksyncAdapter": "0x0000000000000000000000000000000000000000"
34+
}

deployments/cc/mainnet/pre_prod_ethereum.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"arbAdapter": "0x1726C13FB9d89abaD27787480ae597b3Df4D806C",
33
"baseAdapter": "0x124A93c62dB29C2eF68b79F1709Fe377feAa108D",
44
"bobAdapter": "0xA23EA77E2feE70CD827731cC30157691e868EC26",
5-
"ccipAdapter": "0xc2422E65af261DCcD993960dc097788E5edF53Df",
5+
"ccipAdapter": "0xa85B99E7Ff340dD2bD775f8cBb4BfC80bE65B4Ec",
66
"chainId": 1,
77
"clEmergencyOracle": "0x0000000000000000000000000000000000000000",
88
"create3Factory": "0x0000000000000000000000000000000000000000",
@@ -16,7 +16,7 @@
1616
"hlAdapter": "0x834607F5d65451918a8fDD5D22d6eF97f84917ef",
1717
"inkAdapter": "0xC21b883bc57e963fd3214FE8E8eb80d71458Aae0",
1818
"lineaAdapter": "0x5Dc8724b62F489a98f4f86b3a9629FB3f2552d73",
19-
"lzAdapter": "0xE35B90E1B1eF522dC40a5829c59e3d2d291a9360",
19+
"lzAdapter": "0xa25eC95457536Db32080b3EBaC6d185C44378fe3",
2020
"mantleAdapter": "0xD4FE312b920218A5a3D990c85b2a67aAeb8701dc",
2121
"metisAdapter": "0x92bce04e8B33c7098AA0bEc7663cA8Eb0930f6a4",
2222
"mockDestination": "0x5eB700Fd6aE49fc9890349E4d90737C1420e7E4f",
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"arbAdapter": "0x0000000000000000000000000000000000000000",
3+
"baseAdapter": "0x0000000000000000000000000000000000000000",
4+
"bobAdapter": "0x0000000000000000000000000000000000000000",
5+
"ccipAdapter": "0x0B7956D57fAC4bA3CAf26DF9FA5f1ef5Ef465f10",
6+
"chainId": 9745,
7+
"clEmergencyOracle": "0x0000000000000000000000000000000000000000",
8+
"create3Factory": "0x0000000000000000000000000000000000000000",
9+
"crossChainController": "0xBd28fb717A779e9a5E4CB8023D46C5d0d708d91f",
10+
"crossChainControllerImpl": "0x931F1da6E2Bc9Ef1842b3094b908E9E6E24D1198",
11+
"emergencyRegistry": "0x0000000000000000000000000000000000000000",
12+
"executor": "0x47aAdaAE1F05C978E6aBb7568d11B7F6e0FC4d6A",
13+
"gnosisAdapter": "0x0000000000000000000000000000000000000000",
14+
"granularCCCGuardian": "0xBE4DF3C0a8bC34B055422220A72F96255272B95F",
15+
"guardian": "0xEAF6183bAb3eFD3bF856Ac5C058431C8592394d6",
16+
"hlAdapter": "0x44b26452E3FDC516eaB17fb5b140cD065860531B",
17+
"inkAdapter": "0x0000000000000000000000000000000000000000",
18+
"lineaAdapter": "0x0000000000000000000000000000000000000000",
19+
"lzAdapter": "0xfB155421C42711CB18a768abd193f906c8e30aE2",
20+
"mantleAdapter": "0x0000000000000000000000000000000000000000",
21+
"metisAdapter": "0x0000000000000000000000000000000000000000",
22+
"mockDestination": "0xFF1137243698CaA18EE364Cc966CF0e02A4e6327",
23+
"opAdapter": "0x0000000000000000000000000000000000000000",
24+
"owner": "0xEAF6183bAb3eFD3bF856Ac5C058431C8592394d6",
25+
"polAdapter": "0x0000000000000000000000000000000000000000",
26+
"proxyAdminCCC": "0xA506688Fb1811348fE93048dcF4Efbf57D032688",
27+
"proxyFactory": "0xEB0682d148e874553008730f0686ea89db7DA412",
28+
"sameChainAdapter": "0x0000000000000000000000000000000000000000",
29+
"scrollAdapter": "0x0000000000000000000000000000000000000000",
30+
"soneiumAdapter": "0x0000000000000000000000000000000000000000",
31+
"wormholeAdapter": "0x0000000000000000000000000000000000000000",
32+
"zkevmAdapter": "0x0000000000000000000000000000000000000000",
33+
"zksyncAdapter": "0x0000000000000000000000000000000000000000"
34+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## Raw diff
2+
3+
```json
4+
{
5+
"forwarderAdaptersByChain": {
6+
"9745": {
7+
"from": "",
8+
"to": {
9+
"0x352C71092fB60ce2f94DFF4ACda330DdffD946B0": "0x719e23D7B48Fc5AEa65Cff1bc58865C2b8d89A34",
10+
"0x6bda311748E6542d578b167d791A4130f3FbBc67": "0x13Dc9eBb19bb1A14aa56215b443B2703A07ba2D5",
11+
"0xBA0Ee375e9d0c815097D9eB7EB9Db20b59c06792": "0x99950E7C7eB320A8551916e8676a42b90b058d5D"
12+
}
13+
}
14+
},
15+
"optimalBandwidthByChain": {
16+
"9745": {
17+
"optimalBandwidth": {
18+
"from": "0",
19+
"to": "2"
20+
}
21+
}
22+
}
23+
}
24+
```

foundry.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ mantle-testnet="${RPC_MANTLE_TESTNET}"
6868
ink="${RPC_INK}"
6969
soneium="${RPC_SONEIUM}"
7070
bob="${RPC_BOB}"
71+
plasma="${RPC_PLASMA}"
7172

7273
[etherscan]
7374
ethereum={key="${ETHERSCAN_API_KEY}", chain=1 }

scripts/InitialDeployments.s.sol

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,20 @@ contract Bob is BaseInitialDeployment {
374374
}
375375
}
376376

377+
contract Plasma is BaseInitialDeployment {
378+
function TRANSACTION_NETWORK() internal pure override returns (uint256) {
379+
return ChainIds.PLASMA;
380+
}
381+
382+
function TRANSPARENT_PROXY_FACTORY() internal pure override returns (address) {
383+
return 0xEB0682d148e874553008730f0686ea89db7DA412;
384+
}
385+
386+
function EXECUTOR() internal pure override returns (address) {
387+
return 0x47aAdaAE1F05C978E6aBb7568d11B7F6e0FC4d6A;
388+
}
389+
}
390+
377391
contract Ethereum_testnet is BaseInitialDeployment {
378392
function TRANSACTION_NETWORK() internal pure override returns (uint256) {
379393
return TestNetChainIds.ETHEREUM_SEPOLIA;

0 commit comments

Comments
 (0)