GithubHelp home page GithubHelp logo

scaffold-eth / scaffold-eth-examples Goto Github PK

View Code? Open in Web Editor NEW
207.0 207.0 166.0 393.75 MB

Scaffold-Eth ๐Ÿ— examples repo

License: MIT License

Shell 0.75% JavaScript 12.84% HTML 0.13% TypeScript 0.07% Solidity 0.05% CSS 85.93% Less 0.06% Dockerfile 0.17%
dapp ethereum react solidity web3

scaffold-eth-examples's Introduction

๐Ÿ— Scaffold-ETH

๐Ÿšจ๐Ÿšจ This repository has been archived and is now read-only ๐Ÿšจ๐Ÿšจ

You are still welcome to fork and use as a template but no more changes will be made to this repository.

๐ŸŽ– Scaffold-ETH 2 is the latest version, we recommend you fork: https://github.com/scaffold-eth/scaffold-eth-2


everything you need to build on Ethereum! ๐Ÿš€

๐Ÿงช Quickly experiment with Solidity using a frontend that adapts to your smart contract:

image

๐Ÿ„โ€โ™‚๏ธ Quick Start

Prerequisites: Node (v18 LTS) plus Yarn (v1.x) and Git

๐Ÿšจ If you are using a version < v18 you will need to remove openssl-legacy-provider from the start script in package.json

1๏ธโƒฃ clone/fork ๐Ÿ— scaffold-eth:

git clone https://github.com/scaffold-eth/scaffold-eth.git

2๏ธโƒฃ install and start your ๐Ÿ‘ทโ€ Hardhat chain:

cd scaffold-eth
yarn install
yarn chain

3๏ธโƒฃ in a second terminal window, start your ๐Ÿ“ฑ frontend:

๐Ÿšจ if your contracts are not deployed to localhost, you will need to update the default network in App.jsx to match your default network in hardhat-config.js.

cd scaffold-eth
yarn start

4๏ธโƒฃ in a third terminal window, ๐Ÿ›ฐ deploy your contract:

๐Ÿšจ if you are not deploying to localhost, you will need to run yarn generate first and then fund the deployer account. To view account balances, run yarn account. You will also need to update hardhat-config.js with the correct default network.

cd scaffold-eth
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

๐Ÿšจ๐Ÿ“ก To deploy to a public domain, use yarn surge. You will need to have a surge account and have the surge CLI installed. There is also the option to deploy to IPFS using yarn ipfs and yarn s3 to deploy to an AWS bucket ๐Ÿชฃ There are scripts in the packages/react-app/src/scripts folder to help with this.`

๐Ÿ“š Documentation

Documentation, tutorials, challenges, and many more resources, visit: docs.scaffoldeth.io

๐Ÿฆ Other Flavors

๐Ÿ”ญ Learning Solidity

๐Ÿ“• 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

๐Ÿ›  Buidl

Check out all the active branches, open issues, and join/fund the ๐Ÿฐ BuidlGuidl!

๐Ÿ’Œ P.S.

๐ŸŒ You need an RPC key for testnets and production deployments, create an Alchemy account and replace the value of ALCHEMY_KEY = xxx in packages/react-app/src/constants.js with your new key.

๐Ÿ“ฃ Make sure you update the InfuraID before you go to production. Huge thanks to Infura for our special account that fields 7m req/day!

๐Ÿƒ๐Ÿ’จ Speedrun Ethereum

Register as a builder here and start on some of the challenges and build a portfolio.

๐Ÿ’ฌ Support Chat

Join the telegram support chat ๐Ÿ’ฌ or buidlguidl discord to ask questions and find others building with ๐Ÿ— scaffold-eth!


๐Ÿ™ Please check out our Gitcoin grant too!

Automated with Gitpod

Open in Gitpod

scaffold-eth-examples's People

Contributors

codenamejason avatar dependabot[bot] avatar ghostffcode avatar kmjones1979 avatar xbalbinus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scaffold-eth-examples's Issues

Mumbai network is not defined

Describe the bug
The mumbai network is not defined as described in the readme for the Matic NFT tutorial

To Reproduce
Steps to reproduce the behavior:

  1. Checkout matic-nft-tutorial and yarn install
  2. Switch defaultNetwork to mumbai (It's not currently defined)
  3. Run yarn generate

Expected behavior
The mnemonic to be generated as described in the readme

Screenshots
image

"Nonce too low" error from Hardhat-network when using loogies-svg-nft with localhost <Punkwallet.io>

Describe the bug
Unable to confirm mint transaction with error.

To Reproduce
Steps to reproduce the behavior:

  1. yarn install, chain, deploy, start from https://github.com/scaffold-eth/scaffold-eth-examples/tree/loogies-svg-nft.
  2. Copy to clipboard link from Wallet connect.
  3. At <Punkwallet.io> choose "localhost".
  4. Grab from faucet.
  5. Insert the link and connect the wallet to the app.
  6. Mint couple of tokens.
  7. The first one I managed to get, but never another one. Metamask works kind of fine. Error from Hh network.
eth_sendRawTransaction

  Nonce too low. Expected nonce to be 1 but got 0.

Expected behavior
Seamless tokens minting while balance allows it.

Screenshots
Please, request if screenshot would be helpful here.

Desktop (please complete the following information):

  • OS: Linux
  • Browser Firefox
  • Version 100.0

Smartphone (please complete the following information):

  • Device: N/a
  • OS: N/a
  • Browser N/a
  • Version N/a

Additional context
If this problem is of interest for anybody on Scaffold-ETH, let me know, so we could look into it. For me it's really hard to estimate it's impact or severity.

Getting "ProviderError: Invalid signature v value" with localhost network while deploying the AaveApe contract

Describe the bug
Unable to deploy the AaveApe contract

To Reproduce
Steps to reproduce the behavior:

  1. Checkout to the branch aave-ape - git checkout aave-ape
  2. yarn install
  3. Start localhost hardhat network - yarn fork
  4. Deploy the contracts in a new terminal - yarn deploy

Expected behavior
Successful deployment of the contracts

Error log

ProviderError: Invalid signature v value
    at HttpProvider.request (/home/aneeshakota/DEFI/scaffold-eth-examples/node_modules/hardhat/src/internal/core/providers/http.ts:46:19)
    at GanacheGasMultiplierProvider.request (/home/aneeshakota/DEFI/scaffold-eth-examples/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:170:34)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Screenshots
Please, request if screenshot would be helpful here.

Desktop (please complete the following information):

  • OS: Linux x64 (WSL 2 Ubuntu)
  • Browser N/a
  • Version WSL 2

Smartphone (please complete the following information):

  • Device: N/a
  • OS: N/a
  • Browser N/a
  • Version N/a

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.