Skip to content

Commit e8d8457

Browse files
authored
Merge pull request #118 from MetaMask/chore/berachain-deployment
Added Deployment Scripts for Berachain Mainnet
2 parents 0387721 + c0e6e44 commit e8d8457

File tree

11 files changed

+3132
-1
lines changed

11 files changed

+3132
-1
lines changed

.env.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Required for scripts
22
PRIVATE_KEY=
3-
SALT=0
3+
SALT=GATOR
44
DELEGATION_MANAGER_ADDRESS=
55
ENTRYPOINT_ADDRESS=0x0000000071727De22E5E9d8BAf0edAc6f37da032
66
MULTISIG_DELEGATOR_IMPLEMENTATION_ADDRESS=
@@ -16,6 +16,7 @@ BASESCAN_API_KEY=
1616
OPTIMISTIC_API_KEY=
1717
ARBISCAN_API_KEY=
1818
POLYGONSCAN_API_KEY=
19+
ODYSSEY_API_KEY=
1920
GNOSISSCAN_API_KEY=
2021
BINANCESCAN_API_KEY=
2122
BERACHAIN_API_KEY=
@@ -32,6 +33,7 @@ POLYGON_RPC_URL=https://polygon-mainnet.infura.io/v3/${RPC_API_KEY}
3233
BSC_RPC_URL=https://bsc-mainnet.infura.io/v3/${RPC_API_KEY}
3334
GNOSIS_RPC_URL=https://gnosis-rpc.publicnode.com
3435
BINANCE_RPC_URL=https://binance.llamarpc.com
36+
BERACHAIN_RPC_URL=https://rpc.berachain.com
3537

3638
# Testnets
3739
SEPOLIA_RPC_URL=https://sepolia.infura.io/v3/${RPC_API_KEY}

broadcast/DeployCaveatEnforcers.s.sol/80094/run-1749215885.json

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

broadcast/DeployCaveatEnforcers.s.sol/80094/run-latest.json

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

broadcast/DeployDelegationFramework.s.sol/80094/run-1749215746.json

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

broadcast/DeployDelegationFramework.s.sol/80094/run-latest.json

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

broadcast/DeployEIP7702StatelessDeleGator.s.sol/80094/run-1749215917.json

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

broadcast/DeployEIP7702StatelessDeleGator.s.sol/80094/run-latest.json

