Cosmos-sdk: Sub-atoms

Created on 9 Jan 2019  Â·  6Comments  Â·  Source: cosmos/cosmos-sdk

Summary

In the state machine on main-net 1 atom will be 10^18 sub-atoms. We need to change the default values to reflect that. We need to implement encoding and decoding of inputs and outputs to only show actual atoms to clients as they don't care about the state machine representation.

Concerning tickets:
https://github.com/cosmos/cosmos-sdk/issues/2483
https://github.com/cosmos/cosmos-sdk/issues/2321

To Do:

  • [ ] Change the default values to be in the size of x * 10^18
  • [ ] encode/decode atoms in all concerning CLI/REST actions

Problem Definition

Proposal


For Admin Use

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

Most helpful comment

Yeah that was the original plan from conversations with jae a while ago - ALSO we can call the smallest unit quarks based on that quarks are ~ 10^-8 smaller than atoms (https://www.quora.com/What-size-are-the-particles-of-an-atom-in-relation-to-its-size)

All 6 comments

my understanding is that we are using either 10^8 or 10^9

Either? We need to make a decision on this prelaunch I would imagine...

Just pick one! ^^

@rigelrozanski Are there advantages of one over the other?

If there is no preference I would pick 10e8; that seems sufficient (and it's also what Bitcoin uses).

Yeah that was the original plan from conversations with jae a while ago - ALSO we can call the smallest unit quarks based on that quarks are ~ 10^-8 smaller than atoms (https://www.quora.com/What-size-are-the-particles-of-an-atom-in-relation-to-its-size)

outdated. Closing

Was this page helpful?
0 / 5 - 0 ratings