Skip to content

Commit 55b0424

Browse files
committed
evm: Add SharedWormholeTransceiver
1 parent 2d9d13b commit 55b0424

File tree

5 files changed

+1120
-43
lines changed

5 files changed

+1120
-43
lines changed

evm/NOTES.md

Lines changed: 19 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
11
# Notes on changes made in this integration branch
22

3-
## Change that wasn't made
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
416

517
It is unfortunate that `token` and `mode` exist in `ManagerBase` rather than `NttManager`.
6-
I tried moving them, but that increases
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
723

824
### Before we started
925

@@ -21,7 +37,7 @@ evm (main)$ forge build --sizes --via-ir --skip test
2137

2238
```
2339

24-
### After moving token and mode
40+
### After moving token and mode (the change that wasn't made)
2541

2642
```bash
2743
evm (main)$ forge build --sizes --via-ir --skip test
@@ -34,28 +50,8 @@ evm (main)$ forge build --sizes --via-ir --skip test
3450

3551
```
3652

37-
Question: Why did `NttManagerNoRateLimiting` grow so much?? Because of this, I am not pursuing moving these fields at this time.
38-
3953
## Creating TransceiverRegistryAdmin
4054

41-
### Before
42-
43-
```bash
44-
evm (main)$ forge build --sizes --via-ir --skip test
45-
46-
╭-----------------------------------------+------------------+-------------------+--------------------+---------------------╮
47-
| Contract | Runtime Size (B) | Initcode Size (B) | Runtime Margin (B) | Initcode Margin (B) |
48-
+===========================================================================================================================+
49-
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
50-
| NttManager | 24,066 | 25,673 | 510 | 23,479 |
51-
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
52-
| NttManagerNoRateLimiting | 17,141 | 18,557 | 7,435 | 30,595 |
53-
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
54-
55-
```
56-
57-
### After
58-
5955
```bash
6056
evm (main)$ forge build --sizes --via-ir --skip test
6157

@@ -69,26 +65,6 @@ evm (main)$ forge build --sizes --via-ir --skip test
6965

7066
## Creating MsgManagerBase
7167

72-
Note that this change is not dependent on `TransceiverRegistryAdmin`.
73-
74-
### Before
75-
76-
```bash
77-
evm (main)$ forge build --sizes --via-ir --skip test
78-
79-
╭-----------------------------------------+------------------+-------------------+--------------------+---------------------╮
80-
| Contract | Runtime Size (B) | Initcode Size (B) | Runtime Margin (B) | Initcode Margin (B) |
81-
+===========================================================================================================================+
82-
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
83-
| NttManager | 24,066 | 25,673 | 510 | 23,479 |
84-
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
85-
| NttManagerNoRateLimiting | 17,141 | 18,557 | 7,435 | 30,595 |
86-
|-----------------------------------------+------------------+-------------------+--------------------+---------------------|
87-
88-
```
89-
90-
### After
91-
9268
```bash
9369
evm (main)$ forge build --sizes --via-ir --skip test
9470

0 commit comments

Comments
 (0)