Skip to content

Conversation

@mkysel
Copy link
Collaborator

@mkysel mkysel commented Sep 16, 2025

Add a hidden settlement underlying-mint CLI command and implement settlementChainAdmin.MintMockUSDC with amount bounds ≤ 10,000,000,000 for minting mock underlying fee tokens

  • Add a hidden underlying-mint subcommand under settlement in settlement.go that mints mock underlying fee tokens with --to, --amount, and --raw flags, delegating to settleUnderlyingMintHandler.
  • Introduce MintMockUSDC(ctx, addr, amount) error on ISettlementChainAdmin and implement it in settlement_chain_admin.go using a MockUnderlyingFeeToken binding to perform on-chain mint with validation and event logging.
  • Generate Go bindings for MockUnderlyingFeeToken in MockUnderlyingFeeToken.go and update ABI generation in abi.
  • Extend config to carry the mock underlying fee token address via JSON and flags/env in blockchain.go, options.go, and validation.go; update test helpers in config.go.
  • Add currency.MicroDollar.ToBigInt() in currency.go.

📍Where to Start

Start with the CLI entrypoint and handler in settlement.go, then follow the call into settlementChainAdmin.MintMockUSDC in settlement_chain_admin.go.

Changes since #1129 opened

  • Modified settlementChainAdmin.MintMockUSDC method to parse MockUnderlyingFeeToken Transfer events instead of Migrated events [165963e]

Macroscope summarized 165963e.

@mkysel mkysel requested a review from a team as a code owner September 16, 2025 17:04
@graphite-app
Copy link

graphite-app bot commented Sep 16, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • Queue - adds this PR to the back of the merge queue
  • Hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@mkysel mkysel merged commit 9da5c9c into main Sep 16, 2025
10 checks passed
@mkysel mkysel deleted the mkysel/hidden-undlerlying-mint branch September 16, 2025 18:23
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