Skip to content

ApplicationSpy

Defined in: src/application-spy.ts:34

TContract extends Contract = Contract

new ApplicationSpy<TContract>(contract?): ApplicationSpy<TContract>

Defined in: src/application-spy.ts:46

TContract | ConstructorFor<TContract>

ApplicationSpy<TContract>

readonly on: TypedApplicationSpyCallBacks<TContract>

Defined in: src/application-spy.ts:41

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.

onAbiCall(methodSignature, callback): void

Defined in: src/application-spy.ts:80

Registers a callback for a specific method signature.

bytes

AppSpyCb

void

onAbiCall(methodSignature, ocas, callback): void

Defined in: src/application-spy.ts:81

Registers a callback for a specific method signature.

bytes

OnCompleteAction[]

AppSpyCb

void


onBareCall(callback): void

Defined in: src/application-spy.ts:62

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

AppSpyCb

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

void

onBareCall(ocas, callback): void

Defined in: src/application-spy.ts:63

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

OnCompleteAction[]

AppSpyCb

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

void