https://github.com/stacksideflow/contracts-v888
- node
15.4.0
, likely any v15
Install npm deps and compile webpack:
npm i && npx webpack --mode development
Compile contracts (assumes you have solc
installed):
truffle compile
Migrate (ropsten):
truffle migrate --network ropsten
After migration is completed ABIs will be written to /resources/public/contracts/build
,
addresses will be written to shared clj
file; ready to be consumed by frontend.
If you wish to skip truffle migrate
and start UI without migrating the contracts:
cp resources/external-abi/* resources/public/contracts/build/
Start UI:
lein build-css
lein repl
# alternatively, start from clean slate w/ webpack
rm -rf node_modules && lein clean && npm i && npx webpack --mode development && (echo "(start-ui\!)"; cat <&0) | lein repl
# go to http://localhost:4177/
external ABIs (generated for contracts outside of the scope of this project) is kept under VC in resources/external-abi
dir
- no double-minting
- beforeTokenTransfer hook locks NFT unless it's owned by Chef
-
https://ropsten.etherscan.io/address/0xf14f5073b4cf04231ebd71eb02c2072eee3b2f07
-
https://ropsten.etherscan.io/address/0xc369dd7700c6d9a29038c129ec65b6a776b1aca1