Skip to content

feat(ENG-283): Store market and vault bump seeds in MarketHeader#52

Merged
alnoki merged 4 commits intomainfrom
eng-283
Apr 3, 2026
Merged

feat(ENG-283): Store market and vault bump seeds in MarketHeader#52
alnoki merged 4 commits intomainfrom
eng-283

Conversation

@alnoki
Copy link
Copy Markdown
Contributor

@alnoki alnoki commented Apr 3, 2026

Changes

  1. Add market_data_header (MarketHeader) and market_data_bytes
    (u8) fields to InputBufferHeader, placing market account data
    at a compile-time-known offset from r1
  2. Add MARKET_DATA_NEXT, MARKET_DATA_BUMP,
    MARKET_DATA_BASE_VAULT_BUMP, MARKET_DATA_QUOTE_VAULT_BUMP,
    and MARKET_DATA_BYTES offset constants to the input_buffer
    constant group
  3. Extend INIT-MARKET-PDA to initialize MarketHeader.next to
    the first allocatable byte after the header and store the
    derived market PDA bump seed
  4. Extend REGISTER-MARKET to store the base and quote vault PDA
    bump seeds in MarketHeader after each INIT-VAULT call
  5. Update INIT-MARKET-PDA and REGISTER-MARKET algorithm specs
    with new ensure annotations and pseudocode for the bump and
    next pointer assignments
  6. Add check_market_header_bumps test helper that verifies
    next against MM_INPUT_START + MARKET_DATA_BYTES, and all
    three bump seeds against find_program_address results
  7. Add solana-sbpf test dependency for the MM_INPUT_START
    constant
  8. Update inputs.md prose to describe the MarketHeader overlay
    and market_data_bytes initialization target

@linear
Copy link
Copy Markdown

linear bot commented Apr 3, 2026

ENG-283

@alnoki alnoki changed the title ENG-283 feat(ENG-283): Store market and vault bump seeds in MarketHeader Apr 3, 2026
@alnoki alnoki marked this pull request as ready for review April 3, 2026 01:29
@alnoki alnoki merged commit 482def1 into main Apr 3, 2026
5 of 6 checks passed
@alnoki alnoki deleted the eng-283 branch April 3, 2026 01:30
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