Function validateFund

  • Check whether the sender can fund the lock.

    Returns

    true if the sender can fund the lock.

    Throws

    If the lock has expired.

    Throws

    If the sender does not have the fund capability for a simpleV0 lock controller.

    Throws

    If the token is not configured on a simpleV0 lock controller.

    Throws

    If the sender does not have enough available balance of the token.

    For unknown controller variants, the capability and configured-token checks are skipped.

    Parameters

    • lock: Lock

      The lock to validate against.

    • sender: AccountAddress

      The sender account to validate.

    • details: FundDetails

      The fund operation details, used to validate the sender's available balance.

    Returns Promise<true>

Generated using TypeDoc