Collection of the beima pensions service provider contracts that servers the beima app. link: https://beima.app
link to frontend repo: https://github.com/Davien21/beima
To get Started:
Requirement 1: Yarn or npm 2: node version of 10.1.2 or higher. (for some reason truffle fails to compile with the latest node version). advisable to use the lts version.
- truffle and Gananche-cli. this will be used for proper testing on the Ethereum MainNet.
- An infura Account. Visit https://Infura.com to sign up.
How it works. Copy the Repository link and clone using git clone on the terminal
Type "Yarn" to install all dependecies.
Open up a seperate terminal for the root folder,
ADDRESS_TO_UNLOCK = 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8
Type "ganache-cli --fork YOUR-INFURA-API-LINK" --unlock INSERT-ANY-ACCOUNT-ADDRESS-OR-THE-ADDRESS-ABOVE
Replace the fromUnlockedAccount variable in the test folder "pension-service.js" with the unlocked account from above.
Finally type truffle test/pension-service.js in your terminal to execute on a local chain running on your machine.
there you are tests passed.
Note: Your unlocked account need to have an underlying number of LINK Tokens for test with the compound protocol.
More feautures still being integrated...
ETH_ADDRESS for community support: 0xa6c66EF87Ba15039Ff95c8868279FB5990773b9C