From b95cb34e0c230b2bdcf2eb8e5f36c77a45269bf4 Mon Sep 17 00:00:00 2001 From: grdddj Date: Sat, 17 Sep 2022 14:10:09 +0200 Subject: [PATCH] feat(tools): add ignore file for upysize tool --- core/tools/upysize_ignore.json | 155 +++++++++++++++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 core/tools/upysize_ignore.json diff --git a/core/tools/upysize_ignore.json b/core/tools/upysize_ignore.json new file mode 100644 index 000000000..86b47ebe5 --- /dev/null +++ b/core/tools/upysize_ignore.json @@ -0,0 +1,155 @@ +{ + "function_inline": { + "src/apps/misc/sign_identity.py": [ + "serialize_identity_without_proto" + ], + "src/apps/base.py": [ + "busy_expiry_ms", + "unlock_device", + "reload_settings_from_storage" + ], + "src/apps/management/reset_device/__init__.py": [ + "backup_seed" + ], + "src/apps/management/recovery_device/recover.py": [ + "fetch_previous_mnemonics" + ], + "src/apps/management/recovery_device/homescreen.py": [ + "recovery_process" + ], + "src/apps/cardano/addresses.py": [ + "validate_address_parameters", + "get_bytes_unsafe", + "encode_human_readable", + "derive_bytes" + ], + "src/apps/cardano/layout.py": [ + "show_native_script" + ], + "src/apps/cardano/helpers/utils.py": [ + "derive_public_key" + ], + "src/apps/eos/helpers.py": [ + "base58_encode" + ], + "src/apps/eos/writers.py": [ + "write_action_undelegate", + "write_action_deleteauth", + "write_action_unlinkauth", + "write_bytes_prefixed" + ], + "src/apps/ethereum/helpers.py": [ + "address_from_bytes", + "get_type_name" + ], + "src/apps/ethereum/networks.py": [ + "by_chain_id" + ], + "src/apps/ethereum/sign_message.py": [ + "message_digest" + ], + "src/apps/ethereum/sign_tx.py": [ + "handle_erc20", + "send_request_chunk", + "check_common_fields" + ], + "src/apps/bitcoin/addresses.py": [ + "address_p2wpkh_in_p2sh", + "address_p2wpkh" + ], + "src/apps/bitcoin/ownership.py": [ + "get_identifier" + ], + "src/apps/bitcoin/scripts.py": [ + "write_witness_p2tr", + "write_witness_multisig", + "write_witness_p2wpkh", + "write_input_script_p2wsh_in_p2sh", + "write_input_script_p2wpkh_in_p2sh", + "output_script_native_segwit", + "write_input_script_prefixed", + "write_input_script_p2pkh_or_p2sh_prefixed", + "output_script_p2pkh", + "output_script_p2sh" + ], + "src/apps/bitcoin/sign_tx/omni.py": [ + "is_valid" + ], + "src/apps/bitcoin/sign_tx/progress.py": [ + "report_init" + ], + "src/apps/monero/layout.py": [ + "transaction_step" + ], + "src/apps/monero/xmr/chacha_poly.py": [ + "encrypt" + ], + "src/apps/monero/xmr/monero.py": [ + "generate_key_image", + "generate_tx_spend_and_key_image" + ], + "src/apps/monero/xmr/keccak_hasher.py": [ + "get_keccak_writer" + ], + "src/apps/monero/xmr/key_image.py": [ + "generate_ring_signature" + ], + "src/apps/monero/xmr/crypto_helpers.py": [ + "decodeint" + ], + "src/apps/monero/xmr/serialize/int_serialize.py": [ + "uvarint_size", + "dump_uvarint_b_into" + ], + "src/apps/monero/signing/offloading_keys.py": [ + "hmac_key_txin" + ], + "src/apps/nem/validators.py": [ + "validate_network" + ], + "src/apps/nem/writers.py": [ + "write_bytes_with_len" + ], + "src/apps/stellar/layout.py": [ + "format_asset", + "format_amount" + ], + "src/apps/common/address_type.py": [ + "tobytes", + "check" + ], + "src/apps/common/address_mac.py": [ + "get_address_mac" + ], + "src/apps/common/sdcard.py": [ + "ensure_sdcard" + ], + "src/apps/common/seed.py": [ + "derive_and_store_roots" + ], + "src/apps/common/paths.py": [ + "show_path_warning", + "is_hardened", + "address_n_to_str" + ], + "src/apps/common/writers.py": [ + "write_uint16_le", + "write_uint32_le", + "write_uint64_le" + ], + "src/apps/common/safety_checks.py": [ + "read_setting" + ], + "src/apps/common/passphrase.py": [ + "is_enabled" + ], + "src/apps/common/keychain.py": [ + "get_keychain", + "with_slip44_keychain" + ], + "src/apps/debug/__init__.py": [ + "debuglink_decision_dispatcher", + "touch_hold" + ] + } +}