微算力 · API 导航与自营网关
API 接入 EN
未登录登录
⛓️

Universal Profiles · LSP 标准 · 创意经济

Lukso Expert · v1.0.0
专业技能 安全 B 级 作者 luksoagent 公开目录收录
下载 1.3k 安装 4 收藏 2.8k 浏览 5
原始页面

简介

让 AI 成为 LUKSO 区块链专家,精通 Universal Profiles、LSP 标准与无 Gas 交易,助力开发者构建下一代创意经济应用。

原始描述

Comprehensive LUKSO blockchain knowledge base for AI agents. Makes any agent a LUKSO expert — covering all LSP standards (LSP0-LSP28), Universal Profiles, sm...

中文使用说明 来自收录源

核心用法

LUKSO Expert 技能是一套面向 AI 代理的综合性知识库,专注于 LUKSO 区块链生态系统——一条由 ERC-20 和 ERC-725 创始人 Fabian Vogelsteller 发起的、面向创意经济与数字身份的 EVM 兼容链。该技能使代理能够深入理解并操作 LUKSO 的核心创新:Universal Profiles(智能合约账户替代传统 EOA)、LSP 标准体系(LSP0-LSP28+),以及无 Gas 中继交易机制。

主要应用场景包括:

  • 智能账户管理:创建和配置 Universal Profiles,设置 LSP6 KeyManager 的细粒度权限(bitmask 权限系统),管理控制器地址与允许调用范围
  • Token 开发与操作:部署和交互 LSP7(可分割资产)与 LSP8(不可分 NFT)代币,正确处理 force 参数以防止误发送至无接收能力的合约
  • 无 Gas 交易:通过 LSP25 标准设置中继服务,实现用户免 Gas 费的链上交互
  • 社交功能集成:利用 LSP26(关注系统)和 LSP28(The Grid 个性化布局)构建链上社交图谱
  • 数据查询与调试:使用 Envio GraphQL 端点查询链上 Profile 数据,调试权限、编码和 Gas 估算问题

技术架构核心:Universal Profile 作为 ERC725Account,整合 KeyManager 权限层、LSP3 元数据、LSP1 通用接收器、LSP5/LSP12 资产注册表及 LSP28 网格系统,形成可编程、可社交的智能账户体系。

显著优点

  1. 创始人权威性:由 Fabian Vogelsteller 创立,其在以太坊标准制定方面的深厚积累(ERC-20、ERC-725)为 LSP 标准提供了坚实的设计哲学基础
  2. 开发者体验优化:内置 gasless 交易支持、详尽的文档(docs.lukso.tech)、活跃的 Discord 社区及官方提供的开发工具链(@erc725/erc725.js)
  3. 创新账户模型:Universal Profiles 原生支持权限管理、元数据和社交功能,解决了传统 EOA 的功能局限
  4. 生态完整性:涵盖从底层标准到应用层(The Grid、关注系统)的完整技术栈,支持创意经济的多样化场景
  5. EVM 兼容性:完全兼容以太坊执行层,降低以太坊开发者迁移成本

潜在缺点与局限性

  1. 生态规模有限:相比 Ethereum、Polygon 等主流链,LUKSO 的 TVL、活跃项目和用户基数仍处于早期阶段
  2. 工具链依赖:手动编码 ERC725Y 数据容易出错,高度依赖官方 @erc725/erc725.js 库,存在单一工具依赖风险
  3. Gas 估算复杂性:UP 交易通过 KeyManager 代理执行,Gas 估算常需 20-30% 缓冲,增加开发调试成本
  4. 标准认知门槛:LSP 标准体系(尤其是 bitmask 权限设计)对新手开发者有一定学习曲线
  5. 跨链互操作性:专为 LUKSO 优化,非 LUKSO EVM 链场景需切换至标准以太坊模式

适合人群

  • 区块链开发者:尤其是熟悉 Solidity 和 EVM、希望探索智能账户新范式的开发者
  • Web3 产品经理:构建社交、创意经济、数字身份相关应用的团队
  • 以太坊迁移者:寻求更优账户抽象和用户体验的现有 dApp 团队
  • 技术研究者:关注 ERC-725 账户抽象标准演进的研究人员

常规风险

  • 合约安全风险:LSP6 权限配置错误可能导致账户被恶意控制或功能受限;force=true 的滥用可能造成资产永久丢失
  • 编码错误风险:ERC725Y 数据手动编码错误会导致元数据不可读或合约行为异常
  • 中继服务依赖:LSP25 gasless 交易依赖中继服务商的可用性和诚信度
  • 测试网与主网差异:Chain ID 42(主网)与 4201(测试网)配置混淆可能导致资产误部署
  • 早期技术风险:作为相对较新的标准体系,LSP 可能存在未发现的安全漏洞或重大升级变更

技能正文


name: lukso-expert description: > Comprehensive LUKSO blockchain knowledge base for AI agents. Makes any agent a LUKSO expert — covering all LSP standards (LSP0-LSP28), Universal Profiles, smart contract development, ecosystem projects, and developer tooling.

USE WHEN:

  • Building on LUKSO (smart contracts, dApps, integrations)
  • Working with Universal Profiles (creation, permissions, metadata)
  • Deploying or interacting with LSP7/LSP8 tokens
  • Setting up gasless relay transactions (LSP25)
  • Managing KeyManager permissions (LSP6)
  • Working with The Grid (LSP28), Followers (LSP26), or any LSP standard
  • Answering questions about LUKSO ecosystem, projects, or architecture
  • Looking up contract addresses, ABIs, or API endpoints
  • Debugging LUKSO-specific issues (permissions, encoding, gas)

DON'T USE WHEN:

  • Working with non-LUKSO EVM chains (use standard Ethereum patterns)
  • General Solidity questions unrelated to LSP standards

LUKSO Expert

Complete knowledge base for building on LUKSO — the blockchain for creative economies, digital identity, and new social standards.

Quick Facts

  • Chain ID: 42 (mainnet) / 4201 (testnet)
  • Native token: LYX
  • Consensus: Proof of Stake (32 LYX per validator)
  • EVM compatible: Yes, unmodified Ethereum execution layer
  • Unique: Universal Profiles (smart contract accounts) instead of EOAs
  • Founder: Fabian Vogelsteller (also created ERC-20 and ERC-725)

Core Concepts

LUKSO extends Ethereum with LSP standards (LUKSO Standard Proposals) that enable:

  • Smart accounts (Universal Profiles) with built-in permissions, metadata, and social features
  • Flexible tokens (LSP7/LSP8) with safety features like force parameter and universal receiver hooks
  • Gasless transactions via relay service (LSP25)
  • On-chain social graph via followers system (LSP26)
  • Profile customization via The Grid (LSP28)

Architecture Overview

Universal Profile (LSP0/ERC725Account)
├── KeyManager (LSP6) — permission layer
│   ├── Controllers — addresses with specific permissions
│   └── Allowed calls/addresses — fine-grained access control
├── Profile Data (LSP3) — name, description, avatar, links
├── Universal Receiver (LSP1) — hooks for incoming transactions
├── Owned Assets (LSP5) — registry of tokens/NFTs owned
├── Issued Assets (LSP12) — registry of tokens/NFTs created
└── The Grid (LSP28) — customizable profile layout

Reference Files

Load these based on what you need:

LSP Standards (references/lsp-standards.md)

Complete reference for ALL LSP standards (LSP0-LSP28+). Includes interfaces, function signatures, and implementation details. Read when working with any specific LSP or needing to understand the standards architecture.

Developer Patterns (references/dev-patterns.md)

Practical code examples and implementation guides. Covers UP creation, token operations, permissions, gasless transactions, and common pitfalls. Read when writing code or debugging LUKSO-specific issues.

Ecosystem (references/ecosystem.md)

Projects, team, community channels, grants, and chain infrastructure. Read when answering ecosystem questions or looking for project information.

Contracts & Repos (references/contracts-and-repos.md)

Deployed contract addresses, GitHub repositories, NPM packages, and API endpoints. Read when looking up addresses, ABIs, or integration endpoints.

Key Contract Addresses (Mainnet)

Contract Address
LSP26 Follower System 0xf01103E5a9909Fc0DBe8166dA7085e0285daDDcA
Envio GraphQL https://envio.lukso-mainnet.universal.tech/v1/graphql

Full address list in references/contracts-and-repos.md

Common Operations Quick Reference

Resolve username to UP address

# Envio GraphQL
query { Profile(where: {name: {_eq: "username"}}) { id name } }

Check UP count

query { Profile_aggregate { aggregate { count } } }

Follow a profile (LSP26)

const LSP26 = "0xf01103E5a9909Fc0DBe8166dA7085e0285daDDcA";
const calldata = lsp26Contract.methods.follow(targetAddress).encodeABI();
await universalProfile.methods.execute(0, LSP26, 0, calldata).send({from: controller});

Important Gotchas

  1. force parameter (LSP7/LSP8): Set to true to send tokens to any address. Set to false (default) to only send to UPs with a Universal Receiver — prevents accidental sends to EOAs or contracts that can't handle them.

  2. LSP6 Permissions: Permissions are bitmask-based. Common mistake: granting CALL permission but forgetting EXECUTE_RELAY_CALL for gasless transactions.

  3. ERC725Y data encoding: Use @erc725/erc725.js for encoding — manual encoding is error-prone, especially for VerifiableURI and array types.

  4. Gas estimation: UP transactions go through KeyManager proxy, so gas estimates can be off. Add 20-30% buffer.

Developer Resources

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

blockchainevmsmart-contractsaccount-abstractionweb3token-standardsgasless-transactionsdigital-identity

同类 Skill