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) 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) QueryOracleParams() (oracletypes.Params, error)
- func (c Client) QueryUIBCParams() (uibc.Params, error)
- 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 ¶ 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 ¶
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 (Client) GovQClient ¶
func (c Client) GovQClient() govtypes.QueryClient
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 (Client) QueryContract ¶ added in v5.1.0
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) UIBCQueryClient ¶
func (c Client) UIBCQueryClient() uibc.QueryClient
func (Client) WasmClient ¶ added in v5.1.0
func (c Client) WasmClient() wasmtypes.QueryClient