Skip to content

JediFaust/JediMarketPlace

Repository files navigation

JediMarketPlace NFT Smart Contract

Language License


Solidity Smart contract for NFT MarketPlace


📝 Table of Contents

🚀 Link on EtherScan

JediMarketPlace for ERC721 and ERC1155:
https://rinkeby.etherscan.io/address/0x2Dd01B1Edfbc280302b1b74b0e7338a6e983b9aA#code

🚀 Installing

  • Set initial values on scripts/deploy.ts file
  • Deploy four contracts running on console:
node scripts/deploy.ts
  • Copy address of deployed contract and paste to .env file as CONTRACT_ADDRESS_MARKET
  • Use mint721 and mint1155 functions

⛓️ Contract Functions

  • createItem()

Mints new ERC721 token with URI

  • createItem1155()

Mints new ERC1155 token with given amount

  • listItem()

Lists ERC721 token with given price and id

  • listItem1155()

Lists ERC1155 token with given price and id

  • cancel()

Cancels listing of ERC721 token with given id

  • cancel1155()

Cancels listing of ERC1155 token with given id

  • buyItem()

Buys ERC721 token

  • buyItem1155()

Buys ERC1155 token

  • listItemOnAuction()

Lists ERC721 token with given minPrice and id on auction for 3 days

  • listItemOnAuction1155()

Lists ERC1155 token with given minPrice and id on auction for 3 days

  • cancelAuction()

Cancels auction of ERC721 token with given id after 3 days

  • cancelAuction1155()

Cancels auction of ERC1155 token with given id after 3 days

  • finishAuction()

Finishes auction of ERC721 token with given id after 3 days

  • finishAuction1155()

Finishes auction of ERC1155 token with given id after 3 days

  • makeBid()

Creates bid on ERC721 token with given price

  • makeBid1155()

Creates bid on ERC1155 token with given price

🎈 Deploy & Test Scripts

node scripts/deploy.js --network rinkeby
npx hardhat test

💡 HardHat Tasks

npx hardhat mint721
npx hardhat mint1155

About

NFT MarketPlace with ERC721 and ERC1155 support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published