Crate saturn_mempool_oracle

Crate saturn_mempool_oracle 

Source

Re-exports§

pub use saturn_mempool_oracle_sdk as sdk;

Structs§

MempoolEntries
MempoolEntry
MempoolEntry structure for the smart contract
Txid
Reduced size Txid for storing in accounts.
UpdateMempoolEntries

Enums§

CpiErrorCode
PdaError
UpdateMempoolEntriesInstruction
UpdateMempoolEntriesOp

Constants§

ID
MEMPOOL_ORACLE_ACCOUNTS
IMPORTANT! When updating this value, the existing state of the contract will become invalid. Either reset the contract state or implement a way to update the state so it’s valid when this changes.
OWNER_PUBKEY

Functions§

check_pda_accounts
Verify that each entry in accounts matches the PDA derived on-the-fly for its index. Returns Ok(()) on success or a ProgramError::Custom with [ErrorCode::InvalidPda] (value 1) on the first mismatch.
entrypoint
Safety
exec_mempool_cpi
find_all_accounts
Helper that returns all PDAs for a given program assuming the sequential seed scheme described in mempool_pda_address.
find_fixed_accounts
Fixed-size variant that returns an array of (Pubkey, bump) pairs.
get_mempool_data
id
mempool_pda_address
Return the PDA (and bump) for a mempool-oracle state account idx.
process_instruction