web3wagmi
← All standards

ERC-7509 Entity Component System

DraftERCcreated 2023-09-05

Represent entities comprising components of data, with systems which operate on entities' components.

Author: Rickey (@HelloRickey)

ERC-165 interface ids

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

IWorld0xcb6e6701
IComponent0x5a4b96d3

Functions this standard introduces (24)

0x52c72689addComponent(uint256,address)
0x31079556componentExists(address)view
0xddb9b5b1createEntity()
0xa7d64d26entityExists(uint256)view
0xb86deeddget(uint256,bytes)view
0x9507d39aget(uint256)view
0x99d50d5dgetComponents()view
0xed0d2f11getComponentState(address)view
0x3e2b4731getEntityComponents(uint256)view
0x5d1b45b5getEntityCount()view
0x1ad6f49dgetEntityState(uint256)view
0x9c8d52f2getSystems()view
0x8e433cd0getSystemState(address)view
0x879920a1hasComponent(uint256,address)view
0x6078a3b2registerComponent(address)
0x32d3e2b8registerSystem(address)
0x21f4aa9aremoveComponent(uint256,address)
0x8b282947set(uint256,bytes)
0xba4e849asetComponentState(address,bool)
0xd90f49absetEntityState(uint256,bool)
0x196e17a4setSystemState(address,bool)
0x43d8879asystemExists(address)view
0xccbff979types()view
0x30b67baaworld()view

What the specification covers

Compare with

Parsed from the canonical specification · discussion