Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 458 Bytes

QUICKSTART.md

File metadata and controls

23 lines (16 loc) · 458 Bytes

Quickstart

# Install the CLI
npm install -g @dist0rtion/thc

# Build the assets of the game
thc build <game-path>

# Deploy the contract
cd eth

# Deploy Treasure.sol if needed
npx hardhat deploy:treasure --network <network> --verify

# Deploy THC
npx hardhat deploy:thc --network <network> --cbd <cbd-path> --verify

# Copy address to game config in cbd/config.json
# Now we are ready to provide the dapp

thc provide-dapp <cbd-path> <dapp-path>