Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CosmosMsg ¶
type CosmosMsg struct { Swap *types.MsgSwap `json:"swap,omitempty"` SwapSend *types.MsgSwapSend `json:"swap_send,omitempty"` }
CosmosMsg only contains swap msg
type CosmosQuery ¶
type CosmosQuery struct {
Swap types.QuerySwapParams `json:"swap"`
}
CosmosQuery only contains swap simulation
type SwapQueryResponse ¶
SwapQueryResponse - swap simulation query response for wasm module
type WasmMsgParser ¶
type WasmMsgParser struct{}
WasmMsgParser - wasm msg parser for staking msgs
func NewWasmMsgParser ¶
func NewWasmMsgParser() WasmMsgParser
NewWasmMsgParser returns bank wasm msg parser
func (WasmMsgParser) Parse ¶
func (WasmMsgParser) Parse(_ sdk.AccAddress, _ wasmTypes.CosmosMsg) ([]sdk.Msg, error)
Parse implements wasm staking msg parser
func (WasmMsgParser) ParseCustom ¶
func (WasmMsgParser) ParseCustom(contractAddr sdk.AccAddress, data json.RawMessage) ([]sdk.Msg, error)
ParseCustom implements custom parser
type WasmQuerier ¶
type WasmQuerier struct {
// contains filtered or unexported fields
}
WasmQuerier - staking query interface for wasm contract
func NewWasmQuerier ¶
func NewWasmQuerier(keeper keeper.Keeper) WasmQuerier
NewWasmQuerier return bank wasm query interface
func (WasmQuerier) Query ¶
func (WasmQuerier) Query(_ sdk.Context, _ wasmTypes.QueryRequest) ([]byte, error)
Query - implement query function
func (WasmQuerier) QueryCustom ¶
func (querier WasmQuerier) QueryCustom(ctx sdk.Context, data json.RawMessage) ([]byte, error)
QueryCustom implements custom query interface
Click to show internal directories.
Click to hide internal directories.