@algorandfoundation/algokit-utils 7.0.0-beta.8 → 7.0.0-beta.9

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/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "**"
7
7
  ],
8
8
  "name": "@algorandfoundation/algokit-utils",
9
- "version": "7.0.0-beta.8",
9
+ "version": "7.0.0-beta.9",
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",
@@ -1,7 +1,8 @@
1
1
  import algosdk from 'algosdk';
2
+ import { TransactionSignerAccount } from './account';
2
3
  import { AlgorandClientInterface } from './algorand-client-interface';
3
4
  import { AlgoAmount } from './amount';
4
- import { ABIAppCallArgs, ABIReturn, AppCallArgs, AppCallTransactionResult, AppCallType, AppCompilationResult, AppMetadata, AppReference, AppReturn, AppState, AppStorageSchema, BoxName, CompiledTeal, AppLookup as LegacyAppLookup, OnSchemaBreak, OnUpdate, RawAppCallArgs, SendAppTransactionResult, TealTemplateParams } from './app';
5
+ import { ABIAppCallArgs, ABIReturn, AppCallArgs, AppCallTransactionResult, AppCallType, AppCompilationResult, AppMetadata, AppReference, AppReturn, AppState, AppStorageSchema, BoxName, AppLookup as LegacyAppLookup, OnSchemaBreak, OnUpdate, RawAppCallArgs, SendAppTransactionResult, TealTemplateParams } from './app';
5
6
  import { ABIStruct, Arc56Contract, Arc56Method } from './app-arc56';
6
7
  import { AppLookup } from './app-deployer';
7
8
  import { AppManager, BoxIdentifier } from './app-manager';
@@ -18,6 +19,7 @@ import Indexer = algosdk.Indexer;
18
19
  import OnApplicationComplete = algosdk.OnApplicationComplete;
19
20
  import SourceMap = algosdk.SourceMap;
20
21
  import SuggestedParams = algosdk.SuggestedParams;
22
+ import TransactionSigner = algosdk.TransactionSigner;
21
23
  /** Configuration to resolve app by creator and name `getCreatorAppsByName` */
