types

package
v0.0.0-...-8acb6f8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountResp

type AccountResp struct {
	Height string          `json:"height"`
	Result json.RawMessage `json:"result"`
}

/ AccountResp the response from thorclient

type Commit

type Commit struct {
	Height string `json:"height"`
	TxHash string `json:"txhash"`
}

type Msg

type Msg struct {
	Type  string            `json:"type"`
	Value stypes.MsgSetTxIn `json:"value"`
}

type SetTx

type SetTx struct {
	Mode string `json:"mode"`
	Tx   struct {
		Msg        []sdk.Msg                `json:"msg"`
		Fee        authtypes.StdFee         `json:"fee"`
		Signatures []authtypes.StdSignature `json:"signatures"`
		Memo       string                   `json:"memo"`
	} `json:"tx"`
}

type TxArrayItem

type TxArrayItem struct {
	Chain       common.Chain  `json:"chain"`
	To          string        `json:"to"`
	PoolAddress common.PubKey `json:"pool_address"`
	SeqNo       string        `json:"seq_no"`
	Coin        common.Coin   `json:"coin"`
	Memo        string        `json:"memo"`
	InHash      common.TxID   `json:"in_hash"`
	OutHash     common.TxID   `json:"out_hash"`
}

TODO decomission TxArrayItem, in favor of TxOutItem in thornode

type TxIn

type TxIn struct {
	BlockHeight string       `json:"blockHeight"`
	Count       string       `json:"count"`
	Chain       common.Chain `json:"chain"`
	TxArray     []TxInItem   `json:"txArray"`
}

type TxInItem

type TxInItem struct {
	Tx                  string       `json:"tx"`
	Memo                string       `json:"MEMO"`
	Sender              string       `json:"sender"`
	To                  string       `json:"to"` // to adddress
	Coins               common.Coins `json:"coins"`
	ObservedPoolAddress string       `json:"observed_pool_address"`
}

type TxInStatus

type TxInStatus byte
const (
	Processing TxInStatus = iota
	Failed
)

type TxMode

type TxMode uint8
const (
	TxUnknown TxMode = iota
	TxAsync
	TxSync
	TxBlock
)

func NewMode

func NewMode(mode string) (TxMode, error)

func (TxMode) IsValid

func (tx TxMode) IsValid() bool

func (TxMode) String

func (tx TxMode) String() string

type TxOut

type TxOut struct {
	Height  string        `json:"height"`
	Hash    string        `json:"hash"`
	Chain   common.Chain  `json:"chain"`
	TxArray []TxArrayItem `json:"tx_array"`
}

Jump to

Keyboard shortcuts

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