Initial commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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
|
||||
|
||||
// For convenience
|
||||
crypto.PubKey `json:"-"`
|
||||
}
|
||||
Reference in New Issue
Block a user