Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 5, 2025

Adds new CTA components for pre-minting vouchers and reserving token ranges in price discovery offers.

Changes

  • PreMintButton: New component for pre-minting vouchers with loading states and transaction handling
  • ReserveRangeButton: Component for reserving token ranges with similar UX patterns
  • Price Discovery Support: Updated Price component, ProductCard, and offer detail views to handle price discovery offers (where exchangeToken.decimals === 0)
  • SDK Enhancement: Added minted property to range GraphQL queries and subgraph types
  • Component Exports: Added new buttons to react-kit index exports

Usage

import { PreMintButton, ReserveRangeButton } from "@bosonprotocol/react-kit";

// Pre-mint vouchers for an offer
<PreMintButton
  offerId="123"
  quantity={5}
  onSuccess={(receipt) => console.log('Minted!', receipt)}
/>

// Reserve a token range
<ReserveRangeButton
  offerId="123"
  length={100}
  onSuccess={(receipt) => console.log('Reserved!', receipt)}
/>

Price discovery offers now display "Price Discovery" instead of attempting to format zero-decimal exchange tokens.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI changed the title [WIP] Add PreMintButton and ReserveRangeButton feat: add PreMintButton and ReserveRangeButton components Nov 5, 2025
Copilot AI requested a review from levalleux-ludo November 5, 2025 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants