Module utils

Source
Expand description

Utils.

Re-exports§

pub use self::fixed::signed_amount_to_decimal;
pub use self::fixed::signed_fixed_to_decimal;
pub use self::fixed::signed_value_to_decimal;
pub use self::fixed::unsigned_amount_to_decimal;
pub use self::fixed::unsigned_fixed_to_decimal;
pub use self::fixed::unsigned_value_to_decimal;
pub use self::instruction::serialize_instruction;
pub use self::rpc::accounts::account_with_context;
pub use self::rpc::accounts::accounts_lazy_with_context;
pub use self::rpc::accounts::ProgramAccountsConfig;
pub use self::rpc::context::WithContext;
pub use self::rpc::pubsub::PubsubClient;
pub use self::rpc::pubsub::SubscriptionConfig;
pub use self::rpc::transaction_history::fetch_transaction_history_with_config;
pub use self::signer::local_signer;
pub use self::signer::shared_signer;
pub use self::signer::LocalSignerRef;
pub use self::signer::SignerRef;
pub use self::token::price_to_min_output_amount;
pub use self::workarounds::optional::fix_optional_account_metas;
pub use self::workarounds::zero_copy::try_deserailize_zero_copy_account;
pub use self::workarounds::zero_copy::ZeroCopy;
pub use rpc::transaction_history::extract_cpi_events;

Modules§

builder
Utils for action builders.
fixed
Utils for fixed-point numbers.
instruction
Instruction utils.
rpc
Solana RPC utils.
signer
Signer.
token
Utils for token calculation.
workarounds
Workarounds

Structs§

TokenAccountParams
Token Account Params.
WithSlot
With Slot.

Constants§

EVENT_AUTHORITY_SEED
Event authority SEED.

Functions§

view
View the return data by simulating the transaction.