Expand description
Caller-supplied direct-fill templates: one instruction the server rewrites per probe.
Split from the crate root because the wire shape, its parse errors and its round-trip
tests are one subject, and lib.rs is long enough that adding a ninth unrelated block
to it makes every one of them harder to find.
Structs§
- Derived
Account - A program address derived from
seedsunderprogram, written into every one ofslots. - Direct
Fill Template - One instruction the caller serialized, with the slots the server rewrites per probe and the
offset it writes the amount at. Matches hops of
modeoriginals tradinginputMint→outputMintand is priced against each such hop’s realized fill. - Taker
Slots - The account slots a probe rewrites, as indices into
instruction.accounts. - Template
Account - Template
Instruction - The template’s single instruction, sent verbatim except the role slots’ addresses and the amount bytes.
Enums§
- Parse
Direct Fill Template Error - Why a supplied template could not be used.
- Seed
Constants§
- AMOUNT_
WIDTH - The width of the little-endian amount a template’s
amountOffsetaddresses.