Skip to content

Inspect Mint#18

Merged
ngundotra merged 4 commits intosolana-foundation:mainfrom
ngundotra:cli/inspect-mint
Jul 31, 2025
Merged

Inspect Mint#18
ngundotra merged 4 commits intosolana-foundation:mainfrom
ngundotra:cli/inspect-mint

Conversation

@ngundotra
Copy link
Copy Markdown
Contributor

@ngundotra ngundotra commented Jul 30, 2025

Needs work on pattern matching Stablecoin versus Arcade token

cli git:(main) ✗ pnpm dev inspect-mint -m AyFaNBUvTTRk2Gb5aeNbTRrycYF7ZNmv71UzRhpY1xDU

> @mosaic/cli@0.1.0 dev /Users/noahgundotra/Documents/mosaic/packages/cli
> tsx src/index.ts "inspect-mint" "-m" "AyFaNBUvTTRk2Gb5aeNbTRrycYF7ZNmv71UzRhpY1xDU"

⠋ Fetching mint information...
Using RPC URL: https://api.devnet.solana.com
✔ Mint information loaded!

📋 Mint Details:
   Address: AyFaNBUvTTRk2Gb5aeNbTRrycYF7ZNmv71UzRhpY1xDU
   Decimals: 6
   Supply: 0
   Is Initialized: true
   Mint Authority: CyJj5ejJAUveDXnLduJbkvwjxcmWJNqCuB9DR7AExrHn
   Freeze Authority: CyJj5ejJAUveDXnLduJbkvwjxcmWJNqCuB9DR7AExrHn

📝 Metadata:
   Name: Mosaic USD
   Symbol: mUSD
   Mint: AyFaNBUvTTRk2Gb5aeNbTRrycYF7ZNmv71UzRhpY1xDU
   Update Authority: CyJj5ejJAUveDXnLduJbkvwjxcmWJNqCuB9DR7AExrHn

🔧 Token Extensions:
   ✓ ConfidentialTransferMint
   ✓ DefaultAccountState
   ✓ MetadataPointer
   ✓ Pausable
   ✓ PausableConfig
   ✓ PermanentDelegate
   ✓ TokenMetadata

🎯 Token Type Detection:
   ✓ Stablecoin (matches all required extensions)
   ✗ Arcade Token
     Has unexpected: ConfidentialTransferMint

🔍 Extension Details:
   MetadataPointer:
     Authority: CyJj5ejJAUveDXnLduJbkvwjxcmWJNqCuB9DR7AExrHn
     Metadata Address: AyFaNBUvTTRk2Gb5aeNbTRrycYF7ZNmv71UzRhpY1xDU
   PausableConfig:
     Authority: CyJj5ejJAUveDXnLduJbkvwjxcmWJNqCuB9DR7AExrHn
     Paused: false
   DefaultAccountState:
     State: 1
   ConfidentialTransferMint:
     Authority: CyJj5ejJAUveDXnLduJbkvwjxcmWJNqCuB9DR7AExrHn
     Auto-approve: false
   PermanentDelegate:
     Delegate: CyJj5ejJAUveDXnLduJbkvwjxcmWJNqCuB9DR7AExrHn
   TokenMetadata:
     Name: Mosaic USD
     Symbol: mUSD
     URI:

Important

Adds inspect-mint command to CLI for inspecting token mints and updates dependencies.

  • New Command:
    • Adds inspect-mint command in inspect-mint.ts to inspect token mints and display extensions.
    • Checks for Stablecoin and Arcade Token types based on extensions and pausable status.
  • Dependencies:
    • Adds @solana-program/token, @solana/addresses, @solana/accounts, and bs58 to package.json.
  • Integration:
    • Integrates inspectMintCommand into CLI in index.ts.

This description was created by Ellipsis for f0719da. You can customize this summary. It will automatically update as commits are pushed.

"ora": "^8.0.1",
"gill": "^0.10.2"
"gill": "^0.10.2",
"@solana-program/token": "^0.5.1",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I've been importing this through gill

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🐕

@ngundotra ngundotra merged commit 5416ca6 into solana-foundation:main Jul 31, 2025
2 checks passed
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