feat: add marketplace commands (buy, info)#46
Merged
broody merged 3 commits intocartridge-gg:mainfrom Feb 22, 2026
Merged
Conversation
Add CLI commands for interacting with the Arcade marketplace: - `controller marketplace info` - Query order validity and details - `controller marketplace buy` - Purchase NFTs from listings Includes: - Detailed PRD with TDD test specifications - u256 encoding utilities for proper calldata formatting - Policy validation for session security - Full integration with Controller session system Closes the gap for clean marketplace purchases without calldata ambiguity. See docs/PRD-marketplace-commands.md for full specification.
- Fix primitive_types dependency by using starknet Felt directly - Fix formatting issues in info.rs and mod.rs - Add marketplace section to LLM_USAGE.md - Add marketplace commands to SKILL.md - Add marketplace tools to .claude/skills/controller-skill/skill.md
- Add AGENTS.md with PR guidelines and code style conventions - Fix unused STRK_TOKEN constant warning (allow dead_code) - Fix collapsible else if in info.rs - Allow too_many_arguments for build_execute_calldata
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add CLI commands for interacting with the Arcade marketplace, enabling users to purchase NFTs from listings without calldata ambiguity.
Commands Added
controller marketplace infoQuery order validity and details before purchasing.
controller marketplace buyPurchase an NFT from a marketplace listing.
Implementation Details
get_validitybefore attempting purchasestarterpackcommandsFiles Changed
src/commands/marketplace/mod.rs- Module with shared utilitiessrc/commands/marketplace/info.rs- Order info query commandsrc/commands/marketplace/buy.rs- Purchase commandsrc/main.rs- CLI command registrationdocs/PRD-marketplace-commands.md- Full PRD with TDD specsTesting
Includes unit tests for:
Related
arcade/contracts/src/systems/marketplace.cairostarterpackcommands