跳到正文
Skillpedia
智能体7.0k · #13598

genlayer-erc7710-connector

它能做什么

这项技能适合希望把 GenLayer 审核决定与控制智能体权限的智能合约相连接的开发者。它涵盖消息格式、中继或桥接路径、故障处理,以及撤销在区块链上的实际效果。

适用场景

  • ✓当你已经完成 GenLayer 审核,需要把结果转化为权限变更的时候。
  • ✓当你需要决定如何把审核结果发送到区块链控制器时。
  • ✓当你计划审核结果延迟或失败时该如何处理的时候。

技能链接

https://github.com/internet-court/internet-court-skill/blob/main/integrations/genlayer-erc7710-connector/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/internet-court/internet-court-skill/blob/main/integrations/genlayer-erc7710-connector/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我有一份 GenLayer 审核对我的智能体进行评分,我希望评分不佳时阻止它的付款。”

每周 5 个新技能,1 分钟读完。

工作原理

GenLayer 会生成一项决定,再由中继或桥接传递到 EVM 区块链上的控制器合约。该控制器会限制或阻止此权限之后的使用。该技能强调,控制器必须执行这项决定,因为 GenLayer 本身不会自动执行。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

GenLayer ERC-7710 Connector

Use this skill after the mandate, ERC-7710 policy, and GenLayer Intelligent Contract review flow exist. This skill does not teach GenLayer contract deployment. For GenLayer build, deploy, test, and CLI operations, use the official GenLayer skills at https://skills.genlayer.com/ or the GenLayer documentation.

This skill specifies the connector:

GenLayer Intelligent Contract decision
  -> decision proof / receipt / finalized result
  -> relayer or bridge
  -> EVM RevocationController
  -> ERC-7710 Delegation Manager rejects or constrains future redemptions

Design Rule

Never say "GenLayer cancels ERC-7710" without defining the effect path. GenLayer produces a decision. An EVM-side controller, account module, caveat enforcer, or delegation manager integration must consume that decision.

Workflow

  1. Identify the permission:
    • mandateId, permissionHash, delegator, delegate, delegation manager, target EVM chain, and current policy.
  2. Identify the GenLayer decision source:
    • supervisor contract address, method that stores/returns the decision, review window, decision enum, score, issued timestamp, and finalized transaction id.
  3. Choose the connector mode:
    • Manual demo relay, trusted relayer, GenLayer Studio bridge relay, optimistic relay with challenge window, light-client/bridge verification, or direct EVM call if supported by the target GenLayer/EVM integration.
  4. Define the message:
    • Include enough data for the EVM controller to revoke or constrain exactly one mandate/permission.
  5. Define the EVM effect:
    • Revoke, constrain, pause, require human approval, or mark pending appeal.
  6. Define safety:
    • Finality assumptions, replay protection, nonce, deadline, idempotency, emergency owner revoke, and absolute permission expiry.
  7. Define tests:
    • Continue does nothing, revoke blocks future redemption, constrain tightens policy, stale decisions fail, duplicate messages are idempotent, forged decisions fail.

Connector Modes

Use the simplest mode that honestly matches the demo.

Manual Demo Relay

Best for hackathon/prototype demos. The UI or operator reads the GenLayer decision and calls the EVM revocation controller.

State the trust assumption: the operator is trusted to relay the decision correctly.

Trusted Relayer

Best for a realistic MVP. A service watches GenLayer review transactions, waits for finality, then submits a signed EVM transaction.

Require allowlisted relayer keys and onchain event logs. Keep the delegator emergency revoke path.

GenLayer Studio Bridge Boilerplate

Use this for Base Sepolia demos that should exercise a real cross-chain control loop without claiming mainnet-grade verification.

Flow:

1. Base reporter contract packages a spend or action snapshot.
2. Base BridgeSender.sol sends it to GenLayer through the bridge boilerplate.
3. BridgeReceiver.py dispatches process_bridge_message() on the supervisor IC.
4. Supervisor IC reviews the window and calls BridgeSender.py.
5. Base BridgeReceiver.sol dispatches processBridgeMessage() on an EVM decision receiver.
6. Decision receiver verifies bridge receiver, source chain id, and source IC.
7. Decision receiver calls RevocationController.applyGenLayerDecisionStruct().

Default Base Sepolia values from the bridge boilerplate:

  • Base Sepolia chain id: 84532.
  • Base Sepolia LayerZero endpoint id: 40245.
  • GenLayer source chain id emitted by BridgeSender.py: 61998.

Required EVM contracts:

  • a reporter such as WalletSpendReporter that sends snapshots to GenLayer;
  • a decision receiver such as GenLayerDecisionReceiver that is allowlisted as a relayer on RevocationController;
  • a redemption path that checks RevocationController.isRevoked, isPaused, and getConstraints before spending.

Trust assumption: the bridge service and configured bridge contracts are trusted for the demo unless a verified proof path is added. Keep owner emergency revoke and absolute expiry.

Optimistic Relay

Best when anyone can submit a decision, but the decision can be challenged during a delay.

Use for higher-stakes demos where incorrect revocation is costly and latency is acceptable.

Verified Bridge

Best for production claims. The EVM controller verifies a GenLayer-origin proof or a trusted bridge message.

Do not choose this mode unless the proof/bridge implementation is actually available.

Message Schema

Use this as the default co

常见问题

GenLayer 会自动取消权限吗?

不会。GenLayer 只生成决定,区块链上另一个合约必须读取并执行相应的变更。

编写 GenLayer 合约时需要这个技能吗?

不需要。这个技能只涵盖连接部分,并指向 GenLayer 官方的编写与部署技能。

它能连接哪些区块链?

它支持 EVM 链,即包括以太坊在内的一类链。具体的链取决于你的项目。

详情

作者的原始描述

Connect GenLayer Intelligent Contract decisions to ERC-7710-style delegated authority. Use when an agent needs to design the interface, message schema, relayer/bridge path, EVM revocation controller, constraint updates, proof/finality assumptions, and failure handling that turn a GenLayer agent-performance review into ERC-7710 revocation or policy changes.

repo: internet-court/internet-court-skill

热度

GitHub 星标
7.0k
排名
#13598
许可证
—
更新时间
2026/10/26

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能