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 ERC-3000, a proposed mechanism for scheduling, executing, challenging, and resolving off-chain-approved proposals on-chain.

This article translates, summarizes, and expands on the following specification.

More EIP explainers:

Overview

ERC-3000 provides a mechanism for scheduling, executing, and challenging off-chain-approved actions on-chain. It follows an optimistic governance model: approved actions are provisionally treated as valid unless challenged through the applicable process.

The specification defines six entry-point functions while leaving flexibility in the challenge and response mechanisms. Developers can choose the dispute-resolution mechanism appropriate to their application.

Motivation

Much governance activity, including voting and consensus building, happens off-chain. Executing its outcomes on-chain requires mechanisms that provide transparency and security.

ERC-3000 aims to provide a way to execute off-chain-agreed actions securely on-chain. Inspired by challengeable execution models such as optimistic rollups, it allows alternative resolution methods, including deterministic verification. It is designed to support dynamic replacement of components while the governance system operates.

This flexibility aims to accommodate future technical and operational changes.

Specification

Data structures

ERC3000Data.sol
library ERC3000Data {
    struct Container {
        Payload payload;
        Config config;
    }

    struct Payload {
        uint256 nonce;
        uint256 executionTime;
        address submitter;
        IERC3000Executor executor;
        Action[] actions;
        bytes proof;
    }

    struct Action {
        address to;
        uint256 value;
        bytes data;
    }

    struct Config {
        uint256 executionDelay;
        Collateral scheduleDeposit;
        Collateral challengeDeposit;
        Collateral vetoDeposit;
        address resolver;
        bytes rules;
    }

    struct Collateral {
        address token;
        uint256 amount;
    }
}

Container

javascript
struct Container {
    Payload payload;
    Config config;
}

Combines the Payload and Config structures into a single container. It is the basic unit for scheduling, executing, and challenging an off-chain-approved governance proposal on-chain.

Fields

  • payload — the execution content.
  • config — the execution conditions.

Payload

javascript
struct Payload {
    uint256 nonce;
    uint256 executionTime;
    address submitter;
    IERC3000Executor executor;
    Action[] actions;
    bytes proof;
}

Contains the core governance request, including its unique nonce, submitter, execution time, actions, and external verification data such as a Merkle proof.

Fields

  • nonce — a number distinguishing the proposal.
  • executionTime — the block timestamp at which execution becomes possible.
  • submitter — the proposal submitter's address.
  • executor — the contract responsible for execution.
  • actions — the array of actions to execute.
  • proof — data supporting the validity of the proposal.

Action

javascript
struct Action {
    address to;
    uint256 value;
    bytes data;
}

Represents an on-chain action such as a transfer or function call. Multiple actions can be combined in a single Payload.

Fields

  • to — the target contract or EOA.
  • value — the native ETH amount sent with the action.
  • data — bytes used for a function call or other operation.

Config

javascript
struct Config {
    uint256 executionDelay;
    Collateral scheduleDeposit;
    Collateral challengeDeposit;
    Collateral vetoDeposit;
    address resolver;
    bytes rules;
}

Defines execution conditions and control logic, including delays, collateral, a dispute resolver, and governance rules.

Fields

  • executionDelay — the minimum time between scheduling and execution, in seconds.
  • scheduleDeposit — collateral required to schedule a proposal.
  • challengeDeposit — collateral required to challenge a proposal.
  • vetoDeposit — collateral required to veto a proposal.
  • resolver — the contract responsible for resolving disputes.
  • rules — bytes defining governance rules or validation conditions.

Collateral

javascript
struct Collateral {
    address token;
    uint256 amount;
}

Represents the stake required during governance phases, intended to deter proposal or challenge spam. The structure describes a token address and amount, with ERC-20 collateral in mind.

Fields

  • token — the collateral token address.
  • amount — the required token quantity.

Interface

