Struct solana_core::test_validator::TestValidatorGenesis[][src]

pub struct TestValidatorGenesis { /* fields omitted */ }

Implementations

impl TestValidatorGenesis[src]

pub fn ledger_path<P: Into<PathBuf>>(&mut self, ledger_path: P) -> &mut Self[src]

pub fn fee_rate_governor(
    &mut self,
    fee_rate_governor: FeeRateGovernor
) -> &mut Self
[src]

pub fn rent(&mut self, rent: Rent) -> &mut Self[src]

pub fn rpc_config(&mut self, rpc_config: JsonRpcConfig) -> &mut Self[src]

pub fn rpc_port(&mut self, rpc_port: u16) -> &mut Self[src]

pub fn warp_slot(&mut self, warp_slot: Slot) -> &mut Self[src]

pub fn bpf_jit(&mut self, bpf_jit: bool) -> &mut Self[src]

pub fn add_account(&mut self, address: Pubkey, account: Account) -> &mut Self[src]

Add an account to the test environment

pub fn add_accounts<T>(&mut self, accounts: T) -> &mut Self where
    T: IntoIterator<Item = (Pubkey, Account)>, 
[src]

pub fn clone_accounts<T>(
    &mut self,
    addresses: T,
    rpc_client: &RpcClient
) -> &mut Self where
    T: IntoIterator<Item = Pubkey>, 
[src]

pub fn add_account_with_file_data(
    &mut self,
    address: Pubkey,
    lamports: u64,
    owner: Pubkey,
    filename: &str
) -> &mut Self
[src]

Add an account to the test environment with the account data in the provided filename

pub fn add_account_with_base64_data(
    &mut self,
    address: Pubkey,
    lamports: u64,
    owner: Pubkey,
    data_base64: &str
) -> &mut Self
[src]

Add an account to the test environment with the account data in the provided as a base 64 string

pub fn add_program(
    &mut self,
    program_name: &str,
    program_id: Pubkey
) -> &mut Self
[src]

Add a BPF program to the test environment.

program_name will also used to locate the BPF shared object in the current or fixtures directory.

pub fn add_programs_with_path(&mut self, programs: &[ProgramInfo]) -> &mut Self[src]

Add a list of programs to the test environment. pub fn add_programs_with_path<’a>(&’a mut self, programs: &ProgramInfo) -> &’a mut Self {

pub fn start_with_mint_address(
    &self,
    mint_address: Pubkey
) -> Result<TestValidator, Box<dyn Error>>
[src]

Start a test validator with the address of the mint account that will receive tokens created at genesis.

pub fn start(&self) -> (TestValidator, Keypair)[src]

Start a test validator

Returns a new TestValidator as well as the keypair for the mint account that will receive tokens created at genesis.

This function panics on initialization failure.

Trait Implementations

impl Default for TestValidatorGenesis[src]

Auto Trait Implementations

impl RefUnwindSafe for TestValidatorGenesis

impl Send for TestValidatorGenesis

impl Sync for TestValidatorGenesis

impl Unpin for TestValidatorGenesis

impl UnwindSafe for TestValidatorGenesis

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]