types

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ABCIMessageLog

type ABCIMessageLog struct {
	MsgIndex uint16 `json:"msg_index"`
	Success  bool   `json:"success"`
	Log      string `json:"log"`

	// Events contains a slice of Event objects that were emitted during some
	// execution.
	Events sdk.StringEvents `json:"events"`
}

ABCIMessageLog defines a structure containing an indexed tx ABCI message log.

type ABCIMessageLogs

type ABCIMessageLogs []ABCIMessageLog

ABCIMessageLogs represents a slice of ABCIMessageLog.

type TxResponse

type TxResponse struct {
	Height    int64            `json:"height"`
	TxHash    string           `json:"txhash"`
	Code      uint32           `json:"code,omitempty"`
	Data      string           `json:"data,omitempty"`
	RawLog    string           `json:"raw_log,omitempty"`
	Logs      ABCIMessageLogs  `json:"logs,omitempty"`
	Info      string           `json:"info,omitempty"`
	GasWanted int64            `json:"gas_wanted,omitempty"`
	GasUsed   int64            `json:"gas_used,omitempty"`
	Codespace string           `json:"codespace,omitempty"`
	Tx        sdk.Tx           `json:"tx,omitempty"`
	Timestamp string           `json:"timestamp,omitempty"`
	Events    sdk.StringEvents `json:"events,omitempty"`
}

TxResponse defines a structure containing relevant tx data and metadata. The tags are stringified and the log is JSON decoded.

func (TxResponse) Empty

func (r TxResponse) Empty() bool

Empty returns true if the response is empty

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL