ApplicationSpy
Defined in: src/application-spy.ts:34
Type Parameters
Section titled “Type Parameters”TContract
Section titled “TContract”TContract extends Contract = Contract
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ApplicationSpy<
TContract>(contract?):ApplicationSpy<TContract>
Defined in: src/application-spy.ts:46
Parameters
Section titled “Parameters”contract?
Section titled “contract?”TContract | ConstructorFor<TContract>
Returns
Section titled “Returns”ApplicationSpy<TContract>
Properties
Section titled “Properties”
readonlyon: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.
Methods
Section titled “Methods”onAbiCall()
Section titled “onAbiCall()”Call Signature
Section titled “Call Signature”onAbiCall(
methodSignature,callback):void
Defined in: src/application-spy.ts:80
Registers a callback for a specific method signature.
Parameters
Section titled “Parameters”methodSignature
Section titled “methodSignature”bytes
callback
Section titled “callback”AppSpyCb
Returns
Section titled “Returns”void
Call Signature
Section titled “Call Signature”onAbiCall(
methodSignature,ocas,callback):void
Defined in: src/application-spy.ts:81
Registers a callback for a specific method signature.
Parameters
Section titled “Parameters”methodSignature
Section titled “methodSignature”bytes
OnCompleteAction[]
callback
Section titled “callback”AppSpyCb
Returns
Section titled “Returns”void
onBareCall()
Section titled “onBareCall()”Call Signature
Section titled “Call Signature”onBareCall(
callback):void
Defined in: src/application-spy.ts:62
Registers a callback for a bare call (no arguments).
Parameters
Section titled “Parameters”callback
Section titled “callback”AppSpyCb
The callback to be executed when a bare call is detected.
Returns
Section titled “Returns”void
Call Signature
Section titled “Call Signature”onBareCall(
ocas,callback):void
Defined in: src/application-spy.ts:63
Registers a callback for a bare call (no arguments).
Parameters
Section titled “Parameters”OnCompleteAction[]
callback
Section titled “callback”AppSpyCb
The callback to be executed when a bare call is detected.
Returns
Section titled “Returns”void