Zilswap is a fully decentralized protocol for ZRC-2 token exchanges on Zilliqa.
API docs can be found at docs.zilswap.org.
- Zilswap: zil1gkwt95a67lnpe774lcmz72y6ay4jh2asmmjw6u
zil1hgg7k77vpgpwj3av7q7vv5dl4uvunmqqjzpv2w - ARK: zil1jna6pq6fsjsxdkvkz2wyt6tg80p762neqkz2qh
- TokenProxy: zil1yrqlm8cxpqt8wq5y6axejvcs2h350ykj9cc758
- ZilSwap:
zil1rf3dm8yykryffr94rlrxfws58earfxzu5lw792 - ARK: zil1nyapz27kck9tteejccfr354tnx89s2sddfzqpl
- TokenProxy: zil1hfp8fn6026kvel2zc25xztk3lss68nlmqmm2fn
Test suite can be ran with: yarn test
. To run only one test: yarn test -t nameOfTest
.
To run tests on Zilliqa TestNet, get some testnet ZILs first.
Set the private key of your test account using the PRIVATE_KEY
env var.
Set the NETWORK
env var to testnet
.
These can be done in a .env
file in the root of the project, or run inline via: PRIVATE_KEY=xxx NETWORK=testnet yarn test
.
Ensure your isolated server is running without the -t
flag (or disable it via -t=0
) so that there is no auto-block progression.
For docker builds, this can be modified by running sed -i 's/-t 5000 //' run.sh
within the container and then restarting the docker process.
Find the private key of a genesis account and set PRIVATE_KEY=xxx
in a .env
file in the root of the project or run inline via PRIVATE_KEY=xxx yarn test
.
npm test -- bearv2.test.js