Scaffold-eth
clone scaffold-eth
https://docs.scaffoldeth.io/scaffold-eth/
Mono repo so multiple terminals required
Start local eth blockchain instance
yarn chain
Start React App
yarn start
To deploy the default contract
yarn deploy
Navigate to localhost:3000/debug
Try setting a purpose, this will fail as the wallet has 0 ether.
Click on Grab funds from the faucet
Then set a purpose this will use gas
Added standard contracts from Zeppelin.
https://github.com/dreamineering/nftix-demo-ui/tree/final
Add base64 helper function
To view the encoded svg prefix url with
data:image/svg+xml;base64,
Create a base64 encoded json object and assigned it to the token URI
Set a Mint Price on Your NFT Smart Contract
https://github.com/dreamineering/nftix-demo-ui/tree/final
Restrict Smart Contract Functions to a Specified Owner
Use Ownerable Zeppelin contract
Deploy a Smart Contract to the Rinkeby Testnet
- Rinkeby
To create a new fake account run.
yarn generate
Check the balance with
yarn account
Copy address of the new account created on the contract and request eth.
Request Rinkeby ether
https://faucets.chain.link/rinkeby
Deploy to Rinkeby
yarn deploy --network rinkeby
Get the deployed at Address on the Rinkeby network
Check new contract created.
Infrastructure
https://docs.scaffoldeth.io/scaffold-eth/toolkit/infrastructure/the-graph
https://docs.scaffoldeth.io/scaffold-eth/toolkit/infrastructure/tenderly
https://docs.scaffoldeth.io/scaffold-eth/toolkit/infrastructure/rpc
https://docs.scaffoldeth.io/scaffold-eth/toolkit/infrastructure/blocknative
https://docs.scaffoldeth.io/scaffold-eth/toolkit/infrastructure/l2-sidechain-services
React App
https://www.blocknative.com/notify
Components
https://docs.scaffoldeth.io/scaffold-eth/toolkit/scaffold-eth-toolbox/eth-components
Context
- Onchain Interaction — Where scaffold-eth fits in the dapp stack
- Eth Hooks — React hooks for wallet and contract interaction
- Dapp Dev Kits — Alternative starter kits for comparison
Questions
When does a scaffold accelerate and when does it constrain?
- What do you strip out of scaffold-eth before shipping to production?
- How do you upgrade contract dependencies without breaking the local dev chain?
- When does the mono-repo structure help versus hurt a small team?