{"eip":3000,"title":"Optimistic enactment governance standard","description":"Interface for scheduling, executing and challenging contract executions based on off-chain approval","authors":["Jorge Izquierdo (@izqui)","Fabien Marino (@bonustrack)"],"status":"Stagnant","type":"Standards Track","category":"ERC","created":"2020-09-24","discussionsTo":"https://github.com/ethereum/EIPs/issues/3042","repo":"ERCs","label":"ERC-3000","officialUrl":"https://eips.ethereum.org/EIPS/eip-3000","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-3000.md","url":"https://eips.huatuo.xyz/eip-3000/","tldr":{"en":"A stagnant ERC defining an interface for optimistic governance: decisions made off-chain are scheduled on-chain, can be challenged or vetoed during a delay, and execute automatically if nobody objects.","ja":"楽観的ガバナンスのインターフェースを定める、停滞中の ERC。オフチェーンで下された決定をオンチェーンでスケジュールし、遅延期間中に異議申し立てや拒否権の行使ができ、誰も異議を唱えなければ自動的に実行される。","ko":"낙관적 거버넌스를 위한 인터페이스를 정의하는, 정체된 ERC. 오프체인에서 내린 결정을 온체인에 예약하고, 지연 기간 동안 이의를 제기하거나 거부할 수 있으며, 아무도 반대하지 않으면 자동으로 실행된다.","zh":"一项已停滞的 ERC：定义乐观治理的接口。链下做出的决定被安排到链上，在延迟期内可被质疑或否决，若无人反对则自动执行。"},"tags":["governance","dao","optimistic","erc","stagnant"],"explainers":{"en":{"lang":"en","tldr":"A stagnant ERC defining an interface for optimistic governance: decisions made off-chain are scheduled on-chain, can be challenged or vetoed during a delay, and execute automatically if nobody objects.","tags":["governance","dao","optimistic","erc","stagnant"],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-3000/","markdown":"## What problem does it solve?\n\nOn-chain voting is expensive and slow: every voter pays gas, and every proposal needs a full vote even when nobody disagrees. Off-chain voting (signed votes collected by a service such as Snapshot) is cheap, but its result cannot move funds or call contracts by itself. Someone has to execute it, and you need a way to stop that someone from executing something that was never approved.\n\nERC-3000 standardises the \"optimistic\" middle ground: anyone posts the decision on-chain with a deposit, it waits for a delay, and if nobody challenges it in that window it can be executed. Disputes go to a configurable **resolver**.\n\n## How it works\n\nEverything revolves around a `Container`, which pairs a `Payload` with the `Config` in force:\n\n- **Payload**: `nonce`, `executionTime`, `submitter`, `executor`, a list of `Action { to, value, data }`, and an off-chain `proof` (for example a link or hash of the vote).\n- **Config**: `executionDelay`, deposits for scheduling, challenging and vetoing (`Collateral { token, amount }`), the `resolver` address, and free-form `rules`.\n\nLifecycle:\n\n1. `schedule(container)` – submitter posts the payload and deposit; emits `Scheduled`.\n2. During the delay, anyone may `challenge(container, reason)`, posting collateral. The dispute is raised with the resolver; emits `Challenged`.\n3. If unchallenged after the delay, `execute(container)` calls `executor.exec(actions)`; emits `Executed`.\n4. If challenged, `resolve(container, resolverId)` applies the resolver's ruling and executes only if approved; emits `Resolved`.\n5. Optional: `veto(...)` and `configure(config)` (if `configure` is not implemented, an initial `Configured` event must still be emitted).\n\nThe standard is deliberately neutral about the resolver. It could be a subjective oracle such as Aragon Court or a deterministic fraud-proof system.\n\n## Sample code\n\nScheduling a payload from TypeScript with ethers v6 (`queue` is an ERC-3000 contract; ABI trimmed):\n\n```ts\nimport { Contract, Wallet, JsonRpcProvider } from \"ethers\";\n\nconst abi = [\n  \"function schedule(((uint256 nonce,uint256 executionTime,address submitter,address executor,(address to,uint256 value,bytes data)[] actions,bytes proof) payload,(uint256 executionDelay,(address token,uint256 amount) scheduleDeposit,(address token,uint256 amount) challengeDeposit,(address token,uint256 amount) vetoDeposit,address resolver,bytes rules) config) container) returns (bytes32)\",\n];\nconst signer = new Wallet(process.env.PRIVATE_KEY!, new JsonRpcProvider(process.env.RPC_URL));\nconst queue = new Contract(process.env.QUEUE!, abi, signer);\n\nconst config = await loadCurrentConfig(); // your helper: must match the queue's active config\nconst now = Math.floor(Date.now() / 1000);\nconst payload = {\n  nonce: 1n,\n  executionTime: BigInt(now) + config.executionDelay,\n  submitter: await signer.getAddress(),\n  executor: process.env.EXECUTOR!,\n  actions: [{ to: process.env.TREASURY!, value: 0n, data: \"0x\" }],\n  proof: \"0x\", // e.g. encoded reference to the off-chain vote\n};\nawait (await queue.schedule({ payload, config })).wait();\n```\n\n## Things to know\n\n- Status: **Stagnant**. Error/revert reasons and several names were explicitly left open by the authors.\n- The spec lists Aragon Govern as an implementation. Check the current state of any implementation before relying on it.\n- Security depends heavily on the resolver choice: a subjective oracle relies on crypto-economic incentives, while a deterministic resolver is complex and bug-prone.\n- Short delays or low challenge deposits make it easier to push through a malicious payload unnoticed; set them with your community's monitoring capacity in mind.\n"},"ja":{"lang":"ja","tldr":"楽観的ガバナンスのインターフェースを定める、停滞中の ERC。オフチェーンで下された決定をオンチェーンでスケジュールし、遅延期間中に異議申し立てや拒否権の行使ができ、誰も異議を唱えなければ自動的に実行される。","tags":["governance","dao","optimistic","erc","stagnant"],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-3000/","markdown":"## 何を解決するのか\n\nオンチェーン投票は高コストで遅いものです。投票者全員がガス代を払い、誰も反対しなくても、すべての提案に完全な投票が必要です。オフチェーン投票（Snapshot のようなサービスが集める署名付き投票）は安価ですが、その結果だけでは資金を動かしたりコントラクトを呼び出したりできません。誰かがそれを実行する必要があり、その誰かが、承認されていないことを実行するのを止める手段が必要になります。\n\nERC-3000 は、この「楽観的」な中間案を標準化します。誰でも決定を、デポジットを添えてオンチェーンに投稿でき、遅延期間を待ち、その期間内に誰も異議を唱えなければ実行できます。紛争は、設定可能な**リゾルバー**に持ち込まれます。\n\n## 仕組み\n\nすべては `Container` を中心に回ります。これは `Payload` と、有効な `Config` を組にしたものです。\n\n- **Payload**: `nonce`、`executionTime`、`submitter`、`executor`、`Action { to, value, data }` のリスト、およびオフチェーンの `proof`（たとえば投票へのリンクやハッシュ）。\n- **Config**: `executionDelay`、スケジュール・異議申し立て・拒否権のそれぞれのデポジット（`Collateral { token, amount }`）、`resolver` のアドレス、および自由形式の `rules`。\n\nライフサイクル:\n\n1. `schedule(container)` – 提出者がペイロードとデポジットを投稿します。`Scheduled` を発行します。\n2. 遅延期間中、誰でも担保を差し入れて `challenge(container, reason)` を呼べます。紛争はリゾルバーに提起されます。`Challenged` を発行します。\n3. 遅延後も異議が出なければ、`execute(container)` が `executor.exec(actions)` を呼びます。`Executed` を発行します。\n4. 異議が出た場合、`resolve(container, resolverId)` がリゾルバーの裁定を適用し、承認された場合にのみ実行します。`Resolved` を発行します。\n5. 任意: `veto(...)` と `configure(config)`（`configure` が実装されていなくても、最初の `Configured` イベントは発行しなければなりません）。\n\n標準は、リゾルバーについて意図的に中立です。Aragon Court のような主観的なオラクルでも、決定論的な不正証明システムでもかまいません。\n\n## サンプルコード\n\nTypeScript と ethers v6 でペイロードをスケジュールする例（`queue` は ERC-3000 コントラクトで、ABI は省略版）:\n\n```ts\nimport { Contract, Wallet, JsonRpcProvider } from \"ethers\";\n\nconst abi = [\n  \"function schedule(((uint256 nonce,uint256 executionTime,address submitter,address executor,(address to,uint256 value,bytes data)[] actions,bytes proof) payload,(uint256 executionDelay,(address token,uint256 amount) scheduleDeposit,(address token,uint256 amount) challengeDeposit,(address token,uint256 amount) vetoDeposit,address resolver,bytes rules) config) container) returns (bytes32)\",\n];\nconst signer = new Wallet(process.env.PRIVATE_KEY!, new JsonRpcProvider(process.env.RPC_URL));\nconst queue = new Contract(process.env.QUEUE!, abi, signer);\n\nconst config = await loadCurrentConfig(); // your helper: must match the queue's active config\nconst now = Math.floor(Date.now() / 1000);\nconst payload = {\n  nonce: 1n,\n  executionTime: BigInt(now) + config.executionDelay,\n  submitter: await signer.getAddress(),\n  executor: process.env.EXECUTOR!,\n  actions: [{ to: process.env.TREASURY!, value: 0n, data: \"0x\" }],\n  proof: \"0x\", // e.g. encoded reference to the off-chain vote\n};\nawait (await queue.schedule({ payload, config })).wait();\n```\n\n## 知っておくべきこと\n\n- ステータス: **Stagnant**。エラー／リバートの理由と、いくつかの名前は、著者によって意図的に未決定のままにされました。\n- 仕様は実装として Aragon Govern を挙げています。いずれの実装も、頼る前に現在の状態を確認してください。\n- セキュリティはリゾルバーの選択に大きく左右されます。主観的なオラクルは暗号経済的なインセンティブに依存し、決定論的なリゾルバーは複雑でバグが入りやすくなります。\n- 遅延が短かったり、異議申し立てのデポジットが低かったりすると、悪意のあるペイロードが気づかれずに通りやすくなります。コミュニティの監視能力を考慮して設定してください。\n"},"ko":{"lang":"ko","tldr":"낙관적 거버넌스를 위한 인터페이스를 정의하는, 정체된 ERC. 오프체인에서 내린 결정을 온체인에 예약하고, 지연 기간 동안 이의를 제기하거나 거부할 수 있으며, 아무도 반대하지 않으면 자동으로 실행된다.","tags":["governance","dao","optimistic","erc","stagnant"],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-3000/","markdown":"## 어떤 문제를 해결하나요?\n\n온체인 투표는 비싸고 느립니다. 투표자마다 가스비를 내야 하고, 아무도 반대하지 않아도 모든 제안에 완전한 투표가 필요합니다. 오프체인 투표(Snapshot 같은 서비스가 모으는 서명된 투표)는 저렴하지만, 그 결과만으로는 자금을 옮기거나 컨트랙트를 호출할 수 없습니다. 누군가가 실행해야 하고, 그 누군가가 승인된 적 없는 것을 실행하지 못하도록 막을 방법이 필요합니다.\n\nERC-3000은 이 \"낙관적\" 절충안을 표준화합니다. 누구나 결정을 보증금과 함께 온체인에 올리고, 지연 기간을 기다리며, 그 기간에 아무도 이의를 제기하지 않으면 실행할 수 있습니다. 분쟁은 설정 가능한 **리졸버**로 넘어갑니다.\n\n## 어떻게 동작하나요?\n\n모든 것은 `Container`를 중심으로 돌아갑니다. `Container`는 `Payload`와 적용 중인 `Config`를 짝지은 것입니다.\n\n- **Payload**: `nonce`, `executionTime`, `submitter`, `executor`, `Action { to, value, data }` 목록, 그리고 오프체인 `proof`(예: 투표의 링크나 해시).\n- **Config**: `executionDelay`, 예약·이의 제기·거부를 위한 보증금(`Collateral { token, amount }`), `resolver` 주소, 자유 형식의 `rules`.\n\n수명 주기:\n\n1. `schedule(container)` – 제출자가 페이로드와 보증금을 올립니다. `Scheduled`를 발생시킵니다.\n2. 지연 기간 동안 누구나 담보를 걸고 `challenge(container, reason)`을 호출할 수 있습니다. 분쟁은 리졸버에 제기됩니다. `Challenged`를 발생시킵니다.\n3. 지연 후에도 이의가 없으면 `execute(container)`가 `executor.exec(actions)`를 호출합니다. `Executed`를 발생시킵니다.\n4. 이의가 제기되었다면 `resolve(container, resolverId)`가 리졸버의 판정을 적용하고, 승인된 경우에만 실행합니다. `Resolved`를 발생시킵니다.\n5. 선택: `veto(...)`와 `configure(config)`(`configure`가 구현되지 않았더라도 초기 `Configured` 이벤트는 반드시 발생시켜야 합니다).\n\n표준은 리졸버에 대해 의도적으로 중립적입니다. Aragon Court 같은 주관적 오라클일 수도 있고, 결정론적인 사기 증명 시스템일 수도 있습니다.\n\n## 샘플 코드\n\nTypeScript와 ethers v6로 페이로드 예약하기(`queue`는 ERC-3000 컨트랙트이며 ABI는 줄였습니다):\n\n```ts\nimport { Contract, Wallet, JsonRpcProvider } from \"ethers\";\n\nconst abi = [\n  \"function schedule(((uint256 nonce,uint256 executionTime,address submitter,address executor,(address to,uint256 value,bytes data)[] actions,bytes proof) payload,(uint256 executionDelay,(address token,uint256 amount) scheduleDeposit,(address token,uint256 amount) challengeDeposit,(address token,uint256 amount) vetoDeposit,address resolver,bytes rules) config) container) returns (bytes32)\",\n];\nconst signer = new Wallet(process.env.PRIVATE_KEY!, new JsonRpcProvider(process.env.RPC_URL));\nconst queue = new Contract(process.env.QUEUE!, abi, signer);\n\nconst config = await loadCurrentConfig(); // your helper: must match the queue's active config\nconst now = Math.floor(Date.now() / 1000);\nconst payload = {\n  nonce: 1n,\n  executionTime: BigInt(now) + config.executionDelay,\n  submitter: await signer.getAddress(),\n  executor: process.env.EXECUTOR!,\n  actions: [{ to: process.env.TREASURY!, value: 0n, data: \"0x\" }],\n  proof: \"0x\", // e.g. encoded reference to the off-chain vote\n};\nawait (await queue.schedule({ payload, config })).wait();\n```\n\n## 알아둘 점\n\n- 상태: **Stagnant**. 오류/리버트 사유와 일부 이름은 저자들이 의도적으로 미정으로 남겨 두었습니다.\n- 명세는 구현체로 Aragon Govern을 나열합니다. 어떤 구현이든 의존하기 전에 현재 상태를 확인하세요.\n- 보안은 리졸버 선택에 크게 좌우됩니다. 주관적 오라클은 암호경제학적 인센티브에 의존하고, 결정론적 리졸버는 복잡해서 버그가 생기기 쉽습니다.\n- 지연이 짧거나 이의 제기 보증금이 낮으면 악의적인 페이로드가 눈에 띄지 않고 통과하기 쉬워집니다. 커뮤니티의 모니터링 역량을 고려해 설정하세요.\n"},"zh":{"lang":"zh","tldr":"一项已停滞的 ERC：定义乐观治理的接口。链下做出的决定被安排到链上，在延迟期内可被质疑或否决，若无人反对则自动执行。","tags":["governance","dao","optimistic","erc","stagnant"],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-3000/","markdown":"## 它解决什么问题？\n\n链上投票既昂贵又缓慢：每个投票者都要支付 gas，而且即使没有人有异议，每个提案也都需要完整的投票。链下投票（由 Snapshot 之类的服务收集签名投票）很便宜，但其结果本身无法转移资金或调用合约。必须有人来执行它，同时还需要办法阻止这个人去执行从未获批准的事项。\n\nERC-3000 标准化了这种\"乐观\"的折中方案：任何人都可以附带押金把决定发布到链上，等待一段延迟，如果在这个窗口内无人质疑，就可以执行。争议交由可配置的**解析者（resolver）**处理。\n\n## 它如何运作\n\n一切都围绕 `Container` 展开，它把 `Payload` 与当前生效的 `Config` 配成一对：\n\n- **Payload**：`nonce`、`executionTime`、`submitter`、`executor`、`Action { to, value, data }` 列表，以及链下的 `proof`（例如投票的链接或哈希）。\n- **Config**：`executionDelay`、用于安排、质疑和否决的押金（`Collateral { token, amount }`）、`resolver` 地址，以及自由格式的 `rules`。\n\n生命周期：\n\n1. `schedule(container)` – 提交者发布载荷和押金；触发 `Scheduled`。\n2. 延迟期间，任何人都可以提交抵押并调用 `challenge(container, reason)`。争议被提交给解析者；触发 `Challenged`。\n3. 如果延迟结束后无人质疑，`execute(container)` 调用 `executor.exec(actions)`；触发 `Executed`。\n4. 如果被质疑，`resolve(container, resolverId)` 应用解析者的裁决，仅在获批时才执行；触发 `Resolved`。\n5. 可选：`veto(...)` 和 `configure(config)`（即使没有实现 `configure`，也必须触发一次初始的 `Configured` 事件）。\n\n标准对解析者刻意保持中立。它可以是 Aragon Court 这样的主观预言机，也可以是确定性的欺诈证明系统。\n\n## 示例代码\n\n用 TypeScript 和 ethers v6 安排一个载荷（`queue` 是一个 ERC-3000 合约；ABI 经过精简）：\n\n```ts\nimport { Contract, Wallet, JsonRpcProvider } from \"ethers\";\n\nconst abi = [\n  \"function schedule(((uint256 nonce,uint256 executionTime,address submitter,address executor,(address to,uint256 value,bytes data)[] actions,bytes proof) payload,(uint256 executionDelay,(address token,uint256 amount) scheduleDeposit,(address token,uint256 amount) challengeDeposit,(address token,uint256 amount) vetoDeposit,address resolver,bytes rules) config) container) returns (bytes32)\",\n];\nconst signer = new Wallet(process.env.PRIVATE_KEY!, new JsonRpcProvider(process.env.RPC_URL));\nconst queue = new Contract(process.env.QUEUE!, abi, signer);\n\nconst config = await loadCurrentConfig(); // your helper: must match the queue's active config\nconst now = Math.floor(Date.now() / 1000);\nconst payload = {\n  nonce: 1n,\n  executionTime: BigInt(now) + config.executionDelay,\n  submitter: await signer.getAddress(),\n  executor: process.env.EXECUTOR!,\n  actions: [{ to: process.env.TREASURY!, value: 0n, data: \"0x\" }],\n  proof: \"0x\", // e.g. encoded reference to the off-chain vote\n};\nawait (await queue.schedule({ payload, config })).wait();\n```\n\n## 需要注意\n\n- 状态：**Stagnant**。错误/回滚原因以及若干名称被作者明确留作待定。\n- 规范把 Aragon Govern 列为一种实现。在依赖任何实现之前，请先查看其当前状态。\n- 安全性在很大程度上取决于解析者的选择：主观预言机依赖密码经济学激励，而确定性解析者则复杂且容易出现漏洞。\n- 延迟过短或质疑押金过低，会让恶意载荷更容易在不被察觉的情况下通过；请结合你所在社区的监控能力来设置。\n"}}}
