https://github.com/5afe/safe-space
A marketplace for buying and selling things with Safe accounts.
https://github.com/5afe/safe-space
Last synced: 12 months ago
JSON representation
A marketplace for buying and selling things with Safe accounts.
- Host: GitHub
- URL: https://github.com/5afe/safe-space
- Owner: 5afe
- License: gpl-3.0
- Created: 2023-02-02T05:36:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-04T10:02:29.000Z (about 3 years ago)
- Last Synced: 2025-06-15T10:06:05.953Z (12 months ago)
- Language: TypeScript
- Homepage:
- Size: 694 KB
- Stars: 6
- Watchers: 4
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Safe Space
A marketplace for buying and selling things with Safe accounts.

[](https://gitpod.io/#https://github.com/5afe/safe-space)
## Quickstart
```
git clone https://github.com/5afe/safe-space
cd safe-space
# git checkout #optional if you want to use a specific version e.g. git checkout 0.4.0
yarn install
yarn start
```
Open [http://localhost:3000](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
```bash
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]`
1. `npx hardhat deploy:market --chain-id [chainId]`
1. 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
1. Set environment variable in `.secrets`: `export ETHERSCAN_API_KEY=""`
1. `npx hardhat verify --network goerli [smart_contract_address_you_just deployed]`
1. Example: `npx hardhat verify --network goerli 0x85942528541a1d7db9e9d84a074d0b2204c94b5a`
1. To see a list of other networks: `npx hardhat verify --list-networks`
## Contracts
1. NFT Marketplace: https://goerli.etherscan.io/address/0xa0a3c753387050d1949d6b8db672fff724b635c1#code
1. NFT: https://goerli.etherscan.io/address/0x85942528541a1d7db9e9d84a074d0b2204c94b5a#code
## Deploying an NFT to an existing Smart Contract
1. Get your infura API key.
1. Add it to `.env`
1. Edit `server/nfts.json`
```bash
source .env
node server/CreateNFT.js 'server/nfts.json'
```