@algorandfoundation/algokit-utils 9.2.1-beta.1 → 9.2.1-beta.2

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.
package/app.d.ts CHANGED
@@ -160,7 +160,7 @@ declare function getAppArgsForABICall(args: ABIAppCallArgs, from: SendTransactio
160
160
  appForeignApps: number[] | undefined;
161
161
  appForeignAssets: number[] | undefined;
162
162
  appAccounts: string[] | undefined;
163
- methodArgs: (string | number | bigint | boolean | algosdk.Address | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | algosdk.TransactionWithSigner)[];
163
+ methodArgs: (string | number | bigint | boolean | algosdk.TransactionWithSigner | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | algosdk.Address)[];
164
164
  rekeyTo: string | undefined;
165
165
  }>;
166
166
  /**
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "**"
7
7
  ],
8
8
  "name": "@algorandfoundation/algokit-utils",
9
- "version": "9.2.1-beta.1",
9
+ "version": "9.2.1-beta.2",
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",
@@ -42,9 +42,9 @@
42
42
  "overrides": {
43
43
  "esbuild": "0.25.0",
44
44
  "cross-spawn": ">=7.0.5",
45
- "brace-expansion": ">=5.0.8",
45
+ "brace-expansion": ">=5.0.9",
46
46
  "picomatch": ">=4.0.2",
47
- "fast-uri": "3.1.4",
47
+ "fast-uri": ">=3.1.5",
48
48
  "postcss": ">=8.5.23"
49
49
  },
50
50
  "dependencies": {
@@ -25,7 +25,7 @@ interface EnsureFundedResult {
25
25
  * const signer = getAccountTransactionSigner(account)
26
26
  * ```
27
27
  */
28
- declare const getAccountTransactionSigner: (val: TransactionSignerAccount | algosdk.Account | SigningAccount | algosdk.LogicSigAccount | MultisigAccount) => algosdk.TransactionSigner;
28
+ declare const getAccountTransactionSigner: (val: MultisigAccount | SigningAccount | TransactionSignerAccount | algosdk.Account | algosdk.LogicSigAccount) => algosdk.TransactionSigner;
29
29
  /** Creates and keeps track of signing accounts that can sign transactions for a sending address. */
