ITags
Inherits: ITagInputErrors, IRuleProcessorErrors, IMaxTagLimitError, IInputErrors
Author: @ShaneDuncan602, @oscarsernarosero, @TJ-Everett
Stores tag data for accounts
Tags storage retrieval functions are defined here
Functions
addTag
Add the tag. Restricted to owner.
Parameters
Name | Type | Description |
---|---|---|
_address | address | user address |
_tag | bytes32 | metadata tag to be added |
removeTag
Remove the tag. Restricted to owner.
Parameters
Name | Type | Description |
---|---|---|
_address | address | user address |
_tag | bytes32 | metadata tag to be removed |
hasTag
Check is a user has a certain tag
Parameters
Name | Type | Description |
---|---|---|
_address | address | user address |
_tag | bytes32 | metadata tag |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | hasTag true if it has the tag, false if it doesn’t |
getAllTags
Get all the tags for the address
Parameters
Name | Type | Description |
---|---|---|
_address | address | user address |
Returns
Name | Type | Description |
---|---|---|
<none> | bytes32[] | tags array of tags |
addTagToMultipleAccounts
there is a hard limit of 10 tags per address. This limit is also enforced by the protocol, so keeping this limit here prevents transfers to unexpectedly revert
_Add a general tag to an account. Restricted to Application Administrators. Loops through existing tags on accounts and will emit an event if tag is _ already applied.*
Parameters
Name | Type | Description |
---|---|---|
_accounts | address[] | Address array to be tagged |
_tag | bytes32 | Tag for the account. Can be any allowed string variant |
addMultipleTagToMultipleAccounts
there is a hard limit of 10 tags per address.
Add a general tag to an account at index in array. Restricted to Application Administrators. Loops through existing tags on accounts and will emit an event if tag is already applied.
Parameters
Name | Type | Description |
---|---|---|
_accounts | address[] | Address array to be tagged |
_tags | bytes32[] | Tag array for the account at index. Can be any allowed string variant |