bindings

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

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

type MultiHopSwapResponse struct {
	CoinOut sdk.Coin `json:"coin_out"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL