v0.1.0-pre.011
This commit is contained in:
@@ -4,25 +4,24 @@
|
||||
//! Local constants for the `kb-lib` SPL Associated Token Account component.
|
||||
|
||||
/// Stable protocol and surface code for the Associated Token Account program.
|
||||
pub(crate) const SPL_ASSOCIATED_TOKEN_ACCOUNT_SURFACE_CODE: &str = "spl_associated_token_account";
|
||||
pub(crate) const DC_SPL_ATA_SURFACE_CODE: &str = "spl_associated_token_account";
|
||||
/// Current stable decoded event contract version.
|
||||
pub(crate) const SPL_ASSOCIATED_TOKEN_ACCOUNT_EVENT_VERSION: u32 = 1;
|
||||
pub(crate) const DC_SPL_ATA_EVENT_VERSION: u32 = 1;
|
||||
/// Maximum retained instruction payload size.
|
||||
pub(crate) const SPL_ASSOCIATED_TOKEN_ACCOUNT_MAX_INSTRUCTION_BYTES: usize = 64;
|
||||
pub(crate) const DC_SPL_ATA_MAX_INSTRUCTION_BYTES: usize = 64;
|
||||
/// Maximum retained instruction account count.
|
||||
pub(crate) const SPL_ASSOCIATED_TOKEN_ACCOUNT_MAX_ACCOUNTS: usize = 64;
|
||||
pub(crate) const DC_SPL_ATA_MAX_ACCOUNTS: usize = 64;
|
||||
/// Maximum retained transaction account-key count.
|
||||
pub(crate) const SPL_ASSOCIATED_TOKEN_ACCOUNT_MAX_TRANSACTION_KEYS: usize = 4_096;
|
||||
pub(crate) const DC_SPL_ATA_MAX_TRANSACTION_KEYS: usize = 4_096;
|
||||
/// Maximum retained account-key text length.
|
||||
pub(crate) const SPL_ASSOCIATED_TOKEN_ACCOUNT_MAX_ACCOUNT_KEY_BYTES: usize = 128;
|
||||
pub(crate) const DC_SPL_ATA_MAX_ACCOUNT_KEY_BYTES: usize = 128;
|
||||
/// Maximum retained semantic diagnostic count.
|
||||
pub(crate) const SPL_ASSOCIATED_TOKEN_ACCOUNT_MAX_DIAGNOSTICS: usize = 32;
|
||||
pub(crate) const DC_SPL_ATA_MAX_DIAGNOSTICS: usize = 32;
|
||||
/// Exact instructions published by `spl-associated-token-account-interface` 2.0.0.
|
||||
pub(crate) const SPL_ASSOCIATED_TOKEN_ACCOUNT_INSTRUCTION_ENTRIES: &[(u8, &str, bool)] = &[
|
||||
pub(crate) const DC_SPL_ATA_INSTRUCTION_ENTRIES: &[(u8, &str, bool)] = &[
|
||||
(0, "create", false),
|
||||
(1, "create_idempotent", false),
|
||||
(2, "recover_nested", false),
|
||||
];
|
||||
/// Canonical tracing target for the Associated Token Account decoder.
|
||||
pub(crate) const SPL_ASSOCIATED_TOKEN_ACCOUNT_TRACING_TARGET: &str =
|
||||
"kb-lib.decoder.spl.associated_token_account";
|
||||
pub(crate) const DC_SPL_ATA_TRACING_TARGET: &str = "kb-lib.decoder.spl.associated_token_account";
|
||||
|
||||
Reference in New Issue
Block a user