The repo gives an example contract how to use the data from Litentry network to compute credit score. The project based on the redspot from patractlab. The erc20 is example of Ink contract. The credit is the one to be deployed in Litentry blockchain and show how to leverage the data from Litentry.
With europa, you can test the contract without deployment in the Litentry blockchain. Europa provide the service of sandbox environment of substrate runtime. For the pallets of Litentry specific, we need extend the europe smart contract pallet implementation. Details could be found in the litentry branch.
git clone submodule --recursive https://github.com/litentry/europa
git checkout litentry
cd europa
make release
release/target/europa --tmp
cd credit
yarn add respot
cargo install cargo-contract --force
cd credit
yarn build
cd credit
yarn test