Documentation Index
Fetch the complete documentation index at: https://thrackle.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Git Source
Inherits:
IAccessLevelErrors, IInputErrors
Author:
@ShaneDuncan602, @oscarsernarosero, @TJ-Everett
interface to define the functionality of the Access Levels data contract
Access Level storage and retrieval functions are defined here
Functions
addLevel
Add the Access Level to the account. Restricted to the owner
function addLevel(address _address, uint8 _level) external;
Parameters
| Name | Type | Description |
|---|
_address | address | address of the account |
_level | uint8 | access level(0-4) |
addMultipleAccessLevels
Add the Access Level(0-4) to the list of account. Restricted to the owner.
function addMultipleAccessLevels(address[] memory _accounts, uint8[] memory _level) external;
Parameters
| Name | Type | Description |
|---|
_accounts | address[] | address array upon which to apply the Access Level |
_level | uint8[] | Access Level array to add |
getAccessLevel
Get the Access Level for the account.
function getAccessLevel(address _account) external view returns (uint8);
Parameters
| Name | Type | Description |
|---|
_account | address | address of the account |
Returns
| Name | Type | Description |
|---|
<none> | uint8 | level Access Level(0-4) |
addAccessLevelToMultipleAccounts
Add the Access Level(0-4) to multiple accounts. Restricted to the owner.
function addAccessLevelToMultipleAccounts(address[] memory _accounts, uint8 _level) external;
Parameters
| Name | Type | Description |
|---|
_accounts | address[] | addresses upon which to apply the Access Level |
_level | uint8 | Access Level to add |
removeAccessLevel
Remove the Access Level for the account. Restricted to the owner
function removeAccessLevel(address _account) external;
Parameters
| Name | Type | Description |
|---|
_account | address | address of the account |