Skip to content

Mint token batches across chained transactions - #55

Merged
Nebyt merged 3 commits into
mainfrom
feat/batch-token-mint
Aug 24, 2026
Merged

Nebyt merged 3 commits into
mainfrom
feat/batch-token-mint

Conversation

@Nebyt

@Nebyt Nebyt commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Build one pooled mint transaction per planned chunk, including optional CIP-68 on the last token.
  • Wire TokenTab to sign/submit each chunk and advance UTxOs locally so later chunks do not double-spend.

Stack

  • Base: feat/csl-mint-helpers
  • Depends on: token-batch-plan and csl-mint-helpers (both are already in this branch)
  • Merge order: plan → CSL mint helpers → this PR

Test plan

  • Single-token mint still works with batching off
  • Small batch (2–3 tokens) produces one tx and listed tx ids
  • Large batch shows the estimated tx count and asks for one signature per chunk
  • CIP-68 last token mints a (333) user token plus a (100) reference token to change

Made with Cursor

Wire planning and CSL mint helpers into TokenTab, including CIP-68 on the last token and progress for each signed chunk.

Co-authored-by: Cursor <cursoragent@cursor.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1be326a. Configure here.

Comment thread src/utils/tokenBatchMint.js
Comment thread src/utils/tokenBatchMint.js
Base automatically changed from feat/csl-mint-helpers to main August 24, 2026 11:27
Nebyt and others added 2 commits August 24, 2026 14:27
add_change_if_needed can emit several change outputs; chaining only the last one dropped ada for later mint chunks. Tickers over 64 bytes now use the same metadatum split as descriptions.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Nebyt
Nebyt merged commit 058bc9f into main Aug 24, 2026
5 checks passed
@Nebyt
Nebyt deleted the feat/batch-token-mint branch August 24, 2026 11:43
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.

1 participant