From ad2ce0ca75884a7e86795f538e99bfae6cf0c269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ioan=20Biz=C4=83u?= Date: Wed, 18 Dec 2024 14:39:04 +0100 Subject: [PATCH] fixup! feat(core): add nostr --- .../rust/src/translations/generated/translated_string.rs | 3 +++ .../rust/src/translations/generated/translated_string.rs.mako | 1 + rust/trezor-client/src/protos/generated/messages_nostr.rs | 4 ++-- rust/trezor-client/src/protos/mod.rs | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/core/embed/rust/src/translations/generated/translated_string.rs b/core/embed/rust/src/translations/generated/translated_string.rs index b382b607222..c154f43d9c5 100644 --- a/core/embed/rust/src/translations/generated/translated_string.rs +++ b/core/embed/rust/src/translations/generated/translated_string.rs @@ -1382,6 +1382,7 @@ pub enum TranslatedString { misc__enable_labeling = 973, // "Enable labeling?" #[cfg(feature = "universal_fw")] ethereum__unknown_contract_address_short = 974, // "Unknown contract address." + #[cfg(feature = "universal_fw")] nostr__event_kind_template = 975, // "Event kind: {0}" } @@ -2759,6 +2760,7 @@ impl TranslatedString { Self::misc__enable_labeling => "Enable labeling?", #[cfg(feature = "universal_fw")] Self::ethereum__unknown_contract_address_short => "Unknown contract address.", + #[cfg(feature = "universal_fw")] Self::nostr__event_kind_template => "Event kind: {0}", } } @@ -4137,6 +4139,7 @@ impl TranslatedString { Qstr::MP_QSTR_misc__enable_labeling => Some(Self::misc__enable_labeling), #[cfg(feature = "universal_fw")] Qstr::MP_QSTR_ethereum__unknown_contract_address_short => Some(Self::ethereum__unknown_contract_address_short), + #[cfg(feature = "universal_fw")] Qstr::MP_QSTR_nostr__event_kind_template => Some(Self::nostr__event_kind_template), _ => None, } diff --git a/core/embed/rust/src/translations/generated/translated_string.rs.mako b/core/embed/rust/src/translations/generated/translated_string.rs.mako index 9ecc94fbcff..84f8d7f9cdd 100644 --- a/core/embed/rust/src/translations/generated/translated_string.rs.mako +++ b/core/embed/rust/src/translations/generated/translated_string.rs.mako @@ -15,6 +15,7 @@ ALTCOIN_PREFIXES = ( "fido", "monero", "nem", + "nostr", "ripple", "solana", "stellar", diff --git a/rust/trezor-client/src/protos/generated/messages_nostr.rs b/rust/trezor-client/src/protos/generated/messages_nostr.rs index 1ace02cb10d..c26d124527f 100644 --- a/rust/trezor-client/src/protos/generated/messages_nostr.rs +++ b/rust/trezor-client/src/protos/generated/messages_nostr.rs @@ -1118,8 +1118,8 @@ static file_descriptor_proto_data: &'static [u8] = b"\ agR\x04tags\x12\x18\n\x07content\x18\x05\x20\x02(\tR\x07content\"[\n\x13\ NostrEventSignature\x12\x16\n\x06pubkey\x18\x01\x20\x02(\x0cR\x06pubkey\ \x12\x0e\n\x02id\x18\x02\x20\x02(\x0cR\x02id\x12\x1c\n\tsignature\x18\ - \x03\x20\x02(\x0cR\tsignatureB=\n#com.satoshilabs.trezor.lib.protobufB\ - \x12TrezorMessageNostr\x80\xa6\x1d\x01\ + \x03\x20\x02(\x0cR\tsignatureB9\n#com.satoshilabs.trezor.lib.protobufB\ + \x12TrezorMessageNostr\ "; /// `FileDescriptorProto` object which was a source for this generated file diff --git a/rust/trezor-client/src/protos/mod.rs b/rust/trezor-client/src/protos/mod.rs index 7dd8483f9c4..802423dab51 100644 --- a/rust/trezor-client/src/protos/mod.rs +++ b/rust/trezor-client/src/protos/mod.rs @@ -33,6 +33,7 @@ mod generated { "eos" => messages_eos "monero" => messages_monero "nem" => messages_nem + "nostr" => messages_nostr "ripple" => messages_ripple "solana" => messages_solana "stellar" => messages_stellar