1.3.0 • Published 7 months ago
eatthepie v1.3.0
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
Network | Address |
---|---|
World Chain | 0x44b340051a31d216f83428b447dba2c102dff373 |
Commands
Setup & Configuration
setup
- Initial setupconfig
- View configuration
Game Actions
buy
- Purchase a lottery ticketstatus
- Get current game statusgame-info
- Get detailed game informationdid-i-win
- Check if you wonticket-history
- Get ticket purchase history
Prize & NFT Management
claim-prize
- Claim winningsmint-nft
- Mint NFT for jackpot winner
Draw & Verification
initiate-draw
- Initiate draw for the current gamecomplete-draw
- Complete draw for the current gamecalculate-payouts
- Calculate prize distribution
Difficulty Management
difficulty-info
- View current difficulty settingschange-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