Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AIP-X Increase coin symbol limit to 32 bytes #558

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gregnazario
Copy link
Contributor

No description provided.


## Summary

Currently, emojis are 8-bytes, and could be longer. This AIP proposes to increase the coin symbol byte length to allow
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, this is a technicality typo... Where the "max" is 8 bytes correct?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some that are more than 8 bytes, for example the Scottish flag 🏴󠁧󠁢󠁳󠁣󠁴󠁿 is 28 bytes...:

https://github.com/econia-labs/emojicoin-dot-fun/blob/f2db7f1ffb2107b792f3d94c30b1c2d96d26b66b/src/move/emojicoin_dot_fun/sources/hex_codes.move#L2405

Copy link
Contributor Author

@gregnazario gregnazario Feb 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you propose is the longest then?

I think this provide a good balance. Not too long, allows the scottish flag, but doesn't necessarily support really long ones 🧑🏾‍❤️‍🧑🏽

https://unicode.org/Public/emoji/13.1/emoji-zwj-sequences.txt

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the longest

There are emojis that are even longer than 28 bytes, and we had to take some of them out to keep package under size limit: https://github.com/econia-labs/emojicoin-dot-fun/blob/f2db7f1ffb2107b792f3d94c30b1c2d96d26b66b/src/python/move_emojis/utils/data_parser.py#L203-L220

Also pretty much any combination that combines modifiers like skin color or man/woman (especially for the 4-person families) can quickly add up

@gregnazario gregnazario changed the title Add coin symbol aip AIP-X Increase coin symbol limit to 32 bytes Feb 6, 2025
Copy link

@FELLIX000 FELLIX000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please help me understand this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants