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.icxand/keystore/icon/operator.pwd - Evm wallet private key should be put in
.envfile at project root underPRIVATE_KEYvariable npm installin root folder in order to download the dependencies in localnode_modulesfolder- 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.