Crate magicblock_magic_program_api

Crate magicblock_magic_program_api 

Source

Re-exports§

pub use solana_program::pubkey;

Modules§

args
instruction

Macros§

declare_id
Convenience macro to declare a static public key and functions to interact with it.
pubkey
Convenience macro to define a static public key.

Structs§

Pubkey
The address of a Solana account.

Constants§

ID
The const program ID.
MAGIC_CONTEXT_PUBKEY
MAGIC_CONTEXT_SIZE
We believe 5MB should be enough to store all scheduled commits within a slot. Once we store more data in the magic context we need to reconsicer this size. NOTE: the default max accumulated account size per transaction is 64MB. See: MAX_LOADED_ACCOUNTS_DATA_SIZE_BYTES inside program-runtime/src/compute_budget_processor.rs

Functions§

check_id
Returns true if given pubkey is the program ID.
id
Returns the program ID.