Open kmlbgn opened 3 months ago
For last two ones, will take care of while handling those tasks directly.
- Owners Object must have the same structure as Controllers Object (cf issue Missing Controllers Blacklisting Flags in DApp Create and Upset proposal CLI #667 which must be resolved)
- https://github.com/KiraCore/sekai/issues/670 should be resolved
Description
The current structure of the token module is problematic due to its fragmented approach. The Alias registrar uses the token symbol as a unique identifier and stores an array of denoms under the DenomToken prefix, while the Rate registrar uses denom as a unique identifier. This discrepancy creates unnecessary complexity and potential conflicts, particularly because the Alias registrar allows multiple denoms to be associated with a single symbol, which can interfere with the Rate registrar's operations. The two registrars do not interact or check consistency with each other, leading to a risk of incorrect information being displayed on the frontend. Additionally, there is no mechanism to track the total supply of all tokens within the current structure.
Expected Behaviour
denom
as the unique identifierowners
should control other specific minting parameters.fee_payments
tofee_enabled
stake_token
tostake_enabled
invalidated
toinactive
fee
(from the minting module) tominting_fee
metadata
tonft_metadata
hash
tonft_hash
supply_cap
must allow value 0 to be set at first, which corresponds to infinite supply (no cap). However, it should not be possible to EDIT value to 0 since edition can only decrease supply.owners_disabled
boolean for disabling editing for owners-only parameter (gov do not loose editing rights)decimals
becomes empty regardless of what users have set or any other explicit value.Owners Object
must have the same structure as Controllers Object (cf issue #667 which must be resolved)Proto example
token_type
nft_metadata
(adr43 only)nft_hash
(adr43 only)denom
decimals
(adr20 only)name
symbol
icon
description
website
social
supply_cap
minting_fee
owners
owners_disabled
inactive
fee_rate
fee_enabled
stake_cap
stake_min
stake_enabled