RuleRegistry
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
5
Slot
XX
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
Balances ($0.00)
No balances found for "RuleRegistry"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "RuleRegistry"
ABI
ABI objects
Getter at block 21228524
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
ROLE_RULE_ADMIN() view returns (bytes32)
0x422fdaf494df115262347bf152b59ce2e4e0d0d8baa9f828fa6d6500f25a0aac
genesis() view returns (bytes32 universeRuleId, bytes32 emptyRuleId)
(universeRuleId=0x0000000000000000000000000000000000000000000000000000000000000000, emptyRuleId=0x0000000000000000000000000000000000000000000000000000000000000000)
ruleCount() view returns (uint256 count)
0
Read-only
generateRuleId(string description, uint8 operator, bytes32[] operands) pure returns (bytes32 ruleId)
getRoleAdmin(bytes32 role) view returns (bytes32)
hasRole(bytes32 role, address account) view returns (bool)
isRule(bytes32 ruleId) view returns (bool isIndeed)
isTrustedForwarder(address forwarder) view returns (bool)
rule(bytes32 ruleId) view returns (string description, string uri, uint8 operator, uint256 operandCount)
ruleAtIndex(uint256 index) view returns (bytes32 ruleId)
ruleDescription(bytes32 ruleId) view returns (string description)
ruleIsToxic(bytes32 ruleId) view returns (bool isIndeed)
ruleOperandAtIndex(bytes32 ruleId, uint256 index) view returns (bytes32 operandId)
ruleOperandCount(bytes32 ruleId) view returns (uint256 count)
ruleOperator(bytes32 ruleId) view returns (uint8 operator)
ruleUri(bytes32 ruleId) view returns (string uri)
supportsInterface(bytes4) view returns (bool)
State-modifying
Events createRule(string description, string uri, uint8 operator, bytes32[] operands) returns (bytes32 ruleId)
grantRole(bytes32 role, address account)
init(string universeDescription, string universeUri, string emptyDescription, string emptyUri)
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
setToxic(bytes32 ruleId, bool toxic)
CreateRule(address indexed user, bytes32 indexed ruleId, string description, string uri, bool toxic, uint8 operator, bytes32[] operands)
Initialized(uint8 version)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
RuleRegistryDeployed(address deployer, address trustedForwarder)
RuleRegistryInitialized(address admin, string universeDescription, string universeUri, string emptyDescription, string emptyUri, bytes32 universeRule, bytes32 emptyRule)
SetToxic(address admin, bytes32 ruleId, bool isToxic)
constructor(address trustedForwarder)
This contract contains no fallback and receive objects.
Bytes32SetConsistency(string module, string method, string reason, string context)
Unacceptable(string reason)
Unauthorized(address sender, string module, string method, bytes32 role, string reason, string context)