View Source Stellar.TxBuild.Validations (Elixir Stellar SDK v0.13.1)

Ensures that child components/structures used by operations are properly initialized otherwise, returns a formatted error.

Link to this section Summary

Link to this section Types

@type account_id() :: String.t()
@type args() :: [Stellar.TxBuild.SCVal.t()]
@type asset() :: {asset_code(), account_id()} | Keyword.t() | atom()
@type asset_code() :: String.t()
@type component() :: {atom(), value()}
@type error() :: Keyword.t() | atom()
@type validation() :: {:ok, any()} | {:error, error()}
@type value() :: account_id() | asset() | number() | args()

Link to this section Functions

@spec is_struct?(term :: any(), name :: module()) :: boolean()
@spec validate_account(component :: component()) :: validation()
Link to this function

validate_account_id(arg)

View Source
@spec validate_account_id(component :: component()) :: validation()
@spec validate_amount(component :: component()) :: validation()
@spec validate_asset(component :: component()) :: validation()
Link to this function

validate_claimable_balance_id(arg)

View Source
@spec validate_claimable_balance_id(component :: component()) :: validation()
Link to this function

validate_contract_id(arg)

View Source
@spec validate_contract_id(component :: component()) :: validation()
Link to this function

validate_optional_account(arg)

View Source
@spec validate_optional_account(component :: component()) :: validation()
Link to this function

validate_optional_account_id(arg)

View Source
@spec validate_optional_account_id(component :: component()) :: validation()
Link to this function

validate_optional_address_with_nonce(arg)

View Source
@spec validate_optional_address_with_nonce(component :: component()) :: validation()
Link to this function

validate_optional_amount(arg)

View Source
@spec validate_optional_amount(component :: component()) :: validation()
Link to this function

validate_optional_assets_path(arg)

View Source
@spec validate_optional_assets_path(component :: component()) :: validation()
Link to this function

validate_optional_flags(arg)

View Source
@spec validate_optional_flags(component :: component()) :: validation()
Link to this function

validate_optional_signer(arg)

View Source
@spec validate_optional_signer(component :: component()) :: validation()
Link to this function

validate_optional_string32(arg)

View Source
@spec validate_optional_string32(component :: component()) :: validation()
Link to this function

validate_optional_weight(arg)

View Source
@spec validate_optional_weight(component :: component()) :: validation()
@spec validate_pool_id(component :: component()) :: validation()
Link to this function

validate_pos_integer(arg)

View Source
@spec validate_pos_integer(component :: component()) :: validation()
@spec validate_price(component :: component()) :: validation()
@spec validate_sc_vals(component :: component()) :: validation()
Link to this function

validate_sequence_number(arg)

View Source
@spec validate_sequence_number(tuple()) :: validation()
@spec validate_string(tuple()) :: validation()