Utility functions for testing purposes

Constructors

Methods

  • creates and returns an example balance. Useful for testing purposes

    Parameters

    • Optional opts: {
          balanceData?: BalanceData;
          from?: string;
      }
      • Optional balanceData?: BalanceData
      • Optional from?: string

    Returns Balance

  • creates an example BalanceData. Useful for testing purposes

    Returns BalanceData

  • creates and returns an example offering. Useful for testing purposes

    Parameters

    • Optional opts: {
          from?: string;
          offeringData?: OfferingData;
      }

    Returns Offering

  • creates an example QuoteData. Useful for testing purposes

    Returns QuoteData

  • creates and returns an example rfq for the offering returned by DevTools.createOffering. Useful for testing purposes.

    NOTE: generates a random credential that fulfills the offering's required claims

    Parameters

    Returns Promise<Rfq>