Crate switchboard_v2

source ·

Re-exports

pub use aggregator::AggregatorAccountData;
pub use aggregator::AggregatorRound;
pub use buffer_relayer::BufferRelayerAccountData;
pub use buffer_relayer::BufferRelayerRound;
pub use crank::CrankAccountData;
pub use crank::CrankRow;
pub use decimal::SwitchboardDecimal;
pub use error::SwitchboardError;
pub use history_buffer::AggregatorHistoryBuffer;
pub use history_buffer::AggregatorHistoryRow;
pub use job::JobAccountData;
pub use oracle::OracleAccountData;
pub use oracle::OracleMetrics;
pub use permission::PermissionAccountData;
pub use permission::PermissionSet;
pub use permission::SwitchboardPermission;
pub use queue::OracleQueueAccountData;
pub use sb_state::SbState;
pub use vrf::AccountMetaBorsh;
pub use vrf::AccountMetaZC;
pub use vrf::Callback;
pub use vrf::CallbackZC;
pub use vrf::VrfAccountData;
pub use vrf::VrfRequestRandomness;
pub use vrf::VrfRound;
pub use vrf::VrfSetCallback;
pub use vrf::VrfStatus;

Modules

Constants

Discriminator used for Switchboard buffer accounts.
Seed used to derive the LeaseAccountData PDA.
Seed used to derive the OracleAccountData PDA.
Seed used to derive the PermissionAccountData PDA.
Seed used to derive the SbState PDA.
Switchboard Program ID.
Devnet program id for Switchboard v2
Seed used to derive the SlidingWindow PDA. Mainnet program id for Switchboard v2

Statics

The static program ID

Functions

Confirms that a given pubkey is equivalent to the program ID
Returns the program ID