Just some code from various Ethereum tutorials online
A basic Ethereum casino with React frontend https://medium.com/@merunasgrincalaitis/the-ultimate-end-to-end-tutorial-to-create-and-deploy-a-fully-descentralized-dapp-in-ethereum-18f0cf6d7e0e
An interactive react front end for basic smart contract https://medium.com/@zubairnahmed/https-medium-com-zubairnahmed-react-ethereum-getting-started-with-the-minimum-toolset-required-part-1-of-4-9562efa23d18
creating an erc20 coin with OpenZepplin framework http://www.masonforest.com/blockchain/ethereum/2017/11/13/how-to-deploy-an-erc20-token-in-20-minutes.html
main.go
: Basic Blockchain
from: https://medium.com/@mycoralhealth/code-your-own-blockchain-in-less-than-200-lines-of-go-e296282bcffc
main2.go
: Blockchain networking
from: https://medium.com/@mycoralhealth/part-2-networking-code-your-own-blockchain-in-less-than-200-lines-of-go-17fe1dad46e1
pow.go
: Proof of Work blockchain
from: https://medium.com/@mycoralhealth/code-your-own-blockchain-mining-algorithm-in-go-82c6a71aba1f
Create a pet shop with Truffle and Ganache, with front end from: http://truffleframework.com/tutorials/pet-shop
Use truffle and quorum to create private transactions between nodes from: http://truffleframework.com/tutorials/building-dapps-for-quorum-private-enterprise-blockchains Used docker image to setup private nodes instead of vagrant: https://github.com/ConsenSys/quorum-docker-Nnodes
Create a basic token with OpenZeppelin and truffle, with front end from: http://truffleframework.com/tutorials/robust-smart-contracts-with-openzeppelin
Debugging a basic smart contract with Truffle
from:
truffle develop
creates an interactive repl with a preconfigured blockchain and Ethereum addresses for easy development. Uses Ganache under the hood, with auto-mining on.migrate --reset
compile and reset contract in one step within consoletruffle develop --log
run in a separate terminal whiletruffle develop
is running to get logs including useful data like the transaction id of failed transactionsdebug <Transaction ID>
from withintruffle develop
allows you to debug the smart contract