@algorandfoundation/algokit-utils 10.0.0-alpha.25 → 10.0.0-alpha.26
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 +1 -1
- package/types/algorand-client-transaction-creator.d.ts +13 -13
- package/types/algorand-client-transaction-sender.d.ts +13 -13
- package/types/app-client.d.ts +18 -18
- package/types/app-factory.d.ts +9 -9
- package/types/composer.js +13 -6
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +13 -6
- package/types/composer.mjs.map +1 -1
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"**"
|
|
7
7
|
],
|
|
8
8
|
"name": "@algorandfoundation/algokit-utils",
|
|
9
|
-
"version": "10.0.0-alpha.
|
|
9
|
+
"version": "10.0.0-alpha.26",
|
|
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",
|
|
@@ -348,8 +348,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
348
348
|
* @returns The application create transaction
|
|
349
349
|
*/
|
|
350
350
|
appCreate: (params: {
|
|
351
|
-
sender: SendingAddress;
|
|
352
351
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
352
|
+
sender: SendingAddress;
|
|
353
353
|
rekeyTo?: ReadableAddress | undefined;
|
|
354
354
|
note?: string | Uint8Array | undefined;
|
|
355
355
|
lease?: string | Uint8Array | 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?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
572
|
+
sender: SendingAddress;
|
|
574
573
|
rekeyTo?: ReadableAddress | undefined;
|
|
575
574
|
note?: string | Uint8Array | undefined;
|
|
576
575
|
lease?: string | Uint8Array | 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;
|
|
@@ -598,8 +598,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
598
598
|
extraProgramPages?: number | undefined;
|
|
599
599
|
method: ABIMethod;
|
|
600
600
|
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
601
|
-
sender: SendingAddress;
|
|
602
601
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
602
|
+
sender: SendingAddress;
|
|
603
603
|
rekeyTo?: ReadableAddress | undefined;
|
|
604
604
|
note?: string | Uint8Array | undefined;
|
|
605
605
|
lease?: string | Uint8Array | undefined;
|
|
@@ -702,9 +702,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
702
702
|
* @returns The application ABI method update transaction
|
|
703
703
|
*/
|
|
704
704
|
appUpdateMethodCall: (params: {
|
|
705
|
-
appId: bigint;
|
|
706
|
-
sender: SendingAddress;
|
|
707
705
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
706
|
+
sender: SendingAddress;
|
|
708
707
|
rekeyTo?: ReadableAddress | undefined;
|
|
709
708
|
note?: string | Uint8Array | undefined;
|
|
710
709
|
lease?: string | Uint8Array | undefined;
|
|
@@ -714,6 +713,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
714
713
|
validityWindow?: number | bigint | undefined;
|
|
715
714
|
firstValidRound?: bigint | undefined;
|
|
716
715
|
lastValidRound?: bigint | undefined;
|
|
716
|
+
appId: bigint;
|
|
717
717
|
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
718
718
|
accountReferences?: ReadableAddress[] | undefined;
|
|
719
719
|
appReferences?: bigint[] | undefined;
|
|
@@ -725,8 +725,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
725
725
|
clearStateProgram: string | Uint8Array;
|
|
726
726
|
method: ABIMethod;
|
|
727
727
|
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
728
|
-
sender: SendingAddress;
|
|
729
728
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
729
|
+
sender: SendingAddress;
|
|
730
730
|
rekeyTo?: ReadableAddress | undefined;
|
|
731
731
|
note?: string | Uint8Array | undefined;
|
|
732
732
|
lease?: string | Uint8Array | undefined;
|
|
@@ -827,9 +827,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
827
827
|
* @returns The application ABI method delete transaction
|
|
828
828
|
*/
|
|
829
829
|
appDeleteMethodCall: (params: {
|
|
830
|
-
appId: bigint;
|
|
831
|
-
sender: SendingAddress;
|
|
832
830
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
831
|
+
sender: SendingAddress;
|
|
833
832
|
rekeyTo?: ReadableAddress | undefined;
|
|
834
833
|
note?: string | Uint8Array | undefined;
|
|
835
834
|
lease?: string | Uint8Array | undefined;
|
|
@@ -839,6 +838,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
839
838
|
validityWindow?: number | bigint | undefined;
|
|
840
839
|
firstValidRound?: bigint | undefined;
|
|
841
840
|
lastValidRound?: bigint | undefined;
|
|
841
|
+
appId: bigint;
|
|
842
842
|
onComplete?: OnApplicationComplete.DeleteApplication | undefined;
|
|
843
843
|
accountReferences?: ReadableAddress[] | undefined;
|
|
844
844
|
appReferences?: bigint[] | undefined;
|
|
@@ -848,8 +848,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
848
848
|
rejectVersion?: number | undefined;
|
|
849
849
|
method: ABIMethod;
|
|
850
850
|
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
851
|
-
sender: SendingAddress;
|
|
852
851
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
852
|
+
sender: SendingAddress;
|
|
853
853
|
rekeyTo?: ReadableAddress | undefined;
|
|
854
854
|
note?: string | Uint8Array | undefined;
|
|
855
855
|
lease?: string | Uint8Array | undefined;
|
|
@@ -950,9 +950,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
950
950
|
* @returns The application ABI method call transaction
|
|
951
951
|
*/
|
|
952
952
|
appCallMethodCall: (params: {
|
|
953
|
-
appId: bigint;
|
|
954
|
-
sender: SendingAddress;
|
|
955
953
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
954
|
+
sender: SendingAddress;
|
|
956
955
|
rekeyTo?: ReadableAddress | undefined;
|
|
957
956
|
note?: string | Uint8Array | undefined;
|
|
958
957
|
lease?: string | Uint8Array | undefined;
|
|
@@ -962,6 +961,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
962
961
|
validityWindow?: number | bigint | undefined;
|
|
963
962
|
firstValidRound?: bigint | undefined;
|
|
964
963
|
lastValidRound?: bigint | undefined;
|
|
964
|
+
appId: bigint;
|
|
965
965
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
|
|
966
966
|
accountReferences?: ReadableAddress[] | undefined;
|
|
967
967
|
appReferences?: bigint[] | undefined;
|
|
@@ -971,8 +971,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
971
971
|
rejectVersion?: number | undefined;
|
|
972
972
|
method: ABIMethod;
|
|
973
973
|
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
974
|
-
sender: SendingAddress;
|
|
975
974
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
975
|
+
sender: SendingAddress;
|
|
976
976
|
rekeyTo?: ReadableAddress | undefined;
|
|
977
977
|
note?: string | Uint8Array | undefined;
|
|
978
978
|
lease?: string | Uint8Array | undefined;
|
|
@@ -479,8 +479,8 @@ declare class AlgorandClientTransactionSender {
|
|
|
479
479
|
* @returns The result of the app create transaction and the transaction that was sent
|
|
480
480
|
*/
|
|
481
481
|
appCreate: (params: {
|
|
482
|
-
sender: SendingAddress;
|
|
483
482
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
483
|
+
sender: SendingAddress;
|
|
484
484
|
rekeyTo?: ReadableAddress | undefined;
|
|
485
485
|
note?: string | Uint8Array | undefined;
|
|
486
486
|
lease?: string | Uint8Array | undefined;
|
|
@@ -752,9 +752,8 @@ declare class AlgorandClientTransactionSender {
|
|
|
752
752
|
* @returns The result of the application ABI method create transaction and the transaction that was sent
|
|
753
753
|
*/
|
|
754
754
|
appCreateMethodCall: (params: {
|
|
755
|
-
appId?: 0 | undefined;
|
|
756
|
-
sender: SendingAddress;
|
|
757
755
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
756
|
+
sender: SendingAddress;
|
|
758
757
|
rekeyTo?: ReadableAddress | undefined;
|
|
759
758
|
note?: string | Uint8Array | undefined;
|
|
760
759
|
lease?: string | Uint8Array | undefined;
|
|
@@ -764,6 +763,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
764
763
|
validityWindow?: number | bigint | undefined;
|
|
765
764
|
firstValidRound?: bigint | undefined;
|
|
766
765
|
lastValidRound?: bigint | undefined;
|
|
766
|
+
appId?: 0 | undefined;
|
|
767
767
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
768
768
|
accountReferences?: ReadableAddress[] | undefined;
|
|
769
769
|
appReferences?: bigint[] | undefined;
|
|
@@ -782,8 +782,8 @@ declare class AlgorandClientTransactionSender {
|
|
|
782
782
|
extraProgramPages?: number | undefined;
|
|
783
783
|
method: ABIMethod;
|
|
784
784
|
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
785
|
-
sender: SendingAddress;
|
|
786
785
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
786
|
+
sender: SendingAddress;
|
|
787
787
|
rekeyTo?: ReadableAddress | undefined;
|
|
788
788
|
note?: string | Uint8Array | undefined;
|
|
789
789
|
lease?: string | Uint8Array | undefined;
|
|
@@ -893,9 +893,8 @@ declare class AlgorandClientTransactionSender {
|
|
|
893
893
|
* @returns The result of the application ABI method update transaction and the transaction that was sent
|
|
894
894
|
*/
|
|
895
895
|
appUpdateMethodCall: (params: {
|
|
896
|
-
appId: bigint;
|
|
897
|
-
sender: SendingAddress;
|
|
898
896
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
897
|
+
sender: SendingAddress;
|
|
899
898
|
rekeyTo?: ReadableAddress | undefined;
|
|
900
899
|
note?: string | Uint8Array | undefined;
|
|
901
900
|
lease?: string | Uint8Array | undefined;
|
|
@@ -905,6 +904,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
905
904
|
validityWindow?: number | bigint | undefined;
|
|
906
905
|
firstValidRound?: bigint | undefined;
|
|
907
906
|
lastValidRound?: bigint | undefined;
|
|
907
|
+
appId: bigint;
|
|
908
908
|
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
909
909
|
accountReferences?: ReadableAddress[] | undefined;
|
|
910
910
|
appReferences?: bigint[] | undefined;
|
|
@@ -916,8 +916,8 @@ declare class AlgorandClientTransactionSender {
|
|
|
916
916
|
clearStateProgram: string | Uint8Array;
|
|
917
917
|
method: ABIMethod;
|
|
918
918
|
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
919
|
-
sender: SendingAddress;
|
|
920
919
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
920
|
+
sender: SendingAddress;
|
|
921
921
|
rekeyTo?: ReadableAddress | undefined;
|
|
922
922
|
note?: string | Uint8Array | undefined;
|
|
923
923
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1025,9 +1025,8 @@ declare class AlgorandClientTransactionSender {
|
|
|
1025
1025
|
* @returns The result of the application ABI method delete transaction and the transaction that was sent
|
|
1026
1026
|
*/
|
|
1027
1027
|
appDeleteMethodCall: (params: {
|
|
1028
|
-
appId: bigint;
|
|
1029
|
-
sender: SendingAddress;
|
|
1030
1028
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1029
|
+
sender: SendingAddress;
|
|
1031
1030
|
rekeyTo?: ReadableAddress | undefined;
|
|
1032
1031
|
note?: string | Uint8Array | undefined;
|
|
1033
1032
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1037,6 +1036,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
1037
1036
|
validityWindow?: number | bigint | undefined;
|
|
1038
1037
|
firstValidRound?: bigint | undefined;
|
|
1039
1038
|
lastValidRound?: bigint | undefined;
|
|
1039
|
+
appId: bigint;
|
|
1040
1040
|
onComplete?: OnApplicationComplete.DeleteApplication | undefined;
|
|
1041
1041
|
accountReferences?: ReadableAddress[] | undefined;
|
|
1042
1042
|
appReferences?: bigint[] | undefined;
|
|
@@ -1046,8 +1046,8 @@ declare class AlgorandClientTransactionSender {
|
|
|
1046
1046
|
rejectVersion?: number | undefined;
|
|
1047
1047
|
method: ABIMethod;
|
|
1048
1048
|
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
1049
|
-
sender: SendingAddress;
|
|
1050
1049
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1050
|
+
sender: SendingAddress;
|
|
1051
1051
|
rekeyTo?: ReadableAddress | undefined;
|
|
1052
1052
|
note?: string | Uint8Array | undefined;
|
|
1053
1053
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1155,9 +1155,8 @@ declare class AlgorandClientTransactionSender {
|
|
|
1155
1155
|
* @returns The result of the application ABI method call transaction and the transaction that was sent
|
|
1156
1156
|
*/
|
|
1157
1157
|
appCallMethodCall: (params: {
|
|
1158
|
-
appId: bigint;
|
|
1159
|
-
sender: SendingAddress;
|
|
1160
1158
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1159
|
+
sender: SendingAddress;
|
|
1161
1160
|
rekeyTo?: ReadableAddress | undefined;
|
|
1162
1161
|
note?: string | Uint8Array | undefined;
|
|
1163
1162
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1167,6 +1166,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
1167
1166
|
validityWindow?: number | bigint | undefined;
|
|
1168
1167
|
firstValidRound?: bigint | undefined;
|
|
1169
1168
|
lastValidRound?: bigint | undefined;
|
|
1169
|
+
appId: bigint;
|
|
1170
1170
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
|
|
1171
1171
|
accountReferences?: ReadableAddress[] | undefined;
|
|
1172
1172
|
appReferences?: bigint[] | undefined;
|
|
@@ -1176,8 +1176,8 @@ declare class AlgorandClientTransactionSender {
|
|
|
1176
1176
|
rejectVersion?: number | undefined;
|
|
1177
1177
|
method: ABIMethod;
|
|
1178
1178
|
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
1179
|
-
sender: SendingAddress;
|
|
1180
1179
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1180
|
+
sender: SendingAddress;
|
|
1181
1181
|
rekeyTo?: ReadableAddress | undefined;
|
|
1182
1182
|
note?: string | Uint8Array | undefined;
|
|
1183
1183
|
lease?: string | Uint8Array | undefined;
|
package/types/app-client.d.ts
CHANGED
|
@@ -387,6 +387,7 @@ declare class AppClient {
|
|
|
387
387
|
*/
|
|
388
388
|
fundAppAccount: (params: {
|
|
389
389
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
390
|
+
amount: AlgoAmount;
|
|
390
391
|
rekeyTo?: ReadableAddress | undefined;
|
|
391
392
|
note?: string | Uint8Array | undefined;
|
|
392
393
|
lease?: string | Uint8Array | undefined;
|
|
@@ -396,7 +397,6 @@ declare class AppClient {
|
|
|
396
397
|
validityWindow?: number | bigint | undefined;
|
|
397
398
|
firstValidRound?: bigint | undefined;
|
|
398
399
|
lastValidRound?: bigint | undefined;
|
|
399
|
-
amount: AlgoAmount;
|
|
400
400
|
closeRemainderTo?: ReadableAddress | undefined;
|
|
401
401
|
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
402
402
|
suppressLog?: boolean | undefined;
|
|
@@ -407,6 +407,7 @@ declare class AppClient {
|
|
|
407
407
|
sender: Address;
|
|
408
408
|
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
409
409
|
receiver: Address;
|
|
410
|
+
amount: AlgoAmount;
|
|
410
411
|
rekeyTo?: ReadableAddress | undefined;
|
|
411
412
|
note?: string | Uint8Array | undefined;
|
|
412
413
|
lease?: string | Uint8Array | undefined;
|
|
@@ -416,7 +417,6 @@ declare class AppClient {
|
|
|
416
417
|
validityWindow?: number | bigint | undefined;
|
|
417
418
|
firstValidRound?: bigint | undefined;
|
|
418
419
|
lastValidRound?: bigint | undefined;
|
|
419
|
-
amount: AlgoAmount;
|
|
420
420
|
closeRemainderTo?: ReadableAddress | undefined;
|
|
421
421
|
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
422
422
|
suppressLog?: boolean | undefined;
|
|
@@ -489,8 +489,8 @@ declare class AppClient {
|
|
|
489
489
|
method: ABIMethod;
|
|
490
490
|
onComplete: OnApplicationComplete.UpdateApplication;
|
|
491
491
|
args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
492
|
-
sender: SendingAddress;
|
|
493
492
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
493
|
+
sender: SendingAddress;
|
|
494
494
|
rekeyTo?: ReadableAddress | undefined;
|
|
495
495
|
note?: string | Uint8Array | undefined;
|
|
496
496
|
lease?: string | Uint8Array | undefined;
|
|
@@ -570,9 +570,8 @@ declare class AppClient {
|
|
|
570
570
|
method: string;
|
|
571
571
|
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
572
572
|
}) => Promise<{
|
|
573
|
-
appId: bigint;
|
|
574
|
-
sender: SendingAddress;
|
|
575
573
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
574
|
+
sender: SendingAddress;
|
|
576
575
|
rekeyTo?: ReadableAddress | undefined;
|
|
577
576
|
note?: string | Uint8Array | undefined;
|
|
578
577
|
lease?: string | Uint8Array | undefined;
|
|
@@ -582,6 +581,7 @@ declare class AppClient {
|
|
|
582
581
|
validityWindow?: number | bigint | undefined;
|
|
583
582
|
firstValidRound?: bigint | undefined;
|
|
584
583
|
lastValidRound?: bigint | undefined;
|
|
584
|
+
appId: bigint;
|
|
585
585
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
|
|
586
586
|
accountReferences?: ReadableAddress[] | undefined;
|
|
587
587
|
appReferences?: bigint[] | undefined;
|
|
@@ -591,8 +591,8 @@ declare class AppClient {
|
|
|
591
591
|
rejectVersion?: number | undefined;
|
|
592
592
|
method: ABIMethod;
|
|
593
593
|
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
594
|
-
sender: SendingAddress;
|
|
595
594
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
595
|
+
sender: SendingAddress;
|
|
596
596
|
rekeyTo?: ReadableAddress | undefined;
|
|
597
597
|
note?: string | Uint8Array | undefined;
|
|
598
598
|
lease?: string | Uint8Array | undefined;
|
|
@@ -672,9 +672,8 @@ declare class AppClient {
|
|
|
672
672
|
method: string;
|
|
673
673
|
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
674
674
|
}) => Promise<{
|
|
675
|
-
appId: bigint;
|
|
676
|
-
sender: SendingAddress;
|
|
677
675
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
676
|
+
sender: SendingAddress;
|
|
678
677
|
rekeyTo?: ReadableAddress | undefined;
|
|
679
678
|
note?: string | Uint8Array | undefined;
|
|
680
679
|
lease?: string | Uint8Array | undefined;
|
|
@@ -684,6 +683,7 @@ declare class AppClient {
|
|
|
684
683
|
validityWindow?: number | bigint | undefined;
|
|
685
684
|
firstValidRound?: bigint | undefined;
|
|
686
685
|
lastValidRound?: bigint | undefined;
|
|
686
|
+
appId: bigint;
|
|
687
687
|
onComplete?: OnApplicationComplete.DeleteApplication | undefined;
|
|
688
688
|
accountReferences?: ReadableAddress[] | undefined;
|
|
689
689
|
appReferences?: bigint[] | undefined;
|
|
@@ -693,8 +693,8 @@ declare class AppClient {
|
|
|
693
693
|
rejectVersion?: number | undefined;
|
|
694
694
|
method: ABIMethod;
|
|
695
695
|
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
696
|
-
sender: SendingAddress;
|
|
697
696
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
697
|
+
sender: SendingAddress;
|
|
698
698
|
rekeyTo?: ReadableAddress | undefined;
|
|
699
699
|
note?: string | Uint8Array | undefined;
|
|
700
700
|
lease?: string | Uint8Array | undefined;
|
|
@@ -773,9 +773,8 @@ declare class AppClient {
|
|
|
773
773
|
method: string;
|
|
774
774
|
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
775
775
|
}) => Promise<{
|
|
776
|
-
appId: bigint;
|
|
777
|
-
sender: SendingAddress;
|
|
778
776
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
777
|
+
sender: SendingAddress;
|
|
779
778
|
rekeyTo?: ReadableAddress | undefined;
|
|
780
779
|
note?: string | Uint8Array | undefined;
|
|
781
780
|
lease?: string | Uint8Array | undefined;
|
|
@@ -785,6 +784,7 @@ declare class AppClient {
|
|
|
785
784
|
validityWindow?: number | bigint | undefined;
|
|
786
785
|
firstValidRound?: bigint | undefined;
|
|
787
786
|
lastValidRound?: bigint | undefined;
|
|
787
|
+
appId: bigint;
|
|
788
788
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
|
|
789
789
|
accountReferences?: ReadableAddress[] | undefined;
|
|
790
790
|
appReferences?: bigint[] | undefined;
|
|
@@ -794,8 +794,8 @@ declare class AppClient {
|
|
|
794
794
|
rejectVersion?: number | undefined;
|
|
795
795
|
method: ABIMethod;
|
|
796
796
|
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
797
|
-
sender: SendingAddress;
|
|
798
797
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
798
|
+
sender: SendingAddress;
|
|
799
799
|
rekeyTo?: ReadableAddress | undefined;
|
|
800
800
|
note?: string | Uint8Array | undefined;
|
|
801
801
|
lease?: string | Uint8Array | undefined;
|
|
@@ -874,9 +874,8 @@ declare class AppClient {
|
|
|
874
874
|
method: string;
|
|
875
875
|
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
876
876
|
} & CallOnComplete) => Promise<{
|
|
877
|
-
appId: bigint;
|
|
878
|
-
sender: SendingAddress;
|
|
879
877
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
878
|
+
sender: SendingAddress;
|
|
880
879
|
rekeyTo?: ReadableAddress | undefined;
|
|
881
880
|
note?: string | Uint8Array | undefined;
|
|
882
881
|
lease?: string | Uint8Array | undefined;
|
|
@@ -886,6 +885,7 @@ declare class AppClient {
|
|
|
886
885
|
validityWindow?: number | bigint | undefined;
|
|
887
886
|
firstValidRound?: bigint | undefined;
|
|
888
887
|
lastValidRound?: bigint | undefined;
|
|
888
|
+
appId: bigint;
|
|
889
889
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
|
|
890
890
|
accountReferences?: ReadableAddress[] | undefined;
|
|
891
891
|
appReferences?: bigint[] | undefined;
|
|
@@ -895,8 +895,8 @@ declare class AppClient {
|
|
|
895
895
|
rejectVersion?: number | undefined;
|
|
896
896
|
method: ABIMethod;
|
|
897
897
|
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
898
|
-
sender: SendingAddress;
|
|
899
898
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
899
|
+
sender: SendingAddress;
|
|
900
900
|
rekeyTo?: ReadableAddress | undefined;
|
|
901
901
|
note?: string | Uint8Array | undefined;
|
|
902
902
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1110,6 +1110,7 @@ declare class AppClient {
|
|
|
1110
1110
|
*/
|
|
1111
1111
|
fundAppAccount: (params: {
|
|
1112
1112
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1113
|
+
amount: AlgoAmount;
|
|
1113
1114
|
rekeyTo?: ReadableAddress | undefined;
|
|
1114
1115
|
note?: string | Uint8Array | undefined;
|
|
1115
1116
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1119,7 +1120,6 @@ declare class AppClient {
|
|
|
1119
1120
|
validityWindow?: number | bigint | undefined;
|
|
1120
1121
|
firstValidRound?: bigint | undefined;
|
|
1121
1122
|
lastValidRound?: bigint | undefined;
|
|
1122
|
-
amount: AlgoAmount;
|
|
1123
1123
|
closeRemainderTo?: ReadableAddress | undefined;
|
|
1124
1124
|
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
1125
1125
|
suppressLog?: boolean | undefined;
|
|
@@ -1420,6 +1420,7 @@ declare class AppClient {
|
|
|
1420
1420
|
*/
|
|
1421
1421
|
fundAppAccount: (params: {
|
|
1422
1422
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1423
|
+
amount: AlgoAmount;
|
|
1423
1424
|
rekeyTo?: ReadableAddress | undefined;
|
|
1424
1425
|
note?: string | Uint8Array | undefined;
|
|
1425
1426
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1429,7 +1430,6 @@ declare class AppClient {
|
|
|
1429
1430
|
validityWindow?: number | bigint | undefined;
|
|
1430
1431
|
firstValidRound?: bigint | undefined;
|
|
1431
1432
|
lastValidRound?: bigint | undefined;
|
|
1432
|
-
amount: AlgoAmount;
|
|
1433
1433
|
closeRemainderTo?: ReadableAddress | undefined;
|
|
1434
1434
|
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
1435
1435
|
suppressLog?: boolean | undefined;
|
|
@@ -1474,8 +1474,8 @@ declare class AppClient {
|
|
|
1474
1474
|
} & AppClientCompilationParams & SendParams) => Promise<{
|
|
1475
1475
|
compiledApproval?: CompiledTeal | undefined;
|
|
1476
1476
|
compiledClear?: CompiledTeal | undefined;
|
|
1477
|
-
transactions: Transaction[];
|
|
1478
1477
|
confirmations: PendingTransactionResponse[];
|
|
1478
|
+
transactions: Transaction[];
|
|
1479
1479
|
groupId: string | undefined;
|
|
1480
1480
|
txIds: string[];
|
|
1481
1481
|
returns?: ABIReturn[] | undefined;
|
package/types/app-factory.d.ts
CHANGED
|
@@ -247,8 +247,8 @@ declare class AppFactory {
|
|
|
247
247
|
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
248
248
|
method: ABIMethod;
|
|
249
249
|
args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
250
|
-
sender: SendingAddress;
|
|
251
250
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
251
|
+
sender: SendingAddress;
|
|
252
252
|
rekeyTo?: ReadableAddress | undefined;
|
|
253
253
|
note?: string | Uint8Array | undefined;
|
|
254
254
|
lease?: string | Uint8Array | undefined;
|
|
@@ -350,8 +350,8 @@ declare class AppFactory {
|
|
|
350
350
|
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
351
351
|
method: ABIMethod;
|
|
352
352
|
args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
353
|
-
sender: SendingAddress;
|
|
354
353
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
354
|
+
sender: SendingAddress;
|
|
355
355
|
rekeyTo?: ReadableAddress | undefined;
|
|
356
356
|
note?: string | Uint8Array | undefined;
|
|
357
357
|
lease?: string | Uint8Array | undefined;
|
|
@@ -453,8 +453,8 @@ declare class AppFactory {
|
|
|
453
453
|
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
454
454
|
method: ABIMethod;
|
|
455
455
|
args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
456
|
-
sender: SendingAddress;
|
|
457
456
|
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
457
|
+
sender: SendingAddress;
|
|
458
458
|
rekeyTo?: ReadableAddress | undefined;
|
|
459
459
|
note?: string | Uint8Array | undefined;
|
|
460
460
|
lease?: string | Uint8Array | undefined;
|
|
@@ -802,14 +802,14 @@ declare class AppFactory {
|
|
|
802
802
|
compiledApproval?: CompiledTeal | undefined;
|
|
803
803
|
compiledClear?: CompiledTeal | undefined;
|
|
804
804
|
operationPerformed: "create";
|
|
805
|
-
version: string;
|
|
806
|
-
updatable?: boolean | undefined;
|
|
807
|
-
deletable?: boolean | undefined;
|
|
808
805
|
createdRound: bigint;
|
|
809
806
|
updatedRound: bigint;
|
|
810
807
|
createdMetadata: AppDeployMetadata;
|
|
811
808
|
deleted: boolean;
|
|
812
809
|
name: string;
|
|
810
|
+
version: string;
|
|
811
|
+
deletable?: boolean | undefined;
|
|
812
|
+
updatable?: boolean | undefined;
|
|
813
813
|
groupId: string | undefined;
|
|
814
814
|
txIds: string[];
|
|
815
815
|
returns?: ABIReturn[] | undefined;
|
|
@@ -848,14 +848,14 @@ declare class AppFactory {
|
|
|
848
848
|
compiledApproval?: CompiledTeal | undefined;
|
|
849
849
|
compiledClear?: CompiledTeal | undefined;
|
|
850
850
|
operationPerformed: "replace";
|
|
851
|
-
version: string;
|
|
852
|
-
updatable?: boolean | undefined;
|
|
853
|
-
deletable?: boolean | undefined;
|
|
854
851
|
createdRound: bigint;
|
|
855
852
|
updatedRound: bigint;
|
|
856
853
|
createdMetadata: AppDeployMetadata;
|
|
857
854
|
deleted: boolean;
|
|
858
855
|
name: string;
|
|
856
|
+
version: string;
|
|
857
|
+
deletable?: boolean | undefined;
|
|
858
|
+
updatable?: boolean | undefined;
|
|
859
859
|
groupId: string | undefined;
|
|
860
860
|
txIds: string[];
|
|
861
861
|
returns?: ABIReturn[] | undefined;
|
package/types/composer.js
CHANGED
|
@@ -1540,18 +1540,25 @@ var TransactionComposer = class TransactionComposer {
|
|
|
1540
1540
|
});
|
|
1541
1541
|
const signerEntries = Array.from(signerGroups);
|
|
1542
1542
|
const signedGroups = await Promise.all(signerEntries.map(([signer, indexes]) => signer(transactions, indexes)));
|
|
1543
|
-
const
|
|
1543
|
+
const rawSignedTransactions = new Array(transactionsWithSigners.length).fill(null);
|
|
1544
1544
|
signerEntries.forEach(([, indexes], signerIndex) => {
|
|
1545
1545
|
const stxs = signedGroups[signerIndex];
|
|
1546
1546
|
indexes.forEach((txIndex, stxIndex) => {
|
|
1547
|
-
|
|
1548
|
-
require_signed_transaction.validateSignedTransaction(stxn);
|
|
1549
|
-
signedTransactions[txIndex] = stxn;
|
|
1547
|
+
rawSignedTransactions[txIndex] = stxs[stxIndex] ?? null;
|
|
1550
1548
|
});
|
|
1551
1549
|
});
|
|
1552
|
-
const unsignedIndexes =
|
|
1550
|
+
const unsignedIndexes = rawSignedTransactions.map((stxn, index) => stxn == null ? index : null).filter((index) => index !== null);
|
|
1553
1551
|
if (unsignedIndexes.length > 0) throw new Error(`Transactions at indexes [${unsignedIndexes.join(", ")}] were not signed`);
|
|
1554
|
-
return
|
|
1552
|
+
return rawSignedTransactions.map((stxn, index) => {
|
|
1553
|
+
if (stxn == null) throw new Error(`Transaction at index ${index} was not signed`);
|
|
1554
|
+
try {
|
|
1555
|
+
const signedTransaction = require_signed_transaction.decodeSignedTransaction(stxn);
|
|
1556
|
+
require_signed_transaction.validateSignedTransaction(signedTransaction);
|
|
1557
|
+
return signedTransaction;
|
|
1558
|
+
} catch (err) {
|
|
1559
|
+
throw new Error(`Invalid signed transaction at index ${index}. ${err}`);
|
|
1560
|
+
}
|
|
1561
|
+
});
|
|
1555
1562
|
}
|
|
1556
1563
|
parseAbiReturnValues(confirmations) {
|
|
1557
1564
|
const abiReturns = new Array();
|