Documentation ¶
Index ¶
- func ConvertProtoToJSONMarshal(protoResponseType codec.ProtoMarshaler, bz []byte, cdc codec.Codec) ([]byte, error)
- func ConvertSdkCoinToWasmCoin(coin sdk.Coin) wasmvmtypes.Coin
- func ConvertSdkCoinsToWasmCoins(coins []sdk.Coin) wasmvmtypes.Coins
- type Client
- func (c Client) AuthQClient() authtypes.QueryClient
- func (c Client) GovProposal(proposalID uint64) (*govtypes.Proposal, error)
- func (c Client) GovQClient() govtypes.QueryClient
- func (c Client) IncAccSeq()
- func (c Client) MetokenQClient() metoken.QueryClient
- func (c Client) NewQCtx() (context.Context, context.CancelFunc)
- func (c Client) NewQCtxWithCancel() (context.Context, context.CancelFunc)
- func (c Client) OracleQueryClient() oracletypes.QueryClient
- func (c Client) QueryAuthSeq(accAddr string) (uint64, error)
- func (c Client) QueryContract(contractAddr string, query []byte) (*wasmtypes.QuerySmartContractStateResponse, error)
- func (c Client) QueryExchangeRates() ([]sdk.DecCoin, error)
- func (c Client) QueryMedianDeviations() ([]oracletypes.Price, error)
- func (c Client) QueryMedians() ([]oracletypes.Price, error)
- func (c Client) QueryMetokenIndexBalances(denom string) (*metoken.QueryIndexBalancesResponse, error)
- func (c Client) QueryMetokenIndexPrices(denom string) (*metoken.QueryIndexPricesResponse, error)
- func (c Client) QueryMetokenIndexes(denom string) (*metoken.QueryIndexesResponse, error)
- func (c Client) QueryMetokenParams() (metoken.Params, error)
- func (c Client) QueryOracleParams() (oracletypes.Params, error)
- func (c Client) QueryTxHash(hash string) (*sdk.TxResponse, error)
- func (c Client) QueryUIBCParams() (uibc.Params, error)
- func (c Client) SetAccSeq(seq uint64)
- func (c Client) UIBCQueryClient() uibc.QueryClient
- func (c Client) WasmClient() wasmtypes.QueryClient
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 ¶
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 (Client) GovQClient ¶
func (c Client) GovQClient() govtypes.QueryClient
func (Client) MetokenQClient ¶ added in v6.1.0
func (c Client) MetokenQClient() metoken.QueryClient
func (Client) NewQCtxWithCancel ¶
func (c Client) NewQCtxWithCancel() (context.Context, context.CancelFunc)
func (Client) OracleQueryClient ¶
func (c Client) OracleQueryClient() oracletypes.QueryClient
func (Client) QueryContract ¶
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 (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) UIBCQueryClient ¶
func (c Client) UIBCQueryClient() uibc.QueryClient
func (Client) WasmClient ¶
func (c Client) WasmClient() wasmtypes.QueryClient