Skip to content

Commit 3012742

Browse files
authored
fix: align AlgorandClientInterface with AlgorandClient (#355) (#365)
* fix: align AlgorandClientInterface with AlgorandClient (#355) * use partial interface to avoid breaking change
1 parent 2c2dd78 commit 3012742

14 files changed

+139
-183
lines changed

docs/code/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
- [types/dispenser-client.spec](modules/types_dispenser_client_spec.md)
4444
- [types/expand](modules/types_expand.md)
4545
- [types/indexer](modules/types_indexer.md)
46+
- [types/interface-of](modules/types_interface_of.md)
4647
- [types/kmd-account-manager](modules/types_kmd_account_manager.md)
4748
- [types/lifecycle-events](modules/types_lifecycle_events.md)
4849
- [types/logging](modules/types_logging.md)

docs/code/classes/types_algorand_client.AlgorandClient.md

Lines changed: 33 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66

77
A client that brokers easy access to Algorand functionality.
88

9-
## Implements
10-
11-
- [`AlgorandClientInterface`](../interfaces/types_algorand_client_interface.AlgorandClientInterface.md)
12-
139
## Table of contents
1410

1511
### Constructors
@@ -75,7 +71,7 @@ A client that brokers easy access to Algorand functionality.
7571

7672
#### Defined in
7773

78-
[src/types/algorand-client.ts:34](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L34)
74+
[src/types/algorand-client.ts:33](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L33)
7975

8076
## Properties
8177

@@ -85,7 +81,7 @@ A client that brokers easy access to Algorand functionality.
8581

8682
#### Defined in
8783

88-
[src/types/algorand-client.ts:21](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L21)
84+
[src/types/algorand-client.ts:20](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L20)
8985

9086
___
9187

@@ -95,7 +91,7 @@ ___
9591

9692
#### Defined in
9793

98-
[src/types/algorand-client.ts:23](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L23)
94+
[src/types/algorand-client.ts:22](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L22)
9995

10096
___
10197

@@ -105,7 +101,7 @@ ___
105101

106102
#### Defined in
107103

108-
[src/types/algorand-client.ts:22](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L22)
104+
[src/types/algorand-client.ts:21](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L21)
109105

110106
___
111107

@@ -115,7 +111,7 @@ ___
115111

116112
#### Defined in
117113

118-
[src/types/algorand-client.ts:24](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L24)
114+
[src/types/algorand-client.ts:23](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L23)
119115

120116
___
121117

@@ -125,7 +121,7 @@ ___
125121

126122
#### Defined in
127123

128-
[src/types/algorand-client.ts:28](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L28)
124+
[src/types/algorand-client.ts:27](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L27)
129125

130126
___
131127

@@ -135,7 +131,7 @@ ___
135131

136132
#### Defined in
137133

138-
[src/types/algorand-client.ts:29](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L29)
134+
[src/types/algorand-client.ts:28](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L28)
139135

140136
___
141137

@@ -145,7 +141,7 @@ ___
145141

146142
#### Defined in
147143

148-
[src/types/algorand-client.ts:30](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L30)
144+
[src/types/algorand-client.ts:29](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L29)
149145

150146
___
151147

@@ -155,7 +151,7 @@ ___
155151

156152
#### Defined in
157153

158-
[src/types/algorand-client.ts:20](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L20)
154+
[src/types/algorand-client.ts:19](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L19)
159155

160156
___
161157

@@ -165,7 +161,7 @@ ___
165161

166162
#### Defined in
167163

168-
[src/types/algorand-client.ts:32](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L32)
164+
[src/types/algorand-client.ts:31](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L31)
169165

170166
___
171167

@@ -175,7 +171,7 @@ ___
175171

176172
#### Defined in
177173

178-
[src/types/algorand-client.ts:26](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L26)
174+
[src/types/algorand-client.ts:25](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L25)
179175

180176
___
181177

@@ -185,7 +181,7 @@ ___
185181

186182
#### Defined in
187183

188-
[src/types/algorand-client.ts:25](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L25)
184+
[src/types/algorand-client.ts:24](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L24)
189185

190186
## Accessors
191187

@@ -201,7 +197,7 @@ Get or create accounts that can sign transactions.
201197

202198
#### Defined in
203199

204-
[src/types/algorand-client.ts:141](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L141)
200+
[src/types/algorand-client.ts:140](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L140)
205201

206202
___
207203

@@ -215,13 +211,9 @@ Methods for interacting with apps.
215211

216212
[`AppManager`](types_app_manager.AppManager.md)
217213

218-
#### Implementation of
219-
220-
[AlgorandClientInterface](../interfaces/types_algorand_client_interface.AlgorandClientInterface.md).[app](../interfaces/types_algorand_client_interface.AlgorandClientInterface.md#app)
221-
222214
#### Defined in
223215

224-
[src/types/algorand-client.ts:151](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L151)
216+
[src/types/algorand-client.ts:150](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L150)
225217

226218
___
227219

@@ -235,13 +227,9 @@ Methods for deploying apps and managing app deployment metadata.
235227

236228
[`AppDeployer`](types_app_deployer.AppDeployer.md)
237229

238-
#### Implementation of
239-
240-
[AlgorandClientInterface](../interfaces/types_algorand_client_interface.AlgorandClientInterface.md).[appDeployer](../interfaces/types_algorand_client_interface.AlgorandClientInterface.md#appdeployer)
241-
242230
#### Defined in
243231

244-
[src/types/algorand-client.ts:156](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L156)
232+
[src/types/algorand-client.ts:155](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L155)
245233

246234
___
247235

@@ -257,7 +245,7 @@ Methods for interacting with assets.
257245

258246
#### Defined in
259247

260-
[src/types/algorand-client.ts:146](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L146)
248+
[src/types/algorand-client.ts:145](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L145)
261249

262250
___
263251

@@ -271,13 +259,9 @@ Get clients, including algosdk clients and app clients.
271259

272260
[`ClientManager`](types_client_manager.ClientManager.md)
273261

274-
#### Implementation of
275-
276-
[AlgorandClientInterface](../interfaces/types_algorand_client_interface.AlgorandClientInterface.md).[client](../interfaces/types_algorand_client_interface.AlgorandClientInterface.md#client)
277-
278262
#### Defined in
279263

280-
[src/types/algorand-client.ts:136](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L136)
264+
[src/types/algorand-client.ts:135](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L135)
281265

282266
___
283267

@@ -291,13 +275,9 @@ Methods for creating a transaction.
291275

292276
[`AlgorandClientTransactionCreator`](types_algorand_client_transaction_creator.AlgorandClientTransactionCreator.md)
293277

294-
#### Implementation of
295-
296-
[AlgorandClientInterface](../interfaces/types_algorand_client_interface.AlgorandClientInterface.md).[createTransaction](../interfaces/types_algorand_client_interface.AlgorandClientInterface.md#createtransaction)
297-
298278
#### Defined in
299279

300-
[src/types/algorand-client.ts:181](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L181)
280+
[src/types/algorand-client.ts:180](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L180)
301281

302282
___
303283

@@ -311,13 +291,9 @@ Methods for sending a transaction.
311291

312292
[`AlgorandClientTransactionSender`](types_algorand_client_transaction_sender.AlgorandClientTransactionSender.md)
313293

314-
#### Implementation of
315-
316-
[AlgorandClientInterface](../interfaces/types_algorand_client_interface.AlgorandClientInterface.md).[send](../interfaces/types_algorand_client_interface.AlgorandClientInterface.md#send)
317-
318294
#### Defined in
319295

320-
[src/types/algorand-client.ts:174](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L174)
296+
[src/types/algorand-client.ts:173](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L173)
321297

322298
## Methods
323299

@@ -333,7 +309,7 @@ Get suggested params for a transaction (either cached or from algod if the cache
333309

334310
#### Defined in
335311

336-
[src/types/algorand-client.ts:120](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L120)
312+
[src/types/algorand-client.ts:119](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L119)
337313

338314
___
339315

@@ -347,13 +323,9 @@ Start a new `TransactionComposer` transaction group
347323

348324
[`TransactionComposer`](types_composer.TransactionComposer.md)
349325

350-
#### Implementation of
351-
352-
[AlgorandClientInterface](../interfaces/types_algorand_client_interface.AlgorandClientInterface.md).[newGroup](../interfaces/types_algorand_client_interface.AlgorandClientInterface.md#newgroup)
353-
354326
#### Defined in
355327

356-
[src/types/algorand-client.ts:161](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L161)
328+
[src/types/algorand-client.ts:160](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L160)
357329

358330
___
359331

@@ -377,7 +349,7 @@ The `AlgorandClient` so method calls can be chained
377349

378350
#### Defined in
379351

380-
[src/types/algorand-client.ts:59](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L59)
352+
[src/types/algorand-client.ts:58](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L58)
381353

382354
___
383355

@@ -401,7 +373,7 @@ The `AlgorandClient` so method calls can be chained
401373

402374
#### Defined in
403375

404-
[src/types/algorand-client.ts:49](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L49)
376+
[src/types/algorand-client.ts:48](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L48)
405377

406378
___
407379

@@ -426,7 +398,7 @@ The `AlgorandClient` so method calls can be chained
426398

427399
#### Defined in
428400

429-
[src/types/algorand-client.ts:92](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L92)
401+
[src/types/algorand-client.ts:91](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L91)
430402

431403
___
432404

@@ -461,7 +433,7 @@ const accountManager = AlgorandClient.mainnet()
461433

462434
#### Defined in
463435

464-
[src/types/algorand-client.ts:79](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L79)
436+
[src/types/algorand-client.ts:78](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L78)
465437

466438
___
467439

@@ -486,7 +458,7 @@ The `AlgorandClient` so method calls can be chained
486458

487459
#### Defined in
488460

489-
[src/types/algorand-client.ts:103](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L103)
461+
[src/types/algorand-client.ts:102](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L102)
490462

491463
___
492464

@@ -510,7 +482,7 @@ The `AlgorandClient` so method calls can be chained
510482

511483
#### Defined in
512484

513-
[src/types/algorand-client.ts:114](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L114)
485+
[src/types/algorand-client.ts:113](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L113)
514486

515487
___
516488

@@ -528,7 +500,7 @@ The `AlgorandClient`
528500

529501
#### Defined in
530502

531-
[src/types/algorand-client.ts:191](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L191)
503+
[src/types/algorand-client.ts:190](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L190)
532504

533505
___
534506

@@ -552,7 +524,7 @@ The `AlgorandClient`
552524

553525
#### Defined in
554526

555-
[src/types/algorand-client.ts:228](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L228)
527+
[src/types/algorand-client.ts:227](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L227)
556528

557529
___
558530

@@ -576,7 +548,7 @@ The `AlgorandClient`
576548

577549
#### Defined in
578550

579-
[src/types/algorand-client.ts:258](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L258)
551+
[src/types/algorand-client.ts:257](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L257)
580552

581553
___
582554

@@ -607,7 +579,7 @@ The `AlgorandClient`
607579

608580
#### Defined in
609581

610-
[src/types/algorand-client.ts:249](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L249)
582+
[src/types/algorand-client.ts:248](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L248)
611583

612584
___
613585

@@ -625,7 +597,7 @@ The `AlgorandClient`
625597

626598
#### Defined in
627599

628-
[src/types/algorand-client.ts:215](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L215)
600+
[src/types/algorand-client.ts:214](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L214)
629601

630602
___
631603

@@ -643,4 +615,4 @@ The `AlgorandClient`
643615

644616
#### Defined in
645617

646-
[src/types/algorand-client.ts:203](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L203)
618+
[src/types/algorand-client.ts:202](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algorand-client.ts#L202)

docs/code/classes/types_app_client.AppClient.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ state for a specific deployed instance of an app (with a known app ID).
104104

105105
### \_algorand
106106

107-
`Private` **\_algorand**: [`AlgorandClientInterface`](../interfaces/types_algorand_client_interface.AlgorandClientInterface.md)
107+
`Private` **\_algorand**: [`AlgorandClientInterface`](../modules/types_algorand_client_interface.md#algorandclientinterface)
108108

109109
#### Defined in
110110

@@ -293,13 +293,13 @@ ___
293293

294294
### algorand
295295

296-
`get` **algorand**(): [`AlgorandClientInterface`](../interfaces/types_algorand_client_interface.AlgorandClientInterface.md)
296+
`get` **algorand**(): [`AlgorandClientInterface`](../modules/types_algorand_client_interface.md#algorandclientinterface)
297297

298298
A reference to the underlying `AlgorandClient` this app client is using.
299299

300300
#### Returns
301301

302-
[`AlgorandClientInterface`](../interfaces/types_algorand_client_interface.AlgorandClientInterface.md)
302+
[`AlgorandClientInterface`](../modules/types_algorand_client_interface.md#algorandclientinterface)
303303

304304
#### Defined in
305305

@@ -1274,7 +1274,7 @@ using AlgoKit app deployment semantics (i.e. looking for the app creation transa
12741274
| Name | Type | Description |
12751275
| :------ | :------ | :------ |
12761276
| `params` | `Object` | The parameters to create the app client |
1277-
| `params.algorand` | [`AlgorandClientInterface`](../interfaces/types_algorand_client_interface.AlgorandClientInterface.md) | An `AlgorandClient` instance |
1277+
| `params.algorand` | [`AlgorandClientInterface`](../modules/types_algorand_client_interface.md#algorandclientinterface) | An `AlgorandClient` instance |
12781278
| `params.appLookupCache?` | [`AppLookup`](../interfaces/types_app_deployer.AppLookup.md) | An optional cached app lookup that matches a name to on-chain details; either this is needed or indexer is required to be passed in to this `ClientManager` on construction. |
12791279
| `params.appName?` | `string` | Optional override for the app name; used for on-chain metadata and lookups. Defaults to the ARC-32/ARC-56 app spec name |
12801280
| `params.appSpec` | `string` \| [`Arc56Contract`](../interfaces/types_app_arc56.Arc56Contract.md) \| [`AppSpec`](../interfaces/types_app_spec.AppSpec.md) | The ARC-56 or ARC-32 application spec as either: * Parsed JSON ARC-56 `Contract` * Parsed JSON ARC-32 `AppSpec` * Raw JSON string (in either ARC-56 or ARC-32 format) |
@@ -1309,7 +1309,7 @@ If no IDs are in the app spec or the network isn't recognised, an error is throw
13091309
| Name | Type | Description |
13101310
| :------ | :------ | :------ |
13111311
| `params` | `Object` | The parameters to create the app client |
1312-
| `params.algorand` | [`AlgorandClientInterface`](../interfaces/types_algorand_client_interface.AlgorandClientInterface.md) | An `AlgorandClient` instance |
1312+
| `params.algorand` | [`AlgorandClientInterface`](../modules/types_algorand_client_interface.md#algorandclientinterface) | An `AlgorandClient` instance |
13131313
| `params.appName?` | `string` | Optional override for the app name; used for on-chain metadata and lookups. Defaults to the ARC-32/ARC-56 app spec name |
13141314
| `params.appSpec` | `string` \| [`Arc56Contract`](../interfaces/types_app_arc56.Arc56Contract.md) \| [`AppSpec`](../interfaces/types_app_spec.AppSpec.md) | The ARC-56 or ARC-32 application spec as either: * Parsed JSON ARC-56 `Contract` * Parsed JSON ARC-32 `AppSpec` * Raw JSON string (in either ARC-56 or ARC-32 format) |
13151315
| `params.approvalSourceMap?` | `ProgramSourceMap` | Optional source map for the approval program |

0 commit comments

Comments
 (0)