Skip to content

Shade Protocol is an array of connected privacy-preserving dApps built on Secret Network

License

Notifications You must be signed in to change notification settings

securesecrets/shade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Shade Protocol Core Contracts

Contract Reference Description
governance doc Protocol's governance module
shade_staking doc Snip20 staker
scrt_staking doc SCRT staker
treasury doc Protocol's asset manager
mint doc Asset burner and minter
oracle doc Asset price querier
airdrop doc Task 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