1.3.0 • Published 7 months ago

eatthepie v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Eat The Pie

Eat The Pie CLI

A command-line interface for interacting with Eat The Pie, the world lottery on World Chain.

⚠️ Disclaimer

Eat The Pie is an autonomous, decentralized lottery on World Chain. A private key with sufficient funds is required to purchase tickets. Participate at your own risk. For complete information about the protocol, please visit docs.eatthepie.xyz.

🚀 Quick Start

Prerequisites

  • Node.js and npm installed
  • A World Chain wallet

Installation

# Install once globally
npm install -g eatthepie

# Then use anywhere with:
eatthepie [command]

📝 Deployed Contracts

NetworkAddress
World Chain0x44b340051a31d216f83428b447dba2c102dff373

Commands

Setup & Configuration

  • setup - Initial setup
  • config - View configuration

Game Actions

  • buy - Purchase a lottery ticket
  • status - Get current game status
  • game-info - Get detailed game information
  • did-i-win - Check if you won
  • ticket-history - Get ticket purchase history

Prize & NFT Management

  • claim-prize - Claim winnings
  • mint-nft - Mint NFT for jackpot winner

Draw & Verification

  • initiate-draw - Initiate draw for the current game
  • complete-draw - Complete draw for the current game
  • calculate-payouts - Calculate prize distribution

Difficulty Management

  • difficulty-info - View current difficulty settings
  • change-difficulty - Change difficulty parameters

Development

# Clone the repository
git clone https://github.com/eatthepie/cli
cd cli

# Install dependencies
npm install

# Run a command
npm run start [command]

License

MIT

1.3.0

7 months ago

1.2.0

7 months ago

1.1.0

8 months ago

1.0.0

9 months ago