Crate poc_framework

Source

Re-exports§

pub use bincode;
pub use borsh;
pub use serde;
pub use solana_client;
pub use solana_program;
pub use solana_sdk;
pub use solana_transaction_status;
pub use spl_associated_token_account;
pub use spl_memo;
pub use spl_token;

Structs§

LocalEnvironment
An clean environment that executes transactions locally. Good for testing and debugging. This environment has the most important SPL programs: spl-token, spl-associated-token-account and spl-memo v1 and v3.
LocalEnvironmentBuilder
RemoteEnvironment
A remote environment on a cluster. Interacts with the cluster using RPC.

Enums§

LogLevel

Traits§

Environment
A generic Environment trait. Provides the possibility of writing generic exploits that work both remote and local, for easy debugging.
PrintableTransaction
Utility trait for printing transaction results.

Functions§

clone_keypair
Clone the given keypair.
devnet_client
Constructs a devnet client using CommitmentConfig::confirmed().
keypair
Return a recognisable Keypair. The public key will start with Kxxx, where xxx are the three digits of the number. o is used instead of 0, as 0 is not part of the base58 charset.
localhost_client
Constructs a client connecting to localhost:8899 using CommitmentConfig::confirmed().
random_keypair
Generate a random keypair.
setup_logging
Setup solana logging. This is heavily recommended if you’re using a local environment.
testnet_client
Constructs a testnet client using CommitmentConfig::confirmed().