-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
Summary
Add CLI commands to quote and purchase starterpacks.
Commands
controller starterpack quote [id]
Queries the starterpack contract quote entrypoint to retrieve the required payment token and amount, then displays it to the user.
controller starterpack purchase [id]
Purchase a starterpack. Mode is specified via flags:
--ui (UI Mode)
Opens a UI for the user to complete the purchase manually. Supports:
- Controller wallet funds
- Starknet external wallets
- Crosschain purchases via EVM wallets
- Apple Pay (coming soon)
--direct (Direct Mode)
Executes the purchase directly against the starterpack contract (issue entrypoint) using funds from the Controller wallet. Requires sufficient balance in the required payment token.
Starterpack Contract
- Contract address is hardcoded from the arcade repo
quoteentrypoint — returns the payment token and amount requiredissueentrypoint — executes the purchase
Notes
- UI mode is the most flexible path (external wallets, crosschain, Apple Pay)
- Direct mode skips the UI when funds are already available in the right token on the Controller
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels