Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PeriodicAllowance

PeriodicAllowance extends Allowance to allow for both a maximum cap, as well as a limit per time period.

Hierarchy

Index

Constructors

  • Parameters

    • basic: BasicAllowance

      basic allowance given per period

    • period: number

      the time duration in which period_spend_limit coins can be spent before that allowance is reset

    • period_spend_limit: Coins.Input

      the maximum number of coins that can be spent in the period

    • period_can_spend: Coins.Input

      the number of coins left to be spent before the period_reset time

    • period_reset: Date

      the time at which this period resets and a new one begins

    Returns PeriodicAllowance

Properties

period: number
period_can_spend: Coins
period_reset: Date
period_spend_limit: Coins

Methods

  • packAny(isClassic?: boolean): Any
  • toAminoJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string

  • toJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string

  • toProto(_?: boolean): PeriodicAllowance