Summary
Allow Denom metadata to be defined for restricted denoms while still applying the standard SI-notation restrictions.
Problem Definition
A marker for a restricted denom can be created using a governance proposal. Significantly, this allows for a shorter denom than without using a governance proposal. However, we can't then set the denom metadata for the restricted denom because denom metadata validation only uses the unrestricted denom regex.
Proposal
Update our custom validation of denom metadata to use the standard denom regex (i.e. sdk.ValidateDenom) instead of our (more restrictive) unrestricted denom regex.
This is fine because the denom metadata has to be based off the marker denom anyway.
For Admin Use
Summary
Allow Denom metadata to be defined for restricted denoms while still applying the standard SI-notation restrictions.
Problem Definition
A marker for a restricted denom can be created using a governance proposal. Significantly, this allows for a shorter denom than without using a governance proposal. However, we can't then set the denom metadata for the restricted denom because denom metadata validation only uses the unrestricted denom regex.
Proposal
Update our custom validation of denom metadata to use the standard denom regex (i.e.
sdk.ValidateDenom) instead of our (more restrictive) unrestricted denom regex.This is fine because the denom metadata has to be based off the marker denom anyway.
For Admin Use