Chuyển đến nội dung
Skillpedia
Agent7.0k · #13598

genlayer-erc7710-connector

Skill này làm gì

Skill này dành cho lập trình viên muốn liên kết một quyết định đánh giá của GenLayer với một smart contract điều khiển quyền của agent. Nó bao gồm định dạng thông điệp, đường truyền qua relay hoặc bridge, cách xử lý lỗi và việc thu hồi quyền thực sự làm gì trên blockchain.

Khi nào nên dùng

  • ✓Khi bạn đã có một đánh giá GenLayer và cần biến kết quả thành thay đổi về quyền.
  • ✓Khi bạn cần quyết định cách kết quả đánh giá được gửi đến bộ điều khiển trên blockchain.
  • ✓Khi bạn đang lên kế hoạch cho trường hợp kết quả đánh giá đến muộn hoặc bị lỗi.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/internet-court/internet-court-skill/blob/main/integrations/genlayer-erc7710-connector/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi có một đánh giá GenLayer chấm điểm agent của mình, và tôi muốn điểm xấu chặn các khoản thanh toán của nó.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Một quyết định GenLayer được tạo ra, rồi relay hoặc bridge chuyển nó đến một smart contract điều khiển trên chuỗi EVM. Bộ điều khiển đó hạn chế hoặc chặn các lần sử dụng quyền trong tương lai. Skill nhấn mạnh rằng bộ điều khiển phải tự thực hiện quyết định, vì GenLayer không làm điều đó một mình.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

Câu hỏi thường gặp

GenLayer có tự động hủy quyền không?

Không. GenLayer tạo ra một quyết định, còn một contract riêng trên blockchain phải đọc và áp dụng thay đổi.

Tôi có cần skill này để viết contract GenLayer không?

Không. Skill này chỉ bao gồm phần kết nối và chỉ đến các skill chính thức của GenLayer để viết và triển khai contract.

Skill kết nối với những blockchain nào?

Skill hoạt động với các chuỗi EVM, nhóm bao gồm Ethereum. Chuỗi cụ thể tùy vào dự án của bạn.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
7.0k
Vị trí xếp hạng
#13598
Giấy phép
—
Cập nhật
26/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự