@algorandfoundation/algokit-utils 10.0.0-alpha.42 → 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.
@@ -349,7 +349,6 @@ declare class AlgorandClientTransactionCreator {
349
349
  */
350
350
  appCreate: (params: {
351
351
  sender: SendingAddress;
352
- args?: Uint8Array[] | undefined;
353
352
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
354
353
  rekeyTo?: ReadableAddress | undefined;
355
354
  note?: (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;
@@ -474,7 +474,6 @@ declare class AlgorandClientTransactionSender {
474
474
  */
475
475
  appCreate: (params: {
476
476
  sender: SendingAddress;
477
- args?: Uint8Array[] | undefined;
478
477
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
479
478
  rekeyTo?: ReadableAddress | undefined;
480
479
  note?: (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;
package/app-client.d.ts CHANGED
@@ -458,9 +458,8 @@ declare class AppClient {
458
458
  signer: AddressWithTransactionSigner | TransactionSigner | undefined;
459
459
  method: ABIMethod;
460
460
  onComplete: OnApplicationComplete.UpdateApplication;
461
- args: (ABIValue | TransactionWithSigner | Transaction | AppMethodCall<{
461
+ args: (Transaction | TransactionWithSigner | Promise<Transaction> | ABIValue | AppMethodCall<{
462
462
  sender: SendingAddress;
463
- args?: Uint8Array[] | undefined;
464
463
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
465
464
  rekeyTo?: ReadableAddress | undefined;
466
465
  note?: (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
- }> | Promise<Transaction> | AppMethodCall<{
491
+ }> | AppMethodCall<{
492
492
  sender: SendingAddress;
493
493
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
494
494
  rekeyTo?: ReadableAddress | undefined;
package/app-factory.d.ts CHANGED
@@ -211,9 +211,8 @@ declare class AppFactory {
211
211
  sender: Address;
212
212
  signer: AddressWithTransactionSigner | TransactionSigner | undefined;
213
213
  method: ABIMethod;
214
- args: (ABIValue | TransactionWithSigner | Transaction | AppMethodCall<{
214
+ args: (Transaction | TransactionWithSigner | Promise<Transaction> | ABIValue | AppMethodCall<{
215
215
  sender: SendingAddress;
216
- args?: Uint8Array[] | undefined;
217
216
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
218
217
  rekeyTo?: ReadableAddress | undefined;
219
218
  note?: (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
- }> | Promise<Transaction> | AppMethodCall<{
244
+ }> | AppMethodCall<{
245
245
  sender: SendingAddress;
246
246
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
247
247
  rekeyTo?: ReadableAddress | undefined;
@@ -293,9 +293,8 @@ declare class AppFactory {
293
293
  sender: Address;
294
294
  signer: AddressWithTransactionSigner | TransactionSigner | undefined;
295
295
  method: ABIMethod;
296
- args: (ABIValue | TransactionWithSigner | Transaction | AppMethodCall<{
296
+ args: (Transaction | TransactionWithSigner | Promise<Transaction> | ABIValue | AppMethodCall<{
297
297
  sender: SendingAddress;
298
- args?: Uint8Array[] | undefined;
299
298
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
300
299
  rekeyTo?: ReadableAddress | undefined;
301
300
  note?: (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
- }> | Promise<Transaction> | AppMethodCall<{
326
+ }> | AppMethodCall<{
327
327
  sender: SendingAddress;
328
328
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
329
329
  rekeyTo?: ReadableAddress | undefined;
@@ -375,9 +375,8 @@ declare class AppFactory {
375
375
  sender: Address;
376
376
  signer: AddressWithTransactionSigner | TransactionSigner | undefined;
377
377
  method: ABIMethod;
378
- args: (ABIValue | TransactionWithSigner | Transaction | AppMethodCall<{
378
+ args: (Transaction | TransactionWithSigner | Promise<Transaction> | ABIValue | AppMethodCall<{
379
379
  sender: SendingAddress;
380
- args?: Uint8Array[] | undefined;
381
380
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
382
381
  rekeyTo?: ReadableAddress | undefined;
383
382
  note?: (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
- }> | Promise<Transaction> | AppMethodCall<{
408
+ }> | AppMethodCall<{
409
409
  sender: SendingAddress;
410
410
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
411
411
  rekeyTo?: ReadableAddress | undefined;
@@ -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
- if (ctxn.data.signer) {
1176
- const signer = "signer" in ctxn.data.signer ? ctxn.data.signer.signer : ctxn.data.signer;
1177
- signers.set(transactionIndex, signer);
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}`);