{"eip":1129,"title":"Standardised DAPP announcements","description":"Standardisation of announcements in DAPPs and services on Ethereum network. This ERC provides proposed mechanics to increase the quality of service provided by DAPP developers and service providers, by setting a framework for announcements.","authors":["Jan Turk (@ThunderDeliverer)"],"status":"Stagnant","type":"Standards Track","category":"ERC","created":"2018-05-31","discussionsTo":"https://ethereum-magicians.org/t/eip-sda-standardised-dapp-announcements/508?u=thunderdeliverer","repo":"ERCs","label":"ERC-1129","officialUrl":"https://eips.ethereum.org/EIPS/eip-1129","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-1129.md","url":"https://eips.huatuo.xyz/eip-1129/","tldr":{"en":"A simple contract interface for posting and removing service announcements (outages, migrations, freezes) on-chain so dapp users can see a project's status in a standard way.","ja":"サービス告知（障害、移行、凍結など）をオンチェーンで投稿・削除するためのシンプルなコントラクトインターフェース。dapp のユーザーがプロジェクトの状況を標準的な方法で確認できるようにする。","ko":"서비스 공지(장애, 마이그레이션, 동결 등)를 온체인에서 게시하고 삭제하기 위한 간단한 컨트랙트 인터페이스로, dapp 사용자가 프로젝트 상태를 표준적인 방식으로 볼 수 있게 한다.","zh":"一个简单的合约接口，用于在链上发布和移除服务公告（故障、迁移、冻结等），让 dapp 用户以标准方式查看项目状态。"},"tags":["dapp","announcements","ux","communication"],"explainers":{"en":{"lang":"en","tldr":"A simple contract interface for posting and removing service announcements (outages, migrations, freezes) on-chain so dapp users can see a project's status in a standard way.","tags":["dapp","announcements","ux","communication"],"related":[20,173],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-1129/","markdown":"## What problem does it solve?\n\nWhen a token or dapp has a problem, moves to a new contract, or pauses for maintenance, there is no standard place to tell users. Teams post on social media or their website, and nothing ties the message to the contract itself.\n\nERC-1129 proposes that a contract carry its own announcement board: authorised accounts post messages, anyone can read them, and removals record a reason. Because the format is shared, wallets and front ends could display announcements for any contract that implements it, and the history is traceable on-chain.\n\n## How it works\n\nThe contract keeps two small records:\n\n- **Announcer**: whether an address may post (`allowedToPost`) and a human-friendly `name`.\n- **Announcement**: the author's name, the author's address and the `post` text.\n\nFunctions:\n\n| Function | Purpose |\n| --- | --- |\n| `givePostingPermission(addr, bool, name)` | Owner grants or revokes posting rights |\n| `postAnnouncement(message)` | Authorised announcer publishes a message |\n| `removeAnnouncement(id, reason)` | Removes a message and explains why (issue resolved, next steps) |\n| `readPosts(id)` | Returns author name and message |\n| `theNumberOfAnnouncements()` | Optional count of active announcements |\n\nEvents `NewAnnouncement(author, message)` and `RemovedAnnouncement(author, message, reason, remover)` MUST be emitted, so off-chain tools can follow announcements without polling storage. When an announcement is removed, the list is compacted so there are no empty slots.\n\n## Sample code\n\nA compact modern-Solidity sketch of the interface (the spec itself uses pre-0.5 syntax):\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ncontract Announcements {\n    struct Announcement { string author; address authorAddress; string post; }\n\n    address public owner = msg.sender;\n    mapping(address =\u003e bool) public allowedToPost;\n    mapping(address =\u003e string) public posterName;\n    Announcement[] private posts;\n\n    event NewAnnouncement(string author, string message);\n    event RemovedAnnouncement(string author, string message, string reason, address remover);\n\n    function givePostingPermission(address who, bool allowed, string calldata name) external {\n        require(msg.sender == owner, \"owner\");\n        allowedToPost[who] = allowed;\n        posterName[who] = name;\n    }\n\n    function postAnnouncement(string calldata message) external {\n        require(allowedToPost[msg.sender], \"cannot post\");\n        posts.push(Announcement(posterName[msg.sender], msg.sender, message));\n        emit NewAnnouncement(posterName[msg.sender], message);\n    }\n\n    function removeAnnouncement(uint256 id, string calldata reason) external {\n        require(allowedToPost[msg.sender], \"cannot remove\");\n        Announcement memory a = posts[id];\n        posts[id] = posts[posts.length - 1]; // keep the array dense\n        posts.pop();\n        emit RemovedAnnouncement(a.author, a.post, reason, msg.sender);\n    }\n\n    function readPosts(uint256 id) external view returns (string memory, string memory) {\n        return (posts[id].author, posts[id].post);\n    }\n\n    function theNumberOfAnnouncements() external view returns (uint256) { return posts.length; }\n}\n```\n\n## Things to know\n\n- Status: **Stagnant**. It was never widely adopted by wallets or explorers.\n- The spec does not say who may call `removeAnnouncement`; restricting it (as above) is up to the implementer.\n- Storing long strings on-chain is expensive. Many projects now emit events only, or point to off-chain content.\n"},"ja":{"lang":"ja","tldr":"サービス告知（障害、移行、凍結など）をオンチェーンで投稿・削除するためのシンプルなコントラクトインターフェース。dapp のユーザーがプロジェクトの状況を標準的な方法で確認できるようにする。","tags":["dapp","announcements","ux","communication"],"related":[20,173],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-1129/","markdown":"## 何を解決するのか\n\nトークンや dapp に問題が起きたとき、新しいコントラクトに移行するとき、メンテナンスのために一時停止するときに、ユーザーへ知らせる標準的な場所がありません。チームはソーシャルメディアやウェブサイトに投稿しますが、そのメッセージとコントラクト自体を結びつけるものは何もありません。\n\nERC-1129 は、コントラクト自身が告知ボードを持つことを提案します。権限のあるアカウントがメッセージを投稿し、誰でも読むことができ、削除時には理由が記録されます。形式が共通なので、ウォレットやフロントエンドは、これを実装した任意のコントラクトの告知を表示でき、履歴もオンチェーンで追跡できます。\n\n## 仕組み\n\nコントラクトは 2 つの小さなレコードを保持します。\n\n- **Announcer**: そのアドレスが投稿できるか（`allowedToPost`）と、人が読みやすい `name`。\n- **Announcement**: 投稿者の名前、投稿者のアドレス、そして `post` のテキスト。\n\n関数:\n\n| 関数 | 役割 |\n| --- | --- |\n| `givePostingPermission(addr, bool, name)` | オーナーが投稿権限を付与または取り消す |\n| `postAnnouncement(message)` | 権限のある告知者がメッセージを公開する |\n| `removeAnnouncement(id, reason)` | メッセージを削除し、その理由（問題の解決、次の手順など）を説明する |\n| `readPosts(id)` | 投稿者名とメッセージを返す |\n| `theNumberOfAnnouncements()` | 有効な告知の数（任意） |\n\nイベント `NewAnnouncement(author, message)` と `RemovedAnnouncement(author, message, reason, remover)` は emit しなければなりません（MUST）。これにより、オフチェーンのツールはストレージをポーリングせずに告知を追跡できます。告知が削除されると、空きスロットが残らないようにリストが詰められます。\n\n## サンプルコード\n\nインターフェースを現代的な Solidity でコンパクトに書いたスケッチです（仕様自体は 0.5 より前の構文を使っています）:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ncontract Announcements {\n    struct Announcement { string author; address authorAddress; string post; }\n\n    address public owner = msg.sender;\n    mapping(address =\u003e bool) public allowedToPost;\n    mapping(address =\u003e string) public posterName;\n    Announcement[] private posts;\n\n    event NewAnnouncement(string author, string message);\n    event RemovedAnnouncement(string author, string message, string reason, address remover);\n\n    function givePostingPermission(address who, bool allowed, string calldata name) external {\n        require(msg.sender == owner, \"owner\");\n        allowedToPost[who] = allowed;\n        posterName[who] = name;\n    }\n\n    function postAnnouncement(string calldata message) external {\n        require(allowedToPost[msg.sender], \"cannot post\");\n        posts.push(Announcement(posterName[msg.sender], msg.sender, message));\n        emit NewAnnouncement(posterName[msg.sender], message);\n    }\n\n    function removeAnnouncement(uint256 id, string calldata reason) external {\n        require(allowedToPost[msg.sender], \"cannot remove\");\n        Announcement memory a = posts[id];\n        posts[id] = posts[posts.length - 1]; // keep the array dense\n        posts.pop();\n        emit RemovedAnnouncement(a.author, a.post, reason, msg.sender);\n    }\n\n    function readPosts(uint256 id) external view returns (string memory, string memory) {\n        return (posts[id].author, posts[id].post);\n    }\n\n    function theNumberOfAnnouncements() external view returns (uint256) { return posts.length; }\n}\n```\n\n## 知っておくべきこと\n\n- ステータス: **Stagnant**。ウォレットやエクスプローラーに広く採用されたことはありません。\n- 仕様は、誰が `removeAnnouncement` を呼べるかを定めていません。上のように制限するかどうかは実装者次第です。\n- 長い文字列をオンチェーンに保存するのはコストが高くなります。現在は多くのプロジェクトが、イベントだけを emit するか、オフチェーンのコンテンツを指すようにしています。\n"},"ko":{"lang":"ko","tldr":"서비스 공지(장애, 마이그레이션, 동결 등)를 온체인에서 게시하고 삭제하기 위한 간단한 컨트랙트 인터페이스로, dapp 사용자가 프로젝트 상태를 표준적인 방식으로 볼 수 있게 한다.","tags":["dapp","announcements","ux","communication"],"related":[20,173],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-1129/","markdown":"## 어떤 문제를 해결하나요?\n\n토큰이나 dapp에 문제가 생기거나, 새 컨트랙트로 옮기거나, 점검을 위해 일시 중지할 때 사용자에게 알릴 표준적인 장소가 없습니다. 팀은 소셜 미디어나 웹사이트에 글을 올리지만, 그 메시지를 컨트랙트 자체와 연결해 주는 것은 없습니다.\n\nERC-1129는 컨트랙트가 자체 공지 게시판을 가지는 방식을 제안합니다. 권한이 있는 계정이 메시지를 게시하고, 누구나 읽을 수 있으며, 삭제할 때는 이유가 기록됩니다. 형식이 공통이므로 지갑과 프런트엔드는 이를 구현한 모든 컨트랙트의 공지를 표시할 수 있고, 이력도 온체인에서 추적할 수 있습니다.\n\n## 어떻게 동작하나요?\n\n컨트랙트는 두 가지 작은 레코드를 보관합니다.\n\n- **Announcer**: 해당 주소가 게시할 수 있는지(`allowedToPost`)와 사람이 알아보기 쉬운 `name`.\n- **Announcement**: 작성자의 이름, 작성자의 주소, 그리고 `post` 텍스트.\n\n함수:\n\n| 함수 | 역할 |\n| --- | --- |\n| `givePostingPermission(addr, bool, name)` | 소유자가 게시 권한을 부여하거나 회수 |\n| `postAnnouncement(message)` | 권한 있는 공지자가 메시지를 게시 |\n| `removeAnnouncement(id, reason)` | 메시지를 삭제하고 이유(문제 해결, 후속 조치)를 설명 |\n| `readPosts(id)` | 작성자 이름과 메시지를 반환 |\n| `theNumberOfAnnouncements()` | 유효한 공지의 개수(선택) |\n\n이벤트 `NewAnnouncement(author, message)`와 `RemovedAnnouncement(author, message, reason, remover)`는 반드시(MUST) emit해야 하며, 그래야 오프체인 도구가 스토리지를 폴링하지 않고도 공지를 따라갈 수 있습니다. 공지가 삭제되면 빈 슬롯이 없도록 목록이 압축됩니다.\n\n## 샘플 코드\n\n인터페이스를 현대적인 Solidity로 간결하게 스케치한 것입니다(명세 자체는 0.5 이전 문법을 사용합니다):\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ncontract Announcements {\n    struct Announcement { string author; address authorAddress; string post; }\n\n    address public owner = msg.sender;\n    mapping(address =\u003e bool) public allowedToPost;\n    mapping(address =\u003e string) public posterName;\n    Announcement[] private posts;\n\n    event NewAnnouncement(string author, string message);\n    event RemovedAnnouncement(string author, string message, string reason, address remover);\n\n    function givePostingPermission(address who, bool allowed, string calldata name) external {\n        require(msg.sender == owner, \"owner\");\n        allowedToPost[who] = allowed;\n        posterName[who] = name;\n    }\n\n    function postAnnouncement(string calldata message) external {\n        require(allowedToPost[msg.sender], \"cannot post\");\n        posts.push(Announcement(posterName[msg.sender], msg.sender, message));\n        emit NewAnnouncement(posterName[msg.sender], message);\n    }\n\n    function removeAnnouncement(uint256 id, string calldata reason) external {\n        require(allowedToPost[msg.sender], \"cannot remove\");\n        Announcement memory a = posts[id];\n        posts[id] = posts[posts.length - 1]; // keep the array dense\n        posts.pop();\n        emit RemovedAnnouncement(a.author, a.post, reason, msg.sender);\n    }\n\n    function readPosts(uint256 id) external view returns (string memory, string memory) {\n        return (posts[id].author, posts[id].post);\n    }\n\n    function theNumberOfAnnouncements() external view returns (uint256) { return posts.length; }\n}\n```\n\n## 알아둘 점\n\n- 상태: **Stagnant**. 지갑이나 익스플로러에서 널리 채택된 적이 없습니다.\n- 명세는 누가 `removeAnnouncement`를 호출할 수 있는지 정하지 않습니다. 위처럼 제한할지는 구현자에게 달려 있습니다.\n- 긴 문자열을 온체인에 저장하는 것은 비용이 많이 듭니다. 지금은 많은 프로젝트가 이벤트만 emit하거나 오프체인 콘텐츠를 가리킵니다.\n"},"zh":{"lang":"zh","tldr":"一个简单的合约接口，用于在链上发布和移除服务公告（故障、迁移、冻结等），让 dapp 用户以标准方式查看项目状态。","tags":["dapp","announcements","ux","communication"],"related":[20,173],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-1129/","markdown":"## 它解决什么问题？\n\n当代币或 dapp 出现问题、迁移到新合约，或因维护而暂停时，没有标准的地方可以告知用户。团队在社交媒体或网站上发帖，但没有任何东西把这些消息与合约本身联系起来。\n\nERC-1129 提出让合约自带公告板：被授权的账户发布消息，任何人都可以阅读，移除时会记录原因。由于格式是共享的，钱包和前端可以为任何实现了它的合约显示公告，历史记录也可以在链上追溯。\n\n## 它如何运作\n\n合约保存两种小型记录：\n\n- **Announcer**：某个地址是否可以发布（`allowedToPost`），以及一个便于阅读的 `name`。\n- **Announcement**：作者的名称、作者的地址以及 `post` 文本。\n\n函数：\n\n| 函数 | 用途 |\n| --- | --- |\n| `givePostingPermission(addr, bool, name)` | 所有者授予或撤销发布权限 |\n| `postAnnouncement(message)` | 被授权的公告者发布一条消息 |\n| `removeAnnouncement(id, reason)` | 移除一条消息并说明原因（问题已解决、后续步骤） |\n| `readPosts(id)` | 返回作者名称和消息 |\n| `theNumberOfAnnouncements()` | 有效公告的数量（可选） |\n\n事件 `NewAnnouncement(author, message)` 和 `RemovedAnnouncement(author, message, reason, remover)` 必须（MUST）触发，这样链下工具无需轮询存储即可跟踪公告。公告被移除时，列表会被压紧，不留空位。\n\n## 示例代码\n\n该接口的一个紧凑的现代 Solidity 草图（规范本身使用 0.5 之前的语法）：\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ncontract Announcements {\n    struct Announcement { string author; address authorAddress; string post; }\n\n    address public owner = msg.sender;\n    mapping(address =\u003e bool) public allowedToPost;\n    mapping(address =\u003e string) public posterName;\n    Announcement[] private posts;\n\n    event NewAnnouncement(string author, string message);\n    event RemovedAnnouncement(string author, string message, string reason, address remover);\n\n    function givePostingPermission(address who, bool allowed, string calldata name) external {\n        require(msg.sender == owner, \"owner\");\n        allowedToPost[who] = allowed;\n        posterName[who] = name;\n    }\n\n    function postAnnouncement(string calldata message) external {\n        require(allowedToPost[msg.sender], \"cannot post\");\n        posts.push(Announcement(posterName[msg.sender], msg.sender, message));\n        emit NewAnnouncement(posterName[msg.sender], message);\n    }\n\n    function removeAnnouncement(uint256 id, string calldata reason) external {\n        require(allowedToPost[msg.sender], \"cannot remove\");\n        Announcement memory a = posts[id];\n        posts[id] = posts[posts.length - 1]; // keep the array dense\n        posts.pop();\n        emit RemovedAnnouncement(a.author, a.post, reason, msg.sender);\n    }\n\n    function readPosts(uint256 id) external view returns (string memory, string memory) {\n        return (posts[id].author, posts[id].post);\n    }\n\n    function theNumberOfAnnouncements() external view returns (uint256) { return posts.length; }\n}\n```\n\n## 需要注意\n\n- 状态：**Stagnant**。它从未被钱包或区块浏览器广泛采用。\n- 规范没有说明谁可以调用 `removeAnnouncement`；是否像上面那样加以限制由实现者决定。\n- 在链上存储长字符串开销很大。现在许多项目只触发事件，或者指向链下内容。\n"}}}
