@algorandfoundation/algokit-utils 10.0.0-alpha.47 → 10.0.0-alpha.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -359,8 +359,8 @@ declare class AlgorandClientTransactionCreator {
359
359
  validityWindow?: number | bigint | undefined;
360
360
  firstValidRound?: bigint | undefined;
361
361
  lastValidRound?: bigint | undefined;
362
- args?: Uint8Array[] | undefined;
363
362
  onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
363
+ args?: Uint8Array[] | undefined;
364
364
  accountReferences?: ReadableAddress[] | undefined;
365
365
  appReferences?: bigint[] | undefined;
366
366
  assetReferences?: bigint[] | undefined;
@@ -483,8 +483,8 @@ declare class AlgorandClientTransactionSender {
483
483
  validityWindow?: number | bigint | undefined;
484
484
  firstValidRound?: bigint | undefined;
485
485
  lastValidRound?: bigint | undefined;
486
- args?: Uint8Array[] | undefined;
487
486
  onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
487
+ args?: Uint8Array[] | undefined;
488
488
  accountReferences?: ReadableAddress[] | undefined;
489
489
  appReferences?: bigint[] | undefined;
490
490
  assetReferences?: bigint[] | undefined;
package/app-client.d.ts CHANGED
@@ -441,7 +441,7 @@ declare class AppClient {
441
441
  signer: AddressWithTransactionSigner | TransactionSigner | undefined;
442
442
  method: ABIMethod;
443
443
  onComplete: OnApplicationComplete.UpdateApplication;
444
- args: (ABIValue | TransactionWithSigner | Transaction | AppMethodCall<{
444
+ args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
445
445
  sender: SendingAddress;
446
446
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
447
447
  rekeyTo?: ReadableAddress | undefined;
@@ -453,8 +453,7 @@ declare class AppClient {
453
453
  validityWindow?: number | bigint | undefined;
454
454
  firstValidRound?: bigint | undefined;
455
455
  lastValidRound?: bigint | undefined;
456
- appId: bigint;
457
- onComplete?: OnApplicationComplete.UpdateApplication | undefined;
456
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
458
457
  args?: Uint8Array[] | undefined;
459
458
  accountReferences?: ReadableAddress[] | undefined;
460
459
  appReferences?: bigint[] | undefined;
@@ -462,9 +461,17 @@ declare class AppClient {
462
461
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
463
462
  accessReferences?: ResourceReference[] | undefined;
464
463
  rejectVersion?: number | undefined;
464
+ appId?: 0 | undefined;
465
465
  approvalProgram: string | Uint8Array;
466
466
  clearStateProgram: string | Uint8Array;
467
- }> | Promise<Transaction> | AppMethodCall<{
467
+ schema?: {
468
+ globalInts: number;
469
+ globalByteSlices: number;
470
+ localInts: number;
471
+ localByteSlices: number;
472
+ } | undefined;
473
+ extraProgramPages?: number | undefined;
474
+ }> | AppMethodCall<{
468
475
  sender: SendingAddress;
469
476
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
470
477
  rekeyTo?: ReadableAddress | undefined;
@@ -476,24 +483,17 @@ declare class AppClient {
476
483
  validityWindow?: number | bigint | undefined;
477
484
  firstValidRound?: bigint | undefined;
478
485
  lastValidRound?: bigint | undefined;
486
+ appId: bigint;
487
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
479
488
  args?: Uint8Array[] | undefined;
480
- onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
481
489
  accountReferences?: ReadableAddress[] | undefined;
482
490
  appReferences?: bigint[] | undefined;
483
491
  assetReferences?: bigint[] | undefined;
484
492
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
485
493
  accessReferences?: ResourceReference[] | undefined;
486
494
  rejectVersion?: number | undefined;
487
- appId?: 0 | undefined;
488
495
  approvalProgram: string | Uint8Array;
489
496
  clearStateProgram: string | Uint8Array;
490
- schema?: {
491
- globalInts: number;
492
- globalByteSlices: number;
493
- localInts: number;
494
- localByteSlices: number;
495
- } | undefined;
496
- extraProgramPages?: number | undefined;
497
497
  }> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
498
498
  }>;
499
499
  /**
@@ -692,8 +692,8 @@ declare class AppClient {
692
692
  update: (params: AppClientMethodCallParams & AppClientCompilationParams & SendParams) => Promise<{
693
693
  compiledApproval?: CompiledTeal | undefined;
694
694
  compiledClear?: CompiledTeal | undefined;
695
- transactions: Transaction[];
696
695
  confirmations: PendingTransactionResponse[];
696
+ transactions: Transaction[];
697
697
  groupId: string | undefined;
698
698
  txIds: string[];
699
699
  returns?: ABIReturn[] | undefined;
package/app-factory.d.ts CHANGED
@@ -197,7 +197,7 @@ declare class AppFactory {
197
197
  sender: Address;
198
198
  signer: AddressWithTransactionSigner | TransactionSigner | undefined;
199
199
  method: ABIMethod;
200
- args: (ABIValue | TransactionWithSigner | Transaction | AppMethodCall<{
200
+ args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
201
201
  sender: SendingAddress;
202
202
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
203
203
  rekeyTo?: ReadableAddress | undefined;
@@ -209,8 +209,7 @@ declare class AppFactory {
209
209
  validityWindow?: number | bigint | undefined;
210
210
  firstValidRound?: bigint | undefined;
211
211
  lastValidRound?: bigint | undefined;
212
- appId: bigint;
213
- onComplete?: OnApplicationComplete.UpdateApplication | undefined;
212
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
214
213
  args?: Uint8Array[] | undefined;
215
214
  accountReferences?: ReadableAddress[] | undefined;
216
215
  appReferences?: bigint[] | undefined;
@@ -218,9 +217,17 @@ declare class AppFactory {
218
217
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
219
218
  accessReferences?: ResourceReference[] | undefined;
220
219
  rejectVersion?: number | undefined;
220
+ appId?: 0 | undefined;
221
221
  approvalProgram: string | Uint8Array;
222
222
  clearStateProgram: string | Uint8Array;
223
- }> | Promise<Transaction> | AppMethodCall<{
223
+ schema?: {
224
+ globalInts: number;
225
+ globalByteSlices: number;
226
+ localInts: number;
227
+ localByteSlices: number;
228
+ } | undefined;
229
+ extraProgramPages?: number | undefined;
230
+ }> | AppMethodCall<{
224
231
  sender: SendingAddress;
225
232
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
226
233
  rekeyTo?: ReadableAddress | undefined;
@@ -232,24 +239,17 @@ declare class AppFactory {
232
239
  validityWindow?: number | bigint | undefined;
233
240
  firstValidRound?: bigint | undefined;
234
241
  lastValidRound?: bigint | undefined;
242
+ appId: bigint;
243
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
235
244
  args?: Uint8Array[] | undefined;
236
- onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
237
245
  accountReferences?: ReadableAddress[] | undefined;
238
246
  appReferences?: bigint[] | undefined;
239
247
  assetReferences?: bigint[] | undefined;
240
248
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
241
249
  accessReferences?: ResourceReference[] | undefined;
242
250
  rejectVersion?: number | undefined;
243
- appId?: 0 | undefined;
244
251
  approvalProgram: string | Uint8Array;
245
252
  clearStateProgram: string | Uint8Array;
246
- schema?: {
247
- globalInts: number;
248
- globalByteSlices: number;
249
- localInts: number;
250
- localByteSlices: number;
251
- } | undefined;
252
- extraProgramPages?: number | undefined;
253
253
  }> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
254
254
  onComplete: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication;
255
255
  }>; /** Return params for a deployment update ABI call */
@@ -278,7 +278,7 @@ declare class AppFactory {
278
278
  sender: Address;
279
279
  signer: AddressWithTransactionSigner | TransactionSigner | undefined;
280
280
  method: ABIMethod;
281
- args: (ABIValue | TransactionWithSigner | Transaction | AppMethodCall<{
281
+ args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
282
282
  sender: SendingAddress;
283
283
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
284
284
  rekeyTo?: ReadableAddress | undefined;
@@ -290,8 +290,7 @@ declare class AppFactory {
290
290
  validityWindow?: number | bigint | undefined;
291
291
  firstValidRound?: bigint | undefined;
292
292
  lastValidRound?: bigint | undefined;
293
- appId: bigint;
294
- onComplete?: OnApplicationComplete.UpdateApplication | undefined;
293
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
295
294
  args?: Uint8Array[] | undefined;
296
295
  accountReferences?: ReadableAddress[] | undefined;
297
296
  appReferences?: bigint[] | undefined;
@@ -299,9 +298,17 @@ declare class AppFactory {
299
298
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
300
299
  accessReferences?: ResourceReference[] | undefined;
301
300
  rejectVersion?: number | undefined;
301
+ appId?: 0 | undefined;
302
302
  approvalProgram: string | Uint8Array;
303
303
  clearStateProgram: string | Uint8Array;
304
- }> | Promise<Transaction> | AppMethodCall<{
304
+ schema?: {
305
+ globalInts: number;
306
+ globalByteSlices: number;
307
+ localInts: number;
308
+ localByteSlices: number;
309
+ } | undefined;
310
+ extraProgramPages?: number | undefined;
311
+ }> | AppMethodCall<{
305
312
  sender: SendingAddress;
306
313
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
307
314
  rekeyTo?: ReadableAddress | undefined;
@@ -313,24 +320,17 @@ declare class AppFactory {
313
320
  validityWindow?: number | bigint | undefined;
314
321
  firstValidRound?: bigint | undefined;
315
322
  lastValidRound?: bigint | undefined;
323
+ appId: bigint;
324
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
316
325
  args?: Uint8Array[] | undefined;
317
- onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
318
326
  accountReferences?: ReadableAddress[] | undefined;
319
327
  appReferences?: bigint[] | undefined;
320
328
  assetReferences?: bigint[] | undefined;
321
329
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
322
330
  accessReferences?: ResourceReference[] | undefined;
323
331
  rejectVersion?: number | undefined;
324
- appId?: 0 | undefined;
325
332
  approvalProgram: string | Uint8Array;
326
333
  clearStateProgram: string | Uint8Array;
327
- schema?: {
328
- globalInts: number;
329
- globalByteSlices: number;
330
- localInts: number;
331
- localByteSlices: number;
332
- } | undefined;
333
- extraProgramPages?: number | undefined;
334
334
  }> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
335
335
  onComplete: OnApplicationComplete.UpdateApplication;
336
336
  }; /** Return params for a deployment delete ABI call */
@@ -359,7 +359,7 @@ declare class AppFactory {
359
359
  sender: Address;
360
360
  signer: AddressWithTransactionSigner | TransactionSigner | undefined;
361
361
  method: ABIMethod;
362
- args: (ABIValue | TransactionWithSigner | Transaction | AppMethodCall<{
362
+ args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
363
363
  sender: SendingAddress;
364
364
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
365
365
  rekeyTo?: ReadableAddress | undefined;
@@ -371,8 +371,7 @@ declare class AppFactory {
371
371
  validityWindow?: number | bigint | undefined;
372
372
  firstValidRound?: bigint | undefined;
373
373
  lastValidRound?: bigint | undefined;
374
- appId: bigint;
375
- onComplete?: OnApplicationComplete.UpdateApplication | undefined;
374
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
376
375
  args?: Uint8Array[] | undefined;
377
376
  accountReferences?: ReadableAddress[] | undefined;
378
377
  appReferences?: bigint[] | undefined;
@@ -380,9 +379,17 @@ declare class AppFactory {
380
379
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
381
380
  accessReferences?: ResourceReference[] | undefined;
382
381
  rejectVersion?: number | undefined;
382
+ appId?: 0 | undefined;
383
383
  approvalProgram: string | Uint8Array;
384
384
  clearStateProgram: string | Uint8Array;
385
- }> | Promise<Transaction> | AppMethodCall<{
385
+ schema?: {
386
+ globalInts: number;
387
+ globalByteSlices: number;
388
+ localInts: number;
389
+ localByteSlices: number;
390
+ } | undefined;
391
+ extraProgramPages?: number | undefined;
392
+ }> | AppMethodCall<{
386
393
  sender: SendingAddress;
387
394
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
388
395
  rekeyTo?: ReadableAddress | undefined;
@@ -394,24 +401,17 @@ declare class AppFactory {
394
401
  validityWindow?: number | bigint | undefined;
395
402
  firstValidRound?: bigint | undefined;
396
403
  lastValidRound?: bigint | undefined;
404
+ appId: bigint;
405
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
397
406
  args?: Uint8Array[] | undefined;
398
- onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
399
407
  accountReferences?: ReadableAddress[] | undefined;
400
408
  appReferences?: bigint[] | undefined;
401
409
  assetReferences?: bigint[] | undefined;
402
410
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
403
411
  accessReferences?: ResourceReference[] | undefined;
404
412
  rejectVersion?: number | undefined;
405
- appId?: 0 | undefined;
406
413
  approvalProgram: string | Uint8Array;
407
414
  clearStateProgram: string | Uint8Array;
408
- schema?: {
409
- globalInts: number;
410
- globalByteSlices: number;
411
- localInts: number;
412
- localByteSlices: number;
413
- } | undefined;
414
- extraProgramPages?: number | undefined;
415
415
  }> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
416
416
  onComplete: OnApplicationComplete.DeleteApplication;
417
417
  };
@@ -630,12 +630,12 @@ declare class AppFactory {
630
630
  operationPerformed: "create";
631
631
  updatable?: boolean | undefined;
632
632
  deletable?: boolean | undefined;
633
+ version: string;
633
634
  createdRound: bigint;
634
635
  updatedRound: bigint;
635
636
  createdMetadata: AppDeployMetadata;
636
637
  deleted: boolean;
637
638
  name: string;
638
- version: string;
639
639
  groupId: string | undefined;
640
640
  txIds: string[];
641
641
  returns?: ABIReturn[] | undefined;
@@ -676,12 +676,12 @@ declare class AppFactory {
676
676
  operationPerformed: "replace";
677
677
  updatable?: boolean | undefined;
678
678
  deletable?: boolean | undefined;
679
+ version: string;
679
680
  createdRound: bigint;
680
681
  updatedRound: bigint;
681
682
  createdMetadata: AppDeployMetadata;
682
683
  deleted: boolean;
683
684
  name: string;
684
- version: string;
685
685
  groupId: string | undefined;
686
686
  txIds: string[];
687
687
  returns?: ABIReturn[] | undefined;
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "**"
7
7
  ],
8
8
  "name": "@algorandfoundation/algokit-utils",
9
- "version": "10.0.0-alpha.47",
9
+ "version": "10.0.0-alpha.48",
10
10
  "private": false,
11
11
  "description": "A set of core Algorand utilities written in TypeScript and released via npm that make it easier to build solutions on Algorand.",
12
12
  "author": "Algorand Foundation",