🏗 Scaffold-ETH – 🎟 Simple NFT Example – 🏗 脚手架ETH-🎟 简单的NFT示例区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,🏗 Scaffold-ETH – 🎟 Simple NFT Example – 🏗 脚手架ETH-🎟 简单的NFT示例区块链毕设代写 是一篇很好的国外资料

🏗 Scaffold-ETH – 🎟 Simple NFT Example

Build, mint, and send around your own ERC721!

🏃‍♀️ Quick Start

Required: Node plus Yarn and Git

git clone https://github.com/austintgriffith/scaffold-eth.git simple-nft-example 
cd simple-nft-example git checkout simple-nft-example yarn install yarn start 

in a second terminal window:

cd simple-nft-example yarn chain 

in a third terminal window:

cd simple-nft-example yarn deploy 

📱 Open http://localhost:3000 to see the app

✏️ Edit the mint script mint.js in packages/hardhat/scripts and update the toAddress to your frontend address (wallet address in the top right or localhost:3000).

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

in a terminal window run the mint script:

yarn mint 

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

👀 You should see your collectibles show up if you minted to the correct address:

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

👛 Open an incognito window and navigate to http://localhost:3000 (You’ll notice it has a new wallet address).

⛽️ Grab some gas for each account using the faucet:

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

🎟 Send an NFT to the incognito window address:

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

🕵🏻‍♂️ Inspect the Debug Contracts tab to figure out what address is the owner of N?

💼 Edit your deployment script deploy.js in packages/hardhat/scripts

🔏 Edit your smart contract N.sol in packages/hardhat/contracts

📝 Edit your frontend App.jsx in packages/react-app/src

🔑 Create wallet links to your app with yarn wallet and yarn fundedwallet

⬇️ Installing a new package to your frontend? You need to cd packages/react-app and then yarn add PACKAGE

📡 Deploy NFT smart contract!

🛰 Ready to deploy to a testnet?

Change the defaultNetwork in packages/hardhat/hardhat.config.js

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

🔐 Generate a deploy account with yarn generate

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

👛 View your deployer address using yarn account (You’ll need to fund this account. Hint: use an instant wallet to fund your account via QR code)

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

👨‍🎤 Deploy your NFT smart contract:

yarn deploy 

✏️ Edit your frontend App.jsx in packages/react-app/src to change the targetNetwork to wherever you deployed your contract:

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

You should see the correct network in the frontend:

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

An instant wallet running on xDAI insired by xdai.io. 🎫 Ready to mint a batch of NFTs for reals?

yarn mint  await tenderlyVerify(   {contractName: "YourContract",    contractAddress: yourContract.address }) 

Make sure your target network is present in the hardhat networks config, then either update the default network in hardhat.config.js to your network of choice or run:

yarn deploy --network NETWORK_OF_CHOICE 

Once verified, they will then be available to view on Tenderly!

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

⚔️ Side Quests

🐟 Open Sea

Add your contract to OpenSea ( create -> submit NFTs -> “or add an existing contract” )

(It can take a while before they show up, but here is an example:) https://testnets.opensea.io/assets/0xc2839329166d3d004aaedb94dde4173651babccf/1

🔍 Etherscan Contract Verification

run yarn flatten > flat.txt (You will need to clean up extra junk at the top and bottom of flat.txt. Sorry, rookie stuff here.)

copy the contents of flat.txt to the block explorer and select compiler v0.6.7 and Yes to Optimization (200 runs if anyone asks)

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

🔶 Infura

You will need to get a key from infura.io and paste it into constants.js in packages/react-app/src:

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

🛳 Ship the app!

⚙️ build and upload your frontend and share the url with your friends…

# build it:  yarn build  # upload it:  yarn surge  yarn s3  yarn ipfs 

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

👩‍❤️‍👨 Share your public url with a friend and ask them for their address to send them a collectible 🙂

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例


Documentation

For a more in-depth explanation, documentation, quick start guide, tutorials, tips and many more resources, visit our documentation site: docs.scaffoldeth.io

💬 Support Chat

Join the telegram support chat 💬 to ask questions and find others building with 🏗 scaffold-eth!


🏗 脚手架ETH-🎟 简单NFT示例

建造、铸造并发送您自己的ERC721

🏃‍♀️ 快速启动📡 部署NFT智能合约

必需:第二个终端窗口中的节点加纱线和Git:

git clone https://github.com/austintgriffith/scaffold-eth.git simple-nft-example 
cd simple-nft-example git checkout simple-nft-example yarn install yarn start 

第三个终端窗口中的:

cd simple-nft-example yarn chain 

📱 打开http://localhost:3000 要查看应用程序

cd simple-nft-example yarn deploy 

✏️ 在packages/hardhat/scripts中编辑mint脚本mint.js,并将toAddress更新为您的前端地址(右上角的钱包地址或localhost:3000)

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

在终端窗口中运行mint脚本:

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

yarn mint 

👀 如果您铸造到正确的地址,您应该会看到您的收藏品出现:

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

👛 打开“匿名”窗口并导航到http://localhost:3000 (您会注意到它有一个新的钱包地址)

⛽️ 使用水龙头为每个帐户取些煤气:

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

🎟 将NFT发送到匿名窗口地址:

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

🕵🏻‍♂️ 检查Debug Contracts选项卡以确定N的所有者是哪个地址

💼 在packages/hardhat/scripts中编辑部署脚本deploy.js🔏 在软件包/安全帽/合同中编辑您的智能合同N.sol📝 在packages/react App/src中编辑前端App.jsx🔑 使用Thread wallet和Thread fundedwallet创建应用程序的钱包链接

