Skip to content

RockArtAI/MarketSale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ERC721 utility to check NFT sales

When posting a token collection for sale on OpenSea or Blur, you can check whether it is a token sale or transfer.

import '@rockart/marketsale/MarketSale.sol';

contract TestNFT is MarketSale {
    // ...
}
/**
* @dev Returns the address of the marketplace where the sale is tracked.
*/
function getMarket(uint256 id) external view returns (address);

/**
* @dev Adding a new marketplace address to track the sale.
*/
function addMarket(address[] memory markets) external;

/**
* @dev Removing the marketplace from sales tracking.
*/
function delMarket(address[] memory markets) external;

/**
* @dev Returns a logical value,
* `true` if the NFT is sale and
* `false` if it is a transfer.
*/
function isSale() external view returns (bool sale);

Do not use in production!

  • Do not test multiple sales;
  • Do not test multiple transfers;

About

ERC721 utility for determining the sale of NFTs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published