ademidun / together

A marketplace for buying and selling things together with friends.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Safe Space

A marketplace for buying and selling things with Safe accounts.

safe-space-demo-0 0 2

Open in Gitpod

Quickstart

git clone https://github.com/5afe/safe-space
cd safe-space
# git checkout <version> #optional if you want to use a specific version e.g. git checkout 0.4.0
yarn install
yarn start

Open http://localhost:3000 to view it in the browser.

Deploying smart contracts

  1. Get some tokens to pay the gas fees for deploying the smart contracts:
    1. Ethereum Goerli: https://goerlifaucet.com
cp example.env .env
touch .privatekey
# put environment variables in .env and .privatekey
source.env
npx hardhat deploy --chain-id 5
  1. Deploy the smart contract: npx hardhat deploy --chain-id [chainId]
    1. If you want to deploy just the NFT or the Market without deploying everything run:
      1. npx hardhat deploy:nft --chain-id [chainId]
      2. npx hardhat deploy:market --chain-id [chainId]
    2. Here are some examples:
      1. Ethereum Goerli: npx hardhat deploy --chain-id 5

Verifying Smart Contract on Etherscan

  1. Get Etherscan API Key: https://etherscan.io/myapikey
    1. Similar process for Other networks
  2. Set environment variable in .secrets: export ETHERSCAN_API_KEY=""
  3. npx hardhat verify --network goerli [smart_contract_address_you_just deployed]
    1. Example: npx hardhat verify --network goerli 0x85942528541a1d7db9e9d84a074d0b2204c94b5a
    2. To see a list of other networks: npx hardhat verify --list-networks

Contracts

  1. NFT Marketplace: https://goerli.etherscan.io/address/0xa0a3c753387050d1949d6b8db672fff724b635c1#code

  2. NFT: https://goerli.etherscan.io/address/0x85942528541a1d7db9e9d84a074d0b2204c94b5a#code

Deploying an NFT to an existing Smart Contract

  1. Get your infura API key.
  2. Add it to .env
  3. Edit server/nfts.json
source .env
node server/CreateNFT.js 'server/nfts.json'

About

A marketplace for buying and selling things together with friends.

License:GNU General Public License v3.0


Languages

Language:TypeScript 52.0%Language:JavaScript 33.4%Language:Solidity 11.0%Language:HTML 2.1%Language:CSS 1.5%