@@ -9,7 +9,7 @@ This integration branch is PR #21.
9
9
Note that the indentation indicates branch dependencies.
10
10
11
11
- ** evm_TransceiverRegistry_split** (PR #22 ) - This branch splits transceiver admin into a separate contract.
12
- - ** evm_per_chain_transceivers** (PR #26 ) - This branch adds per-chain transceiver support, should also add per-chain thresholds .
12
+ - ** evm_per_chain_transceivers** (PR #26 ) - This branch adds per-chain transceiver and per-chain threshold support .
13
13
- ** evm/add_MsgManager** (PR #23 ) - Creates ` MsgManagerBase ` and ` MsgManager ` and makes ` NttManager ` inherit from ` MsgManagerBase ` .
14
14
- ** evm/add_SharedWormholeTransceiver** (PR #25 ) - Adds a shareable transceiver.
15
15
@@ -26,49 +26,65 @@ However, some of the other changes also cause that increase, so maybe we can rev
26
26
27
27
``` bash
28
28
evm (main)$ forge build --sizes --via-ir --skip test
29
-
30
29
╭-----------------------------------------+------------------+-------------------+--------------------+---------------------╮
31
30
| Contract | Runtime Size (B) | Initcode Size (B) | Runtime Margin (B) | Initcode Margin (B) |
32
31
+===========================================================================================================================+
33
32
| -----------------------------------------+------------------+-------------------+--------------------+---------------------|
34
33
| NttManager | 24,066 | 25,673 | 510 | 23,479 |
35
34
| -----------------------------------------+------------------+-------------------+--------------------+---------------------|
36
35
| NttManagerNoRateLimiting | 17,141 | 18,557 | 7,435 | 30,595 |
37
- | -----------------------------------------+------------------+-------------------+--------------------+---------------------|
38
-
36
+ ╰-----------------------------------------+------------------+-------------------+--------------------+---------------------╯
39
37
```
40
38
41
39
### After moving token and mode (the change that wasn't made)
42
40
43
41
``` bash
44
42
evm (main)$ forge build --sizes --via-ir --skip test
45
-
43
+ ╭-----------------------------------------+------------------+-------------------+--------------------+---------------------╮
44
+ | Contract | Runtime Size (B) | Initcode Size (B) | Runtime Margin (B) | Initcode Margin (B) |
45
+ +===========================================================================================================================+
46
46
| -----------------------------------------+------------------+-------------------+--------------------+---------------------|
47
47
| NttManager | 24,066 | 25,676 | 510 | 23,476 |
48
48
| -----------------------------------------+------------------+-------------------+--------------------+---------------------|
49
49
| NttManagerNoRateLimiting | 18,788 | 20,281 | 5,788 | 28,871 |
50
- | -----------------------------------------+------------------+-------------------+--------------------+---------------------|
51
-
50
+ ╰-----------------------------------------+------------------+-------------------+--------------------+---------------------╯
52
51
```
53
52
54
53
## Creating TransceiverRegistryAdmin
55
54
56
55
``` bash
57
56
evm (main)$ forge build --sizes --via-ir --skip test
58
-
57
+ ╭-----------------------------------------+------------------+-------------------+--------------------+---------------------╮
58
+ | Contract | Runtime Size (B) | Initcode Size (B) | Runtime Margin (B) | Initcode Margin (B) |
59
+ +===========================================================================================================================+
59
60
| -----------------------------------------+------------------+-------------------+--------------------+---------------------|
60
61
| NttManager | 23,220 | 26,937 | 1,356 | 22,215 |
61
62
| -----------------------------------------+------------------+-------------------+--------------------+---------------------|
62
63
| NttManagerNoRateLimiting | 16,254 | 19,713 | 8,322 | 29,439 |
63
- | -----------------------------------------+------------------+-------------------+--------------------+---------------------|
64
+ ╰-----------------------------------------+------------------+-------------------+--------------------+---------------------╯
65
+ ```
64
66
67
+ ## Adding Per-Chain Transceivers (on top of TransceiverRegistryAdmin)
68
+
69
+ ``` bash
70
+ evm (main)$ forge build --sizes --via-ir --skip test
71
+ ╭-----------------------------------------+------------------+-------------------+--------------------+---------------------╮
72
+ | Contract | Runtime Size (B) | Initcode Size (B) | Runtime Margin (B) | Initcode Margin (B) |
73
+ +===========================================================================================================================+
74
+ | -----------------------------------------+------------------+-------------------+--------------------+---------------------|
75
+ | NttManager | 24,089 | 31,480 | 487 | 17,672 |
76
+ | -----------------------------------------+------------------+-------------------+--------------------+---------------------|
77
+ | NttManagerNoRateLimiting | 17,150 | 24,275 | 7,426 | 24,877 |
78
+ ╰-----------------------------------------+------------------+-------------------+--------------------+---------------------╯
65
79
```
66
80
67
81
## Creating MsgManagerBase
68
82
69
83
``` bash
70
84
evm (main)$ forge build --sizes --via-ir --skip test
71
-
85
+ ╭-----------------------------------------+------------------+-------------------+--------------------+---------------------╮
86
+ | Contract | Runtime Size (B) | Initcode Size (B) | Runtime Margin (B) | Initcode Margin (B) |
87
+ +===========================================================================================================================+
72
88
| -----------------------------------------+------------------+-------------------+--------------------+---------------------|
73
89
| NttManager | 24,076 | 25,719 | 500 | 23,433 |
74
90
| -----------------------------------------+------------------+-------------------+--------------------+---------------------|
@@ -77,6 +93,5 @@ evm (main)$ forge build --sizes --via-ir --skip test
77
93
| MsgManager | 12,540 | 13,745 | 12,036 | 35,407 |
78
94
| -----------------------------------------+------------------+-------------------+--------------------+---------------------|
79
95
| MsgManagerWithExecutor | 13,145 | 14,400 | 11,431 | 34,752 |
80
- | -----------------------------------------+------------------+-------------------+--------------------+---------------------|
81
-
96
+ ╰-----------------------------------------+------------------+-------------------+--------------------+---------------------╯
82
97
```
0 commit comments