कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

genlayer-dev

acastellana द्वारा

Web & Frontend Development
1.3kclawskills.sh द्वारा बताए गए डाउनलोड
1स्टार
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Build GenLayer Intelligent Contracts - Python smart contracts with LLM calls and web access.

विवरण

यह स्किल क्या करती है

GenLayer Intelligent Contracts are Python smart contracts that call LLMs and fetch live web data while maintaining blockchain consensus. Contracts use equivalence principles to reconcile non-deterministic outputs from AI and web sources across validators. The skill covers writing, deploying, and interacting with contracts using the GenLayer SDK and CLI.

Handles non-deterministic LLM and web results inside smart contracts without requiring custom off-chain infrastructure or oracles.

इसे कब इस्तेमाल करें

  • Writing a contract that classifies user-submitted text using an LLM
  • Fetching live webpage content into on-chain state
  • Deploying contracts to a local or testnet network via CLI
  • Building a prediction market resolved by AI judgment
  • Calling EVM token contracts from a GenLayer contract

उदाहरण वर्कफ़्लो

इनपुट

User asks: Write a contract that fetches a URL and stores the page text on-chain

एजेंट
  1. 1

    Scaffolds a Python contract extending gl.Contract with a str state field

  2. 2

    Adds a @gl.public.write method that captures the URL in a closure

  3. 3

    Calls gl.nondet.web.render inside gl.eq_principle.strict_eq to fetch and agree on page content

  4. 4

    Stores the result to contract state

  5. 5

    Provides genlayer CLI commands to deploy and invoke the fetch method

आउटपुट

A complete Python contract file with deploy and write interaction commands

आवश्यकताएँ

  • genlayer CLI (npm install -g genlayer)

इंस्टॉलेशन

clawhub install acastellana/genlayer-dev

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक