skip

package
v0.0.0-...-9ccab3c Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessagesResponse

type MessagesResponse struct {
	Msgs []*Transaction `json:"msgs"`
}

func ParseMessagesResponse

func ParseMessagesResponse(jsonString string) (*MessagesResponse, error)

type Operation

type Operation struct {
	Swap     *SwapOperation     `json:"swap,omitempty"`
	Transfer *TransferOperation `json:"transfer,omitempty"`
}

type PoolSwapOperation

type PoolSwapOperation struct {
	Pool     string `json:"pool"`
	DenomIn  string `json:"denom_in"`
	DenomOut string `json:"denom_out"`
}

type RouteResponse

type RouteResponse struct {
	SourceAssetDenom   string       `json:"source_asset_denom"`
	SourceAssetChainId string       `json:"source_asset_chain_id"`
	DestAssetDenom     string       `json:"dest_asset_denom"`
	DestAssetChainId   string       `json:"dest_asset_chain_id"`
	AmountIn           string       `json:"amount_in"`
	Operations         []*Operation `json:"operations"`
	ChainIds           []string     `json:"chain_ids"`
	DoesSwap           bool         `json:"does_swap"`
	EstimatedAmountOut *string      `json:"estimated_amount_out"`
}

func ParseRouteResponse

func ParseRouteResponse(jsonString string) (*RouteResponse, error)

type SkipClient

type SkipClient struct {
	// contains filtered or unexported fields
}

func NewSkipClient

func NewSkipClient(
	registry *chains.OfflineChainRegistry,
	cdc *cdc.ProtoCodec,
) *SkipClient

func (*SkipClient) GetMessages

func (sc *SkipClient) GetMessages(
	senderAddress string,
	senderPublicKey cryptotypes.PubKey,
	recipientAddress string,
	amountIn string,
	denomIn string,
	sourceChainID string,
	destDenom string,
	destChainID string,
) (sdk.Msg, error)

Send funds without discretion. Sanity checks and safety meausres are not enforced in this call.

type SwapInOperation

type SwapInOperation struct {
	SwapVenue      *SwapVenue           `json:"swap_venue"`
	SwapOperations []*PoolSwapOperation `json:"swap_operations"`
	SwapAmountIn   string               `json:"swap_amount_in"`
}

type SwapOperation

type SwapOperation struct {
	SwapIn           *SwapInOperation  `json:"swap_in"`
	SwapExactCoinOut *SwapOutOperation `json:"swap_out"`
}

type SwapOutOperation

type SwapOutOperation struct {
	SwapVenue      *SwapVenue           `json:"swap_venue"`
	SwapOperations []*PoolSwapOperation `json:"swap_operations"`
	SwapAmountIn   string               `json:"swap_amount_in"`
}

type SwapVenue

type SwapVenue struct {
	Name    string `json:"name"`
	ChainId string `json:"chain_id"`
}

type Transaction

type Transaction struct {
	ChainId    string   `json:"chain_id"`
	Path       []string `json:"path"`
	Msg        string   `json:"msg"`
	MsgTypeUrl string   `json:"msg_type_url"`
}

type TransferOperation

type TransferOperation struct {
	Port         string `json:"port"`
	Channel      string `json:"channel"`
	ChainId      string `json:"chain_id"`
	PfmEnabled   bool   `json:"pfm_enabled"`
	DestDenom    string `json:"dest_denom"`
	SupportsMemo bool   `json:"supports_memo"`
}

Jump to

Keyboard shortcuts

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