Skip to content

nitantchhajed/optimistic-L2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

optimistic-L2

Making L2 chain, Optimistic/zkRollup

The Rollup contract functionalities -

-Deposit funds into the layer 2 chain -Withdraw funds from the layer 2 chain -Batch and submit a group of layer 2 transactions to the Ethereum mainchain -Verify and apply the results of a batch of layer 2 transactions -verify the batch data using a fraud-proof mechanism -Submit a fraud-proof to the mainchain, challenging a previous batch -Verify and process a fraud-proof submitted by a user


The deposit contract is responsible for maintaining the guaranteed gas market, charging deposits for gas to be used on L2, and ensuring that the total amount of guaranteed gas in a single L1 block does not exceed the L2 block gas limit.

The deposit contract handles two special cases:

A contract creation deposit, which is indicated by setting the isCreation flag to true. In the event that the to address is non-zero, the contract will revert. A call from a contract account, in which case the from value is transformed to its L2 alias.

About

Making L2 chain, Optimistic/zkRollup (fraud proofs/L1-L2 data transfer/challenging/ etc)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published