Skip to content

feat: starterpack quote and purchase commands #41

@broodling-bot

Description

@broodling-bot

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
  • quote entrypoint — returns the payment token and amount required
  • issue entrypoint — 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions