Home

Awesome

Shade Protocol Core Contracts

ContractReferenceDescription
governancedocProtocol's governance module
shade_stakingdocSnip20 staker
scrt_stakingdocSCRT staker
treasurydocProtocol's asset manager
mintdocAsset burner and minter
oracledocAsset price querier
airdropdocTask based, multichain snip20 airdropper

Development Environment

Environment Setup

  1. Make sure Docker is installed

  2. Pull the SN-testnet image

make server-download
  1. Open a terminal inside this repo and run:
make server-start
  1. Inside another terminal run:
make server-connect

Testing the environment

Inside the container, go to /root/code and compile all the smart contracts:

make

Then test run all the Protocol unit-tests and integration tests using the tester:

make integration-tests

Unit Tests

Each contract contains Rust unit and integration tests embedded within the contract source directories. You can run:

cargo unit-test