Deployment Guide

Introduction

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:

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

  2. Deployment: This step guides you to deploy the op bridge using the helm chart, simplifying the deployment process.

Prerequisite

  1. 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
    
  2. Make sure that there is a docker image for bridge application here.

Deployment

  1. Add Helm chart

  2. Search thanos-stack repo

    You can check that the thanos-stack chart includes op-bridge.

  3. Make values.yaml file

    You can check the value file needed to deploy op-bridge at the link below.

    The values.yaml file currently used for bridge.thanos-sepolia.tokamak.network is as follows.

  4. Deploy op-bridge

    1. Create namespace

      e.g.

    2. Deploy charts with values.yaml

      e.g.

    3. Check you Release

      e.g.

    4. Check your pods

    5. Check your service

      The bridge service is provided on port 3000.

    6. You can enable ingress using the following options in values.yaml file.

  5. Delete op-bridge

e.g.

Last updated