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

interface PeriodicAllowance {
    $typeUrl?: "/cosmos.feegrant.v1beta1.PeriodicAllowance";
    basic: undefined | BasicAllowance;
    period: undefined | Duration;
    periodCanSpend: Coin[];
    periodReset: undefined | Date;
    periodSpendLimit: Coin[];
}

Properties

$typeUrl?: "/cosmos.feegrant.v1beta1.PeriodicAllowance"
basic: undefined | BasicAllowance

basic specifies a struct of BasicAllowance

period: undefined | Duration

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

periodCanSpend: Coin[]

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

periodReset: undefined | Date

period_reset is the time at which this period resets and a new one begins, it is calculated from the start time of the first transaction after the last period ended

periodSpendLimit: Coin[]

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