ITLNftDelegationRegistry
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
Name | Type | Description |
---|---|---|
delegate | address | The address to check for delegation status |
vault | address | The vault address to check against |
nftContract | address | The nft contract address to check |
tokenId | uint256 | The token id to check against |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | bool 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
Name | Type | Description |
---|---|---|
delegate | address | The address to check for delegation status |
vault | address | The vault address to check against |
nftContract | address | The nft contract address to check |
tokenId | uint256 | The token id to check against |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | bool True is delegated, False if not |