Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit d46407c

Browse files
committed
remove cli / client changes and mint-burn tests
1 parent 89c7cd2 commit d46407c

File tree

4 files changed

+6
-1400
lines changed

4 files changed

+6
-1400
lines changed

token/cli/src/clap_app.rs

Lines changed: 0 additions & 232 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,6 @@ pub enum CommandName {
133133
ApplyPendingBalance,
134134
UpdateGroupAddress,
135135
UpdateMemberAddress,
136-
MintConfidentialTokens,
137-
BurnConfidentialTokens,
138-
ConfidentialBalance,
139-
ConfidentialSupply,
140-
RotateSupplyElgamal,
141136
}
142137
impl fmt::Display for CommandName {
143138
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
@@ -888,18 +883,6 @@ pub fn app<'a, 'b>(
888883
feature for the token, use \"none\"."
889884
)
890885
)
891-
.arg(
892-
Arg::with_name("confidential_supply_pubkey")
893-
.long("confidential-supply-pubkey")
894-
.value_name("CONFIDENTIAL_SUPPLY_PUBKEY")
895-
.takes_value(true)
896-
.help(
897-
"The confidential supply encryption public key for mints with the \
898-
confidential transfer and confidential mint-burn extension enabled. \
899-
The corresponding private key for this supply public key can be \
900-
used to decrypt the confidential supply of the token."
901-
)
902-
)
903886
.nonce_args(true)
904887
.arg(memo_arg())
905888
)
@@ -2704,219 +2687,4 @@ pub fn app<'a, 'b>(
27042687
.arg(multisig_signer_arg())
27052688
.nonce_args(true)
27062689
)
2707-
.subcommand(
2708-
SubCommand::with_name(CommandName::MintConfidentialTokens.into())
2709-
.about("Mint tokens amounts for into confidential balance")
2710-
.arg(
2711-
Arg::with_name("token")
2712-
.long("token")
2713-
.validator(is_valid_pubkey)
2714-
.value_name("TOKEN_MINT_ADDRESS")
2715-
.takes_value(true)
2716-
.index(1)
2717-
.required(true)
2718-
.help("The token address with confidential transfers enabled"),
2719-
)
2720-
.arg(
2721-
Arg::with_name("amount")
2722-
.validator(is_amount_or_all)
2723-
.value_name("TOKEN_AMOUNT")
2724-
.takes_value(true)
2725-
.index(2)
2726-
.required(true)
2727-
.help("Amount to deposit; accepts keyword ALL"),
2728-
)
2729-
.arg(
2730-
Arg::with_name("address")
2731-
.long("address")
2732-
.validator(is_valid_pubkey)
2733-
.value_name("TOKEN_ACCOUNT_ADDRESS")
2734-
.takes_value(true)
2735-
.help("The address of the token account to configure confidential transfers for \
2736-
[default: owner's associated token account]")
2737-
)
2738-
.arg(
2739-
owner_address_arg()
2740-
)
2741-
.arg(multisig_signer_arg())
2742-
.arg(mint_decimals_arg())
2743-
.nonce_args(true)
2744-
)
2745-
.subcommand(
2746-
SubCommand::with_name(CommandName::BurnConfidentialTokens.into())
2747-
.about("Burn tokens from available confidential balance")
2748-
.arg(
2749-
Arg::with_name("token")
2750-
.long("token")
2751-
.validator(is_valid_pubkey)
2752-
.value_name("TOKEN_MINT_ADDRESS")
2753-
.takes_value(true)
2754-
.index(1)
2755-
.required(true)
2756-
.help("The token address with confidential transfers enabled"),
2757-
)
2758-
.arg(
2759-
Arg::with_name("amount")
2760-
.validator(is_amount_or_all)
2761-
.value_name("TOKEN_AMOUNT")
2762-
.takes_value(true)
2763-
.index(2)
2764-
.required(true)
2765-
.help("Amount to deposit; accepts keyword ALL"),
2766-
)
2767-
.arg(
2768-
Arg::with_name("address")
2769-
.long("address")
2770-
.validator(is_valid_pubkey)
2771-
.value_name("TOKEN_ACCOUNT_ADDRESS")
2772-
.takes_value(true)
2773-
.help("The address of the token account to configure confidential transfers for \
2774-
[default: owner's associated token account]")
2775-
)
2776-
.arg(
2777-
owner_address_arg()
2778-
)
2779-
.arg(multisig_signer_arg())
2780-
.arg(mint_decimals_arg())
2781-
.nonce_args(true)
2782-
)
2783-
.subcommand(
2784-
SubCommand::with_name(CommandName::ConfidentialBalance.into())
2785-
.about("Display confidential balance")
2786-
.arg(
2787-
Arg::with_name("token")
2788-
.long("token")
2789-
.validator(is_valid_pubkey)
2790-
.value_name("TOKEN_MINT_ADDRESS")
2791-
.takes_value(true)
2792-
.index(1)
2793-
.required(true)
2794-
.help("The token address with confidential transfers enabled"),
2795-
)
2796-
.arg(
2797-
Arg::with_name("address")
2798-
.long("address")
2799-
.validator(is_valid_pubkey)
2800-
.value_name("TOKEN_ACCOUNT_ADDRESS")
2801-
.takes_value(true)
2802-
.index(2)
2803-
.help("The address of the token account to for which to fetch the confidential balance")
2804-
)
2805-
.arg(
2806-
Arg::with_name("authority")
2807-
.long("authority")
2808-
.alias("owner")
2809-
.validator(is_valid_signer)
2810-
.value_name("SIGNER")
2811-
.takes_value(true)
2812-
.help("Keypair from which encryption keys for token account were derived.")
2813-
)
2814-
.arg(
2815-
owner_address_arg()
2816-
)
2817-
.arg(multisig_signer_arg())
2818-
.arg(mint_decimals_arg())
2819-
.nonce_args(true)
2820-
)
2821-
.subcommand(
2822-
SubCommand::with_name(CommandName::ConfidentialSupply.into())
2823-
.about("Display supply of confidential token")
2824-
.arg(
2825-
Arg::with_name("token")
2826-
.long("token")
2827-
.validator(is_valid_pubkey)
2828-
.value_name("TOKEN_MINT_ADDRESS")
2829-
.takes_value(true)
2830-
.index(1)
2831-
.required(true)
2832-
.help("The token address with confidential transfers enabled"),
2833-
)
2834-
.arg(
2835-
Arg::with_name("authority")
2836-
.long("authority")
2837-
.alias("owner")
2838-
.validator(is_valid_signer)
2839-
.value_name("SIGNER")
2840-
.takes_value(true)
2841-
.help("Keypair from which the supply elgamal keypair is derived. \
2842-
Either the authority or the confidential-supply-keypair have \
2843-
to be specified in order for the supply to be decrypted.")
2844-
)
2845-
.arg(
2846-
Arg::with_name("confidential_supply_keypair")
2847-
.long("confidential-supply-keypair")
2848-
.value_name("CONFIDENTIAL_SUPPLY_KEYPAIR")
2849-
.takes_value(true)
2850-
.help(
2851-
"The confidential supply encryption keypair used to decrypt ElGamalCiphertext supply. \
2852-
Either the authority or the confidential-supply-keypair have \
2853-
to be specified in order for the supply to be decrypted."
2854-
)
2855-
)
2856-
.arg(
2857-
Arg::with_name("confidential_supply_aes_key")
2858-
.long("confidential-supply-aes-key")
2859-
.value_name("CONFIDENTIAL_SUPPLY_AES_KEY")
2860-
.takes_value(true)
2861-
.help(
2862-
"The aes key used to decrypt the decryptable portion of the confidential supply."
2863-
)
2864-
)
2865-
.nonce_args(true)
2866-
)
2867-
.subcommand(
2868-
SubCommand::with_name(CommandName::RotateSupplyElgamal.into())
2869-
.about("Display supply of confidential token")
2870-
.arg(
2871-
Arg::with_name("token")
2872-
.long("token")
2873-
.validator(is_valid_pubkey)
2874-
.value_name("TOKEN_MINT_ADDRESS")
2875-
.takes_value(true)
2876-
.index(1)
2877-
.required(true)
2878-
.help("The token address with confidential transfers enabled"),
2879-
)
2880-
.arg(
2881-
Arg::with_name("authority")
2882-
.long("authority")
2883-
.alias("owner")
2884-
.validator(is_valid_signer)
2885-
.value_name("SIGNER")
2886-
.takes_value(true)
2887-
.required(true)
2888-
.help("Keypair holding the authority over the confidential-mint-burn extension.")
2889-
)
2890-
.arg(
2891-
Arg::with_name("current_supply_keypair")
2892-
.long("current-supply-keypair")
2893-
.value_name("CURRENT_SUPPLY_KEYPAIR")
2894-
.takes_value(true)
2895-
.required(true)
2896-
.help(
2897-
"The current confidential supply encryption keypair."
2898-
)
2899-
)
2900-
.arg(
2901-
Arg::with_name("supply_aes_key")
2902-
.long("supply-aes-key")
2903-
.value_name("SUPPLY_AES_KEY")
2904-
.takes_value(true)
2905-
.required(true)
2906-
.help(
2907-
"The aes key to decrypt the decryptable confidential supply."
2908-
)
2909-
)
2910-
.arg(
2911-
Arg::with_name("new_supply_keypair")
2912-
.long("new-supply-keypair")
2913-
.value_name("NEW_SUPPLY_KEYPAIR")
2914-
.takes_value(true)
2915-
.required(true)
2916-
.help(
2917-
"The new confidential supply encryption keypair to rotate to."
2918-
)
2919-
)
2920-
.nonce_args(true)
2921-
)
29222690
}

0 commit comments

Comments
 (0)