ngduythao / nft-marketplace-aggregator

The system allows NFT buyers to buy NFTs from multiple sources in a single transaction or with a single signature. It supports popular marketplaces like OpenSea, Blur, LooksRare, X2Y2, among others.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NFT marketplace aggregator

The system is an aggregator smart contract that leverages Permit2-payment to allow NFT buyers to buy NFTs from multiple sources in a single transaction or with a single signature. It supports popular marketplaces like OpenSea, Blur, LooksRare, X2Y2, among others.

Getting Started

git clone git@github.com:ngduythao/nft-marketplace-aggregator
cd nft-marketplace-aggregator
pnpm install # install Solhint, Prettier, and other Node.js deps

Build

Build the contracts:

$ forge build

Clean

Delete the build artifacts and cache directories:

$ forge clean

Compile

Compile the contracts:

$ forge build

Coverage

Get a test coverage report:

$ forge coverage

Deploy

Deploy to Anvil:

$ forge script script/DeployFoo.s.sol --broadcast --fork-url http://localhost:8545

For this script to work, you need to have a MNEMONIC environment variable set to a valid BIP39 mnemonic.

For instructions on how to deploy to a testnet or mainnet, check out the Solidity Scripting tutorial.

Format

Format the contracts:

$ forge fmt

Gas Usage

Get a gas report:

$ forge test --gas-report

Lint

Lint the contracts:

$ pnpm lint

Test

Run the tests:

$ forge test

Related Efforts

License

This project is licensed under MIT.

About

The system allows NFT buyers to buy NFTs from multiple sources in a single transaction or with a single signature. It supports popular marketplaces like OpenSea, Blur, LooksRare, X2Y2, among others.

License:MIT License


Languages

Language:Solidity 100.0%