cosmos-sdk/x/bank/spec/01_state.md
Amaury 6520997668
Supply by denom Migrations (#8780)
* Add back supply proto

* Add migration for supply

* Fix lint

* Update x/bank/spec/01_state.md

* Fix test

* Proto gen

* Update x/bank/spec/01_state.md

* Make proto gen

Co-authored-by: Jonathan Gimeno <jgimeno@gmail.com>
2021-03-05 14:11:19 +00:00

388 B

State

The x/bank module keeps state of three primary objects, account balances, denom metadata and the total supply of all balances.

  • Supply: 0x0 | byte(denom) -> ProtocolBuffer(coin)
  • Denom Metadata: 0x1 | byte(denom) -> ProtocolBuffer(Metadata)
  • Balances: 0x2 | byte(address length) | []byte(address) | []byte(balance.Denom) -> ProtocolBuffer(balance)