Closed ignazio-bovo closed 7 months ago
I don't understand the problem, can you restate a clear problem section here? what is this symobl bookkeping in the runtime and what is wrong about it?
His comment seems to be saying something different:
Currently, the runtime emits hash of the symbol, not the symbol itself, so I think a change in the runtime is required to support this.
SymbolUsed
? Can we remove it, plain and simple?Token
entity as a field?JOY
in the parameters but then set another string like ETH
in the metadata, and the runtime cannot check this case (as far as I know)What is the purpose of storing the symbol on chain if we just set it at initialization
The premise is incorrect, it is used again when a new token is created to check for possible conflict, so it is indeed read back. I think if ticker only lives in metadata, it raises the question of how you deal with conflicts. So you create many tokens in a row with same ticker, what do they get as ticker? If first one gets to reserve it, then what will ticker of the remaining ones be, nothing? what if first token is deleted, then the old ones still have nothing? Its possible to do something like that, but then we are allowing "null" as ticker symbols, I don't love that, but its an open question.
So its up to you, if you want to simplify runtime, with no ticker sympbol accounting, you need a proper logic for managing conflicts and deletions. I guess the simplest one is
up to you.
But I think the most important thing here is
This has been addressed in #4858
Needed to be set in the orion as a human-readable character, eg "JOY","AVA", "HAPI" etc. I don't think it is a good idea to pass a whole string as an argument which might make the extrinsic more expensive among other things.
What I would suggest is:
TokenIssuanceParameters
_Originally posted by @Lezek123 in https://github.com/Joystream/orion/pull/99#discussion_r1227206158_