Skip to content

Commit

Permalink
Final emoji set. Replaces 💪, 🙌 and 🏂 with 📣, 😱 and 🚫. (#1959)
Browse files Browse the repository at this point in the history
Merge pull request #1959

Final emoji set. Replaces 💪, 🙌 and 🏂 with 📣, 😱 and 🚫.

* pull/1959/head:
  Final emoji set. Replaces 💪, 🙌 and 🏂 with 📣, 😱 and 🚫.
  • Loading branch information
sdbondi committed Jun 9, 2020
2 parents f457034 + babc1d5 commit 8856e3a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
34 changes: 17 additions & 17 deletions base_layer/wallet/src/util/emoji.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ const EMOJI: [char; 256] = [
'🍗', '🍚', '🍞', '🍟', '🍠', '🍣', '🍦', '🍩', '🍪', '🍫', '🍬', '🍭', '🍯', '🍰', '🍳', '🍴', '🍵', '🍶', '🍷',
'🍸', '🍹', '🍺', '🍼', '🎀', '🎁', '🎂', '🎃', '🎄', '🎈', '🎉', '🎒', '🎓', '🎠', '🎡', '🎢', '🎣', '🎤', '🎥',
'🎧', '🎨', '🎩', '🎪', '🎬', '🎭', '🎮', '🎰', '🎱', '🎲', '🎳', '🎵', '🎷', '🎸', '🎹', '🎺', '🎻', '🎼', '🎽',
'🎾', '🎿', '🏀', '🏁', '🏂', '🏆', '🏈', '🏉', '🏠', '🏥', '🏦', '🏭', '🏰', '🐀', '🐉', '🐊', '🐌', '🐍', '🐎',
'🐐', '🐑', '🐓', '🐖', '🐗', '🐘', '🐙', '🐚', '🐛', '🐜', '🐝', '🐞', '🐢', '🐣', '🐨', '🐩', '🐪', '🐬', '🐭',
'🐮', '🐯', '🐰', '🐲', '🐳', '🐴', '🐵', '🐶', '🐷', '🐸', '🐺', '🐻', '🐼', '🐽', '🐾', '👀', '👅', '👑', '👒',
'👓', '👔', '👕', '👖', '👗', '👘', '👙', '👚', '👛', '👞', '👟', '👠', '👡', '👢', '👣', '👹', '👻', '👽', '👾',
'👿', '💀', '💄', '💈', '💉', '💊', '💋', '💌', '💍', '💎', '💐', '💔', '💕', '💘', '💡', '💣', '💤', '💦', '💨',
'💩', '💪', '💭', '💯', '💰', '💳', '💸', '💺', '💻', '💼', '📈', '📉', '📌', '📎', '📚', '📝', '📡', '📱', '📷',
'🔋', '🔌', '🔎', '🔑', '🔔', '🔥', '🔦', '🔧', '🔨', '🔩', '🔪', '🔫', '🔬', '🔭', '🔮', '🔱', '🗽', '😂', '😇',
'😈', '😉', '😍', '😎', '😷', '😹', '😻', '😿', '🙌', '🚀', '🚁', '🚂', '🚌', '🚑', '🚒', '🚓', '🚕', '🚗', '🚜',
'🚢', '🚦', '🚧', '🚨', '🚪', '🚲', '🚽', '🚿', '🛁',
'🎾', '🎿', '🏀', '🏁', '🏆', '🏈', '🏉', '🏠', '🏥', '🏦', '🏭', '🏰', '🐀', '🐉', '🐊', '🐌', '🐍', '🐎', '🐐',
'🐑', '🐓', '🐖', '🐗', '🐘', '🐙', '🐚', '🐛', '🐜', '🐝', '🐞', '🐢', '🐣', '🐨', '🐩', '🐪', '🐬', '🐭', '🐮',
'🐯', '🐰', '🐲', '🐳', '🐴', '🐵', '🐶', '🐷', '🐸', '🐺', '🐻', '🐼', '🐽', '🐾', '👀', '👅', '👑', '👒', '👓',
'👔', '👕', '👖', '👗', '👘', '👙', '👚', '👛', '👞', '👟', '👠', '👡', '👢', '👣', '👹', '👻', '👽', '👾', '👿',
'💀', '💄', '💈', '💉', '💊', '💋', '💌', '💍', '💎', '💐', '💔', '💕', '💘', '💡', '💣', '💤', '💦', '💨', '💩',
'💭', '💯', '💰', '💳', '💸', '💺', '💻', '💼', '📈', '📉', '📌', '📎', '📚', '📝', '📡', '📣', '📱', '📷', '🔋',
'🔌', '🔎', '🔑', '🔔', '🔥', '🔦', '🔧', '🔨', '🔩', '🔪', '🔫', '🔬', '🔭', '🔮', '🔱', '🗽', '😂', '😇', '😈',
'😉', '😍', '😎', '😱', '😷', '😹', '😻', '😿', '🚀', '🚁', '🚂', '🚌', '🚑', '🚒', '🚓', '🚕', '🚗', '🚜', '🚢',
'🚦', '🚧', '🚨', '🚪', '🚫', '🚲', '🚽', '🚿', '🛁',
];

lazy_static! {
Expand All @@ -70,9 +70,9 @@ lazy_static! {
/// ```
/// use tari_wallet::util::emoji::EmojiId;
///
/// assert!(EmojiId::is_valid("🐍🍴🌷🌟💸🐓🐨🐽🌟🐪🎧🐊🏥🐲🐍🐜🐞📷👔🎸👾🍒🐑🎉💐🌹🏂🐪💘🎳🚢🍹🎒"));
/// assert!(EmojiId::is_valid("🐎🍴🌷🌟💻🐖🐩🐾🌟🐬🎧🐌🏦🐳🐎🐝🐢🔋👕🎸👿🍒🐓🎉💔🌹🏆🐬💡🎳🚦🍹🎒"));
/// let eid = EmojiId::from_hex("70350e09c474809209824c6e6888707b7dd09959aa227343b5106382b856f73a").unwrap();
/// assert_eq!(eid.as_str(), "🐍🍴🌷🌟💸🐓🐨🐽🌟🐪🎧🐊🏥🐲🐍🐜🐞📷👔🎸👾🍒🐑🎉💐🌹🏂🐪💘🎳🚢🍹🎒");
/// assert_eq!(eid.as_str(), "🐎🍴🌷🌟💻🐖🐩🐾🌟🐬🎧🐌🏦🐳🐎🐝🐢🔋👕🎸👿🍒🐓🎉💔🌹🏆🐬💡🎳🚦🍹🎒");
/// ```
#[derive(Clone, Debug, Eq, PartialEq, Ord, PartialOrd)]
pub struct EmojiId(String);
Expand Down Expand Up @@ -170,15 +170,15 @@ mod test {
let eid = EmojiId::from_hex("70350e09c474809209824c6e6888707b7dd09959aa227343b5106382b856f73a").unwrap();
assert_eq!(
eid.as_str(),
"🐍🍴🌷🌟💸🐓🐨🐽🌟🐪🎧🐊🏥🐲🐍🐜🐞📷👔🎸👾🍒🐑🎉💐🌹🏂🐪💘🎳🚢🍹🎒"
"🐎🍴🌷🌟💻🐖🐩🐾🌟🐬🎧🐌🏦🐳🐎🐝🐢🔋👕🎸👿🍒🐓🎉💔🌹🏆🐬💡🎳🚦🍹🎒"
);
assert_eq!(EmojiId::from_pubkey(&pubkey), eid);
assert_eq!(
&eid.to_bytes().to_hex(),
"70350e09c474809209824c6e6888707b7dd09959aa227343b5106382b856f73a"
);
assert_eq!(
EmojiId::str_to_pubkey("🐍🍴🌷🌟💸🐓🐨🐽🌟🐪🎧🐊🏥🐲🐍🐜🐞📷👔🎸👾🍒🐑🎉💐🌹🏂🐪💘🎳🚢🍹🎒").unwrap(),
EmojiId::str_to_pubkey("🐎🍴🌷🌟💻🐖🐩🐾🌟🐬🎧🐌🏦🐳🐎🐝🐢🔋👕🎸👿🍒🐓🎉💔🌹🏆🐬💡🎳🚦🍹🎒").unwrap(),
pubkey
);
}
Expand All @@ -189,9 +189,9 @@ mod test {
// Valid emojiID
assert!(EmojiId::is_valid(eid.as_str()));
assert_eq!(EmojiId::is_valid(""), false, "Emoji ID too short");
assert_eq!(EmojiId::is_valid("😂"), false, "Emoji ID too short");
assert_eq!(EmojiId::is_valid("🌂"), false, "Emoji ID too short");
assert_eq!(
EmojiId::is_valid("🐍🍴🌷🌟💸🐓🐨🐽🌟🐪🎧🐊🏥🐲🐍🐜🐞📷👔🎸👾🍒🐑🎉💐🌹"),
EmojiId::is_valid("🌟💻🐖🐩🐾🌟🐬🎧🐌🏦🐳🐎🐝🐢🔋👕🎸👿🍒🐓🎉💔🌹🏆🐬💡🎳🚦🍹🎒"),
false,
"Emoji ID too short"
);
Expand All @@ -201,12 +201,12 @@ mod test {
"Not emoji string"
);
assert_eq!(
EmojiId::is_valid("🐍🍴🌷🌟💸🐓🐨🐽🌟🐪🎧🐊🏥🐲🐍🐜🐞📷👔🎸👾🍒🐑🎉💐🌹🏂🐪💘🎳🚢🍹"),
EmojiId::is_valid("🐎🍴🌷🌟💻🐖🐩🐾🌟🐬🎧🐌🏦🐳🐎🐝🐢🔋👕🎸👿🍒🐓🎉💔🌹🏆🐬💡🎳🚦🍹"),
false,
"No checksum"
);
assert_eq!(
EmojiId::is_valid("🐍🍴🌷🌟💸🐓🐨🐽🌟🐪🎧🐊🏥🐲🐍🐜🐞📷👔🎸👾🍒🐑🎉💐🌹🏂🐪💘🎳🚢🍹💣"),
EmojiId::is_valid("🐎🍴🌷🌟💻🐖🐩🐾🌟🐬🎧🐌🏦🐳🐎🐝🐢🔋👕🎸👿🍒🐓🎉💔🌹🏆🐬💡🎳🚦🍹📝"),
false,
"Wrong checksum"
);
Expand Down
1 change: 1 addition & 0 deletions base_layer/wallet_ffi/mobile_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ EOF
[target.${PLATFORMABI}]
ar = "${AR}"
linker = "${CC}"
rustflags = "-L${OUTPUT_DIR}/lib"
EOF

Expand Down

0 comments on commit 8856e3a

Please sign in to comment.