Layer1 Contracts
We have the following 3 contracts deployed on L1 (Ethereum) :
FOX (Main) Contract
The main contract for executing various operations on Layer 1.
Serves as an interface contract(main entry) of Layer 1 which will collect block data(batch of transactions)and proof submitted from Layer 2 validator.
Calls verifier to verify blocks and revert back to Validator if the block fails to verify.
Calls governance contract to check the validity of certain tokens before executing deposit/withdraw/transfer operation.
The FOX contract has the following functionalities:
Commit blocks.
Verify blocks.
Execute blocks.
Deposit/Withdraw to L1 user’s root account.
Governance Contract
Serves as the admin of all contracts, and has the authority to upgrade contracts or other operations.
Sets and changes the Roller list (further work).
Adds new ERC20 tokens.
Only the governor can pass the governance to the new governor
Verifier Contract
Verify proof that is generated from Layer 2 by applying zk-FOAKS protocol.
Last updated