Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Gateway release candidate #1035

Open
wants to merge 251 commits into
base: sync-layer-stable
Choose a base branch
from

Conversation

kelemeno
Copy link
Contributor

What ❔

Why ❔

Checklist

  • 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.

StanislavBreadless and others added 30 commits October 10, 2024 11:42
…ator.sol

Co-authored-by: Vlad Bochok <41153528+vladbochok@users.noreply.github.com>
Co-authored-by: Vlad Bochok <41153528+vladbochok@users.noreply.github.com>
Co-authored-by: Vlad Bochok <41153528+vladbochok@users.noreply.github.com>
Co-authored-by: Vlad Bochok <41153528+vladbochok@users.noreply.github.com>
Co-authored-by: Vlad Bochok <41153528+vladbochok@users.noreply.github.com>
Copy link

github-actions bot commented Oct 28, 2024

Changes to gas cost

Generated at commit: e14c4961ca9ecce889f5cca82aa14b04dd9bf318, compared to commit: 5b8b0785e4f7bae0b6d09d2dcd3d2b324204c16d

🧾 Summary (100% most significant diffs)

Contract Method Avg (+/-) %
ChainTypeManager createNewChain
forwardedBridgeBurn
forwardedBridgeMint
getHyperchain
initialize
setNewVersionUpgrade
setValidatorTimelock
+13,786 ❌
+301 ❌
+51,120 ❌
+4,673 ❌
+993 ❌
+3,004 ❌
-2,117 ✅
+0.43%
+0.93%
+1.64%
+272.48%
+0.80%
+1.96%
-26.33%
TransparentUpgradeableProxy allowL2Admin
bridgeCheckCounterpartAddress
bridgeRecoverFailedTransfer
bridgehubDeposit
bridgehubDepositBaseToken
chainBalance(uint256,bytes32)
claimFailedDeposit
createNewChain
depositLegacyErc20Bridge
encodeTxDataHash
finalizeDeposit
finalizeWithdrawal
getERC20Getters
getHyperchain
nullifyChainBalanceByNTV
originChainId
registerEthToken
registerToken
setAllowedData
setNativeTokenVault
setNewVersionUpgrade
setValidatorTimelock
transferFundsFromSharedBridge
transferTokenToNTV
updateChainBalancesFromSharedBridge
validateCall
validatorTimelock
-44 ✅
-148 ✅
+30 ❌
+1,776 ❌
+3,000 ❌
+22 ❌
+1 ❌
+36,621 ❌
+2,184 ❌
+15 ❌
+349 ❌
-2,206 ✅
+14 ❌
+4,673 ❌
-52 ✅
-67 ✅
+71 ❌
+176 ❌
+1 ❌
-2 ✅
+3,004 ❌
-2,113 ✅
-68 ✅
-39 ✅
-45 ✅
-638 ✅
-22 ✅
-0.08%
-1.87%
+0.03%
+2.01%
+3.53%
+1.27%
+0.00%
+1.32%
+1.40%
+0.37%
+0.27%
-1.97%
+0.12%
+199.19%
-0.17%
-5.74%
+0.06%
+0.12%
+0.00%
-0.00%
+1.46%
-5.81%
-0.13%
-0.11%
-0.09%
-2.14%
-0.41%
L1Nullifier bridgeRecoverFailedTransfer
claimFailedDeposit
encodeTxDataHash
finalizeDeposit
initialize
nullifyChainBalanceByNTV
transferTokenToNTV
+34 ❌
+1 ❌
+15 ❌
+36,651 ❌
+22 ❌
-14 ✅
-11 ✅
+0.06%
+0.00%
+0.44%
+50.86%
+0.02%
-0.31%
-0.12%
L1AssetRouter bridgeRecoverFailedTransfer
bridgehubDeposit
bridgehubDepositBaseToken
depositLegacyErc20Bridge
finalizeDeposit
finalizeWithdrawal
setAssetHandlerAddressThisChain
setNativeTokenVault
transferFundsToNTV
+7 ❌
+1,777 ❌
+2,999 ❌
+2,184 ❌
+73 ❌
-2,206 ✅
+62 ❌
-1 ✅
+2,903 ❌
+0.02%
+2.92%
+5.16%
+1.62%
+0.15%
-2.61%
+0.16%
-0.00%
+35.24%
DeployL1Script runForTest -6,197,791 ✅ -33.73%
L1ERC20Bridge deposit(address,address,uint256,uint256,uint256)
deposit(address,address,uint256,uint256,uint256,address)
+13,372 ❌
+18,399 ❌
+21.14%
+25.44%
DummyBridgehubSetter baseToken
createNewChain
removeChainTypeManager
requestL2TransactionDirect
requestL2TransactionTwoBridges
setAddresses
setPendingAdmin
setZKChain
unpause
+22 ❌
-1,775 ✅
+26 ❌
+22,332 ❌
+2,430 ❌
+23 ❌
0 ➖
+30 ❌
+22 ❌
+0.18%
-1.63%
+0.10%
+23.20%
+1.63%
+0.03%
0.00%
+0.03%
+0.09%
L1NativeTokenVault bridgeBurn
bridgeCheckCounterpartAddress
bridgeMint
bridgeRecoverFailedTransfer
chainBalance
ensureTokenIsRegistered
getERC20Getters
initialize
registerEthToken
registerToken
tokenAddress
transferFundsFromSharedBridge
updateChainBalancesFromSharedBridge
+3,889 ❌
-139 ✅
+73 ❌
+10 ❌
+22 ❌
+274 ❌
+14 ❌
+22 ❌
+71 ❌
+176 ❌
+22 ❌
-65 ✅
-45 ✅
+4.53%
-18.76%
+0.25%
+0.05%
+2.13%
+0.24%
+0.30%
+0.04%
+0.07%
+0.14%
+1.35%
-0.27%
-0.16%
GettersFacet facetAddress
getTotalBatchesExecuted
isFunctionFreezable
+110 ❌
-22 ✅
-22 ✅
+17.71%
-0.92%
-2.24%
ChainAdmin addRestriction
setUpgradeTimestamp
-10,726 ✅
+7 ❌
-16.61%
+0.02%
AdminFacet executeUpgrade
forwardedBridgeBurn
forwardedBridgeMint
genesisUpgrade
prepareChainCommitment
setDAValidatorPair
setPorterAvailability
setPriorityTxMaxGasLimit
setValidator
upgradeChainFromVersion
-467 ✅
+2,282 ❌
+2,376 ❌
+12,439 ❌
+2,212 ❌
+2,146 ❌
-6 ✅
+22 ❌
-1 ✅
+22 ❌
-0.15%
+4.16%
+2.53%
+9.89%
+15.91%
+4.27%
-0.05%
+0.48%
-0.01%
+0.21%
DiamondProxy executeUpgrade
facetAddress
finalizeEthWithdrawal
functionWithOnlyAdminModifier
functionWithOnlyAdminOrChainTypeManagerModifier
functionWithOnlyBridgehubModifier
functionWithOnlyChainTypeManagerModifier
functionWithOnlyValidatorModifier
getChainId
getTotalBatchesExecuted
isFunctionFreezable
prepareChainCommitment
requestL2Transaction
setDAValidatorPair
setPorterAvailability
setPriorityTxMaxGasLimit
setValidator
upgradeChainFromVersion
-525 ✅
+110 ❌
+370 ❌
-28 ✅
-17 ✅
-22 ✅
-22 ✅
-22 ✅
+500 ❌
-22 ✅
-22 ✅
+2,218 ❌
+35 ❌
+2,146 ❌
-6 ✅
+22 ❌
-1 ✅
+22 ❌
-0.18%
+7.87%
+0.47%
-0.09%
-0.05%
-0.07%
-0.07%
-0.07%
+5.45%
-0.69%
-1.25%
+15.02%
+0.03%
+2.70%
-0.02%
+0.07%
-0.00%
+0.06%
L1GenesisUpgrade genesisUpgrade
upgrade
+12,439 ❌
+1,369 ❌
+10.87%
+2.28%
TestCalldataDA processCalldataDA
processL2RollupDAValidatorOutputHash
-66 ✅
+17 ❌
-9.52%
+1.04%
AccessControlRestriction grantRole
setRequiredRoleForCall
setRequiredRoleForFallback
+110 ❌
-4,201 ✅
-4,139 ✅
+0.21%
-8.41%
-8.38%
GettersFacetWrapper isFunctionFreezable
util_setFacetFunctionSelectors
util_setIsEthWithdrawalFinalized
util_setStoredBatchHash
-22 ✅
+88 ❌
-22 ✅
+89 ❌
-2.61%
+0.13%
-0.05%
+0.20%
Bridgehub createNewChain
ctmAssetIdFromChainId
setAddresses
+13,225 ❌
-169 ✅
+21 ❌
+0.33%
-3.44%
+0.04%
DefaultUpgrade upgrade -1,089 ✅ -3.75%
DiamondCutTestContract diamondCut
facetAddresses
-21 ✅
-22 ✅
-0.01%
-1.37%
TestBaseFacet functionWithOnlyAdminModifier
functionWithOnlyAdminOrChainTypeManagerModifier
functionWithOnlyBridgehubModifier
functionWithOnlyChainTypeManagerModifier
functionWithOnlyValidatorModifier
-28 ✅
-17 ✅
-22 ✅
-22 ✅
-22 ✅
-1.21%
-0.42%
-0.94%
-0.93%
-0.90%
DummyChainTypeManagerWBH owner
setZKChain
+22 ❌
+23 ❌
+0.89%
+0.05%
MerkleTest calculateRoot(bytes32[],bytes32[],uint256,bytes32[]) -16 ✅ -0.28%
L2SharedBridgeLegacy initialize -2,608 ✅ -0.12%
ValidatorTimelock commitBatchesSharedBridge
executeBatchesSharedBridge
proveBatchesSharedBridge
revertBatchesSharedBridge
+58 ❌
+23 ❌
+34 ❌
+23 ❌
+0.10%
+0.07%
+0.10%
+0.08%
FullMerkleTest updateAllLeaves
updateLeaf
+24 ❌
-9 ✅
+0.05%
-0.03%
PriorityTreeTest initFromCommitment
processBatch
+8 ❌
-18 ✅
+0.01%
-0.05%
TestnetERC20Token approve
transfer
-6 ✅
+2 ❌
-0.01%
+0.00%
BridgedStandardERC20 bridgeInitialize -70 ✅ -0.03%
MessageRoot addChainBatchRoot
addNewChain
-24 ✅
-2 ✅
-0.03%
-0.00%
RelayedSLDAValidator checkDA +9 ❌ +0.03%

