🛂KYCToken
KYCToken contract is used to manage the KYC-mode on a vault.
The KYC status is represented by a non-transferable NFT ERC721, minted only by trusted KYC providers. This NFT, associated with a unique address, allows that address to deposit funds in all vaults.
Types
TokenParameters
TokenParameters represents the stored metadata to enable on chain filtering when entering Vaults
Name | Type | Description |
---|---|---|
| bool | ongoing KYC state |
| string | KYC trust provider |
| string | hash of the proof |
| uint256 | degree of sensitivity |
| uint256 | expiration date |
View Methods
ownedNFTMap
Returns the token ID of the KYC NFT of a user.
Call Parameters:
Name | Type | Description |
---|---|---|
| address | address of an owner |
Return Value:
Type | Description |
---|---|
uint256 | token ID of the KYC NFT |
tokenParameters
Returns the KYC parameters for a given token ID.
Call Parameters:
Name | Type | Description |
---|---|---|
| uint256 | token ID |
Return Value:
Type | Description |
---|---|
TokenParameters | KYC parameters of the token |
isUserKYC
Returns whether or not the user has a valid NFT.
Call Parameters:
Name | Type | Description |
---|---|---|
| address | address of the user |
Return Value:
Type | Description |
---|---|
bool |
|
Write Methods
setTokenParameters
Allows KYC providers to edit TokenParameters of a given token ID.
This method can only be called by address with DEFAULT_ADMIN_ROLE.
Call Parameters:
Name | Type | Description |
---|---|---|
| uint256 | ID of the NFT |
| TokenParameters | KYC parameters |
mint
Mints a KYC NFT and stores the KYC Metadata.
This method can only be called by address with MINTER_ROLE.
Call Parameters:
Name | Type | Description |
---|---|---|
| address | address of the user |
| TokenParameters | KYC parameters |
batch
Mints several KYC NFTs in one transaction.
This method can only be called by address with MINTER_ROLE.
Call Parameters:
Name | Type | Description |
---|---|---|
| address[] | list of users addresses |
| TokenParameters[] | list of KYC parameters |
Last updated