30
30
  declare class AccountManager {
31
31
  private _clientManager;
@@ -337,8 +337,8 @@ declare class AlgorandClientTransactionCreator {
337
337
  * @returns The application create transaction
338
338
  */
339
339
  appCreate: (params: {
340
- signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
341
340
  sender: string | algosdk.Address;
341
+ signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
342
342
  rekeyTo?: (string | algosdk.Address) | undefined;
343
343
  note?: (Uint8Array | string) | undefined;
344
344
  lease?: (Uint8Array | string) | undefined;
@@ -467,8 +467,8 @@ declare class AlgorandClientTransactionSender {
467
467
  * @returns The result of the app create transaction and the transaction that was sent
468
468
  */
469
469
  appCreate: (params: {
470
- signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
471
470
  sender: string | Address;
471
+ signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
472
472
  rekeyTo?: (string | Address) | undefined;
473
473
  note?: (Uint8Array | string) | undefined;
474
474
  lease?: (Uint8Array | string) | undefined;
@@ -739,8 +739,8 @@ declare class AlgorandClientTransactionSender {
739
739
  * @returns The result of the application ABI method create transaction and the transaction that was sent
740
740
  */
741
741
  appCreateMethodCall: (params: {
742
- signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
743
742
  sender: string | Address;
743
+ signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
744
744
  rekeyTo?: (string | Address) | undefined;
745
745
  note?: (Uint8Array | string) | undefined;
746
746
  lease?: (Uint8Array | string) | undefined;
@@ -827,9 +827,9 @@ declare class AlgorandClientTransactionSender {
827
827
  * @returns The result of the application ABI method update transaction and the transaction that was sent
828
828
  */
829
829
  appUpdateMethodCall: (params: {
830
- signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
831
830
  appId: bigint;
832
831
  sender: string | Address;
832
+ signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
833
833
  rekeyTo?: (string | Address) | undefined;
834
834
  note?: (Uint8Array | string) | undefined;
835
835
  lease?: (Uint8Array | string) | undefined;
@@ -907,9 +907,9 @@ declare class AlgorandClientTransactionSender {
907
907
  * @returns The result of the application ABI method delete transaction and the transaction that was sent
908
908
  */
909
909
  appDeleteMethodCall: (params: {
910
- signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
911
910
  appId: bigint;
912
911
  sender: string | Address;
912
+ signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
913
913
  rekeyTo?: (string | Address) | undefined;
914
914
  note?: (Uint8Array | string) | undefined;
915
915
  lease?: (Uint8Array | string) | undefined;
@@ -985,9 +985,9 @@ declare class AlgorandClientTransactionSender {
985
985
  * @returns The result of the application ABI method call transaction and the transaction that was sent
986
986
  */
987
987
  appCallMethodCall: (params: {
988
- signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
989
988
  appId: bigint;
990
989
  sender: string | Address;
990
+ signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
991
991
  rekeyTo?: (string | Address) | undefined;
992
992
  note?: (Uint8Array | string) | undefined;
993
993
  lease?: (Uint8Array | string) | undefined;
@@ -362,7 +362,7 @@ declare class AppClient {
362
362
  */
363
363
  fundAppAccount: (params: FundAppParams) => {
364
364
  sender: algosdk.Address;
365
- signer: TransactionSignerAccount | algosdk.TransactionSigner | undefined;
365
+ signer: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
366
366
  receiver: algosdk.Address;
367
367
  rekeyTo?: (string | Address) | undefined;
368
368
  note?: (Uint8Array | string) | undefined;
@@ -416,12 +416,12 @@ declare class AppClient {
416
416
  } & {
417
417
  appId: bigint;
418
418
  sender: algosdk.Address;
419
- signer: TransactionSignerAccount | algosdk.TransactionSigner | undefined;
419
+ signer: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
420
420
  method: Arc56Method;
421
421
  onComplete: algosdk.OnApplicationComplete.UpdateApplicationOC;
422
- args: (algosdk.Transaction | Promise<algosdk.Transaction> | algosdk.ABIValue | algosdk.TransactionWithSigner | AppMethodCall<{
423
- signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
422
+ args: (algosdk.TransactionWithSigner | algosdk.ABIValue | algosdk.Transaction | Promise<algosdk.Transaction> | AppMethodCall<{
424
423
  sender: string | Address;
424
+ signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
425
425
  rekeyTo?: (string | Address) | undefined;
426
426
  note?: (Uint8Array | string) | undefined;
427
427
  lease?: (Uint8Array | string) | undefined;
@@ -588,7 +588,7 @@ declare class AppClient {
588
588
  transactions: algosdk.Transaction[];
589
589
  confirmation: algosdk.modelsv2.PendingTransactionResponse;
590
590
  transaction: algosdk.Transaction;
591
- return?: Uint8Array<ArrayBufferLike> | algosdk.ABIValue | ABIStruct | undefined;
591
+ return?: algosdk.ABIValue | Uint8Array<ArrayBufferLike> | ABIStruct | undefined;
592
592
  }>;
593
593
  /**
594
594
  * Sign and send transactions for an opt-in ABI call
@@ -604,7 +604,7 @@ declare class AppClient {
604
604
  confirmation: algosdk.modelsv2.PendingTransactionResponse;
605
605
  transaction: algosdk.Transaction;
606
606
  return?: ABIReturn | undefined;
607
- }, "return"> & AppReturn<Uint8Array<ArrayBufferLike> | algosdk.ABIValue | ABIStruct | undefined>>;
607
+ }, "return"> & AppReturn<algosdk.ABIValue | Uint8Array<ArrayBufferLike> | ABIStruct | undefined>>;
608
608
  /**
609
609
  * Sign and send transactions for a delete ABI call
610
610
  * @param params The parameters for the delete ABI method call
@@ -619,7 +619,7 @@ declare class AppClient {
619
619
  confirmation: algosdk.modelsv2.PendingTransactionResponse;
620
620
  transaction: algosdk.Transaction;
621
621
  return?: ABIReturn | undefined;
622
- }, "return"> & AppReturn<Uint8Array<ArrayBufferLike> | algosdk.ABIValue | ABIStruct | undefined>>;
622
+ }, "return"> & AppReturn<algosdk.ABIValue | Uint8Array<ArrayBufferLike> | ABIStruct | undefined>>;
623
623
  /**
624
624
  * Sign and send transactions for a close out ABI call
625
625
  * @param params The parameters for the close out ABI method call
@@ -634,7 +634,7 @@ declare class AppClient {
634
634
  confirmation: algosdk.modelsv2.PendingTransactionResponse;
635
635
  transaction: algosdk.Transaction;
636
636
  return?: ABIReturn | undefined;
637
- }, "return"> & AppReturn<Uint8Array<ArrayBufferLike> | algosdk.ABIValue | ABIStruct | undefined>>;
637
+ }, "return"> & AppReturn<algosdk.ABIValue | Uint8Array<ArrayBufferLike> | ABIStruct | undefined>>;
638
638
  /**
639
639
  * Sign and send transactions for a call (defaults to no-op)
640
640
  * @param params The parameters for the ABI method call
@@ -649,7 +649,7 @@ declare class AppClient {
649
649
  confirmation: algosdk.modelsv2.PendingTransactionResponse;
650
650
  transaction: algosdk.Transaction;
651
651
  return?: ABIReturn | undefined;
652
- }, "return"> & AppReturn<Uint8Array<ArrayBufferLike> | algosdk.ABIValue | ABIStruct | undefined>>;
652
+ }, "return"> & AppReturn<algosdk.ABIValue | Uint8Array<ArrayBufferLike> | ABIStruct | undefined>>;
653
653
  } & {
654
654
  /** Interact with bare (raw) calls */bare: ReturnType<AppClient["getBareSendMethods"]>;
655
655
  };
@@ -188,11 +188,11 @@ declare class AppFactory {
188
188
  extraProgramPages?: number | undefined;
189
189
  } & {
190
190
  sender: algosdk.Address;
191
- signer: TransactionSignerAccount | algosdk.TransactionSigner | undefined;
191
+ signer: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
192
192
  method: Arc56Method;
193
- args: (algosdk.Transaction | Promise<algosdk.Transaction> | algosdk.ABIValue | algosdk.TransactionWithSigner | AppMethodCall<{
194
- signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
193
+ args: (algosdk.TransactionWithSigner | algosdk.ABIValue | algosdk.Transaction | Promise<algosdk.Transaction> | AppMethodCall<{
195
194
  sender: string | Address;
195
+ signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
196
196
  rekeyTo?: (string | Address) | undefined;
197
197
  note?: (Uint8Array | string) | undefined;
198
198
  lease?: (Uint8Array | string) | undefined;
@@ -268,11 +268,11 @@ declare class AppFactory {
268
268
  args?: (ABIValue | ABIStruct | AppMethodCallTransactionArgument | undefined)[] | undefined;
269
269
  } & {
270
270
  sender: algosdk.Address;
271
- signer: TransactionSignerAccount | algosdk.TransactionSigner | undefined;
271
+ signer: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
272
272
  method: Arc56Method;
273
- args: (algosdk.Transaction | Promise<algosdk.Transaction> | algosdk.ABIValue | algosdk.TransactionWithSigner | AppMethodCall<{
274
- signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
273
+ args: (algosdk.TransactionWithSigner | algosdk.ABIValue | algosdk.Transaction | Promise<algosdk.Transaction> | AppMethodCall<{
275
274
  sender: string | Address;
275
+ signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
276
276
  rekeyTo?: (string | Address) | undefined;
277
277
  note?: (Uint8Array | string) | undefined;
278
278
  lease?: (Uint8Array | string) | undefined;
@@ -348,11 +348,11 @@ declare class AppFactory {
348
348
  args?: (ABIValue | ABIStruct | AppMethodCallTransactionArgument | undefined)[] | undefined;
349
349
  } & {
350
350
  sender: algosdk.Address;
351
- signer: TransactionSignerAccount | algosdk.TransactionSigner | undefined;
351
+ signer: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
352
352
  method: Arc56Method;
353
- args: (algosdk.Transaction | Promise<algosdk.Transaction> | algosdk.ABIValue | algosdk.TransactionWithSigner | AppMethodCall<{
354
- signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
353
+ args: (algosdk.TransactionWithSigner | algosdk.ABIValue | algosdk.Transaction | Promise<algosdk.Transaction> | AppMethodCall<{
355
354
  sender: string | Address;
355
+ signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
356
356
  rekeyTo?: (string | Address) | undefined;
357
357
  note?: (Uint8Array | string) | undefined;
358
358
  lease?: (Uint8Array | string) | undefined;
@@ -442,7 +442,7 @@ declare class AppFactory {
442
442
  extraProgramPages?: number;
443
443
  } & {
444
444
  sender: algosdk.Address;
445
- signer: TransactionSignerAccount | algosdk.TransactionSigner | undefined;
445
+ signer: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
446
446
  onComplete: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC;
447
447
  }>; /** Return params for a deployment update bare call */
448
448
  deployUpdate: (params?: AppClientBareCallParams) => {
@@ -466,7 +466,7 @@ declare class AppFactory {
466
466
  sender?: (Address | string) | undefined;
467
467
  } & {
468
468
  sender: algosdk.Address;
469
- signer: TransactionSignerAccount | algosdk.TransactionSigner | undefined;
469
+ signer: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
470
470
  onComplete: algosdk.OnApplicationComplete.UpdateApplicationOC;
471
471
  }; /** Return params for a deployment delete bare call */
472
472
  deployDelete: (params?: AppClientBareCallParams) => {
@@ -490,7 +490,7 @@ declare class AppFactory {
490
490
  sender?: (Address | string) | undefined;
491
491
  } & {
492
492
  sender: algosdk.Address;
493
- signer: TransactionSignerAccount | algosdk.TransactionSigner | undefined;
493
+ signer: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
494
494
  onComplete: algosdk.OnApplicationComplete.DeleteApplicationOC;
495
495
  };
496
496
  };
@@ -571,7 +571,7 @@ declare class AppFactory {
571
571
  confirmation: algosdk.modelsv2.PendingTransactionResponse;
572
572
  transaction: algosdk.Transaction;
573
573
  appAddress: Address;
574
- return?: Uint8Array<ArrayBufferLike> | algosdk.ABIValue | ABIStruct | undefined;
574
+ return?: algosdk.ABIValue | Uint8Array<ArrayBufferLike> | ABIStruct | undefined;
575
575
  };
576
576
  }>;
577
577
  };
@@ -614,8 +614,8 @@ declare class AppFactory {
614
614
  deploy(params: AppFactoryDeployParams): Promise<{
615
615
  appClient: AppClient;
616
616
  result: {
617
- return: string | number | bigint | boolean | algosdk.Address | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | ABIStruct | undefined;
618
- deleteReturn: string | number | bigint | boolean | algosdk.Address | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | ABIStruct | undefined;
617
+ return: algosdk.ABIValue | ABIStruct | undefined;
618
+ deleteReturn: algosdk.ABIValue | ABIStruct | undefined;
619
619
  compiledApproval?: CompiledTeal | undefined;
620
620
  compiledClear?: CompiledTeal | undefined;
621
621
  operationPerformed: "create";
@@ -637,8 +637,8 @@ declare class AppFactory {
637
637
  appId: bigint;
638
638
  appAddress: Address;
639
639
  } | {
640
- return: string | number | bigint | boolean | algosdk.Address | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | ABIStruct | undefined;
641
- deleteReturn: string | number | bigint | boolean | algosdk.Address | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | ABIStruct | undefined;
640
+ return: algosdk.ABIValue | ABIStruct | undefined;
641
+ deleteReturn: algosdk.ABIValue | ABIStruct | undefined;
642
642
  compiledApproval?: CompiledTeal | undefined;
643
643
  compiledClear?: CompiledTeal | undefined;
644
644
  operationPerformed: "update";
@@ -660,8 +660,8 @@ declare class AppFactory {
660
660
  confirmation: algosdk.modelsv2.PendingTransactionResponse;
661
661
  transaction: algosdk.Transaction;
662
662
  } | {
663
- return: string | number | bigint | boolean | algosdk.Address | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | ABIStruct | undefined;
664
- deleteReturn: string | number | bigint | boolean | algosdk.Address | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | ABIStruct | undefined;
663
+ return: algosdk.ABIValue | ABIStruct | undefined;
664
+ deleteReturn: algosdk.ABIValue | ABIStruct | undefined;
665
665
  compiledApproval?: CompiledTeal | undefined;
666
666
  compiledClear?: CompiledTeal | undefined;
667
667
  operationPerformed: "replace";
@@ -684,8 +684,8 @@ declare class AppFactory {
684
684
  appAddress: Address;
685
685
  deleteResult: ConfirmedTransactionResult;
686
686
  } | {
687
- return: string | number | bigint | boolean | algosdk.Address | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | ABIStruct | undefined;
688
- deleteReturn: string | number | bigint | boolean | algosdk.Address | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | ABIStruct | undefined;
687
+ return: algosdk.ABIValue | ABIStruct | undefined;
688
+ deleteReturn: algosdk.ABIValue | ABIStruct | undefined;
689
689
  compiledApproval?: CompiledTeal | undefined;
690
690
  compiledClear?: CompiledTeal | undefined;
691
691
  operationPerformed: "nothing";