๐งซ Prototype frontend experiences to build on Optimistic Ethereum (https://www.optimism.io)
Learn more here
Grafana public dashboard
Prerequisites: Node plus Yarn and Git
git clone -b optimism-starter-kit https://github.com/austintgriffith/scaffold-eth.git optimism-starter-kit
cd optimism-starter-kit
yarn install
yarn start
๐ Visit your frontend at http://localhost:3000
The following requires Docker & Docker Compose
Clone the Optimism monorepo.
in a second terminal window:
git clone https://github.com/ethereum-optimism/optimism.git
This process downloads the images from the Docker hub, and depending on the hardware it can take up to ten minutes.
cd optimism/ops
docker-compose -f docker-compose-nobuild.yml up -t 3600
You might get a timeout at first. If that is the case, just run the docker-compose command again.
Make changes to hardhat.config.js
in packages/hardhat/test
to deploy on the network you want.
Here, it was set to "localOptimism"
by default.
All of the default hardhat accounts are funded with ETH on both L1 and L2. Therefore, you have to add the mnemonic:
'test test test test test test test test test test test junk'
in a third terminal window, ๐ฐ deploy your contract:
cd optimism-starter-kit
yarn deploy
๐ Edit your smart contract YourContract.sol
in packages/hardhat/contracts
๐ Edit your frontend App.jsx
in packages/react-app/src
๐ผ Edit your deployment scripts in packages/hardhat/deploy
๐ฑ Open http://localhost:3000 to see the app
Once you're app is ready, you can deploy it to a testnet such as Optimistic Kovan.
Edit hardhat.config.js
to add your account mnemonic to kovanOptimism
.
Same procedure for deploying on Optimism mainnet.
Use Paradigm faucet to get you set up.
Documentation, tutorials, challenges, and many more resources, visit: docs.scaffoldeth.io
๐ Read the docs: https://docs.soliditylang.org
๐ Go through each topic from solidity by example editing YourContract.sol
in ๐ scaffold-eth
๐ง Learn the Solidity globals and units
Check out all the active branches, open issues, and join/fund the ๐ฐ BuidlGuidl!
-
๐ซ Extend the NFT example to make a "buyer mints" marketplace
-
โ๏ธ Learn how ecrecover works
-
๐ฉโ๐ฉโ๐งโ๐ง Build a multi-sig that uses off-chain signatures
-
โ๏ธ Learn how a simple DEX works
-
๐ฆ Ape into learning!
Join the telegram support chat ๐ฌ to ask questions and find others building with ๐ scaffold-eth!
๐ Please check out our Gitcoin grant too!