web3wagmi
← All standards

ERC-7777 Governance for Human Robot Societies

ReviewERCcreated 2024-09-29

Defines interfaces for managing the identities of humans and robots, and establishing rule sets for their interaction.

Authors: OpenMind, Jan Liphardt, Shaohong Zhong (@ShaohongZ), Boyuan Chen (@bchen-dev), Paige Xu, James Ball, Thamer Dridi

ERC-165 interface ids

Computed here as the XOR of the selectors each interface defines.

IUniversalIdentity0xd11a9ca4
IUniversalCharter0xf6cd096b

Functions this standard introduces (11)

0xf6ced126addRule(bytes)
0x692ead00checkCompliance(address,bytes[])view
0xced8b7cecheckCompliance(bytes)view
0x867cf839generateChallenge()
0x0d28f25agetHardwareIdentity()view
0x0fe4c950leaveSystem()
0x8f320b08registerUser(uint8,bytes[])
0x6f1ae858removeRule(bytes)
0x2fd949caterminateContract()
0x30ec2ff9updateRuleSet(bytes[])
0x0d421877verifyChallenge(bytes32,bytes)

Events (9)

Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.

0xdb91750ce40c4f469288ac7bc850b773524c9b81c61003c44e4cc22d35846fb0RuleAdded(bytes)
0x135d390a44fccee2ceed33ba5704924fafdae44cc02fbfc1b3ea2664fa4cf26aRuleRemoved(bytes)
0xa4cb8801246a7cd46e23162e5202982920ce9e73abf4046b7d1a340b769f1f74SubscribedToCharter(address)
0x91338e677f395b064da1f3b45064399b61ec660b83742ae4dbf69c3b608f3854UnsubscribedFromCharter(address)
0x02bd7ae8911fc59c2682d56b1b67cddac4c6469c8117849070f8e2f4d3b4c2f0UserRegistered(address,uint8,bytes[])
0x8407d79d399b8f5776c7c1c8d51574bbfcafab1d107f7a5e5b0f1160b8a755d6UserLeft(address)
0x809e0c6045d51dd1b30acf10fccd34a09139fb248c1cfed79784d80052a4c296ComplianceChecked(address,bytes[])
0x2e91695572ee0f12450cdc9df0a079b007051d5e3a243e79633d88e418dce56dRuleSetUpdated(bytes[],address)
0x4309e82f1fb70ef342065e3259a4919acab4cca0862aa9f9e719d7a5dda3b161ComplianceChecked(address,bytes)

Custom errors (4)

0xbd110befRuleNotAgreed(bytes)
0x7611e8dfRuleNotCompliant(bytes)
0x7ada0641RuleAlreadyAdded(bytes)
0xf480973eCallPaused()

What the specification covers

Compare with

Parsed from the canonical specification · discussion