bindings

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExchangeRateItem

type ExchangeRateItem struct {
	ExchangeRate string `json:"exchange_rate"`
	QuoteDenom   string `json:"quote_denom"`
}

ExchangeRatesQueryResponseItem - exchange rates query response item

type ExchangeRateQueryParams

type ExchangeRateQueryParams struct {
	BaseDenom   string   `json:"base_denom"`
	QuoteDenoms []string `json:"quote_denoms"`
}

ExchangeRateQueryParams query request params for exchange rates

type ExchangeRatesQueryResponse

type ExchangeRatesQueryResponse struct {
	ExchangeRates []ExchangeRateItem `json:"exchange_rates"`
	BaseDenom     string             `json:"base_denom"`
}

ExchangeRatesQueryResponse - exchange rates query response for wasm module

type Swap

type Swap struct {
	OfferCoin sdk.Coin `json:"offer_coin"`
	AskDenom  string   `json:"ask_denom"`
}

type SwapQueryResponse

type SwapQueryResponse struct {
	Receive wasmvmtypes.Coin `json:"receive"`
}

SwapQueryResponse - swap simulation query response for wasm module

type SwapSend

type SwapSend struct {
	ToAddress string   `json:"to_address"`
	OfferCoin sdk.Coin `json:"offer_coin"`
	AskDenom  string   `json:"ask_denom"`
}

type TaxCapQueryResponse

type TaxCapQueryResponse struct {
	// uint64 string, eg "1000000"
	Cap string `json:"cap"`
}

TaxCapQueryResponse - tax cap query response for wasm module

type TaxRateQueryResponse

type TaxRateQueryResponse struct {
	// decimal string, eg "0.02"
	Rate string `json:"rate"`
}

TaxRateQueryResponse - tax rate query response for wasm module

type TerraMsg

type TerraMsg struct {
	Swap     *Swap     `json:"swap,omitempty"`
	SwapSend *SwapSend `json:"swap_send,omitempty"`
}

type TerraQuery

type TerraQuery struct {
	Swap          *markettypes.QuerySwapParams     `json:"swap,omitempty"`
	ExchangeRates *ExchangeRateQueryParams         `json:"exchange_rates,omitempty"`
	TaxRate       *struct{}                        `json:"tax_rate,omitempty"`
	TaxCap        *treasurytypes.QueryTaxCapParams `json:"tax_cap,omitempty"`
}

TerraQuery contains terra custom queries.

Jump to

Keyboard shortcuts

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