Skip to content

dantenetwork/ink-test-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Router

Prerequisite

Clone this repo

git clone git@github.com:dantenetwork/ink-test-router.git
cd ./ink-test-router

Pull router docker image

sudo docker pull registry.us-west-1.aliyuncs.com/cherima/dante

Create a router account

Use polkadot.js.

Connect the substrate rpc, mentioned in Ink! Test Guide.

img

Fig 1. create account

Create an account as Raw seed and save the seed for configuration.

img img

Fig 2. create account, choose Raw seed

You can use one of those accounts, as shown in Fig.3, to transfer token to you router account.

img

Fig 3. transfer token

Configuration

$ cd config
$ mv .secret.example .secret

Modify the contents of .secret, as shown following.

{
    "POLKADOTTEST": "YOU RAW SEED"
}

For default.json, keep networks.POLKADOTTEST.nodeAddress and networks.POLKADOTTEST.crossChainContractAddress consistent with mentioned in Ink! Test Guide.

Remember to contact us before run the docker as the Testnet is not fully open to the public at this stage

  • discord: xeeeyu#4107

Run docker

$ sudo docker compose up
## show logs
$ sudo docker logs -f my_router

Register as router

After started the router node, you need to register as a router in the cross chain contract. Enter the account address created in the Create a router account.

img

Fig 5. register

After register, You need to call the select_routers, then you will be selected and will start to receive the latest cross-chain messages, as shown in fig 6.

img

Fig 6. selecte routers

You can view all seleted routers, as shown in fig 7.

img

Fig 7. show all selected routers

The default initial credibility of the routers at the time of registration is 4000.

img

Fig. 8 registered routers information

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •