v0.1.0-pre.062
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: kb-lib/src/executor/spl/token_2022/executor.rs
|
||||
// version: 22
|
||||
// version: 23
|
||||
|
||||
//! Exact Token-2022 capability dispatch and typed plan construction.
|
||||
|
||||
@@ -30,10 +30,10 @@ impl crate::ExSplToken2022Executor {
|
||||
}
|
||||
if matches!(
|
||||
operation_code,
|
||||
"spl_token_2022.initialize_mint_with_rent"
|
||||
| "spl_token_2022.initialize_account_with_rent"
|
||||
| "spl_token_2022.initialize_multisig_with_rent"
|
||||
| "spl_token_2022.initialize_account2"
|
||||
"spl.token_2022.initialize_mint_with_rent"
|
||||
| "spl.token_2022.initialize_account_with_rent"
|
||||
| "spl.token_2022.initialize_multisig_with_rent"
|
||||
| "spl.token_2022.initialize_account2"
|
||||
) {
|
||||
return crate::ExApiExecutionCapability::unsupported(
|
||||
"execution_spl_token_2022_historical_variant_decode_only",
|
||||
@@ -183,10 +183,10 @@ mod tests {
|
||||
);
|
||||
}
|
||||
for operation_code in [
|
||||
"spl_token_2022.initialize_mint_with_rent",
|
||||
"spl_token_2022.initialize_account_with_rent",
|
||||
"spl_token_2022.initialize_multisig_with_rent",
|
||||
"spl_token_2022.initialize_account2",
|
||||
"spl.token_2022.initialize_mint_with_rent",
|
||||
"spl.token_2022.initialize_account_with_rent",
|
||||
"spl.token_2022.initialize_multisig_with_rent",
|
||||
"spl.token_2022.initialize_account2",
|
||||
] {
|
||||
let capability = crate::ExApiTypedInstructionExecutor::capability(
|
||||
&executor,
|
||||
@@ -240,7 +240,7 @@ mod tests {
|
||||
assert_eq!(instructions.len(), 48);
|
||||
for operation_code in crate::EX_SPL_TOKEN_2022_SUPPORTED_OPERATION_CODES {
|
||||
let name = operation_code
|
||||
.strip_prefix("spl_token_2022.")
|
||||
.strip_prefix("spl.token_2022.")
|
||||
.unwrap_or_else(|| panic!("invalid operation code {operation_code}"));
|
||||
let matrix_name = match name {
|
||||
"initialize_interest_bearing_mint" | "update_interest_bearing_rate" => {
|
||||
|
||||
@@ -1,258 +1,258 @@
|
||||
// file: kb-lib/src/executor/spl/token_2022/intent.rs
|
||||
// version: 25
|
||||
// version: 26
|
||||
|
||||
//! Typed Token-2022 execution intents.
|
||||
|
||||
use ts_rs::TS; // rust-rules: derive-import
|
||||
|
||||
/// Stable operation code for mint initialization through `InitializeMint2`.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_MINT_OPERATION: &str = "spl_token_2022.initialize_mint";
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_MINT_OPERATION: &str = "spl.token_2022.initialize_mint";
|
||||
/// Stable operation code for token-account initialization through `InitializeAccount3`.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_ACCOUNT_OPERATION: &str =
|
||||
"spl_token_2022.initialize_account";
|
||||
"spl.token_2022.initialize_account";
|
||||
/// Stable operation code for multisig initialization through `InitializeMultisig2`.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_MULTISIG_OPERATION: &str =
|
||||
"spl_token_2022.initialize_multisig";
|
||||
"spl.token_2022.initialize_multisig";
|
||||
/// Stable operation code for an unchecked token transfer.
|
||||
pub const EX_SPL_TOKEN_2022_TRANSFER_OPERATION: &str = "spl_token_2022.transfer";
|
||||
pub const EX_SPL_TOKEN_2022_TRANSFER_OPERATION: &str = "spl.token_2022.transfer";
|
||||
/// Stable operation code for an approval.
|
||||
pub const EX_SPL_TOKEN_2022_APPROVE_OPERATION: &str = "spl_token_2022.approve";
|
||||
pub const EX_SPL_TOKEN_2022_APPROVE_OPERATION: &str = "spl.token_2022.approve";
|
||||
/// Stable operation code for a delegate revocation.
|
||||
pub const EX_SPL_TOKEN_2022_REVOKE_OPERATION: &str = "spl_token_2022.revoke";
|
||||
pub const EX_SPL_TOKEN_2022_REVOKE_OPERATION: &str = "spl.token_2022.revoke";
|
||||
/// Stable operation code for an authority change.
|
||||
pub const EX_SPL_TOKEN_2022_SET_AUTHORITY_OPERATION: &str = "spl_token_2022.set_authority";
|
||||
pub const EX_SPL_TOKEN_2022_SET_AUTHORITY_OPERATION: &str = "spl.token_2022.set_authority";
|
||||
/// Stable operation code for minting tokens.
|
||||
pub const EX_SPL_TOKEN_2022_MINT_TO_OPERATION: &str = "spl_token_2022.mint_to";
|
||||
pub const EX_SPL_TOKEN_2022_MINT_TO_OPERATION: &str = "spl.token_2022.mint_to";
|
||||
/// Stable operation code for burning tokens.
|
||||
pub const EX_SPL_TOKEN_2022_BURN_OPERATION: &str = "spl_token_2022.burn";
|
||||
pub const EX_SPL_TOKEN_2022_BURN_OPERATION: &str = "spl.token_2022.burn";
|
||||
/// Stable operation code for closing a token account.
|
||||
pub const EX_SPL_TOKEN_2022_CLOSE_ACCOUNT_OPERATION: &str = "spl_token_2022.close_account";
|
||||
pub const EX_SPL_TOKEN_2022_CLOSE_ACCOUNT_OPERATION: &str = "spl.token_2022.close_account";
|
||||
/// Stable operation code for freezing a token account.
|
||||
pub const EX_SPL_TOKEN_2022_FREEZE_ACCOUNT_OPERATION: &str = "spl_token_2022.freeze_account";
|
||||
pub const EX_SPL_TOKEN_2022_FREEZE_ACCOUNT_OPERATION: &str = "spl.token_2022.freeze_account";
|
||||
/// Stable operation code for thawing a token account.
|
||||
pub const EX_SPL_TOKEN_2022_THAW_ACCOUNT_OPERATION: &str = "spl_token_2022.thaw_account";
|
||||
pub const EX_SPL_TOKEN_2022_THAW_ACCOUNT_OPERATION: &str = "spl.token_2022.thaw_account";
|
||||
/// Stable operation code for a checked token transfer.
|
||||
pub const EX_SPL_TOKEN_2022_TRANSFER_CHECKED_OPERATION: &str = "spl_token_2022.transfer_checked";
|
||||
pub const EX_SPL_TOKEN_2022_TRANSFER_CHECKED_OPERATION: &str = "spl.token_2022.transfer_checked";
|
||||
/// Stable operation code for a checked approval.
|
||||
pub const EX_SPL_TOKEN_2022_APPROVE_CHECKED_OPERATION: &str = "spl_token_2022.approve_checked";
|
||||
pub const EX_SPL_TOKEN_2022_APPROVE_CHECKED_OPERATION: &str = "spl.token_2022.approve_checked";
|
||||
/// Stable operation code for checked minting.
|
||||
pub const EX_SPL_TOKEN_2022_MINT_TO_CHECKED_OPERATION: &str = "spl_token_2022.mint_to_checked";
|
||||
pub const EX_SPL_TOKEN_2022_MINT_TO_CHECKED_OPERATION: &str = "spl.token_2022.mint_to_checked";
|
||||
/// Stable operation code for checked burning.
|
||||
pub const EX_SPL_TOKEN_2022_BURN_CHECKED_OPERATION: &str = "spl_token_2022.burn_checked";
|
||||
pub const EX_SPL_TOKEN_2022_BURN_CHECKED_OPERATION: &str = "spl.token_2022.burn_checked";
|
||||
/// Stable operation code for synchronizing wrapped SOL.
|
||||
pub const EX_SPL_TOKEN_2022_SYNC_NATIVE_OPERATION: &str = "spl_token_2022.sync_native";
|
||||
pub const EX_SPL_TOKEN_2022_SYNC_NATIVE_OPERATION: &str = "spl.token_2022.sync_native";
|
||||
/// Stable operation code for querying account data size.
|
||||
pub const EX_SPL_TOKEN_2022_GET_ACCOUNT_DATA_SIZE_OPERATION: &str =
|
||||
"spl_token_2022.get_account_data_size";
|
||||
"spl.token_2022.get_account_data_size";
|
||||
/// Stable operation code for the classic compatibility no-op.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_IMMUTABLE_OWNER_OPERATION: &str =
|
||||
"spl_token_2022.initialize_immutable_owner";
|
||||
"spl.token_2022.initialize_immutable_owner";
|
||||
/// Stable operation code for raw-to-UI amount conversion.
|
||||
pub const EX_SPL_TOKEN_2022_AMOUNT_TO_UI_AMOUNT_OPERATION: &str =
|
||||
"spl_token_2022.amount_to_ui_amount";
|
||||
"spl.token_2022.amount_to_ui_amount";
|
||||
/// Stable operation code for UI-to-raw amount conversion.
|
||||
pub const EX_SPL_TOKEN_2022_UI_AMOUNT_TO_AMOUNT_OPERATION: &str =
|
||||
"spl_token_2022.ui_amount_to_amount";
|
||||
"spl.token_2022.ui_amount_to_amount";
|
||||
/// Stable operation code for rescuing excess lamports.
|
||||
pub const EX_SPL_TOKEN_2022_WITHDRAW_EXCESS_LAMPORTS_OPERATION: &str =
|
||||
"spl_token_2022.withdraw_excess_lamports";
|
||||
"spl.token_2022.withdraw_excess_lamports";
|
||||
/// Stable operation code for the recent wrapped-SOL partial unwrap.
|
||||
pub const EX_SPL_TOKEN_2022_UNWRAP_LAMPORTS_OPERATION: &str = "spl_token_2022.unwrap_lamports";
|
||||
pub const EX_SPL_TOKEN_2022_UNWRAP_LAMPORTS_OPERATION: &str = "spl.token_2022.unwrap_lamports";
|
||||
/// Stable operation code for Token-2022 account reallocation.
|
||||
pub const EX_SPL_TOKEN_2022_REALLOCATE_OPERATION: &str = "spl_token_2022.reallocate";
|
||||
pub const EX_SPL_TOKEN_2022_REALLOCATE_OPERATION: &str = "spl.token_2022.reallocate";
|
||||
/// Stable operation code for initializing a non-transferable mint.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_NON_TRANSFERABLE_MINT_OPERATION: &str =
|
||||
"spl_token_2022.initialize_non_transferable_mint";
|
||||
"spl.token_2022.initialize_non_transferable_mint";
|
||||
/// Stable operation code for initializing a permanent delegate.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_PERMANENT_DELEGATE_OPERATION: &str =
|
||||
"spl_token_2022.initialize_permanent_delegate";
|
||||
"spl.token_2022.initialize_permanent_delegate";
|
||||
/// Stable operation code for initializing an interest-bearing mint.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_INTEREST_BEARING_MINT_OPERATION: &str =
|
||||
"spl_token_2022.initialize_interest_bearing_mint";
|
||||
"spl.token_2022.initialize_interest_bearing_mint";
|
||||
/// Stable operation code for updating an interest-bearing mint rate.
|
||||
pub const EX_SPL_TOKEN_2022_UPDATE_INTEREST_BEARING_RATE_OPERATION: &str =
|
||||
"spl_token_2022.update_interest_bearing_rate";
|
||||
"spl.token_2022.update_interest_bearing_rate";
|
||||
/// Stable operation code for transfer-fee configuration initialization.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_TRANSFER_FEE_CONFIG_OPERATION: &str =
|
||||
"spl_token_2022.initialize_transfer_fee_config";
|
||||
"spl.token_2022.initialize_transfer_fee_config";
|
||||
/// Stable operation code for updating transfer-fee parameters.
|
||||
pub const EX_SPL_TOKEN_2022_SET_TRANSFER_FEE_OPERATION: &str = "spl_token_2022.set_transfer_fee";
|
||||
pub const EX_SPL_TOKEN_2022_SET_TRANSFER_FEE_OPERATION: &str = "spl.token_2022.set_transfer_fee";
|
||||
/// Stable operation code for a checked transfer with an expected fee.
|
||||
pub const EX_SPL_TOKEN_2022_TRANSFER_CHECKED_WITH_FEE_OPERATION: &str =
|
||||
"spl_token_2022.transfer_checked_with_fee";
|
||||
"spl.token_2022.transfer_checked_with_fee";
|
||||
/// Stable operation code for withdrawing withheld fees from a mint.
|
||||
pub const EX_SPL_TOKEN_2022_WITHDRAW_WITHHELD_TOKENS_FROM_MINT_OPERATION: &str =
|
||||
"spl_token_2022.withdraw_withheld_tokens_from_mint";
|
||||
"spl.token_2022.withdraw_withheld_tokens_from_mint";
|
||||
/// Stable operation code for withdrawing withheld fees from token accounts.
|
||||
pub const EX_SPL_TOKEN_2022_WITHDRAW_WITHHELD_TOKENS_FROM_ACCOUNTS_OPERATION: &str =
|
||||
"spl_token_2022.withdraw_withheld_tokens_from_accounts";
|
||||
"spl.token_2022.withdraw_withheld_tokens_from_accounts";
|
||||
/// Stable operation code for harvesting withheld fees into a mint.
|
||||
pub const EX_SPL_TOKEN_2022_HARVEST_WITHHELD_TOKENS_TO_MINT_OPERATION: &str =
|
||||
"spl_token_2022.harvest_withheld_tokens_to_mint";
|
||||
"spl.token_2022.harvest_withheld_tokens_to_mint";
|
||||
/// Stable operation code for initializing a default account state.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_DEFAULT_ACCOUNT_STATE_OPERATION: &str =
|
||||
"spl_token_2022.initialize_default_account_state";
|
||||
"spl.token_2022.initialize_default_account_state";
|
||||
/// Stable operation code for updating a default account state.
|
||||
pub const EX_SPL_TOKEN_2022_UPDATE_DEFAULT_ACCOUNT_STATE_OPERATION: &str =
|
||||
"spl_token_2022.update_default_account_state";
|
||||
"spl.token_2022.update_default_account_state";
|
||||
/// Stable operation code for requiring memos on incoming transfers.
|
||||
pub const EX_SPL_TOKEN_2022_ENABLE_REQUIRED_TRANSFER_MEMOS_OPERATION: &str =
|
||||
"spl_token_2022.enable_required_transfer_memos";
|
||||
"spl.token_2022.enable_required_transfer_memos";
|
||||
/// Stable operation code for disabling required incoming-transfer memos.
|
||||
pub const EX_SPL_TOKEN_2022_DISABLE_REQUIRED_TRANSFER_MEMOS_OPERATION: &str =
|
||||
"spl_token_2022.disable_required_transfer_memos";
|
||||
"spl.token_2022.disable_required_transfer_memos";
|
||||
/// Stable operation code for enabling CPI Guard on a token account.
|
||||
pub const EX_SPL_TOKEN_2022_ENABLE_CPI_GUARD_OPERATION: &str = "spl_token_2022.enable_cpi_guard";
|
||||
pub const EX_SPL_TOKEN_2022_ENABLE_CPI_GUARD_OPERATION: &str = "spl.token_2022.enable_cpi_guard";
|
||||
/// Stable operation code for disabling CPI Guard on a token account.
|
||||
pub const EX_SPL_TOKEN_2022_DISABLE_CPI_GUARD_OPERATION: &str = "spl_token_2022.disable_cpi_guard";
|
||||
pub const EX_SPL_TOKEN_2022_DISABLE_CPI_GUARD_OPERATION: &str = "spl.token_2022.disable_cpi_guard";
|
||||
/// Stable operation code for initializing a transfer-hook pointer.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_TRANSFER_HOOK_OPERATION: &str =
|
||||
"spl_token_2022.initialize_transfer_hook";
|
||||
"spl.token_2022.initialize_transfer_hook";
|
||||
/// Stable operation code for updating or clearing a transfer-hook program id.
|
||||
pub const EX_SPL_TOKEN_2022_UPDATE_TRANSFER_HOOK_OPERATION: &str =
|
||||
"spl_token_2022.update_transfer_hook";
|
||||
"spl.token_2022.update_transfer_hook";
|
||||
/// Stable operation code for initializing a metadata pointer.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_METADATA_POINTER_OPERATION: &str =
|
||||
"spl_token_2022.initialize_metadata_pointer";
|
||||
"spl.token_2022.initialize_metadata_pointer";
|
||||
/// Stable operation code for updating or clearing a metadata pointer.
|
||||
pub const EX_SPL_TOKEN_2022_UPDATE_METADATA_POINTER_OPERATION: &str =
|
||||
"spl_token_2022.update_metadata_pointer";
|
||||
"spl.token_2022.update_metadata_pointer";
|
||||
/// Stable operation code for initializing a group pointer.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_GROUP_POINTER_OPERATION: &str =
|
||||
"spl_token_2022.initialize_group_pointer";
|
||||
"spl.token_2022.initialize_group_pointer";
|
||||
/// Stable operation code for updating or clearing a group pointer.
|
||||
pub const EX_SPL_TOKEN_2022_UPDATE_GROUP_POINTER_OPERATION: &str =
|
||||
"spl_token_2022.update_group_pointer";
|
||||
"spl.token_2022.update_group_pointer";
|
||||
/// Stable operation code for initializing a group-member pointer.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_GROUP_MEMBER_POINTER_OPERATION: &str =
|
||||
"spl_token_2022.initialize_group_member_pointer";
|
||||
"spl.token_2022.initialize_group_member_pointer";
|
||||
/// Stable operation code for updating or clearing a group-member pointer.
|
||||
pub const EX_SPL_TOKEN_2022_UPDATE_GROUP_MEMBER_POINTER_OPERATION: &str =
|
||||
"spl_token_2022.update_group_member_pointer";
|
||||
"spl.token_2022.update_group_member_pointer";
|
||||
/// Stable operation code for initializing Token-2022 embedded metadata.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_TOKEN_METADATA_OPERATION: &str =
|
||||
"spl_token_2022.initialize_token_metadata";
|
||||
"spl.token_2022.initialize_token_metadata";
|
||||
/// Stable operation code for updating an embedded metadata field.
|
||||
pub const EX_SPL_TOKEN_2022_UPDATE_TOKEN_METADATA_FIELD_OPERATION: &str =
|
||||
"spl_token_2022.update_token_metadata_field";
|
||||
"spl.token_2022.update_token_metadata_field";
|
||||
/// Stable operation code for removing an embedded metadata key.
|
||||
pub const EX_SPL_TOKEN_2022_REMOVE_TOKEN_METADATA_KEY_OPERATION: &str =
|
||||
"spl_token_2022.remove_token_metadata_key";
|
||||
"spl.token_2022.remove_token_metadata_key";
|
||||
/// Stable operation code for initializing an embedded token group.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_TOKEN_GROUP_OPERATION: &str =
|
||||
"spl_token_2022.initialize_token_group";
|
||||
"spl.token_2022.initialize_token_group";
|
||||
/// Stable operation code for updating an embedded token-group maximum size.
|
||||
pub const EX_SPL_TOKEN_2022_UPDATE_TOKEN_GROUP_MAX_SIZE_OPERATION: &str =
|
||||
"spl_token_2022.update_token_group_max_size";
|
||||
"spl.token_2022.update_token_group_max_size";
|
||||
/// Stable operation code for initializing an embedded token-group member.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_TOKEN_GROUP_MEMBER_OPERATION: &str =
|
||||
"spl_token_2022.initialize_token_group_member";
|
||||
"spl.token_2022.initialize_token_group_member";
|
||||
/// Stable operation code for initializing scaled UI amounts.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_SCALED_UI_AMOUNT_OPERATION: &str =
|
||||
"spl_token_2022.initialize_scaled_ui_amount";
|
||||
"spl.token_2022.initialize_scaled_ui_amount";
|
||||
/// Stable operation code for scheduling a scaled UI multiplier update.
|
||||
pub const EX_SPL_TOKEN_2022_UPDATE_SCALED_UI_AMOUNT_MULTIPLIER_OPERATION: &str =
|
||||
"spl_token_2022.update_scaled_ui_amount_multiplier";
|
||||
"spl.token_2022.update_scaled_ui_amount_multiplier";
|
||||
/// Stable operation code for initializing pausable mint state.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_PAUSABLE_CONFIG_OPERATION: &str =
|
||||
"spl_token_2022.initialize_pausable_config";
|
||||
"spl.token_2022.initialize_pausable_config";
|
||||
/// Stable operation code for pausing mint activity.
|
||||
pub const EX_SPL_TOKEN_2022_PAUSE_OPERATION: &str = "spl_token_2022.pause";
|
||||
pub const EX_SPL_TOKEN_2022_PAUSE_OPERATION: &str = "spl.token_2022.pause";
|
||||
/// Stable operation code for resuming mint activity.
|
||||
pub const EX_SPL_TOKEN_2022_RESUME_OPERATION: &str = "spl_token_2022.resume";
|
||||
pub const EX_SPL_TOKEN_2022_RESUME_OPERATION: &str = "spl.token_2022.resume";
|
||||
/// Stable operation code for initializing permissioned burn.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_PERMISSIONED_BURN_OPERATION: &str =
|
||||
"spl_token_2022.initialize_permissioned_burn";
|
||||
"spl.token_2022.initialize_permissioned_burn";
|
||||
/// Stable operation code for a permissioned burn.
|
||||
pub const EX_SPL_TOKEN_2022_PERMISSIONED_BURN_OPERATION: &str = "spl_token_2022.permissioned_burn";
|
||||
pub const EX_SPL_TOKEN_2022_PERMISSIONED_BURN_OPERATION: &str = "spl.token_2022.permissioned_burn";
|
||||
/// Stable operation code for a checked permissioned burn.
|
||||
pub const EX_SPL_TOKEN_2022_PERMISSIONED_BURN_CHECKED_OPERATION: &str =
|
||||
"spl_token_2022.permissioned_burn_checked";
|
||||
"spl.token_2022.permissioned_burn_checked";
|
||||
/// Stable operation code for initializing Confidential Transfer mint configuration.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_CONFIDENTIAL_TRANSFER_MINT_OPERATION: &str =
|
||||
"spl_token_2022.initialize_confidential_transfer_mint";
|
||||
"spl.token_2022.initialize_confidential_transfer_mint";
|
||||
/// Stable operation code for updating Confidential Transfer mint configuration.
|
||||
pub const EX_SPL_TOKEN_2022_UPDATE_CONFIDENTIAL_TRANSFER_MINT_OPERATION: &str =
|
||||
"spl_token_2022.update_confidential_transfer_mint";
|
||||
"spl.token_2022.update_confidential_transfer_mint";
|
||||
/// Stable operation code for applying pending confidential balance credits.
|
||||
pub const EX_SPL_TOKEN_2022_APPLY_PENDING_CONFIDENTIAL_BALANCE_OPERATION: &str =
|
||||
"spl_token_2022.apply_pending_confidential_balance";
|
||||
"spl.token_2022.apply_pending_confidential_balance";
|
||||
/// Stable operation code for approving a configured confidential account.
|
||||
pub const EX_SPL_TOKEN_2022_APPROVE_CONFIDENTIAL_TRANSFER_ACCOUNT_OPERATION: &str =
|
||||
"spl_token_2022.approve_confidential_transfer_account";
|
||||
"spl.token_2022.approve_confidential_transfer_account";
|
||||
/// Stable operation code for depositing public tokens into a confidential pending balance.
|
||||
pub const EX_SPL_TOKEN_2022_DEPOSIT_CONFIDENTIAL_TOKENS_OPERATION: &str =
|
||||
"spl_token_2022.deposit_confidential_tokens";
|
||||
"spl.token_2022.deposit_confidential_tokens";
|
||||
/// Stable operation code for enabling incoming confidential credits.
|
||||
pub const EX_SPL_TOKEN_2022_ENABLE_CONFIDENTIAL_CREDITS_OPERATION: &str =
|
||||
"spl_token_2022.enable_confidential_credits";
|
||||
"spl.token_2022.enable_confidential_credits";
|
||||
/// Stable operation code for disabling incoming confidential credits.
|
||||
pub const EX_SPL_TOKEN_2022_DISABLE_CONFIDENTIAL_CREDITS_OPERATION: &str =
|
||||
"spl_token_2022.disable_confidential_credits";
|
||||
"spl.token_2022.disable_confidential_credits";
|
||||
/// Stable operation code for enabling incoming non-confidential credits.
|
||||
pub const EX_SPL_TOKEN_2022_ENABLE_NON_CONFIDENTIAL_CREDITS_OPERATION: &str =
|
||||
"spl_token_2022.enable_non_confidential_credits";
|
||||
"spl.token_2022.enable_non_confidential_credits";
|
||||
/// Stable operation code for disabling incoming non-confidential credits.
|
||||
pub const EX_SPL_TOKEN_2022_DISABLE_NON_CONFIDENTIAL_CREDITS_OPERATION: &str =
|
||||
"spl_token_2022.disable_non_confidential_credits";
|
||||
"spl.token_2022.disable_non_confidential_credits";
|
||||
/// Stable operation code for configuring one confidential token account.
|
||||
pub const EX_SPL_TOKEN_2022_CONFIGURE_CONFIDENTIAL_TRANSFER_ACCOUNT_OPERATION: &str =
|
||||
"spl_token_2022.configure_confidential_transfer_account";
|
||||
"spl.token_2022.configure_confidential_transfer_account";
|
||||
/// Stable operation code for configuring one confidential token account through the registry.
|
||||
pub const EX_SPL_TOKEN_2022_CONFIGURE_CONFIDENTIAL_TRANSFER_ACCOUNT_WITH_REGISTRY_OPERATION: &str =
|
||||
"spl_token_2022.configure_confidential_transfer_account_with_registry";
|
||||
"spl.token_2022.configure_confidential_transfer_account_with_registry";
|
||||
/// Stable operation code for emptying a confidential available balance before close.
|
||||
pub const EX_SPL_TOKEN_2022_EMPTY_CONFIDENTIAL_TRANSFER_ACCOUNT_OPERATION: &str =
|
||||
"spl_token_2022.empty_confidential_transfer_account";
|
||||
"spl.token_2022.empty_confidential_transfer_account";
|
||||
/// Stable operation code for withdrawing confidential balance into public balance.
|
||||
pub const EX_SPL_TOKEN_2022_WITHDRAW_CONFIDENTIAL_TOKENS_OPERATION: &str =
|
||||
"spl_token_2022.withdraw_confidential_tokens";
|
||||
"spl.token_2022.withdraw_confidential_tokens";
|
||||
/// Stable operation code for transferring confidential tokens.
|
||||
pub const EX_SPL_TOKEN_2022_TRANSFER_CONFIDENTIAL_TOKENS_OPERATION: &str =
|
||||
"spl_token_2022.transfer_confidential_tokens";
|
||||
"spl.token_2022.transfer_confidential_tokens";
|
||||
/// Stable operation code for confidential transfer with fee.
|
||||
pub const EX_SPL_TOKEN_2022_TRANSFER_CONFIDENTIAL_TOKENS_WITH_FEE_OPERATION: &str =
|
||||
"spl_token_2022.transfer_confidential_tokens_with_fee";
|
||||
"spl.token_2022.transfer_confidential_tokens_with_fee";
|
||||
/// Stable operation code for initializing confidential transfer fee configuration.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_CONFIDENTIAL_TRANSFER_FEE_CONFIG_OPERATION: &str =
|
||||
"spl_token_2022.initialize_confidential_transfer_fee_config";
|
||||
"spl.token_2022.initialize_confidential_transfer_fee_config";
|
||||
/// Stable operation code for enabling confidential fee harvest to the mint.
|
||||
pub const EX_SPL_TOKEN_2022_ENABLE_CONFIDENTIAL_TRANSFER_FEE_HARVEST_OPERATION: &str =
|
||||
"spl_token_2022.enable_confidential_transfer_fee_harvest";
|
||||
"spl.token_2022.enable_confidential_transfer_fee_harvest";
|
||||
/// Stable operation code for disabling confidential fee harvest to the mint.
|
||||
pub const EX_SPL_TOKEN_2022_DISABLE_CONFIDENTIAL_TRANSFER_FEE_HARVEST_OPERATION: &str =
|
||||
"spl_token_2022.disable_confidential_transfer_fee_harvest";
|
||||
"spl.token_2022.disable_confidential_transfer_fee_harvest";
|
||||
/// Stable operation code for harvesting confidential withheld fees to the mint.
|
||||
pub const EX_SPL_TOKEN_2022_HARVEST_CONFIDENTIAL_WITHHELD_TOKENS_TO_MINT_OPERATION: &str =
|
||||
"spl_token_2022.harvest_confidential_withheld_tokens_to_mint";
|
||||
"spl.token_2022.harvest_confidential_withheld_tokens_to_mint";
|
||||
/// Stable operation code for withdrawing confidential withheld fees from the mint.
|
||||
pub const EX_SPL_TOKEN_2022_WITHDRAW_CONFIDENTIAL_WITHHELD_TOKENS_FROM_MINT_OPERATION: &str =
|
||||
"spl_token_2022.withdraw_confidential_withheld_tokens_from_mint";
|
||||
"spl.token_2022.withdraw_confidential_withheld_tokens_from_mint";
|
||||
/// Stable operation code for withdrawing confidential withheld fees from token accounts.
|
||||
pub const EX_SPL_TOKEN_2022_WITHDRAW_CONFIDENTIAL_WITHHELD_TOKENS_FROM_ACCOUNTS_OPERATION: &str =
|
||||
"spl_token_2022.withdraw_confidential_withheld_tokens_from_accounts";
|
||||
"spl.token_2022.withdraw_confidential_withheld_tokens_from_accounts";
|
||||
/// Stable operation code for initializing confidential mint and burn.
|
||||
pub const EX_SPL_TOKEN_2022_INITIALIZE_CONFIDENTIAL_MINT_BURN_MINT_OPERATION: &str =
|
||||
"spl_token_2022.initialize_confidential_mint_burn_mint";
|
||||
"spl.token_2022.initialize_confidential_mint_burn_mint";
|
||||
/// Stable operation code for rotating the confidential supply ElGamal public key.
|
||||
pub const EX_SPL_TOKEN_2022_ROTATE_CONFIDENTIAL_SUPPLY_ELGAMAL_PUBKEY_OPERATION: &str =
|
||||
"spl_token_2022.rotate_confidential_supply_elgamal_pubkey";
|
||||
"spl.token_2022.rotate_confidential_supply_elgamal_pubkey";
|
||||
/// Stable operation code for updating the decryptable confidential supply.
|
||||
pub const EX_SPL_TOKEN_2022_UPDATE_CONFIDENTIAL_DECRYPTABLE_SUPPLY_OPERATION: &str =
|
||||
"spl_token_2022.update_confidential_decryptable_supply";
|
||||
"spl.token_2022.update_confidential_decryptable_supply";
|
||||
/// Stable operation code for applying pending confidential burns.
|
||||
pub const EX_SPL_TOKEN_2022_APPLY_PENDING_CONFIDENTIAL_BURN_OPERATION: &str =
|
||||
"spl_token_2022.apply_pending_confidential_burn";
|
||||
"spl.token_2022.apply_pending_confidential_burn";
|
||||
/// Stable operation code for confidential minting.
|
||||
pub const EX_SPL_TOKEN_2022_CONFIDENTIAL_MINT_OPERATION: &str = "spl_token_2022.confidential_mint";
|
||||
pub const EX_SPL_TOKEN_2022_CONFIDENTIAL_MINT_OPERATION: &str = "spl.token_2022.confidential_mint";
|
||||
/// Stable operation code for confidential burning.
|
||||
pub const EX_SPL_TOKEN_2022_CONFIDENTIAL_BURN_OPERATION: &str = "spl_token_2022.confidential_burn";
|
||||
pub const EX_SPL_TOKEN_2022_CONFIDENTIAL_BURN_OPERATION: &str = "spl.token_2022.confidential_burn";
|
||||
/// Stable operation code for permissioned confidential burning.
|
||||
pub const EX_SPL_TOKEN_2022_PERMISSIONED_CONFIDENTIAL_BURN_OPERATION: &str =
|
||||
"spl_token_2022.permissioned_confidential_burn";
|
||||
"spl.token_2022.permissioned_confidential_burn";
|
||||
|
||||
/// Stable operation code for a recent bounded batch.
|
||||
pub const EX_SPL_TOKEN_2022_BATCH_OPERATION: &str = "spl_token_2022.batch";
|
||||
pub const EX_SPL_TOKEN_2022_BATCH_OPERATION: &str = "spl.token_2022.batch";
|
||||
|
||||
/// Operation codes constructible by this executor.
|
||||
pub const EX_SPL_TOKEN_2022_SUPPORTED_OPERATION_CODES: &[&str] = &[
|
||||
|
||||
Reference in New Issue
Block a user