To deploy the Thanos chain, which interacts with the L1 chain, system contracts need to be deployed on the L1 chain.

To proceed with this process, you need to clone the following repository:

GitHub - tokamak-network/tokamak-thanos

<aside> 💡

The deployment consumes over 80 million gas; monitoring gas prices is crucial to minimize ETH costs during mainnet deployment.

</aside>

Create deploy-config file

  1. Enter some information on the Tokamak Rollup Hub website and download the deploy-config file.

Configure env

Before starting the deployment, you need to set up the environment variables required by the deployment script.

  1. Go to the scripts directory

    $ cd packages/tokamak/contracts-bedrock/scripts
    
  2. Copy the env.example.deploy to env

    $ cp env.example.deploy env
    
  3. Please fill in the values for the items listed below in the copied file and save.

Build repository

  1. Go to the scripts directory

    $ cd packages/tokamak/contracts-bedrock/scripts
    
  2. Build repository

    $ ./start-deploy.sh build
    

Deploy contracts

In this step, we will deploy the system contracts along with the deploy-config file.