A whole testing app has been made for testing this bridge. See the testsuite folder
The testsuite/config.ini
file is already setup for the docker test environment.
You can test it on a live testnet as well.
Change the NODE_URI
in the [ELROND]
section to https://testnet-beta-api.elrond.com
Note that the default SENDER_PEM
is a public wallet.
WARN: the current Dockerfile is not up-to-date for bridge-test-ui, checkout to 001fccfa11d7fd100916410520cd2a3b0ec085c8
for command line based test utility
WARN: The current docker image uses a local copy of erdpy due to testnet issues. We are investigating the issue with the remote distribution.
This process may take from 20 to 40 minutes depending on your machine.
docker build -t xpnet-elrond/test .
docker run -p 8000:8001 -p 9944:9944 -p 7950:7950 -i -t --rm xpnet-elrond/test bash
./docker_run.sh
substrate frontend should be accesible on localhost:8000
!
if docker_run.sh
is stuck on "Starting elrond test node", consider cleaning the elrond testnet.
cd ../elrond-mint-contract
erdpy testnet clean && erdpy testnet config
cd ../testsuite
./docker_run.sh
- Run a local substrate node supporting contracts pallet (Our substrate node for example!):
./target/release/node-template --dev
- Run a local node & proxy (or use elrond's public testnet proxy)
- Since proper event emission for contracts in elrond hasn't been added, you must start our Elrond Event Middleware with
yarn install
yarn run dev
yarn install
Bridge UI is available here You must use a server (VSCode Live Server, nginx, etc) to serve the static files
Using venv
is recommended.
- go to
testsuite
pip3.9 install -r requirements.txt
uvicorn main:app
Bridge-UI is usable at this point
You can also run a local substrate-front-end in case balance is not visible on polkadot.js.org: https://github.com/substrate-developer-hub/substrate-front-end-template