Skip to main content

Module fixtures

Module fixtures 

Source
Expand description

Pump base mints we ship as cloned fixtures for local-validator tests.

clone_devnet_accounts walks this list and pulls each mint plus every per-mint PDA the SDK touches (bonding curve, sharing/creator/v2 PDAs, and — for graduated mints — the post-migration pump_amm Pool and its base/quote/lp accounts). Tests under tests/ reference these by name so the fixture set is the single source of truth.

Adding a new fixture: append a (label, base58_mint) entry below, run cargo run --features local-validator --bin clone_devnet_accounts to refresh artifacts/accounts_to_load.zst, then restart the local validator.

Structs§

FixtureMint
Stable label paired with each fixture mint. Cloning logs and test failure messages use the label so it’s obvious which fixture is involved when something breaks.

Constants§

FIXTURE_MINTS
All fixture mints in cloning order. New entries go at the end so the indices in any test that pins by index stay stable.
GRADUATED_DEVNET_MINT
Devnet mint that has graduated from the bonding curve onto pump_amm. Used by AMM buy/sell tests.
NOT_GRADUATED_DEVNET_MINT
Devnet mint still on the bonding curve. Used by buy_v2 / sell_v2 tests and by the AsyncPumpClient fetch tests.