IPCVSentinel
an interface for defining how the PCVSentinel functions
any implementation of this contract should be granted the Guardian role
Functions
isGuard
function isGuard(
address guard
) external returns (bool)
Parameters
Name | Type | Description |
---|---|---|
guard | address |
allGuards
function allGuards() external returns (address[] all)
knight
function knight(
address guard
) external
Parameters
Name | Type | Description |
---|---|---|
guard | address |
slay
function slay(
address traitor
) external
Parameters
Name | Type | Description |
---|---|---|
traitor | address |
protec
function protec(
address guard
) external
Parameters
Name | Type | Description |
---|---|---|
guard | address |
Events
Protected
event Protected(
address guard
)
Parameters
Name | Type | Description |
---|---|---|
guard | address |
GuardAdded
event GuardAdded(
address guard
)
Parameters
Name | Type | Description |
---|---|---|
guard | address |
GuardRemoved
event GuardRemoved(
address guard
)
Parameters
Name | Type | Description |
---|---|---|
guard | address |