π
Scaffold-ETH
everything you need to build on Ethereum!
π
πββοΈ
Quick Start
Prerequisites: Node plus Yarn and Git
clone/fork
π scaffold-eth:
git clone https://github.com/austintgriffith/scaffold-eth.git
install and start your π·β Hardhat chain:
cd scaffold-eth
yarn install
yarn chain
in a second terminal window, start your
π± frontend:
cd scaffold-eth
yarn start
in a third terminal window,
π° deploy your contract:
cd scaffold-eth
yarn deploy
YourContract.sol
in packages/hardhat/contracts
App.jsx
in packages/react-app/src
packages/hardhat/deploy
π
Documentation
Documentation, tutorials, challenges, and many more resources, visit: docs.scaffoldeth.io
π
Learning Solidity
YourContract.sol
in
π
Buidl
Check out all the active branches, open issues, and join/fund the
-
π« 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!
π
P.S.
ALCHEMY_KEY = xxx
in packages/react-app/src/constants.js
Automated with Gitpod
π¬
Support Chat
Join the telegram support chat
Sensible defaults for RPC calls
This PR aims to reduce the RPC calls made by scaffold-eth on a clean install (around 60/80 per minute) by providing some sensible defaults on polling times (vs onBlock) and reusing providers (if localProvider is mainnet).
There are two new constants (with sensible defaults) that config this behavior:
LOCAL_RPC_POLL_TIME
andMAINNET_RPC_POLL_TIME
.On the localhost (hardhat chain) the polling is disabled (uses onBlock) to keep allowing a fast feedback loop. (We don't care about RPC requests to the localnode)
Great work @Naim-Bijapure & @technophile-04
"yarn mint" fails
Describe the bug the last command as mentioned on github page, "Yarn mint" fails.
To Reproduce Steps to reproduce the behavior:
Expected behavior should do usual mint code path
Screenshots
Desktop (please complete the following information):
Created typescript versions of the app and hardhat folder
I've created a branch of scaffold eth based on master that runs on Typescript and vite and react.
Notes:
Format:
Has the latest changes from the hardhat-deploy additionally.
Create Chainlink Starter Kit
Would be great to have both the scaffold-eth and chainlink-starter-kit productivity boost in one and the same project.
The Chainlink Starter Kit gets you going fast with VRF, API requests, PriceFeeds and Keeper Contracts. Mocks for unit tests are included
Describe the solution you'd like Change the hardhat project in scaffold-eth in order to be used just like https://github.com/smartcontractkit/hardhat-starter-kit.
Some work is needed with
Stuck in deploying "YourContract"
Hi there,
Thanks for creating such a great tool for Ethereum solidity/dapps learner.
I think it is quite demotivating for any new user of the tool to hit few speed bumps just to "Quick Start".
My environment: Ubuntu 20.04.4 LTS Node v16.14.0 Npm 8.3.1
I run
yarn deploy
afteryarn chain
, thedeploying "YourContract"...
seems take forever.Then I went ahead to make a small amendment to
YourContract.sol
, then runyarn deploy
again, it prompt me the following message:I choose the
iincrease gas
option, the command is exit with the following error:Please advice. Thank you.
Cannot find third part package in vscode
~~We have a workspace named "hardhat", but this is also the name a third-part library hardhat we are depending on. That makes IDE confused when it comes to code references..~~
~~For example~~ in VSCode:
Add support for multiple node providers
Right now Infura is hardcoded in some places where you can only change the API key. Ideally, we should do a bit of refactoring so the developer can easily change the node provider in constants.js.
Testing Challenge Branch
There is not good documentation or a good tutorial/branch around testing. It would be very valuable to have a good challenge around testing in order to tech the common experienced with smart contracts.
"yarn graph-run-node" container failing to start on Apple M1
Following Austin's tutorial at https://www.youtube.com/watch?v=T5ylzOTkn-Q&t=77s.
At minute 7:06 (running
yarn graph-run-node
) I'm running into a problem where the graph-node_1 container isn't starting up successfully.I'm running the Apple M1 Tech Preview of Docker, maybe that has something to do with it. Check the "Known issues" of here: https://docs.docker.com/docker-for-mac/apple-m1/
Adding Docker setup
This PR adds a Docker alternative setup to spin up the stack inside a container.
If it makes sense to have, I'll need guidance about where to add current
docker/README.md
content.Issues with transaction nonce
Describe the bug Nonce state on-chain is different from nonce kept in storage in react state
Transaction Error Error: [ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data":{"code":-32000,"message":"Nonce too high. Expected nonce to be 0 but got 1. Note that transactions can't be queued when automining."}}}'
To Reproduce Steps to reproduce the behavior: Try any contract interaction after redeploying
Expected behavior The contract should change as expected
feat: upgradeable contracts starter kit, complete with upgrade-safe cβ¦
Purpose:
This PR introduces a new starter kit for upgradeable contracts using the OpenZeppelin Upgrades API (since there is no starter kits right now for this yet, it seems).
Includes:
Testing:
Suggestion:
insufficient funds for intrinsic transaction cost
I switch network from local to Mumbai, but get this error when I enter yarn deploy
I have lower the gas fees in constant.js, but why still hitting this exception?
Enable CORS so safeApp manifest can be read by Gnosis App
The following files were added to enable CORS when using a SafeApp for development & production:
To enable CORS In development mode
To enable CORS when deploying to Surge:
Bump express from 4.17.1 to 4.18.2
Bumps express from 4.17.1 to 4.18.2.
Release notes
Sourced from express's releases.
... (truncated)
Changelog
Sourced from express's changelog.
... (truncated)
Commits
8368dc1
4.18.261f4049
docs: replace Freenode with Libera Chatbb7907b
build: [email protected]f56ce73
build: [email protected]24b3dc5
deps: [email protected]689d175
deps: [email protected]340be0f
build: [email protected]33e8dc3
docs: use Node.js name style644f646
build: [email protected]ecd7572
build: [email protected]Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.