Rechercher

PythonReactSEOPDF
OpenClaw

suiroll

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

abdhilabs0 installations selon la source☆ 0 Étoiles du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

SkillHub CLI

skillhub install abdhilabs/suiroll

Examinez la source et la compatibilité, puis suivez les étapes d’installation.

Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.

Voir la source ↗Guides

Instructions

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...

Informations sur la source

Source
github
Repository
openclaw/skills
Path
skills/abdhilabs/suiroll
Version
—
Commit
9fa7235a617e398c3440f83dec8f589bbd87427f
Source de classification
rules
Statut
active
Visibilité
public

Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.

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

Contenu extrait

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`

Skills associés

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.