Skip to content

Commit bd01786

Browse files
authored
Merge pull request #39 from OffchainLabs/bold-upgrade-guide-fixes
update bold guide
2 parents be1c247 + f14d6b9 commit bd01786

File tree

1 file changed

+8
-10
lines changed
  • scripts/foundry/contract-upgrades/3.0.0

1 file changed

+8
-10
lines changed

scripts/foundry/contract-upgrades/3.0.0/README.md

+8-10
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,14 @@ $ yarn install
4747
$ yarn build:all
4848
```
4949

50-
4. In `scripts/files/configs`, create a new config file
51-
```
52-
$ cp scripts/files/configs/arb1.ts scripts/files/configs/yourchain.ts
53-
```
54-
55-
5. Edit `scripts/files/configs/yourchain.ts`, be very careful as they will override existing configs
50+
4. Edit `scripts/files/configs/custom.ts`, be very careful as they will override existing configs
5651

57-
6. Setup .env in project root, make sure CONFIG_NETWORK_NAME is same as the config name (e.g. yourchain)
52+
5. Setup .env in project root, make sure `CONFIG_NETWORK_NAME=custom`.
5853
```
5954
$ cp .env-sample .env
6055
```
6156

62-
7. Run the prepare script, this will deploy the actions. L1_PRIV_KEY does not need to be the chain owner.
57+
7. Run the prepare script, this will deploy the actions. L1_PRIV_KEY does not need to be the chain owner. Pass in the parent chain for `--network`
6358
```
6459
$ L1_PRIV_KEY=xxx INFURA_KEY=xxx ETHERSCAN_API_KEY=xxx yarn script:bold-prepare --network {mainnet|arb1|base|arbSepolia}
6560
...
@@ -77,10 +72,13 @@ $ L1_PRIV_KEY=xxx yarn script:bold-populate-lookup
7772
Done.
7873
```
7974

80-
10. Run the upgrade script. If the L1_PRIV_KEY is not the chain owner, it will print the upgrade payload. Execute the payload with the chain owner.
75+
10. Run the upgrade script. If the L1_PRIV_KEY is not the chain owner, it will print the upgrade payload. Execute the payload with the chain owner.
76+
77+
> [!CAUTION]
78+
> This script will not ask for confirmation before sending the transaction!
79+
8180
```
8281
$ L1_PRIV_KEY=xxx yarn script:bold-local-execute
83-
eoa with executor role: 0x6EC62D826aDc24AeA360be9cF2647c42b9Cdb19b
8482
upgrade executor: 0x5FEe78FE9AD96c1d8557C6D6BB22Eb5A61eeD315
8583
execute(...) call to upgrade executor: 0x1cff79cd000000000000000000000000f8199ca3702c09c78b957d4d820311125753c6d2000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a4ebe03a93000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000030000000000000000000000008a8f0a24d7e58a76fc8f77bb68c7c902b91e182e00000000000000000000000087630025e63a30ecf9ca9d580d9d95922fea6af0000000000000000000000000c32b93e581db6ebc50c08ce381143a259b92f1ed00000000000000000000000000000000000000000000000000000000
8684
```

0 commit comments

Comments
 (0)