eatthepie
v1.1.0
Published
Command line app for interacting with Eat The Pie, the world lottery on Ethereum.
Downloads
147
Maintainers
Readme
Eat The Pie CLI
A command-line interface for interacting with Eat The Pie, the world lottery on Ethereum.
⚠️ Disclaimer
Eat The Pie is an autonomous, decentralized lottery on Ethereum. An Ethereum 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
- An Ethereum private key with ETH for transactions
Installation
# Install once globally
npm install -g eatthepie
# Then use anywhere with:
eatthepie [command]
📝 Deployed Contracts
| Network | Address |
| ----------- | -------------------------------------------- |
| Mainnet | 0x043c9ae2764B5a7c2d685bc0262F8cF2f6D86008
|
| World Chain | 0xB3406E515b7fA46c0Ba0E8A65e15D459A44E2de4
|
| Sepolia | 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 gameset-randao
- Set RANDAO value for the gamesubmit-vdf-proof
- Submit current game's VDF proofverify-vdf
- Verify a previous game's VDF proofcalculate-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