Tradehub.Tx.CreateValidator (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

commission() :: %{
  rate: String.t(),
  max_rate: String.t(),
  max_rate_change: String.t()
}

Specs

description() :: %{
  moniker: String.t(),
  identity: String.t(),
  website: String.t(),
  details: String.t()
}

Specs

t() :: %Tradehub.Tx.CreateValidator{
  commission: commission(),
  delegator_address: String.t(),
  description: description(),
  min_self_delegation: String.t(),
  pubkey: String.t(),
  validator_address: String.t(),
  value: Tradehub.amount()
}

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.