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. - Taker
Slots - The account slots a probe rewrites, as indices into
instruction.accounts. - Template
Account - One account meta of a
TemplateInstruction. - 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§
- 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.