|
| 1 | +## Gas Consumption |
| 2 | + |
| 3 | +### `NATIVE-TO-ERC` Bridge Mode |
| 4 | + |
| 5 | +#### Deployment |
| 6 | +##### Home |
| 7 | + Contract | Method | Min | Max | Avg |
| 8 | +---- | ---- | ---- | ---- | ---- |
| 9 | +EternalStorageProxy|deployment|378510|378510|378510 |
| 10 | +BridgeValidators|deployment|1144207|1144207|1144207 |
| 11 | +EternalStorageProxy|upgradeTo|35871|30924|30913 |
| 12 | +BridgeValidators|initialize|187738|280847|253949 |
| 13 | +EternalStorageProxy|transferProxyOwnership|30653|30653|30653 |
| 14 | +EternalStorageProxy|deployment|378510|378510|378510 |
| 15 | +HomeBridgeNativeToErc|deployment|3327263|3327263|3327263 |
| 16 | +EternalStorageProxy|upgradeTo|35871|30924|30913 |
| 17 | +HomeBridgeNativeToErc|initialize|190051|190947|190755 |
| 18 | +EternalStorageProxy|transferProxyOwnership|30653|30653|30653 |
| 19 | +Total| |5739327|5823438|5796326 |
| 20 | + |
| 21 | +##### Foreign |
| 22 | + Contract | Method | Min | Max | Avg |
| 23 | +---- | ---- | ---- | ---- | ---- |
| 24 | +ERC677BridgeToken|deployment|1498202|1499226|1498829 |
| 25 | +EternalStorageProxy|deployment|378510|378510|378510 |
| 26 | +BridgeValidators|deployment|1144207|1144207|1144207 |
| 27 | +EternalStorageProxy|upgradeTo|35871|30924|30913 |
| 28 | +BridgeValidators|initialize|187738|280847|253949 |
| 29 | +EternalStorageProxy|transferProxyOwnership|30653|30653|30653 |
| 30 | +EternalStorageProxy|deployment|378510|378510|378510 |
| 31 | +ForeignBridgeNativeToErc|deployment|2768705|2768705|2768705 |
| 32 | +EternalStorageProxy|upgradeTo|35871|30924|30913 |
| 33 | +ForeignBridgeNativeToErc|initialize|213493|213557|213549 |
| 34 | +ERC677BridgeToken|setBridgeContract|29432|44432|39432 |
| 35 | +ERC677BridgeToken|transferOwnership|30860|30924|30913 |
| 36 | +EternalStorageProxy|transferProxyOwnership|30653|30653|30653 |
| 37 | +Total| |6762705|6862072|6829736 |
| 38 | + |
| 39 | +#### Usage |
| 40 | + |
| 41 | +##### Validators |
| 42 | + |
| 43 | + Contract | Method | Min | Max | Avg |
| 44 | +---- | ---- | ---- | ---- | ---- |
| 45 | +To sign at the Home (each validator)| |
| 46 | +HomeBridgeNativeToErc|submitSignature|159362|275135|220127 |
| 47 | +To relay signatures from the Home to the Foreign (one validator)| |
| 48 | +ForeignBridgeNativeToErc|executeSignatures|89201|146127|120917 |
| 49 | +To sign and relay from the Foreign to the Home (each validator)| |
| 50 | +HomeBridgeNativeToErc|executeAffirmation|64314|107669|83596 |
| 51 | + |
| 52 | +##### Users |
| 53 | + |
| 54 | + Contract | Method | Min | Max | Avg |
| 55 | +---- | ---- | ---- | ---- | ---- |
| 56 | +To request transfer from the Home to the Foreign| |
| 57 | +HomeBridgeNativeToErc|fallback|46982|46982|46982 |
| 58 | +To request transfer from the Foreign to the Home| |
| 59 | +ERC677BridgeToken|transferAndCall|58370|166206|92399 |
| 60 | + |
| 61 | + |
| 62 | +### `ERC-TO-ERC` Bridge Mode |
| 63 | + |
| 64 | +#### Deployment |
| 65 | +##### Home |
| 66 | + Contract | Method | Min | Max | Avg |
| 67 | +---- | ---- | ---- | ---- | ---- |
| 68 | +EternalStorageProxy|deployment|378510|378510|378510 |
| 69 | +BridgeValidators|deployment|1144207|1144207|1144207 |
| 70 | +EternalStorageProxy|upgradeTo|35871|30924|30913 |
| 71 | +BridgeValidators|initialize|187738|280847|253949 |
| 72 | +EternalStorageProxy|transferProxyOwnership|30653|30653|30653 |
| 73 | +EternalStorageProxy|deployment|378510|378510|378510 |
| 74 | +HomeBridgeErcToErc|deployment|3528509|3528509|3528509 |
| 75 | +EternalStorageProxy|upgradeTo|35871|30924|30913 |
| 76 | +ERC677BridgeToken|deployment|1498202|1499226|1498829 |
| 77 | +ERC677BridgeToken|setBridgeContract|29432|44432|39432 |
| 78 | +ERC677BridgeToken|transferOwnership|30860|30924|30913 |
| 79 | +HomeBridgeErcToErc|initialize|212299|213195|213003 |
| 80 | +EternalStorageProxy|transferProxyOwnership|30653|30653|30653 |
| 81 | +Total| |7521315|7621514|7588994 |
| 82 | + |
| 83 | +##### Foreign |
| 84 | + Contract | Method | Min | Max | Avg |
| 85 | +---- | ---- | ---- | ---- | ---- |
| 86 | +EternalStorageProxy|deployment|378510|378510|378510 |
| 87 | +BridgeValidators|deployment|1144207|1144207|1144207 |
| 88 | +EternalStorageProxy|upgradeTo|35871|30924|30913 |
| 89 | +BridgeValidators|initialize|187738|280847|253949 |
| 90 | +EternalStorageProxy|transferProxyOwnership|30653|30653|30653 |
| 91 | +EternalStorageProxy|deployment|378510|378510|378510 |
| 92 | +ForeignBridgeErcToErc|deployment|2449436|2449436|2449436 |
| 93 | +EternalStorageProxy|upgradeTo|35871|30924|30913 |
| 94 | +ForeignBridgeErcToErc|initialize|150614|150614|150614 |
| 95 | +EternalStorageProxy|transferProxyOwnership|30653|30653|30653 |
| 96 | +Total| |4822063|4905278|4878358 |
| 97 | + |
| 98 | +#### Usage |
| 99 | + |
| 100 | +##### Validators |
| 101 | + |
| 102 | + Contract | Method | Min | Max | Avg |
| 103 | +---- | ---- | ---- | ---- | ---- |
| 104 | +To sign at the Home (each validator)| |
| 105 | +HomeBridgeErcToErc|submitSignature|159386|275159|220171 |
| 106 | +To relay signatures from the Home to the Foreign (one validator)| |
| 107 | +ForeignBridgeErcToErc|executeSignatures|73779|115769|93027 |
| 108 | +To sign and relay from the Foreign to the Home (each validator)| |
| 109 | +HomeBridgeErcToErc|executeAffirmation|79336|134607|108215 |
| 110 | + |
| 111 | +##### Users |
| 112 | + |
| 113 | + Contract | Method | Min | Max | Avg |
| 114 | +---- | ---- | ---- | ---- | ---- |
| 115 | +To request transfer from the Home to the Foreign| |
| 116 | +ERC677BridgeToken|transferAndCall|58370|166206|92399 |
| 117 | +To request transfer from the Foreign to the Home| |
| 118 | +ERC677BridgeToken|transfer|37691|86589|55000 |
| 119 | + |
| 120 | + |
| 121 | +### `ERC-TO-NATIVE` Bridge Mode |
| 122 | + |
| 123 | +#### Deployment |
| 124 | +##### Home |
| 125 | + Contract | Method | Min | Max | Avg |
| 126 | +---- | ---- | ---- | ---- | ---- |
| 127 | +EternalStorageProxy|deployment|378510|378510|378510 |
| 128 | +BridgeValidators|deployment|1144207|1144207|1144207 |
| 129 | +EternalStorageProxy|upgradeTo|35871|30924|30913 |
| 130 | +BridgeValidators|initialize|187738|280847|253949 |
| 131 | +EternalStorageProxy|transferProxyOwnership|30653|30653|30653 |
| 132 | +EternalStorageProxy|deployment|378510|378510|378510 |
| 133 | +HomeBridgeErcToNative|deployment|3757420|3757420|3757420 |
| 134 | +EternalStorageProxy|upgradeTo|35871|30924|30913 |
| 135 | +HomeBridgeErcToNative|initialize|196910|213930|210795 |
| 136 | +EternalStorageProxy|transferProxyOwnership|30653|30653|30653 |
| 137 | +Total| |6176343|6276578|6246523 |
| 138 | + |
| 139 | +##### Foreign |
| 140 | + Contract | Method | Min | Max | Avg |
| 141 | +---- | ---- | ---- | ---- | ---- |
| 142 | +EternalStorageProxy|deployment|378510|378510|378510 |
| 143 | +BridgeValidators|deployment|1144207|1144207|1144207 |
| 144 | +EternalStorageProxy|upgradeTo|35871|30924|30913 |
| 145 | +BridgeValidators|initialize|187738|280847|253949 |
| 146 | +EternalStorageProxy|transferProxyOwnership|30653|30653|30653 |
| 147 | +EternalStorageProxy|deployment|378510|378510|378510 |
| 148 | +ForeignBridgeErcToNative|deployment|2449564|2449564|2449564 |
| 149 | +EternalStorageProxy|upgradeTo|35871|30924|30913 |
| 150 | +ForeignBridgeErcToNative|initialize|150614|150614|150614 |
| 151 | +EternalStorageProxy|transferProxyOwnership|30653|30653|30653 |
| 152 | +Total| | |
| 153 | + |
| 154 | +#### Usage |
| 155 | + |
| 156 | +##### Validators |
| 157 | + |
| 158 | + Contract | Method | Min | Max | Avg |
| 159 | +---- | ---- | ---- | ---- | ---- |
| 160 | +To sign at the Home (each validator)| |
| 161 | +HomeBridgeErcToNative|submitSignature|159428|275201|220206 |
| 162 | +To relay signatures from the Home to the Foreign (one validator)| |
| 163 | +ForeignBridgeErcToNative|executeSignatures|73779|115769|92985 |
| 164 | +To sign and relay from the Foreign to the Home (each validator)| |
| 165 | +HomeBridgeErcToNative|executeAffirmation|64380|140744|97562 |
| 166 | + |
| 167 | +##### Users |
| 168 | + |
| 169 | + Contract | Method | Min | Max | Avg |
| 170 | +---- | ---- | ---- | ---- | ---- |
| 171 | +To request transfer from the Home to the Foreign| |
| 172 | +HomeBridgeErcToNative|fallback|80174|80174|80174 |
| 173 | +To request transfer from the Foreign to the Home| |
| 174 | +ERC677BridgeToken|transfer|37691|86589|55000 |
0 commit comments