Skip to content

Commit ada34c1

Browse files
committed
evm: Modular Messaging
1 parent 3f56da6 commit ada34c1

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

evm/NOTES.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Notes on changes made in this integration branch
2+
3+
This file is meant to document the work in progress on this integration branch. It can probably be deleted (or the information moved some place better) before this PR is merged.
4+
5+
This integration branch is PR #21.
6+
7+
## Sub Branches
8+
9+
Note that the indentation indicates branch dependencies.
10+
11+
- **evm_TransceiverRegistry_split** (PR #22) - This branch splits transceiver admin into a separate contract.
12+
- **evm/add_MsgManager** (PR #23) - Creates `MsgManagerBase` and `MsgManager` and makes `NttManager` inherit from `MsgManagerBase`.
13+
- **evm/add_SharedWormholeTransceiver** (PR #25) - Adds a shareable transceiver.
14+
15+
## The change that wasn't made
16+
17+
It is unfortunate that `token` and `mode` exist in `ManagerBase` rather than `NttManager`.
18+
I tried moving them, but that increases the size of `NttManagerNoRateLimiting` considerably.
19+
I'm not sure why that is, or how to avoid it, so I did not pursue that change at this time.
20+
However, some of the other changes also cause that increase, so maybe we can revist this.
21+
22+
## Contract Sizes
23+
24+
### Before we started
25+
26+
```bash
27+
evm (main)$ forge build --sizes --via-ir --skip test
28+
29+
╭-----------------------------------------+------------------+-------------------+--------------------+---------------------╮
30+
| Contract | Runtime Size (B) | Initcode Size (B) | Runtime Margin (B) | Initcode Margin (B) |
31+
+===========================================================================================================================+
32+
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
33+
| NttManager | 24,066 | 25,673 | 510 | 23,479 |
34+
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
35+
| NttManagerNoRateLimiting | 17,141 | 18,557 | 7,435 | 30,595 |
36+
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
37+
38+
```
39+
40+
### After moving token and mode (the change that wasn't made)
41+
42+
```bash
43+
evm (main)$ forge build --sizes --via-ir --skip test
44+
45+
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
46+
| NttManager | 24,066 | 25,676 | 510 | 23,476 |
47+
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
48+
| NttManagerNoRateLimiting | 18,788 | 20,281 | 5,788 | 28,871 |
49+
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
50+
51+
```
52+
53+
## Creating TransceiverRegistryAdmin
54+
55+
```bash
56+
evm (main)$ forge build --sizes --via-ir --skip test
57+
58+
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
59+
| NttManager | 23,220 | 26,937 | 1,356 | 22,215 |
60+
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
61+
| NttManagerNoRateLimiting | 16,254 | 19,713 | 8,322 | 29,439 |
62+
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
63+
64+
```
65+
66+
## Creating MsgManagerBase
67+
68+
```bash
69+
evm (main)$ forge build --sizes --via-ir --skip test
70+
71+
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
72+
| NttManager | 24,076 | 25,719 | 500 | 23,433 |
73+
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
74+
| NttManagerNoRateLimiting | 18,496 | 19,949 | 6,080 | 29,203 |
75+
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
76+
| MsgManager | 12,540 | 13,745 | 12,036 | 35,407 |
77+
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
78+
| MsgManagerWithExecutor | 13,145 | 14,400 | 11,431 | 34,752 |
79+
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
80+
81+
```

0 commit comments

Comments
 (0)