Skip to content

nonpayable/middleMan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

middleMan

Exchange/Swap any NFT for NFT

How to use

  1. Deploy it on any chain.

  2. Approve your token to smart contract's address.

  3. Call makeOffer() with arguments
    with, [offer], [for]
    makeOffer(address tradewith, [ERC721 offer's address, TokenID],[ERC721 for's address, TokenID])

    Example
    makeOffer("0x0000000000000000000000000000000000000000", ["0xaa9d2c05365189B1B913e0b7877CFD5d61C9Da9a",1], ["0xaa9d2c05365189B1B913e0b7877CFD5d61C9Da9a",2]);

  4. After calling makeOffer() contract will emit OfferCreation(maker, taker, offer, for, ID);

  5. Opposite call cancelOffer(uint256 tradeID) or takeOffer(uint256 tradeID)

  6. Or you cancel the trade with cancelOffer(uint256 tradeID).

Releases

No releases published

Packages

No packages published