Skip to content

Chain migration

Khawla edited this page Mar 12, 2025 · 1 revision

We've migrated DIA lasernet from Optimism to Arbitrum. This guide provides step-by-step instructions for data feeders to transition their DIA Lasernet node to the new DIA testnet.

Prerequisites

  • Latest DIA Docker Image: Use the most recent image version. Check the latest tags here.
  • DIA Tokens: Verify that you have DIA tokens in your wallet on the new testnet. You can obtain tokens via the DIA Faucet or by contacting the team.

Steps

  1. Set the DEPLOYED_CONTRACT to an Empty String:
    In your deployment configuration (or .env file), update the variable as follows:
    DEPLOYED_CONTRACT=""

  2. Set the CHAIN_ID to 100640 (new testnet id):
    CHAIN_ID="100640"

  3. Deploy the Container: When deployed with an empty DEPLOYED_CONTRACT, the logs will display a message like:

time="2024-11-25T11:30:08Z" level=info msg="Contract pending deploy: 0xxxxxxxxxxxxxxxxxxxxxxxxxx."
  1. Stop the Running Container: Stop the container using your preferred method (e.g., docker rm -f <container_name>).

  2. Update Your Configuration File: Open your .env file and update the DEPLOYED_CONTRACT variable with the copied address: DEPLOYED_CONTRACT=0xxxxxxxxxxxxxxxxxxxxxxxxxx

  3. Redeploy the Container: Bring up the container again with the updated configuration (e.g., using docker-compose up -d).

  4. Verify the Deployment: Check the container logs to ensure everything is running correctly: docker-compose logs -f

Clone this wiki locally