- Notifications
You must be signed in to change notification settings - Fork7
YourNewEmpire/Hardhat-Opensea-Boilerplate
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
- Clone this and run
npm 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 with
npx hardhat run --network matic scripts/deploy721.js
for ERC-721 - Mint with
npx 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
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.