I want to read atom token implenment source code, But I can not find where it is, Can anyone till me ?
Hey @yiyanwannian, tendermint is the wrong place to look. Have a look at the cosmos-sdk. Coins are stored in the account so checkout the auth module of the cosmos-sdk. The bank module provides functionality to send coins so you might want to check this out as well. Links:
cosmos-sdk: https://github.com/cosmos/cosmos-sdk
auth module: https://github.com/cosmos/cosmos-sdk/tree/master/x/auth
There are also other modules that handle coins like minting, slashing, etc
“Atom” or “uatom” are not defined in source code. The denomination is set in the genesis file. The cosmos-sdk uses the generic Coin type which could have any denomination.
Coin type: https://github.com/cosmos/cosmos-sdk/blob/master/types/coin.go
Hope this helps.
Thanks, This is very helpful!
Can I have your email?