Skip to content

Solana: surface the instruction discriminator in jupiter_swap and orca_whirlpool #389

Description

@prasanna-anchorage

Problem

jupiter_swap and orca_whirlpool are Anchor/IDL presets that do not surface the instruction discriminator in their expanded view, unlike every other Anchor preset (drift, kamino_, meteora_, metadao_*, jupiter_{perps,earn,borrow}, exponent_finance, onre_app, neutral_trade, squads_multisig, swig_wallet, dflow_aggregator).

They are currently grandfathered into DISCRIMINATOR_ALLOWLIST in chain_parsers/visualsign-solana/tests/preset_conventions.rs.

Fix

Add to each preset's expanded fields:

expanded_fields.push(create_text_field("Discriminator", &parsed.discriminator)?);

Then remove jupiter_swap and orca_whirlpool from DISCRIMINATOR_ALLOWLIST and update any affected fixtures/tests.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions