66
77# Class: ApplicationSpy\< TContract\>
88
9- Defined in: [ src/application-spy.ts:32 ] ( https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L32 )
9+ Defined in: [ src/application-spy.ts:34 ] ( https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L34 )
1010
1111## Type Parameters
1212
@@ -20,7 +20,7 @@ Defined in: [src/application-spy.ts:32](https://github.com/algorandfoundation/al
2020
2121> ** new ApplicationSpy** \< ` TContract ` \> (` contract ` ?): ` ApplicationSpy ` \< ` TContract ` \>
2222
23- Defined in: [ src/application-spy.ts:44 ] ( https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L44 )
23+ Defined in: [ src/application-spy.ts:46 ] ( https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L46 )
2424
2525#### Parameters
2626
@@ -38,15 +38,15 @@ Defined in: [src/application-spy.ts:44](https://github.com/algorandfoundation/al
3838
3939> ` optional ` ** contract** : ` TContract ` \| ` ConstructorFor ` \< ` TContract ` \>
4040
41- Defined in: [ src/application-spy.ts:42 ] ( https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L42 )
41+ Defined in: [ src/application-spy.ts:44 ] ( https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L44 )
4242
4343***
4444
4545### on
4646
4747> ` readonly ` ** on** : ` _TypedApplicationSpyCallBacks ` \< ` TContract ` \>
4848
49- Defined in: [ src/application-spy.ts:39 ] ( https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L39 )
49+ Defined in: [ src/application-spy.ts:41 ] ( https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L41 )
5050
5151The ` on ` property is a proxy that allows you to register callbacks for specific method signatures.
5252It dynamically creates methods based on the contract's methods.
@@ -57,7 +57,7 @@ It dynamically creates methods based on the contract's methods.
5757
5858> ** notify** (` itxn ` ): ` void `
5959
60- Defined in: [ src/application-spy.ts:50 ] ( https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L50 )
60+ Defined in: [ src/application-spy.ts:52 ] ( https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L52 )
6161
6262#### Parameters
6363
@@ -73,44 +73,98 @@ Defined in: [src/application-spy.ts:50](https://github.com/algorandfoundation/al
7373
7474### onAbiCall()
7575
76+ #### Call Signature
77+
7678> ** onAbiCall** (` methodSignature ` , ` callback ` ): ` void `
7779
78- Defined in: [ src/application-spy.ts:69 ] ( https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L69 )
80+ Defined in: [ src/application-spy.ts:80 ] ( https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L80 )
7981
8082Registers a callback for a specific method signature.
8183
82- #### Parameters
84+ ##### Parameters
8385
84- ##### methodSignature
86+ ###### methodSignature
8587
8688` bytes `
8789
88- ##### callback
90+ ###### callback
8991
9092` AppSpyCb `
9193
92- #### Returns
94+ ##### Returns
95+
96+ ` void `
97+
98+ #### Call Signature
99+
100+ > ** onAbiCall** (` methodSignature ` , ` ocas ` , ` callback ` ): ` void `
101+
102+ Defined in: [ src/application-spy.ts:81] ( https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L81 )
103+
104+ Registers a callback for a specific method signature.
105+
106+ ##### Parameters
107+
108+ ###### methodSignature
109+
110+ ` bytes `
111+
112+ ###### ocas
113+
114+ ` OnCompleteAction ` [ ]
115+
116+ ###### callback
117+
118+ ` AppSpyCb `
119+
120+ ##### Returns
93121
94122` void `
95123
96124***
97125
98126### onBareCall()
99127
128+ #### Call Signature
129+
100130> ** onBareCall** (` callback ` ): ` void `
101131
102- Defined in: [ src/application-spy.ts:60 ] ( https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L60 )
132+ Defined in: [ src/application-spy.ts:62 ] ( https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L62 )
103133
104134Registers a callback for a bare call (no arguments).
105135
106- #### Parameters
136+ ##### Parameters
107137
108- ##### callback
138+ ###### callback
109139
110140` AppSpyCb `
111141
112142The callback to be executed when a bare call is detected.
113143
114- #### Returns
144+ ##### Returns
145+
146+ ` void `
147+
148+ #### Call Signature
149+
150+ > ** onBareCall** (` ocas ` , ` callback ` ): ` void `
151+
152+ Defined in: [ src/application-spy.ts:63] ( https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L63 )
153+
154+ Registers a callback for a bare call (no arguments).
155+
156+ ##### Parameters
157+
158+ ###### ocas
159+
160+ ` OnCompleteAction ` [ ]
161+
162+ ###### callback
163+
164+ ` AppSpyCb `
165+
166+ The callback to be executed when a bare call is detected.
167+
168+ ##### Returns
115169
116170` void `
0 commit comments