Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CosmosQuery ¶
type CosmosQuery struct { TaxRate *struct{} `json:"tax_rate,omitempty"` TaxCap *types.QueryTaxCapParams `json:"tax_cap,omitempty"` }
CosmosQuery contains various treasury queries
type Querier ¶
type Querier struct {
// contains filtered or unexported fields
}
Querier - staking query interface for wasm contract
func NewWasmQuerier ¶
NewQuerier return bank wasm query interface
func (Querier) Query ¶
func (Querier) Query(_ sdk.Context, _ wasmvmtypes.QueryRequest) ([]byte, error)
Query - implement query function
func (Querier) QueryCustom ¶
QueryCustom implements custom query interface
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
Click to show internal directories.
Click to hide internal directories.