Kujira.Fin (kujira v0.1.47)

Kujira's 100% on-chain, central limit order book style decentralized token exchange.

Summary

Functions

Fetches the Pair contract and its current config from the chain

Loads the current Book into the Pair

Functions

Link to this function

get_pair(channel, address)

@spec get_pair(Channel.t(), String.t()) ::
  {:ok, Kujira.Fin.Pair.t()} | {:error, :not_found}

Fetches the Pair contract and its current config from the chain

Link to this function

list_pairs(channel, code_ids \\ [283])

@spec list_pairs(GRPC.Channel.t(), [integer()]) ::
  {:ok, [Kujira.Fin.Pair.t()]} | {:error, GRPC.RPCError.t()}

Fetches all Pairs

Link to this function

load_pair(channel, pair, limit \\ 100)

@spec load_pair(Channel.t(), Kujira.Fin.Pair.t(), integer()) ::
  {:ok, Kujira.Fin.Pair.t()} | {:error, GRPC.RPCError.t()}

Loads the current Book into the Pair