types

package
v0.0.0-...-855f576 Latest Latest
Warning

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

Go to latest
Published: Oct 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 statechain

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 PoolAddresses

type PoolAddresses struct {
	Previous common.Address `json:"previous"`
	Current  common.Address `json:"current"`
	Next     common.Address `json:"next"`
	RotateAt int64          `json:"rotate_at"`
}
var EmptyPoolAddress PoolAddresses

EmptyPoolAddress is just empty

func (PoolAddresses) IsEmpty

func (pa PoolAddresses) IsEmpty() bool

IsEmpty check whether PoolAddress is empty

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 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"`
	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"`
	TxArray []struct {
		PoolAddress common.Address `json:"pool_address"`
		To          string         `json:"to"`
		Coins       common.Coins   `json:"coins"`
	} `json:"tx_array"`
}

Jump to

Keyboard shortcuts

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