pub enum TxResolver {
LiquidityArrays {
pool: Address,
input_mint: Address,
array_key_indices: ArrayKeyIndices,
},
QuoteStamp,
Requote {
dex: Address,
input_mint: Address,
output_mint: Address,
amount: u64,
slippage_bps: u16,
},
}Expand description
How a ScheduledAction rewrites its transactions from live state each time it fires.
Only valid for kind: simulate and without feeds_reroute.
Tagged by type; fields are camelCase: {"type": "liquidityArrays", "pool": "…", "inputMint": "…", "arrayKeyIndices": [3, 4]}.
Variants§
LiquidityArrays
Points a single-pool swap at the liquidity arrays (CLMM tick arrays) it reads at the pool’s price when the action fires, instead of the ones it was built with. The action’s one transaction must be v0 with no address lookup tables, and every array key index must name a static key that is neither a signer nor an invoked program.
Fields
array_key_indices: ArrayKeyIndicesIndices into the transaction’s static account keys holding the swap’s liquidity arrays, in the order the swap reads them.
QuoteStamp
Re-stamps each transaction’s one-step Jupiter route through a venue that prices a stale
quote short (Scorch, Flux) as quoted at the slot the action fires. The transaction must
carry such a route. Unlike liquidityArrays, a slot anchor may repeat the transaction
once per slot.
Requote
Replaces each transaction’s one-step Jupiter route with the one the session’s metis router quotes for these terms, for a venue whose quote stamp only its own router can issue (HumidiFi). The route is quoted ahead of the slots it fires at and reused only while its stamp is fresh, and the router’s accounts must be the ones the transaction already names. Needs the metis sidecar, which the session then starts.