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

constructor

  • 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

basic

period

period: number

period_can_spend

period_can_spend: Coins

period_reset

period_reset: Date

period_spend_limit

period_spend_limit: Coins

Methods

packAny

  • packAny(): Any

toAmino

toAminoJSON

  • toAminoJSON(): string
  • Returns string

toData

toJSON

  • toJSON(): string
  • Returns string

toProto

  • toProto(): PeriodicAllowance

Static fromAmino

Static fromData

Static fromProto

Static unpackAny