Secret Counter

This is a simple secret contract and a React interface, built by following the Secret Network contracts guide

Start the network

# Also starts nginx to proxy requests to the api server
docker-compose up

Start the rest-server so we can query the network

# in a new terminal
docker-compose exec secretdev \
  secretcli rest-server \
  --node tcp://localhost:26657 \
  --trust-node \
  --laddr tcp://0.0.0.0:1317

Start the faucet, to fund burner wallets

git clone https://github.com/enigmampc/SecretNetwork/
# check out develop branch for now
git checkout develop
cd SecretNetwork/cosmwasm-js
# build the JS components
yarn install
yarn build
# start the faucet
cd packages/faucet
yarn dev-start

Fund the faucet holder (Holder address is output on startup)

docker-compose exec secretdev \
  secretcli tx send \
  a secret1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmenn2dx \
  100000000000uscrt --from a \
  --keyring-backend test --yes

Fund the deployer

docker-compose exec secretdev \
  secretcli tx send \
  a secret1cdycaskx8g9gh9zpa5g8ah04ql0lzkrsxmcnfq \
  100000000000uscrt --from a \
  --keyring-backend test --yes

Deploy the contract

cd client
yarn
node scripts/deploy_counter.js

Start the app

cd client
yarn start:local

If it all works so far, you can play with the counter.

todo SecretJS / privacy