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

Methods to create each map in CreateToken action.

Link to this section Summary

Functions

Generates stitch plan for owner map in CreateToken action.

Generates stitch plan for to_account map in CreateToken action.

Generates stitch plan for token_identifier map in CreateToken action.

Generates stitch plan for token_properties map in CreateToken action.

Generates stitch plan for token_supply map in CreateToken action.

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

Link to this section Types

Specs

params() :: keyword()

Specs

stitch_plans() :: [keyword()]

Link to this section Functions

Link to this function

owner(stitch_plans, params)

View Source

Specs

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

Generates stitch plan for owner map in CreateToken action.

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

to_account(stitch_plans, params)

View Source

Specs

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

Generates stitch plan for to_account map in CreateToken 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 CreateToken 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.
Link to this function

token_properties(stitch_plans, params)

View Source

Specs

token_properties(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for token_properties map in CreateToken action.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • name (required, string): Token name
    • description (required, string): Token description.
    • icon_url (required, string): Token icon url.
    • url (required, string): Token url.
    • symbol (required, string): Token symbol.
    • is_supply_mutable (required, boolean): Is token supply mutaable?
    • granularity (required, string): Token granularity.
Link to this function

token_supply(stitch_plans, params)

View Source

Specs

token_supply(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for token_supply map in CreateToken action.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • value (required, string): Token supply value.

Specs

type(stitch_plans()) :: stitch_plans()

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

Parameters

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