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

    Accessors

    • get isAllowed(): boolean

      Returns boolean

    • get lastReset(): bigint | undefined

      Returns bigint | undefined

    • get recurringLimit(): bigint | undefined

      Returns bigint | undefined

    • get spendLimit(): bigint | null

      max spendable amount.

      returns null if there is no limit

      Returns bigint | null

    • get window(): bigint | null

      Returns bigint | null

    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