Last updated
Last updated
Inherits: IAuthorizer_v1
Checks if an account qualifies for a token-gated role.
Parameters
Returns
Returns the threshold balance for a given token necessary to qualify for a specific role. If the value is 0, the supplied token is not part of the. role's token gating.
In case the queried role is not token gated, all calls will return 0.
Parameters
Returns
Sets up a token-gated empty role.
This function is only callable by an active Module for itself. Admin should use setTokenGated()
.
Calling this function does not specify WHICH token to use for gating. That has to be done with 'grantTokenFromModule()'.
Parameters
One-step setup for Modules to create a token-gated role and set its threshold. Please be aware that using tokens that are transferable and have active markets could make the token-gated authorization vulnerable to flash loans, potentially bypassing. the authorization mechanism.
Parameters
Allows a Module to set the threshold of one of it's roles.
Parameters
Sets if a role is token-gated or not.
Admin access for rescue purposes. If the role has active members, they need to be reovked first.
Parameters
Sets the minimum threshold for a token-gated role.
This function does not validate the threshold. It is technically possible to set a threshold above the total supply of the token.
Parameters
Event emitted when the token-gating of a role changes.
Parameters
Event emitted when the threshold of a token-gated role changes.
Parameters
The function is only callable by an active Module.
The function is only callable if the Module is self-managing its roles.
The token doesn't support balance query.
Parameters
The given threshold is invalid.
Parameters
The role is token-gated but no threshold is set.
Parameters
roleId
bytes32
The role to be checked on.
token
address
The token to check the threshold for.
<none>
uint256
The threshold amount necessary to qualify for a given token role.
role
bytes32
The role to be made token-gated.
role
bytes32
The role to be made token-gated.
token
address
The token for which the threshold will be set.
threshold
uint256
The minimum balance of the token required to qualify for the role.
role
bytes32