Kujira.Contract (kujira v0.1.80)

Convenience methods for querying CosmWasm smart contracts on Kujira

Summary

Functions

Link to this function

by_code(channel, code_id)

@spec by_code(GRPC.Channel.t(), integer()) ::
  {:ok, [String.t()]} | {:error, GRPC.RPCError.t()}
Link to this function

by_codes(channel, code_ids)

@spec by_codes(GRPC.Channel.t(), [integer()]) ::
  {:ok, [String.t()]} | {:error, GRPC.RPCError.t()}
Link to this function

get(channel, loaded)

@spec get(Channel.t(), {module(), String.t()} | struct()) ::
  {:ok, struct()} | {:error, any()}
Link to this function

info(channel, address)

@spec info(GRPC.Channel.t(), String.t()) ::
  {:ok, Cosmwasm.Wasm.V1.ContractInfo.t()} | {:error, GRPC.RPCError.t()}
Link to this function

list(channel, module, code_ids)

@spec list(GRPC.Channel.t(), module(), [integer()]) ::
  {:ok, [struct()]} | {:error, GRPC.RPCError.t()}
Link to this function

query_state_all(channel, address)

@spec query_state_all(GRPC.Channel.t(), String.t()) ::
  {:ok, map()} | {:error, GRPC.RPCError.t()}

Queries the full, raw contract state at an address

Link to this function

query_state_smart(channel, address, query)

@spec query_state_smart(GRPC.Channel.t(), String.t(), map()) ::
  {:ok, map()} | {:error, GRPC.RPCError.t()}
Link to this function

stream_state_all(channel, address)

Streams the current contract state