ergoplatform / eips

Ergo Improvement Proposals
64 stars 34 forks source link

EIP-4 add utility asset type #65

Open Luivatra opened 2 years ago

Luivatra commented 2 years ago

Will allow for wallets and dapps to filter utility tokens and nft to make it easier for the user to keep an overview.

capt-nemo429 commented 2 years ago

I think that setting R8 and R9 just as "Optional" looks too vague and opens the door for unpredictable data format/content. I suggest making use of these records, we can even keep them as optional, but if any value is added, it should standardized.

Examples:

ghost commented 2 years ago

I would like to see utilizing markup or superscript language as the standard for utility tokens, where layer two and wallets alike can parse something like yaml into arrangements of objects natively on chain

Luivatra commented 2 years ago

I think having a sub-asset type for each dapp will (hopefully) become too much to list here. We could have R8 containing a string referring to a type, which a dapp is free to set themselves. R9 should be a JSON/yaml that has further description. fe: R8: ErgoDex Liquidity Pool Token R9: {'baseToken': 'erg', 'quoteToken': 'neta'}

Wallets and dapps can then always recognize utility tokens and parse R9 to show a "nice" description. If a specific use case arises for a certain type the wallet/dapp can check R8 for the type and validate R9 accordingly and fe. calculate a value for the LP token.