View Source Radixir.Core.Request.BuildTransaction.Operation (radixir v0.0.3)

Methods to create each map in ValidatorSystemMetadata map.

Link to this section Summary

Functions

Generates stitch plan for amount map in Operation map.

Generates stitch plan for data map in Operation map.

Generates stitch plan for entity_identifier map in Operation map.

Generates stitch plan for metadata map in Operation map.

Generates stitch plan for sub_entity map in Operation map.

Generates stitch plan for substate map in Operation map.

Generates stitch plan for type map in Operation map.

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 Operation map.

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

data(stitch_plans, params)

View Source

Specs

data(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for data map in Operation map.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • action (required, string): Substate operation can be "CREATE" or "DELETE".
Link to this function

entity_identifier(stitch_plans, params)

View Source

Specs

entity_identifier(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for entity_identifier map in Operation map.

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

metadata(stitch_plans, params)

View Source

Specs

metadata(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for metadata map in Operation map.

Parameters

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

sub_entity(stitch_plans, params)

View Source

Specs

sub_entity(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for sub_entity map in Operation map.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • address (required, string): Sub Entity address.
    • validator_address (optional, string): Validator address.
    • epoch_unlock (optional, integer): Epoch unlock.
Link to this function

substate(stitch_plans, params)

View Source

Specs

substate(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for substate map in Operation map.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • substate_operation (required, string): Substate operation can be "BOOTUP or "SHUTDOWN".
    • identifier (required, string): Identifier.
Link to this function

type(stitch_plans, params)

View Source

Specs

type(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for type map in Operation map.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • type (required, string): Type can be "Resource", "Data" or "ResourceAndData".