Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article examines ERC4824, a standard proposing an API for decentralized autonomous organizations (DAOs) that bridges on-chain and off-chain information.
This article translates, summarizes, and expands on the following proposal.
As of December 14, 2023, ERC4824 was at the Draft stage.
For other ERC articles, see the proposal index.
Overview
This proposal defines an API standard for decentralized autonomous organizations (DAOs).
The API connects activities conducted on the blockchain (on-chain) with activities conducted outside it (off-chain). The distinction is as follows.
On-chain interactions
These include contracts and transactions on the blockchain. For example, tokens such as ERC20 and ERC721 can represent the ownership and voting rights of DAO members.
For more information on ERC20, see the following article.
For more information on ERC721, see the following article.
Off-chain interactions
These include activities outside the blockchain, such as discussions between members, proposal content, and decisions made through voting.
The goal of the API standard is to connect on-chain and off-chain information smoothly and make DAO operations efficient and transparent. Membership verification, voting-rights management, proposal submission, and proposal tracking can be supported through blockchain technology and associated data. This helps clarify roles and responsibilities, track proposal progress, and support accurate and fair voting.
The API standard aims to improve DAO operations by combining the technical advantages of blockchains with the complexity of off-chain activities.
Motivation
DAOs were first proposed in the Ethereum whitepaper, but their definition remains imprecise. As a result, many types of DAOs have emerged, with few common rules or standards for interoperability.
To address this problem, a standardized daoURI, similar to the tokenURI used in ERC721, is proposed.
This is intended to make DAOs easier to discover and understand, and enable interoperability between different tools and systems.
In other words, daoURI acts like an address or name tag, making DAOs easier to use and connect.
It provides a common foundation for the future development of the DAO ecosystem.
Specification
ERC4824 is an Ethereum interface standard for decentralized autonomous organizations (DAOs). It is designed to organize DAO information and make it accessible.
Contracts conforming to this standard must implement the following ERC4824 interface.
pragma solidity ^0.8.1;
/// @title ERC-4824 DAOs
/// @dev See <https://eips.ethereum.org/EIPS/eip-4824>
interface IERC-4824 {
event DAOURIUpdate(address daoAddress, string daoURI);
/// @notice A distinct Uniform Resource Identifier (URI) pointing to a JSON object following the "ERC-4824 DAO JSON-LD Schema". This JSON file splits into four URIs: membersURI, proposalsURI, activityLogURI, and governanceURI. The membersURI should point to a JSON file that conforms to the "ERC-4824 Members JSON-LD Schema". The proposalsURI should point to a JSON file that conforms to the "ERC-4824 Proposals JSON-LD Schema". The activityLogURI should point to a JSON file that conforms to the "ERC-4824 Activity Log JSON-LD Schema". The governanceURI should point to a flatfile, normatively a .md file. Each of the JSON files named above can be statically-hosted or dynamically-generated.
function daoURI() external view returns (string memory _daoURI);
}The aforementioned DAO JSON-LD Schema is as follows.
{
"@context": "http://www.daostar.org/schemas",
"type": "DAO",
"name": "<name of the DAO>",
"description": "<description>",
"membersURI": "<URI>",
"proposalsURI": "<URI>",
"activityLogURI": "<URI>",
"governanceURI": "<URI>",
"contractsURI": "<URI>"
}This format defines basic DAO information, such as its name and description. It makes DAO information available from a common entry point and easier to understand.
A DAO can implement ERC4824 directly or conform to the standard through a separate external contract.
If an external contract is used, the DAO's primary address must be recorded.
It is also recommended to define a way to update daoURI.
ERC4824 is a set of rules for organizing DAO information and making it readily accessible. Its goal is to support more transparent and efficient DAO operations.
pragma solidity ^0.8.1;
/// @title ERC-4824 Common Interfaces for DAOs
/// @dev See <https://eips.ethereum.org/EIPS/eip-4824>
/// @title ERC-4824: DAO Registration
contract ERC-4824Registration is IERC-4824, AccessControl {
bytes32 public constant MANAGER_ROLE = keccak256("MANAGER_ROLE");
string private _daoURI;
address daoAddress;
constructor() {
daoAddress = address(0xdead);
}
/// @notice Set the initial DAO URI and offer manager role to an address
/// @dev Throws if initialized already
/// @param _daoAddress The primary address for a DAO
/// @param _manager The address of the URI manager
/// @param daoURI_ The URI which will resolve to the governance docs
function initialize(
address _daoAddress,
address _manager,
string memory daoURI_,
address _ERC-4824Index
) external {
initialize(_daoAddress, daoURI_, _ERC-4824Index);
_grantRole(MANAGER_ROLE, _manager);
}
/// @notice Set the initial DAO URI
/// @dev Throws if initialized already
/// @param _daoAddress The primary address for a DAO
/// @param daoURI_ The URI which will resolve to the governance docs
function initialize(
address _daoAddress,
string memory daoURI_,
address _ERC-4824Index
) public {
if (daoAddress != address(0)) revert AlreadyInitialized();
daoAddress = _daoAddress;
_setURI(daoURI_);
_grantRole(DEFAULT_ADMIN_ROLE, _daoAddress);
_grantRole(MANAGER_ROLE, _daoAddress);
ERC-4824Index(_ERC-4824Index).logRegistration(address(this));
}
/// @notice Update the URI for a DAO
/// @dev Throws if not called by dao or manager
/// @param daoURI_ The URI which will resolve to the governance docs
function setURI(string memory daoURI_) public onlyRole(MANAGER_ROLE) {
_setURI(daoURI_);
}
function _setURI(string memory daoURI_) internal {
_daoURI = daoURI_;
emit DAOURIUpdate(daoAddress, daoURI_);
}
function daoURI() external view returns (string memory daoURI_) {
return _daoURI;
}
function supportsInterface(
bytes4 interfaceId
) public view virtual override returns (bool) {
return
interfaceId == type(IERC-4824).interfaceId ||
super.supportsInterface(interfaceId);
}
}MANAGER_ROLE
bytes32 public constant MANAGER_ROLE = keccak256("MANAGER_ROLE");Overview
A constant containing the hash of the string MANAGER_ROLE. Details It is used to identify a particular role. MANAGER_ROLE identifies a role associated with access control and permission management within the contract.
_daoURI
string private _daoURI;Overview
A variable storing the DAO's URI (Uniform Resource Identifier).
Details
It is a private variable for storing the DAO URI, accessible directly only within the contract. The DAO URI may be used to retrieve information about the organization from outside the contract.
daoAddress
address daoAddress;Overview
A variable storing the DAO's address.
Details
It identifies the DAO targeted by DAO-related operations within the contract.
initialize
function initialize(
address _daoAddress,
address _manager,
string memory daoURI_,
address _ERC-4824Index
) externalOverview
Initializes the DAO URI and grants the manager role to a specified address.
Details
This initialization function reverts if the contract has already been initialized. It accepts the DAO address, the manager address, the DAO URI, and the ERC4824Index address. After initialization, the manager role is granted to the specified address.
Arguments
_daoAddress- The initial DAO address.
_manager- The URI manager's address.
daoURI_- The URI resolving to the DAO document.
_ERC-4824Index- The ERC-4824Index address.
initialize
function initialize(
address _daoAddress,
string memory daoURI_,
address _ERC-4824Index
) publicOverview
Initializes the DAO URI.
Details
This initialization function reverts if the contract has already been initialized. It accepts the DAO address, the DAO URI, and the ERC4824Index address. After initialization, the DAO address receives the default administrator role and the manager role. Registration information is also recorded in ERC4824Index.
Arguments
_daoAddress- The initial DAO address.
daoURI_- The URI resolving to the DAO document.
_ERC-4824Index- The ERC-4824Index address.
setURI
function setURI(string memory daoURI_) public onlyRole(MANAGER_ROLE)Overview
Updates the DAO URI.
Details
Only an account holding the manager role can call this function. It sets the specified DAO URI.
Arguments
daoURI_- The URI resolving to the DAO document.
_setURI
function _setURI(string memory daoURI_) internalOverview
Sets the DAO URI.
Details
This function is used internally to set the specified DAO URI. It is not directly callable from outside the contract by default.
Arguments
daoURI_- The URI resolving to the DAO document.
daoURI
function daoURI() external view returns (string memory daoURI_)Overview
Retrieves the current DAO URI.
Details
This function is externally callable and returns the currently configured DAO URI.
Return value
daoURI_- The current DAO URI.
Indexing
ERC4824 is a standard designed to make DAOs easier to discover on the network.
Registering a DAO with an indexer contract offers several benefits.
- Discoverability
- Registration with an indexer contract makes a DAO easier to discover on the network.
- This helps people search for particular DAOs and access their information.
- Data organization and accessibility
- Indexers organize DAO-related information, including members, proposals, and governance documents, and make it easier to access.
- This improves DAO transparency and efficiency.
- Network-wide efficiency
- Organizing DAOs through indexer contracts can improve the efficiency of data processing and management across the network.
- This helps the wider DAO ecosystem operate smoothly.
- Interoperability
- Indexer contracts improve interoperability between different DAOs.
- This can make cooperation and resource sharing between DAOs easier.
- Automation and integration
- Standardized data access points provided by indexer contracts make it easier to automate and integrate processes and tools associated with DAO operations.
Registering with an indexer contract improves discoverability, accessibility, and efficiency, facilitating interaction and integration in the wider ecosystem.
DAO factories and indexer contracts
When a DAO is created by an ERC4824-compatible DAO factory, an indexer contract is used at the time of creation. This facilitates efficient discovery of DAOs on the network.
ERC165-compatible DAOs
If a DAO also conforms to ERC165, the DAO factory can use the indexer contract without special permission.
For more information on ERC165, see the following article.
[ERC165] Checking Whether a Contract Supports an Interface
DAOs without ERC165 support
For a DAO that does not conform to ERC-165, the DAO factory first needs the necessary permission to use the indexer contract and then registers the DAO's information (its daoURI) with it.
Using logRegistration
The logRegistration function allows the DAO itself or another party to register an ERC4824-compatible DAO with the indexer contract.
The procedure is simpler if the DAO also conforms to ERC165.
ERC4824 is a system for discovering DAOs, and the registration procedure varies depending on how a DAO is created and which standards it supports. This facilitates DAO discovery and management.
pragma solidity ^0.8.1;
error ERC-4824InterfaceNotSupported();
contract ERC-4824Index is AccessControl {
using ERC165Checker for address;
bytes32 public constant REGISTRATION_ROLE = keccak256("REGISTRATION_ROLE");
event DAOURIRegistered(address daoAddress);
constructor() {
_grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
_grantRole(REGISTRATION_ROLE, msg.sender);
}
function logRegistrationPermissioned(
address daoAddress
) external onlyRole(REGISTRATION_ROLE) {
emit DAOURIRegistered(daoAddress);
}
function logRegistration(address daoAddress) external {
if (!daoAddress.supportsInterface(type(IERC-4824).interfaceId))
revert ERC-4824InterfaceNotSupported();
emit DAOURIRegistered(daoAddress);
}
}REGISTRATION_ROLE
bytes32 public constant REGISTRATION_ROLE = keccak256("REGISTRATION_ROLE");Overview
A constant identifying the role required to register DAO URIs.
Details
REGISTRATION_ROLE identifies the role required to register a DAO URI.
An account holding this role is authorized to register DAO URIs.
DAOURIRegistered
event DAOURIRegistered(address daoAddress);Overview
An event indicating that a DAO URI has been registered.
Details
The event is emitted when a DAO URI is successfully registered. It can be used to trigger other actions upon registration.
Parameters
daoAddress- The address of the DAO whose URI has been registered.
logRegistrationPermissioned
function logRegistrationPermissioned(address daoAddress) external onlyRole(REGISTRATION_ROLE) {
emit DAOURIRegistered(daoAddress);
}Overview
A function that reports DAO URI registration when called by an account holding a specified role.
Details
Only accounts holding REGISTRATION_ROLE can call this function.
It allows authorized accounts to report that a DAO URI has been successfully registered.
Arguments
daoAddress- The registered DAO's address.
logRegistration
function logRegistration(address daoAddress) external {
if (!daoAddress.supportsInterface(type(IERC-4824).interfaceId))
revert ERC-4824InterfaceNotSupported();
emit DAOURIRegistered(daoAddress);
}Overview
Logs a URI registration.
Details
The function accepts a DAO address and checks whether the DAO supports the IERC4824 interface. It reverts if the interface is not supported. If the interface is supported, it reports that the DAO URI has been registered.
Arguments
daoAddress- The registered DAO's address.
A decentralized autonomous organization (DAO) can use an external registration contract to make its information discoverable by other people and systems. A common registration factory contract is recommended for efficiently registering its information on the network. This registration factory contract works with an indexer, which organizes information and makes it discoverable.
DAOs can use these tools to efficiently announce their existence and activities on the network and make information accessible to others. This facilitates DAO management and tracking.
pragma solidity ^0.8.1;
/// @title ERC-4824 Common Interfaces for DAOs
/// @dev See <https://eips.ethereum.org/EIPS/eip-4824>
contract CloneFactory {
// implementation of eip-1167 - see https://eips.ethereum.org/EIPS/eip-1167
function createClone(address target) internal returns (address result) {
bytes20 targetBytes = bytes20(target);
assembly {
let clone := mload(0x40)
mstore(
clone,
0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000
)
mstore(add(clone, 0x14), targetBytes)
mstore(
add(clone, 0x28),
0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000
)
result := create(0, clone, 0x37)
}
}
}
contract ERC-4824RegistrationSummoner {
event NewRegistration(
address indexed daoAddress,
string daoURI,
address registration
);
address public ERC-4824Index;
address public template; /*Template contract to clone*/
constructor(address _template, address _ERC-4824Index) {
template = _template;
ERC-4824Index = _ERC-4824Index;
}
function registrationAddress(
address by,
bytes32 salt
) external view returns (address addr, bool exists) {
addr = Clones.predictDeterministicAddress(
template,
_saltedSalt(by, salt),
address(this)
);
exists = addr.code.length > 0;
}
function summonRegistration(
bytes32 salt,
string calldata daoURI_,
address manager,
address[] calldata contracts,
bytes[] calldata data
) external returns (address registration, bytes[] memory results) {
registration = Clones.cloneDeterministic(
template,
_saltedSalt(msg.sender, salt)
);
if (manager == address(0)) {
ERC-4824Registration(registration).initialize(
msg.sender,
daoURI_,
ERC-4824Index
);
} else {
ERC-4824Registration(registration).initialize(
msg.sender,
manager,
daoURI_,
ERC-4824Index
);
}
results = _callContracts(contracts, data);
emit NewRegistration(msg.sender, daoURI_, registration);
}
}NewRegistration
event NewRegistration(
address indexed daoAddress,
string daoURI,
address registration
);Overview
An event emitted when a new registration is made.
Details
It is emitted when a new DAO URI is registered. The event records successful URI registration and can be used for tracing and monitoring transactions.
Parameters
daoAddress- The registered DAO's address.
daoURI- The registered DAO URI.
registration- The address that performed registration.
ERC4824Index
address public ERC-4824Index;Overview
A variable holding the ERC4824 index address.
template
address public template; /*Template contract to clone*/Overview
A variable holding the address of the template contract to clone.
registrationAddress
function registrationAddress(
address by,
bytes32 salt
) external view returns (address addr, bool exists)Overview
Retrieves a registration address and whether it exists.
Details
It predicts a registration address from the specified by address and salt value, then checks whether that address exists.
If the predicted registration address has deployed code, exists is set to true.
Arguments
by- The address used to determine the predicted registration address.
salt- The
saltvalue used for address prediction.
- The
Return values
addr- The predicted registration address.
existstrueif the predicted registration address exists, otherwisefalse.
summonRegistration
function summonRegistration(
bytes32 salt,
string calldata daoURI_,
address manager,
address[] calldata contracts,
bytes[] calldata data
) external returns (address registration, bytes[] memory results)Overview
Creates and initializes a registration.
Details
Predicts a new registration using the specified salt, then clones and initializes it.
Initialization includes the DAO URI, the manager address, contract addresses, and data.
After initialization, it returns the new registration address and the results of function execution.
It also emits the NewRegistration event.
Arguments
salt- The
saltvalue used to predict the registration address.
- The
daoURI_- The DAO URI.
manager- The manager address.
address(0)indicates no manager.
- The manager address.
contracts- An array of contract addresses.
data- An array of data.
Return values
registration- The new registration address.
results- An array of byte arrays containing the results of function execution.
Members
The Members JSON-LD Schema is a data format for organizing membership information for decentralized autonomous organizations (DAOs).
A contract following this EIP should provide access to membersURI.
This membersURI points to a JSON document containing information about DAO members.
The JSON document must follow the Members JSON-LD Schema format.
The contract managing the DAO must organize membership information in a consistent format and provide a link (membersURI) through which the information can be accessed.
This makes DAO membership information easier for anyone to discover and understand.
{
"@context": "<http://www.daostar.org/schemas>",
"type": "DAO",
"name": "<name of the DAO>",
"members": [
{
"type": "EthereumAddress",
"id": "<address or other identifier>"
},
{
"type": "EthereumAddress",
"id": "<address or other identifier>"
}
]
}Proposals
The Proposals JSON-LD Schema is a data format for organizing proposal information for decentralized autonomous organizations (DAOs).
A contract following this EIP must provide a link called proposalsURI.
This link points to a JSON document containing proposal information.
The schema includes the following information.
-
Proposal ID format
- On-chain proposals have an identifier combining an address (
CAIP10_ADDRESS) and a proposal number (PROPOSAL_COUNTER). - Off-chain proposals use a similar format, replacing the address portion with an appropriate URI or URL.
- On-chain proposals have an identifier combining an address (
-
JSON document contents
- The document contains the DAO name and a list of proposals.
- Each proposal includes its type, ID, name, a link to its content (
contentURI), status, and call data (operation type, sender and recipient addresses, value, and calldata).
The Proposals JSON-LD Schema organizes DAO proposals and makes them readily accessible.
Contracts using this format must provide a link (proposalsURI) to the proposal information.
This supports more transparent and efficient proposal management.
{
"@context": "http://www.daostar.org/schemas",
"type": "DAO",
"name": "<name of the DAO>",
"proposals": [
{
"type": "proposal",
"id": "<proposal ID>",
"name": "<name or title of proposal>",
"contentURI": "<URI to content or discussion>",
"status": "<status of proposal>",
"calls": [
{
"type": "CallDataEVM",
"operation": "<call or delegate call>",
"from": "<EthereumAddress>",
"to": "<EthereumAddress>",
"value": "<value>",
"data": "<call data>"
}
]
}
]
}Activity log
The Activity Log JSON-LD Schema is a data format for recording the activities of decentralized autonomous organizations (DAOs).
A contract following this EIP provides an activityLogURI linking to a JSON document containing activity log information.
The main contents of the schema are as follows.
- The DAO name and activity log type.
- Details of each activity.
- These include a unique activity ID, the activity type, the associated proposal ID, and the Ethereum address of the associated member.
This format organizes DAO activities, such as creating proposals and voting, and records the members associated with those activities. It makes DAO activities easier to inspect and improves transparency.
The Activity Log JSON-LD Schema provides a structured way to record DAO activities, and a contract implementing it must provide a link to that information (activityLogURI).
This supports more transparent and efficient management of DAO activities.
{
"@context": "<http://www.daostar.org/schemas>",
"type": "DAO",
"name": "<name of the DAO>",
"activities": [
{
"id": "<activity ID>",
"type": "activity",
"proposal": {
"type": "proposal"
"id": "<proposal ID>",
},
"member": {
"type": "EthereumAddress",
"id": "<address or other identifier>"
}
},
],
"activities": [
{
"id": "<activity ID>",
"type": "activity",
"proposal": {
"type": "proposal"
"id": "<proposal ID>",
},
"member": {
"type": "EthereumAddress",
"id": "<address or other identifier>"
}
}
]
}Contracts
{
"@context": "<http://www.daostar.org/schemas>",
"type": "DAO",
"name": "<name of the DAO>",
"contracts": [
{
"type": "EthereumAddress",
"id": "<address or other identifier>",
"name": "<name, e.g. Treasury>",
"description": "<description, e.g. Primary operating treasury for the DAO>"
},
{
"type": "EthereumAddress",
"id": "<address or other identifier>",
"name": "<name, e.g. Governance Token>",
"description": "<description, e.g. ERC20 governance token contract>"
}
{
"type": "EthereumAddress",
"id": "<address or other identifier>",
"name": "<name, e.g. Registraction Contract>",
"description": "<description, e.g. ERC-4824 registration contract>"
}
]
}The Contracts JSON-LD Schema is a data format for organizing information about contracts associated with decentralized autonomous organizations (DAOs).
A contract following this EIP must provide a contractsURI pointing to a JSON document containing information in this format.
The JSON document includes the following information.
- The DAO name and contract type.
- Details of each contract.
- These include an Ethereum address or another identifier (
id), a contract name such as Treasury or Governance Token, and a description such as the DAO's primary operating treasury or its ERC20 governance token contract.
- These include an Ethereum address or another identifier (
The Contracts JSON-LD Schema provides a list of contracts associated with a DAO and their details. This makes it easy to identify the contracts associated with a DAO and access information about them.
Rationale
Under this standard, a decentralized autonomous organization (DAO) consists primarily of two elements: membership and actions.
-
Membership
- A set of addresses representing the DAO's members.
- Membership identifies the addresses belonging to DAO members.
-
Actions
- The various activities a DAO can perform.
- Examples include interacting with other contracts and executing the DAO's own internal functions.
DAO proposals connect membership with actions. Members can express opinions or vote on proposals, and approved proposals can be executed as DAO actions.
Under this standard, a DAO consists of a membership and the activities (contract actions) that its members can initiate. Proposals are decided by members and become DAO actions when executed.
APIs, URLs, and off-chain data
This section explains the functions of DAOs and why they need to expose data outside the blockchain.
DAO functions
DAOs are used for a range of purposes. Examples include interacting with members, recruiting new members, planning activities, providing user interfaces and governance applications (such as Snapshot and Tally), and discovery through platforms such as DeepDAO, Messari, and Etherscan.
Importance of standardized data formats
These activities require data to be published externally. Standardized data formats (API specifications) organized through various URIs can support DAO activities, encourage the development of tools and frameworks across the ecosystem, and enable greater interoperability.
Standardizing on-chain elements
The standard considered standardizing on-chain proposals and IDs but deferred doing so at this stage because the relevant use cases were immature, proposal systems are closely tied to governance, and off-chain and layer-2 voting systems are widely used. A standard URI interface, however, is comparatively easy to adopt and has strong community demand.
The rationale emphasizes the need for DAOs to expose data externally through standardized methods while taking a cautious approach to standardizing on-chain elements.
Members URI
This section discusses different approaches to DAO membership and the importance of an off-chain JSON schema for organizing membership information.
Different approaches to membership
Some DAOs and DAO frameworks, such as Gnosis Safe and Tribute, have explicitly defined on-chain membership lists. Other DAOs, such as Moloch and Compound, base membership on token ownership and require off-chain indexing to determine the current membership.
Off-chain JSON schema
DAOs organize membership information using a JSON schema accessible through membersURI.
This can provide a static copy of on-chain data or describe the combined membership of a DAO consisting of multiple contracts.
The information may also be computed by an external service.
Encouraging schema extensions
Extensions to the Members JSON-LD Schema are encouraged, allowing active and inactive statuses or different membership levels to be represented.
The rationale highlights the importance of an off-chain JSON schema that allows DAOs to organize membership information efficiently and use it in various ways.
Proposals URI
This section discusses proposal information in DAOs and how to organize it.
Importance of proposals
Members use proposals to initiate on-chain actions, such as transferring tokens. In many DAOs, however, off-chain decisions are made on platforms such as Discourse, Discord, and Snapshot. Proposals can serve as signals to administrators or as a means to prepare for subsequent on-chain voting.
Proposal IDs
Each distinct on-chain proposal must have an identifier in the format CAIP10_ADDRESS + "?proposalId=" + PROPOSAL_COUNTER. This identifier must be globally unique.
ContentURI
Many proposals have associated off-chain content, such as a forum post or a description on a voting platform.
Status
Proposals typically have a status, but its meaning depends on the governance system, and there is no shared standard across DAOs. The schema therefore provides a status property with a general text description field.
Execution data
On-chain proposals may include an array field exposing the calldata required for execution. This is useful for simulating proposal execution.
The schema supports proposal information both on-chain and off-chain and organizes proposal IDs, content, status, and execution data. A DAO can use the schema to report on-chain proposals, off-chain proposals, or both.
Activity log URI
The activity log JSON is a format for recording how DAO members interact with proposals. It includes various activities such as creating and submitting proposals, voting on them, and lodging objections.
Other approaches, such as history and interactions, were considered before the activity log JSON format was selected. This allows the relationship between members' activities and proposals to be recorded in more detail, improving transparency and making activity tracking easier.
The activity log JSON records how DAO members interact with proposals and helps people understand DAO activities more clearly.
Governance URI
governanceURI is a link providing information about the rights associated with DAO membership and the proposal mechanism.
Meaning of membership
DAO members may have rights such as voting on proposals, leaving the DAO (ragequit), or vetoing proposals. Many of these rights, however, are exercised through off-chain platforms such as Snapshot.
Using flat files
A flat file (a simple text file) is recommended for describing the rights associated with DAO membership and the proposal mechanism. This is a simpler, more widely adoptable approach than standardizing this information on-chain. Services such as Etherscan can use these files to make DAOs easier to discover and understand.
Choosing the term "governance"
The term governance was chosen because it is widely used in the DAO ecosystem and reflects the common use of governance.md files in open-source projects.
governanceURI links to information about DAO membership and the proposal mechanism, helping make DAO activities transparent and accessible.
Contracts URI
contractsURI is a link providing consolidated information about the contracts used by a DAO. The concept emerged from community discussions about auditing and indexing DAO contracts.
Types of DAO contracts
Some DAOs use frameworks such as OpenZeppelin or Compound Governor to deploy core contracts, voting contracts, and timelock contracts. Other DAOs may use multiple multisignature contracts as treasuries or establish and manage several sub-DAOs.
Purpose of contractsURI
This link provides a common access point for information about the various contracts associated with a DAO. It makes the DAO's contract structure and functionality easier to understand from outside the organization.
Choosing the name
The name contractsURI was chosen after considering alternatives such as contractsRegistry and contractsList.
contractsURI makes information about a DAO's contracts accessible from a common entry point, improving transparency and facilitating external auditing and understanding.
Why JSON-LD
This section explains why JSON-LD (JSON for Linked Data) was chosen as the data format for DAOs.
Supporting different identification methods
DAOs may represent members not only by Ethereum addresses but also by addresses on other blockchains or other identifiers. JSON-LD was chosen to accommodate these different identification methods.
Multichain compatibility
The format anticipates future use in multichain environments. JSON-LD is suited to this purpose because it can specify the context and type of an address.
Combining data from multiple DAOs
Large organizations may link multiple DAOs to the same URI and use it as a data access point from several contracts or services. JSON-LD is suited to this use case because the data is easy to extend and manage.
JSON-LD was chosen for its flexibility and extensibility in supporting identifiers other than Ethereum addresses, multichain environments, and consolidated data from multiple DAOs. This makes DAO data management more efficient and flexible.
Community consensus
This section describes how the initial DAO standard proposal was developed.
Development process
The proposal was developed at the DAOstar One roundtable, which included representatives from EVM-based DAO frameworks such as Aragon, Compound, and DAOstack, DAO tooling developers, and several major DAOs.
Acknowledgments
The proposal expresses thanks to numerous contributors, particularly Auryn Macmillan, Fabien from Snapshot, and Selim Imoberdorf.
Plans at the time
The authors expected to receive additional feedback at in-person events at Schelling Point and ETHDenver in 2022, and during a series of community calls scheduled for early 2022.
The proposal was developed through input from many specialists and was intended to evolve with continued community feedback.
Backwards compatibility
Impact on existing contracts
Existing contracts that do not adopt the new standard are unaffected. Existing DAOs can therefore continue operating without adopting it.
Adopting the new standard
DAOs that want to adopt the standard without upgrading or migrating existing contracts can use an external registration contract. This allows them to conform to the standard while retaining their existing contracts.
Adoption is optional, and existing DAOs can conform through external registration contracts without modifying their existing contracts.
Security considerations
The standard defines an interface for DAO URIs (Uniform Resource Identifiers), but does not prescribe rules for setting URIs or preparing data. In other words, the standard leaves URI configuration and data preparation to implementers, who should consider the following.
Updating data in accordance with the governance model
Developers must consider how to update data in a manner consistent with the DAO's governance model. In particular, the data referenced by the URIs should be updated according to the DAO's decision-making processes and rules.
Minimizing reliance on centralized service providers
It is important to minimize reliance on centralized service providers when keeping data current. Avoid excessive dependence on centralized services for updating or retrieving data.
Data-indexing services that consume data returned from URIs must also exercise caution. If the data returned by a URI includes executable code, that code might be intended to retrieve current membership, proposal, or activity log information but could also perform unrelated tasks.
The proposed standard provides URI interfaces and emphasizes that developers must determine how to configure URIs and update data. It also highlights the need to consider security and centralization risks when consuming the data.
References
Joshua Tan (@thelastjosh), Isaac Patka (@ipatka), Ido Gershtein ido@daostack.io, Eyal Eithcowich eyal@deepdao.io, Michael Zargham (@mzargham), Sam Furter (@nivida), "ERC-4824: Common Interfaces for DAOs [DRAFT]," Ethereum Improvement Proposals, no. 4824, February 2022. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-4824.
Conclusion
This article examined ERC4824, a standard proposing common DAO interfaces that connect on-chain and off-chain information. I hope it was useful.

