client

package
v6.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertProtoToJSONMarshal

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

func ConvertSdkCoinToWasmCoin(coin sdk.Coin) wasmvmtypes.Coin

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

func ConvertSdkCoinsToWasmCoins

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 testutil.TestEncodingConfig,
) (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

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) IncAccSeq added in v6.4.0

func (c Client) IncAccSeq()

func (Client) MetokenQClient added in v6.1.0

func (c Client) MetokenQClient() metoken.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

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

func (Client) QueryContract

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) QueryMetokenIndexBalances added in v6.1.0

func (c Client) QueryMetokenIndexBalances(denom string) (*metoken.QueryIndexBalancesResponse, error)

func (Client) QueryMetokenIndexPrices added in v6.1.0

func (c Client) QueryMetokenIndexPrices(denom string) (*metoken.QueryIndexPricesResponse, error)

func (Client) QueryMetokenIndexes added in v6.1.0

func (c Client) QueryMetokenIndexes(denom string) (*metoken.QueryIndexesResponse, error)

func (Client) QueryMetokenParams added in v6.1.0

func (c Client) QueryMetokenParams() (metoken.Params, error)

func (Client) QueryOracleParams

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

func (Client) QueryTxHash added in v6.2.0

func (c Client) QueryTxHash(hash string) (*sdk.TxResponse, error)

func (Client) QueryUIBCParams

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

func (Client) SetAccSeq added in v6.3.0

func (c Client) SetAccSeq(seq uint64)

func (Client) UIBCQueryClient

func (c Client) UIBCQueryClient() uibc.QueryClient

func (Client) WasmClient

func (c Client) WasmClient() wasmtypes.QueryClient

Jump to

Keyboard shortcuts

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