Where is atom token implenment source code?

I want to read atom token implenment source code, But I can not find where it is, Can anyone till me ?

1 Like

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.

1 Like

Thanks, This is very helpful!

1 Like

Can I have your email?

1 Like