@algorandfoundation/algokit-utils 10.0.0-alpha.42 → 10.0.0-alpha.44
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/algorand-client-transaction-creator.d.ts +10 -10
- package/algorand-client-transaction-sender.d.ts +10 -10
- package/app-client.d.ts +14 -14
- package/app-factory.d.ts +20 -20
- package/composer.js +4 -4
- package/composer.js.map +1 -1
- package/composer.mjs +4 -4
- package/composer.mjs.map +1 -1
- package/package.json +1 -1
- package/packages/crypto/src/index.js +5 -5
- package/packages/crypto/src/index.js.map +1 -1
- package/packages/crypto/src/index.mjs +5 -5
- package/packages/crypto/src/index.mjs.map +1 -1
|
@@ -348,9 +348,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
348
348
|
* @returns The application create transaction
|
|
349
349
|
*/
|
|
350
350
|
appCreate: (params: {
|
|
351
|
-
sender: SendingAddress;
|
|
352
|
-
args?: Uint8Array[] | undefined;
|
|
353
351
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
352
|
+
sender: SendingAddress;
|
|
354
353
|
rekeyTo?: ReadableAddress | undefined;
|
|
355
354
|
note?: (Uint8Array | string) | undefined;
|
|
356
355
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -361,6 +360,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
361
360
|
firstValidRound?: bigint | undefined;
|
|
362
361
|
lastValidRound?: bigint | 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;
|
|
@@ -568,9 +568,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
568
568
|
* @returns The application ABI method create transaction
|
|
569
569
|
*/
|
|
570
570
|
appCreateMethodCall: (params: {
|
|
571
|
-
appId?: 0 | undefined;
|
|
572
|
-
sender: SendingAddress;
|
|
573
571
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
572
|
+
sender: SendingAddress;
|
|
574
573
|
rekeyTo?: ReadableAddress | undefined;
|
|
575
574
|
note?: (Uint8Array | string) | undefined;
|
|
576
575
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -580,6 +579,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
580
579
|
validityWindow?: number | bigint | undefined;
|
|
581
580
|
firstValidRound?: bigint | undefined;
|
|
582
581
|
lastValidRound?: bigint | undefined;
|
|
582
|
+
appId?: 0 | undefined;
|
|
583
583
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
584
584
|
accountReferences?: ReadableAddress[] | undefined;
|
|
585
585
|
appReferences?: bigint[] | undefined;
|
|
@@ -649,9 +649,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
649
649
|
* @returns The application ABI method update transaction
|
|
650
650
|
*/
|
|
651
651
|
appUpdateMethodCall: (params: {
|
|
652
|
-
appId: bigint;
|
|
653
|
-
sender: SendingAddress;
|
|
654
652
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
653
|
+
sender: SendingAddress;
|
|
655
654
|
rekeyTo?: ReadableAddress | undefined;
|
|
656
655
|
note?: (Uint8Array | string) | undefined;
|
|
657
656
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -661,6 +660,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
661
660
|
validityWindow?: number | bigint | undefined;
|
|
662
661
|
firstValidRound?: bigint | undefined;
|
|
663
662
|
lastValidRound?: bigint | undefined;
|
|
663
|
+
appId: bigint;
|
|
664
664
|
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
665
665
|
accountReferences?: ReadableAddress[] | undefined;
|
|
666
666
|
appReferences?: bigint[] | undefined;
|
|
@@ -721,9 +721,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
721
721
|
* @returns The application ABI method delete transaction
|
|
722
722
|
*/
|
|
723
723
|
appDeleteMethodCall: (params: {
|
|
724
|
-
appId: bigint;
|
|
725
|
-
sender: SendingAddress;
|
|
726
724
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
725
|
+
sender: SendingAddress;
|
|
727
726
|
rekeyTo?: ReadableAddress | undefined;
|
|
728
727
|
note?: (Uint8Array | string) | undefined;
|
|
729
728
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -733,6 +732,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
733
732
|
validityWindow?: number | bigint | undefined;
|
|
734
733
|
firstValidRound?: bigint | undefined;
|
|
735
734
|
lastValidRound?: bigint | undefined;
|
|
735
|
+
appId: bigint;
|
|
736
736
|
onComplete?: OnApplicationComplete.DeleteApplication | undefined;
|
|
737
737
|
accountReferences?: ReadableAddress[] | undefined;
|
|
738
738
|
appReferences?: bigint[] | undefined;
|
|
@@ -791,9 +791,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
791
791
|
* @returns The application ABI method call transaction
|
|
792
792
|
*/
|
|
793
793
|
appCallMethodCall: (params: {
|
|
794
|
-
appId: bigint;
|
|
795
|
-
sender: SendingAddress;
|
|
796
794
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
795
|
+
sender: SendingAddress;
|
|
797
796
|
rekeyTo?: ReadableAddress | undefined;
|
|
798
797
|
note?: (Uint8Array | string) | undefined;
|
|
799
798
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -803,6 +802,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
803
802
|
validityWindow?: number | bigint | undefined;
|
|
804
803
|
firstValidRound?: bigint | undefined;
|
|
805
804
|
lastValidRound?: bigint | undefined;
|
|
805
|
+
appId: bigint;
|
|
806
806
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
|
|
807
807
|
accountReferences?: ReadableAddress[] | undefined;
|
|
808
808
|
appReferences?: bigint[] | undefined;
|
|
@@ -473,9 +473,8 @@ declare class AlgorandClientTransactionSender {
|
|
|
473
473
|
* @returns The result of the app create transaction and the transaction that was sent
|
|
474
474
|
*/
|
|
475
475
|
appCreate: (params: {
|
|
476
|
-
sender: SendingAddress;
|
|
477
|
-
args?: Uint8Array[] | undefined;
|
|
478
476
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
477
|
+
sender: SendingAddress;
|
|
479
478
|
rekeyTo?: ReadableAddress | undefined;
|
|
480
479
|
note?: (Uint8Array | string) | undefined;
|
|
481
480
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -486,6 +485,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
486
485
|
firstValidRound?: bigint | undefined;
|
|
487
486
|
lastValidRound?: bigint | undefined;
|
|
488
487
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
488
|
+
args?: Uint8Array[] | undefined;
|
|
489
489
|
accountReferences?: ReadableAddress[] | undefined;
|
|
490
490
|
appReferences?: bigint[] | undefined;
|
|
491
491
|
assetReferences?: bigint[] | undefined;
|
|
@@ -746,9 +746,8 @@ declare class AlgorandClientTransactionSender {
|
|
|
746
746
|
* @returns The result of the application ABI method create transaction and the transaction that was sent
|
|
747
747
|
*/
|
|
748
748
|
appCreateMethodCall: (params: {
|
|
749
|
-
appId?: 0 | undefined;
|
|
750
|
-
sender: SendingAddress;
|
|
751
749
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
750
|
+
sender: SendingAddress;
|
|
752
751
|
rekeyTo?: ReadableAddress | undefined;
|
|
753
752
|
note?: (Uint8Array | string) | undefined;
|
|
754
753
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -758,6 +757,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
758
757
|
validityWindow?: number | bigint | undefined;
|
|
759
758
|
firstValidRound?: bigint | undefined;
|
|
760
759
|
lastValidRound?: bigint | undefined;
|
|
760
|
+
appId?: 0 | undefined;
|
|
761
761
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
762
762
|
accountReferences?: ReadableAddress[] | undefined;
|
|
763
763
|
appReferences?: bigint[] | undefined;
|
|
@@ -834,9 +834,8 @@ declare class AlgorandClientTransactionSender {
|
|
|
834
834
|
* @returns The result of the application ABI method update transaction and the transaction that was sent
|
|
835
835
|
*/
|
|
836
836
|
appUpdateMethodCall: (params: {
|
|
837
|
-
appId: bigint;
|
|
838
|
-
sender: SendingAddress;
|
|
839
837
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
838
|
+
sender: SendingAddress;
|
|
840
839
|
rekeyTo?: ReadableAddress | undefined;
|
|
841
840
|
note?: (Uint8Array | string) | undefined;
|
|
842
841
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -846,6 +845,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
846
845
|
validityWindow?: number | bigint | undefined;
|
|
847
846
|
firstValidRound?: bigint | undefined;
|
|
848
847
|
lastValidRound?: bigint | undefined;
|
|
848
|
+
appId: bigint;
|
|
849
849
|
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
850
850
|
accountReferences?: ReadableAddress[] | undefined;
|
|
851
851
|
appReferences?: bigint[] | undefined;
|
|
@@ -913,9 +913,8 @@ declare class AlgorandClientTransactionSender {
|
|
|
913
913
|
* @returns The result of the application ABI method delete transaction and the transaction that was sent
|
|
914
914
|
*/
|
|
915
915
|
appDeleteMethodCall: (params: {
|
|
916
|
-
appId: bigint;
|
|
917
|
-
sender: SendingAddress;
|
|
918
916
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
917
|
+
sender: SendingAddress;
|
|
919
918
|
rekeyTo?: ReadableAddress | undefined;
|
|
920
919
|
note?: (Uint8Array | string) | undefined;
|
|
921
920
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -925,6 +924,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
925
924
|
validityWindow?: number | bigint | undefined;
|
|
926
925
|
firstValidRound?: bigint | undefined;
|
|
927
926
|
lastValidRound?: bigint | undefined;
|
|
927
|
+
appId: bigint;
|
|
928
928
|
onComplete?: OnApplicationComplete.DeleteApplication | undefined;
|
|
929
929
|
accountReferences?: ReadableAddress[] | undefined;
|
|
930
930
|
appReferences?: bigint[] | undefined;
|
|
@@ -990,9 +990,8 @@ declare class AlgorandClientTransactionSender {
|
|
|
990
990
|
* @returns The result of the application ABI method call transaction and the transaction that was sent
|
|
991
991
|
*/
|
|
992
992
|
appCallMethodCall: (params: {
|
|
993
|
-
appId: bigint;
|
|
994
|
-
sender: SendingAddress;
|
|
995
993
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
994
|
+
sender: SendingAddress;
|
|
996
995
|
rekeyTo?: ReadableAddress | undefined;
|
|
997
996
|
note?: (Uint8Array | string) | undefined;
|
|
998
997
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -1002,6 +1001,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
1002
1001
|
validityWindow?: number | bigint | undefined;
|
|
1003
1002
|
firstValidRound?: bigint | undefined;
|
|
1004
1003
|
lastValidRound?: bigint | undefined;
|
|
1004
|
+
appId: bigint;
|
|
1005
1005
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
|
|
1006
1006
|
accountReferences?: ReadableAddress[] | undefined;
|
|
1007
1007
|
appReferences?: bigint[] | undefined;
|
package/app-client.d.ts
CHANGED
|
@@ -458,10 +458,9 @@ declare class AppClient {
|
|
|
458
458
|
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
459
459
|
method: ABIMethod;
|
|
460
460
|
onComplete: OnApplicationComplete.UpdateApplication;
|
|
461
|
-
args: (
|
|
462
|
-
sender: SendingAddress;
|
|
463
|
-
args?: Uint8Array[] | undefined;
|
|
461
|
+
args: (Transaction | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
464
462
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
463
|
+
sender: SendingAddress;
|
|
465
464
|
rekeyTo?: ReadableAddress | undefined;
|
|
466
465
|
note?: (Uint8Array | string) | undefined;
|
|
467
466
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -472,6 +471,7 @@ declare class AppClient {
|
|
|
472
471
|
firstValidRound?: bigint | undefined;
|
|
473
472
|
lastValidRound?: bigint | undefined;
|
|
474
473
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
474
|
+
args?: Uint8Array[] | undefined;
|
|
475
475
|
accountReferences?: ReadableAddress[] | undefined;
|
|
476
476
|
appReferences?: bigint[] | undefined;
|
|
477
477
|
assetReferences?: bigint[] | undefined;
|
|
@@ -488,7 +488,7 @@ declare class AppClient {
|
|
|
488
488
|
localByteSlices: number;
|
|
489
489
|
} | undefined;
|
|
490
490
|
extraProgramPages?: number | undefined;
|
|
491
|
-
}> |
|
|
491
|
+
}> | AppMethodCall<{
|
|
492
492
|
sender: SendingAddress;
|
|
493
493
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
494
494
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -511,7 +511,7 @@ declare class AppClient {
|
|
|
511
511
|
rejectVersion?: number | undefined;
|
|
512
512
|
approvalProgram: string | Uint8Array;
|
|
513
513
|
clearStateProgram: string | Uint8Array;
|
|
514
|
-
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
514
|
+
}> | AppMethodCall<AppMethodCallParams> | Promise<Transaction> | undefined)[] | undefined;
|
|
515
515
|
}>;
|
|
516
516
|
/**
|
|
517
517
|
* Return params for an opt-in ABI call
|
|
@@ -519,9 +519,8 @@ declare class AppClient {
|
|
|
519
519
|
* @returns The parameters which can be used to create an opt-in ABI method call
|
|
520
520
|
*/
|
|
521
521
|
optIn: (params: AppClientMethodCallParams) => Promise<{
|
|
522
|
-
appId: bigint;
|
|
523
|
-
sender: SendingAddress;
|
|
524
522
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
523
|
+
sender: SendingAddress;
|
|
525
524
|
rekeyTo?: ReadableAddress | undefined;
|
|
526
525
|
note?: (Uint8Array | string) | undefined;
|
|
527
526
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -531,6 +530,7 @@ declare class AppClient {
|
|
|
531
530
|
validityWindow?: number | bigint | undefined;
|
|
532
531
|
firstValidRound?: bigint | undefined;
|
|
533
532
|
lastValidRound?: bigint | undefined;
|
|
533
|
+
appId: bigint;
|
|
534
534
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
|
|
535
535
|
accountReferences?: ReadableAddress[] | undefined;
|
|
536
536
|
appReferences?: bigint[] | undefined;
|
|
@@ -547,9 +547,8 @@ declare class AppClient {
|
|
|
547
547
|
* @returns The parameters which can be used to create a delete ABI method call
|
|
548
548
|
*/
|
|
549
549
|
delete: (params: AppClientMethodCallParams) => Promise<{
|
|
550
|
-
appId: bigint;
|
|
551
|
-
sender: SendingAddress;
|
|
552
550
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
551
|
+
sender: SendingAddress;
|
|
553
552
|
rekeyTo?: ReadableAddress | undefined;
|
|
554
553
|
note?: (Uint8Array | string) | undefined;
|
|
555
554
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -559,6 +558,7 @@ declare class AppClient {
|
|
|
559
558
|
validityWindow?: number | bigint | undefined;
|
|
560
559
|
firstValidRound?: bigint | undefined;
|
|
561
560
|
lastValidRound?: bigint | undefined;
|
|
561
|
+
appId: bigint;
|
|
562
562
|
onComplete?: OnApplicationComplete.DeleteApplication | undefined;
|
|
563
563
|
accountReferences?: ReadableAddress[] | undefined;
|
|
564
564
|
appReferences?: bigint[] | undefined;
|
|
@@ -574,9 +574,8 @@ declare class AppClient {
|
|
|
574
574
|
* @returns The parameters which can be used to create a close out ABI method call
|
|
575
575
|
*/
|
|
576
576
|
closeOut: (params: AppClientMethodCallParams) => Promise<{
|
|
577
|
-
appId: bigint;
|
|
578
|
-
sender: SendingAddress;
|
|
579
577
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
578
|
+
sender: SendingAddress;
|
|
580
579
|
rekeyTo?: ReadableAddress | undefined;
|
|
581
580
|
note?: (Uint8Array | string) | undefined;
|
|
582
581
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -586,6 +585,7 @@ declare class AppClient {
|
|
|
586
585
|
validityWindow?: number | bigint | undefined;
|
|
587
586
|
firstValidRound?: bigint | undefined;
|
|
588
587
|
lastValidRound?: bigint | undefined;
|
|
588
|
+
appId: bigint;
|
|
589
589
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
|
|
590
590
|
accountReferences?: ReadableAddress[] | undefined;
|
|
591
591
|
appReferences?: bigint[] | undefined;
|
|
@@ -601,9 +601,8 @@ declare class AppClient {
|
|
|
601
601
|
* @returns The parameters which can be used to create an ABI method call
|
|
602
602
|
*/
|
|
603
603
|
call: (params: AppClientMethodCallParams & CallOnComplete) => Promise<{
|
|
604
|
-
appId: bigint;
|
|
605
|
-
sender: SendingAddress;
|
|
606
604
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
605
|
+
sender: SendingAddress;
|
|
607
606
|
rekeyTo?: ReadableAddress | undefined;
|
|
608
607
|
note?: (Uint8Array | string) | undefined;
|
|
609
608
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -613,6 +612,7 @@ declare class AppClient {
|
|
|
613
612
|
validityWindow?: number | bigint | undefined;
|
|
614
613
|
firstValidRound?: bigint | undefined;
|
|
615
614
|
lastValidRound?: bigint | undefined;
|
|
615
|
+
appId: bigint;
|
|
616
616
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
|
|
617
617
|
accountReferences?: ReadableAddress[] | undefined;
|
|
618
618
|
appReferences?: bigint[] | undefined;
|
|
@@ -709,8 +709,8 @@ declare class AppClient {
|
|
|
709
709
|
update: (params: AppClientMethodCallParams & AppClientCompilationParams & SendParams) => Promise<{
|
|
710
710
|
compiledApproval?: CompiledTeal | undefined;
|
|
711
711
|
compiledClear?: CompiledTeal | undefined;
|
|
712
|
-
transactions: Transaction[];
|
|
713
712
|
confirmations: PendingTransactionResponse[];
|
|
713
|
+
transactions: Transaction[];
|
|
714
714
|
groupId: string | undefined;
|
|
715
715
|
txIds: string[];
|
|
716
716
|
returns?: ABIReturn[] | undefined;
|
package/app-factory.d.ts
CHANGED
|
@@ -211,10 +211,9 @@ declare class AppFactory {
|
|
|
211
211
|
sender: Address;
|
|
212
212
|
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
213
213
|
method: ABIMethod;
|
|
214
|
-
args: (
|
|
215
|
-
sender: SendingAddress;
|
|
216
|
-
args?: Uint8Array[] | undefined;
|
|
214
|
+
args: (Transaction | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
217
215
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
216
|
+
sender: SendingAddress;
|
|
218
217
|
rekeyTo?: ReadableAddress | undefined;
|
|
219
218
|
note?: (Uint8Array | string) | undefined;
|
|
220
219
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -225,6 +224,7 @@ declare class AppFactory {
|
|
|
225
224
|
firstValidRound?: bigint | undefined;
|
|
226
225
|
lastValidRound?: bigint | undefined;
|
|
227
226
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
227
|
+
args?: Uint8Array[] | undefined;
|
|
228
228
|
accountReferences?: ReadableAddress[] | undefined;
|
|
229
229
|
appReferences?: bigint[] | undefined;
|
|
230
230
|
assetReferences?: bigint[] | undefined;
|
|
@@ -241,7 +241,7 @@ declare class AppFactory {
|
|
|
241
241
|
localByteSlices: number;
|
|
242
242
|
} | undefined;
|
|
243
243
|
extraProgramPages?: number | undefined;
|
|
244
|
-
}> |
|
|
244
|
+
}> | AppMethodCall<{
|
|
245
245
|
sender: SendingAddress;
|
|
246
246
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
247
247
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -264,7 +264,7 @@ declare class AppFactory {
|
|
|
264
264
|
rejectVersion?: number | undefined;
|
|
265
265
|
approvalProgram: string | Uint8Array;
|
|
266
266
|
clearStateProgram: string | Uint8Array;
|
|
267
|
-
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
267
|
+
}> | AppMethodCall<AppMethodCallParams> | Promise<Transaction> | undefined)[] | undefined;
|
|
268
268
|
onComplete: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication;
|
|
269
269
|
}>;
|
|
270
270
|
/** Return params for a deployment update ABI call */
|
|
@@ -293,10 +293,9 @@ declare class AppFactory {
|
|
|
293
293
|
sender: Address;
|
|
294
294
|
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
295
295
|
method: ABIMethod;
|
|
296
|
-
args: (
|
|
297
|
-
sender: SendingAddress;
|
|
298
|
-
args?: Uint8Array[] | undefined;
|
|
296
|
+
args: (Transaction | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
299
297
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
298
|
+
sender: SendingAddress;
|
|
300
299
|
rekeyTo?: ReadableAddress | undefined;
|
|
301
300
|
note?: (Uint8Array | string) | undefined;
|
|
302
301
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -307,6 +306,7 @@ declare class AppFactory {
|
|
|
307
306
|
firstValidRound?: bigint | undefined;
|
|
308
307
|
lastValidRound?: bigint | undefined;
|
|
309
308
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
309
|
+
args?: Uint8Array[] | undefined;
|
|
310
310
|
accountReferences?: ReadableAddress[] | undefined;
|
|
311
311
|
appReferences?: bigint[] | undefined;
|
|
312
312
|
assetReferences?: bigint[] | undefined;
|
|
@@ -323,7 +323,7 @@ declare class AppFactory {
|
|
|
323
323
|
localByteSlices: number;
|
|
324
324
|
} | undefined;
|
|
325
325
|
extraProgramPages?: number | undefined;
|
|
326
|
-
}> |
|
|
326
|
+
}> | AppMethodCall<{
|
|
327
327
|
sender: SendingAddress;
|
|
328
328
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
329
329
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -346,7 +346,7 @@ declare class AppFactory {
|
|
|
346
346
|
rejectVersion?: number | undefined;
|
|
347
347
|
approvalProgram: string | Uint8Array;
|
|
348
348
|
clearStateProgram: string | Uint8Array;
|
|
349
|
-
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
349
|
+
}> | AppMethodCall<AppMethodCallParams> | Promise<Transaction> | undefined)[] | undefined;
|
|
350
350
|
onComplete: OnApplicationComplete.UpdateApplication;
|
|
351
351
|
};
|
|
352
352
|
/** Return params for a deployment delete ABI call */
|
|
@@ -375,10 +375,9 @@ declare class AppFactory {
|
|
|
375
375
|
sender: Address;
|
|
376
376
|
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
377
377
|
method: ABIMethod;
|
|
378
|
-
args: (
|
|
379
|
-
sender: SendingAddress;
|
|
380
|
-
args?: Uint8Array[] | undefined;
|
|
378
|
+
args: (Transaction | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
381
379
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
380
|
+
sender: SendingAddress;
|
|
382
381
|
rekeyTo?: ReadableAddress | undefined;
|
|
383
382
|
note?: (Uint8Array | string) | undefined;
|
|
384
383
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -389,6 +388,7 @@ declare class AppFactory {
|
|
|
389
388
|
firstValidRound?: bigint | undefined;
|
|
390
389
|
lastValidRound?: bigint | undefined;
|
|
391
390
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
391
|
+
args?: Uint8Array[] | undefined;
|
|
392
392
|
accountReferences?: ReadableAddress[] | undefined;
|
|
393
393
|
appReferences?: bigint[] | undefined;
|
|
394
394
|
assetReferences?: bigint[] | undefined;
|
|
@@ -405,7 +405,7 @@ declare class AppFactory {
|
|
|
405
405
|
localByteSlices: number;
|
|
406
406
|
} | undefined;
|
|
407
407
|
extraProgramPages?: number | undefined;
|
|
408
|
-
}> |
|
|
408
|
+
}> | AppMethodCall<{
|
|
409
409
|
sender: SendingAddress;
|
|
410
410
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
411
411
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -428,7 +428,7 @@ declare class AppFactory {
|
|
|
428
428
|
rejectVersion?: number | undefined;
|
|
429
429
|
approvalProgram: string | Uint8Array;
|
|
430
430
|
clearStateProgram: string | Uint8Array;
|
|
431
|
-
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
431
|
+
}> | AppMethodCall<AppMethodCallParams> | Promise<Transaction> | undefined)[] | undefined;
|
|
432
432
|
onComplete: OnApplicationComplete.DeleteApplication;
|
|
433
433
|
};
|
|
434
434
|
bare: {
|
|
@@ -449,7 +449,6 @@ declare class AppFactory {
|
|
|
449
449
|
/** The number of byte slices saved in local state. */
|
|
450
450
|
localByteSlices: number;
|
|
451
451
|
};
|
|
452
|
-
args?: Uint8Array[];
|
|
453
452
|
signer?: TransactionSigner | AddressWithTransactionSigner;
|
|
454
453
|
rekeyTo?: ReadableAddress;
|
|
455
454
|
note?: Uint8Array | string;
|
|
@@ -460,6 +459,7 @@ declare class AppFactory {
|
|
|
460
459
|
validityWindow?: number | bigint;
|
|
461
460
|
firstValidRound?: bigint;
|
|
462
461
|
lastValidRound?: bigint;
|
|
462
|
+
args?: Uint8Array[];
|
|
463
463
|
accountReferences?: ReadableAddress[];
|
|
464
464
|
appReferences?: bigint[];
|
|
465
465
|
assetReferences?: bigint[];
|
|
@@ -478,7 +478,6 @@ declare class AppFactory {
|
|
|
478
478
|
}>;
|
|
479
479
|
/** Return params for a deployment update bare call */
|
|
480
480
|
deployUpdate: (params?: AppClientBareCallParams) => {
|
|
481
|
-
args?: Uint8Array[] | undefined;
|
|
482
481
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
483
482
|
rekeyTo?: ReadableAddress | undefined;
|
|
484
483
|
note?: (Uint8Array | string) | undefined;
|
|
@@ -489,6 +488,7 @@ declare class AppFactory {
|
|
|
489
488
|
validityWindow?: number | bigint | undefined;
|
|
490
489
|
firstValidRound?: bigint | undefined;
|
|
491
490
|
lastValidRound?: bigint | undefined;
|
|
491
|
+
args?: Uint8Array[] | undefined;
|
|
492
492
|
accountReferences?: ReadableAddress[] | undefined;
|
|
493
493
|
appReferences?: bigint[] | undefined;
|
|
494
494
|
assetReferences?: bigint[] | undefined;
|
|
@@ -503,7 +503,6 @@ declare class AppFactory {
|
|
|
503
503
|
};
|
|
504
504
|
/** Return params for a deployment delete bare call */
|
|
505
505
|
deployDelete: (params?: AppClientBareCallParams) => {
|
|
506
|
-
args?: Uint8Array[] | undefined;
|
|
507
506
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
508
507
|
rekeyTo?: ReadableAddress | undefined;
|
|
509
508
|
note?: (Uint8Array | string) | undefined;
|
|
@@ -514,6 +513,7 @@ declare class AppFactory {
|
|
|
514
513
|
validityWindow?: number | bigint | undefined;
|
|
515
514
|
firstValidRound?: bigint | undefined;
|
|
516
515
|
lastValidRound?: bigint | undefined;
|
|
516
|
+
args?: Uint8Array[] | undefined;
|
|
517
517
|
accountReferences?: ReadableAddress[] | undefined;
|
|
518
518
|
appReferences?: bigint[] | undefined;
|
|
519
519
|
assetReferences?: bigint[] | undefined;
|
|
@@ -653,6 +653,7 @@ declare class AppFactory {
|
|
|
653
653
|
compiledApproval?: CompiledTeal | undefined;
|
|
654
654
|
compiledClear?: CompiledTeal | undefined;
|
|
655
655
|
operationPerformed: "create";
|
|
656
|
+
version: string;
|
|
656
657
|
updatable?: boolean | undefined;
|
|
657
658
|
deletable?: boolean | undefined;
|
|
658
659
|
createdRound: bigint;
|
|
@@ -660,7 +661,6 @@ declare class AppFactory {
|
|
|
660
661
|
createdMetadata: AppDeployMetadata;
|
|
661
662
|
deleted: boolean;
|
|
662
663
|
name: string;
|
|
663
|
-
version: string;
|
|
664
664
|
groupId: string | undefined;
|
|
665
665
|
txIds: string[];
|
|
666
666
|
returns?: ABIReturn[] | undefined;
|
|
@@ -699,6 +699,7 @@ declare class AppFactory {
|
|
|
699
699
|
compiledApproval?: CompiledTeal | undefined;
|
|
700
700
|
compiledClear?: CompiledTeal | undefined;
|
|
701
701
|
operationPerformed: "replace";
|
|
702
|
+
version: string;
|
|
702
703
|
updatable?: boolean | undefined;
|
|
703
704
|
deletable?: boolean | undefined;
|
|
704
705
|
createdRound: bigint;
|
|
@@ -706,7 +707,6 @@ declare class AppFactory {
|
|
|
706
707
|
createdMetadata: AppDeployMetadata;
|
|
707
708
|
deleted: boolean;
|
|
708
709
|
name: string;
|
|
709
|
-
version: string;
|
|
710
710
|
groupId: string | undefined;
|
|
711
711
|
txIds: string[];
|
|
712
712
|
returns?: ABIReturn[] | undefined;
|
package/composer.js
CHANGED
|
@@ -1172,10 +1172,10 @@ var TransactionComposer = class TransactionComposer {
|
|
|
1172
1172
|
});
|
|
1173
1173
|
require_transaction.validateTransaction(transaction);
|
|
1174
1174
|
transactions.push(transaction);
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1175
|
+
let signer;
|
|
1176
|
+
if (ctxn.data.signer) signer = "signer" in ctxn.data.signer ? ctxn.data.signer.signer : ctxn.data.signer;
|
|
1177
|
+
if (!signer && typeof ctxn.data.sender === "object" && "signer" in ctxn.data.sender) signer = ctxn.data.sender.signer;
|
|
1178
|
+
if (signer) signers.set(transactionIndex, signer);
|
|
1179
1179
|
transactionIndex++;
|
|
1180
1180
|
}
|
|
1181
1181
|
if (transactions.length > require_constants.MAX_TRANSACTION_GROUP_SIZE) throw new Error(`Transaction group size ${transactions.length} exceeds the maximum limit of ${require_constants.MAX_TRANSACTION_GROUP_SIZE}`);
|