IERC3000.sol
abstract contract IERC3000 {
    /**
     * @notice Schedules an action for execution, allowing for challenges and vetos on a defined time window
     * @param container A Container struct holding both the paylaod being scheduled for execution and
       the current configuration of the system
     */
    function schedule(ERC3000Data.Container memory container) virtual public returns (bytes32 containerHash);
    event Scheduled(bytes32 indexed containerHash, ERC3000Data.Payload payload, ERC3000Data.Collateral collateral);

    /**
     * @notice Executes an action after its execution delayed has passed and its state hasn't been altered by a challenge or veto
     * @param container A ERC3000Data.Container struct holding both the paylaod being scheduled for execution and
       the current configuration of the system
     * should be a MUST payload.executor.exec(payload.actions)
     */
    function execute(ERC3000Data.Container memory container) virtual public returns (bytes[] memory execResults);
    event Executed(bytes32 indexed containerHash, address indexed actor, bytes[] execResults);

    /**
     * @notice Challenge a container in case its scheduling is illegal as per Config.rules. Pulls collateral and dispute fees from sender into contract
     * @param container A ERC3000Data.Container struct holding both the paylaod being scheduled for execution and
       the current configuration of the system
     * @param reason Hint for case reviewers as to why the scheduled container is illegal
     */
    function challenge(ERC3000Data.Container memory container, bytes memory reason) virtual public returns (uint256 resolverId);
    event Challenged(bytes32 indexed containerHash, address indexed actor, bytes reason, uint256 resolverId, ERC3000Data.Collateral collateral);

    /**
     * @notice Apply arbitrator's ruling over a challenge once it has come to a final ruling
     * @param container A ERC3000Data.Container struct holding both the paylaod being scheduled for execution and
       the current configuration of the system
     * @param resolverId disputeId in the arbitrator in which the dispute over the container was created
     */
    function resolve(ERC3000Data.Container memory container, uint256 resolverId) virtual public returns (bytes[] memory execResults);
    event Resolved(bytes32 indexed containerHash, address indexed actor, bool approved);

    /**
     * @dev OPTIONAL
     * @notice Apply arbitrator's ruling over a challenge once it has come to a final ruling
     * @param payloadHash Hash of the payload being vetoed
     * @param config A ERC3000Data.Config struct holding the config attached to the payload being vetoed
     */
    function veto(bytes32 payloadHash, ERC3000Data.Config memory config, bytes memory reason) virtual public;
    event Vetoed(bytes32 indexed containerHash, address indexed actor, bytes reason, ERC3000Data.Collateral collateral);

    /**
     * @dev OPTIONAL: implementer might choose not to implement (initial Configured event MUST be emitted)
     * @notice Apply a new configuration for all *new* containers to be scheduled
     * @param config A ERC3000Data.Config struct holding all the new params that will control the queue
     */
    function configure(ERC3000Data.Config memory config) virtual public returns (bytes32 configHash);
    event Configured(bytes32 indexed containerHash, address indexed actor, ERC3000Data.Config config);
}

schedule

javascript
function schedule(ERC3000Data.Container memory container) virtual public returns (bytes32 containerHash);

Schedules a governance proposal on-chain. An execution delay provides an opportunity for challenges or vetoes.

Parameters

  • container — the Payload and its configuration.

Returns

  • containerHash — the proposal container hash, used in events and subsequent operations.

Scheduled

javascript
event Scheduled(bytes32 indexed containerHash, ERC3000Data.Payload payload, ERC3000Data.Collateral collateral);

Emitted when schedule succeeds, reporting the proposal and required collateral.

Parameters

  • containerHash — the proposal container hash.
  • payload — the execution content.
  • collateral — the scheduling collateral.

execute

javascript
function execute(ERC3000Data.Container memory container) virtual public returns (bytes[] memory execResults);

Executes a scheduled proposal after its execution time, provided it has not been challenged or vetoed in a way that prevents execution. Execution is delegated to payload.executor.exec(payload.actions).

Parameters

  • container — the proposal and configuration.

Returns

  • execResults — the array of bytes containing action execution results.

Executed

javascript
event Executed(bytes32 indexed containerHash, address indexed actor, bytes[] execResults);

Emitted when a governance proposal has been executed.

Parameters

  • containerHash — the proposal hash.
  • actor — the address that executed the proposal.
  • execResults — the array of execution results.

challenge

javascript
function challenge(ERC3000Data.Container memory container, bytes memory reason) virtual public returns (uint256 resolverId);

Challenges a potentially invalid proposal by posting collateral for subsequent adjudication by a resolver.

Parameters

  • container — the challenged proposal.
  • reason — a hint describing the reason for the challenge.

Returns

  • resolverId — the dispute identifier assigned by the resolver.

