View Source Radixir.Core.Request.DeriveEntityIdentifier.Metadata.PreparedStakes (radixir v0.0.3)

Methods to create each map in PreparedStakes map.

Link to this section Summary

Functions

Generates stitch plan for sub_entity map in PreparedStakes ma.

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

Generates stitch plan for validator map in PreparedStakes map.

Link to this section Types

Specs

params() :: keyword()

Specs

stitch_plans() :: [keyword()]

Link to this section Functions

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 PreparedStakes ma.

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 PreparedStakes map. Value is set to PreparedStakes.

Parameters

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

validator(stitch_plans, params)

View Source

Specs

validator(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for validator map in PreparedStakes map.

Parameters

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