working new cool module in basecoin

This commit is contained in:
rigelrozanski
2018-03-04 17:21:37 +00:00
parent d3ffd303c4
commit 6dec9353be
6 changed files with 170 additions and 6 deletions
+1
View File
@@ -5,6 +5,7 @@ import (
cmn "github.com/tendermint/tmlibs/common"
)
// Address in go-crypto style
type Address = cmn.HexBytes
// Account is a standard account using a sequence number for replay protection
+3 -1
View File
@@ -23,6 +23,8 @@ type Msg interface {
GetSigners() []Address
}
//__________________________________________________________
// Transactions objects must fulfill the Tx
type Tx interface {
@@ -64,7 +66,7 @@ func (tx StdTx) GetMsg() Msg { return tx.Msg }
func (tx StdTx) GetFeePayer() Address { return tx.Signatures[0].PubKey.Address() } // XXX but PubKey is optional!
func (tx StdTx) GetSignatures() []StdSignature { return tx.Signatures }
//-------------------------------------
//__________________________________________________________
// Application function variable used to unmarshal transaction bytes
type TxDecoder func(txBytes []byte) (Tx, Error)