Skip to content

phattranky/music-nft-marketplace

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DESCRIPTION

A DApp for music NFT storage, listing, sale and purchase.

STACK

  • ReactJS
  • NPM
  • Hardhat
  • IPFS
  • Ethereum

QUICKSTART COMMANDS

npm run start to fire up the React f/e app.

npx hardhat node to start the local hardhat network at http://127.0.0.1:8545/, and the HTTP + WebSocket JSON-RPC server at atop it. Note the 20 "canned" accounts created by Hardhat.

npm run local:deploy to deploy contracts onto the local hardhat node. Note the contract address.

From another terminal connect to hardhat console with npx hardhat console --network localhostso you can interact with a contract deployed to the local HH network, using ethersJSand helpers added by the hardhat-ethers plugin.

The, in the console prompt run the following:

const c = await ethers.getContractAt("<<CONTRACT_NAME>>","<<CONTRACT_ADDRESS>>")

# call methods on the contract, such as:
await c.owner()
await c.baseURI() # public state variable declared in the contract
await c.name() # returns the token name as per ERC721 constructor args
await c.symbol() # returns the symbol name as per ERC721 constructor args

Classes and Objects

MusicNFTMarketplace

  • State Variables

    • token name & token symbol (public strings)
    • baseURI (public string)
    • baseFileExtension (public string)
    • artist address (public address)
    • royaltyFee (public uint256) marketItems (public marketItem[])
  • Structs

    • MarketItem:
      • tokenId (uint256)
      • seller (address payable)
      • price (uint256)
  • Methods

Questions I want to research

  1. what's the difference between _mint() and _safeMint()?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 72.6%
  • Solidity 12.7%
  • HTML 11.1%
  • CSS 3.6%