tendermint

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 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 ABCIResponse

type ABCIResponse struct {
	Result ABCIResult `json:"result"`
}

type ABCIResult

type ABCIResult struct {
	Response Response `json:"response"`
}

type DelegationResponse

type DelegationResponse struct {
	DelegationResponses []struct {
		Delegation struct {
			DelegatorAddress string `json:"delegator_address"`
			ValidatorAddress string `json:"validator_address"`
			Shares           string `json:"shares"`
		} `json:"delegation"`
		Balance struct {
			Denom  string `json:"denom"`
			Amount string `json:"amount"`
		} `json:"balance"`
	} `json:"delegation_responses"`
	Pagination struct {
		NextKey interface{} `json:"next_key"`
		Total   string      `json:"total"`
	} `json:"pagination"`
}

type Response

type Response struct {
	LastBlockHeight string `json:"last_block_height"`
}

type TxByHeightResponse

type TxByHeightResponse struct {
	Result TxByHeightResult `json:"result"`
}

type TxByHeightResult

type TxByHeightResult struct {
	Txs        []TxForTxByHeight `json:"txs"`
	TotalCount string            `json:"total_count"`
}

type TxForTxByHeight

type TxForTxByHeight struct {
	Hash     string `json:"hash"`
	Height   string `json:"height"`
	Index    int    `json:"index"`
	TxResult struct {
		Code      int    `json:"code"`
		Data      string `json:"data"`
		Log       string `json:"log"`
		Info      string `json:"info"`
		GasWanted string `json:"gas_wanted"`
		GasUsed   string `json:"gas_used"`
		Events    []struct {
			Type       string `json:"type"`
			Attributes []struct {
				Key   string `json:"key"`
				Value string `json:"value"`
				Index bool   `json:"index"`
			} `json:"attributes"`
		} `json:"events"`
		Codespace string `json:"codespace"`
	} `json:"tx_result"`
	Tx string `json:"tx"`
}

type TxHashResponse

type TxHashResponse struct {
	TxResponse TxResponse `json:"tx_response"`
}

type TxResponse

type TxResponse struct {
	Height string `json:"height"`
	Txhash string `json:"txhash"`
	Code   int    `json:"code"`
	Tx     struct {
		Body struct {
			Messages []interface{} `json:"messages"`
			Memo     string        `json:"memo"`
		} `json:"body"`
	} `json:"tx"`
	Timestamp time.Time `json:"timestamp"`
}

type WebSocketTx

type WebSocketTx struct {
	Jsonrpc string `json:"jsonrpc"`
	Id      string `json:"id"`
	Result  struct {
		Query string `json:"query"`
		Data  struct {
			Type  string `json:"type"`
			Value struct {
				TxResult struct {
					Height string `json:"height"`
					Tx     string `json:"tx"`
					Result struct {
						Code      int    `json:"code,omitempty"`
						Log       string `json:"log"`
						GasWanted string `json:"gas_wanted"`
						GasUsed   string `json:"gas_used"`
						Codespace string `json:"codespace"`
					} `json:"result"`
				} `json:"TxResult"`
			} `json:"value"`
		} `json:"data"`
		Events struct {
			TmEvent  []string `json:"tm.event"`
			TxHash   []string `json:"tx.hash"`
			TxHeight []string `json:"tx.height"`
		} `json:"events"`
	} `json:"result"`
}

Jump to

Keyboard shortcuts

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