#[non_exhaustive]pub struct BuildTransactionConfig {
pub rpc_config: RpcConfig,
pub fee_config: FeeConfig,
pub compute_config: ComputeConfig,
pub min_context_slot: Option<u64>,
}Expand description
Configuration for building a transaction.
Start with BuildTransactionConfig::default and use the with_*
methods to override individual settings. The struct is non-exhaustive so
future build options can be added without another breaking release.
use orca_tx_sender::BuildTransactionConfig;
let config = BuildTransactionConfig::default().with_min_context_slot(123);
assert_eq!(config.min_context_slot, Some(123));Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rpc_config: RpcConfig§fee_config: FeeConfig§compute_config: ComputeConfig§min_context_slot: Option<u64>Minimum bank slot to use for dynamic compute-unit simulation.
Use the context slot returned when fetching recently changed state, such as an address lookup table, so simulation cannot run against an older bank that does not contain that state yet.
Implementations§
Source§impl BuildTransactionConfig
impl BuildTransactionConfig
pub fn with_rpc_config(self, rpc_config: RpcConfig) -> Self
pub fn with_fee_config(self, fee_config: FeeConfig) -> Self
pub fn with_compute_config(self, compute_config: ComputeConfig) -> Self
Sourcepub fn with_min_context_slot(self, min_context_slot: u64) -> Self
pub fn with_min_context_slot(self, min_context_slot: u64) -> Self
Require dynamic compute-unit simulation to use a bank at least as
recent as min_context_slot.
Trait Implementations§
Source§impl Debug for BuildTransactionConfig
impl Debug for BuildTransactionConfig
Source§impl Default for BuildTransactionConfig
impl Default for BuildTransactionConfig
Source§fn default() -> BuildTransactionConfig
fn default() -> BuildTransactionConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BuildTransactionConfig
impl RefUnwindSafe for BuildTransactionConfig
impl Send for BuildTransactionConfig
impl Sync for BuildTransactionConfig
impl Unpin for BuildTransactionConfig
impl UnwindSafe for BuildTransactionConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more