Skip to content

Latest commit

 

History

History
55 lines (47 loc) · 2.05 KB

ERC-TO-NATIVE.md

File metadata and controls

55 lines (47 loc) · 2.05 KB

Gas Consumption ERC-TO-NATIVE Bridge Mode

Deployment

Home
Contract Method Min Max Avg
EternalStorageProxy deployment 378510 378510 378510
BridgeValidators deployment 1351491 1351491 1351491
EternalStorageProxy upgradeTo 35871 30924 30913
BridgeValidators initialize 210762 306607 270900
EternalStorageProxy transferProxyOwnership 30653 30653 30653
EternalStorageProxy deployment 378510 378510 378510
HomeBridgeErcToNative deployment 5644337 5644337 5644337
EternalStorageProxy upgradeTo 35871 30924 30913
HomeBridgeErcToNative initialize 264356 281376 278561
EternalStorageProxy transferProxyOwnership 30653 30653 30653
Total 8361014 8463985 8425441
Foreign
Contract Method Min Max Avg
EternalStorageProxy deployment 378510 378510 378510
BridgeValidators deployment 1351491 1351491 1351491
EternalStorageProxy upgradeTo 35871 30924 30913
BridgeValidators initialize 210762 306607 270900
EternalStorageProxy transferProxyOwnership 30653 30653 30653
EternalStorageProxy deployment 378510 378510 378510
ForeignBridgeErcToNative deployment 2863900 2863900 2863900
EternalStorageProxy upgradeTo 35871 30924 30913
ForeignBridgeErcToNative initialize 239130 239130 239130
EternalStorageProxy transferProxyOwnership 30653 30653 30653
Total 5555351 5641302 5605573

Usage

Validators
Contract Method Min Max Avg
To sign at the Home (each validator)
HomeBridgeErcToNative submitSignature 159926 275699 221104
To relay signatures from the Home to the Foreign (one validator)
ForeignBridgeErcToNative executeSignatures 83142 140737 114527
To sign and relay from the Foreign to the Home (each validator)
HomeBridgeErcToNative executeAffirmation 67379 166131 110341
Users
Contract Method Min Max Avg
To request transfer from the Home to the Foreign
HomeBridgeErcToNative fallback 81045 81045 81045
To request transfer from the Foreign to the Home
ERC677BridgeToken transfer 37691 86589 55000