Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Hardhat setup for both ERC-1155 and ERC-721 on Polygon and Opensea. Cloned from my older ERC-721 boilerplate

NotificationsYou must be signed in to change notification settings

YourNewEmpire/Hardhat-Opensea-Boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • Clone this and runnpm i in terminal.
  • Add .env file with:
MNEMONIC=privatekey. not the seedphraseMATIC_APP_ID=appid_from_maticvigilPOLYGONSCAN=apikey_from_polygonscan
  • Edit the deploy script to pass in your name and ticker/uri depending on standard
  • Edit the contractUri method in the contract and add your OpenSea collection URI
  • Edit the mint script and add your token uri, contract address and account address of the account you want to mint to.
  • Deploy withnpx hardhat run --network matic scripts/deploy721.js for ERC-721
  • Mint withnpx hardhat run --network matic scripts/mint.js

Contract code inspired from Opensea:https://github.com/ProjectOpenSea/meta-transactions/blob/main/contracts/ERC721MetaTransactionMaticSample.solThis is for gas-less transactions when transferring assets. Users dont have to pay that extra gas, and get a better experience.

I added the mintItem method, from the oldtruffle repo contract.

I will make a blog post with detail soon.

About

Hardhat setup for both ERC-1155 and ERC-721 on Polygon and Opensea. Cloned from my older ERC-721 boilerplate

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp