Documentation ¶
Index ¶
- Constants
- Variables
- type Attribute
- type ClaimFee
- type CompositeQuery
- type Event
- type EventsList
- 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 TxResult
- type TxResultResponse
- 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} // Default parameters for RPC RPCMaxRetryAttempts uint8 = 5 BaseRPCRetryDelay = 3 * time.Second MaxRPCRetryDelay = 5 * time.Minute )
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 EventsList ¶
type EventsList struct {
Events []Event `json:"events"`
}
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 *big.Int) *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 *big.Int) *ExecSetFee
type ExecuteRollback ¶
type ExecuteRollback struct {
Sn string `json:"sequence_no"`
}
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 TxResult ¶ added in v1.3.1
type TxResult struct { TxResult *relayerTypes.TxResponse Error error }
type TxResultResponse ¶ added in v1.5.1
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.