Swig TS — API References
    Preparing search index...
    Index

    Accessors

    • get isAllowed(): boolean

      Returns boolean

    • get lastReset(): undefined | bigint

      Returns undefined | bigint

    • get recurringLimit(): undefined | bigint

      Returns undefined | bigint

    • get spendLimit(): null | bigint

      max spendable amount.

      returns null if there is no limit

      Returns null | bigint

    • get window(): null | bigint

      Returns null | bigint

    Methods

    • Check if allowed to spend a given amount, or spend at all if no amount is provided

      Parameters

      • Optionalamount: bigint

        Token amount

      Returns boolean

      boolean

    • Check if a spend in uncapped

      Returns boolean

      boolean

    • Spend Recurring controller

      Parameters

      • args: { amount: bigint; lastReset: bigint; recurringAmount: bigint; window: bigint }

      Returns SpendController