Not known Factual Statements About scroll bridge
Not known Factual Statements About scroll bridge
Blog Article
As a result, take into consideration regardless of whether is truly worth sustaining both equally frameworks, unifying the testing and protection. On top of that, consider having a exclusive way of working creation scripts in order to avoid sudden executions.
Systematic modifications are built across the codebase to lessen the fuel use of your protocol. The audit yielded a person large-severity issue whilst suggestions to Increase the In general quality and well being of the codebase have also been designed.
Within the IL2GasPriceOracle interface, the two extra getter features don't have any documentation besides one "@recognize" remark.
Nonetheless, this causes a problem. Namely, in circumstances in which a information couldn't be effectively despatched with the bridge, the dropping and asset-return mechanism executed from the L1ScrollMessenger agreement will get caught along with the belongings will not be capable of be compensated again.
In order to be steady and forestall probable mistakes when upgrading long run variations on the agreement, contemplate holding precisely the same kind of deprecating Earlier employed slots even though also addressing The shortage of your __gap variable in the vast majority of contracts.
Blocks are grouped into chunks and chunks are grouped into batches. Chunk encoding structure can be found listed here, and batch encoding format can be found below.
Also, the possible to extend this features to other blockchains opens up interesting options for cross-chain interactions.
Scroll, being a Zk Rollup, has a native bridge from Ethereum which might be accustomed to get tokens to the community. You will discover the Mainnet bridge at:
three. Token Transfer: Within the Bridge interface, you’ll have the choice to deposit or withdraw tokens. Pick out the right action based upon irrespective of whether you’re sending tokens to or from Ethereum.
In such a dropping scenario, Scrollbridge because the deal with that sent the message towards the L1ScrollMessenger contract may be the one particular that could be identified as to execute the onDropMessage hook, if these types of hook just isn't implemented, the dropping mechanism will fail and the original person will not get their ETH back.
Throughout the codebase, there are several cases through which the interface differs from the actual implementation:
About probable permissionlessly callable entry factors, the L2 Gateway Architecture is similar to L1. The real difference is the fact that when sending a information from L2, calling the appendMessage function will store the concept in an append-only binary merkle tree (aka withdraw tree) inside the L2MessageQueue. When a new message is shipped on the L2MessageQueue, the relayer will detect it and shop it during the database.
Tokens might be bridged securely and permissionlessly by means of Gateway contracts deployed by any developer. Nonetheless, Scroll also manages an ERC20 Router along with a Gateway where all tokens established because of the Local community are welcome. Getting A part of the Scroll-managed Gateway indicates you received’t really need to deploy the Gateway contracts, and also your token will seem within the Scroll frontend.
Scroll circuits are determined by the Halo2 evidence system and therefore are intended to replicate the conduct in the EVM. The resource code of The bottom circuits are available here although the code for that aggregation circuits are available here.