Kujira.Contract (kujira v0.1.47)

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, arg)

@spec get(
  Channel.t(),
  {module(), String.t()}
) :: {:ok, struct()} | {:error, any()}
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. Default 1h cache

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