Struct solana_program_test::ProgramTestContext [−][src]
pub struct ProgramTestContext {
pub banks_client: BanksClient,
pub last_blockhash: Hash,
pub payer: Keypair,
// some fields omitted
}Fields
banks_client: BanksClientlast_blockhash: Hashpayer: KeypairImplementations
pub fn increment_vote_account_credits(
&mut self,
vote_account_address: &Pubkey,
number_of_credits: u64
)
pub fn increment_vote_account_credits(
&mut self,
vote_account_address: &Pubkey,
number_of_credits: u64
)Manually increment vote credits for the current epoch in the specified vote account to simulate validator voting activity
Force the working bank ahead to a new slot
Auto Trait Implementations
impl !RefUnwindSafe for ProgramTestContextimpl Send for ProgramTestContextimpl Sync for ProgramTestContextimpl Unpin for ProgramTestContextimpl !UnwindSafe for ProgramTestContextBlanket Implementations
pub default fn example() -> TMutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V