DAWN Chain (cluster)

Requirements

  • Go 1.13

Deployment of smart contract

Set-up

# Into the Project Directory=>

cd testnet-contracts/

# Create .env with sample environment variables
cp .env.example .env

# Add environment variable MNEMONIC from your MetaMask account in .env file.

# Add environment variable INFURA_PROJECT_ID from your Infura account in .env file.

Running the bridge on the Ropsten testnet

cd testnet-contracts/

Now run the following commands..

Set up the nodes and validators

node-1

Open a terminal and run the following commands. Let's call it as terminal-1

Running and testing the application

First, initialise a chain and create accounts.

Start the relayer service

For automated relaying, there is a relayer service that can be run that will automatically watch and relay events (local web socket and deployed address parameters may vary).

Open a new terminal and run the following commands. Let's call it as terminal-2

node-2

Now, on terminal-1, run the following commands

Running and testing the application

node-1

terminal-2

terminal-3

Start the Relayer service

For automated relaying, there is a relayer service that can be run that will automatically watch and relay events (local web socket and deployed address parameters may vary).

node-3

Terminal-1

Running and testing the application

First, initialize a chain and create accounts.

From node-1

Terminal-2

Start the Relayer service

For automated relaying, there is a relayer service that can be run that will automatically watch and relay events (local web socket and deployed address parameters may vary). On terminal-3, run the following commands

Last updated

Was this helpful?