Full diff report 👇
Contract Deployment Cost (+/-) Method Min (+/-) % Avg (+/-) % Median (+/-) % Max (+/-) % # Calls (+/-)
ChainTypeManager 3,735,015 (-91,173) createNewChain
forwardedBridgeBurn
forwardedBridgeMint
getHyperchain
initialize
setNewVersionUpgrade
setValidatorTimelock
validatorTimelock
1,046 (0)
32,832 (+301)
3,160,368 (+51,120)
6,388 (+4,673)
22,764 (0)
155,950 (+3,004)
2,670 (-2,102)
425 (-22)
0.00%
+0.93%
+1.64%
+272.48%
0.00%
+1.96%
-44.05%
-4.92%
3,252,674 (+13,786)
32,832 (+301)
3,160,368 (+51,120)
6,388 (+4,673)
124,565 (+993)
155,950 (+3,004)
5,922 (-2,117)
1,425 (-22)
+0.43%
+0.93%
+1.64%
+272.48%
+0.80%
+1.96%
-26.33%
-1.52%
3,487,678 (+13,195)
32,832 (+301)
3,160,368 (+51,120)
6,388 (+4,673)
211,567 (+1,475)
155,950 (+3,004)
5,922 (-2,117)
1,425 (-22)
+0.38%
+0.93%
+1.64%
+272.48%
+0.70%
+1.96%
-26.33%
-1.52%
3,489,678 (+13,195)
32,832 (+301)
3,160,368 (+51,120)
6,388 (+4,673)
230,335 (+1,852)
155,950 (+3,004)
9,174 (-2,133)
2,425 (-22)
+0.38%
+0.93%
+1.64%
+272.48%
+0.81%
+1.96%
-18.86%
-0.90%
34 (-1)
1 (0)
3 (0)
23 (-1)
79 (-2)
1 (0)
2 (0)
4 (0)
TransparentUpgradeableProxy 848,425 (+204,050) allowL2Admin
bridgeCheckCounterpartAddress
bridgeRecoverFailedTransfer
bridgehubDeposit
bridgehubDepositBaseToken
chainBalance(uint256,bytes32)
claimFailedDeposit
createNewChain
depositLegacyErc20Bridge
encodeTxDataHash
finalizeDeposit
finalizeWithdrawal
getERC20Getters
getHyperchain
nullifyChainBalanceByNTV
originChainId
registerEthToken
registerToken
setAllowedData
setNativeTokenVault
setNewVersionUpgrade
setValidatorTimelock
tokenAddress
transferFundsFromSharedBridge
transferTokenToNTV
updateChainBalancesFromSharedBridge
validateCall
validatorTimelock
52,747 (-44)
7,749 (-148)
45,730 (+48)
46,570 (-166)
29,946 (0)
1,243 (+22)
49,253 (-29)
55,179 (0)
39,966 (0)
2,734 (+15)
125,410 (+341)
55,616 (-1,184)
11,939 (+14)
7,019 (+4,673)
31,291 (-52)
1,100 (-67)
123,184 (+11)
28,945 (-62)
55,405 (-22)
33,030 (-67)
208,400 (+3,004)
31,030 (-2,093)
0 (0)
39,610 (-143)
31,117 (0)
51,303 (-45)
18,168 (+10,065)
1,053 (-22)
-0.08%
-1.87%
+0.11%
-0.36%
0.00%
+1.80%
-0.06%
0.00%
0.00%
+0.55%
+0.27%
-2.08%
+0.12%
+199.19%
-0.17%
-5.74%
+0.01%
-0.21%
-0.04%
-0.20%
+1.46%
-6.32%
+∞%
-0.36%
0.00%
-0.09%
+124.21%
-2.05%
52,747 (-44)
7,749 (-148)
88,388 (+30)
90,032 (+1,776)
87,873 (+3,000)
1,761 (+22)
87,024 (+1)
2,814,758 (+36,621)
158,085 (+2,184)
4,084 (+15)
131,914 (+349)
109,544 (-2,206)
11,939 (+14)
7,019 (+4,673)
31,291 (-52)
1,100 (-67)
128,289 (+71)
150,638 (+176)
56,482 (+1)
74,745 (-2)
208,400 (+3,004)
34,274 (-2,113)
3,974 (+22)
51,451 (-68)
34,489 (-39)
51,417 (-45)
29,152 (-638)
5,303 (-22)
-0.08%
-1.87%
+0.03%
+2.01%
+3.53%
+1.27%
+0.00%
+1.32%
+1.40%
+0.37%
+0.27%
-1.97%
+0.12%
+199.19%
-0.17%
-5.74%
+0.06%
+0.12%
+0.00%
-0.00%
+1.46%
-5.81%
+0.56%
-0.13%
-0.11%
-0.09%
-2.14%
-0.41%
52,747 (-44)
7,749 (-148)
98,846 (+85)
94,602 (+4,967)
82,566 (+14)
1,243 (+22)
95,113 (+8)
3,365,014 (+60,542)
217,112 (+3,276)
2,734 (+15)
131,914 (+349)
124,063 (-2,392)
11,939 (+14)
7,019 (+4,673)
31,291 (-52)
1,100 (-67)
127,837 (+73)
151,097 (+179)
56,062 (-46)
75,815 (0)
208,400 (+3,004)
34,274 (-2,113)
3,217 (+22)
51,243 (-65)
34,489 (-39)
51,417 (-45)
29,091 (-2,838)
5,303 (-22)
-0.08%
-1.87%
+0.09%
+5.54%
+0.02%
+1.80%
+0.01%
+1.83%
+1.53%
+0.55%
+0.27%
-1.89%
+0.12%
+199.19%
-0.17%
-5.74%
+0.06%
+0.12%
-0.08%
0.00%
+1.46%
-5.81%
+0.69%
-0.13%
-0.11%
-0.09%
-8.89%
-0.41%
52,747 (-44)
7,749 (-148)
110,129 (-98)
139,253 (+5,336)
120,887 (+5,392)
9,743 (+22)
105,796 (+8)
3,543,999 (+13,195)
217,177 (+3,276)
7,234 (+15)
138,419 (+357)
133,529 (-2,641)
11,939 (+14)
7,019 (+4,673)
31,291 (-52)
1,100 (-67)
134,968 (+73)
158,228 (+179)
58,225 (+2)
75,815 (0)
208,400 (+3,004)
37,518 (-2,133)
9,717 (+22)
62,280 (-5)
37,861 (-78)
51,531 (-45)
35,352 (-4,272)
9,553 (-22)
-0.08%
-1.87%
-0.09%
+3.98%
+4.67%
+0.23%
+0.01%
+0.37%
+1.53%
+0.21%
+0.26%
-1.94%
+0.12%
+199.19%
-0.17%
-5.74%
+0.05%
+0.11%
+0.00%
0.00%
+1.46%
-5.38%
+0.23%
-0.01%
-0.21%
-0.09%
-10.78%
-0.23%
1 (0)
1 (0)
4 (0)
12 (0)
9 (0)
718 (0)
8 (0)
11 (0)
3 (0)
10 (0)
2 (0)
20 (0)
1 (0)
23 (-1)
1 (0)
518 (0)
880 (0)
881 (0)
257 (0)
80 (0)
1 (0)
2 (0)
3,881 (0)
5 (0)
2 (0)
2 (0)
9 (-1)
4 (0)
L1Nullifier 2,603,615 (+18,856) bridgeRecoverFailedTransfer
claimFailedDeposit
encodeTxDataHash
finalizeDeposit
initialize
nullifyChainBalanceByNTV
transferTokenToNTV
14,188 (+48)
18,764 (-29)
2,070 (+15)
102,401 (+92,316)
141,224 (+22)
2,581 (-43)
2,550 (0)
+0.34%
-0.15%
+0.73%
+915.38%
+0.02%
-1.64%
0.00%
60,652 (+34)
62,682 (+1)
3,420 (+15)
108,718 (+36,651)
141,224 (+22)
4,575 (-14)
9,467 (-11)
+0.06%
+0.00%
+0.44%
+50.86%
+0.02%
-0.31%
-0.12%
73,387 (+1)
70,826 (+8)
2,070 (+15)
108,718 (+21,757)
141,224 (+22)
5,572 (0)
9,885 (-33)
+0.00%
+0.01%
+0.73%
+25.02%
+0.02%
0.00%
-0.33%
81,647 (+85)
87,483 (+8)
6,570 (+15)
115,036 (+357)
141,224 (+22)
5,572 (0)
17,190 (0)
+0.10%
+0.01%
+0.23%
+0.31%
+0.02%
0.00%
0.00%
4 (0)
8 (0)
10 (0)
2 (-20)
78 (0)
3 (0)
6 (0)
L1AssetRouter 3,307,200 (-63,491) bridgeRecoverFailedTransfer
bridgehubDeposit
bridgehubDepositBaseToken
depositLegacyErc20Bridge
finalizeDeposit
finalizeWithdrawal
setAssetHandlerAddressThisChain
setNativeTokenVault
transferFundsToNTV
16,807 (+22)
16,399 (-157)
572 (0)
10,298 (0)
25,986 (+73)
24,945 (-1,184)
29,685 (+62)
4,706 (-55)
1,303 (0)
+0.13%
-0.95%
0.00%
0.00%
+0.28%
-4.53%
+0.21%
-1.16%
0.00%
34,710 (+7)
62,644 (+1,777)
61,169 (+2,999)
136,682 (+2,184)
47,719 (+73)
82,444 (-2,206)
39,635 (+62)
66,565 (-1)
11,140 (+2,903)
+0.02%
+2.92%
+5.16%
+1.62%
+0.15%
-2.61%
+0.16%
-0.00%
+35.24%
36,852 (+22)
64,854 (+5,006)
53,199 (+14)
199,848 (+3,276)
46,748 (+73)
96,883 (-2,392)
39,635 (+62)
68,687 (0)
11,333 (+3,382)
+0.06%
+8.36%
+0.03%
+1.67%
+0.16%
-2.41%
+0.16%
0.00%
+42.54%
44,478 (+22)
118,916 (+5,336)
96,320 (+5,392)
199,901 (+3,276)
54,102 (+73)
109,478 (-2,641)
49,585 (+62)
68,687 (0)
37,712 (+5,340)
+0.05%
+4.70%
+5.93%
+1.67%
+0.14%
-2.36%
+0.13%
0.00%
+16.50%
9 (0)
12 (0)
9 (0)
3 (0)
14 (0)
20 (0)
156 (0)
848 (0)
19 (0)
DeployL1Script 58,529,396 (+808,997) runForTest 12,177,181 (-6,197,791) -33.73% 12,177,181 (-6,197,791) -33.73% 12,177,181 (-6,197,791) -33.73% 12,177,181 (-6,197,791) -33.73% 3 (0)
L1ERC20Bridge 1,238,384 (+54,756) deposit(address,address,uint256,uint256,uint256)
deposit(address,address,uint256,uint256,uint256,address)
27,875 (0)
28,071 (0)
0.00%
0.00%
76,620 (+13,372)
90,711 (+18,399)
+21.14%
+25.44%
102,354 (+24,532)
103,066 (+24,588)
+31.52%
+31.33%
119,840 (+25,047)
104,107 (+12,254)
+26.42%
+13.34%
12 (0)
6 (0)
DummyBridgehubSetter 4,350,895 (+37,836) addChainTypeManager
baseToken
createNewChain
proveL1ToL2TransactionStatus
proveL2LogInclusion
proveL2MessageInclusion
removeChainTypeManager
requestL2TransactionDirect
requestL2TransactionTwoBridges
setAddresses
setPendingAdmin
setZKChain
sharedBridge
unpause
23,895 (0)
3,346 (+22)
28,613 (-444)
0 (0)
0 (0)
0 (0)
23,854 (+22)
33,041 (+21)
31,035 (+30)
24,370 (+22)
25,999 (-12)
111,369 (+30)
387 (-67)
24,928 (+22)
0.00%
+0.66%
-1.53%
+∞%
+∞%
+∞%
+0.09%
+0.06%
+0.10%
+0.09%
-0.05%
+0.03%
-14.76%
+0.09%
44,147 (-1)
12,179 (+22)
107,325 (-1,775)
1,385 (-5)
1,494 (-19)
1,580 (-25)
25,495 (+26)
118,573 (+22,332)
151,464 (+2,430)
66,086 (+23)
47,720 (0)
111,406 (+30)
1,187 (-67)
24,928 (+22)
-0.00%
+0.18%
-1.63%
-0.36%
-1.26%
-1.56%
+0.10%
+23.20%
+1.63%
+0.03%
0.00%
+0.03%
-5.34%
+0.09%
47,621 (0)
14,346 (+22)
36,509 (0)
985 (-6)
1,100 (-3)
1,191 (0)
25,854 (+22)
95,539 (+19,470)
59,724 (+12,529)
71,227 (+22)
49,885 (0)
111,417 (+30)
387 (-67)
24,928 (+22)
0.00%
+0.15%
0.00%
-0.61%
-0.27%
0.00%
+0.09%
+25.60%
+26.55%
+0.03%
0.00%
+0.03%
-14.76%
+0.09%
47,621 (0)
18,846 (+22)
873,549 (-16,906)
3,639 (+14)
3,873 (0)
4,069 (0)
26,266 (+22)
297,223 (+70,301)
434,730 (+9,091)
91,367 (+22)
49,897 (0)
111,429 (+30)
2,387 (-67)
24,928 (+22)
0.00%
+0.12%
-1.90%
+0.39%
0.00%
0.00%
+0.08%
+30.98%
+2.14%
+0.02%
0.00%
+0.03%
-2.73%
+0.09%
6,656 (0)
1,536 (0)
2,560 (0)
512 (0)
512 (0)
512 (0)
2,048 (0)
1,024 (0)
1,535 (-1)
3,328 (0)
4,864 (0)
2,816 (0)
1,280 (0)
256 (0)
L1NativeTokenVault 3,438,536 (+115,061) bridgeBurn
bridgeCheckCounterpartAddress
bridgeMint
bridgeRecoverFailedTransfer
chainBalance
ensureTokenIsRegistered
getERC20Getters
initialize
originChainId
registerEthToken
registerToken
tokenAddress
transferFundsFromSharedBridge
updateChainBalancesFromSharedBridge
12,799 (+22)
602 (-139)
10,660 (+73)
5,293 (+22)
609 (+22)
753 (+22)
4,715 (+14)
23,225 (+22)
469 (-67)
94,995 (+11)
621 (-50)
586 (+22)
11,046 (-131)
27,628 (-45)
+0.17%
-18.76%
+0.69%
+0.42%
+3.75%
+3.01%
+0.30%
+0.09%
-12.50%
+0.01%
-7.45%
+3.90%
-1.17%
-0.16%
89,762 (+3,889)
602 (-139)
29,745 (+73)
19,411 (+10)
1,054 (+22)
114,076 (+274)
4,715 (+14)
54,457 (+22)
469 (-67)
100,100 (+71)
122,082 (+176)
1,652 (+22)
23,938 (-65)
27,628 (-45)
+4.53%
-18.76%
+0.25%
+0.05%
+2.13%
+0.24%
+0.30%
+0.04%
-12.50%
+0.07%
+0.14%
+1.35%
-0.27%
-0.16%
106,025 (+5,376)
602 (-139)
31,259 (+73)
22,425 (+22)
609 (+22)
116,261 (+279)
4,715 (+14)
52,729 (+22)
469 (-67)
99,648 (+73)
122,537 (+179)
2,586 (+22)
22,911 (-65)
27,628 (-45)
+5.34%
-18.76%
+0.23%
+0.10%
+3.75%
+0.24%
+0.30%
+0.04%
-12.50%
+0.07%
+0.15%
+0.86%
-0.28%
-0.16%
106,025 (+5,376)
602 (-139)
34,936 (+73)
30,051 (+22)
2,609 (+22)
116,261 (+279)
4,715 (+14)
72,629 (+22)
469 (-67)
106,779 (+73)
129,668 (+179)
2,586 (+22)
35,787 (-65)
27,628 (-45)
+5.34%
-18.76%
+0.21%
+0.07%
+0.85%
+0.24%
+0.30%
+0.03%
-12.50%
+0.07%
+0.14%
+0.86%
-0.18%
-0.16%
1,299 (0)
1 (0)
14 (0)
9 (0)
718 (0)
261 (0)
1 (0)
881 (0)
518 (0)
880 (0)
881 (0)
3,840 (0)
5 (0)
2 (0)
GettersFacet 926,206 (+4,100) facetAddress
getAdmin
getTotalBatchesExecuted
isFunctionFreezable
731 (+110)
375 (0)
2,380 (-22)
958 (-22)
+17.71%
0.00%
-0.92%
-2.24%
731 (+110)
2,193 (+152)
2,380 (-22)
958 (-22)
+17.71%
+7.45%
-0.92%
-2.24%
731 (+110)
2,375 (0)
2,380 (-22)
958 (-22)
+17.71%
0.00%
-0.92%
-2.24%
731 (+110)
2,375 (0)
2,380 (-22)
958 (-22)
+17.71%
0.00%
-0.92%
-2.24%
31 (0)
11 (-1)
5 (0)
31 (0)
ChainAdmin 835,016 (+50,140) addRestriction
setUpgradeTimestamp
21,897 (-2,306)
25,361 (0)
-9.53%
0.00%
53,862 (-10,726)
45,315 (+7)
-16.61%
+0.02%
75,759 (+3,093)
45,333 (+24)
+4.26%
+0.05%
82,935 (+10,269)
45,645 (0)
+14.13%
0.00%
9 (+3)
256 (0)
AdminFacet 3,390,692 (-23,518) executeUpgrade
forwardedBridgeBurn
forwardedBridgeMint
genesisUpgrade
prepareChainCommitment
setDAValidatorPair
setPorterAvailability
setPriorityTxMaxGasLimit
setValidator
upgradeChainFromVersion
2,598 (+22)
57,168 (+2,282)
96,137 (+2,376)
136,292 (+11,071)
16,117 (+2,212)
52,461 (+2,146)
2,582 (-6)
2,514 (+22)
2,622 (-1)
4,869 (+22)
+0.85%
+4.16%
+2.53%
+8.84%
+15.91%
+4.27%
-0.23%
+0.88%
-0.04%
+0.45%
315,913 (-467)
57,168 (+2,282)
96,137 (+2,376)
138,205 (+12,439)
16,117 (+2,212)
52,461 (+2,146)
12,301 (-6)
4,623 (+22)
12,655 (-1)
10,690 (+22)
-0.15%
+4.16%
+2.53%
+9.89%
+15.91%
+4.27%
-0.05%
+0.48%
-0.01%
+0.21%
503,334 (+10)
57,168 (+2,282)
96,137 (+2,376)
138,416 (+13,195)
16,117 (+2,212)
52,461 (+2,146)
8,611 (-6)
2,517 (+22)
9,122 (-1)
9,928 (+22)
+0.00%
+4.16%
+2.53%
+10.54%
+15.91%
+4.27%
-0.07%
+0.88%
-0.01%
+0.22%
503,384 (+10)
57,168 (+2,282)
96,137 (+2,376)
140,416 (+13,195)
16,117 (+2,212)
52,461 (+2,146)
25,711 (-6)
8,838 (+22)
26,222 (-1)
18,035 (+22)
+0.00%
+4.16%
+2.53%
+10.37%
+15.91%
+4.27%
-0.02%
+0.25%
-0.00%
+0.12%
5 (0)
1 (0)
3 (0)
32 (-1)
6 (0)
33 (0)
3 (0)
3 (0)
3 (0)
4 (0)
DiamondProxy 2,405,277 (0) commitBatchesSharedBridge
executeUpgrade
facetAddress
finalizeEthWithdrawal
functionWithOnlyAdminModifier
functionWithOnlyAdminOrChainTypeManagerModifier
functionWithOnlyBridgehubModifier
functionWithOnlyChainTypeManagerModifier
functionWithOnlyValidatorModifier
getAdmin
getChainId
getProtocolVersion
getTotalBatchesExecuted
isFunctionFreezable
prepareChainCommitment
requestL2Transaction
setDAValidatorPair
setPorterAvailability
setPriorityTxMaxGasLimit
setValidator
upgradeChainFromVersion
util_setChainId
0 (0)
31,777 (+22)
1,508 (+110)
37,779 (0)
30,593 (-22)
30,685 (-22)
30,615 (-22)
30,637 (-22)
30,731 (-22)
1,146 (0)
9,674 (+4,500)
5,152 (0)
3,151 (-22)
1,735 (-22)
16,985 (+2,218)
33,295 (0)
81,541 (+2,146)
31,067 (-6)
31,002 (+22)
31,481 (-1)
34,194 (+22)
28,944 (0)
+∞%
+0.07%
+7.87%
0.00%
-0.07%
-0.07%
-0.07%
-0.07%
-0.07%
0.00%
+86.97%
0.00%
-0.69%
-1.25%
+15.02%
0.00%
+2.70%
-0.02%
+0.07%
-0.00%
+0.06%
0.00%
38,436 (+1)
296,570 (-525)
1,508 (+110)
79,645 (+370)
30,627 (-28)
32,323 (-17)
30,655 (-22)
30,677 (-22)
30,771 (-22)
5,191 (-38)
9,674 (+500)
8,902 (-107)
3,151 (-22)
1,735 (-22)
16,985 (+2,218)
131,441 (+35)
81,541 (+2,146)
39,177 (-6)
33,116 (+22)
39,905 (-1)
40,016 (+22)
33,811 (-4)
+0.00%
-0.18%
+7.87%
+0.47%
-0.09%
-0.05%
-0.07%
-0.07%
-0.07%
-0.73%
+5.45%
-1.19%
-0.69%
-1.25%
+15.02%
+0.03%
+2.70%
-0.02%
+0.07%
-0.00%
+0.06%
-0.01%
64,986 (0)
449,681 (+10)
1,508 (+110)
80,003 (-24)
30,627 (-28)
32,856 (-15)
30,655 (-22)
30,677 (-22)
30,771 (-22)
5,146 (0)
9,674 (0)
9,652 (0)
3,151 (-22)
1,735 (-22)
16,985 (+2,218)
170,048 (+12)
81,541 (+2,146)
32,277 (-6)
31,032 (+22)
33,162 (-1)
39,256 (+22)
33,756 (0)
0.00%
+0.00%
+7.87%
-0.03%
-0.09%
-0.05%
-0.07%
-0.07%
-0.07%
0.00%
0.00%
0.00%
-0.69%
-1.25%
+15.02%
+0.01%
+2.70%
-0.02%
+0.07%
-0.00%
+0.06%
0.00%
92,401 (0)
449,731 (+10)
1,508 (+110)
80,291 (0)
30,662 (-33)
32,896 (-15)
30,695 (-22)
30,717 (-22)
30,811 (-22)
9,646 (0)
9,674 (0)
9,652 (0)
3,151 (-22)
1,735 (-22)
16,985 (+2,218)
191,977 (0)
81,541 (+2,146)
54,189 (-6)
37,316 (+22)
55,074 (-1)
47,357 (+22)
34,128 (0)
0.00%
+0.00%
+7.87%
0.00%
-0.11%
-0.05%
-0.07%
-0.07%
-0.07%
0.00%
0.00%
0.00%
-0.69%
-1.25%
+15.02%
0.00%
+2.70%
-0.01%
+0.06%
-0.00%
+0.05%
0.00%
43 (0)
5 (0)
31 (0)
257 (0)
2 (0)
4 (0)
2 (0)
2 (0)
2 (0)
11 (-1)
9 (0)
6 (-1)
5 (0)
31 (0)
6 (0)
771 (0)
33 (0)
3 (0)
3 (0)
3 (0)
4 (0)
519 (0)
L1GenesisUpgrade 2,757,217 (+79,148) genesisUpgrade
upgrade
124,983 (+11,071)
61,306 (+1,369)
+9.72%
+2.28%
126,896 (+12,439)
61,306 (+1,369)
+10.87%
+2.28%
127,107 (+13,195)
61,306 (+1,369)
+11.58%
+2.28%
129,107 (+13,195)
61,306 (+1,369)
+11.38%
+2.28%
32 (-1)
32 (-1)
TestCalldataDA 438,629 (-44,095) processCalldataDA
processL2RollupDAValidatorOutputHash
616 (-66)
616 (-21)
-9.68%
-3.30%
627 (-66)
1,650 (+17)
-9.52%
+1.04%
616 (-66)
1,615 (+148)
-9.68%
+10.09%
2,495 (0)
2,802 (0)
0.00%
0.00%
260 (0)
5 (0)
AccessControlRestriction 1,357,213 (+27,431) grantRole
setRequiredRoleForCall
setRequiredRoleForFallback
51,277 (+111)
24,360 (-24,327)
24,219 (-23,818)
+0.22%
-49.97%
-49.58%
51,511 (+110)
45,734 (-4,201)
45,231 (-4,139)
+0.21%
-8.41%
-8.38%
51,649 (+111)
49,094 (+35)
48,444 (+35)
+0.22%
+0.07%
+0.07%
51,649 (+111)
54,114 (0)
53,925 (0)
+0.22%
0.00%
0.00%
1,024 (0)
1,536 (+256)
1,536 (+256)
GettersFacetWrapper 1,733,474 (+4,104) getL2BootloaderBytecodeHash
getL2SystemContractsUpgradeBatchNumber
getTotalBatchesCommitted
getTotalBatchesVerified
isFunctionFreezable
util_setFacetFunctionSelectors
util_setIsEthWithdrawalFinalized
util_setStoredBatchHash
358 (-22)
424 (-22)
380 (-22)
402 (-22)
713 (-22)
70,466 (+88)
44,264 (-22)
44,261 (+89)
-5.79%
-4.93%
-5.47%
-5.19%
-2.99%
+0.13%
-0.05%
+0.20%
358 (-22)
424 (-22)
380 (-22)
402 (-22)
820 (-22)
70,466 (+88)
44,264 (-22)
44,261 (+89)
-5.79%
-4.93%
-5.47%
-5.19%
-2.61%
+0.13%
-0.05%
+0.20%
358 (-22)
424 (-22)
380 (-22)
402 (-22)
820 (-22)
70,466 (+88)
44,264 (-22)
44,261 (+89)
-5.79%
-4.93%
-5.47%
-5.19%
-2.61%
+0.13%
-0.05%
+0.20%
358 (-22)
424 (-22)
380 (-22)
402 (-22)
927 (-22)
70,466 (+88)
44,264 (-22)
44,261 (+89)
-5.79%
-4.93%
-5.47%
-5.19%
-2.32%
+0.13%
-0.05%
+0.20%
1 (0)
1 (0)
1 (0)
1 (0)
2 (0)
1 (0)
1 (0)
2 (0)
Bridgehub 4,320,479 (+36,686) createNewChain
ctmAssetIdFromChainId
getZKChain
l1CtmDeployer
setAddresses
sharedBridge
3,984,428 (+13,225)
4,744 (-169)
0 (0)
414 (0)
50,895 (+22)
409 (+22)
+0.33%
-3.44%
+∞%
0.00%
+0.04%
+5.68%
3,984,428 (+13,225)
4,744 (-169)
2,946 (+4)
2,339 (-3)
50,988 (+21)
971 (+39)
+0.33%
-3.44%
+0.14%
-0.13%
+0.04%
+4.18%
3,984,428 (+13,225)
4,744 (-169)
2,770 (0)
2,414 (0)
50,895 (+22)
409 (+22)
+0.33%
-3.44%
0.00%
0.00%
+0.04%
+5.68%
3,984,428 (+13,225)
4,744 (-169)
5,051 (0)
2,414 (0)
51,135 (+22)
2,409 (+22)
+0.33%
-3.44%
0.00%
0.00%
+0.04%
+0.92%
23 (-1)
4 (-1)
57 (-3)
27 (-1)
59 (-2)
32 (-1)
DefaultUpgrade 1,169,206 (-163,639) upgrade 27,928 (-1,089) -3.75% 27,928 (-1,089) -3.75% 27,928 (-1,089) -3.75% 27,928 (-1,089) -3.75% 1 (0)
DiamondCutTestContract 1,830,548 (+4,152) diamondCut
facetAddresses
23,647 (-22)
1,028 (-22)
-0.09%
-2.10%
204,876 (-21)
1,579 (-22)
-0.01%
-1.37%
45,109 (-22)
1,302 (-22)
-0.05%
-1.66%
1,448,008 (-22)
2,685 (-22)
-0.00%
-0.81%
20 (0)
4 (0)
TestBaseFacet 149,615 (-19,404) functionWithOnlyAdminModifier
functionWithOnlyAdminOrChainTypeManagerModifier
functionWithOnlyBridgehubModifier
functionWithOnlyChainTypeManagerModifier
functionWithOnlyValidatorModifier
2,261 (-22)
2,353 (-22)
2,283 (-22)
2,305 (-22)
2,399 (-22)
-0.96%
-0.93%
-0.95%
-0.95%
-0.91%
2,290 (-28)
3,986 (-17)
2,318 (-22)
2,340 (-22)
2,434 (-22)
-1.21%
-0.42%
-0.94%
-0.93%
-0.90%
2,290 (-28)
4,519 (-15)
2,318 (-22)
2,340 (-22)
2,434 (-22)
-1.21%
-0.33%
-0.94%
-0.93%
-0.90%
2,320 (-33)
4,554 (-15)
2,353 (-22)
2,375 (-22)
2,469 (-22)
-1.40%
-0.33%
-0.93%
-0.92%
-0.88%
2 (0)
4 (0)
2 (0)
2 (0)
2 (0)
DummyChainTypeManagerWBH 3,757,044 (-91,147) owner
setZKChain
2,485 (+22)
44,123 (+22)
+0.89%
+0.05%
2,485 (+22)
44,162 (+23)
+0.89%
+0.05%
2,485 (+22)
44,183 (+22)
+0.89%
+0.05%
2,485 (+22)
44,183 (+22)
+0.89%
+0.05%
256 (0)
256 (0)
MailboxFacet 2,681,325 (-62,209) finalizeEthWithdrawal
requestL2Transaction
8,251 (0)
3,249 (0)
0.00%
0.00%
52,315 (+370)
101,615 (+19)
+0.71%
+0.02%
52,735 (0)
139,015 (0)
0.00%
0.00%
52,735 (0)
163,466 (0)
0.00%
0.00%
257 (0)
771 (0)
MerkleTest 436,733 (-26,841) calculateRoot(bytes32[],bytes32[],uint256,bytes32[])
calculateRoot(bytes32[],uint256,bytes32)
1,601 (0)
571 (0)
0.00%
0.00%
5,718 (-16)
2,929 (-2)
-0.28%
-0.07%
1,826 (-33)
2,982 (0)
-1.78%
0.00%
13,520 (0)
3,026 (0)
0.00%
0.00%
8 (0)
265 (0)
L2SharedBridgeLegacy 3,252,432 (-4,318) initialize 2,264,678 (-2,608) -0.12% 2,264,678 (-2,608) -0.12% 2,264,678 (-2,608) -0.12% 2,264,678 (-2,608) -0.12% 6 (0)
ValidatorTimelock 793,785 (+7,946) commitBatchesSharedBridge
executeBatchesSharedBridge
proveBatchesSharedBridge
revertBatchesSharedBridge
30,416 (0)
26,651 (0)
28,081 (0)
23,922 (0)
0.00%
0.00%
0.00%
0.00%
57,715 (+58)
33,090 (+23)
33,282 (+34)
27,336 (+23)
+0.10%
+0.07%
+0.10%
+0.08%
63,173 (+69)
31,154 (0)
33,282 (+34)
23,934 (0)
+0.11%
0.00%
+0.10%
0.00%
63,185 (+69)
41,466 (+69)
38,484 (+69)
34,152 (+69)
+0.11%
+0.17%
+0.18%
+0.20%
6 (0)
3 (0)
2 (0)
3 (0)
FullMerkleTest 786,882 (-9,287) updateAllLeaves
updateLeaf
26,077 (+94)
24,387 (-18)
+0.36%
-0.07%
47,381 (+24)
35,326 (-9)
+0.05%
-0.03%
43,754 (0)
35,326 (-9)
0.00%
-0.03%
75,940 (0)
46,266 (0)
0.00%
0.00%
4 (0)
2 (0)
PriorityTreeTest 866,422 (-42,436) initFromCommitment
processBatch
54,084 (+8)
23,693 (0)
+0.01%
0.00%
54,084 (+8)
37,388 (-18)
+0.01%
-0.05%
54,084 (+8)
36,255 (-36)
+0.01%
-0.10%
54,084 (+8)
53,350 (0)
+0.01%
0.00%
1 (0)
4 (0)
DiamondInit 439,771 (0) initialize 22,599 (0) 0.00% 376,387 (-148) -0.04% 378,218 (0) 0.00% 398,118 (0) 0.00% 146 (-1)
TestnetERC20Token 640,427 (0) allowance
approve
mint
transfer
845 (0)
24,272 (0)
34,031 (0)
46,377 (0)
0.00%
0.00%
0.00%
0.00%
2,842 (+1)
46,253 (-6)
61,794 (-5)
46,719 (+2)
+0.04%
-0.01%
-0.01%
+0.00%
2,845 (0)
46,208 (-12)
68,255 (0)
46,653 (+12)
0.00%
-0.03%
0.00%
+0.03%
2,845 (0)
46,568 (0)
68,615 (0)
46,977 (0)
0.00%
0.00%
0.00%
0.00%
3,116 (+1,035)
1,527 (0)
1,704 (0)
257 (0)
BridgedStandardERC20 2,119,776 (-2,816) bridgeInitialize 226,152 (-70) -0.03% 226,152 (-70) -0.03% 226,152 (-70) -0.03% 226,152 (-70) -0.03% 3 (0)
MessageRoot 1,392,122 (-1,986) addChainBatchRoot
addNewChain
27,574 (-72)
21,830 (-7)
-0.26%
-0.03%
77,592 (-24)
218,079 (-2)
-0.03%
-0.00%
102,601 (0)
283,496 (0)
0.00%
0.00%
102,601 (0)
283,496 (0)
0.00%
0.00%
3 (0)
4 (0)
RelayedSLDAValidator 575,510 (-55,578) checkDA 27,686 (-37) -0.13% 31,407 (+9) +0.03% 29,818 (+16) +0.05% 38,307 (+42) +0.11% 4 (0)
MerkleTreeNoSort 534,636 (0) getProof 2,594 (0) 0.00% 32,740 (+2) +0.01% 33,193 (0) 0.00% 33,215 (0) 0.00% 277 (0)
TestExecutor 2,645,612 (-99,070) commitBatchesSharedBridge 7,873 (0) 0.00% 32,670 (+1) +0.00% 32,724 (0) 0.00% 47,347 (0) 0.00% 23 (0)
L2WrappedBaseToken 1,652,822 (+12)
DummyChainTypeManager 3,755,282 (-91,159)
DummyChainTypeManagerForValidatorTimelock 198,961 (+11,894)
DummyZKChain 2,888,058 (-62,187)
PriorityQueueTest 287,021 (-12)
TestExecutorFacet 2,734,330 (-99,012)
Utils 4,658,074 (-9,611)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants