Created
January 16, 2017 11:31
-
-
Save jaekwon/ba8127a15c88f2d5079abbb431fe49e6 to your computer and use it in GitHub Desktop.
Basecoin basic types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A Basecoin user account | |
type Account struct { | |
PubKey crypto.PubKey | |
Sequence int | |
Balance Coins | |
} | |
type Coin struct { | |
Denom string // e.g. "BTC", "ATOM" | |
Amount int64 | |
} | |
type Coins []Coin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment