Algorand TypeScript Testing
    Preparing search index...

    Class ApplicationSpy<TContract>

    Type Parameters

    • TContract extends Contract = Contract
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    The on property is a proxy that allows you to register callbacks for specific method signatures. It dynamically creates methods based on the contract's methods.

    Methods

    • Registers a callback for a specific method signature.

      Parameters

      • methodSignature: bytes
      • callback: AppSpyCb

      Returns void

    • Registers a callback for a specific method signature.

      Parameters

      • methodSignature: bytes
      • ocas: OnCompleteAction[]
      • callback: AppSpyCb

      Returns void

    • Registers a callback for a bare call (no arguments).

      Parameters

      • callback: AppSpyCb

        The callback to be executed when a bare call is detected.

      Returns void

    • Registers a callback for a bare call (no arguments).

      Parameters

      • ocas: OnCompleteAction[]
      • callback: AppSpyCb

        The callback to be executed when a bare call is detected.

      Returns void