본문으로 건너뛰기
Skillpedia
에이전트7.0k · #13598

genlayer-erc7710-connector

하는 일

이 스킬은 GenLayer 검토 결정을 에이전트의 권한을 관리하는 스마트 컨트랙트에 연결하려는 개발자를 위한 것입니다. 메시지 형식, 릴레이나 브리지 경로, 실패 처리, 블록체인에서 권한 취소가 실제로 무엇을 하는지 다룹니다.

사용하는 경우

  • ✓GenLayer 검토가 이미 있고, 그 결과를 권한 변경으로 바꿔야 할 때.
  • ✓GenLayer 검토 결과를 블록체인 컨트롤러에 어떻게 보낼지 정해야 할 때.
  • ✓검토 결과가 늦게 도착하거나 실패하는 경우를 대비할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/internet-court/internet-court-skill/blob/main/integrations/genlayer-erc7710-connector/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
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 스킬을 참고하라고 안내합니다.

이 스킬은 어떤 블록체인과 연결되나요?

Ethereum을 포함한 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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