Kujira.Contract (kujira v0.1.3)
Convenience methods for querying CosmWasm smart contracts on Kujira
Summary
Functions
Queries the full, raw contract state at an address. It's highly recommended to memoize any calls to this function, and invalidate them in response to external events e.g. a matching tx in a node websocket subscription
Functions
Link to this function
by_code(channel, code_id)
@spec by_code(GRPC.Channel.t(), String.t()) :: {:ok, [String.t()]} | {:error, GRPC.RPCError.t()}
Link to this function
by_codes(channel, code_ids)
@spec by_codes(GRPC.Channel.t(), String.t()) :: {:ok, [String.t()]} | {:error, GRPC.RPCError.t()}
Link to this function
query_state_all()
Queries the full, raw contract state at an address. It's highly recommended to memoize any calls to this function, and invalidate them in response to external events e.g. a matching tx in a node websocket subscription
Examples
iex> Kujira.hello()
:world
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()}