Please make sure you install the agoric-sdk first.
- Clone the agoric SDK repository (
git clone https://github.com/Agoric/agoric-sdk
) cd agoric-sdk
git checkout fedf049435d7307311219fbab1b2b342ec6acce8
- Now, do:
yarn install
yarn build
yarn link-cli ~/bin/agoric
(or other directory you might prefer)
- Build the
cosmic-swingset
package.cd agoric-sdk/packages/cosmic-swingset && make # Display the directory that should be in your $PATH. echo ${GOBIN-${GOPATH-$HOME/go}/bin} # Attempt to run a binary that was installed there. ag-cosmos-helper version --long
- Clone this repository
git clone https://github.com/anilhelvaci/dapp-pool-lending-protocol/
- cd
dapp-pool-lending-protocol
- Install dependencies
agoric install
- Verify all went well:
Due to some problem related to ava setup we can only run test when we're in the contract/ directory. So you should cd to contract/ directory until this issue is resolved.
cd contract
- Run
npx ava --verbose test/lendingPool/test-lendingPool.js
.
- For the code checkout
feature/expanded-demonstrate
. - For the YouTube video, click here.
For the demo showcased in Cosmoverse 2022, git checkout feature/cosmoverse
and follow the steps there.