Coordinated
Git Source (opens in a new tab)
Exposes utility modifier onlyCoordinator
for coordinator-permissioned functions
Best used when implementing contract needs just a msg.sender check (and not call access to coordinator itself)
State Variables
COORDINATOR
Coordinator contract address
Private to prevent conflicting with similar public variables in namespace
Immutable to prevent address changes given registry deployment is immutable
address private immutable COORDINATOR;
Functions
onlyCoordinator
Allows calls from only the coordinator
modifier onlyCoordinator();
constructor
Initializes new Coordinated
constructor(Registry registry);
Parameters
Name | Type | Description |
---|---|---|
registry | Registry | registry contract |
Errors
NotCoordinator
Thrown if coordinator-permissioned function is called from non-coordinator address
4-byte signature: 0x9ec853e6
error NotCoordinator();