Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue chan int64
Queue is a simple type alias for a (buffered) channel of block heights.
type Signature ¶
type Signature struct {
auth.StdSignature
Address string `json:"address,omitempty"`
}
Signature wraps auth.StdSignature adding the address of the signer
type Tx ¶
type Tx struct {
sdk.TxResponse
Messages []sdk.Msg `json:"messages"`
Fee auth.StdFee `json:"fee"`
Signatures []Signature `json:"signatures"`
Memo string `json:"memo"`
}
Tx represents an already existing blockchain transaction
func NewTx ¶
func NewTx(txResponse sdk.TxResponse) (*Tx, error)
NewTx allows to create a new Tx instance from the given txResponse
func (Tx) FindAttributeByKey ¶
FindAttributeByKey searches inside the specified event of the given tx to find the attribute having the given key. If the specified event does not contain a such attribute, returns an error instead.
func (Tx) FindEventByType ¶
FindEventByType searches inside the given tx events for the message having the specified index, in order to find the event having the given type, and returns it. If no such event is found, returns an error instead.
func (Tx) Successful ¶
Successful tells whether this tx is successful or not