Kujira.Contract (kujira v0.1.31)
Convenience methods for querying CosmWasm smart contracts on Kujira
Summary
Functions
Queries the full, raw contract state at an address. Default 1h cache
Streams the current contract state
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)
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, expires_in \\ 60 * 60 * 1000)
@spec query_state_all(GRPC.Channel.t(), String.t(), integer() | nil) :: {: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