Lines changed: 81 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"transactions": [
3+
{
4+
"hash": "0xf73a49f23907fa1a1f00a0ee71c47a5e13d388998fdb181473f8216608aec2ae",
5+
"transactionType": "CREATE2",
6+
"contractName": "SimpleFactory",
7+
"contractAddress": "0x69aa2f9fe1572f1b640e1bbc512f5c3a734fc77c",
8+
"function": null,
9+
"arguments": null,
10+
"transaction": {
11+
"from": "0xb0403b32f54d0bd752113f4009e8b534c6669f44",
12+
"to": "0x4e59b44847b379578588920ca78fbf26c0b4956c",
13+
"gas": "0x4d1b8",
14+
"value": "0x0",
15+
"input": "0x4741544f52000000000000000000000000000000000000000000000000000000608060405234801561001057600080fd5b506102ef806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063481286e61461003b5780634af63f021461006a575b600080fd5b61004e6100493660046101cc565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e610078366004610204565b610090565b60006100898284610115565b9392505050565b600061009e60008385610122565b9050806001600160a01b03163b6000036100db576040516301e3495560e61b81526001600160a01b03821660048201526024015b60405180910390fd5b6040516001600160a01b038216907ff40fcec21964ffb566044d083b4073f29f7f7929110ea19e1b3ebe375d89055e90600090a292915050565b60006100898383306101a2565b60008347101561014e5760405163392efb2b60e21b8152476004820152602481018590526044016100d2565b815160000361017057604051631328927760e21b815260040160405180910390fd5b8282516020840186f590506001600160a01b03811661008957604051633a0ba96160e11b815260040160405180910390fd5b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b600080604083850312156101df57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561021757600080fd5b823567ffffffffffffffff8082111561022f57600080fd5b818501915085601f83011261024357600080fd5b813581811115610255576102556101ee565b604051601f8201601f19908116603f0116810190838211818310171561027d5761027d6101ee565b8160405282815288602084870101111561029657600080fd5b82602086016020830137600060209382018401529896909101359650505050505056fea2646970667358221220c5ebe4333fa061619df2864b76011685b4a25867b9958ff350b638fd1a460aaa64736f6c63430008170033",
16+
"nonce": "0x25",
17+
"chainId": "0x138de"
18+
},
19+
"additionalContracts": [],
20+
"isFixedGasLimit": false
21+
}
22+
],
23+
"receipts": [
24+
{
25+
"status": "0x1",
26+
"cumulativeGasUsed": "0x2cd653",
27+
"logs": [],
28+
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
29+
"type": "0x2",
30+
"transactionHash": "0xf73a49f23907fa1a1f00a0ee71c47a5e13d388998fdb181473f8216608aec2ae",
31+
"transactionIndex": "0x6",
32+
"blockHash": "0xecbc3b255e180a71472eae4bf71f873f2d0634ca186c537a8cb0fcb4acad3e48",
33+
"blockNumber": "0x5bcd67",
34+
"gasUsed": "0x34bc4",
35+
"effectiveGasPrice": "0xf4a",
36+
"from": "0xb0403b32f54d0bd752113f4009e8b534c6669f44",
37+
"to": "0x4e59b44847b379578588920ca78fbf26c0b4956c",
38+
"contractAddress": null
39+
}
40+
],
41+
"libraries": [],
42+
"pending": [],
43+
"returns": {},
44+
"timestamp": 1749215942,
45+
"chain": 80094,
46+
"commit": "0387721"
47+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"transactions": [
3+
{
4+
"hash": "0xf73a49f23907fa1a1f00a0ee71c47a5e13d388998fdb181473f8216608aec2ae",
5+
"transactionType": "CREATE2",
6+
"contractName": "SimpleFactory",
7+
"contractAddress": "0x69aa2f9fe1572f1b640e1bbc512f5c3a734fc77c",
8+
"function": null,
9+
"arguments": null,
10+
"transaction": {
11+
"from": "0xb0403b32f54d0bd752113f4009e8b534c6669f44",
12+
"to": "0x4e59b44847b379578588920ca78fbf26c0b4956c",
13+
"gas": "0x4d1b8",
14+
"value": "0x0",
15+
"input": "0x4741544f52000000000000000000000000000000000000000000000000000000608060405234801561001057600080fd5b506102ef806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063481286e61461003b5780634af63f021461006a575b600080fd5b61004e6100493660046101cc565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e610078366004610204565b610090565b60006100898284610115565b9392505050565b600061009e60008385610122565b9050806001600160a01b03163b6000036100db576040516301e3495560e61b81526001600160a01b03821660048201526024015b60405180910390fd5b6040516001600160a01b038216907ff40fcec21964ffb566044d083b4073f29f7f7929110ea19e1b3ebe375d89055e90600090a292915050565b60006100898383306101a2565b60008347101561014e5760405163392efb2b60e21b8152476004820152602481018590526044016100d2565b815160000361017057604051631328927760e21b815260040160405180910390fd5b8282516020840186f590506001600160a01b03811661008957604051633a0ba96160e11b815260040160405180910390fd5b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b600080604083850312156101df57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561021757600080fd5b823567ffffffffffffffff8082111561022f57600080fd5b818501915085601f83011261024357600080fd5b813581811115610255576102556101ee565b604051601f8201601f19908116603f0116810190838211818310171561027d5761027d6101ee565b8160405282815288602084870101111561029657600080fd5b82602086016020830137600060209382018401529896909101359650505050505056fea2646970667358221220c5ebe4333fa061619df2864b76011685b4a25867b9958ff350b638fd1a460aaa64736f6c63430008170033",
16+
"nonce": "0x25",
17+
"chainId": "0x138de"
18+
},
19+
"additionalContracts": [],
20+
"isFixedGasLimit": false
21+
}
22+
],
23+
"receipts": [
24+
{
25+
"status": "0x1",
26+
"cumulativeGasUsed": "0x2cd653",
27+
"logs": [],
28+
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
29+
"type": "0x2",
30+
"transactionHash": "0xf73a49f23907fa1a1f00a0ee71c47a5e13d388998fdb181473f8216608aec2ae",
31+
"transactionIndex": "0x6",
32+
"blockHash": "0xecbc3b255e180a71472eae4bf71f873f2d0634ca186c537a8cb0fcb4acad3e48",
33+
"blockNumber": "0x5bcd67",
34+
"gasUsed": "0x34bc4",
35+
"effectiveGasPrice": "0xf4a",
36+
"from": "0xb0403b32f54d0bd752113f4009e8b534c6669f44",
37+
"to": "0x4e59b44847b379578588920ca78fbf26c0b4956c",
38+
"contractAddress": null
39+
}
40+
],
41+
"libraries": [],
42+
"pending": [],
43+
"returns": {},
44+
"timestamp": 1749215942,
45+
"chain": 80094,
46+
"commit": "0387721"
47+
}

documents/Deployments.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ bytes32 salt = bytes32(abi.encodePacked("GATOR"));
4040
- Linea
4141
- Base
4242
- Gnosis Chain
43+
- Berachain
4344

4445
### Testnets
4546

script/verification/verify-utils.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ CHAIN_IDS=(
2222
10200 # gnosis-chiado
2323
56 # binance
2424
97 # binance-testnet
25+
80094 # berachain
2526
80069 # berachain-testnet
2627
)
2728

@@ -52,6 +53,7 @@ get_chain_config() {
5253
10200) config=("$GNOSISSCAN_API_KEY" "blockscout" "$GNOSIS_CHIADO_RPC_URL" "https://gnosis-chiado.blockscout.com/api") ;; # gnosis-chiado
5354
56) config=("$BINANCESCAN_API_KEY" "etherscan" "$BINANCE_RPC_URL" "https://bscscan.com/") ;; # binance
5455
97) config=("$BINANCESCAN_API_KEY" "etherscan" "$BINANCE_TESTNET_RPC_URL" "https://testnet.bscscan.com/") ;; # binance-testnet
56+
80094) config=("$BERACHAIN_API_KEY" "custom" "$BERACHAIN_RPC_URL" "https://api.berascan.com/api") ;; # berachain
5557
80069) config=("$BERACHAIN_API_KEY" "custom" "$BERACHAIN_TESTNET_RPC_URL" "https://api-testnet.berascan.com/api") ;; # berachain-testnet
5658
*)
5759
echo "Unknown chain ID: $chain_id" >&2

0 commit comments

Comments
 (0)