Skip to content

Write ADR for Coins #7046

Closed
Closed
@fedekunze

Description

Summary

Write ADR with design desitions for the existing Coin(s) and DecCoin(s) implementation

Problem Definition

During #7027, multiple questions where rised on the decisions behind these types:

  • Differences between Coin and Coins

can we document the rational to why a single coin of ZeroInt is valid but a set of coins with a coin of ZeroInt is invalid? Seems counter-intuitive to me and if we support this it, the reason should be well documented. I'd be in favor of only considering positive amount Coins valid
@colin-axner

  • Denom regex choices

Regarding unicode characters, I think we need to be a little careful - are there any two characters which look very similar / identical but are actually represented differently (i.e., are unequal)? This can be an attack vector (where some malicious agent purposefully creates a denom that looks almost exactly like a real one - e.g. atom - but is actually unequal).
@cwgoes

  • Custom Denominations

#6755 and #6744 by @okwme

Proposal

Write ADR that summarizes all these choices and decisions


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    C:TypesT: ADRAn issue or PR relating to an architectural decision record

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions