Replies: 2 comments
-
I am writing a contract from scratch for the purpose of storing registered tokens It may support these queries: symbol -> addressUsed to resolve a symbol to the contract address symbol -> all metadataSimilar to above, but returns the entire table address -> symbolUsed to check if a contract is registered If any other queries are required, please inform |
Beta Was this translation helpful? Give feedback.
0 replies
-
Such a contract cannot be controlled by a single person It should work like a DAO, requiring confirmation from other members |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Only registered ARC1 and ARC2 tokens will appear on the Token section of AergoScan
At the same time, we may use a different strategy from other blockchains:
Instead of allowing many tokens with the same symbol, we may limit to only 1 token with a given symbol
This has one advantage: it is easier for people to sign transactions, as instead of displaying the token address, it can display the token symbol. Then the symbol can be "resolved" to the address on chain
If registered tokens were used only by aergoscan, then it could be stored on an external database.
But if also used on-chain, then it must be done on a smart contract.
It can be a dedicated contract with the purpose of storing registered tokens, or even a "name service"
Beta Was this translation helpful? Give feedback.
All reactions