newsence
來源篩選

ERC-8155: Kernel-Orchestrated Modular Contracts

Ethereum Magicians

Kernel-Orchestrated Modular Smart Contracts Abstract This ERC proposes a kernel-orchestrated modular smart contract framework built on EIP-2535 Diamond proxies. It introduces self-describing modules (Orbitals) with first-class on-chain metadata including identity, semantic versioning, storage schema hashes, and exported function selectors. Key Features IValenceModule interface for self-describing modules Kernel-managed lifecycle (install, upgrade, remove) with explicit hooks EIP-7201 namespaced storage for collision-free module composition Machine-legible metadata for AI-first and automated orchestration Module marketplace suitability with stable identifiers Discussion Points I’m looking for feedback on: The interface design and lifecycle hooks Storage namespacing approach using EIP-7201 Semantic versioning on-chain representation Use cases and potential applications Please share your thoughts and suggestions! https://github.com/ethereum/ERCs/pull/1528 2 posts - 1 participant Read full topic

newsence

ERC-8155:由 Kernel 編排的模組化智能合約

Ethereum Magicians
16 天前

AI 生成摘要

此 ERC 提出一個建構在 EIP-2535 Diamond proxies 上的 Kernel 編排模組化智能合約框架。它引入了具備第一級鏈上元數據(如身份、語義版本控制、儲存結構雜湊和匯出函數選擇器)的自描述模組(Orbitals),旨在實現 AI 優先和自動化編排。

ERC-8155:核心協調模組化合約 - ERCs - 以太坊魔法師團體

This standard proposes a modular contract architecture where a central "kernel" contract orchestrates interactions between various "module" contracts. This allows for greater flexibility, upgradability, and code reusability in smart contract development.

本標準提出了一種模組化合約架構,其中一個中央「核心」合約協調各個「模組」合約之間的互動。這使得智能合約開發具有更大的靈活性、可升級性和程式碼可重用性。

Key Concepts:

  • Kernel: The central contract responsible for managing modules and routing calls.
  • Module: Independent contracts that perform specific functionalities.
  • Interface Registry: A registry that maps interface IDs to module addresses.

主要概念:

  • 核心: 負責管理模組和路由呼叫的中央合約。
  • 模組: 執行特定功能的獨立合約。
  • 介面註冊表: 將介面 ID 映射到模組地址的註冊表。

Benefits:

  • Modularity: Contracts are broken down into smaller, more manageable modules.
  • Upgradability: Modules can be upgraded or replaced without affecting the entire contract.
  • Reusability: Modules can be reused across multiple contracts.
  • Flexibility: The kernel can be configured to support different module configurations.

優點:

  • 模組化: 合約被分解為更小、更易於管理的模組。
  • 可升級性: 模組可以升級或替換,而不會影響整個合約。
  • 可重用性: 模組可以在多個合約中重複使用。
  • 靈活性: 可以配置核心以支持不同的模組配置。

Example Use Cases:

  • Decentralized Exchanges (DEXs)
  • Lending Protocols
  • Governance Systems

範例用例:

  • 去中心化交易所 (DEXs)
  • 借貸協議
  • 治理系統