|
6 | 6 |
|
7 | 7 | # Class: ContractContext |
8 | 8 |
|
9 | | -Defined in: [src/subcontexts/contract-context.ts:138](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/subcontexts/contract-context.ts#L138) |
| 9 | +Defined in: [src/subcontexts/contract-context.ts:145](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/subcontexts/contract-context.ts#L145) |
10 | 10 |
|
11 | 11 | Provides a context for creating contracts and registering created contract instances |
12 | 12 | with test execution context. |
13 | 13 |
|
14 | 14 | ## Constructors |
15 | 15 |
|
16 | | -### new ContractContext() |
| 16 | +### Constructor |
17 | 17 |
|
18 | | -> **new ContractContext**(): [`ContractContext`](ContractContext.md) |
| 18 | +> **new ContractContext**(): `ContractContext` |
19 | 19 |
|
20 | 20 | #### Returns |
21 | 21 |
|
22 | | -[`ContractContext`](ContractContext.md) |
| 22 | +`ContractContext` |
23 | 23 |
|
24 | 24 | ## Methods |
25 | 25 |
|
26 | 26 | ### create() |
27 | 27 |
|
28 | 28 | > **create**\<`T`\>(`type`, ...`args`): `T` |
29 | 29 |
|
30 | | -Defined in: [src/subcontexts/contract-context.ts:150](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/subcontexts/contract-context.ts#L150) |
| 30 | +Defined in: [src/subcontexts/contract-context.ts:157](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/subcontexts/contract-context.ts#L157) |
31 | 31 |
|
32 | 32 | Creates a new contract instance and register the created instance with test execution context. |
33 | 33 |
|
34 | 34 | #### Type Parameters |
35 | 35 |
|
36 | | -• **T** *extends* `BaseContract` |
| 36 | +##### T |
| 37 | + |
| 38 | +`T` *extends* `BaseContract` |
37 | 39 |
|
38 | 40 | Type of contract extending BaseContract |
39 | 41 |
|
@@ -70,15 +72,17 @@ const contract = ctx.contract.create(MyContract); |
70 | 72 |
|
71 | 73 | > `static` **createMethodCallTxns**\<`TParams`\>(`contract`, `abiMetadata`, ...`args`): `Transaction`[] |
72 | 74 |
|
73 | | -Defined in: [src/subcontexts/contract-context.ts:172](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/subcontexts/contract-context.ts#L172) |
| 75 | +Defined in: [src/subcontexts/contract-context.ts:179](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/subcontexts/contract-context.ts#L179) |
74 | 76 |
|
75 | 77 | **`Internal`** |
76 | 78 |
|
77 | 79 | Creates an array of transactions for calling a contract method. |
78 | 80 |
|
79 | 81 | #### Type Parameters |
80 | 82 |
|
81 | | -• **TParams** *extends* `unknown`[] |
| 83 | +##### TParams |
| 84 | + |
| 85 | +`TParams` *extends* `unknown`[] |
82 | 86 |
|
83 | 87 | Array of parameter types |
84 | 88 |
|
|
0 commit comments