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

Methods to create each map in TokenData map.

Link to this section Summary

Functions

Generates stitch plan for granularity map in TokenData map.

Generates stitch plan for is_mutable map in TokenData map.

Generates stitch plan for owner map in TokenData map.

Generates stitch plan for sub_entity map in TokenData map.

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

Link to this section Types

Specs

params() :: keyword()

Specs

stitch_plans() :: [keyword()]

Link to this section Functions

Link to this function

granularity(stitch_plans, params)

View Source

Specs

granularity(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for granularity map in TokenData map.

Parameters

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

is_mutable(stitch_plans, params)

View Source

Specs

is_mutable(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for is_mutable map in TokenData map.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • is_mutable (required, boolean): Is token mutable?.
Link to this function

owner(stitch_plans, params)

View Source

Specs

owner(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for owner map in TokenData map.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • address (required, string): Owner address.
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 TokenData 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.

Specs

type(stitch_plans()) :: stitch_plans()

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

Parameters

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