In previous steps, we deployed the Thanos chain with the Thanos stack. Now, we are ready to deploy the op bridge, through which the users can seamlessly move assets between the L1 chain and the L2 chain, which was deployed in previous steps.
This bridge supports users to deposit and withdraw ETH, Native token, USDT, and USDC through minimized and lightweight User interface.
In this guide, you will learn how to deploy op bridge by following the structured approach.
The deployment process involves a few phases and is quite simple:
Prerequisite: Make sure that you get the necessary network configuration info and contract addresses from the previous deployment process and that the latest public bridge Docker image is in the Docker Hub.
Deployment: This step guides you to deploy the op bridge using the helm chart, simplifying the deployment process.
Prerequisite
Make sure that you’ve got the necessary network info and contract addresses from the previous network deployment.
l1_chain_name: // The name of L1 chain
l1_chain_id: // The id of L1 chain
l1_rpc: // The rpc of L1 chain
l1_native_currency_name: // The name of L1 native currency
l1_native_currency_symbol: // The symbol of L1 native currency
l1_native_currency_decimals: // The decimals of L1 native currency
l1_block_explorer: // The block explorer of L1 chain
l2_chain_name: // The name of L2 chain
l2_chain_id: // The id of L2 chain
l2_rpc: // The rpc of L2 chain
l2_native_currency_name: // The name of L2 native currency
l2_native_currency_symbol: // The symbol of L2 native currency
l2_native_currency_decimals: // The decimals of L2 native currency
l2_block_explorer: // The block explorer of L2 chain
native_token_l1_address: // The L1 address of the L2 native currency
l1_usdc_address: // The address of the L1 USDC
l1_usdt_address: // The address of the L1 USDT
l2_usdt_address: // The address of the L2 USDT
standard_bridge_address: // The address of the l1 standard bridge
address_manager_address: // The address of the address manager
l1_cross_domain_messenger_address: // The address of the L1 cross domain messenger
optimism_portal_address: // The address of the Optimism portal
l2_output_oracle_address: // The address of the L2 output oracle
l1_usdc_bridge_address: // The address of the L1 USDC bridge
dispute_game_factory_address: // The address of the dispute game factory
Make sure that there is a docker image for bridge application here.
Deployment
Add Helm chart
$ helm repo add thanos-stack <https://tokamak-network.github.io/tokamak-thanos-stack>
"thanos-stack" has been added to your repositories
Search thanos-stack repo
You can check that the thanos-stack chart includes op-bridge.
$ helm search repo thanos-stack
NAME CHART VERSION APP VERSION DESCRIPTION
thanos-stack/thanos-stack 1.0.0 A Helm chart to deploy Thanos stack
thanos-stack/op-bridge 1.0.0 A Helm chart to deploy Optimistic bridge
Make values.yaml file
You can check the value file needed to deploy op-bridge at the link below.