RuleRegistry

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0xcab96422 at 17722418
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 1 additional slot

No balances found for "RuleRegistry"

No transactions found for "RuleRegistry"


Functions
Getter at block 21228524
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
ROLE_RULE_ADMIN(view returns (bytes32)
0x422fdaf494df115262347bf152b59ce2e4e0d0d8baa9f828fa6d6500f25a0aac
genesis(view returns (bytes32 universeRuleIdbytes32 emptyRuleId)
(universeRuleId=0x0000000000000000000000000000000000000000000000000000000000000000, emptyRuleId=0x0000000000000000000000000000000000000000000000000000000000000000)
ruleCount(view returns (uint256 count)
0
Read-only
generateRuleId(string descriptionuint8 operatorbytes32[] operandspure returns (bytes32 ruleId)
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
isRule(bytes32 ruleIdview returns (bool isIndeed)
isTrustedForwarder(address forwarderview returns (bool)
rule(bytes32 ruleIdview returns (string descriptionstring uriuint8 operatoruint256 operandCount)
ruleAtIndex(uint256 indexview returns (bytes32 ruleId)
ruleDescription(bytes32 ruleIdview returns (string description)
ruleIsToxic(bytes32 ruleIdview returns (bool isIndeed)
ruleOperandAtIndex(bytes32 ruleIduint256 indexview returns (bytes32 operandId)
ruleOperandCount(bytes32 ruleIdview returns (uint256 count)
ruleOperator(bytes32 ruleIdview returns (uint8 operator)
ruleUri(bytes32 ruleIdview returns (string uri)
supportsInterface(bytes4view returns (bool)
State-modifying
createRule(string descriptionstring uriuint8 operatorbytes32[] operandsreturns (bytes32 ruleId)
grantRole(bytes32 roleaddress account
init(string universeDescriptionstring universeUristring emptyDescriptionstring emptyUri
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setToxic(bytes32 ruleIdbool toxic
Events
CreateRule(address indexed userbytes32 indexed ruleIdstring descriptionstring uribool toxicuint8 operatorbytes32[] operands
Initialized(uint8 version
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
RuleRegistryDeployed(address deployeraddress trustedForwarder
RuleRegistryInitialized(address adminstring universeDescriptionstring universeUristring emptyDescriptionstring emptyUribytes32 universeRulebytes32 emptyRule
SetToxic(address adminbytes32 ruleIdbool isToxic
Constructor
constructor(address trustedForwarder
Fallback and receive

This contract contains no fallback and receive objects.

Errors
Bytes32SetConsistency(string modulestring methodstring reasonstring context
Unacceptable(string reason
Unauthorized(address senderstring modulestring methodbytes32 rolestring reasonstring context