Colle Marketplace
Colle.ioWebApp (Live)WebApp (Test)
  • Contracts Overview
  • Functional Requirements
  • Contract Descriptions
  • Technical Project & Audit Details
  • Test Coverage Report
  • Static Analysis
  • Royalty Pool Explained
  • Sale State Explained
  • Sales Tax Explained
  • marketplace
    • IMarketHub
    • IMarketHubRegistrar
    • MarketHub
    • MarketHubRegistrar
    • MarketHubRegistrarUpgradeable
    • collections
      • ColleCollection
      • ColleCollectionUpgradeable
      • CollectionRegistry
      • IColleCollection
      • IColleCollectionUpgradeable
      • ICollectionRegistry
    • currencies
      • BaseCurrency
      • CurrencyRegistry
      • ICurrency
      • ICurrencyRegistry
      • USDCCurrency
    • escrow
      • EscrowUpgradeable
      • IEscrow
      • IEscrowRegistry
    • kycs
      • Account
      • IKYCRegistry
      • KYCRegistry
    • markets
      • BaseMarketUpgradeable
      • IListingMarket
      • IMarket
      • IMarketRegistry
      • IOfferMarket
      • ListingMarketUpgradeable
      • MarketRegistry
      • OfferMarketUpgradeable
    • royalties
      • BaseRoyalty
      • BlackTierRoyalty
      • GoldTierRoyalty
      • GreenTierRoyalty
      • IRoyalty
      • IRoyaltyPool
      • IRoyaltyRegistry
      • PlatinumTierRoyalty
      • RoyaltyPool
      • RoyaltyRegistry
      • v1
        • BlackTierRoyaltyV1
        • GoldTierRoyaltyV1
        • GreenTierRoyaltyV1
        • PlatinumTierRoyaltyV1
    • taxes
      • ITaxPolicyRegistry
      • Tax
      • TaxPolicyRegistry
    • upgrade-gatekeeper
      • IUpgradeGatekeeper
      • UpgradeGatekeeper
    • vaults
      • IVault
      • IVaultRegistry
      • VaultUpgradeable
  • team-smart-wallet
    • ITeamSmartWallet
    • ITeamSmartWalletHelper
    • TeamSmartWallet
    • TeamSmartWalletFactory
    • TeamSmartWalletPermitHelper
  • utils
    • MarketAccess
    • MarketAccessUpgradeable
    • Signature
    • SignatureValidator
Powered by GitBook
On this page
  • Offer
  • OfferPlaced
  • OfferRevoked
  • offer
  • Parameters
  • permitOffer
  • Parameters
  • permitOffChainPaymentOffer
  • Parameters
  • revokeOffer
  • Parameters
  • permitRevokeOffer
  • Parameters
  • acceptOffer
  • Parameters
  • permitAcceptOffer
  • Parameters
  • getOffer
  1. marketplace
  2. markets

IOfferMarket

Interface for a marketplace where NFTs can be offered, offers can be accepted and revoked

Offer

struct Offer {
  uint256 price;
  address spender;
}

OfferPlaced

event OfferPlaced(address buyer, address spender, address collection, uint256 tokenId, address erc20, uint256 price)

Event emitted when an offer is placed

OfferRevoked

event OfferRevoked(address buyer, address collection, uint256 tokenId, address erc20)

Event emitted when an offer is revoked

offer

function offer(address _collection, uint256 _tokenId, address _erc20, uint256 _price) external

Offer a token for sale

The function is publicly accessible and makes a new offer

Parameters

Name
Type
Description

_collection

address

The collection that the token belongs to

_tokenId

uint256

The ID of the token to offer

_erc20

address

The address of the ERC20 token to use as payment

_price

uint256

The price at which to offer the token

permitOffer

function permitOffer(address _collection, uint256 _tokenId, address _erc20, uint256 _price, struct Signature _signature) external

Offer a token for sale with a signature

The function is publicly accessible, verifies the signature and makes a new offer

Parameters

Name
Type
Description

_collection

address

The collection that the token belongs to

_tokenId

uint256

The ID of the token to offer

_erc20

address

The address of the ERC20 token to use as payment

_price

uint256

The price at which to offer the token

_signature

struct Signature

The buyers signature, deadline and address

permitOffChainPaymentOffer

function permitOffChainPaymentOffer(address _collection, uint256 _tokenId, address _erc20, uint256 _price, struct Signature _signature) external

Offer a token for sale with off-chain payment and a signature

The function is publicly accessible, verifies the signature and makes a new offer with off-chain payment

Parameters

Name
Type
Description

_collection

address

The collection that the token belongs to

_tokenId

uint256

The ID of the token to offer

_erc20

address

The address of the ERC20 token to use as payment

_price

uint256

The price at which to offer the token

_signature

struct Signature

The buyers signature, deadline and address

revokeOffer

function revokeOffer(address _collection, uint256 _tokenId, address _erc20) external

Revoke an offer

The function is publicly accessible and revokes an offer

Parameters

Name
Type
Description

_collection

address

The collection that the token belongs to

_tokenId

uint256

The ID of the token whose offer to revoke

_erc20

address

The address of the ERC20 token used in the offer

permitRevokeOffer

function permitRevokeOffer(address _collection, uint256 _tokenId, address _erc20, struct Signature _signature) external

Revoke an offer with a signature

The function is publicly accessible, verifies the signature and revokes an offer

Parameters

Name
Type
Description

_collection

address

The collection that the token belongs to

_tokenId

uint256

The ID of the token whose offer to revoke

_erc20

address

The address of the ERC20 token used in the offer

_signature

struct Signature

The buyers signature, deadline and address

acceptOffer

function acceptOffer(address _buyer, address _erc20, address _collection, uint256 _tokenId) external

Accept an offer

The function is publicly accessible and accepts an offer

Parameters

Name
Type
Description

_buyer

address

The address of the buyer

_erc20

address

The address of the ERC20 token used in the offer

_collection

address

The collection that the token belongs to

_tokenId

uint256

The ID of the token whose offer to accept

permitAcceptOffer

function permitAcceptOffer(address _buyer, address _erc20, address _collection, uint256 _tokenId, struct Signature _signature) external

Accept an offer with a signature

The function is publicly accessible, verifies the signature and accepts an offer

Parameters

Name
Type
Description

_buyer

address

The address of the buyer

_erc20

address

The address of the ERC20 token used in the offer

_collection

address

The collection that the token belongs to

_tokenId

uint256

The ID of the token whose offer to accept

_signature

struct Signature

The sellers signature, deadline and address

getOffer

function getOffer(address _collection, uint256 _tokenId, address _buyer, address _erc20) external view returns (struct IOfferMarket.Offer)

Gets the offer for an NFT

PreviousIMarketRegistryNextListingMarketUpgradeable

Last updated 1 year ago