@algorandfoundation/algokit-utils 10.0.0-alpha.13 → 10.0.0-alpha.15
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/packages/algod_client/src/models/block.d.ts +1 -1
- package/packages/algod_client/src/models/block.js.map +1 -1
- package/packages/algod_client/src/models/block.mjs.map +1 -1
- package/packages/transact/src/transactions/app-call.d.ts +1 -6
- package/packages/transact/src/transactions/asset-config.d.ts +1 -6
- package/packages/transact/src/transactions/asset-config.js.map +1 -1
- package/packages/transact/src/transactions/asset-config.mjs.map +1 -1
- package/packages/transact/src/transactions/asset-freeze.d.ts +1 -6
- package/packages/transact/src/transactions/asset-transfer.d.ts +1 -6
- package/packages/transact/src/transactions/key-registration.d.ts +1 -8
- package/packages/transact/src/transactions/signed-transaction.d.ts +5 -1
- package/packages/transact/src/transactions/signed-transaction.js +1 -1
- package/packages/transact/src/transactions/signed-transaction.js.map +1 -1
- package/packages/transact/src/transactions/signed-transaction.mjs +1 -2
- package/packages/transact/src/transactions/signed-transaction.mjs.map +1 -1
- package/packages/transact/src/transactions/transaction.d.ts +5 -1
- package/packages/transact/src/transactions/transaction.js +0 -1
- package/packages/transact/src/transactions/transaction.js.map +1 -1
- package/packages/transact/src/transactions/transaction.mjs +0 -1
- package/packages/transact/src/transactions/transaction.mjs.map +1 -1
- package/transact/index.d.ts +9 -9
- package/transact/index.js +3 -10
- package/transact/index.mjs +5 -9
- package/transactions/key-registration.d.ts +1 -1
- package/transactions/key-registration.js.map +1 -1
- package/transactions/key-registration.mjs.map +1 -1
- package/types/account-manager.js +1 -1
- package/types/account-manager.mjs +1 -1
- package/types/algorand-client-transaction-creator.d.ts +27 -27
- package/types/algorand-client-transaction-sender.d.ts +28 -28
- package/types/app-client.d.ts +93 -93
- package/types/app-factory.d.ts +43 -43
- package/types/composer.js +9 -2
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +11 -4
- package/types/composer.mjs.map +1 -1
- package/packages/transact/src/transactions/common.d.ts +0 -37
package/types/app-factory.d.ts
CHANGED
|
@@ -171,7 +171,7 @@ declare class AppFactory {
|
|
|
171
171
|
get params(): {
|
|
172
172
|
/** Return params for a create ABI call, including deploy-time TEAL template replacements and compilation if provided */
|
|
173
173
|
create: (params: {
|
|
174
|
-
signer?:
|
|
174
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
175
175
|
rekeyTo?: ReadableAddress | undefined;
|
|
176
176
|
note?: string | Uint8Array | undefined;
|
|
177
177
|
lease?: string | Uint8Array | undefined;
|
|
@@ -219,7 +219,7 @@ declare class AppFactory {
|
|
|
219
219
|
};
|
|
220
220
|
approvalProgram: Uint8Array;
|
|
221
221
|
clearStateProgram: Uint8Array;
|
|
222
|
-
signer?:
|
|
222
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
223
223
|
rekeyTo?: ReadableAddress | undefined;
|
|
224
224
|
note?: string | Uint8Array | undefined;
|
|
225
225
|
lease?: string | Uint8Array | undefined;
|
|
@@ -244,11 +244,12 @@ declare class AppFactory {
|
|
|
244
244
|
extraProgramPages?: number | undefined;
|
|
245
245
|
} & {
|
|
246
246
|
sender: Address;
|
|
247
|
-
signer:
|
|
247
|
+
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
248
248
|
method: ABIMethod;
|
|
249
|
-
args: (Transaction |
|
|
249
|
+
args: (Transaction | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
250
|
+
args?: Uint8Array[] | undefined;
|
|
250
251
|
sender: SendingAddress;
|
|
251
|
-
signer?:
|
|
252
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
252
253
|
rekeyTo?: ReadableAddress | undefined;
|
|
253
254
|
note?: string | Uint8Array | undefined;
|
|
254
255
|
lease?: string | Uint8Array | undefined;
|
|
@@ -259,7 +260,6 @@ declare class AppFactory {
|
|
|
259
260
|
firstValidRound?: bigint | undefined;
|
|
260
261
|
lastValidRound?: bigint | undefined;
|
|
261
262
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
262
|
-
args?: Uint8Array[] | undefined;
|
|
263
263
|
accountReferences?: ReadableAddress[] | undefined;
|
|
264
264
|
appReferences?: bigint[] | undefined;
|
|
265
265
|
assetReferences?: bigint[] | undefined;
|
|
@@ -278,7 +278,7 @@ declare class AppFactory {
|
|
|
278
278
|
extraProgramPages?: number | undefined;
|
|
279
279
|
}> | AppMethodCall<{
|
|
280
280
|
sender: SendingAddress;
|
|
281
|
-
signer?:
|
|
281
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
282
282
|
rekeyTo?: ReadableAddress | undefined;
|
|
283
283
|
note?: string | Uint8Array | undefined;
|
|
284
284
|
lease?: string | Uint8Array | undefined;
|
|
@@ -299,12 +299,12 @@ declare class AppFactory {
|
|
|
299
299
|
rejectVersion?: number | undefined;
|
|
300
300
|
approvalProgram: string | Uint8Array;
|
|
301
301
|
clearStateProgram: string | Uint8Array;
|
|
302
|
-
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
302
|
+
}> | AppMethodCall<AppMethodCallParams> | Promise<Transaction> | undefined)[] | undefined;
|
|
303
303
|
onComplete: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication;
|
|
304
304
|
}>;
|
|
305
305
|
/** Return params for a deployment update ABI call */
|
|
306
306
|
deployUpdate: (params: {
|
|
307
|
-
signer?:
|
|
307
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
308
308
|
rekeyTo?: ReadableAddress | undefined;
|
|
309
309
|
note?: string | Uint8Array | undefined;
|
|
310
310
|
lease?: string | Uint8Array | undefined;
|
|
@@ -325,7 +325,7 @@ declare class AppFactory {
|
|
|
325
325
|
method: string;
|
|
326
326
|
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
327
327
|
}) => {
|
|
328
|
-
signer?:
|
|
328
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
329
329
|
rekeyTo?: ReadableAddress | undefined;
|
|
330
330
|
note?: string | Uint8Array | undefined;
|
|
331
331
|
lease?: string | Uint8Array | undefined;
|
|
@@ -347,11 +347,12 @@ declare class AppFactory {
|
|
|
347
347
|
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
348
348
|
} & {
|
|
349
349
|
sender: Address;
|
|
350
|
-
signer:
|
|
350
|
+
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
351
351
|
method: ABIMethod;
|
|
352
|
-
args: (Transaction |
|
|
352
|
+
args: (Transaction | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
353
|
+
args?: Uint8Array[] | undefined;
|
|
353
354
|
sender: SendingAddress;
|
|
354
|
-
signer?:
|
|
355
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
355
356
|
rekeyTo?: ReadableAddress | undefined;
|
|
356
357
|
note?: string | Uint8Array | undefined;
|
|
357
358
|
lease?: string | Uint8Array | undefined;
|
|
@@ -362,7 +363,6 @@ declare class AppFactory {
|
|
|
362
363
|
firstValidRound?: bigint | undefined;
|
|
363
364
|
lastValidRound?: bigint | undefined;
|
|
364
365
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
365
|
-
args?: Uint8Array[] | undefined;
|
|
366
366
|
accountReferences?: ReadableAddress[] | undefined;
|
|
367
367
|
appReferences?: bigint[] | undefined;
|
|
368
368
|
assetReferences?: bigint[] | undefined;
|
|
@@ -381,7 +381,7 @@ declare class AppFactory {
|
|
|
381
381
|
extraProgramPages?: number | undefined;
|
|
382
382
|
}> | AppMethodCall<{
|
|
383
383
|
sender: SendingAddress;
|
|
384
|
-
signer?:
|
|
384
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
385
385
|
rekeyTo?: ReadableAddress | undefined;
|
|
386
386
|
note?: string | Uint8Array | undefined;
|
|
387
387
|
lease?: string | Uint8Array | undefined;
|
|
@@ -402,12 +402,12 @@ declare class AppFactory {
|
|
|
402
402
|
rejectVersion?: number | undefined;
|
|
403
403
|
approvalProgram: string | Uint8Array;
|
|
404
404
|
clearStateProgram: string | Uint8Array;
|
|
405
|
-
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
405
|
+
}> | AppMethodCall<AppMethodCallParams> | Promise<Transaction> | undefined)[] | undefined;
|
|
406
406
|
onComplete: OnApplicationComplete.UpdateApplication;
|
|
407
407
|
};
|
|
408
408
|
/** Return params for a deployment delete ABI call */
|
|
409
409
|
deployDelete: (params: {
|
|
410
|
-
signer?:
|
|
410
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
411
411
|
rekeyTo?: ReadableAddress | undefined;
|
|
412
412
|
note?: string | Uint8Array | undefined;
|
|
413
413
|
lease?: string | Uint8Array | undefined;
|
|
@@ -428,7 +428,7 @@ declare class AppFactory {
|
|
|
428
428
|
method: string;
|
|
429
429
|
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
430
430
|
}) => {
|
|
431
|
-
signer?:
|
|
431
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
432
432
|
rekeyTo?: ReadableAddress | undefined;
|
|
433
433
|
note?: string | Uint8Array | undefined;
|
|
434
434
|
lease?: string | Uint8Array | undefined;
|
|
@@ -450,11 +450,12 @@ declare class AppFactory {
|
|
|
450
450
|
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
451
451
|
} & {
|
|
452
452
|
sender: Address;
|
|
453
|
-
signer:
|
|
453
|
+
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
454
454
|
method: ABIMethod;
|
|
455
|
-
args: (Transaction |
|
|
455
|
+
args: (Transaction | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
456
|
+
args?: Uint8Array[] | undefined;
|
|
456
457
|
sender: SendingAddress;
|
|
457
|
-
signer?:
|
|
458
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
458
459
|
rekeyTo?: ReadableAddress | undefined;
|
|
459
460
|
note?: string | Uint8Array | undefined;
|
|
460
461
|
lease?: string | Uint8Array | undefined;
|
|
@@ -465,7 +466,6 @@ declare class AppFactory {
|
|
|
465
466
|
firstValidRound?: bigint | undefined;
|
|
466
467
|
lastValidRound?: bigint | undefined;
|
|
467
468
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
468
|
-
args?: Uint8Array[] | undefined;
|
|
469
469
|
accountReferences?: ReadableAddress[] | undefined;
|
|
470
470
|
appReferences?: bigint[] | undefined;
|
|
471
471
|
assetReferences?: bigint[] | undefined;
|
|
@@ -484,7 +484,7 @@ declare class AppFactory {
|
|
|
484
484
|
extraProgramPages?: number | undefined;
|
|
485
485
|
}> | AppMethodCall<{
|
|
486
486
|
sender: SendingAddress;
|
|
487
|
-
signer?:
|
|
487
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
488
488
|
rekeyTo?: ReadableAddress | undefined;
|
|
489
489
|
note?: string | Uint8Array | undefined;
|
|
490
490
|
lease?: string | Uint8Array | undefined;
|
|
@@ -505,13 +505,14 @@ declare class AppFactory {
|
|
|
505
505
|
rejectVersion?: number | undefined;
|
|
506
506
|
approvalProgram: string | Uint8Array;
|
|
507
507
|
clearStateProgram: string | Uint8Array;
|
|
508
|
-
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
508
|
+
}> | AppMethodCall<AppMethodCallParams> | Promise<Transaction> | undefined)[] | undefined;
|
|
509
509
|
onComplete: OnApplicationComplete.DeleteApplication;
|
|
510
510
|
};
|
|
511
511
|
bare: {
|
|
512
512
|
/** Return params for a create bare call, including deploy-time TEAL template replacements and compilation if provided */
|
|
513
513
|
create: (params?: {
|
|
514
|
-
|
|
514
|
+
args?: Uint8Array[] | undefined;
|
|
515
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
515
516
|
rekeyTo?: ReadableAddress | undefined;
|
|
516
517
|
note?: string | Uint8Array | undefined;
|
|
517
518
|
lease?: string | Uint8Array | undefined;
|
|
@@ -521,7 +522,6 @@ declare class AppFactory {
|
|
|
521
522
|
validityWindow?: number | bigint | undefined;
|
|
522
523
|
firstValidRound?: bigint | undefined;
|
|
523
524
|
lastValidRound?: bigint | undefined;
|
|
524
|
-
args?: Uint8Array[] | undefined;
|
|
525
525
|
accountReferences?: ReadableAddress[] | undefined;
|
|
526
526
|
appReferences?: bigint[] | undefined;
|
|
527
527
|
assetReferences?: bigint[] | undefined;
|
|
@@ -560,7 +560,8 @@ declare class AppFactory {
|
|
|
560
560
|
/** The number of byte slices saved in local state. */
|
|
561
561
|
localByteSlices: number;
|
|
562
562
|
};
|
|
563
|
-
|
|
563
|
+
args?: Uint8Array[] | undefined;
|
|
564
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
564
565
|
rekeyTo?: ReadableAddress | undefined;
|
|
565
566
|
note?: string | Uint8Array | undefined;
|
|
566
567
|
lease?: string | Uint8Array | undefined;
|
|
@@ -570,7 +571,6 @@ declare class AppFactory {
|
|
|
570
571
|
validityWindow?: number | bigint | undefined;
|
|
571
572
|
firstValidRound?: bigint | undefined;
|
|
572
573
|
lastValidRound?: bigint | undefined;
|
|
573
|
-
args?: Uint8Array[] | undefined;
|
|
574
574
|
accountReferences?: ReadableAddress[] | undefined;
|
|
575
575
|
appReferences?: bigint[] | undefined;
|
|
576
576
|
assetReferences?: bigint[] | undefined;
|
|
@@ -584,12 +584,13 @@ declare class AppFactory {
|
|
|
584
584
|
extraProgramPages?: number | undefined;
|
|
585
585
|
} & {
|
|
586
586
|
sender: Address;
|
|
587
|
-
signer:
|
|
587
|
+
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
588
588
|
onComplete: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication;
|
|
589
589
|
}>;
|
|
590
590
|
/** Return params for a deployment update bare call */
|
|
591
591
|
deployUpdate: (params?: {
|
|
592
|
-
|
|
592
|
+
args?: Uint8Array[] | undefined;
|
|
593
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
593
594
|
rekeyTo?: ReadableAddress | undefined;
|
|
594
595
|
note?: string | Uint8Array | undefined;
|
|
595
596
|
lease?: string | Uint8Array | undefined;
|
|
@@ -599,7 +600,6 @@ declare class AppFactory {
|
|
|
599
600
|
validityWindow?: number | bigint | undefined;
|
|
600
601
|
firstValidRound?: bigint | undefined;
|
|
601
602
|
lastValidRound?: bigint | undefined;
|
|
602
|
-
args?: Uint8Array[] | undefined;
|
|
603
603
|
accountReferences?: ReadableAddress[] | undefined;
|
|
604
604
|
appReferences?: bigint[] | undefined;
|
|
605
605
|
assetReferences?: bigint[] | undefined;
|
|
@@ -608,7 +608,8 @@ declare class AppFactory {
|
|
|
608
608
|
rejectVersion?: number | undefined;
|
|
609
609
|
sender?: ReadableAddress | undefined;
|
|
610
610
|
} | undefined) => {
|
|
611
|
-
|
|
611
|
+
args?: Uint8Array[] | undefined;
|
|
612
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
612
613
|
rekeyTo?: ReadableAddress | undefined;
|
|
613
614
|
note?: string | Uint8Array | undefined;
|
|
614
615
|
lease?: string | Uint8Array | undefined;
|
|
@@ -618,7 +619,6 @@ declare class AppFactory {
|
|
|
618
619
|
validityWindow?: number | bigint | undefined;
|
|
619
620
|
firstValidRound?: bigint | undefined;
|
|
620
621
|
lastValidRound?: bigint | undefined;
|
|
621
|
-
args?: Uint8Array[] | undefined;
|
|
622
622
|
accountReferences?: ReadableAddress[] | undefined;
|
|
623
623
|
appReferences?: bigint[] | undefined;
|
|
624
624
|
assetReferences?: bigint[] | undefined;
|
|
@@ -628,12 +628,13 @@ declare class AppFactory {
|
|
|
628
628
|
sender?: ReadableAddress | undefined;
|
|
629
629
|
} & {
|
|
630
630
|
sender: Address;
|
|
631
|
-
signer:
|
|
631
|
+
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
632
632
|
onComplete: OnApplicationComplete.UpdateApplication;
|
|
633
633
|
};
|
|
634
634
|
/** Return params for a deployment delete bare call */
|
|
635
635
|
deployDelete: (params?: {
|
|
636
|
-
|
|
636
|
+
args?: Uint8Array[] | undefined;
|
|
637
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
637
638
|
rekeyTo?: ReadableAddress | undefined;
|
|
638
639
|
note?: string | Uint8Array | undefined;
|
|
639
640
|
lease?: string | Uint8Array | undefined;
|
|
@@ -643,7 +644,6 @@ declare class AppFactory {
|
|
|
643
644
|
validityWindow?: number | bigint | undefined;
|
|
644
645
|
firstValidRound?: bigint | undefined;
|
|
645
646
|
lastValidRound?: bigint | undefined;
|
|
646
|
-
args?: Uint8Array[] | undefined;
|
|
647
647
|
accountReferences?: ReadableAddress[] | undefined;
|
|
648
648
|
appReferences?: bigint[] | undefined;
|
|
649
649
|
assetReferences?: bigint[] | undefined;
|
|
@@ -652,7 +652,8 @@ declare class AppFactory {
|
|
|
652
652
|
rejectVersion?: number | undefined;
|
|
653
653
|
sender?: ReadableAddress | undefined;
|
|
654
654
|
} | undefined) => {
|
|
655
|
-
|
|
655
|
+
args?: Uint8Array[] | undefined;
|
|
656
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
656
657
|
rekeyTo?: ReadableAddress | undefined;
|
|
657
658
|
note?: string | Uint8Array | undefined;
|
|
658
659
|
lease?: string | Uint8Array | undefined;
|
|
@@ -662,7 +663,6 @@ declare class AppFactory {
|
|
|
662
663
|
validityWindow?: number | bigint | undefined;
|
|
663
664
|
firstValidRound?: bigint | undefined;
|
|
664
665
|
lastValidRound?: bigint | undefined;
|
|
665
|
-
args?: Uint8Array[] | undefined;
|
|
666
666
|
accountReferences?: ReadableAddress[] | undefined;
|
|
667
667
|
appReferences?: bigint[] | undefined;
|
|
668
668
|
assetReferences?: bigint[] | undefined;
|
|
@@ -672,7 +672,7 @@ declare class AppFactory {
|
|
|
672
672
|
sender?: ReadableAddress | undefined;
|
|
673
673
|
} & {
|
|
674
674
|
sender: Address;
|
|
675
|
-
signer:
|
|
675
|
+
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
676
676
|
onComplete: OnApplicationComplete.DeleteApplication;
|
|
677
677
|
};
|
|
678
678
|
};
|
|
@@ -803,13 +803,13 @@ declare class AppFactory {
|
|
|
803
803
|
compiledClear?: CompiledTeal | undefined;
|
|
804
804
|
operationPerformed: "create";
|
|
805
805
|
version: string;
|
|
806
|
-
updatable?: boolean | undefined;
|
|
807
|
-
deletable?: boolean | undefined;
|
|
808
806
|
createdRound: bigint;
|
|
809
807
|
updatedRound: bigint;
|
|
810
808
|
createdMetadata: AppDeployMetadata;
|
|
811
809
|
deleted: boolean;
|
|
812
810
|
name: string;
|
|
811
|
+
deletable?: boolean | undefined;
|
|
812
|
+
updatable?: boolean | undefined;
|
|
813
813
|
groupId: string | undefined;
|
|
814
814
|
txIds: string[];
|
|
815
815
|
returns?: ABIReturn[] | undefined;
|
|
@@ -849,13 +849,13 @@ declare class AppFactory {
|
|
|
849
849
|
compiledClear?: CompiledTeal | undefined;
|
|
850
850
|
operationPerformed: "replace";
|
|
851
851
|
version: string;
|
|
852
|
-
updatable?: boolean | undefined;
|
|
853
|
-
deletable?: boolean | undefined;
|
|
854
852
|
createdRound: bigint;
|
|
855
853
|
updatedRound: bigint;
|
|
856
854
|
createdMetadata: AppDeployMetadata;
|
|
857
855
|
deleted: boolean;
|
|
858
856
|
name: 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
|
@@ -206,6 +206,7 @@ var TransactionComposer = class TransactionComposer {
|
|
|
206
206
|
*/
|
|
207
207
|
addTransaction(transaction, signer) {
|
|
208
208
|
if (transaction.group) throw new Error("Cannot add a transaction to the composer because it is already in a group");
|
|
209
|
+
require_transaction.validateTransaction(transaction);
|
|
209
210
|
this.push({
|
|
210
211
|
data: {
|
|
211
212
|
txn: transaction,
|
|
@@ -1110,11 +1111,14 @@ var TransactionComposer = class TransactionComposer {
|
|
|
1110
1111
|
const transactions = new Array();
|
|
1111
1112
|
let transactionIndex = 0;
|
|
1112
1113
|
for (const ctxn of this.txns) if (ctxn.type === "txn") {
|
|
1114
|
+
require_transaction.validateTransaction(ctxn.data.txn);
|
|
1113
1115
|
transactions.push(ctxn.data.txn);
|
|
1114
1116
|
if (ctxn.data.signer) signers.set(transactionIndex, ctxn.data.signer);
|
|
1115
1117
|
transactionIndex++;
|
|
1116
1118
|
} else if (ctxn.type === "asyncTxn") {
|
|
1117
|
-
|
|
1119
|
+
const transaction = await ctxn.data.txn;
|
|
1120
|
+
require_transaction.validateTransaction(transaction);
|
|
1121
|
+
transactions.push(transaction);
|
|
1118
1122
|
if (ctxn.data.signer) signers.set(transactionIndex, ctxn.data.signer);
|
|
1119
1123
|
transactionIndex++;
|
|
1120
1124
|
} else {
|
|
@@ -1165,6 +1169,7 @@ var TransactionComposer = class TransactionComposer {
|
|
|
1165
1169
|
extraFee: ctxn.data.extraFee?.microAlgos,
|
|
1166
1170
|
maxFee: ctxn.data.maxFee?.microAlgos
|
|
1167
1171
|
});
|
|
1172
|
+
require_transaction.validateTransaction(transaction);
|
|
1168
1173
|
transactions.push(transaction);
|
|
1169
1174
|
if (ctxn.data.signer) {
|
|
1170
1175
|
const signer = "signer" in ctxn.data.signer ? ctxn.data.signer.signer : ctxn.data.signer;
|
|
@@ -1538,7 +1543,9 @@ var TransactionComposer = class TransactionComposer {
|
|
|
1538
1543
|
signerEntries.forEach(([, indexes], signerIndex) => {
|
|
1539
1544
|
const stxs = signedGroups[signerIndex];
|
|
1540
1545
|
indexes.forEach((txIndex, stxIndex) => {
|
|
1541
|
-
|
|
1546
|
+
const stxn = require_signed_transaction.decodeSignedTransaction(stxs[stxIndex]);
|
|
1547
|
+
require_signed_transaction.validateSignedTransaction(stxn);
|
|
1548
|
+
signedTransactions[txIndex] = stxn;
|
|
1542
1549
|
});
|
|
1543
1550
|
});
|
|
1544
1551
|
const unsignedIndexes = signedTransactions.map((stxn, index) => stxn === void 0 ? index : null).filter((index) => index !== null);
|