43 lines
518 B
Go
43 lines
518 B
Go
package types
|
|
|
|
import (
|
|
"github.com/tendermint/go-crypto"
|
|
)
|
|
|
|
type Tx struct {
|
|
Inputs []Input
|
|
Outputs []Output
|
|
}
|
|
|
|
type Input struct {
|
|
PubKey crypto.PubKey
|
|
Amount uint64
|
|
Sequence uint
|
|
Signature crypto.Signature
|
|
}
|
|
|
|
type Output struct {
|
|
PubKey crypto.PubKey
|
|
Amount uint64
|
|
}
|
|
|
|
type Account struct {
|
|
Sequence uint
|
|
Balance uint64
|
|
}
|
|
|
|
type PubAccount struct {
|
|
crypto.PubKey
|
|
Account
|
|
}
|
|
|
|
type PrivAccount struct {
|
|
crypto.PubKey
|
|
crypto.PrivKey
|
|
Account
|
|
}
|
|
|
|
type GenesisState struct {
|
|
Accounts []PubAccount
|
|
}
|