본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

rue-chialisp

koba42corp 제작

PDF & Documents
—아직 평가 없음
내 평가

요약

Create Chia blockchain puzzles using Rue, a type-safe language that compiles to CLVM.

설명

이 스킬이 하는 일

Rue is a type-safe language that compiles to CLVM bytecode for deploying smart contracts on the Chia blockchain. It provides a structured syntax for writing coin puzzles with conditions like timelocks, multisig, escrow, and atomic swaps. Projects initialize with a CLI tool, compile with `rue build`, and simulate with `brun`.

Rue's type system catches errors at compile time that raw ChiaLisp would only surface during on-chain execution.

사용 시점

  • Writing a timelock puzzle that releases funds after a specific block height
  • Building a 2-of-3 multisig wallet for shared custody of Chia coins
  • Implementing an atomic swap between two parties without a trusted intermediary
  • Creating a recurring subscription payment with spending limits
  • Setting up an escrow with a third-party arbiter for conditional release

예시 워크플로

입력

User asks: create a coin that can only be spent after block 5000000 and sends funds to a specific address

에이전트
  1. 1

    Map request to the Timelock pattern using examples/timelock.rue as reference

  2. 2

    Write a Rue function with unlock_height: Int and dest: Bytes32 as parameters

  3. 3

    Add AssertHeightAbsolute and CreateCoin conditions to the return list

  4. 4

    Run rue build puzzles/timelock.rue to compile to CLVM bytecode

  5. 5

    Simulate with brun "$CLVM" "(5000000 <dest_hash> <amount>)" to verify output conditions

출력

CLVM bytecode ready for deployment, plus simulated condition output confirming the height assertion and coin creation

요구 사항

  • Chia blockchain node or wallet installation
  • rue compiler CLI tool
  • brun CLVM simulator (part of the chia-dev-tools package)

설치

clawhub install koba42corp/rue-chialisp

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크