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,omitempty"`
}
CosmosQuery only contains swap simulation
type MsgParser ¶ added in v1.2.0
type MsgParser struct{}
WasmMsgParser - wasm msg parser for staking msgs
func NewWasmMsgParser ¶
func NewWasmMsgParser() MsgParser
NewWasmMsgParser returns bank wasm msg parser
func (MsgParser) Parse ¶ added in v1.2.0
func (MsgParser) Parse(_ sdk.AccAddress, _ wasmvmtypes.CosmosMsg) (sdk.Msg, error)
Parse implements wasm staking msg parser
func (MsgParser) ParseCustom ¶ added in v1.2.0
func (MsgParser) ParseCustom(contractAddr sdk.AccAddress, data json.RawMessage) (sdk.Msg, error)
ParseCustom implements custom parser
type Querier ¶ added in v1.2.0
type Querier struct {
// contains filtered or unexported fields
}
WasmQuerier - staking query interface for wasm contract
func NewWasmQuerier ¶
NewWasmQuerier return bank wasm query interface
func (Querier) Query ¶ added in v1.2.0
func (Querier) Query(_ sdk.Context, _ wasmvmtypes.QueryRequest) ([]byte, error)
Query - implement query function
func (Querier) QueryCustom ¶ added in v1.2.0
QueryCustom implements custom query interface
type SwapQueryResponse ¶
type SwapQueryResponse struct {
Receive wasmvmtypes.Coin `json:"receive"`
}
SwapQueryResponse - swap simulation query response for wasm module
Click to show internal directories.
Click to hide internal directories.