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>
deploy-config
file.
Before starting the deployment, you need to set up the environment variables required by the deployment script.
Go to the scripts directory
$ cd packages/tokamak/contracts-bedrock/scripts
Copy the env.example.deploy
to env
$ cp env.example.deploy env
Please fill in the values for the items listed below in the copied file and save.
GS_ADMIN_PRIVATE_KEY
: Admin private key for deploying contractsL1_RPC_URL
: L1 RPC URL addressGo to the scripts directory
$ cd packages/tokamak/contracts-bedrock/scripts
Build repository
$ ./start-deploy.sh build
In this step, we will deploy the system contracts along with the deploy-config
file.