v0.1.0-pre.020
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: kb-lib/src/executor/solana.rs
|
||||
// version: 3
|
||||
// version: 4
|
||||
|
||||
//! `solana` executor family.
|
||||
|
||||
@@ -255,7 +255,7 @@ pub use self::core::ExSolanaCoreZkElGamalContextState;
|
||||
pub use self::core::ExSolanaCoreZkElGamalProofType;
|
||||
|
||||
/// Canonical tracing target for this crate.
|
||||
pub(crate) use self::core::EX_SOLANA_CORE_TRACING_TARGET;
|
||||
pub(crate) use self::core::TRACING_TARGET_EXECUTOR_SOLANA_CORE;
|
||||
/// Crate-root access to `build_prepared_plan` from `address_lookup_table`.
|
||||
pub(crate) use self::core::executor_solana_core_address_lookup_table_build_prepared_plan;
|
||||
/// Crate-root access to `build_prepared_plan` from `builder`.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: kb-lib/src/executor/solana/core.rs
|
||||
// version: 3
|
||||
// version: 4
|
||||
|
||||
//! Safe typed executor for supported Solana core operations.
|
||||
|
||||
@@ -274,7 +274,7 @@ pub(crate) use self::builder::executor_solana_core_builder_build_prepared_plan;
|
||||
/// Crate-root access to `finalize_prepared_plan` from `builder`.
|
||||
pub(crate) use self::builder::executor_solana_core_finalize_prepared_plan;
|
||||
/// Canonical tracing target for this crate.
|
||||
pub(crate) use self::constants::EX_SOLANA_CORE_TRACING_TARGET;
|
||||
pub(crate) use self::constants::TRACING_TARGET_EXECUTOR_SOLANA_CORE;
|
||||
/// Crate-root access to `build_prepared_plan` from `loader_v3`.
|
||||
pub(crate) use self::loader_v3::executor_solana_core_loader_v3_build_prepared_plan;
|
||||
/// Crate-root access to `build_prepared_plan` from `loader_v4`.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: kb-lib/src/executor/solana/core/builder.rs
|
||||
// version: 1
|
||||
// version: 2
|
||||
|
||||
//! Official Solana core instruction builders and shared plan finalization.
|
||||
|
||||
@@ -1239,7 +1239,7 @@ pub(crate) fn executor_solana_core_finalize_prepared_plan(
|
||||
std::result::Result::Err(error) => return std::result::Result::Err(error),
|
||||
}
|
||||
tracing::debug!(
|
||||
target: crate::EX_SOLANA_CORE_TRACING_TARGET,
|
||||
target: crate::TRACING_TARGET_EXECUTOR_SOLANA_CORE,
|
||||
action = "executor_solana_core_builder_build_prepared_plan",
|
||||
intent_id = %intent.intent_id,
|
||||
operation_code,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// file: kb-lib/src/executor/solana/core/constants.rs
|
||||
// version: 1
|
||||
// version: 2
|
||||
|
||||
//! Local constants for the `kb_executor_solana_core` crate. Program identifiers live in `kb_program_ids`.
|
||||
|
||||
/// Canonical tracing target for this crate.
|
||||
pub(crate) const EX_SOLANA_CORE_TRACING_TARGET: &str = "kb-lib.executor.solana.core";
|
||||
pub(crate) const TRACING_TARGET_EXECUTOR_SOLANA_CORE: &str = "kb-lib.executor.solana.core";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: kb-lib/src/executor/spl.rs
|
||||
// version: 5
|
||||
// version: 6
|
||||
|
||||
//! `spl` executor family.
|
||||
|
||||
@@ -309,15 +309,15 @@ pub use self::token2022::ExSplTokenSingleOperation;
|
||||
pub use self::token2022::executor_spl_token2022_validate_confidential_proof_references;
|
||||
|
||||
/// Canonical SPL ATA tracing target.
|
||||
pub(crate) use self::associated_token_account::EX_SPL_ATA_TRACING_TARGET;
|
||||
pub(crate) use self::associated_token_account::TRACING_TARGET_EXECUTOR_SPL_ATA;
|
||||
/// Internal SPL ATA plan builder.
|
||||
pub(crate) use self::associated_token_account::executor_spl_ata_build_prepared_plan;
|
||||
/// Canonical SPL ElGamal registry tracing target.
|
||||
pub(crate) use self::elgamal_registry::EX_SPL_ELGAMAL_REGISTRY_TRACING_TARGET;
|
||||
pub(crate) use self::elgamal_registry::TRACING_TARGET_EXECUTOR_SPL_ELGAMAL_REGISTRY;
|
||||
/// Internal SPL ElGamal registry plan builder.
|
||||
pub(crate) use self::elgamal_registry::executor_spl_elgamal_registry_build_prepared_plan;
|
||||
/// Canonical SPL Memo tracing target.
|
||||
pub(crate) use self::memo::EX_SPL_MEMO_TRACING_TARGET;
|
||||
pub(crate) use self::memo::TRACING_TARGET_EXECUTOR_SPL_MEMO;
|
||||
/// Internal SPL Memo plan builder.
|
||||
pub(crate) use self::memo::executor_spl_memo_build_prepared_plan;
|
||||
/// Maximum ordered multisig signer occurrences for SPL Token-2022.
|
||||
@@ -327,6 +327,6 @@ pub(crate) use self::token2022::EX_SPL_TOKEN2022_MAX_TRANSFER_FEE_SOURCE_ACCOUNT
|
||||
/// Maximum UI amount byte length for SPL Token-2022.
|
||||
pub(crate) use self::token2022::EX_SPL_TOKEN2022_MAX_UI_AMOUNT_BYTES;
|
||||
/// Canonical SPL Token-2022 tracing target.
|
||||
pub(crate) use self::token2022::EX_SPL_TOKEN2022_TRACING_TARGET;
|
||||
pub(crate) use self::token2022::TRACING_TARGET_EXECUTOR_SPL_TOKEN2022;
|
||||
/// Internal SPL Token-2022 prepared-plan builder.
|
||||
pub(crate) use self::token2022::executor_spl_token2022_build_prepared_plan;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: kb-lib/src/executor/spl/associated_token_account.rs
|
||||
// version: 3
|
||||
// version: 4
|
||||
|
||||
//! Safe typed executor for SPL Associated Token Account.
|
||||
|
||||
@@ -28,4 +28,4 @@ pub use self::intent::ExSplAssociatedTokenProgram;
|
||||
/// Internal SPL ATA plan builder.
|
||||
pub(crate) use self::builder::executor_spl_ata_build_prepared_plan;
|
||||
/// Canonical tracing target for SPL ATA execution.
|
||||
pub(crate) use self::constants::EX_SPL_ATA_TRACING_TARGET;
|
||||
pub(crate) use self::constants::TRACING_TARGET_EXECUTOR_SPL_ATA;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: kb-lib/src/executor/spl/associated_token_account/builder.rs
|
||||
// version: 4
|
||||
// version: 5
|
||||
|
||||
//! Official ATA builders and conservative simulation-first plan validation.
|
||||
|
||||
@@ -108,7 +108,7 @@ pub(crate) fn executor_spl_ata_build_prepared_plan(
|
||||
let planned_instruction = planned_instruction(intent.operation.operation_code(), &instruction);
|
||||
let required_signers = required_signers(&intent.fee_payer, &planned_instruction.accounts);
|
||||
tracing::debug!(
|
||||
target: crate::EX_SPL_ATA_TRACING_TARGET,
|
||||
target: crate::TRACING_TARGET_EXECUTOR_SPL_ATA,
|
||||
action = "build_prepared_plan",
|
||||
intent_id = %intent.intent_id,
|
||||
operation_code = intent.operation.operation_code(),
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
// file: kb-lib/src/executor/spl/associated_token_account/constants.rs
|
||||
// version: 3
|
||||
// version: 4
|
||||
|
||||
//! Local constants for the `kb_executor_spl_associated_token_account` crate. Program identifiers live in `kb_program_ids`.
|
||||
|
||||
/// Canonical tracing target for this crate.
|
||||
pub(crate) const EX_SPL_ATA_TRACING_TARGET: &str = "kb-lib.executor.spl.associated_token_account";
|
||||
pub(crate) const TRACING_TARGET_EXECUTOR_SPL_ATA: &str =
|
||||
"kb-lib.executor.spl.associated_token_account";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: kb-lib/src/executor/spl/elgamal_registry.rs
|
||||
// version: 3
|
||||
// version: 4
|
||||
|
||||
//! Typed executor for the SPL ElGamal public-key registry.
|
||||
|
||||
@@ -24,4 +24,4 @@ pub use self::intent::ExSplElgamalRegistryProofLocation;
|
||||
/// Crate-root access to the exact ElGamal registry plan builder.
|
||||
pub(crate) use self::builder::executor_spl_elgamal_registry_build_prepared_plan;
|
||||
/// Canonical tracing target for the SPL ElGamal registry executor.
|
||||
pub(crate) use self::constants::EX_SPL_ELGAMAL_REGISTRY_TRACING_TARGET;
|
||||
pub(crate) use self::constants::TRACING_TARGET_EXECUTOR_SPL_ELGAMAL_REGISTRY;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: kb-lib/src/executor/spl/elgamal_registry/builder.rs
|
||||
// version: 4
|
||||
// version: 5
|
||||
|
||||
//! Official registry builders and conservative plan validation.
|
||||
|
||||
@@ -125,7 +125,7 @@ pub(crate) fn executor_spl_elgamal_registry_build_prepared_plan(
|
||||
});
|
||||
}
|
||||
tracing::debug!(
|
||||
target: crate::EX_SPL_ELGAMAL_REGISTRY_TRACING_TARGET,
|
||||
target: crate::TRACING_TARGET_EXECUTOR_SPL_ELGAMAL_REGISTRY,
|
||||
action = "build_prepared_plan",
|
||||
intent_id = %intent.intent_id,
|
||||
operation_code,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// file: kb-lib/src/executor/spl/elgamal_registry/constants.rs
|
||||
// version: 2
|
||||
// version: 3
|
||||
|
||||
//! Executor-local constants.
|
||||
|
||||
/// Canonical tracing target for this crate.
|
||||
pub(crate) const EX_SPL_ELGAMAL_REGISTRY_TRACING_TARGET: &str =
|
||||
pub(crate) const TRACING_TARGET_EXECUTOR_SPL_ELGAMAL_REGISTRY: &str =
|
||||
"kb-lib.executor.spl.elgamal_registry";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: kb-lib/src/executor/spl/memo.rs
|
||||
// version: 4
|
||||
// version: 5
|
||||
|
||||
//! Safe typed executor for `spl_memo`.
|
||||
|
||||
@@ -28,4 +28,4 @@ pub use self::intent::ExSplMemoSigner;
|
||||
/// Internal SPL Memo plan builder.
|
||||
pub(crate) use self::builder::executor_spl_memo_build_prepared_plan;
|
||||
/// Canonical tracing target for SPL Memo execution.
|
||||
pub(crate) use self::constants::EX_SPL_MEMO_TRACING_TARGET;
|
||||
pub(crate) use self::constants::TRACING_TARGET_EXECUTOR_SPL_MEMO;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: kb-lib/src/executor/spl/memo/builder.rs
|
||||
// version: 1
|
||||
// version: 2
|
||||
|
||||
//! Official SPL Memo instruction builder and conservative plan validation.
|
||||
|
||||
@@ -74,7 +74,7 @@ pub(crate) fn executor_spl_memo_build_prepared_plan(
|
||||
planned_instruction(crate::EX_SPL_MEMO_ADD_MEMO_OPERATION, &instruction);
|
||||
let required_signers = required_signers(&intent.fee_payer, signers.as_slice());
|
||||
tracing::debug!(
|
||||
target: crate::EX_SPL_MEMO_TRACING_TARGET,
|
||||
target: crate::TRACING_TARGET_EXECUTOR_SPL_MEMO,
|
||||
action = "build_prepared_plan",
|
||||
intent_id = %intent.intent_id,
|
||||
operation_code = crate::EX_SPL_MEMO_ADD_MEMO_OPERATION,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// file: kb-lib/src/executor/spl/memo/constants.rs
|
||||
// version: 1
|
||||
// version: 2
|
||||
|
||||
//! Local constants for the `kb_executor_spl_memo` crate. Program identifiers live in `kb_program_ids`.
|
||||
|
||||
/// Canonical tracing target for this crate.
|
||||
pub(crate) const EX_SPL_MEMO_TRACING_TARGET: &str = "kb-lib.executor.spl.memo";
|
||||
pub(crate) const TRACING_TARGET_EXECUTOR_SPL_MEMO: &str = "kb-lib.executor.spl.memo";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: kb-lib/src/executor/spl/token2022.rs
|
||||
// version: 3
|
||||
// version: 4
|
||||
|
||||
//! SPL Token-2022 executor.
|
||||
|
||||
@@ -258,4 +258,4 @@ pub(crate) use self::constants::EX_SPL_TOKEN2022_MAX_TRANSFER_FEE_SOURCE_ACCOUNT
|
||||
/// Maximum UI amount byte length.
|
||||
pub(crate) use self::constants::EX_SPL_TOKEN2022_MAX_UI_AMOUNT_BYTES;
|
||||
/// Canonical SPL Token-2022 tracing target.
|
||||
pub(crate) use self::constants::EX_SPL_TOKEN2022_TRACING_TARGET;
|
||||
pub(crate) use self::constants::TRACING_TARGET_EXECUTOR_SPL_TOKEN2022;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: kb-lib/src/executor/spl/token2022/builder.rs
|
||||
// version: 27
|
||||
// version: 28
|
||||
|
||||
//! Official Token-2022 builders and conservative plan validation.
|
||||
|
||||
@@ -58,7 +58,7 @@ pub(crate) fn executor_spl_token2022_build_prepared_plan(
|
||||
let planned_instruction = planned_instruction(intent.operation.operation_code(), &instruction);
|
||||
let required_signers = required_signers(&intent.fee_payer, &instruction.accounts);
|
||||
tracing::debug!(
|
||||
target: crate::EX_SPL_TOKEN2022_TRACING_TARGET,
|
||||
target: crate::TRACING_TARGET_EXECUTOR_SPL_TOKEN2022,
|
||||
action = "executor_spl_token2022_build_prepared_plan",
|
||||
intent_id = %intent.intent_id,
|
||||
operation_code = intent.operation.operation_code(),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: kb-lib/src/executor/spl/token2022/constants.rs
|
||||
// version: 5
|
||||
// version: 6
|
||||
|
||||
//! Local constants for the `kb_executor_spl_token_2022` crate. Program identifiers live in `kb_program_ids`.
|
||||
|
||||
@@ -10,4 +10,4 @@ pub(crate) const EX_SPL_TOKEN2022_MAX_UI_AMOUNT_BYTES: usize = 255;
|
||||
/// Maximum ordered token accounts accepted by transfer-fee harvest or withdraw builders.
|
||||
pub(crate) const EX_SPL_TOKEN2022_MAX_TRANSFER_FEE_SOURCE_ACCOUNTS: usize = 255;
|
||||
/// Canonical tracing target for this crate.
|
||||
pub(crate) const EX_SPL_TOKEN2022_TRACING_TARGET: &str = "kb-lib.executor.spl.token2022";
|
||||
pub(crate) const TRACING_TARGET_EXECUTOR_SPL_TOKEN2022: &str = "kb-lib.executor.spl.token2022";
|
||||
|
||||
Reference in New Issue
Block a user