22
24
  export type ResolveAppByCreatorAndNameBase = {
23
25
  /** The address of the app creator account to resolve the app by */
@@ -178,16 +180,14 @@ export interface SourceMapExport {
178
180
  }
179
181
  /**
180
182
  * The result of asking an `AppClient` to compile a program.
183
+ *
184
+ * Always contains the compiled bytecode, and may contain the result of compiling TEAL (including sourcemap) if it was available.
181
185
  */
182
- export interface AppClientCompilationResult {
186
+ export interface AppClientCompilationResult extends Partial<AppCompilationResult> {
183
187
  /** The compiled bytecode of the approval program, ready to deploy to algod */
184
188
  approvalProgram: Uint8Array;
185
189
  /** The compiled bytecode of the clear state program, ready to deploy to algod */
186
190
  clearStateProgram: Uint8Array;
187
- /** The result of compilation of the approval program, including source map, if TEAL code was compiled */
188
- approvalProgramCompilationResult?: CompiledTeal;
189
- /** The result of compilation of the clear state program, including source map, if TEAL code was compiled */
190
- clearStateProgramCompilationResult?: CompiledTeal;
191
191
  }
192
192
  /** Parameters to create an app client */
193
193
  export interface AppClientParams {
@@ -208,6 +208,8 @@ export interface AppClientParams {
208
208
  appName?: string;
209
209
  /** Optional address to use for the account to use as the default sender for calls. */
210
210
  defaultSender?: string;
211
+ /** Optional signer to use as the default signer for default sender calls (if not specified then the signer will be resolved from `AlgorandClient`). */
212
+ defaultSigner?: TransactionSigner;
211
213
  /** Optional source map for the approval program */
212
214
  approvalSourceMap?: SourceMap;
213
215
  /** Optional source map for the clear state program */
@@ -271,6 +273,7 @@ export declare class AppClient {
271
273
  private _appSpec;
272
274
  private _algorand;
273
275
  private _defaultSender?;
276
+ private _defaultSigner?;
274
277
  private _approvalSourceMap;
275
278
  private _clearSourceMap;
276
279
  private _localStateMethods;
@@ -311,6 +314,8 @@ export declare class AppClient {
311
314
  get appName(): string;
312
315
  /** The ARC-56 app spec being used */
313
316
  get appSpec(): Arc56Contract;
317
+ /** A reference to the underlying `AlgorandClient` this app client is using. */
318
+ get algorand(): AlgorandClientInterface;
314
319
  /** Get parameters to create transactions for the current app.
315
320
  *
316
321
  * A good mental model for this is that these parameters represent a deferred transaction creation.
@@ -334,7 +339,7 @@ export declare class AppClient {
334
339
  amount: AlgoAmount;
335
340
  closeRemainderTo?: string | undefined;
336
341
  maxFee?: AlgoAmount | undefined;
337
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
342
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
338
343
  rekeyTo?: string | undefined;
339
344
  staticFee?: AlgoAmount | undefined;
340
345
  extraFee?: AlgoAmount | undefined;
@@ -347,13 +352,13 @@ export declare class AppClient {
347
352
  sender?: string | undefined;
348
353
  }) => {
349
354
  sender: string;
355
+ signer: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
350
356
  receiver: string;
351
357
  lease?: string | Uint8Array | undefined;
352
358
  note?: string | Uint8Array | undefined;
353
359
  amount: AlgoAmount;
354
360
  closeRemainderTo?: string | undefined;
355
361
  maxFee?: AlgoAmount | undefined;
356
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
357
362
  rekeyTo?: string | undefined;
358
363
  staticFee?: AlgoAmount | undefined;
359
364
  extraFee?: AlgoAmount | undefined;
@@ -369,7 +374,7 @@ export declare class AppClient {
369
374
  lease?: string | Uint8Array | undefined;
370
375
  note?: string | Uint8Array | undefined;
371
376
  maxFee?: AlgoAmount | undefined;
372
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
377
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
373
378
  rekeyTo?: string | undefined;
374
379
  staticFee?: AlgoAmount | undefined;
375
380
  extraFee?: AlgoAmount | undefined;
@@ -389,14 +394,12 @@ export declare class AppClient {
389
394
  approvalProgram: Uint8Array;
390
395
  /** The compiled bytecode of the clear state program, ready to deploy to algod */
391
396
  clearStateProgram: Uint8Array;
392
- /** The result of compilation of the approval program, including source map, if TEAL code was compiled */
393
- approvalProgramCompilationResult?: CompiledTeal | undefined;
394
- /** The result of compilation of the clear state program, including source map, if TEAL code was compiled */
395
- clearStateProgramCompilationResult?: CompiledTeal | undefined;
397
+ compiledApproval?: import("./app").CompiledTeal | undefined;
398
+ compiledClear?: import("./app").CompiledTeal | undefined;
396
399
  lease?: string | Uint8Array | undefined;
397
400
  note?: string | Uint8Array | undefined;
398
401
  maxFee?: AlgoAmount | undefined;
399
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
402
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
400
403
  rekeyTo?: string | undefined;
401
404
  staticFee?: AlgoAmount | undefined;
402
405
  extraFee?: AlgoAmount | undefined;
@@ -420,6 +423,7 @@ export declare class AppClient {
420
423
  } & {
421
424
  appId: bigint;
422
425
  sender: string;
426
+ signer: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
423
427
  method: Arc56Method;
424
428
  onComplete: algosdk.OnApplicationComplete.UpdateApplicationOC;
425
429
  args: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | AppMethodCall<{
@@ -427,7 +431,7 @@ export declare class AppClient {
427
431
  note?: string | Uint8Array | undefined;
428
432
  maxFee?: AlgoAmount | undefined;
429
433
  args?: Uint8Array[] | undefined;
430
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
434
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
431
435
  sender: string;
432
436
  rekeyTo?: string | undefined;
433
437
  staticFee?: AlgoAmount | undefined;
@@ -451,7 +455,7 @@ export declare class AppClient {
451
455
  extraProgramPages?: number | undefined;
452
456
  }> | AppMethodCall<{
453
457
  sender: string;
454
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
458
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
455
459
  rekeyTo?: string | undefined;
456
460
  note?: string | Uint8Array | undefined;
457
461
  lease?: string | Uint8Array | undefined;
@@ -477,7 +481,7 @@ export declare class AppClient {
477
481
  lease?: string | Uint8Array | undefined;
478
482
  note?: string | Uint8Array | undefined;
479
483
  maxFee?: AlgoAmount | undefined;
480
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
484
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
481
485
  rekeyTo?: string | undefined;
482
486
  staticFee?: AlgoAmount | undefined;
483
487
  extraFee?: AlgoAmount | undefined;
@@ -498,7 +502,7 @@ export declare class AppClient {
498
502
  lease?: string | Uint8Array | undefined;
499
503
  note?: string | Uint8Array | undefined;
500
504
  maxFee?: AlgoAmount | undefined;
501
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
505
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
502
506
  rekeyTo?: string | undefined;
503
507
  staticFee?: AlgoAmount | undefined;
504
508
  extraFee?: AlgoAmount | undefined;
@@ -519,7 +523,7 @@ export declare class AppClient {
519
523
  lease?: string | Uint8Array | undefined;
520
524
  note?: string | Uint8Array | undefined;
521
525
  maxFee?: AlgoAmount | undefined;
522
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
526
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
523
527
  rekeyTo?: string | undefined;
524
528
  staticFee?: AlgoAmount | undefined;
525
529
  extraFee?: AlgoAmount | undefined;
@@ -540,7 +544,7 @@ export declare class AppClient {
540
544
  lease?: string | Uint8Array | undefined;
541
545
  note?: string | Uint8Array | undefined;
542
546
  maxFee?: AlgoAmount | undefined;
543
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
547
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
544
548
  rekeyTo?: string | undefined;
545
549
  staticFee?: AlgoAmount | undefined;
546
550
  extraFee?: AlgoAmount | undefined;
@@ -564,7 +568,7 @@ export declare class AppClient {
564
568
  note?: string | Uint8Array | undefined;
565
569
  maxFee?: AlgoAmount | undefined;
566
570
  args?: Uint8Array[] | undefined;
567
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
571
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
568
572
  rekeyTo?: string | undefined;
569
573
  staticFee?: AlgoAmount | undefined;
570
574
  extraFee?: AlgoAmount | undefined;
@@ -578,7 +582,7 @@ export declare class AppClient {
578
582
  sender?: string | undefined;
579
583
  } & AppClientCompilationParams) | undefined) => Promise<{
580
584
  sender: string;
581
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
585
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
582
586
  rekeyTo?: string | undefined;
583
587
  note?: string | Uint8Array | undefined;
584
588
  lease?: string | Uint8Array | undefined;
@@ -604,7 +608,7 @@ export declare class AppClient {
604
608
  note?: string | Uint8Array | undefined;
605
609
  maxFee?: AlgoAmount | undefined;
606
610
  args?: Uint8Array[] | undefined;
607
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
611
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
608
612
  rekeyTo?: string | undefined;
609
613
  staticFee?: AlgoAmount | undefined;
610
614
  extraFee?: AlgoAmount | undefined;
@@ -623,7 +627,7 @@ export declare class AppClient {
623
627
  note?: string | Uint8Array | undefined;
624
628
  maxFee?: AlgoAmount | undefined;
625
629
  args?: Uint8Array[] | undefined;
626
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
630
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
627
631
  rekeyTo?: string | undefined;
628
632
  staticFee?: AlgoAmount | undefined;
629
633
  extraFee?: AlgoAmount | undefined;
@@ -642,7 +646,7 @@ export declare class AppClient {
642
646
  note?: string | Uint8Array | undefined;
643
647
  maxFee?: AlgoAmount | undefined;
644
648
  args?: Uint8Array[] | undefined;
645
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
649
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
646
650
  rekeyTo?: string | undefined;
647
651
  staticFee?: AlgoAmount | undefined;
648
652
  extraFee?: AlgoAmount | undefined;
@@ -661,7 +665,7 @@ export declare class AppClient {
661
665
  note?: string | Uint8Array | undefined;
662
666
  maxFee?: AlgoAmount | undefined;
663
667
  args?: Uint8Array[] | undefined;
664
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
668
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
665
669
  rekeyTo?: string | undefined;
666
670
  staticFee?: AlgoAmount | undefined;
667
671
  extraFee?: AlgoAmount | undefined;
@@ -680,7 +684,7 @@ export declare class AppClient {
680
684
  note?: string | Uint8Array | undefined;
681
685
  maxFee?: AlgoAmount | undefined;
682
686
  args?: Uint8Array[] | undefined;
683
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
687
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
684
688
  rekeyTo?: string | undefined;
685
689
  staticFee?: AlgoAmount | undefined;
686
690
  extraFee?: AlgoAmount | undefined;
@@ -704,7 +708,7 @@ export declare class AppClient {
704
708
  amount: AlgoAmount;
705
709
  closeRemainderTo?: string | undefined;
706
710
  maxFee?: AlgoAmount | undefined;
707
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
711
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
708
712
  rekeyTo?: string | undefined;
709
713
  staticFee?: AlgoAmount | undefined;
710
714
  extraFee?: AlgoAmount | undefined;
@@ -723,7 +727,7 @@ export declare class AppClient {
723
727
  lease?: string | Uint8Array | undefined;
724
728
  note?: string | Uint8Array | undefined;
725
729
  maxFee?: AlgoAmount | undefined;
726
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
730
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
727
731
  rekeyTo?: string | undefined;
728
732
  staticFee?: AlgoAmount | undefined;
729
733
  extraFee?: AlgoAmount | undefined;
@@ -750,7 +754,7 @@ export declare class AppClient {
750
754
  lease?: string | Uint8Array | undefined;
751
755
  note?: string | Uint8Array | undefined;
752
756
  maxFee?: AlgoAmount | undefined;
753
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
757
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
754
758
  rekeyTo?: string | undefined;
755
759
  staticFee?: AlgoAmount | undefined;
756
760
  extraFee?: AlgoAmount | undefined;
@@ -777,7 +781,7 @@ export declare class AppClient {
777
781
  lease?: string | Uint8Array | undefined;
778
782
  note?: string | Uint8Array | undefined;
779
783
  maxFee?: AlgoAmount | undefined;
780
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
784
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
781
785
  rekeyTo?: string | undefined;
782
786
  staticFee?: AlgoAmount | undefined;
783
787
  extraFee?: AlgoAmount | undefined;
@@ -804,7 +808,7 @@ export declare class AppClient {
804
808
  lease?: string | Uint8Array | undefined;
805
809
  note?: string | Uint8Array | undefined;
806
810
  maxFee?: AlgoAmount | undefined;
807
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
811
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
808
812
  rekeyTo?: string | undefined;
809
813
  staticFee?: AlgoAmount | undefined;
810
814
  extraFee?: AlgoAmount | undefined;
@@ -831,7 +835,7 @@ export declare class AppClient {
831
835
  lease?: string | Uint8Array | undefined;
832
836
  note?: string | Uint8Array | undefined;
833
837
  maxFee?: AlgoAmount | undefined;
834
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
838
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
835
839
  rekeyTo?: string | undefined;
836
840
  staticFee?: AlgoAmount | undefined;
837
841
  extraFee?: AlgoAmount | undefined;
@@ -859,7 +863,7 @@ export declare class AppClient {
859
863
  note?: string | Uint8Array | undefined;
860
864
  maxFee?: AlgoAmount | undefined;
861
865
  args?: Uint8Array[] | undefined;
862
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
866
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
863
867
  rekeyTo?: string | undefined;
864
868
  staticFee?: AlgoAmount | undefined;
865
869
  extraFee?: AlgoAmount | undefined;
@@ -878,7 +882,7 @@ export declare class AppClient {
878
882
  note?: string | Uint8Array | undefined;
879
883
  maxFee?: AlgoAmount | undefined;
880
884
  args?: Uint8Array[] | undefined;
881
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
885
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
882
886
  rekeyTo?: string | undefined;
883
887
  staticFee?: AlgoAmount | undefined;
884
888
  extraFee?: AlgoAmount | undefined;
@@ -897,7 +901,7 @@ export declare class AppClient {
897
901
  note?: string | Uint8Array | undefined;
898
902
  maxFee?: AlgoAmount | undefined;
899
903
  args?: Uint8Array[] | undefined;
900
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
904
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
901
905
  rekeyTo?: string | undefined;
902
906
  staticFee?: AlgoAmount | undefined;
903
907
  extraFee?: AlgoAmount | undefined;
@@ -916,7 +920,7 @@ export declare class AppClient {
916
920
  note?: string | Uint8Array | undefined;
917
921
  maxFee?: AlgoAmount | undefined;
918
922
  args?: Uint8Array[] | undefined;
919
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
923
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
920
924
  rekeyTo?: string | undefined;
921
925
  staticFee?: AlgoAmount | undefined;
922
926
  extraFee?: AlgoAmount | undefined;
@@ -935,7 +939,7 @@ export declare class AppClient {
935
939
  note?: string | Uint8Array | undefined;
936
940
  maxFee?: AlgoAmount | undefined;
937
941
  args?: Uint8Array[] | undefined;
938
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
942
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
939
943
  rekeyTo?: string | undefined;
940
944
  staticFee?: AlgoAmount | undefined;
941
945
  extraFee?: AlgoAmount | undefined;
@@ -954,7 +958,7 @@ export declare class AppClient {
954
958
  note?: string | Uint8Array | undefined;
955
959
  maxFee?: AlgoAmount | undefined;
956
960
  args?: Uint8Array[] | undefined;
957
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
961
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
958
962
  rekeyTo?: string | undefined;
959
963
  staticFee?: AlgoAmount | undefined;
960
964
  extraFee?: AlgoAmount | undefined;
@@ -978,7 +982,7 @@ export declare class AppClient {
978
982
  amount: AlgoAmount;
979
983
  closeRemainderTo?: string | undefined;
980
984
  maxFee?: AlgoAmount | undefined;
981
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
985
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
982
986
  rekeyTo?: string | undefined;
983
987
  staticFee?: AlgoAmount | undefined;
984
988
  extraFee?: AlgoAmount | undefined;
@@ -1005,7 +1009,7 @@ export declare class AppClient {
1005
1009
  lease?: string | Uint8Array | undefined;
1006
1010
  note?: string | Uint8Array | undefined;
1007
1011
  maxFee?: AlgoAmount | undefined;
1008
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1012
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
1009
1013
  rekeyTo?: string | undefined;
1010
1014
  staticFee?: AlgoAmount | undefined;
1011
1015
  extraFee?: AlgoAmount | undefined;
@@ -1021,8 +1025,8 @@ export declare class AppClient {
1021
1025
  method: string;
1022
1026
  args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
1023
1027
  } & AppClientCompilationParams & SendParams) => Promise<{
1024
- compiledApproval?: CompiledTeal | undefined;
1025
- compiledClear?: CompiledTeal | undefined;
1028
+ compiledApproval?: import("./app").CompiledTeal | undefined;
1029
+ compiledClear?: import("./app").CompiledTeal | undefined;
1026
1030
  groupId: string;
1027
1031
  txIds: string[];
1028
1032
  returns?: ABIReturn[] | undefined;
@@ -1039,7 +1043,7 @@ export declare class AppClient {
1039
1043
  lease?: string | Uint8Array | undefined;
1040
1044
  note?: string | Uint8Array | undefined;
1041
1045
  maxFee?: AlgoAmount | undefined;
1042
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1046
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
1043
1047
  rekeyTo?: string | undefined;
1044
1048
  staticFee?: AlgoAmount | undefined;
1045
1049
  extraFee?: AlgoAmount | undefined;
@@ -1071,7 +1075,7 @@ export declare class AppClient {
1071
1075
  lease?: string | Uint8Array | undefined;
1072
1076
  note?: string | Uint8Array | undefined;
1073
1077
  maxFee?: AlgoAmount | undefined;
1074
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1078
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
1075
1079
  rekeyTo?: string | undefined;
1076
1080
  staticFee?: AlgoAmount | undefined;
1077
1081
  extraFee?: AlgoAmount | undefined;
@@ -1103,7 +1107,7 @@ export declare class AppClient {
1103
1107
  lease?: string | Uint8Array | undefined;
1104
1108
  note?: string | Uint8Array | undefined;
1105
1109
  maxFee?: AlgoAmount | undefined;
1106
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1110
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
1107
1111
  rekeyTo?: string | undefined;
1108
1112
  staticFee?: AlgoAmount | undefined;
1109
1113
  extraFee?: AlgoAmount | undefined;
@@ -1135,7 +1139,7 @@ export declare class AppClient {
1135
1139
  lease?: string | Uint8Array | undefined;
1136
1140
  note?: string | Uint8Array | undefined;
1137
1141
  maxFee?: AlgoAmount | undefined;
1138
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1142
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
1139
1143
  rekeyTo?: string | undefined;
1140
1144
  staticFee?: AlgoAmount | undefined;
1141
1145
  extraFee?: AlgoAmount | undefined;
@@ -1168,7 +1172,7 @@ export declare class AppClient {
1168
1172
  note?: string | Uint8Array | undefined;
1169
1173
  maxFee?: AlgoAmount | undefined;
1170
1174
  args?: Uint8Array[] | undefined;
1171
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1175
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
1172
1176
  rekeyTo?: string | undefined;
1173
1177
  staticFee?: AlgoAmount | undefined;
1174
1178
  extraFee?: AlgoAmount | undefined;
@@ -1181,8 +1185,8 @@ export declare class AppClient {
1181
1185
  boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
1182
1186
  sender?: string | undefined;
1183
1187
  } & AppClientCompilationParams & SendParams) | undefined) => Promise<{
1184
- compiledApproval?: CompiledTeal | undefined;
1185
- compiledClear?: CompiledTeal | undefined;
1188
+ compiledApproval?: import("./app").CompiledTeal | undefined;
1189
+ compiledClear?: import("./app").CompiledTeal | undefined;
1186
1190
  groupId: string;
1187
1191
  txIds: string[];
1188
1192
  returns?: ABIReturn[] | undefined;
@@ -1198,7 +1202,7 @@ export declare class AppClient {
1198
1202
  note?: string | Uint8Array | undefined;
1199
1203
  maxFee?: AlgoAmount | undefined;
1200
1204
  args?: Uint8Array[] | undefined;
1201
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1205
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
1202
1206
  rekeyTo?: string | undefined;
1203
1207
  staticFee?: AlgoAmount | undefined;
1204
1208
  extraFee?: AlgoAmount | undefined;
@@ -1226,7 +1230,7 @@ export declare class AppClient {
1226
1230
  note?: string | Uint8Array | undefined;
1227
1231
  maxFee?: AlgoAmount | undefined;
1228
1232
  args?: Uint8Array[] | undefined;
1229
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1233
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
1230
1234
  rekeyTo?: string | undefined;
1231
1235
  staticFee?: AlgoAmount | undefined;
1232
1236
  extraFee?: AlgoAmount | undefined;
@@ -1254,7 +1258,7 @@ export declare class AppClient {
1254
1258
  note?: string | Uint8Array | undefined;
1255
1259
  maxFee?: AlgoAmount | undefined;
1256
1260
  args?: Uint8Array[] | undefined;
1257
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1261
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
1258
1262
  rekeyTo?: string | undefined;
1259
1263
  staticFee?: AlgoAmount | undefined;
1260
1264
  extraFee?: AlgoAmount | undefined;
@@ -1282,7 +1286,7 @@ export declare class AppClient {
1282
1286
  note?: string | Uint8Array | undefined;
1283
1287
  maxFee?: AlgoAmount | undefined;
1284
1288
  args?: Uint8Array[] | undefined;
1285
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1289
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
1286
1290
  rekeyTo?: string | undefined;
1287
1291
  staticFee?: AlgoAmount | undefined;
1288
1292
  extraFee?: AlgoAmount | undefined;
@@ -1310,7 +1314,7 @@ export declare class AppClient {
1310
1314
  note?: string | Uint8Array | undefined;
1311
1315
  maxFee?: AlgoAmount | undefined;
1312
1316
  args?: Uint8Array[] | undefined;
1313
- signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1317
+ signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
1314
1318
  rekeyTo?: string | undefined;
1315
1319
  staticFee?: AlgoAmount | undefined;
1316
1320
  extraFee?: AlgoAmount | undefined;
@@ -1587,9 +1591,13 @@ export declare class AppClient {
1587
1591
  private getMethodCallParamsMethods;
1588
1592
  private getMethodCallSendMethods;
1589
1593
  private getMethodCallCreateTransactionMethods;
1590
- /** Returns the sender for a call, using the `defaultSender`
1594
+ /** Returns the sender for a call, using the provided sender or using the `defaultSender`
1591
1595
  * if none provided and throws an error if neither provided */
1592
1596
  private getSender;
1597
+ /** Returns the signer for a call, using the provided signer or the `defaultSigner`
1598
+ * if no signer was provided and the call will use default sender
1599
+ * or `undefined` otherwise (so the signer is resolved from `AlgorandClient`) */
1600
+ private getSigner;
1593
1601
  private getBareParams;
1594
1602
  private getABIParams;
1595
1603
  /** Make the given call and catch any errors, augmenting with debugging information before re-throwing. */
@@ -1637,8 +1645,8 @@ export declare class ApplicationClient {
1637
1645
  * @returns The compiled approval and clear state programs
1638
1646
  */
1639
1647
  compile(compilation?: AppClientCompilationParams): Promise<{
1640
- approvalCompiled: CompiledTeal;
1641
- clearCompiled: CompiledTeal;
1648
+ approvalCompiled: import("./app").CompiledTeal;
1649
+ clearCompiled: import("./app").CompiledTeal;
1642
1650
  }>;
1643
1651
  /**
1644
1652
  * Export the current source maps for the app.
@@ -1666,8 +1674,8 @@ export declare class ApplicationClient {
1666
1674
  deploy(deploy?: AppClientDeployParams): Promise<(Partial<AppCompilationResult> & AppMetadata & {
1667
1675
  operationPerformed: "nothing";
1668
1676
  }) | {
1669
- compiledApproval: CompiledTeal;
1670
- compiledClear: CompiledTeal;
1677
+ compiledApproval: import("./app").CompiledTeal;
1678
+ compiledClear: import("./app").CompiledTeal;
1671
1679
  confirmation: algosdk.modelsv2.PendingTransactionResponse;
1672
1680
  confirmations: algosdk.modelsv2.PendingTransactionResponse[];
1673
1681
  transaction: algosdk.Transaction;
@@ -1675,7 +1683,7 @@ export declare class ApplicationClient {
1675
1683
  createdRound: number;
1676
1684
  updatedRound: number;
1677
1685
  createdMetadata: import("./app").AppDeployMetadata;
1678
- deleted: boolean; /** Any overrides for the storage schema to request for the created app; by default the schema indicated by the app spec is used. */
1686
+ deleted: boolean;
1679
1687
  appId: number | bigint;
1680
1688
  appAddress: string;
1681
1689
  name: string;
@@ -1685,8 +1693,8 @@ export declare class ApplicationClient {
1685
1693
  return?: ABIReturn | undefined;
1686
1694
  operationPerformed: "update" | "create";
1687
1695
  } | {
1688
- compiledApproval: CompiledTeal;
1689
- compiledClear: CompiledTeal;
1696
+ compiledApproval: import("./app").CompiledTeal;
1697
+ compiledClear: import("./app").CompiledTeal;
1690
1698
  confirmation: algosdk.modelsv2.PendingTransactionResponse;
1691
1699
  confirmations: algosdk.modelsv2.PendingTransactionResponse[];
1692
1700
  transaction: algosdk.Transaction;
@@ -1694,16 +1702,16 @@ export declare class ApplicationClient {
1694
1702
  createdRound: number;
1695
1703
  updatedRound: number;
1696
1704
  createdMetadata: import("./app").AppDeployMetadata;
1697
- deleted: boolean; /** Any overrides for the storage schema to request for the created app; by default the schema indicated by the app spec is used. */
1705
+ deleted: boolean;
1698
1706
  appId: number | bigint;
1699
1707
  appAddress: string;
1700
1708
  name: string;
1701
1709
  version: string;
1702
1710
  deletable?: boolean | undefined;
1703
1711
  updatable?: boolean | undefined;
1704
- return?: ABIReturn | undefined; /** The optional name override to resolve the app by within the creator account (default: uses the name in the ABI contract) */
1712
+ return?: ABIReturn | undefined;
1705
1713
  deleteReturn?: ABIReturn | undefined;
1706
- deleteResult: import("./transaction").ConfirmedTransactionResult;
1714
+ deleteResult: import("./transaction").ConfirmedTransactionResult; /** The optional name override to resolve the app by within the creator account (default: uses the name in the ABI contract) */
1707
1715
  operationPerformed: "replace";
1708
1716
  }>;
1709
1717
  /**
@@ -1714,8 +1722,8 @@ export declare class ApplicationClient {
1714
1722
  * @returns The details of the created app, or the transaction to create it if `skipSending` and the compilation result
1715
1723
  */
1716
1724
  create(create?: AppClientCreateParams): Promise<{
1717
- compiledApproval: CompiledTeal;
1718
- compiledClear: CompiledTeal;
1725
+ compiledApproval: import("./app").CompiledTeal;
1726
+ compiledClear: import("./app").CompiledTeal;
1719
1727
  return?: ABIReturn | undefined;
1720
1728
  transactions: algosdk.Transaction[];
1721
1729
  confirmations?: algosdk.modelsv2.PendingTransactionResponse[] | undefined;
@@ -1732,8 +1740,8 @@ export declare class ApplicationClient {
1732
1740
  * @returns The transaction send result and the compilation result
1733
1741
  */
1734
1742
  update(update?: AppClientUpdateParams): Promise<{
1735
- compiledApproval: CompiledTeal;
1736
- compiledClear: CompiledTeal;
1743
+ compiledApproval: import("./app").CompiledTeal;
1744
+ compiledClear: import("./app").CompiledTeal;
1737
1745
  return?: ABIReturn | undefined;
1738
1746
  transactions: algosdk.Transaction[];
1739
1747
  confirmations?: algosdk.modelsv2.PendingTransactionResponse[] | undefined;