⬇️ 是否将新软件包安装到前端?您需要cd软件包/react应用程序,然后添加软件包

🛰 准备好部署到测试网了吗

在packages/hardhat/hardhat.config.js中更改默认网络🔐 生成一个部署帐户,并生成

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

👛 使用Thread帐户查看您的部署者地址(您需要为此帐户提供资金。提示:使用即时钱包通过二维码为您的帐户提供资金)

⚔️ 次要任务

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

👨‍🎤 部署您的NFT智能合约:

✏️ 在packages/react App/src中编辑您的前端App.jsx,将targetNetwork更改为您部署合同的任何位置:

🔐 Generate a deploy account with yarn generate

您应该在前端看到正确的网络:

👛 View your deployer address using yarn account (You’ll need to fund this account. Hint: use an instant wallet to fund your account via QR code)

一个由xDAI.io运行在xDAI上的即时钱包。🎫 准备好为reals铸造一批NFT了吗

确保您的目标网络存在于hardhat networks配置中,然后将hardhat.config.js中的默认网络更新到您选择的网络,或者运行:

yarn deploy 

一旦验证,就可以查看它们了

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

将您的合同添加到OpenSea(创建->提交NFT->“或添加现有合同”)

(它们出现之前可能需要一段时间,但下面是一个示例:)https://testnets.opensea.io/assets/0xc2839329166d3d004aaedb94dde4173651babccf/1

纱线展平>flat.txt(您需要清理flat.txt顶部和底部的多余垃圾。抱歉,这里是新手。)

yarn mint  await tenderlyVerify(   {contractName: "YourContract",    contractAddress: yourContract.address }) 

将flat.txt的内容复制到块资源管理器中,然后选择编译器v0.6.7和Yes to Optimization(如果有人要求,可以运行200次)

yarn deploy --network NETWORK_OF_CHOICE 

Once verified, they will then be available to view on Tenderly!

<🏗 Scaffold-ETH - 🎟 Simple NFT Example><🏗 Scaffold-ETH - 🎟 Simple NFT Example>

您需要从infura.io获取一个密钥,并将其粘贴到packages/react app/src:

<🏗 Scaffold-ETH - 🎟 Simple NFT Example><🏗 Scaffold-ETH - 🎟 Simple NFT Example>

⚙️ 建立并上传你的前端并与你的朋友共享url

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

👩‍❤️‍👨 与朋友共享您的公共url,并询问他们的地址,向他们发送收藏:)

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

有关更深入的说明、文档、快速入门指南、教程、提示和更多资源,请访问我们的文档网站:docs.scaffoldth.io

加入电报支持聊天💬 提出问题并找到与您一起建设的其他人🏗 埃斯

🏗 脚手架ETH-🎟 简单NFT示例

🏃‍♀️ 快速启动📡 部署NFT智能合约

⚔️ 次要任务

🐟 公海🔍 以太扫描合同验证

🔶 Infura

🛳 发送应用程序

文档

💬 支持聊天

🐟 公海🔍 以太扫描合同验证

🔶 Infura

Add your contract to OpenSea ( create -> submit NFTs -> “or add an existing contract” )

您需要从infura.io获取一个密钥,并将其粘贴到packages/react app/src:

🛳 发送应用程序

<🏗 Scaffold-ETH - 🎟 Simple NFT Example><🏗 Scaffold-ETH - 🎟 Simple NFT Example>

⚙️ 建立并上传你的前端并与你的朋友共享url

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

👩‍❤️‍👨 与朋友共享您的公共url,并询问他们的地址,向他们发送收藏:)

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

有关更深入的说明、文档、快速入门指南、教程、提示和更多资源,请访问我们的文档网站:docs.scaffoldth.io

加入电报支持聊天💬 提出问题并找到与您一起建设的其他人🏗 埃斯

🏗 脚手架ETH-🎟 简单NFT示例

🏃‍♀️ 快速启动📡 部署NFT智能合约

⚔️ 次要任务

🐟 公海🔍 以太扫描合同验证

🔶 Infura

🛳 发送应用程序

文档

💬 支持聊天

copy the contents of flat.txt to the block explorer and select compiler v0.6.7 and Yes to Optimization (200 runs if anyone asks)

⚙️ 建立并上传你的前端并与你的朋友共享url

文档

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例

👩‍❤️‍👨 与朋友共享您的公共url,并询问他们的地址,向他们发送收藏:)

💬 支持聊天

⚙️ build and upload your frontend and share the url with your friends…

# build it:  yarn build  # upload it:  yarn surge  yarn s3  yarn ipfs 

有关更深入的说明、文档、快速入门指南、教程、提示和更多资源,请访问我们的文档网站:docs.scaffoldth.io

加入电报支持聊天💬 提出问题并找到与您一起建设的其他人🏗 埃斯

🏗 Scaffold-ETH - 🎟 Simple NFT Example - 🏗 脚手架ETH-🎟 简单的NFT示例


Documentation

For a more in-depth explanation, documentation, quick start guide, tutorials, tips and many more resources, visit our documentation site: docs.scaffoldeth.io

💬 Support Chat

Join the telegram support chat 💬 to ask questions and find others building with 🏗 scaffold-eth!

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/25106.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 🏗 Scaffold-ETH – 🎟 Simple NFT Example – 🏗 脚手架ETH-🎟 简单的NFT示例区块链毕设代写

提供最优质的资源集合

立即查看 了解详情