pub struct BuiltBundle {
pub transactions: Vec<VersionedTransaction>,
pub tip_account: Pubkey,
pub tip_lamports: u64,
pub tip_mode: TipMode,
pub instruction_slots: BundleInstructionSlots,
}Expand description
Final bundle artifact ready for simulation and submission.
Fields§
§transactions: Vec<VersionedTransaction>Fully compiled and signed versioned transactions.
tip_account: PubkeyChosen Jito tip account.
tip_lamports: u64Effective tip amount in lamports.
tip_mode: TipModeHow the tip instruction was inserted.
instruction_slots: BundleInstructionSlotsPost-compaction instruction slots used to build the transactions.
Implementations§
Source§impl BuiltBundle
impl BuiltBundle
Sourcepub fn new(
transactions: Vec<VersionedTransaction>,
tip_account: Pubkey,
tip_lamports: u64,
tip_mode: TipMode,
instruction_slots: BundleInstructionSlots,
) -> Self
pub fn new( transactions: Vec<VersionedTransaction>, tip_account: Pubkey, tip_lamports: u64, tip_mode: TipMode, instruction_slots: BundleInstructionSlots, ) -> Self
Creates a new built bundle value.
Sourcepub fn instruction_slots(&self) -> &BundleInstructionSlots
pub fn instruction_slots(&self) -> &BundleInstructionSlots
Returns the post-compaction instruction slots.
Trait Implementations§
Source§impl BundleSlotView for BuiltBundle
impl BundleSlotView for BuiltBundle
Source§fn instruction_slots(&self) -> &BundleInstructionSlots
fn instruction_slots(&self) -> &BundleInstructionSlots
Returns the post-compaction instruction slots.
Source§fn populated_count(&self) -> usize
fn populated_count(&self) -> usize
Counts non-empty instruction slots.
Source§fn last_populated_index(&self) -> Option<usize>
fn last_populated_index(&self) -> Option<usize>
Returns the index of the last non-empty slot.
Auto Trait Implementations§
impl Freeze for BuiltBundle
impl RefUnwindSafe for BuiltBundle
impl Send for BuiltBundle
impl Sync for BuiltBundle
impl Unpin for BuiltBundle
impl UnsafeUnpin for BuiltBundle
impl UnwindSafe for BuiltBundle
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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