This project contains simple xCall testing dApp written in Typescript.
- Node.js v18 or greater
- Typescript v4 or greater
- ts-node for simple console execution
Run:
- Icon wallet keystore and password should be put in
/keystore/icon/operator.icx
and/keystore/icon/operator.pwd
- Evm wallet private key should be put in
.env
file at project root underPRIVATE_KEY
variable npm install
in root folder in order to download the dependencies in localnode_modules
folder- if abi folder is changed execute
/usr/local/bin/npm run generate-types
(linux) to generate typechain types
Application should be run by executing ts-node src/dApp.ts
in project root.
Logic to be run lives inside main
method of dApp.ts
.
Mainly local xCallService
is used to send messages where as behavior is defined by parameters given in.
When dApp is run test reports are save in ./src/test_reports
directory.
Test report includes all relevant data to the execution as well as transcription of execution process.