IERC721Expert
Interface Description
License: MIT
interface IERC721Expert is IERC721Upgradeable
The ERC721 token that implements experts functionality, follows EIP-5484
Enums info
BurnAuth
enum BurnAuth {
IssuerOnly,
OwnerOnly,
Both,
Neither
}
Events info
Issued
event Issued(address indexed from, address indexed to, uint256 indexed tokenId, IERC721Expert.BurnAuth burnAuth)
Emitted when a soulbound token is issued.
Parameters:
from
address
The issuer
to
address
The receiver
tokenId
uint256
The id of the issued token
burnAuth
enum IERC721Expert.BurnAuth
the BurnAuth struct
TagsAdded
event TagsAdded(uint256 indexed tokenId, string[] tags)
Emitted when tags are added to the SBT
Parameters:
tokenId
uint256
the token where the tags are added
tags
string[]
the list of tags
Functions info
burn (0x89afcb44)
function burn(address from) external
The function to burn the token
Parameters:
from
address
the address to burn from (1 to 1 relation)
isExpert (0x76c535ae)
function isExpert(address expert) external view returns (bool)
The function to check of a user is an expert
Parameters:
expert
address
the user to check
Return values:
[0]
bool
true if user is an expert
getIdByExpert (0x6047fb89)
function getIdByExpert(address expert) external view returns (uint256)
The function to get the SBT id of an expert
Parameters:
expert
address
the user to get the SBT id of
Return values:
[0]
uint256
SBT id of the user
burnAuth (0x0489b56f)
function burnAuth(
uint256 tokenId
) external view returns (IERC721Expert.BurnAuth)
provides burn authorization of the token id
Parameters:
tokenId
uint256
The identifier for a token
Return values:
[0]
enum IERC721Expert.BurnAuth
the auth