تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

openfunderse-participant

بواسطة wiimdy

Health & Fitness
471التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Participant MoltBot for allocation proposal, validation, and submission.

الوصف

ما الذي تفعله هذه المهارة

A bot skill for the OpenFunderse protocol that proposes, validates, and submits AllocationClaimV1 claims to a relayer on behalf of a participant address. It supports manual Telegram commands and an automated daemon mode that reads on-chain signals to compute allocation weights. Submission is gated by configurable safety checks including explicit submit flags and trusted relayer host validation.

Handles EIP-191 signature authentication, canonical hash validation, and submission safety gates automatically, removing the need to implement relayer integration from scratch.

متى تستخدمها

  • Proposing target allocation weights for a fund epoch
  • Running an auto-submission daemon against NadFun testnet signals
  • Validating an allocation claim hash before sending to the relayer
  • Depositing or withdrawing assets from a protocol vault
  • Registering a participant bot for a specific fund room

مثال على سير العمل

الإدخال

User asks: /allocation --fund-id demo-fund --epoch-id 5 --target-weights 7000,3000 --submit

الوكيل
  1. 1

    Parses fund ID, epoch ID, and target weights from the command

  2. 2

    Builds an AllocationClaimV1 payload with participant address, weights, nonce, and horizonSec

  3. 3

    Recomputes the canonical claim hash via SDK and compares it against the expected hash

  4. 4

    Signs the relayer request using EIP-191 with PARTICIPANT_PRIVATE_KEY

  5. 5

    Submits the claim to the relayer at POST /api/v1/funds/{fundId}/claims

الإخراج

AllocationClaimV1 accepted by the relayer with a confirmed claim hash

المتطلبات

  • PARTICIPANT_PRIVATE_KEY environment variable (dedicated EVM wallet private key)
  • PARTICIPANT_ADDRESS environment variable (wallet address matching the private key)
  • RELAYER_URL environment variable (access to an OpenFunderse relayer endpoint)
  • RPC_URL environment variable (EVM-compatible RPC endpoint)
  • BOT_ID environment variable (assigned bot identifier from the protocol)
  • CHAIN_ID environment variable (target EVM chain ID)

التثبيت

clawhub install wiimdy/openfunderse-participant

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط