mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 04:18:10 +00:00
fix(core/rust): exclude altcoin strings from generated code
This commit is contained in:
parent
ccf4b7e9eb
commit
17678ef38d
@ -62,18 +62,6 @@ static void _librust_qstrs(void) {
|
||||
MP_QSTR_backup__title_backup_wallet;
|
||||
MP_QSTR_backup__title_skip;
|
||||
MP_QSTR_backup__want_to_skip;
|
||||
MP_QSTR_binance__buy;
|
||||
MP_QSTR_binance__confirm_cancel;
|
||||
MP_QSTR_binance__confirm_input;
|
||||
MP_QSTR_binance__confirm_order;
|
||||
MP_QSTR_binance__confirm_output;
|
||||
MP_QSTR_binance__order_id;
|
||||
MP_QSTR_binance__pair;
|
||||
MP_QSTR_binance__price;
|
||||
MP_QSTR_binance__quantity;
|
||||
MP_QSTR_binance__sell;
|
||||
MP_QSTR_binance__sender_address;
|
||||
MP_QSTR_binance__side;
|
||||
MP_QSTR_bitcoin__commitment_data;
|
||||
MP_QSTR_bitcoin__confirm_locktime;
|
||||
MP_QSTR_bitcoin__create_proof_of_ownership;
|
||||
@ -146,115 +134,6 @@ static void _librust_qstrs(void) {
|
||||
MP_QSTR_can_go_back;
|
||||
MP_QSTR_cancel_arrow;
|
||||
MP_QSTR_cancel_cross;
|
||||
MP_QSTR_cardano__addr_base;
|
||||
MP_QSTR_cardano__addr_enterprise;
|
||||
MP_QSTR_cardano__addr_legacy;
|
||||
MP_QSTR_cardano__addr_pointer;
|
||||
MP_QSTR_cardano__addr_reward;
|
||||
MP_QSTR_cardano__address_no_staking;
|
||||
MP_QSTR_cardano__amount_burned_decimals_unknown;
|
||||
MP_QSTR_cardano__amount_minted_decimals_unknown;
|
||||
MP_QSTR_cardano__amount_sent_decimals_unknown;
|
||||
MP_QSTR_cardano__anonymous_pool;
|
||||
MP_QSTR_cardano__asset_fingerprint;
|
||||
MP_QSTR_cardano__auxiliary_data_hash;
|
||||
MP_QSTR_cardano__block;
|
||||
MP_QSTR_cardano__catalyst;
|
||||
MP_QSTR_cardano__certificate;
|
||||
MP_QSTR_cardano__change_output;
|
||||
MP_QSTR_cardano__check_all_items;
|
||||
MP_QSTR_cardano__choose_level_of_details;
|
||||
MP_QSTR_cardano__collateral_input_id;
|
||||
MP_QSTR_cardano__collateral_input_index;
|
||||
MP_QSTR_cardano__collateral_output_contains_tokens;
|
||||
MP_QSTR_cardano__collateral_return;
|
||||
MP_QSTR_cardano__confirm;
|
||||
MP_QSTR_cardano__confirm_signing_stake_pool;
|
||||
MP_QSTR_cardano__confirm_transaction;
|
||||
MP_QSTR_cardano__confirming_a_multisig_transaction;
|
||||
MP_QSTR_cardano__confirming_a_plutus_transaction;
|
||||
MP_QSTR_cardano__confirming_pool_registration;
|
||||
MP_QSTR_cardano__confirming_transction;
|
||||
MP_QSTR_cardano__cost;
|
||||
MP_QSTR_cardano__credential_mismatch;
|
||||
MP_QSTR_cardano__datum_hash;
|
||||
MP_QSTR_cardano__delegating_to;
|
||||
MP_QSTR_cardano__for_account_and_index_template;
|
||||
MP_QSTR_cardano__for_account_template;
|
||||
MP_QSTR_cardano__for_key_hash;
|
||||
MP_QSTR_cardano__for_script;
|
||||
MP_QSTR_cardano__inline_datum;
|
||||
MP_QSTR_cardano__input_id;
|
||||
MP_QSTR_cardano__input_index;
|
||||
MP_QSTR_cardano__intro_text_change;
|
||||
MP_QSTR_cardano__intro_text_owned_by_device;
|
||||
MP_QSTR_cardano__intro_text_registration_payment;
|
||||
MP_QSTR_cardano__key_hash;
|
||||
MP_QSTR_cardano__margin;
|
||||
MP_QSTR_cardano__multisig_path;
|
||||
MP_QSTR_cardano__nested_scripts_template;
|
||||
MP_QSTR_cardano__network;
|
||||
MP_QSTR_cardano__no_output_tx;
|
||||
MP_QSTR_cardano__nonce;
|
||||
MP_QSTR_cardano__other;
|
||||
MP_QSTR_cardano__path;
|
||||
MP_QSTR_cardano__pledge;
|
||||
MP_QSTR_cardano__pointer;
|
||||
MP_QSTR_cardano__policy_id;
|
||||
MP_QSTR_cardano__pool_metadata_hash;
|
||||
MP_QSTR_cardano__pool_metadata_url;
|
||||
MP_QSTR_cardano__pool_owner;
|
||||
MP_QSTR_cardano__pool_reward_account;
|
||||
MP_QSTR_cardano__reference_input_id;
|
||||
MP_QSTR_cardano__reference_input_index;
|
||||
MP_QSTR_cardano__reference_script;
|
||||
MP_QSTR_cardano__required_signer;
|
||||
MP_QSTR_cardano__reward;
|
||||
MP_QSTR_cardano__reward_address;
|
||||
MP_QSTR_cardano__reward_eligibility_warning;
|
||||
MP_QSTR_cardano__rewards_go_to;
|
||||
MP_QSTR_cardano__script;
|
||||
MP_QSTR_cardano__script_all;
|
||||
MP_QSTR_cardano__script_any;
|
||||
MP_QSTR_cardano__script_data_hash;
|
||||
MP_QSTR_cardano__script_hash;
|
||||
MP_QSTR_cardano__script_invalid_before;
|
||||
MP_QSTR_cardano__script_invalid_hereafter;
|
||||
MP_QSTR_cardano__script_key;
|
||||
MP_QSTR_cardano__script_n_of_k;
|
||||
MP_QSTR_cardano__script_reward;
|
||||
MP_QSTR_cardano__sending;
|
||||
MP_QSTR_cardano__show_simple;
|
||||
MP_QSTR_cardano__sign_tx_path_template;
|
||||
MP_QSTR_cardano__stake_delegation;
|
||||
MP_QSTR_cardano__stake_deregistration;
|
||||
MP_QSTR_cardano__stake_pool_registration;
|
||||
MP_QSTR_cardano__stake_pool_registration_pool_id;
|
||||
MP_QSTR_cardano__stake_registration;
|
||||
MP_QSTR_cardano__staking_key_for_account;
|
||||
MP_QSTR_cardano__to_pool;
|
||||
MP_QSTR_cardano__token_minting_path;
|
||||
MP_QSTR_cardano__total_collateral;
|
||||
MP_QSTR_cardano__transaction;
|
||||
MP_QSTR_cardano__transaction_contains_minting_or_burning;
|
||||
MP_QSTR_cardano__transaction_contains_script_address_no_datum;
|
||||
MP_QSTR_cardano__transaction_fee;
|
||||
MP_QSTR_cardano__transaction_id;
|
||||
MP_QSTR_cardano__transaction_no_collateral_input;
|
||||
MP_QSTR_cardano__transaction_no_script_data_hash;
|
||||
MP_QSTR_cardano__transaction_output_contains_tokens;
|
||||
MP_QSTR_cardano__ttl;
|
||||
MP_QSTR_cardano__unknown_collateral_amount;
|
||||
MP_QSTR_cardano__unusual_path;
|
||||
MP_QSTR_cardano__valid_since;
|
||||
MP_QSTR_cardano__verify_script;
|
||||
MP_QSTR_cardano__vote_key_registration;
|
||||
MP_QSTR_cardano__vote_public_key;
|
||||
MP_QSTR_cardano__voting_purpose;
|
||||
MP_QSTR_cardano__warning;
|
||||
MP_QSTR_cardano__weight;
|
||||
MP_QSTR_cardano__withdrawal_for_address_template;
|
||||
MP_QSTR_cardano__x_of_y_signatures_template;
|
||||
MP_QSTR_case_sensitive;
|
||||
MP_QSTR_check_homescreen_format;
|
||||
MP_QSTR_chunkify;
|
||||
@ -311,79 +190,7 @@ static void _librust_qstrs(void) {
|
||||
MP_QSTR_entropy__send;
|
||||
MP_QSTR_entropy__title;
|
||||
MP_QSTR_entropy__title_confirm;
|
||||
MP_QSTR_eos__about_to_sign_template;
|
||||
MP_QSTR_eos__action_name;
|
||||
MP_QSTR_eos__arbitrary_data;
|
||||
MP_QSTR_eos__buy_ram;
|
||||
MP_QSTR_eos__bytes;
|
||||
MP_QSTR_eos__cancel_vote;
|
||||
MP_QSTR_eos__checksum;
|
||||
MP_QSTR_eos__code;
|
||||
MP_QSTR_eos__contract;
|
||||
MP_QSTR_eos__cpu;
|
||||
MP_QSTR_eos__creator;
|
||||
MP_QSTR_eos__delegate;
|
||||
MP_QSTR_eos__delete_auth;
|
||||
MP_QSTR_eos__from;
|
||||
MP_QSTR_eos__link_auth;
|
||||
MP_QSTR_eos__memo;
|
||||
MP_QSTR_eos__name;
|
||||
MP_QSTR_eos__net;
|
||||
MP_QSTR_eos__new_account;
|
||||
MP_QSTR_eos__owner;
|
||||
MP_QSTR_eos__parent;
|
||||
MP_QSTR_eos__payer;
|
||||
MP_QSTR_eos__permission;
|
||||
MP_QSTR_eos__proxy;
|
||||
MP_QSTR_eos__receiver;
|
||||
MP_QSTR_eos__refund;
|
||||
MP_QSTR_eos__requirement;
|
||||
MP_QSTR_eos__sell_ram;
|
||||
MP_QSTR_eos__sender;
|
||||
MP_QSTR_eos__sign_transaction;
|
||||
MP_QSTR_eos__threshold;
|
||||
MP_QSTR_eos__to;
|
||||
MP_QSTR_eos__transfer;
|
||||
MP_QSTR_eos__type;
|
||||
MP_QSTR_eos__undelegate;
|
||||
MP_QSTR_eos__unlink_auth;
|
||||
MP_QSTR_eos__update_auth;
|
||||
MP_QSTR_eos__vote_for_producers;
|
||||
MP_QSTR_eos__vote_for_proxy;
|
||||
MP_QSTR_eos__voter;
|
||||
MP_QSTR_erase;
|
||||
MP_QSTR_ethereum__amount_sent;
|
||||
MP_QSTR_ethereum__contract;
|
||||
MP_QSTR_ethereum__data_size_template;
|
||||
MP_QSTR_ethereum__gas_limit;
|
||||
MP_QSTR_ethereum__gas_price;
|
||||
MP_QSTR_ethereum__max_gas_price;
|
||||
MP_QSTR_ethereum__name_and_version;
|
||||
MP_QSTR_ethereum__new_contract;
|
||||
MP_QSTR_ethereum__no_message_field;
|
||||
MP_QSTR_ethereum__priority_fee;
|
||||
MP_QSTR_ethereum__show_full_array;
|
||||
MP_QSTR_ethereum__show_full_domain;
|
||||
MP_QSTR_ethereum__show_full_message;
|
||||
MP_QSTR_ethereum__show_full_struct;
|
||||
MP_QSTR_ethereum__sign_eip712;
|
||||
MP_QSTR_ethereum__staking_claim;
|
||||
MP_QSTR_ethereum__staking_claim_address;
|
||||
MP_QSTR_ethereum__staking_claim_intro;
|
||||
MP_QSTR_ethereum__staking_stake;
|
||||
MP_QSTR_ethereum__staking_stake_address;
|
||||
MP_QSTR_ethereum__staking_stake_intro;
|
||||
MP_QSTR_ethereum__staking_unstake;
|
||||
MP_QSTR_ethereum__staking_unstake_intro;
|
||||
MP_QSTR_ethereum__title_confirm_data;
|
||||
MP_QSTR_ethereum__title_confirm_domain;
|
||||
MP_QSTR_ethereum__title_confirm_message;
|
||||
MP_QSTR_ethereum__title_confirm_struct;
|
||||
MP_QSTR_ethereum__title_confirm_typed_data;
|
||||
MP_QSTR_ethereum__title_signing_address;
|
||||
MP_QSTR_ethereum__units_template;
|
||||
MP_QSTR_ethereum__unknown_token;
|
||||
MP_QSTR_ethereum__valid_signature;
|
||||
MP_QSTR_experimental_mode__enable;
|
||||
MP_QSTR_experimental_mode__only_for_dev;
|
||||
MP_QSTR_experimental_mode__title;
|
||||
@ -393,27 +200,6 @@ static void _librust_qstrs(void) {
|
||||
MP_QSTR_fee_rate_amount;
|
||||
MP_QSTR_fee_title;
|
||||
MP_QSTR_fee_value;
|
||||
MP_QSTR_fido__already_registered;
|
||||
MP_QSTR_fido__device_already_registered;
|
||||
MP_QSTR_fido__device_already_registered_with_template;
|
||||
MP_QSTR_fido__device_not_registered;
|
||||
MP_QSTR_fido__does_not_belong;
|
||||
MP_QSTR_fido__erase_credentials;
|
||||
MP_QSTR_fido__export_credentials;
|
||||
MP_QSTR_fido__not_registered;
|
||||
MP_QSTR_fido__not_registered_with_template;
|
||||
MP_QSTR_fido__please_enable_pin_protection;
|
||||
MP_QSTR_fido__title_authenticate;
|
||||
MP_QSTR_fido__title_import_credential;
|
||||
MP_QSTR_fido__title_list_credentials;
|
||||
MP_QSTR_fido__title_register;
|
||||
MP_QSTR_fido__title_remove_credential;
|
||||
MP_QSTR_fido__title_reset;
|
||||
MP_QSTR_fido__title_u2f_auth;
|
||||
MP_QSTR_fido__title_u2f_register;
|
||||
MP_QSTR_fido__title_verify_user;
|
||||
MP_QSTR_fido__unable_to_verify_user;
|
||||
MP_QSTR_fido__wanna_erase_credentials;
|
||||
MP_QSTR_fingerprint;
|
||||
MP_QSTR_firmware_update__title;
|
||||
MP_QSTR_firmware_update__title_fingerprint;
|
||||
@ -480,76 +266,7 @@ static void _librust_qstrs(void) {
|
||||
MP_QSTR_modify_fee__no_change;
|
||||
MP_QSTR_modify_fee__title;
|
||||
MP_QSTR_modify_fee__transaction_fee;
|
||||
MP_QSTR_monero__confirm_export;
|
||||
MP_QSTR_monero__confirm_ki_sync;
|
||||
MP_QSTR_monero__confirm_refresh;
|
||||
MP_QSTR_monero__confirm_unlock_time;
|
||||
MP_QSTR_monero__hashing_inputs;
|
||||
MP_QSTR_monero__payment_id;
|
||||
MP_QSTR_monero__postprocessing;
|
||||
MP_QSTR_monero__processing;
|
||||
MP_QSTR_monero__processing_inputs;
|
||||
MP_QSTR_monero__processing_outputs;
|
||||
MP_QSTR_monero__signing;
|
||||
MP_QSTR_monero__signing_inputs;
|
||||
MP_QSTR_monero__unlock_time_set_template;
|
||||
MP_QSTR_monero__wanna_export_tx_der;
|
||||
MP_QSTR_monero__wanna_export_tx_key;
|
||||
MP_QSTR_monero__wanna_export_watchkey;
|
||||
MP_QSTR_monero__wanna_start_refresh;
|
||||
MP_QSTR_monero__wanna_sync_key_images;
|
||||
MP_QSTR_multiple_pages_texts;
|
||||
MP_QSTR_nem__absolute;
|
||||
MP_QSTR_nem__activate;
|
||||
MP_QSTR_nem__add;
|
||||
MP_QSTR_nem__confirm_action;
|
||||
MP_QSTR_nem__confirm_address;
|
||||
MP_QSTR_nem__confirm_creation_fee;
|
||||
MP_QSTR_nem__confirm_mosaic;
|
||||
MP_QSTR_nem__confirm_multisig_fee;
|
||||
MP_QSTR_nem__confirm_namespace;
|
||||
MP_QSTR_nem__confirm_payload;
|
||||
MP_QSTR_nem__confirm_properties;
|
||||
MP_QSTR_nem__confirm_rental_fee;
|
||||
MP_QSTR_nem__confirm_transfer_of;
|
||||
MP_QSTR_nem__convert_account_to_multisig;
|
||||
MP_QSTR_nem__cosign_transaction_for;
|
||||
MP_QSTR_nem__cosignatory;
|
||||
MP_QSTR_nem__create_mosaic;
|
||||
MP_QSTR_nem__create_namespace;
|
||||
MP_QSTR_nem__deactivate;
|
||||
MP_QSTR_nem__decrease;
|
||||
MP_QSTR_nem__description;
|
||||
MP_QSTR_nem__divisibility_and_levy_cannot_be_shown;
|
||||
MP_QSTR_nem__encrypted;
|
||||
MP_QSTR_nem__final_confirm;
|
||||
MP_QSTR_nem__immutable;
|
||||
MP_QSTR_nem__increase;
|
||||
MP_QSTR_nem__initial_supply;
|
||||
MP_QSTR_nem__initiate_transaction_for;
|
||||
MP_QSTR_nem__levy_divisibility;
|
||||
MP_QSTR_nem__levy_fee;
|
||||
MP_QSTR_nem__levy_fee_of;
|
||||
MP_QSTR_nem__levy_mosaic;
|
||||
MP_QSTR_nem__levy_namespace;
|
||||
MP_QSTR_nem__levy_recipient;
|
||||
MP_QSTR_nem__levy_type;
|
||||
MP_QSTR_nem__modify_supply_for;
|
||||
MP_QSTR_nem__modify_the_number_of_cosignatories_by;
|
||||
MP_QSTR_nem__mutable;
|
||||
MP_QSTR_nem__of;
|
||||
MP_QSTR_nem__percentile;
|
||||
MP_QSTR_nem__raw_units_template;
|
||||
MP_QSTR_nem__remote_harvesting;
|
||||
MP_QSTR_nem__remove;
|
||||
MP_QSTR_nem__set_minimum_cosignatories_to;
|
||||
MP_QSTR_nem__sign_tx_fee_template;
|
||||
MP_QSTR_nem__supply_change;
|
||||
MP_QSTR_nem__supply_units_template;
|
||||
MP_QSTR_nem__transferable;
|
||||
MP_QSTR_nem__under_namespace;
|
||||
MP_QSTR_nem__unencrypted;
|
||||
MP_QSTR_nem__unknown_mosaic;
|
||||
MP_QSTR_notification;
|
||||
MP_QSTR_notification_level;
|
||||
MP_QSTR_page_count;
|
||||
@ -741,8 +458,6 @@ static void _librust_qstrs(void) {
|
||||
MP_QSTR_reset__you_need_one_share;
|
||||
MP_QSTR_reset__your_backup_is_done;
|
||||
MP_QSTR_reverse;
|
||||
MP_QSTR_ripple__confirm_tag;
|
||||
MP_QSTR_ripple__destination_tag_template;
|
||||
MP_QSTR_rotation__change_template;
|
||||
MP_QSTR_rotation__east;
|
||||
MP_QSTR_rotation__north;
|
||||
@ -822,103 +537,10 @@ static void _librust_qstrs(void) {
|
||||
MP_QSTR_sign_message__message_size;
|
||||
MP_QSTR_sign_message__verify_address;
|
||||
MP_QSTR_skip_first_paint;
|
||||
MP_QSTR_solana__account_index;
|
||||
MP_QSTR_solana__associated_token_account;
|
||||
MP_QSTR_solana__confirm_multisig;
|
||||
MP_QSTR_solana__expected_fee;
|
||||
MP_QSTR_solana__instruction_accounts_template;
|
||||
MP_QSTR_solana__instruction_data;
|
||||
MP_QSTR_solana__instruction_is_multisig;
|
||||
MP_QSTR_solana__is_provided_via_lookup_table_template;
|
||||
MP_QSTR_solana__lookup_table_address;
|
||||
MP_QSTR_solana__multiple_signers;
|
||||
MP_QSTR_solana__token_address;
|
||||
MP_QSTR_solana__transaction_contains_unknown_instructions;
|
||||
MP_QSTR_solana__transaction_requires_x_signers_template;
|
||||
MP_QSTR_spending_amount;
|
||||
MP_QSTR_stellar__account_merge;
|
||||
MP_QSTR_stellar__account_thresholds;
|
||||
MP_QSTR_stellar__add_signer;
|
||||
MP_QSTR_stellar__add_trust;
|
||||
MP_QSTR_stellar__all_will_be_sent_to;
|
||||
MP_QSTR_stellar__allow_trust;
|
||||
MP_QSTR_stellar__asset;
|
||||
MP_QSTR_stellar__balance_id;
|
||||
MP_QSTR_stellar__bump_sequence;
|
||||
MP_QSTR_stellar__buying;
|
||||
MP_QSTR_stellar__claim_claimable_balance;
|
||||
MP_QSTR_stellar__clear_data;
|
||||
MP_QSTR_stellar__clear_flags;
|
||||
MP_QSTR_stellar__confirm_issuer;
|
||||
MP_QSTR_stellar__confirm_memo;
|
||||
MP_QSTR_stellar__confirm_network;
|
||||
MP_QSTR_stellar__confirm_operation;
|
||||
MP_QSTR_stellar__confirm_stellar;
|
||||
MP_QSTR_stellar__confirm_timebounds;
|
||||
MP_QSTR_stellar__create_account;
|
||||
MP_QSTR_stellar__debited_amount;
|
||||
MP_QSTR_stellar__delete;
|
||||
MP_QSTR_stellar__delete_passive_offer;
|
||||
MP_QSTR_stellar__delete_trust;
|
||||
MP_QSTR_stellar__destination;
|
||||
MP_QSTR_stellar__exchanges_require_memo;
|
||||
MP_QSTR_stellar__final_confirm;
|
||||
MP_QSTR_stellar__hash;
|
||||
MP_QSTR_stellar__high;
|
||||
MP_QSTR_stellar__home_domain;
|
||||
MP_QSTR_stellar__inflation;
|
||||
MP_QSTR_stellar__initial_balance;
|
||||
MP_QSTR_stellar__initialize_signing_with;
|
||||
MP_QSTR_stellar__issuer_template;
|
||||
MP_QSTR_stellar__key;
|
||||
MP_QSTR_stellar__limit;
|
||||
MP_QSTR_stellar__low;
|
||||
MP_QSTR_stellar__master_weight;
|
||||
MP_QSTR_stellar__medium;
|
||||
MP_QSTR_stellar__new_offer;
|
||||
MP_QSTR_stellar__new_passive_offer;
|
||||
MP_QSTR_stellar__no_memo_set;
|
||||
MP_QSTR_stellar__no_restriction;
|
||||
MP_QSTR_stellar__on_network_template;
|
||||
MP_QSTR_stellar__path_pay;
|
||||
MP_QSTR_stellar__path_pay_at_least;
|
||||
MP_QSTR_stellar__pay;
|
||||
MP_QSTR_stellar__pay_at_most;
|
||||
MP_QSTR_stellar__preauth_transaction;
|
||||
MP_QSTR_stellar__price_per_template;
|
||||
MP_QSTR_stellar__private_network;
|
||||
MP_QSTR_stellar__remove_signer;
|
||||
MP_QSTR_stellar__revoke_trust;
|
||||
MP_QSTR_stellar__selling;
|
||||
MP_QSTR_stellar__set_data;
|
||||
MP_QSTR_stellar__set_flags;
|
||||
MP_QSTR_stellar__set_sequence_to_template;
|
||||
MP_QSTR_stellar__sign_tx_count_template;
|
||||
MP_QSTR_stellar__sign_tx_fee_template;
|
||||
MP_QSTR_stellar__source_account;
|
||||
MP_QSTR_stellar__testnet_network;
|
||||
MP_QSTR_stellar__trusted_account;
|
||||
MP_QSTR_stellar__update;
|
||||
MP_QSTR_stellar__valid_from;
|
||||
MP_QSTR_stellar__valid_to;
|
||||
MP_QSTR_stellar__value_sha256;
|
||||
MP_QSTR_stellar__wanna_clean_value_key_template;
|
||||
MP_QSTR_stellar__your_account;
|
||||
MP_QSTR_subprompt;
|
||||
MP_QSTR_subtitle;
|
||||
MP_QSTR_text_mono;
|
||||
MP_QSTR_tezos__baker_address;
|
||||
MP_QSTR_tezos__balance;
|
||||
MP_QSTR_tezos__ballot;
|
||||
MP_QSTR_tezos__confirm_delegation;
|
||||
MP_QSTR_tezos__confirm_origination;
|
||||
MP_QSTR_tezos__delegator;
|
||||
MP_QSTR_tezos__proposal;
|
||||
MP_QSTR_tezos__register_delegate;
|
||||
MP_QSTR_tezos__remove_delegation;
|
||||
MP_QSTR_tezos__submit_ballot;
|
||||
MP_QSTR_tezos__submit_proposal;
|
||||
MP_QSTR_tezos__submit_proposals;
|
||||
MP_QSTR_time_ms;
|
||||
MP_QSTR_timer;
|
||||
MP_QSTR_title;
|
||||
@ -944,10 +566,6 @@ static void _librust_qstrs(void) {
|
||||
MP_QSTR_tutorial__welcome_press_right;
|
||||
MP_QSTR_type_for_name;
|
||||
MP_QSTR_type_for_wire;
|
||||
MP_QSTR_u2f__get;
|
||||
MP_QSTR_u2f__set_template;
|
||||
MP_QSTR_u2f__title_get;
|
||||
MP_QSTR_u2f__title_set;
|
||||
MP_QSTR_usb_event;
|
||||
MP_QSTR_user_fee_change;
|
||||
MP_QSTR_value;
|
||||
@ -1021,4 +639,388 @@ static void _librust_qstrs(void) {
|
||||
MP_QSTR_write;
|
||||
MP_QSTR_wrong_pin;
|
||||
MP_QSTR_xpubs;
|
||||
#if !BITCOIN_ONLY
|
||||
MP_QSTR_binance__buy;
|
||||
MP_QSTR_binance__confirm_cancel;
|
||||
MP_QSTR_binance__confirm_input;
|
||||
MP_QSTR_binance__confirm_order;
|
||||
MP_QSTR_binance__confirm_output;
|
||||
MP_QSTR_binance__order_id;
|
||||
MP_QSTR_binance__pair;
|
||||
MP_QSTR_binance__price;
|
||||
MP_QSTR_binance__quantity;
|
||||
MP_QSTR_binance__sell;
|
||||
MP_QSTR_binance__sender_address;
|
||||
MP_QSTR_binance__side;
|
||||
MP_QSTR_cardano__addr_base;
|
||||
MP_QSTR_cardano__addr_enterprise;
|
||||
MP_QSTR_cardano__addr_legacy;
|
||||
MP_QSTR_cardano__addr_pointer;
|
||||
MP_QSTR_cardano__addr_reward;
|
||||
MP_QSTR_cardano__address_no_staking;
|
||||
MP_QSTR_cardano__amount_burned_decimals_unknown;
|
||||
MP_QSTR_cardano__amount_minted_decimals_unknown;
|
||||
MP_QSTR_cardano__amount_sent_decimals_unknown;
|
||||
MP_QSTR_cardano__anonymous_pool;
|
||||
MP_QSTR_cardano__asset_fingerprint;
|
||||
MP_QSTR_cardano__auxiliary_data_hash;
|
||||
MP_QSTR_cardano__block;
|
||||
MP_QSTR_cardano__catalyst;
|
||||
MP_QSTR_cardano__certificate;
|
||||
MP_QSTR_cardano__change_output;
|
||||
MP_QSTR_cardano__check_all_items;
|
||||
MP_QSTR_cardano__choose_level_of_details;
|
||||
MP_QSTR_cardano__collateral_input_id;
|
||||
MP_QSTR_cardano__collateral_input_index;
|
||||
MP_QSTR_cardano__collateral_output_contains_tokens;
|
||||
MP_QSTR_cardano__collateral_return;
|
||||
MP_QSTR_cardano__confirm;
|
||||
MP_QSTR_cardano__confirm_signing_stake_pool;
|
||||
MP_QSTR_cardano__confirm_transaction;
|
||||
MP_QSTR_cardano__confirming_a_multisig_transaction;
|
||||
MP_QSTR_cardano__confirming_a_plutus_transaction;
|
||||
MP_QSTR_cardano__confirming_pool_registration;
|
||||
MP_QSTR_cardano__confirming_transction;
|
||||
MP_QSTR_cardano__cost;
|
||||
MP_QSTR_cardano__credential_mismatch;
|
||||
MP_QSTR_cardano__datum_hash;
|
||||
MP_QSTR_cardano__delegating_to;
|
||||
MP_QSTR_cardano__for_account_and_index_template;
|
||||
MP_QSTR_cardano__for_account_template;
|
||||
MP_QSTR_cardano__for_key_hash;
|
||||
MP_QSTR_cardano__for_script;
|
||||
MP_QSTR_cardano__inline_datum;
|
||||
MP_QSTR_cardano__input_id;
|
||||
MP_QSTR_cardano__input_index;
|
||||
MP_QSTR_cardano__intro_text_change;
|
||||
MP_QSTR_cardano__intro_text_owned_by_device;
|
||||
MP_QSTR_cardano__intro_text_registration_payment;
|
||||
MP_QSTR_cardano__key_hash;
|
||||
MP_QSTR_cardano__margin;
|
||||
MP_QSTR_cardano__multisig_path;
|
||||
MP_QSTR_cardano__nested_scripts_template;
|
||||
MP_QSTR_cardano__network;
|
||||
MP_QSTR_cardano__no_output_tx;
|
||||
MP_QSTR_cardano__nonce;
|
||||
MP_QSTR_cardano__other;
|
||||
MP_QSTR_cardano__path;
|
||||
MP_QSTR_cardano__pledge;
|
||||
MP_QSTR_cardano__pointer;
|
||||
MP_QSTR_cardano__policy_id;
|
||||
MP_QSTR_cardano__pool_metadata_hash;
|
||||
MP_QSTR_cardano__pool_metadata_url;
|
||||
MP_QSTR_cardano__pool_owner;
|
||||
MP_QSTR_cardano__pool_reward_account;
|
||||
MP_QSTR_cardano__reference_input_id;
|
||||
MP_QSTR_cardano__reference_input_index;
|
||||
MP_QSTR_cardano__reference_script;
|
||||
MP_QSTR_cardano__required_signer;
|
||||
MP_QSTR_cardano__reward;
|
||||
MP_QSTR_cardano__reward_address;
|
||||
MP_QSTR_cardano__reward_eligibility_warning;
|
||||
MP_QSTR_cardano__rewards_go_to;
|
||||
MP_QSTR_cardano__script;
|
||||
MP_QSTR_cardano__script_all;
|
||||
MP_QSTR_cardano__script_any;
|
||||
MP_QSTR_cardano__script_data_hash;
|
||||
MP_QSTR_cardano__script_hash;
|
||||
MP_QSTR_cardano__script_invalid_before;
|
||||
MP_QSTR_cardano__script_invalid_hereafter;
|
||||
MP_QSTR_cardano__script_key;
|
||||
MP_QSTR_cardano__script_n_of_k;
|
||||
MP_QSTR_cardano__script_reward;
|
||||
MP_QSTR_cardano__sending;
|
||||
MP_QSTR_cardano__show_simple;
|
||||
MP_QSTR_cardano__sign_tx_path_template;
|
||||
MP_QSTR_cardano__stake_delegation;
|
||||
MP_QSTR_cardano__stake_deregistration;
|
||||
MP_QSTR_cardano__stake_pool_registration;
|
||||
MP_QSTR_cardano__stake_pool_registration_pool_id;
|
||||
MP_QSTR_cardano__stake_registration;
|
||||
MP_QSTR_cardano__staking_key_for_account;
|
||||
MP_QSTR_cardano__to_pool;
|
||||
MP_QSTR_cardano__token_minting_path;
|
||||
MP_QSTR_cardano__total_collateral;
|
||||
MP_QSTR_cardano__transaction;
|
||||
MP_QSTR_cardano__transaction_contains_minting_or_burning;
|
||||
MP_QSTR_cardano__transaction_contains_script_address_no_datum;
|
||||
MP_QSTR_cardano__transaction_fee;
|
||||
MP_QSTR_cardano__transaction_id;
|
||||
MP_QSTR_cardano__transaction_no_collateral_input;
|
||||
MP_QSTR_cardano__transaction_no_script_data_hash;
|
||||
MP_QSTR_cardano__transaction_output_contains_tokens;
|
||||
MP_QSTR_cardano__ttl;
|
||||
MP_QSTR_cardano__unknown_collateral_amount;
|
||||
MP_QSTR_cardano__unusual_path;
|
||||
MP_QSTR_cardano__valid_since;
|
||||
MP_QSTR_cardano__verify_script;
|
||||
MP_QSTR_cardano__vote_key_registration;
|
||||
MP_QSTR_cardano__vote_public_key;
|
||||
MP_QSTR_cardano__voting_purpose;
|
||||
MP_QSTR_cardano__warning;
|
||||
MP_QSTR_cardano__weight;
|
||||
MP_QSTR_cardano__withdrawal_for_address_template;
|
||||
MP_QSTR_cardano__x_of_y_signatures_template;
|
||||
MP_QSTR_eos__about_to_sign_template;
|
||||
MP_QSTR_eos__action_name;
|
||||
MP_QSTR_eos__arbitrary_data;
|
||||
MP_QSTR_eos__buy_ram;
|
||||
MP_QSTR_eos__bytes;
|
||||
MP_QSTR_eos__cancel_vote;
|
||||
MP_QSTR_eos__checksum;
|
||||
MP_QSTR_eos__code;
|
||||
MP_QSTR_eos__contract;
|
||||
MP_QSTR_eos__cpu;
|
||||
MP_QSTR_eos__creator;
|
||||
MP_QSTR_eos__delegate;
|
||||
MP_QSTR_eos__delete_auth;
|
||||
MP_QSTR_eos__from;
|
||||
MP_QSTR_eos__link_auth;
|
||||
MP_QSTR_eos__memo;
|
||||
MP_QSTR_eos__name;
|
||||
MP_QSTR_eos__net;
|
||||
MP_QSTR_eos__new_account;
|
||||
MP_QSTR_eos__owner;
|
||||
MP_QSTR_eos__parent;
|
||||
MP_QSTR_eos__payer;
|
||||
MP_QSTR_eos__permission;
|
||||
MP_QSTR_eos__proxy;
|
||||
MP_QSTR_eos__receiver;
|
||||
MP_QSTR_eos__refund;
|
||||
MP_QSTR_eos__requirement;
|
||||
MP_QSTR_eos__sell_ram;
|
||||
MP_QSTR_eos__sender;
|
||||
MP_QSTR_eos__sign_transaction;
|
||||
MP_QSTR_eos__threshold;
|
||||
MP_QSTR_eos__to;
|
||||
MP_QSTR_eos__transfer;
|
||||
MP_QSTR_eos__type;
|
||||
MP_QSTR_eos__undelegate;
|
||||
MP_QSTR_eos__unlink_auth;
|
||||
MP_QSTR_eos__update_auth;
|
||||
MP_QSTR_eos__vote_for_producers;
|
||||
MP_QSTR_eos__vote_for_proxy;
|
||||
MP_QSTR_eos__voter;
|
||||
MP_QSTR_ethereum__amount_sent;
|
||||
MP_QSTR_ethereum__contract;
|
||||
MP_QSTR_ethereum__data_size_template;
|
||||
MP_QSTR_ethereum__gas_limit;
|
||||
MP_QSTR_ethereum__gas_price;
|
||||
MP_QSTR_ethereum__max_gas_price;
|
||||
MP_QSTR_ethereum__name_and_version;
|
||||
MP_QSTR_ethereum__new_contract;
|
||||
MP_QSTR_ethereum__no_message_field;
|
||||
MP_QSTR_ethereum__priority_fee;
|
||||
MP_QSTR_ethereum__show_full_array;
|
||||
MP_QSTR_ethereum__show_full_domain;
|
||||
MP_QSTR_ethereum__show_full_message;
|
||||
MP_QSTR_ethereum__show_full_struct;
|
||||
MP_QSTR_ethereum__sign_eip712;
|
||||
MP_QSTR_ethereum__staking_claim;
|
||||
MP_QSTR_ethereum__staking_claim_address;
|
||||
MP_QSTR_ethereum__staking_claim_intro;
|
||||
MP_QSTR_ethereum__staking_stake;
|
||||
MP_QSTR_ethereum__staking_stake_address;
|
||||
MP_QSTR_ethereum__staking_stake_intro;
|
||||
MP_QSTR_ethereum__staking_unstake;
|
||||
MP_QSTR_ethereum__staking_unstake_intro;
|
||||
MP_QSTR_ethereum__title_confirm_data;
|
||||
MP_QSTR_ethereum__title_confirm_domain;
|
||||
MP_QSTR_ethereum__title_confirm_message;
|
||||
MP_QSTR_ethereum__title_confirm_struct;
|
||||
MP_QSTR_ethereum__title_confirm_typed_data;
|
||||
MP_QSTR_ethereum__title_signing_address;
|
||||
MP_QSTR_ethereum__units_template;
|
||||
MP_QSTR_ethereum__unknown_token;
|
||||
MP_QSTR_ethereum__valid_signature;
|
||||
MP_QSTR_fido__already_registered;
|
||||
MP_QSTR_fido__device_already_registered;
|
||||
MP_QSTR_fido__device_already_registered_with_template;
|
||||
MP_QSTR_fido__device_not_registered;
|
||||
MP_QSTR_fido__does_not_belong;
|
||||
MP_QSTR_fido__erase_credentials;
|
||||
MP_QSTR_fido__export_credentials;
|
||||
MP_QSTR_fido__not_registered;
|
||||
MP_QSTR_fido__not_registered_with_template;
|
||||
MP_QSTR_fido__please_enable_pin_protection;
|
||||
MP_QSTR_fido__title_authenticate;
|
||||
MP_QSTR_fido__title_import_credential;
|
||||
MP_QSTR_fido__title_list_credentials;
|
||||
MP_QSTR_fido__title_register;
|
||||
MP_QSTR_fido__title_remove_credential;
|
||||
MP_QSTR_fido__title_reset;
|
||||
MP_QSTR_fido__title_u2f_auth;
|
||||
MP_QSTR_fido__title_u2f_register;
|
||||
MP_QSTR_fido__title_verify_user;
|
||||
MP_QSTR_fido__unable_to_verify_user;
|
||||
MP_QSTR_fido__wanna_erase_credentials;
|
||||
MP_QSTR_monero__confirm_export;
|
||||
MP_QSTR_monero__confirm_ki_sync;
|
||||
MP_QSTR_monero__confirm_refresh;
|
||||
MP_QSTR_monero__confirm_unlock_time;
|
||||
MP_QSTR_monero__hashing_inputs;
|
||||
MP_QSTR_monero__payment_id;
|
||||
MP_QSTR_monero__postprocessing;
|
||||
MP_QSTR_monero__processing;
|
||||
MP_QSTR_monero__processing_inputs;
|
||||
MP_QSTR_monero__processing_outputs;
|
||||
MP_QSTR_monero__signing;
|
||||
MP_QSTR_monero__signing_inputs;
|
||||
MP_QSTR_monero__unlock_time_set_template;
|
||||
MP_QSTR_monero__wanna_export_tx_der;
|
||||
MP_QSTR_monero__wanna_export_tx_key;
|
||||
MP_QSTR_monero__wanna_export_watchkey;
|
||||
MP_QSTR_monero__wanna_start_refresh;
|
||||
MP_QSTR_monero__wanna_sync_key_images;
|
||||
MP_QSTR_nem__absolute;
|
||||
MP_QSTR_nem__activate;
|
||||
MP_QSTR_nem__add;
|
||||
MP_QSTR_nem__confirm_action;
|
||||
MP_QSTR_nem__confirm_address;
|
||||
MP_QSTR_nem__confirm_creation_fee;
|
||||
MP_QSTR_nem__confirm_mosaic;
|
||||
MP_QSTR_nem__confirm_multisig_fee;
|
||||
MP_QSTR_nem__confirm_namespace;
|
||||
MP_QSTR_nem__confirm_payload;
|
||||
MP_QSTR_nem__confirm_properties;
|
||||
MP_QSTR_nem__confirm_rental_fee;
|
||||
MP_QSTR_nem__confirm_transfer_of;
|
||||
MP_QSTR_nem__convert_account_to_multisig;
|
||||
MP_QSTR_nem__cosign_transaction_for;
|
||||
MP_QSTR_nem__cosignatory;
|
||||
MP_QSTR_nem__create_mosaic;
|
||||
MP_QSTR_nem__create_namespace;
|
||||
MP_QSTR_nem__deactivate;
|
||||
MP_QSTR_nem__decrease;
|
||||
MP_QSTR_nem__description;
|
||||
MP_QSTR_nem__divisibility_and_levy_cannot_be_shown;
|
||||
MP_QSTR_nem__encrypted;
|
||||
MP_QSTR_nem__final_confirm;
|
||||
MP_QSTR_nem__immutable;
|
||||
MP_QSTR_nem__increase;
|
||||
MP_QSTR_nem__initial_supply;
|
||||
MP_QSTR_nem__initiate_transaction_for;
|
||||
MP_QSTR_nem__levy_divisibility;
|
||||
MP_QSTR_nem__levy_fee;
|
||||
MP_QSTR_nem__levy_fee_of;
|
||||
MP_QSTR_nem__levy_mosaic;
|
||||
MP_QSTR_nem__levy_namespace;
|
||||
MP_QSTR_nem__levy_recipient;
|
||||
MP_QSTR_nem__levy_type;
|
||||
MP_QSTR_nem__modify_supply_for;
|
||||
MP_QSTR_nem__modify_the_number_of_cosignatories_by;
|
||||
MP_QSTR_nem__mutable;
|
||||
MP_QSTR_nem__of;
|
||||
MP_QSTR_nem__percentile;
|
||||
MP_QSTR_nem__raw_units_template;
|
||||
MP_QSTR_nem__remote_harvesting;
|
||||
MP_QSTR_nem__remove;
|
||||
MP_QSTR_nem__set_minimum_cosignatories_to;
|
||||
MP_QSTR_nem__sign_tx_fee_template;
|
||||
MP_QSTR_nem__supply_change;
|
||||
MP_QSTR_nem__supply_units_template;
|
||||
MP_QSTR_nem__transferable;
|
||||
MP_QSTR_nem__under_namespace;
|
||||
MP_QSTR_nem__unencrypted;
|
||||
MP_QSTR_nem__unknown_mosaic;
|
||||
MP_QSTR_ripple__confirm_tag;
|
||||
MP_QSTR_ripple__destination_tag_template;
|
||||
MP_QSTR_solana__account_index;
|
||||
MP_QSTR_solana__associated_token_account;
|
||||
MP_QSTR_solana__confirm_multisig;
|
||||
MP_QSTR_solana__expected_fee;
|
||||
MP_QSTR_solana__instruction_accounts_template;
|
||||
MP_QSTR_solana__instruction_data;
|
||||
MP_QSTR_solana__instruction_is_multisig;
|
||||
MP_QSTR_solana__is_provided_via_lookup_table_template;
|
||||
MP_QSTR_solana__lookup_table_address;
|
||||
MP_QSTR_solana__multiple_signers;
|
||||
MP_QSTR_solana__token_address;
|
||||
MP_QSTR_solana__transaction_contains_unknown_instructions;
|
||||
MP_QSTR_solana__transaction_requires_x_signers_template;
|
||||
MP_QSTR_stellar__account_merge;
|
||||
MP_QSTR_stellar__account_thresholds;
|
||||
MP_QSTR_stellar__add_signer;
|
||||
MP_QSTR_stellar__add_trust;
|
||||
MP_QSTR_stellar__all_will_be_sent_to;
|
||||
MP_QSTR_stellar__allow_trust;
|
||||
MP_QSTR_stellar__asset;
|
||||
MP_QSTR_stellar__balance_id;
|
||||
MP_QSTR_stellar__bump_sequence;
|
||||
MP_QSTR_stellar__buying;
|
||||
MP_QSTR_stellar__claim_claimable_balance;
|
||||
MP_QSTR_stellar__clear_data;
|
||||
MP_QSTR_stellar__clear_flags;
|
||||
MP_QSTR_stellar__confirm_issuer;
|
||||
MP_QSTR_stellar__confirm_memo;
|
||||
MP_QSTR_stellar__confirm_network;
|
||||
MP_QSTR_stellar__confirm_operation;
|
||||
MP_QSTR_stellar__confirm_stellar;
|
||||
MP_QSTR_stellar__confirm_timebounds;
|
||||
MP_QSTR_stellar__create_account;
|
||||
MP_QSTR_stellar__debited_amount;
|
||||
MP_QSTR_stellar__delete;
|
||||
MP_QSTR_stellar__delete_passive_offer;
|
||||
MP_QSTR_stellar__delete_trust;
|
||||
MP_QSTR_stellar__destination;
|
||||
MP_QSTR_stellar__exchanges_require_memo;
|
||||
MP_QSTR_stellar__final_confirm;
|
||||
MP_QSTR_stellar__hash;
|
||||
MP_QSTR_stellar__high;
|
||||
MP_QSTR_stellar__home_domain;
|
||||
MP_QSTR_stellar__inflation;
|
||||
MP_QSTR_stellar__initial_balance;
|
||||
MP_QSTR_stellar__initialize_signing_with;
|
||||
MP_QSTR_stellar__issuer_template;
|
||||
MP_QSTR_stellar__key;
|
||||
MP_QSTR_stellar__limit;
|
||||
MP_QSTR_stellar__low;
|
||||
MP_QSTR_stellar__master_weight;
|
||||
MP_QSTR_stellar__medium;
|
||||
MP_QSTR_stellar__new_offer;
|
||||
MP_QSTR_stellar__new_passive_offer;
|
||||
MP_QSTR_stellar__no_memo_set;
|
||||
MP_QSTR_stellar__no_restriction;
|
||||
MP_QSTR_stellar__on_network_template;
|
||||
MP_QSTR_stellar__path_pay;
|
||||
MP_QSTR_stellar__path_pay_at_least;
|
||||
MP_QSTR_stellar__pay;
|
||||
MP_QSTR_stellar__pay_at_most;
|
||||
MP_QSTR_stellar__preauth_transaction;
|
||||
MP_QSTR_stellar__price_per_template;
|
||||
MP_QSTR_stellar__private_network;
|
||||
MP_QSTR_stellar__remove_signer;
|
||||
MP_QSTR_stellar__revoke_trust;
|
||||
MP_QSTR_stellar__selling;
|
||||
MP_QSTR_stellar__set_data;
|
||||
MP_QSTR_stellar__set_flags;
|
||||
MP_QSTR_stellar__set_sequence_to_template;
|
||||
MP_QSTR_stellar__sign_tx_count_template;
|
||||
MP_QSTR_stellar__sign_tx_fee_template;
|
||||
MP_QSTR_stellar__source_account;
|
||||
MP_QSTR_stellar__testnet_network;
|
||||
MP_QSTR_stellar__trusted_account;
|
||||
MP_QSTR_stellar__update;
|
||||
MP_QSTR_stellar__valid_from;
|
||||
MP_QSTR_stellar__valid_to;
|
||||
MP_QSTR_stellar__value_sha256;
|
||||
MP_QSTR_stellar__wanna_clean_value_key_template;
|
||||
MP_QSTR_stellar__your_account;
|
||||
MP_QSTR_tezos__baker_address;
|
||||
MP_QSTR_tezos__balance;
|
||||
MP_QSTR_tezos__ballot;
|
||||
MP_QSTR_tezos__confirm_delegation;
|
||||
MP_QSTR_tezos__confirm_origination;
|
||||
MP_QSTR_tezos__delegator;
|
||||
MP_QSTR_tezos__proposal;
|
||||
MP_QSTR_tezos__register_delegate;
|
||||
MP_QSTR_tezos__remove_delegation;
|
||||
MP_QSTR_tezos__submit_ballot;
|
||||
MP_QSTR_tezos__submit_proposal;
|
||||
MP_QSTR_tezos__submit_proposals;
|
||||
MP_QSTR_u2f__get;
|
||||
MP_QSTR_u2f__set_template;
|
||||
MP_QSTR_u2f__title_get;
|
||||
MP_QSTR_u2f__title_set;
|
||||
#endif
|
||||
}
|
||||
|
@ -13,6 +13,21 @@ from typing import Union, Set
|
||||
|
||||
RUST_SRC = THIS_FILE.parent / "src"
|
||||
|
||||
ALTCOIN_PREFIXES = (
|
||||
"binance",
|
||||
"cardano",
|
||||
"eos",
|
||||
"ethereum",
|
||||
"fido",
|
||||
"monero",
|
||||
"nem",
|
||||
"ripple",
|
||||
"solana",
|
||||
"stellar",
|
||||
"tezos",
|
||||
"u2f",
|
||||
)
|
||||
|
||||
def find_unique_patterns_in_dir(directory: Union[str, Path], pattern: str) -> Set[str]:
|
||||
command = f"grep -ro '{pattern}' {directory}"
|
||||
result = subprocess.run(command, stdout=subprocess.PIPE, text=True, shell=True)
|
||||
@ -21,10 +36,24 @@ def find_unique_patterns_in_dir(directory: Union[str, Path], pattern: str) -> Se
|
||||
|
||||
pattern = r"\bMP_QSTR_\w*"
|
||||
qstrings = find_unique_patterns_in_dir(RUST_SRC, pattern)
|
||||
|
||||
qstrings_universal = set()
|
||||
for prefix in ALTCOIN_PREFIXES:
|
||||
mp_prefix = f"MP_QSTR_{prefix}__"
|
||||
qstrings_universal |= {qstr for qstr in qstrings if qstr.startswith(mp_prefix)}
|
||||
|
||||
qstrings_btconly = qstrings - qstrings_universal
|
||||
|
||||
# sort result alphabetically
|
||||
qstrings_sorted = sorted(qstrings)
|
||||
qstrings_btconly_sorted = sorted(qstrings_btconly)
|
||||
qstrings_universal_sorted = sorted(qstrings_universal)
|
||||
%>\
|
||||
% for qstr in qstrings_sorted:
|
||||
% for qstr in qstrings_btconly_sorted:
|
||||
${qstr};
|
||||
% endfor
|
||||
#if !BITCOIN_ONLY
|
||||
% for qstr in qstrings_universal_sorted:
|
||||
${qstr};
|
||||
% endfor
|
||||
#endif
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -6,6 +6,21 @@
|
||||
<%
|
||||
import json
|
||||
|
||||
ALTCOIN_PREFIXES = (
|
||||
"binance",
|
||||
"cardano",
|
||||
"eos",
|
||||
"ethereum",
|
||||
"fido",
|
||||
"monero",
|
||||
"nem",
|
||||
"ripple",
|
||||
"solana",
|
||||
"stellar",
|
||||
"tezos",
|
||||
"u2f",
|
||||
)
|
||||
|
||||
TR_DIR = ROOT / "core" / "translations"
|
||||
|
||||
order_file = TR_DIR / "order.json"
|
||||
@ -25,7 +40,10 @@ use crate::micropython::qstr::Qstr;
|
||||
#[allow(non_camel_case_types)]
|
||||
pub enum TranslatedString {
|
||||
% for idx, name in order.items():
|
||||
${name} = ${idx},
|
||||
%if any(name.startswith(prefix + "__") for prefix in ALTCOIN_PREFIXES):
|
||||
#[cfg(feature = "universal_fw")]
|
||||
%endif
|
||||
${name} = ${idx}, // ${json.dumps(en_data.get(name, '""'))}
|
||||
% endfor
|
||||
}
|
||||
|
||||
@ -33,6 +51,9 @@ impl TranslatedString {
|
||||
pub fn untranslated(self) -> &'static str {
|
||||
match self {
|
||||
% for name in order.values():
|
||||
%if any(name.startswith(prefix + "__") for prefix in ALTCOIN_PREFIXES):
|
||||
#[cfg(feature = "universal_fw")]
|
||||
%endif
|
||||
Self::${name} => ${json.dumps(en_data.get(name, '""'))},
|
||||
% endfor
|
||||
}
|
||||
@ -42,6 +63,9 @@ impl TranslatedString {
|
||||
pub fn from_qstr(qstr: Qstr) -> Option<Self> {
|
||||
match qstr {
|
||||
% for name in order.values():
|
||||
%if any(name.startswith(prefix + "__") for prefix in ALTCOIN_PREFIXES):
|
||||
#[cfg(feature = "universal_fw")]
|
||||
%endif
|
||||
Qstr::MP_QSTR_${name} => Some(Self::${name}),
|
||||
% endfor
|
||||
_ => None,
|
||||
|
Loading…
Reference in New Issue
Block a user