Tradehub.Tx.AddLiquidity (Tradehub v0.1.17) View Source

Link to this section Summary

Functions

Given the payload message as map/dictionary, validation, and convert to the raw message

Callback implementation for Tradehub.Tx.Type.type/0.

Callback implementation for Tradehub.Tx.Type.validate!/1.

Link to this section Types

Specs

t() :: %Tradehub.Tx.AddLiquidity{
  amount_a: String.t(),
  amount_b: String.t(),
  min_shares: String.t(),
  originator: String.t(),
  pool_id: String.t()
}

Link to this section Functions

Specs

compose!(map()) :: Tradehub.Tx.message()

Given the payload message as map/dictionary, validation, and convert to the raw message

Specs

type() :: String.t()

Callback implementation for Tradehub.Tx.Type.type/0.

Specs

validate!(t()) :: t()

Callback implementation for Tradehub.Tx.Type.validate!/1.