Before running the tests some preconditions need to be fulfilled:
- Make sure you have the
solana-axelar
submodule set up and updated (i.e.:git submodule update --init --recursive
) - Run
npm install
to install the requirednode
dependencies - Run
node build/build.js -c evm
to build the evm contracts fromsolana-axelar/evm-contracts
and link them under.artifacts
- The programs/contracts being tested should already be deployed on the chains involved in the tests, no automatically deployment is performed
- Information about the chains and the contracts are fetched from
test-contracts.json
anddevnet-amplifier.json
(these files are merged at run-time), thus, if you deploy new contracts or use a chain that does not exist in any of these two files, make sure to update these filesdevnet-amplifier.json
copied from axelar-contract-deployments repo and that's the reason for two separate files, otherwise we would lose the info about our contracts when copying a newdevnet-amplifier.json
.- A script to deploy the
AxelarMemo
EVM contract was added tobuild/
which automatically deploys and updates thetest-contracts.json
file.
- Some environment variables need to be set (or
.env
file present), check thedotenv.tmpl
file - The wallets used (derived from the keys specified in the environment, see above) should be funded
The project uses mocha.js
as test harness. To run the tests, execute:
npm test