eatthepie
Version:
Command line app for interacting with Eat The Pie, the world lottery on World Chain.
82 lines (52 loc) • 1.88 kB
Markdown

# 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](https://docs.eatthepie.xyz).
## 🚀 Quick Start
### Prerequisites
- Node.js and npm installed
- A World Chain wallet
### Installation
```bash
# Install once globally
npm install -g eatthepie
# Then use anywhere with:
eatthepie [command]
```
## 📝 Deployed Contracts
| Network | Address |
| ----------- | -------------------------------------------- |
| World Chain | `0x44b340051a31d216f83428b447dba2c102dff373` |
## 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
```bash
# 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