Expand description
Caller-supplied venue 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. - Frame
Patch - A little-endian u64 in the data of one top-level instruction.
- Taker
Slots - The account slots a probe rewrites, as indices into
instruction.accounts. - Template
Account - One account meta of a
TemplateInstruction. - Template
Frame - A landed transaction fired whole as
taker.fixedUser, its fee payer, for a venue that refuses any caller but its own router. Onlypatchesare rewritten per probe. - Template
Instruction - The template’s single instruction, sent verbatim except the role slots’ addresses and the amount bytes.
- Venue
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.
Enums§
- Frame
Field - What a
FramePatchis set to. - Frame
Read - Where a frame’s fill lands.
- Parse
Venue Template Error - Why a supplied template could not be used.
- Seed
- One seed of a
DerivedAccount:{"utf8": "<text>"}or"user"on the wire. - Template
Resolver - What a template has refreshed at each probe pass before its probes are instantiated.
Constants§
- AMOUNT_
WIDTH - The width of the little-endian amount a template’s
amountOffsetaddresses.