types

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeTypeOK  uint32 = 0
	CodeTypeErr uint32 = 1
	ChainType          = "cosmos"
)

Variables

View Source
var (
	SupportedAlgorithms       = keyring.SigningAlgoList{hd.Secp256k1}
	SupportedAlgorithmsLedger = keyring.SigningAlgoList{hd.Secp256k1}
)
View Source
var QueryOperator = struct{ Eq, Gt, Gte, Lt, Lte string }{
	"=",
	">",
	">=",
	"<",
	"<=",
}

Functions

This section is empty.

Types

type ClaimFee

type ClaimFee struct{}

ClaimFee

type CompositeQuery

type CompositeQuery struct {
	Or      bool
	Queries []QueryExpression
}

func (*CompositeQuery) GetQuery

func (cq *CompositeQuery) GetQuery() string

type ExecClaimFee

type ExecClaimFee struct {
	ClaimFee *ClaimFee `json:"claim_fees"`
}

func NewExecClaimFee

func NewExecClaimFee() *ExecClaimFee

type ExecExecMsg

type ExecExecMsg struct {
	ExecMessage *ExecMessage `json:"execute_call"`
}

func NewExecExecMsg

func NewExecExecMsg(message *relayTypes.Message) *ExecExecMsg

type ExecExecuteRollback

type ExecExecuteRollback struct {
	ExecuteRollback *ExecuteRollback `json:"execute_rollback"`
}

ExecuteRollback

func NewExecExecuteRollback

func NewExecExecuteRollback(sn uint64) *ExecExecuteRollback

type ExecGetFee

type ExecGetFee struct {
	GetFee *GetFee `json:"get_fee"`
}

GetFee

func NewExecGetFee

func NewExecGetFee(networkID string, response bool) *ExecGetFee

type ExecMessage

type ExecMessage struct {
	ReqID string `json:"request_id"`
	Data  []int  `json:"data"`
}

type ExecRecvMsg

type ExecRecvMsg struct {
	RecvMessage *ReceiveMessage `json:"recv_message"`
}

func NewExecRecvMsg

func NewExecRecvMsg(message *relayTypes.Message) *ExecRecvMsg

type ExecRevertMessge

type ExecRevertMessge struct {
	ExecMessage *RevertMessage `json:"revert_message"`
}

func NewExecRevertMsg

func NewExecRevertMsg(message *relayTypes.Message) *ExecRevertMessge

type ExecSendMsg

type ExecSendMsg struct {
	SendMessage *SendMessage `json:"send_message"`
}

type ExecSetAdmin

type ExecSetAdmin struct {
	SetAdmin *SetAdmin `json:"set_admin"`
}

func NewExecSetAdmin

func NewExecSetAdmin(address string) *ExecSetAdmin

type ExecSetFee

type ExecSetFee struct {
	SetFee *SetFee `json:"set_fee"`
}

func NewExecSetFee

func NewExecSetFee(networkID string, msgFee, resFee uint64) *ExecSetFee

type ExecuteRollback

type ExecuteRollback struct {
	Sn string `json:"sn"`
}

type GetFee

type GetFee struct {
	NetworkID string `json:"nid"`
	Response  bool   `json:"response"`
}

type GetReceiptMsg

type GetReceiptMsg struct {
	SrcNetwork string `json:"src_network"`
	ConnSn     string `json:"conn_sn"`
}

type HeightRange

type HeightRange struct {
	Start uint64
	End   uint64
}

HightRange is a struct to represent a range of heights

type HexBytes

type HexBytes []byte

HexBytes

func NewHexBytes

func NewHexBytes(bz []byte) HexBytes

NewHexBytes returns a new HexBytes

func (HexBytes) MarshalJSON

func (bz HexBytes) MarshalJSON() ([]byte, error)

MarshalJSON marshals the HexBytes to JSON

type Query

type Query struct {
	Field    string
	Operator string
	Value    interface{}
}

func (*Query) GetQuery

func (q *Query) GetQuery() string

type QueryExpression

type QueryExpression interface {
	GetQuery() string
}

type QueryReceiptMsg

type QueryReceiptMsg struct {
	GetReceipt *GetReceiptMsg `json:"get_receipt"`
}

type QueryReceiptMsgResponse

type QueryReceiptMsgResponse struct {
	Status bool `json:"status"`
}

type ReceiveMessage

type ReceiveMessage struct {
	SrcNetwork string           `json:"src_network"`
	ConnSn     string           `json:"conn_sn"`
	Msg        hexstr.HexString `json:"msg"`
}

type RevertMessage

type RevertMessage struct {
	Sn string `json:"sn"`
}

type SendMessage

type SendMessage struct {
	To  string `json:"to"`
	Svc uint8  `json:"svc"`
	Sn  uint64 `json:"sn"`
	Msg []byte `json:"msg"`
}

type SetAdmin

type SetAdmin struct {
	Address string `json:"address"`
}

SetAdmin

type SetFee

type SetFee struct {
	NetworkID   string `json:"network_id"`
	MessageFee  string `json:"message_fee"`
	ResponseFee string `json:"response_fee"`
}

SetFee

type SubscribeOpts

type SubscribeOpts struct {
	Height  uint64
	Address string
	Method  string
}

SubscribeOpts

type TxResultChan

type TxResultChan struct {
	TxResult *relayerTypes.TxResponse
	Error    error
}

type TxResultWaitResponse

type TxResultWaitResponse struct {
	Height int64 `json:"height"`
	Result struct {
		Code      int    `json:"code"`
		Codespace string `json:"codespace"`
		Data      []byte `json:"data"`
		Log       string `json:"log"`
	} `json:"result"`
}

type TxSearchParam

type TxSearchParam struct {
	StartHeight, EndHeight uint64
	Events                 []types.Event
	Prove                  bool
	Page                   *int
	PerPage                *int
	OrderBy                string
}

func (*TxSearchParam) BuildQuery

func (param *TxSearchParam) BuildQuery() string

Jump to

Keyboard shortcuts

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