MCPcopy Index your code
hub / github.com/ChangoMan/nextjs-ethereum-starter

github.com/ChangoMan/nextjs-ethereum-starter @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
398 symbols 518 edges 65 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

nextjs-ethereum-starter (Deprecated!)

This repo may be too old to be of any use. Please see the new Scaffold ETH 2 which is very similar to this project.

This project was sponsored by the BuidlGuidl. Please support the BuidlGuidl if this project has been helpful!


My iteration of Austin Griffith's scaffold-eth. Also inspired by Nader Dabit's blog post

👀 View the Live Demo

Getting Started

It is recommended to use Yarn to avoid dependency collisions: Yarn

git clone https://github.com/ChangoMan/nextjs-ethereum-starter.git
cd nextjs-ethereum-starter

yarn install

# Start up the Hardhat Network
yarn chain

Here we just install the npm project's dependencies, and by running yarn chain we spin up an instance of Hardhat Network that you can connect to using MetaMask. In a different terminal in the same directory, run:

yarn deploy

This will deploy the contract to Hardhat Network. After this completes run:

cd frontend
yarn install

This will install the frontend packages. We also need to set up the local configuration file.

cp .env.local.example .env.local

This will create a file called .env.local. Open up that file and fill in the NEXT_PUBLIC_ALCHEMY_API_KEY= and NEXT_PUBLIC_UNSPLASH_ACCESS_KEY= environment variables.

yarn dev

This will start up the Next.js development server. Your site will be available at http://localhost:3000/

To interact with the local contract, be sure to switch your MetaMask Network to Localhost 8545

Extension points exported contracts — how you extend this code

TypedEvent (Interface)
(no doc)
frontend/types/typechain/common.ts
NftListProps (Interface)
(no doc)
frontend/components/NftList.tsx
TypedEventFilter (Interface)
(no doc)
frontend/types/typechain/common.ts
LayoutProps (Interface)
(no doc)
frontend/components/layout/Layout.tsx
TypedListener (Interface)
(no doc)
frontend/types/typechain/common.ts
MetaProps (Interface)
(no doc)
frontend/components/layout/Head.tsx
OnEvent (Interface)
(no doc)
frontend/types/typechain/common.ts
HardhatEthersHelpers (Interface)
(no doc)
frontend/types/typechain/hardhat.d.ts

Core symbols most depended-on inside this repo

useCheckLocalChain
called by 4
frontend/hooks/useCheckLocalChain.tsx
connect
called by 3
frontend/types/typechain/contracts/YourNFT.ts
attach
called by 3
frontend/types/typechain/contracts/YourNFT.ts
useIsMounted
called by 3
frontend/hooks/useIsMounted.tsx
getContractFactory
called by 2
frontend/types/typechain/hardhat.d.ts
deploy
called by 2
frontend/types/typechain/factories/contracts/YourNFT__factory.ts
deployed
called by 2
frontend/types/typechain/contracts/YourNFT.ts
isSuperArgs
called by 1
frontend/types/typechain/factories/@openzeppelin/contracts/token/ERC721/ERC721__factory.ts

Shape

Method 288
Interface 61
Class 26
Function 23

Languages

TypeScript100%

Modules by API surface

frontend/types/typechain/contracts/YourNFT.ts37 symbols
frontend/types/typechain/@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.ts31 symbols
frontend/types/typechain/@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.ts29 symbols
frontend/types/typechain/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.ts28 symbols
frontend/types/typechain/@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.ts28 symbols
frontend/types/typechain/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.ts28 symbols
frontend/types/typechain/@openzeppelin/contracts/token/ERC721/ERC721.ts28 symbols
frontend/types/typechain/@openzeppelin/contracts/token/ERC721/IERC721.ts25 symbols
frontend/types/typechain/@openzeppelin/contracts/access/Ownable.ts16 symbols
frontend/types/typechain/contracts/YourContract.ts15 symbols
frontend/types/typechain/@openzeppelin/contracts/utils/introspection/IERC165.ts12 symbols
frontend/types/typechain/@openzeppelin/contracts/utils/introspection/ERC165.ts12 symbols

For agents

$ claude mcp add nextjs-ethereum-starter \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact