@algorandfoundation/algokit-utils 10.0.0-alpha.46 → 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.
@@ -348,8 +348,8 @@ declare class AlgorandClientTransactionCreator {
348
348
  * @returns The application create transaction
349
349
  */
350
350
  appCreate: (params: {
351
- signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
352
351
  sender: SendingAddress;
352
+ signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
353
353
  rekeyTo?: ReadableAddress | undefined;
354
354
  note?: (Uint8Array | string) | undefined;
355
355
  lease?: (Uint8Array | string) | undefined;
@@ -568,9 +568,9 @@ declare class AlgorandClientTransactionCreator {
568
568
  * @returns The application ABI method create transaction
569
569
  */
570
570
  appCreateMethodCall: (params: {
571
- signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
572
571
  appId?: 0 | undefined;
573
572
  sender: SendingAddress;
573
+ signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
574
574
  rekeyTo?: ReadableAddress | undefined;
575
575
  note?: (Uint8Array | string) | undefined;
576
576
  lease?: (Uint8Array | string) | undefined;
@@ -649,9 +649,9 @@ declare class AlgorandClientTransactionCreator {
649
649
  * @returns The application ABI method update transaction
650
650
  */
651
651
  appUpdateMethodCall: (params: {
652
- signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
653
652
  appId: bigint;
654
653
  sender: SendingAddress;
654
+ signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
655
655
  rekeyTo?: ReadableAddress | undefined;
656
656
  note?: (Uint8Array | string) | undefined;
657
657
  lease?: (Uint8Array | string) | undefined;
@@ -721,9 +721,9 @@ declare class AlgorandClientTransactionCreator {
721
721
  * @returns The application ABI method delete transaction
722
722
  */
723
723
  appDeleteMethodCall: (params: {
724
- signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
725
724
  appId: bigint;
726
725
  sender: SendingAddress;
726
+ signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
727
727
  rekeyTo?: ReadableAddress | undefined;
728
728
  note?: (Uint8Array | string) | undefined;
729
729
  lease?: (Uint8Array | string) | undefined;
@@ -791,9 +791,9 @@ declare class AlgorandClientTransactionCreator {
791
791
  * @returns The application ABI method call transaction
792
792
  */
793
793
  appCallMethodCall: (params: {
794
- signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
795
794
  appId: bigint;
796
795
  sender: SendingAddress;
796
+ signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
797
797
  rekeyTo?: ReadableAddress | undefined;
798
798
  note?: (Uint8Array | string) | undefined;
799
799
  lease?: (Uint8Array | string) | undefined;
@@ -472,8 +472,8 @@ declare class AlgorandClientTransactionSender {
472
472
  * @returns The result of the app create transaction and the transaction that was sent
473
473
  */
474
474
  appCreate: (params: {
475
- signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
476
475
  sender: SendingAddress;
476
+ signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
477
477
  rekeyTo?: ReadableAddress | undefined;
478
478
  note?: (Uint8Array | string) | undefined;
479
479
  lease?: (Uint8Array | string) | undefined;
@@ -745,9 +745,9 @@ declare class AlgorandClientTransactionSender {
745
745
  * @returns The result of the application ABI method create transaction and the transaction that was sent
746
746
  */
747
747
  appCreateMethodCall: (params: {
748
- signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
749
748
  appId?: 0 | undefined;
750
749
  sender: SendingAddress;
750
+ signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
751
751
  rekeyTo?: ReadableAddress | undefined;
752
752
  note?: (Uint8Array | string) | undefined;
753
753
  lease?: (Uint8Array | string) | undefined;
@@ -833,9 +833,9 @@ declare class AlgorandClientTransactionSender {
833
833
  * @returns The result of the application ABI method update transaction and the transaction that was sent
834
834
  */
835
835
  appUpdateMethodCall: (params: {
836
- signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
837
836
  appId: bigint;
838
837
  sender: SendingAddress;
838
+ signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
839
839
  rekeyTo?: ReadableAddress | undefined;
840
840
  note?: (Uint8Array | string) | undefined;
841
841
  lease?: (Uint8Array | string) | undefined;
@@ -912,9 +912,9 @@ declare class AlgorandClientTransactionSender {
912
912
  * @returns The result of the application ABI method delete transaction and the transaction that was sent
913
913
  */
914
914
  appDeleteMethodCall: (params: {
915
- signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
916
915
  appId: bigint;
917
916
  sender: SendingAddress;
917
+ signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
918
918
  rekeyTo?: ReadableAddress | undefined;
919
919
  note?: (Uint8Array | string) | undefined;
920
920
  lease?: (Uint8Array | string) | undefined;
@@ -989,9 +989,9 @@ declare class AlgorandClientTransactionSender {
989
989
  * @returns The result of the application ABI method call transaction and the transaction that was sent
990
990
  */
991
991
  appCallMethodCall: (params: {
992
- signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
993
992
  appId: bigint;
994
993
  sender: SendingAddress;
994
+ signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
995
995
  rekeyTo?: ReadableAddress | undefined;
996
996
  note?: (Uint8Array | string) | undefined;
997
997
  lease?: (Uint8Array | string) | undefined;
package/app-client.d.ts CHANGED
@@ -441,9 +441,9 @@ declare class AppClient {
441
441
  signer: AddressWithTransactionSigner | TransactionSigner | undefined;
442
442
  method: ABIMethod;
443
443
  onComplete: OnApplicationComplete.UpdateApplication;
444
- args: (Transaction | TransactionWithSigner | ABIValue | AppMethodCall<{
445
- signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
444
+ args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
446
445
  sender: SendingAddress;
446
+ signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
447
447
  rekeyTo?: ReadableAddress | undefined;
448
448
  note?: (Uint8Array | string) | undefined;
449
449
  lease?: (Uint8Array | string) | undefined;
@@ -494,7 +494,7 @@ declare class AppClient {
494
494
  rejectVersion?: number | undefined;
495
495
  approvalProgram: string | Uint8Array;
496
496
  clearStateProgram: string | Uint8Array;
497
- }> | AppMethodCall<AppMethodCallParams> | Promise<Transaction> | undefined)[] | undefined;
497
+ }> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
498
498
  }>;
499
499
  /**
500
500
  * Return params for an opt-in ABI call
@@ -502,9 +502,9 @@ declare class AppClient {
502
502
  * @returns The parameters which can be used to create an opt-in ABI method call
503
503
  */
504
504
  optIn: (params: AppClientMethodCallParams) => Promise<{
505
- signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
506
505
  appId: bigint;
507
506
  sender: SendingAddress;
507
+ signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
508
508
  rekeyTo?: ReadableAddress | undefined;
509
509
  note?: (Uint8Array | string) | undefined;
510
510
  lease?: (Uint8Array | string) | undefined;
@@ -530,9 +530,9 @@ declare class AppClient {
530
530
  * @returns The parameters which can be used to create a delete ABI method call
531
531
  */
532
532
  delete: (params: AppClientMethodCallParams) => Promise<{
533
- signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
534
533
  appId: bigint;
535
534
  sender: SendingAddress;
535
+ signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
536
536
  rekeyTo?: ReadableAddress | undefined;
537
537
  note?: (Uint8Array | string) | undefined;
538
538
  lease?: (Uint8Array | string) | undefined;
@@ -557,9 +557,9 @@ declare class AppClient {
557
557
  * @returns The parameters which can be used to create a close out ABI method call
558
558
  */
559
559
  closeOut: (params: AppClientMethodCallParams) => Promise<{
560
- signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
561
560
  appId: bigint;
562
561
  sender: SendingAddress;
562
+ signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
563
563
  rekeyTo?: ReadableAddress | undefined;
564
564
  note?: (Uint8Array | string) | undefined;
565
565
  lease?: (Uint8Array | string) | undefined;
@@ -584,9 +584,9 @@ declare class AppClient {
584
584
  * @returns The parameters which can be used to create an ABI method call
585
585
  */
586
586
  call: (params: AppClientMethodCallParams & CallOnComplete) => Promise<{
587
- signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
588
587
  appId: bigint;
589
588
  sender: SendingAddress;
589
+ signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
590
590
  rekeyTo?: ReadableAddress | undefined;
591
591
  note?: (Uint8Array | string) | undefined;
592
592
  lease?: (Uint8Array | string) | undefined;
package/app-factory.d.ts CHANGED
@@ -197,9 +197,9 @@ declare class AppFactory {
197
197
  sender: Address;
198
198
  signer: AddressWithTransactionSigner | TransactionSigner | undefined;
199
199
  method: ABIMethod;
200
- args: (Transaction | TransactionWithSigner | ABIValue | AppMethodCall<{
201
- signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
200
+ args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
202
201
  sender: SendingAddress;
202
+ signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
203
203
  rekeyTo?: ReadableAddress | undefined;
204
204
  note?: (Uint8Array | string) | undefined;
205
205
  lease?: (Uint8Array | string) | undefined;
@@ -250,7 +250,7 @@ declare class AppFactory {
250
250
  rejectVersion?: number | undefined;
251
251
  approvalProgram: string | Uint8Array;
252
252
  clearStateProgram: string | Uint8Array;
253
- }> | AppMethodCall<AppMethodCallParams> | Promise<Transaction> | undefined)[] | undefined;
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 */
256
256
  deployUpdate: (params: AppClientMethodCallParams) => {
@@ -278,9 +278,9 @@ declare class AppFactory {
278
278
  sender: Address;
279
279
  signer: AddressWithTransactionSigner | TransactionSigner | undefined;
280
280
  method: ABIMethod;
281
- args: (Transaction | TransactionWithSigner | ABIValue | AppMethodCall<{
282
- signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
281
+ args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
283
282
  sender: SendingAddress;
283
+ signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
284
284
  rekeyTo?: ReadableAddress | undefined;
285
285
  note?: (Uint8Array | string) | undefined;
286
286
  lease?: (Uint8Array | string) | undefined;
@@ -331,7 +331,7 @@ declare class AppFactory {
331
331
  rejectVersion?: number | undefined;
332
332
  approvalProgram: string | Uint8Array;
333
333
  clearStateProgram: string | Uint8Array;
334
- }> | AppMethodCall<AppMethodCallParams> | Promise<Transaction> | undefined)[] | undefined;
334
+ }> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
335
335
  onComplete: OnApplicationComplete.UpdateApplication;
336
336
  }; /** Return params for a deployment delete ABI call */
337
337
  deployDelete: (params: AppClientMethodCallParams) => {
@@ -359,9 +359,9 @@ declare class AppFactory {
359
359
  sender: Address;
360
360
  signer: AddressWithTransactionSigner | TransactionSigner | undefined;
361
361
  method: ABIMethod;
362
- args: (Transaction | TransactionWithSigner | ABIValue | AppMethodCall<{
363
- signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
362
+ args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
364
363
  sender: SendingAddress;
364
+ signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
365
365
  rekeyTo?: ReadableAddress | undefined;
366
366
  note?: (Uint8Array | string) | undefined;
367
367
  lease?: (Uint8Array | string) | undefined;
@@ -412,7 +412,7 @@ declare class AppFactory {
412
412
  rejectVersion?: number | undefined;
413
413
  approvalProgram: string | Uint8Array;
414
414
  clearStateProgram: string | Uint8Array;
415
- }> | AppMethodCall<AppMethodCallParams> | Promise<Transaction> | undefined)[] | undefined;
415
+ }> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
416
416
  onComplete: OnApplicationComplete.DeleteApplication;
417
417
  };
418
418
  bare: {
@@ -628,9 +628,9 @@ declare class AppFactory {
628
628
  compiledApproval?: CompiledTeal | undefined;
629
629
  compiledClear?: CompiledTeal | undefined;
630
630
  operationPerformed: "create";
631
- version: string;
632
631
  updatable?: boolean | undefined;
633
632
  deletable?: boolean | undefined;
633
+ version: string;
634
634
  createdRound: bigint;
635
635
  updatedRound: bigint;
636
636
  createdMetadata: AppDeployMetadata;
@@ -674,9 +674,9 @@ declare class AppFactory {
674
674
  compiledApproval?: CompiledTeal | undefined;
675
675
  compiledClear?: CompiledTeal | undefined;
676
676
  operationPerformed: "replace";
677
- version: string;
678
677
  updatable?: boolean | undefined;
679
678
  deletable?: boolean | undefined;
679
+ version: string;
680
680
  createdRound: bigint;
681
681
  updatedRound: bigint;
682
682
  createdMetadata: AppDeployMetadata;
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "**"
7
7
  ],
8
8
  "name": "@algorandfoundation/algokit-utils",
9
- "version": "10.0.0-alpha.46",
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",
@@ -16,7 +16,7 @@
16
16
  "url": "https://github.com/algorandfoundation/algokit-utils-ts.git"
17
17
  },
18
18
  "engines": {
19
- "node": ">=20.0"
19
+ "node": ">=24.0"
20
20
  },
21
21
  "type": "commonjs",
22
22
  "module": "index.mjs",