Commit 9445a68
authored
feat: Additional gateway upgrade testing (#3449)
## What ❔
- Add server feature to automatically switch l2 shared bridge as well.
Also, l2 wrapped base token is also fetched from L1 upon upgrade. This
reduces the risk of misconfiguration.
- Added WIP tool for zkstack to generate the calldata for the admin. It
will have to be prettified before going public, but it is in `dev` so it
is okay
## Why ❔
<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->
## Checklist
<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->
- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zkstack dev fmt` and `zkstack dev
lint`.1 parent 1f1cbf0 commit 9445a68
File tree
43 files changed
+1506
-622
lines changed- core
- bin/external_node/src/config
- lib
- config/src
- configs
- contracts/src
- dal
- .sqlx
- src
- env_config/src
- protobuf_config/src
- proto/config
- types/src
- web3_decl/src/namespaces
- node
- api_server/src/web3
- backend_jsonrpsee/namespaces
- namespaces
- unstable
- eth_watch/src
- event_processors
- tests
- node_framework/src/implementations/layers
- web3_api/server
- tests/ts-integration/tests
- zkstack_cli
- crates
- config/src
- forge_interface/gateway_ecosystem_upgrade
- zkstack
- completion
- src/commands
- chain
- dev
- commands
- ecosystem
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
43 files changed
+1506
-622
lines changed- AllContractsHashes.json+4-4
- l1-contracts/.env+2
- l1-contracts/deploy-scripts/AcceptAdmin.s.sol+26
- l1-contracts/deploy-scripts/Create2AndTransfer.sol+26
- l1-contracts/deploy-scripts/CreateAndTransfer.sol-17
- l1-contracts/deploy-scripts/RegisterZKChain.s.sol+4-4
- l1-contracts/deploy-scripts/upgrade/BytecodePublisher.s.sol+11-6
- l1-contracts/deploy-scripts/upgrade/ChainUpgrade.s.sol+5-81
- l1-contracts/deploy-scripts/upgrade/EcosystemUpgrade.s.sol+284-83
- l1-contracts/deploy-scripts/upgrade/README.md+10
- l1-contracts/foundry.toml+1
- l1-contracts/package.json+1-1
- l1-contracts/scripts/display-governance.ts+1-1
- l1-contracts/scripts/upgrade-env-generator.ts+47
- l1-contracts/test/foundry/l1/integration/UpgradeTest.t.sol+4-2
- l1-contracts/upgrade-envs/devnet.toml+28
- l1-contracts/upgrade-envs/mainnet-era.toml+2
- l1-contracts/upgrade-envs/mainnet.toml+28
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
198 | 202 | | |
199 | 203 | | |
200 | 204 | | |
| |||
235 | 239 | | |
236 | 240 | | |
237 | 241 | | |
| 242 | + | |
238 | 243 | | |
239 | 244 | | |
240 | 245 | | |
| |||
1477 | 1482 | | |
1478 | 1483 | | |
1479 | 1484 | | |
| 1485 | + | |
1480 | 1486 | | |
1481 | 1487 | | |
1482 | 1488 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| 25 | + | |
21 | 26 | | |
22 | 27 | | |
23 | 28 | | |
| |||
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
53 | | - | |
54 | | - | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| |||
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
79 | | - | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
272 | 271 | | |
273 | 272 | | |
274 | 273 | | |
| |||
763 | 762 | | |
764 | 763 | | |
765 | 764 | | |
| 765 | + | |
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
64 | 73 | | |
65 | 74 | | |
66 | 75 | | |
| |||
180 | 189 | | |
181 | 190 | | |
182 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
183 | 200 | | |
184 | 201 | | |
185 | 202 | | |
| |||
201 | 218 | | |
202 | 219 | | |
203 | 220 | | |
204 | | - | |
| 221 | + | |
205 | 222 | | |
206 | 223 | | |
207 | 224 | | |
| |||
Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 0 additions & 34 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
89 | 108 | | |
90 | 109 | | |
91 | 110 | | |
| |||
0 commit comments