Documentation ¶
Index ¶
- Constants
- Variables
- type ClaimFee
- type CompositeQuery
- type ExecClaimFee
- type ExecExecMsg
- type ExecExecuteRollback
- type ExecGetFee
- type ExecMessage
- type ExecRecvMsg
- type ExecRevertMessge
- type ExecSendMsg
- type ExecSetAdmin
- type ExecSetFee
- type ExecuteRollback
- type GetFee
- type GetReceiptMsg
- type HeightRange
- type HexBytes
- type Query
- type QueryExpression
- type QueryReceiptMsg
- type QueryReceiptMsgResponse
- type ReceiveMessage
- type RevertMessage
- type SendMessage
- type SetAdmin
- type SetFee
- type SubscribeOpts
- type TxResultChan
- type TxResultWaitResponse
- type TxSearchParam
Constants ¶
View Source
const ( CodeTypeOK uint32 = 0 CodeTypeErr uint32 = 1 ChainType = "cosmos" )
Variables ¶
View Source
var ( SupportedAlgorithms = keyring.SigningAlgoList{hd.Secp256k1, injective.EthSecp256k1} SupportedAlgorithmsLedger = keyring.SigningAlgoList{hd.Secp256k1, injective.EthSecp256k1} )
View Source
var QueryOperator = struct{ Eq, Gt, Gte, Lt, Lte string }{
"=",
">",
">=",
"<",
"<=",
}
Functions ¶
This section is empty.
Types ¶
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 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 GetReceiptMsg ¶
type HeightRange ¶
HightRange is a struct to represent a range of heights
type HexBytes ¶
type HexBytes []byte
HexBytes
func (HexBytes) MarshalJSON ¶
MarshalJSON marshals the HexBytes to JSON
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 RevertMessage ¶
type RevertMessage struct {
Sn string `json:"sn"`
}
type SendMessage ¶
type SetFee ¶
type SetFee struct { NetworkID string `json:"network_id"` MessageFee string `json:"message_fee"` ResponseFee string `json:"response_fee"` }
SetFee
type SubscribeOpts ¶
SubscribeOpts
type TxResultChan ¶
type TxResultChan struct { TxResult *relayerTypes.TxResponse Error error }
type TxResultWaitResponse ¶
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
Click to show internal directories.
Click to hide internal directories.