Skip to content

atilatech/arthouse

Repository files navigation

Art House

Arthouse is an NFT platform that allows you to easily create NFTs.

Quickstart

  1. yarn install

  2. yarn start

  3. Go to http://localhost:3000/

  4. Click on Create NFT

  5. Make sure that you can see the created NFT in NFT gallery

To build the project: yarn build

Here's a step-by-step tutorial on how to build your own arthouse.

How it Works

Arthouse can do 4 things:

  1. Mint an NFT
  2. List an NFT for sale
  3. Buy an NFT
  4. Unlist an NFT

NFT Process

  1. Everytime a new NFT is minted it gets deployed to the provided smart contract on the relevant chain ID in config-chains.json
  2. When it gets listed for sale, approval is given by the account to the Market contract, the NFT is transferred to the address of the contract which will list the item for sale.
  3. When the account buys a listed item, the marketplace receives a commission of salesFeeBasisPoints (currently 250 basis points or 2.50%) and the seller receives the rest.
  4. The seller may choose to unlist an item at which point the ownership of the NFT will be transferred back to the seller and become unavailable for purchase in the market.

Adding Chains to Metamask

Localhost

  1. Switch to localhost 8545 in metamask

  2. Import private keys from test-accounts.txt

  3. Use accounts #0-3 for making, selling and buying NFTs between accounts

Testnets and Main

  1. Open Metamask extension and go to settings > networks (TODO add a 1-click button for adding networks)

Public RPCs may have traffic or rate-limits depending on usage.

So you may see the following error.

Could not fetch chain ID. Is your RPC URL correct?

If that happens, try a different URL or you can get a free dedicated free RPC URLS.

Celo Alfajores

Network Name: Celo (Alfajores Testnet)
New RPC URL: https://alfajores-forno.celo-testnet.org
Chain ID: 44787
Currency Symbol (Optional): CELO
Block Explorer URL (Optional): https://alfajores-blockscout.celo-testnet.org

Polygon:

Network Name: Mumbai TestNet
New RPC URL: https://rpc-mumbai.matic.today
Chain ID: 80001
Currency Symbol: Matic
Block Explorer URL: https://mumbai.polygonscan.com/

TODO: Get correct Browser settings for Rinkeby (although it's included by default in Metamask) [Rinkeby Ethereum]

Network Name: Mumbai TestNet
New RPC URL: https://rpc-mumbai.matic.today
Chain ID: 80001
Currency Symbol: Matic
Block Explorer URL: https://mumbai.polygonscan.com/

Resources

Inspired by Nader Dabit's Building a Full Stack NFT Marketplace on Ethereum with Polygon.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published