https://github.com/allwin199/nft-marketplace
NFT Marketplace implemented using Foundry and Solidity.
https://github.com/allwin199/nft-marketplace
ethereum foundry solidity thirdweb
Last synced: 3 months ago
JSON representation
NFT Marketplace implemented using Foundry and Solidity.
- Host: GitHub
- URL: https://github.com/allwin199/nft-marketplace
- Owner: allwin199
- Created: 2024-02-02T15:51:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-07T05:21:37.000Z (over 1 year ago)
- Last Synced: 2025-01-13T22:19:20.050Z (5 months ago)
- Topics: ethereum, foundry, solidity, thirdweb
- Language: Solidity
- Homepage: https://mumbai.polygonscan.com/address/0x6438325A82E945139A760d6010B4c65D6b20d0D5#code
- Size: 1.67 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NFT Marketplace
## About
Ethereum-based NFT marketplace where users can securely sell their digital assets, while others can purchase them without intermediaries. The platform operates autonomously, leveraging blockchain technology for transparent transactions and ensuring decentralized control over the entire process.
## Workflow

- [Checkout the complete workflow](./test/NftMarketplace.tree)
## Test
```sh
forge test
```| File | % Lines | % Statements | % Branches | % Funcs |
| --------------------------------- | --------------- | --------------- | --------------- | --------------- |
| script/DeployNftMarketplace.s.sol | 100.00% (4/4) | 100.00% (5/5) | 100.00% (0/0) | 100.00% (1/1) |
| src/NFTMarketplace.sol | 100.00% (54/54) | 100.00% (59/59) | 100.00% (22/22) | 100.00% (10/10) |
| Total | 100.00% (59/59) | 100.00% (65/65) | 100.00% (22/22) | 100.00% (12/12) |or
```sh
forge test --rpc-url
```## Deployment
- To deploy to Anvil
- Start the anvil chain```
make deployToAnvil
```or
## Deployment to a testnet or mainnet
1. Setup environment variables
- You'll want to set your `SEPOLIA_RPC_URL` in environment variables. You can add them to a `.env` file, similar to what you see in `.env.example`.
2. Use wallet options to Encrypt Private Keys
- [Private Key Encryption](https://github.com/allwin199/foundry-fundamendals/blob/main/DeploymentDetails.md)
Optionally, add your `ETHERSCAN_API_KEY` if you want to verify your contract on [Etherscan](https://etherscan.io/).
### Get testnet ETH
Head over to [faucets.chain.link](https://faucets.chain.link/) and get some testnet ETH. You should see the ETH show up in your metamask.
### Deploy
```sh
make deployToSepolia
```---
## Demo
[NFT Marketplace Nextjs App](https://nft-marketplace-frontendv1.vercel.app/)
[Github](https://github.com/allwin199/nft-marketplace-frontend)### Marketplace

---
### List NFT

---
### Buy NFT

---
### Sell NFT

## Thank You :)