Skip to content

Instantly share code, notes, and snippets.

@jaekwon
Created January 16, 2017 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaekwon/ba8127a15c88f2d5079abbb431fe49e6 to your computer and use it in GitHub Desktop.
Save jaekwon/ba8127a15c88f2d5079abbb431fe49e6 to your computer and use it in GitHub Desktop.
Basecoin basic types
// 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