This was a coursework assignment for CO467 Principles of Distributed Ledgers.
The report pdf, written in latex
Requirements
- Node.js v8+ LTS and npm (comes with Node)
- Truffle (
npm install -g truffle
) - Ganache
- Metamask or similar
truffle compile
The compiled contract will be at build/Cryptomon.json
First start Ganache. Make sure the network is running on port 7545.
truffle migrate
Note: I edited the migration script to automatically calls Cryptomon.addInitialPokemon()
(see migrate/2_deploy_contracts.js
)
truffle test
npm run dev