SaplingContext
SaplingContext
Provides reference to protocol level access control, and basic pause functionality by extending OpenZeppelin's Pausable contract.
accessControl
Protocol access control
onlyRole
Modifier to limit function access to a specific role
__SaplingContext_init
Creates a new SaplingContext.
Addresses must not be 0.
Name | Type | Description |
---|---|---|
_accessControl | address | Protocol level access control contract address |
pause
Pause the contract.
Only the functions using whenPaused and whenNotPaused modifiers will be affected by pause. Caller must have the PAUSER_ROLE.
unpause
Unpause the contract.
Only the functions using whenPaused and whenNotPaused modifiers will be affected by unpause. Caller must have the PAUSER_ROLE.
isNonUserAddress
Verify if an address has any non-user roles.
When overriding, return "contract local verification result" AND super.isNonUserAddress(party).
Name | Type | Description |
---|---|---|
party | address | Address to verify |
Name | Type | Description |
---|---|---|
[0] | bool | True if the address has any roles, false otherwise |
hasRole
Verify if an address has a specific role.
Name | Type | Description |
---|---|---|
role | bytes32 | Role to check against |
party | address | Address to verify |
Name | Type | Description |
---|---|---|
[0] | bool | True if the address has the specified role, false otherwise |
__gap
Slots reserved for future state variables
Last updated