Documentation ¶
Index ¶
- func CustomMessageDecorator(dexKeeper *dexkeeper.Keeper) func(messenger wasmkeeper.Messenger) wasmkeeper.Messenger
- func CustomQuerier(qp *QueryPlugin) func(ctx sdk.Context, request json.RawMessage) ([]byte, error)
- func RegisterCustomPlugins(dexKeeper *dexkeeper.Keeper) []wasmkeeper.Option
- type CustomMessenger
- type QueryPlugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomMessageDecorator ¶
func CustomMessageDecorator( dexKeeper *dexkeeper.Keeper, ) func(messenger wasmkeeper.Messenger) wasmkeeper.Messenger
func CustomQuerier ¶
func CustomQuerier(qp *QueryPlugin) func(ctx sdk.Context, request json.RawMessage) ([]byte, error)
CustomQuerier returns a function that is an implementation of custom querier mechanism for specific messages
func RegisterCustomPlugins ¶
func RegisterCustomPlugins( dexKeeper *dexkeeper.Keeper, ) []wasmkeeper.Option
RegisterCustomPlugins returns wasmkeeper.Option that we can use to connect handlers for implemented custom queries and messages to the App
Types ¶
type CustomMessenger ¶
type CustomMessenger struct { Wrapped wasmkeeper.Messenger DexMsgServer dextypes.MsgServer }
func (*CustomMessenger) DispatchMsg ¶
func (m *CustomMessenger) DispatchMsg( ctx sdk.Context, contractAddr sdk.AccAddress, contractIBCPortID string, msg wasmvmtypes.CosmosMsg, ) ([]sdk.Event, [][]byte, error)
type QueryPlugin ¶
type QueryPlugin struct {
// contains filtered or unexported fields
}
func NewQueryPlugin ¶
func NewQueryPlugin( dexKeeper *dexkeeper.Keeper, ) *QueryPlugin
NewQueryPlugin returns a reference to a new QueryPlugin.
func (*QueryPlugin) GetEstimateMultiHopSwapResult ¶
func (qp *QueryPlugin) GetEstimateMultiHopSwapResult( ctx sdk.Context, creator string, receiver string, routes []*bindings.MultiHopRoute, amountIn sdk.Int, exitLimitPrice sdk.Dec, pickBestRoute bool, ) (*bindings.EstimateMultiHopSwapResultResponse, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.