client

package
v5.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertProtoToJSONMarshal added in v5.1.0

func ConvertProtoToJSONMarshal(protoResponseType codec.ProtoMarshaler, bz []byte, cdc codec.Codec) ([]byte, error)

ConvertProtoToJsonMarshal unmarshals the given bytes into a proto message and then marshals it to json. This is done so that clients calling stargate queries do not need to define their own proto unmarshalers, being able to use response directly by json `marshaling, which is supported in cosmwasm.

func ConvertSdkCoinToWasmCoin added in v5.1.0

func ConvertSdkCoinToWasmCoin(coin sdk.Coin) wasmvmtypes.Coin

ConvertSdkCoinToWasmCoin converts a sdk type coin to a wasm vm type coin

func ConvertSdkCoinsToWasmCoins added in v5.1.0

func ConvertSdkCoinsToWasmCoins(coins []sdk.Coin) wasmvmtypes.Coins

ConvertSdkCoinsToWasmCoins converts sdk type coins to wasm vm type coins

Types

type Client

type Client struct {
	sdkclient.Client
	// contains filtered or unexported fields
}

Client sdkclient.Client and provides umee chain specific transactions and queries.

func NewClient

func NewClient(
	chainDataDir,
	chainID,
	tmrpcEndpoint,
	grpcEndpoint string,
	mnemonics map[string]string,
	gasAdjustment float64,
	encCfg sdkparams.EncodingConfig,
) (Client, error)

NewClient constructs Client object. Accounts are generated using the list of mnemonics. Each string must be a sequence of words, eg: `["w11 w12 w13", "w21 w22 w23"]`. Keyring names for created accounts will be: val1, val2....

func (Client) AuthQClient added in v5.1.0

func (c Client) AuthQClient() authtypes.QueryClient

func (Client) GovProposal

func (c Client) GovProposal(proposalID uint64) (*govtypes.Proposal, error)

func (Client) GovQClient

func (c Client) GovQClient() govtypes.QueryClient

func (Client) NewQCtx

func (c Client) NewQCtx() (context.Context, context.CancelFunc)

func (Client) NewQCtxWithCancel

func (c Client) NewQCtxWithCancel() (context.Context, context.CancelFunc)

func (Client) OracleQueryClient

func (c Client) OracleQueryClient() oracletypes.QueryClient

func (Client) QueryAuthSeq added in v5.1.0

func (c Client) QueryAuthSeq(accAddr string) (uint64, error)

func (Client) QueryContract added in v5.1.0

func (c Client) QueryContract(contractAddr string, query []byte) (*wasmtypes.QuerySmartContractStateResponse, error)

func (Client) QueryExchangeRates

func (c Client) QueryExchangeRates() ([]sdk.DecCoin, error)

func (Client) QueryMedianDeviations

func (c Client) QueryMedianDeviations() ([]oracletypes.Price, error)

func (Client) QueryMedians

func (c Client) QueryMedians() ([]oracletypes.Price, error)

func (Client) QueryOracleParams

func (c Client) QueryOracleParams() (oracletypes.Params, error)

func (Client) QueryUIBCParams

func (c Client) QueryUIBCParams() (uibc.Params, error)

func (Client) UIBCQueryClient

func (c Client) UIBCQueryClient() uibc.QueryClient

func (Client) WasmClient added in v5.1.0

func (c Client) WasmClient() wasmtypes.QueryClient

Jump to

Keyboard shortcuts

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