Git Source

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.

function addTag(address _address, bytes32 _tag) external;

Parameters

NameTypeDescription
_addressaddressuser address
_tagbytes32metadata tag to be added

removeTag

Remove the tag. Restricted to owner.

function removeTag(address _address, bytes32 _tag) external;

Parameters

NameTypeDescription
_addressaddressuser address
_tagbytes32metadata tag to be removed

hasTag

Check is a user has a certain tag

function hasTag(address _address, bytes32 _tag) external view returns (bool);

Parameters

NameTypeDescription
_addressaddressuser address
_tagbytes32metadata tag

Returns

NameTypeDescription
<none>boolhasTag true if it has the tag, false if it doesn’t

getAllTags

Get all the tags for the address

function getAllTags(address _address) external view returns (bytes32[] memory);

Parameters

NameTypeDescription
_addressaddressuser address

Returns

NameTypeDescription
<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.*

function addTagToMultipleAccounts(address[] memory _accounts, bytes32 _tag) external;

Parameters

NameTypeDescription
_accountsaddress[]Address array to be tagged
_tagbytes32Tag 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.

function addMultipleTagToMultipleAccounts(address[] memory _accounts, bytes32[] memory _tags) external;

Parameters

NameTypeDescription
_accountsaddress[]Address array to be tagged
_tagsbytes32[]Tag array for the account at index. Can be any allowed string variant