Security
This crate provides components to handle common security-related tasks.
Initializable
InitializableComponent
use openzeppelin::security::InitializableComponent;
Component enabling one-time initialization for contracts.
Embeddable Implementations
InitializableImpl
Internal Implementations
InternalImpl
Pausable
PausableComponent
use openzeppelin::security::PausableComponent;
Component to implement an emergency stop mechanism.
Embeddable Implementations
PausableImpl
Internal Implementations
Events
pause(ref self: ComponentState)
internal
Pauses the contract.
Requirements:
-
the contract must not be paused.
Emits a Paused event.
unpause(ref self: ComponentState)
internal
Unpauses the contract.
Requirements:
-
the contract must be paused.
Emits an Unpaused event.
ReentrancyGuard
ReentrancyGuardComponent
use openzeppelin::security::ReentrancyGuardComponent;
Component to help prevent reentrant calls.
Internal Implementations
InternalImpl