Layer1 Contracts

We have the following 3 contracts deployed on L1 (Ethereum) :

FOX (Main) Contract

  1. The main contract for executing various operations on Layer 1.

  2. 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.

  3. Calls verifier to verify blocks and revert back to Validator if the block fails to verify.

  4. Calls governance contract to check the validity of certain tokens before executing deposit/withdraw/transfer operation.

The FOX contract has the following functionalities:

  1. Commit blocks.

  2. Verify blocks.

  3. Execute blocks.

  4. Deposit/Withdraw to L1 user’s root account.

Governance Contract

  1. Serves as the admin of all contracts, and has the authority to upgrade contracts or other operations.

  2. Sets and changes the Roller list (further work).

  3. Adds new ERC20 tokens.

  4. Only the governor can pass the governance to the new governor

Verifier Contract

  1. Verify proof that is generated from Layer 2 by applying zk-FOAKS protocol.

Last updated