GithubHelp home page GithubHelp logo

danielabalde / nft-swapper Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 7.0 490 KB

Peer to peer exchange of multiple NFTs

Solidity 61.57% HTML 38.43%
ethereum exchanger nft polygon swapper nft-collection nft-gallery nft-marketplace nft-store

nft-swapper's Introduction

NFT SWAPPER (BETA)

Peer to peer exchange of multiple NFTs on EVM chains

Instead of listing your NFTs and waiting for an offer, this exchanger registers an agreement to swap specific tokens for other specific tokens. The registry creator chooses who and what to exchange, and the swap takes place when the second party accepts the deal. It is generic or extensible to other types of tokens, both fungible and non-fungible.

The main contract is the NFTSwapper, where swaps are stored and handled. For each type of token, there is a specific contract that follows the ISwapperHandler interface. These are responsible for the transfer, so these are the addresses to be approved as operators by the NFT owners.

Contract Addresses 🔑

Chain Swapper ERC721 ERC1155 LSP7 LSP8
Mumbai 0xa211...c8c 0xE406...825 0x8c5d...a97 0x7eCF...73C 0xC243...04D
L16 0xB5Ed...B69 - - 0xC3C2...9f40 0xa3A3...4fB

Steps 🗺️

  • Create a new swap agreement by registering the bidder, tendered, NFT contract addresses, the token IDs and amounts.
  • Owners of NFTs must approve as operator the Swapper handlers addresses on the NFT contracts.
  • One tendered can claim the swap and both receive the other's NFTs.

Contribute ☕

  • Issues and Pull Request on Github are welcome.
  • Let me know if you deploy the contracts on a different EVM blockchain.
  • Buy me a coffee at 0x4443049b49Caf8Eb4E9235aA1Efe38FcFA0055a1
  • Share it on social media!

Contact ✉️

License ♻️

nft-swapper's People

Contributors

danielabalde avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.