Challenged

javascript
event Challenged(bytes32 indexed containerHash, address indexed actor, bytes reason, uint256 resolverId, ERC3000Data.Collateral collateral);

Emitted when a proposal is challenged, recording the reason and collateral information.

Parameters

  • containerHash — the proposal hash.
  • actor — the challenger address.
  • reason — the challenge reason or hint.
  • resolverId — the dispute ID.
  • collateral — the collateral posted for the challenge.

resolve

javascript
function resolve(ERC3000Data.Container memory container, uint256 resolverId) virtual public returns (bytes[] memory execResults);

Applies the resolver's final decision to a challenged proposal. If the proposal is found valid, its actions are executed.

Parameters

  • container — the proposal being resolved.
  • resolverId — the resolver's dispute ID.

Returns

  • execResults — execution results when the proposal is approved.

Resolved

javascript
event Resolved(bytes32 indexed containerHash, address indexed actor, bool approved);

Emitted when a final decision is applied. The approved flag indicates whether the proposal was approved.

Parameters

  • containerHash — the proposal hash.
  • actor — the address applying the decision.
  • approved — whether the proposal was approved.

veto

javascript
function veto(bytes32 payloadHash, ERC3000Data.Config memory config, bytes memory reason) virtual public;

An optional mechanism, intended for roles such as guardians, for rejecting a proposal without proceeding through the challenge process. The payload hash and configuration identify the target.

Parameters

  • payloadHash — the hash of the Payload to veto.
  • config — the associated configuration.
  • reason — the reason for vetoing.

Vetoed

javascript
event Vetoed(bytes32 indexed containerHash, address indexed actor, bytes reason, ERC3000Data.Collateral collateral);

Emitted when a proposal is vetoed, recording the actor, reason, and collateral.

Parameters

  • containerHash — the vetoed proposal hash.
  • actor — the address performing the veto.
  • reason — the veto reason.
  • collateral — the collateral used.

configure

javascript
function configure(ERC3000Data.Config memory config) virtual public returns (bytes32 configHash);

Applies a new Config to subsequent proposals without changing the configuration of existing proposals.

Parameters

  • config — the new configuration.

Returns

  • configHash — the new configuration hash.

Configured

javascript
event Configured(bytes32 indexed containerHash, address indexed actor, ERC3000Data.Config config);

Emitted when configure changes the configuration.

Parameters

  • containerHash — the container hash associated with the configuration event, as described in the original article.
  • actor — the address applying the configuration.
  • config — the newly applied configuration.

Additional explanation

A central design principle is that ERC-3000 does not prescribe a single implementation of the dispute resolver.

Generic function and field names allow different resolution mechanisms to be introduced or replaced without redesigning the whole protocol.

The standard is intended as a shared public-good foundation rather than infrastructure tied to the interests of a particular company or project. Open governance infrastructure can build on this common interface.

Security

One feature of ERC-3000 is the flexibility to configure different resolvers for different proposals. This allows implementations to balance security, finality time, implementation complexity, and external dependencies according to their use case.

Using a subjective oracle as the resolver

  • Advantages
    • Flexible and potentially rapid adjudication based on social consensus or reputation.
  • Disadvantages
    • Security depends heavily on the cryptoeconomic design, such as an Aragon Court-style mechanism. Dishonesty and collusion remain possible.

Using a deterministic resolver

  • Advantages
    • Consistent decision criteria, with results that others can reproduce.
  • Disadvantages
    • Implementation can become complex, increasing the risk of bugs.
    • If verification relies on an evolving off-chain protocol, maintaining compatibility with changes may be difficult.

The choice of resolver therefore requires careful consideration of security, finality speed, and maintainability. ERC-3000 leaves that choice to implementers according to project requirements.

Reference implementations

Citation

Jorge Izquierdo (@izqui), Fabien Marino (@bonustrack), "ERC-3000: Optimistic enactment governance standard [DRAFT]," Ethereum Improvement Proposals, no. 3000, September 2020. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-3000.

Conclusion

ERC-3000 proposes interfaces for scheduling, executing, challenging, and resolving off-chain-approved governance proposals on-chain.

If you have questions, feel free to contact me on Twitter.

Twitter @cardene777

I also publish material on the following platforms.

https://chaldene.net/