types

package
v0.0.0-...-3aeaace Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 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 Coin

type Coin struct {
	Denom  string `json:"denom"`
	Amount string `json:"amount"`
}

type Message

type Message struct {
	Type             string          `json:"@type"`
	FromAddress      string          `json:"from_address,omitempty"`
	ToAddress        string          `json:"to_address,omitempty"`
	Amount           json.RawMessage `json:"amount,omitempty"`
	Token            Coin            `json:"token,omitempty"`
	ProposalID       string          `json:"proposal_id,omitempty"`
	Voter            string          `json:"voter,omitempty"`
	Option           string          `json:"option,omitempty"`
	DelegatorAddress string          `json:"delegator_address,omitempty"`
	ValidatorAddress string          `json:"validator_address,omitempty"`
	Sender           string          `json:"sender,omitempty"`
	Receiver         string          `json:"receiver,omitempty"`
	Msgs             []Msg           `json:"msgs,omitempty"`
}

type Msg

type Msg struct {
	Type      string `json:"@type"`
	Delegator string `json:"delegator_address,omitempty"`
	Validator string `json:"validator_address,omitempty"`
	Amount    Coin   `json:"amount,omitempty"`
}

type Transaction

type Transaction struct {
	TxHash   string    `json:"txHash"`
	Messages []Message `json:"messages"`
	Memo     string    `json:"memo"`
	Result   int       `json:"result"`
	RawLog   string    `json:"raw_log"`
	Fee      []Coin    `json:"fee"`
	Height   int64     `json:"height"`
	Time     string    `json:"time"`
}

type TransactionResponse

type TransactionResponse struct {
	Transactions []Transaction `json:"transactions"`
}

Jump to

Keyboard shortcuts

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