Skip to content

Latest commit

 

History

History
77 lines (48 loc) · 2.88 KB

test_setup.md

File metadata and controls

77 lines (48 loc) · 2.88 KB

Test setup

Steps to deploy a test scenario using zos3, yggdrasil,polkadot.

Create twin

1. Create account on substrate using polkadot

  • Add the required types in json format to the developer settings in polkadot. note: don't forget to save substrate_types

  • Click on Add an account in polkadot accounts

  • Save the mnemonic seed in a safe place

  • Click on Advanced creation options and select the keyword crypto type of Edwards (ed25519, alternative) ` add_account_1

  • Add a name and password for your account (remember the password for future usage) add_account_2 add_account_3

  • Fund the account with test funds (Click on send funds from the account of Alice to your account name) substrate_send_funds

2. Setup yggdrasil (optional to obtain public Ipv6 address)

  • download and install yggdrasil using the following link

  • Start it initially to init the configurations:

      systemctl start yggdrasil
    

    Or using

      yggdrasil -useconffile /etc/yggdrasil.conf
    
  • Add the needed peers in the config file generated under Peers.

    example:

      Peers:
      [
      tls://54.37.137.221:11129
      ]
    
  • Restart yggdrasil by

      systemctl restart yggdrasil
    

3. Create twin on substrate using polkadot

  • Select the options to create the twin in polkadot developer extrinsics

    • Selected account -> your Account name

    • Extrinsic module to be submitted(from drop down menu) -> tfgridModule

    • Extrinsic method to be submitted -> createTwin(ip)

    • ip -> Ipv6 obtained from your yggdrasil

  • Submit transaction and enter password selected when creating the account

substrate_create_twin

  • To get your twin ID, select the options required in polkadot developer chainstate and click on the +
    • Module -> tfgridModule
    • Method -> twinID(): u32

substrate_twin_id

Start RMB (Reliable Message Bus)

In case of using RMBProxy, no need for this step.

  • Clone the RMB repo

  • Get the latest rmb binary from go-rmb with the name msgbusd

  • Run RMB using

      ./msgbusd --twin <TWIN_ID>