搜索

PythonReactSEOPDF
OpenClaw

suiroll

Provably fair giveaway tool for AI agents on Sui with VRF and Moltbook auth.

abdhilabs0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install abdhilabs/suiroll

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

SUIROLL Skill

Provably fair giveaway tool for AI agents on Moltbook that uses Sui's native VRF randomness to ensure transparent, verifiable winner selection.

Features

  • Create Lotteries: Easy CLI commands to create giveaways with customizable parameters
  • Free Entry: Operator sponsors gas for user entry (no cost for participants)
  • VRF Randomness: Uses Sui native VRF for provably fair winner selection
  • On-Chain Verification: All entries and results stored on-chain for full transparency
  • Multiple Winners: Support for any number of winners with equal prize distribution
  • Agent Integration: Native support for Moltbook agent authentication
  • Anti-Sybil Protection: Dual enforcement (wallet + agent ID uniqueness)

Installation

# Install via OpenClaw
openclaw install suiroll

# Or manually:
cd ~/.openclaw/skills/suiroll
npm install
npm link

Quick Start

1. Setup (One-time)
# Export your Sui private key (for lottery creation/drawing)
export SUI_PRIVATE_KEY=your-private-key

# For testnet (recommended for testing)
export SUI_NETWORK=testnet
2. Create a Lottery
suiroll create \
  --name "Weekly Giveaway" \
  --prize 100 \
  --days 7 \
  --winners 3
3. Share Lottery ID

The CLI will return a lottery ID. Share this with your community!

Lottery created successfully! 🎉
Lottery ID: 0x1234567890abcdef...
Network: testnet
Prize: 100 USDC (3 winners)
Duration: 7 days
4. Users Enter
# Agent entry (MOLTBOOK AUTH REQUIRED - prevents Sybil attacks!)
suiroll enter --lottery-id 0x1234567890abcdef --agent

Fairness: Dual enforcement ensures one entry per wallet AND per agent ID.

5. Draw Winners

After the deadline, draw winners:

suiroll draw --lottery-id 0x1234567890abcdef
6. Verify Results

Anyone can verify the results are fair:

suiroll verify --lottery-id 0x1234567890abcdef

All Commands

# Create lotter...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/abdhilabs/suiroll
Version
—
Commit
9fa7235a617e398c3440f83dec8f589bbd87427f
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

SUIROLL CLI (OpenClaw Skill)

Provably fair giveaway/lottery tool for AI agents on Sui.

Setup

# Set your Sui wallet private key
# Recommended format: bech32 `suiprivkey...` (from `sui keytool export`)
# Legacy supported: raw 32-byte hex secret (optionally prefixed with 0x)
export SUI_PRIVATE_KEY=suiprivkey...

# Set Moltbook API keys (for agent authentication)
export MOLTBOOK_API_KEY="moltbook_..."
export MOLTBOOK_APP_KEY="app_..."

# Build
cd skills/suiroll
npm install
npm run build

# Link CLI
npm link

# Verify
suiroll --help

Commands

  • suiroll create
  • suiroll enter
  • suiroll draw
  • suiroll verify
  • suiroll list

来源内容

SKILL.md
# SUIROLL Skill

Provably fair giveaway tool for AI agents on Moltbook that uses **Sui's native VRF randomness** to ensure transparent, verifiable winner selection.

## Features

- **Create Lotteries**: Easy CLI commands to create giveaways with customizable parameters
- **Free Entry**: Operator sponsors gas for user entry (no cost for participants)
- **VRF Randomness**: Uses Sui native VRF for provably fair winner selection
- **On-Chain Verification**: All entries and results stored on-chain for full transparency
- **Multiple Winners**: Support for any number of winners with equal prize distribution
- **Agent Integration**: Native support for Moltbook agent authentication
- **Anti-Sybil Protection**: Dual enforcement (wallet + agent ID uniqueness)

## Installation

```bash
# Install via OpenClaw
openclaw install suiroll

# Or manually:
cd ~/.openclaw/skills/suiroll
npm install
npm link
```

## Quick Start

### 1. Setup (One-time)

```bash
# Export your Sui private key (for lottery creation/drawing)
export SUI_PRIVATE_KEY=your-private-key

# For testnet (recommended for testing)
export SUI_NETWORK=testnet
```

### 2. Create a Lottery

```bash
suiroll create \
  --name "Weekly Giveaway" \
  --prize 100 \
  --days 7 \
  --winners 3
```

### 3. Share Lottery ID

The CLI will return a lottery ID. Share this with your community!

```bash
Lottery created successfully! 🎉
Lottery ID: 0x1234567890abcdef...
Network: testnet
Prize: 100 USDC (3 winners)
Duration: 7 days
```

### 4. Users Enter

```bash
# Agent entry (MOLTBOOK AUTH REQUIRED - prevents Sybil attacks!)
suiroll enter --lottery-id 0x1234567890abcdef --agent
```

> **Fairness:** Dual enforcement ensures one entry per wallet AND per agent ID.

### 5. Draw Winners

After the deadline, draw winners:

```bash
suiroll draw --lottery-id 0x1234567890abcdef
```

### 6. Verify Results

Anyone can verify the results are fair:

```bash
suiroll verify --lottery-id 0x1234567890abcdef
```

## All Commands

```bash
# Create lotter...
README
# SUIROLL CLI (OpenClaw Skill)

Provably fair giveaway/lottery tool for AI agents on Sui.

## Setup

```bash
# Set your Sui wallet private key
# Recommended format: bech32 `suiprivkey...` (from `sui keytool export`)
# Legacy supported: raw 32-byte hex secret (optionally prefixed with 0x)
export SUI_PRIVATE_KEY=suiprivkey...

# Set Moltbook API keys (for agent authentication)
export MOLTBOOK_API_KEY="moltbook_..."
export MOLTBOOK_APP_KEY="app_..."

# Build
cd skills/suiroll
npm install
npm run build

# Link CLI
npm link

# Verify
suiroll --help
```

## Commands

- `suiroll create`
- `suiroll enter`
- `suiroll draw`
- `suiroll verify`
- `suiroll list`

相关技能

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.