Re-exports§
pub use saturn_mempool_oracle_sdk as sdk;
Structs§
- Mempool
Entries - Mempool
Entry - MempoolEntry structure for the smart contract
- Txid
- Reduced size Txid for storing in accounts.
- Update
Mempool Entries
Enums§
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. ReturnsOk(())
on success or aProgramError::Custom
with [ErrorCode::InvalidPda
] (value1
) 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