Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DualityMsg ¶
type DualityMsg struct {
MultiHopSwap *MultiHopSwap `json:"multi_hop_swap,omitempty"`
}
DualityMsg is used like a sum type to hold one of custom Duality messages. Follow https://github.com/duality-labs/duality-contracts/tree/main/packages/bindings/src/msg.rs for more information.
type DualityQuery ¶
type DualityQuery struct {
EstimateMultiHopSwapResult *EstimateMultiHopSwapResultRequest `json:"estimate_multi_hop_swap_result,omitempty"`
}
DualityQuery contains duality custom queries.
type EstimateMultiHopSwapResultRequest ¶
type EstimateMultiHopSwapResultRequest struct {
Creator string `json:"creator"`
Receiver string `json:"receiver"`
Routes []*MultiHopRoute `json:"routes"`
AmountIn sdk.Int `json:"amount_in"`
ExitLimitPrice sdk.Dec `json:"exit_limit_price"`
// If pickBestRoute == true then all routes are run and the route with the best price is chosen
// otherwise, the first succesful route is used.
PickBestRoute bool `json:"pick_best_route"`
}
type EstimateMultiHopSwapResultResponse ¶
type EstimateMultiHopSwapResultResponse struct {
}
type MultiHopRoute ¶
type MultiHopRoute struct {
Hops []string `json:"hops"`
}
type MultiHopSwap ¶
type MultiHopSwap struct {
Receiver string `json:"receiver"`
Routes []*MultiHopRoute `json:"routes"`
AmountIn sdk.Int `json:"amount_in"`
ExitLimitPrice sdk.Dec `json:"exit_limit_price"`
// If pickBestRoute == true then all routes are run and the route with the best price is chosen
// otherwise, the first succesful route is used.
PickBestRoute bool `json:"pick_best_route"`
}
SubmitTx submits interchain transaction on a remote chain.
type MultiHopSwapResponse ¶
Click to show internal directories.
Click to hide internal directories.