View Source Radixir.Gateway.Request.BuildTransaction.Action.UnstakeTokens (radixir v0.0.3)

Methods to create each map in UnstakeTokens action.

Link to this section Summary

Functions

Generates stitch plan for amount map in UnstakeTokens action.

Generates stitch plan for from_validator map in UnstakeTokens action.

Generates stitch plan for to_account map in UnstakeTokens action.

Generates stitch plan for token_identifier map in UnstakeTokens action.

Generates stitch plan for type map in UntakeTokens action. Value is set to UntakeTokens.

Generates stitch plan for unstake_percentage map in UnstakeTokens action.

Link to this section Types

Specs

params() :: keyword()

Specs

stitch_plans() :: [keyword()]

Link to this section Functions

Link to this function

amount(stitch_plans, params)

View Source

Specs

amount(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for amount map in UnstakeTokens action.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • value (required, string): Amount value.
Link to this function

from_validator(stitch_plans, params)

View Source

Specs

from_validator(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for from_validator map in UnstakeTokens action.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • address (required, string): Radix address.
Link to this function

to_account(stitch_plans, params)

View Source

Specs

to_account(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for to_account map in UnstakeTokens action.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • address (required, string): Radix address.
Link to this function

token_identifier(stitch_plans, params)

View Source

Specs

token_identifier(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for token_identifier map in UnstakeTokens action.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • rri (required, string): Radix Resource Identifier.

Specs

type(stitch_plans()) :: stitch_plans()

Generates stitch plan for type map in UntakeTokens action. Value is set to UntakeTokens.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
Link to this function

unstake_percentage(stitch_plans, params)

View Source

Specs

unstake_percentage(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for unstake_percentage map in UnstakeTokens action.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • unstake_percentage (required, non_neg_integer): Radix Resource Identifier.