git clone git@github.com:dantenetwork/ink-test-router.git
cd ./ink-test-router
sudo docker pull registry.us-west-1.aliyuncs.com/cherima/dante
Use polkadot.js.
Connect the substrate rpc, mentioned in Ink! Test Guide.
Fig 1. create account
Create an account as Raw seed
and save the seed for configuration.
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.
Fig 3. transfer token
$ 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
$ sudo docker compose up
## show logs
$ sudo docker logs -f my_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.
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.
Fig 6. selecte routers
You can view all seleted routers, as shown in fig 7.
Fig 7. show all selected routers
The default initial credibility of the routers at the time of registration is 4000.
Fig. 8 registered routers information