2020-10-16 05:42:48 -07:00
|
|
|
<!--
|
|
|
|
order: 1
|
|
|
|
-->
|
|
|
|
|
|
|
|
# State
|
|
|
|
|
2021-03-05 06:11:19 -08:00
|
|
|
The `x/bank` module keeps state of three primary objects, account balances, denom metadata and the
|
2020-10-16 05:42:48 -07:00
|
|
|
total supply of all balances.
|
|
|
|
|
2021-04-06 07:01:57 -07:00
|
|
|
- Supply: `0x0 | byte(denom) -> byte(amount)`
|
2021-03-05 06:11:19 -08:00
|
|
|
- Denom Metadata: `0x1 | byte(denom) -> ProtocolBuffer(Metadata)`
|
2021-02-10 09:49:31 -08:00
|
|
|
- Balances: `0x2 | byte(address length) | []byte(address) | []byte(balance.Denom) -> ProtocolBuffer(balance)`
|