ITLNftDelegationRegistry

Git Source

Author: transientlabs.xyz

Interface for the TL NFT Delegation Registry

Functions

checkDelegateForERC721

Function to check if an address is delegated for a vault for an ERC-721 token

This function does not ensure the vault is the current owner of the token

This function SHOULD return True if the delegate is delegated for the vault whether it's on the token level, contract level, or wallet level (all)

function checkDelegateForERC721(address delegate, address vault, address nftContract, uint256 tokenId)
    external
    view
    returns (bool);

Parameters

NameTypeDescription
delegateaddressThe address to check for delegation status
vaultaddressThe vault address to check against
nftContractaddressThe nft contract address to check
tokenIduint256The token id to check against

Returns

NameTypeDescription
<none>boolbool True is delegated, False if not

checkDelegateForERC1155

Function to check if an address is delegated for a vault for an ERC-1155 token

This function does not ensure the vault has a balance of the token in question

This function SHOULD return True if the delegate is delegated for the vault whether it's on the token level, contract level, or wallet level (all)

function checkDelegateForERC1155(address delegate, address vault, address nftContract, uint256 tokenId)
    external
    view
    returns (bool);

Parameters

NameTypeDescription
delegateaddressThe address to check for delegation status
vaultaddressThe vault address to check against
nftContractaddressThe nft contract address to check
tokenIduint256The token id to check against

Returns

NameTypeDescription
<none>boolbool True is delegated, False if not