Caviar
  • Introduction
  • User Guides
    • Buying and Selling NFTs
    • Creating a New Shared Pool
    • Providing and Removing Liquidity for Shared and Custom Pools
    • Providing and Removing Liquidity for Pure-NFT Pools
    • Changing your NFTs in Pure-NFT Pools
    • Wrapping and Unwrapping NFTs
    • Impermanent Loss
  • Concepts
    • Shared pools
      • Swaps
      • Liquidity
      • Fractionalization
    • Custom pools
      • Swaps
      • Liquidity
      • Change
  • Technical Reference
    • Contract addresses
    • Shared pools
      • High level overview
      • Smart contract API
        • Caviar.sol
        • Pair.sol
        • StolenNftFilterOracle.sol
        • CaviarEthRoyaltyRouter.sol
      • Desirability Classifier
      • How to make a buy programatically
      • How to make a sell programatically
    • Custom pools
      • High level overview
      • Smart contract API
        • EthRouter
        • Factory
        • PrivatePool
        • PrivatePoolMetadata
        • IStolenNftOracle
  • Resources
    • Partners
    • NFT Collection Partnerships
    • Audits
    • Research
    • Where does the yield come from?
Powered by GitBook
On this page
  • Functions
  • validateTokensAreNotStolen
  • Structs
  • Message
  1. Technical Reference
  2. Custom pools
  3. Smart contract API

IStolenNftOracle

PreviousPrivatePoolMetadataNextPartners

Last updated 2 years ago

Functions

validateTokensAreNotStolen

Validates that a set of token ids have not been marked as stolen by the oracle.

Check a signed message from the oracle to ensure that the token ids have not been marked as stolen.

function validateTokensAreNotStolen(address tokenAddress, uint256[] calldata tokenIds, Message[] calldata proofs)
    external;

Parameters

Name
Type
Description

tokenAddress

address

The address of the token contract.

tokenIds

uint256[]

The token ids to validate.

proofs

Message[]

The proofs that the token ids have not been marked as stolen.

Structs

Message

struct Message {
    bytes32 id;
    bytes payload;
    uint256 timestamp;
    bytes signature;
}
Git Source