Commit 0403601
committed
Add upgrade e2e test and fix PackageUpgradedEvent parsing
Adds an end-to-end test that exercises the full governance-gated upgrade
lifecycle and verifies cascading effects across the stack.
The test found a real bug: PackageUpgradedEvent was missing from
HashiEvent::try_parse(), so validators never learned about package
upgrades via the event stream. Fixed by adding the missing match arm.
Test flow:
- Deposit before upgrade, verify balance survives (state continuity)
- Upgrade via propose/vote/execute+publish+finalize
- Verify all node watchers pick up the new package version
- Deposit after upgrade through full validator confirmation path
- Call v2-only canary module (new code reachable)
- Disable v1, verify entry points rejected1 parent a6edbfd commit 0403601
File tree
4 files changed
+783
-0
lines changed- crates
- e2e-tests/src
- hashi-types/src/move_types
4 files changed
+783
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
| |||
0 commit comments