Skip to main content

Module venue

Module venue 

Source
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§

DerivedAccount
A program address derived from seeds under program, written into every one of slots.
TakerSlots
The account slots a probe rewrites, as indices into instruction.accounts.
TemplateAccount
One account meta of a TemplateInstruction.
TemplateInstruction
The template’s single instruction, sent verbatim except the role slots’ addresses and the amount bytes.
VenueTemplate
One instruction the caller serialized, with the slots the server rewrites per probe and the offset it writes the amount at. Matches hops of mode originals trading inputMint → outputMint and is priced against each such hop’s realized fill.

Enums§

ParseVenueTemplateError
Why a supplied template could not be used.
Seed
One seed of a DerivedAccount: {"utf8": "<text>"} or "user" on the wire.
TemplateResolver
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 amountOffset addresses.