-
Notifications
You must be signed in to change notification settings - Fork 113
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
NEP-17/NEP-11 needs update #164
Comments
@neo-project/core @roman-khimov @Liaojinghui @shargon Need your opinion. |
Lets not forget
|
I think these specs in general are way too loose and makes it hard to consume this data outside of being a node in a meaningful way. In my opinion standards should be strict and enforced. e.g. Returns a short string symbol of the token managed in this contract. e.g. "MNFT".
This symbol MUST be between 3-8 characters (inclusive), MUST not contain whitespace characters or new-lines,
and MUST be limited to the uppercase latin alphabet (i.e. the 26 letters used in English). Similarly for |
|
This is the way I interpret it. If i were to valid it. if (Symbol == ASCII)
{
if (Symbol == WHITE_SPACE || Symbol == CONTROL_CHAR)
{
// Invalid
}
if (Symbol == UPPER_CASE)
{
if (Symbol == LATIN_ALPHABT)
{
// Is Valid
}
if (Symbol == SHORT_STRING && Symbol.Length == 3-8)
{
// Unknown
}
else
{
// good
}
}
} |
I think that the first should be a MUST |
Can we please fix NEP-11 standard everything says
You get the point? |
I think we are at the point now, specially with the new sidechain coming out. We should create proposals There is no reason to add |
The community and I had a discussion on discord. How
NEP-17
is VERY unclear forsymbol
method.Now
NEP-17
states:Now most people will interpret
MUST
SHOULD
andNOT
as they are defined in the English dictionary. The word that is mostly confusing is the wordSHOULD
. Should (English definition) is defined as:We all talked about if one particular entity is in violation of what
symbol
says. We have a value ofFLP-bNEO-GM
. One would say that this token is in violation of this rule. Others will argue thatSHOULD
means the same asrecommended
and some will sayNEP-17
followsRFC2119
. RFC2119 definesSHOULD
as:Nowhere does it say that
NEP
followsRFC
spec. HoweverNEP-1
only states that theRFC 822
is to be for a particular part ofNEP
. So developers are making the assumption that it implies thatNEP
is in compliance withRFC
rules.We need clarification on how
NEP-17
'ssymbol
should be interpreted forSHOULD
. I suggest new proposals one forNEP-17-1
to correct this issue. WhatSHOULD
means.What does this mean:
be short (3-8 characters is recommended)
is VERY unclear. What isbe short
even mean when you add inrecommended
. Is it short? Can I have 1MB string? Who knows?I suggested that this entity create new proposal for
LP (liquidity pool)
tokens.But it comes down to this repo. Everyone, including me thinks that this repo goes nowhere when it comes to suggesting new proposals.....
References:
flamingo-finance/flamingo-contract-swap#37
NeoNEXT/neoline#131
Full Conversation
https://discord.com/channels/382937847893590016/382937847893590019/1160257458594381844
The text was updated successfully, but these errors were encountered: