@algorandfoundation/algokit-utils 10.0.0-alpha.41 → 10.0.0-alpha.43
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 +4 -4
- package/algorand-client-transaction-sender.d.ts +4 -4
- package/app-client.d.ts +7 -7
- package/app-factory.d.ts +8 -8
- 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 +2 -1
- package/packages/crypto/src/index.js +12 -12
- package/packages/crypto/src/index.js.map +1 -1
- package/packages/crypto/src/index.mjs +3 -3
|
@@ -568,6 +568,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
568
568
|
* @returns The application ABI method create transaction
|
|
569
569
|
*/
|
|
570
570
|
appCreateMethodCall: (params: {
|
|
571
|
+
appId?: 0 | undefined;
|
|
571
572
|
sender: SendingAddress;
|
|
572
573
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
573
574
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -579,7 +580,6 @@ declare class AlgorandClientTransactionCreator {
|
|
|
579
580
|
validityWindow?: number | bigint | undefined;
|
|
580
581
|
firstValidRound?: bigint | undefined;
|
|
581
582
|
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,6 +649,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
649
649
|
* @returns The application ABI method update transaction
|
|
650
650
|
*/
|
|
651
651
|
appUpdateMethodCall: (params: {
|
|
652
|
+
appId: bigint;
|
|
652
653
|
sender: SendingAddress;
|
|
653
654
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
654
655
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -660,7 +661,6 @@ declare class AlgorandClientTransactionCreator {
|
|
|
660
661
|
validityWindow?: number | bigint | undefined;
|
|
661
662
|
firstValidRound?: bigint | undefined;
|
|
662
663
|
lastValidRound?: bigint | undefined;
|
|
663
|
-
appId: bigint;
|
|
664
664
|
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
665
665
|
accountReferences?: ReadableAddress[] | undefined;
|
|
666
666
|
appReferences?: bigint[] | undefined;
|
|
@@ -721,6 +721,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
721
721
|
* @returns The application ABI method delete transaction
|
|
722
722
|
*/
|
|
723
723
|
appDeleteMethodCall: (params: {
|
|
724
|
+
appId: bigint;
|
|
724
725
|
sender: SendingAddress;
|
|
725
726
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
726
727
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -732,7 +733,6 @@ declare class AlgorandClientTransactionCreator {
|
|
|
732
733
|
validityWindow?: number | bigint | undefined;
|
|
733
734
|
firstValidRound?: bigint | undefined;
|
|
734
735
|
lastValidRound?: bigint | undefined;
|
|
735
|
-
appId: bigint;
|
|
736
736
|
onComplete?: OnApplicationComplete.DeleteApplication | undefined;
|
|
737
737
|
accountReferences?: ReadableAddress[] | undefined;
|
|
738
738
|
appReferences?: bigint[] | undefined;
|
|
@@ -791,6 +791,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
791
791
|
* @returns The application ABI method call transaction
|
|
792
792
|
*/
|
|
793
793
|
appCallMethodCall: (params: {
|
|
794
|
+
appId: bigint;
|
|
794
795
|
sender: SendingAddress;
|
|
795
796
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
796
797
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -802,7 +803,6 @@ declare class AlgorandClientTransactionCreator {
|
|
|
802
803
|
validityWindow?: number | bigint | undefined;
|
|
803
804
|
firstValidRound?: bigint | undefined;
|
|
804
805
|
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;
|
|
@@ -746,6 +746,7 @@ 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;
|
|
749
750
|
sender: SendingAddress;
|
|
750
751
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
751
752
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -757,7 +758,6 @@ declare class AlgorandClientTransactionSender {
|
|
|
757
758
|
validityWindow?: number | bigint | undefined;
|
|
758
759
|
firstValidRound?: bigint | undefined;
|
|
759
760
|
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,6 +834,7 @@ 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;
|
|
837
838
|
sender: SendingAddress;
|
|
838
839
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
839
840
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -845,7 +846,6 @@ declare class AlgorandClientTransactionSender {
|
|
|
845
846
|
validityWindow?: number | bigint | undefined;
|
|
846
847
|
firstValidRound?: bigint | undefined;
|
|
847
848
|
lastValidRound?: bigint | undefined;
|
|
848
|
-
appId: bigint;
|
|
849
849
|
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
850
850
|
accountReferences?: ReadableAddress[] | undefined;
|
|
851
851
|
appReferences?: bigint[] | undefined;
|
|
@@ -913,6 +913,7 @@ 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;
|
|
916
917
|
sender: SendingAddress;
|
|
917
918
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
918
919
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -924,7 +925,6 @@ declare class AlgorandClientTransactionSender {
|
|
|
924
925
|
validityWindow?: number | bigint | undefined;
|
|
925
926
|
firstValidRound?: bigint | undefined;
|
|
926
927
|
lastValidRound?: bigint | undefined;
|
|
927
|
-
appId: bigint;
|
|
928
928
|
onComplete?: OnApplicationComplete.DeleteApplication | undefined;
|
|
929
929
|
accountReferences?: ReadableAddress[] | undefined;
|
|
930
930
|
appReferences?: bigint[] | undefined;
|
|
@@ -990,6 +990,7 @@ 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;
|
|
993
994
|
sender: SendingAddress;
|
|
994
995
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
995
996
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -1001,7 +1002,6 @@ declare class AlgorandClientTransactionSender {
|
|
|
1001
1002
|
validityWindow?: number | bigint | undefined;
|
|
1002
1003
|
firstValidRound?: bigint | undefined;
|
|
1003
1004
|
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,7 +458,7 @@ declare class AppClient {
|
|
|
458
458
|
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
459
459
|
method: ABIMethod;
|
|
460
460
|
onComplete: OnApplicationComplete.UpdateApplication;
|
|
461
|
-
args: (Transaction |
|
|
461
|
+
args: (Transaction | TransactionWithSigner | Promise<Transaction> | ABIValue | AppMethodCall<{
|
|
462
462
|
sender: SendingAddress;
|
|
463
463
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
464
464
|
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> |
|
|
514
|
+
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
515
515
|
}>;
|
|
516
516
|
/**
|
|
517
517
|
* Return params for an opt-in ABI call
|
|
@@ -519,6 +519,7 @@ 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;
|
|
522
523
|
sender: SendingAddress;
|
|
523
524
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
524
525
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -530,7 +531,6 @@ declare class AppClient {
|
|
|
530
531
|
validityWindow?: number | bigint | undefined;
|
|
531
532
|
firstValidRound?: bigint | undefined;
|
|
532
533
|
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,6 +547,7 @@ 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;
|
|
550
551
|
sender: SendingAddress;
|
|
551
552
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
552
553
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -558,7 +559,6 @@ declare class AppClient {
|
|
|
558
559
|
validityWindow?: number | bigint | undefined;
|
|
559
560
|
firstValidRound?: bigint | undefined;
|
|
560
561
|
lastValidRound?: bigint | undefined;
|
|
561
|
-
appId: bigint;
|
|
562
562
|
onComplete?: OnApplicationComplete.DeleteApplication | undefined;
|
|
563
563
|
accountReferences?: ReadableAddress[] | undefined;
|
|
564
564
|
appReferences?: bigint[] | undefined;
|
|
@@ -574,6 +574,7 @@ 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;
|
|
577
578
|
sender: SendingAddress;
|
|
578
579
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
579
580
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -585,7 +586,6 @@ declare class AppClient {
|
|
|
585
586
|
validityWindow?: number | bigint | undefined;
|
|
586
587
|
firstValidRound?: bigint | undefined;
|
|
587
588
|
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,6 +601,7 @@ 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;
|
|
604
605
|
sender: SendingAddress;
|
|
605
606
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
606
607
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -612,7 +613,6 @@ declare class AppClient {
|
|
|
612
613
|
validityWindow?: number | bigint | undefined;
|
|
613
614
|
firstValidRound?: bigint | undefined;
|
|
614
615
|
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
|
-
confirmations: PendingTransactionResponse[];
|
|
713
712
|
transactions: Transaction[];
|
|
713
|
+
confirmations: PendingTransactionResponse[];
|
|
714
714
|
groupId: string | undefined;
|
|
715
715
|
txIds: string[];
|
|
716
716
|
returns?: ABIReturn[] | undefined;
|
package/app-factory.d.ts
CHANGED
|
@@ -211,7 +211,7 @@ declare class AppFactory {
|
|
|
211
211
|
sender: Address;
|
|
212
212
|
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
213
213
|
method: ABIMethod;
|
|
214
|
-
args: (Transaction |
|
|
214
|
+
args: (Transaction | TransactionWithSigner | Promise<Transaction> | ABIValue | AppMethodCall<{
|
|
215
215
|
sender: SendingAddress;
|
|
216
216
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
217
217
|
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> |
|
|
267
|
+
}> | AppMethodCall<AppMethodCallParams> | 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,7 +293,7 @@ declare class AppFactory {
|
|
|
293
293
|
sender: Address;
|
|
294
294
|
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
295
295
|
method: ABIMethod;
|
|
296
|
-
args: (Transaction |
|
|
296
|
+
args: (Transaction | TransactionWithSigner | Promise<Transaction> | ABIValue | AppMethodCall<{
|
|
297
297
|
sender: SendingAddress;
|
|
298
298
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
299
299
|
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> |
|
|
349
|
+
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
350
350
|
onComplete: OnApplicationComplete.UpdateApplication;
|
|
351
351
|
};
|
|
352
352
|
/** Return params for a deployment delete ABI call */
|
|
@@ -375,7 +375,7 @@ declare class AppFactory {
|
|
|
375
375
|
sender: Address;
|
|
376
376
|
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
377
377
|
method: ABIMethod;
|
|
378
|
-
args: (Transaction |
|
|
378
|
+
args: (Transaction | TransactionWithSigner | Promise<Transaction> | ABIValue | AppMethodCall<{
|
|
379
379
|
sender: SendingAddress;
|
|
380
380
|
signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
|
|
381
381
|
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> |
|
|
431
|
+
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
432
432
|
onComplete: OnApplicationComplete.DeleteApplication;
|
|
433
433
|
};
|
|
434
434
|
bare: {
|
|
@@ -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}`);
|