@algorandfoundation/algokit-utils 10.0.0-alpha.23 → 10.0.0-alpha.25

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.
Files changed (55) hide show
  1. package/package.json +1 -1
  2. package/packages/algod_client/src/models/block.js.map +1 -1
  3. package/packages/algod_client/src/models/block.mjs.map +1 -1
  4. package/packages/algod_client/src/models/eval-delta-key-value.js +2 -2
  5. package/packages/algod_client/src/models/eval-delta-key-value.js.map +1 -1
  6. package/packages/algod_client/src/models/eval-delta-key-value.mjs +2 -2
  7. package/packages/algod_client/src/models/eval-delta-key-value.mjs.map +1 -1
  8. package/packages/algod_client/src/models/eval-delta.js +2 -2
  9. package/packages/algod_client/src/models/eval-delta.js.map +1 -1
  10. package/packages/algod_client/src/models/eval-delta.mjs +2 -2
  11. package/packages/algod_client/src/models/eval-delta.mjs.map +1 -1
  12. package/packages/common/src/codecs/primitives/bytes-base64.js +26 -0
  13. package/packages/common/src/codecs/primitives/bytes-base64.js.map +1 -0
  14. package/packages/common/src/codecs/primitives/bytes-base64.mjs +25 -0
  15. package/packages/common/src/codecs/primitives/bytes-base64.mjs.map +1 -0
  16. package/packages/transact/src/logicsig.d.ts +36 -22
  17. package/packages/transact/src/logicsig.js +69 -52
  18. package/packages/transact/src/logicsig.js.map +1 -1
  19. package/packages/transact/src/logicsig.mjs +70 -54
  20. package/packages/transact/src/logicsig.mjs.map +1 -1
  21. package/packages/transact/src/multisig.d.ts +4 -1
  22. package/packages/transact/src/multisig.js +17 -0
  23. package/packages/transact/src/multisig.js.map +1 -1
  24. package/packages/transact/src/multisig.mjs +17 -0
  25. package/packages/transact/src/multisig.mjs.map +1 -1
  26. package/packages/transact/src/signer.js +4 -1
  27. package/packages/transact/src/signer.js.map +1 -1
  28. package/packages/transact/src/signer.mjs +4 -1
  29. package/packages/transact/src/signer.mjs.map +1 -1
  30. package/packages/transact/src/transactions/signed-transaction-meta.js +6 -6
  31. package/packages/transact/src/transactions/signed-transaction-meta.js.map +1 -1
  32. package/packages/transact/src/transactions/signed-transaction-meta.mjs +6 -6
  33. package/packages/transact/src/transactions/signed-transaction-meta.mjs.map +1 -1
  34. package/packages/transact/src/transactions/signed-transaction.d.ts +4 -4
  35. package/packages/transact/src/transactions/signed-transaction.js.map +1 -1
  36. package/packages/transact/src/transactions/signed-transaction.mjs.map +1 -1
  37. package/testing/account.js +4 -2
  38. package/testing/account.js.map +1 -1
  39. package/testing/account.mjs +4 -2
  40. package/testing/account.mjs.map +1 -1
  41. package/transact/index.d.ts +3 -3
  42. package/transact/index.js +2 -1
  43. package/transact/index.mjs +2 -2
  44. package/types/account-manager.d.ts +6 -8
  45. package/types/account-manager.js +13 -3
  46. package/types/account-manager.js.map +1 -1
  47. package/types/account-manager.mjs +13 -3
  48. package/types/account-manager.mjs.map +1 -1
  49. package/types/algorand-client-transaction-creator.d.ts +70 -70
  50. package/types/algorand-client-transaction-sender.d.ts +70 -70
  51. package/types/app-client.d.ts +83 -83
  52. package/types/app-client.js.map +1 -1
  53. package/types/app-client.mjs.map +1 -1
  54. package/types/app-factory.d.ts +48 -48
  55. package/types/testing.d.ts +2 -2
@@ -246,7 +246,7 @@ declare class AppFactory {
246
246
  sender: Address;
247
247
  signer: AddressWithTransactionSigner | TransactionSigner | undefined;
248
248
  method: ABIMethod;
249
- args: (Transaction | ABIValue | TransactionWithSigner | AppMethodCall<{
249
+ args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
250
250
  sender: SendingAddress;
251
251
  signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
252
252
  rekeyTo?: ReadableAddress | undefined;
@@ -258,8 +258,7 @@ declare class AppFactory {
258
258
  validityWindow?: number | bigint | undefined;
259
259
  firstValidRound?: bigint | undefined;
260
260
  lastValidRound?: bigint | undefined;
261
- appId: bigint;
262
- onComplete?: OnApplicationComplete.UpdateApplication | undefined;
261
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
263
262
  args?: Uint8Array[] | undefined;
264
263
  accountReferences?: ReadableAddress[] | undefined;
265
264
  appReferences?: bigint[] | undefined;
@@ -267,11 +266,19 @@ declare class AppFactory {
267
266
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
268
267
  accessReferences?: ResourceReference[] | undefined;
269
268
  rejectVersion?: number | undefined;
269
+ appId?: 0 | undefined;
270
270
  approvalProgram: string | Uint8Array;
271
271
  clearStateProgram: string | Uint8Array;
272
+ schema?: {
273
+ globalInts: number;
274
+ globalByteSlices: number;
275
+ localInts: number;
276
+ localByteSlices: number;
277
+ } | undefined;
278
+ extraProgramPages?: number | undefined;
272
279
  }> | AppMethodCall<{
273
- signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
274
280
  sender: SendingAddress;
281
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
275
282
  rekeyTo?: ReadableAddress | undefined;
276
283
  note?: string | Uint8Array | undefined;
277
284
  lease?: string | Uint8Array | undefined;
@@ -281,25 +288,18 @@ declare class AppFactory {
281
288
  validityWindow?: number | bigint | undefined;
282
289
  firstValidRound?: bigint | undefined;
283
290
  lastValidRound?: bigint | undefined;
291
+ appId: bigint;
292
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
284
293
  args?: Uint8Array[] | undefined;
285
- onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
286
294
  accountReferences?: ReadableAddress[] | undefined;
287
295
  appReferences?: bigint[] | undefined;
288
296
  assetReferences?: bigint[] | undefined;
289
297
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
290
298
  accessReferences?: ResourceReference[] | undefined;
291
299
  rejectVersion?: number | undefined;
292
- appId?: 0 | undefined;
293
300
  approvalProgram: string | Uint8Array;
294
301
  clearStateProgram: string | Uint8Array;
295
- schema?: {
296
- globalInts: number;
297
- globalByteSlices: number;
298
- localInts: number;
299
- localByteSlices: number;
300
- } | undefined;
301
- extraProgramPages?: number | undefined;
302
- }> | Promise<Transaction> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
302
+ }> | AppMethodCall<AppMethodCallParams> | 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 */
@@ -349,7 +349,7 @@ declare class AppFactory {
349
349
  sender: Address;
350
350
  signer: AddressWithTransactionSigner | TransactionSigner | undefined;
351
351
  method: ABIMethod;
352
- args: (Transaction | ABIValue | TransactionWithSigner | AppMethodCall<{
352
+ args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
353
353
  sender: SendingAddress;
354
354
  signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
355
355
  rekeyTo?: ReadableAddress | undefined;
@@ -361,8 +361,7 @@ declare class AppFactory {
361
361
  validityWindow?: number | bigint | undefined;
362
362
  firstValidRound?: bigint | undefined;
363
363
  lastValidRound?: bigint | undefined;
364
- appId: bigint;
365
- onComplete?: OnApplicationComplete.UpdateApplication | undefined;
364
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
366
365
  args?: Uint8Array[] | undefined;
367
366
  accountReferences?: ReadableAddress[] | undefined;
368
367
  appReferences?: bigint[] | undefined;
@@ -370,11 +369,19 @@ declare class AppFactory {
370
369
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
371
370
  accessReferences?: ResourceReference[] | undefined;
372
371
  rejectVersion?: number | undefined;
372
+ appId?: 0 | undefined;
373
373
  approvalProgram: string | Uint8Array;
374
374
  clearStateProgram: string | Uint8Array;
375
+ schema?: {
376
+ globalInts: number;
377
+ globalByteSlices: number;
378
+ localInts: number;
379
+ localByteSlices: number;
380
+ } | undefined;
381
+ extraProgramPages?: number | undefined;
375
382
  }> | AppMethodCall<{
376
- signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
377
383
  sender: SendingAddress;
384
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
378
385
  rekeyTo?: ReadableAddress | undefined;
379
386
  note?: string | Uint8Array | undefined;
380
387
  lease?: string | Uint8Array | undefined;
@@ -384,25 +391,18 @@ declare class AppFactory {
384
391
  validityWindow?: number | bigint | undefined;
385
392
  firstValidRound?: bigint | undefined;
386
393
  lastValidRound?: bigint | undefined;
394
+ appId: bigint;
395
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
387
396
  args?: Uint8Array[] | undefined;
388
- onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
389
397
  accountReferences?: ReadableAddress[] | undefined;
390
398
  appReferences?: bigint[] | undefined;
391
399
  assetReferences?: bigint[] | undefined;
392
400
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
393
401
  accessReferences?: ResourceReference[] | undefined;
394
402
  rejectVersion?: number | undefined;
395
- appId?: 0 | undefined;
396
403
  approvalProgram: string | Uint8Array;
397
404
  clearStateProgram: string | Uint8Array;
398
- schema?: {
399
- globalInts: number;
400
- globalByteSlices: number;
401
- localInts: number;
402
- localByteSlices: number;
403
- } | undefined;
404
- extraProgramPages?: number | undefined;
405
- }> | Promise<Transaction> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
405
+ }> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
406
406
  onComplete: OnApplicationComplete.UpdateApplication;
407
407
  };
408
408
  /** Return params for a deployment delete ABI call */
@@ -452,7 +452,7 @@ declare class AppFactory {
452
452
  sender: Address;
453
453
  signer: AddressWithTransactionSigner | TransactionSigner | undefined;
454
454
  method: ABIMethod;
455
- args: (Transaction | ABIValue | TransactionWithSigner | AppMethodCall<{
455
+ args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
456
456
  sender: SendingAddress;
457
457
  signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
458
458
  rekeyTo?: ReadableAddress | undefined;
@@ -464,8 +464,7 @@ declare class AppFactory {
464
464
  validityWindow?: number | bigint | undefined;
465
465
  firstValidRound?: bigint | undefined;
466
466
  lastValidRound?: bigint | undefined;
467
- appId: bigint;
468
- onComplete?: OnApplicationComplete.UpdateApplication | undefined;
467
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
469
468
  args?: Uint8Array[] | undefined;
470
469
  accountReferences?: ReadableAddress[] | undefined;
471
470
  appReferences?: bigint[] | undefined;
@@ -473,11 +472,19 @@ declare class AppFactory {
473
472
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
474
473
  accessReferences?: ResourceReference[] | undefined;
475
474
  rejectVersion?: number | undefined;
475
+ appId?: 0 | undefined;
476
476
  approvalProgram: string | Uint8Array;
477
477
  clearStateProgram: string | Uint8Array;
478
+ schema?: {
479
+ globalInts: number;
480
+ globalByteSlices: number;
481
+ localInts: number;
482
+ localByteSlices: number;
483
+ } | undefined;
484
+ extraProgramPages?: number | undefined;
478
485
  }> | AppMethodCall<{
479
- signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
480
486
  sender: SendingAddress;
487
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
481
488
  rekeyTo?: ReadableAddress | undefined;
482
489
  note?: string | Uint8Array | undefined;
483
490
  lease?: string | Uint8Array | undefined;
@@ -487,25 +494,18 @@ declare class AppFactory {
487
494
  validityWindow?: number | bigint | undefined;
488
495
  firstValidRound?: bigint | undefined;
489
496
  lastValidRound?: bigint | undefined;
497
+ appId: bigint;
498
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
490
499
  args?: Uint8Array[] | undefined;
491
- onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
492
500
  accountReferences?: ReadableAddress[] | undefined;
493
501
  appReferences?: bigint[] | undefined;
494
502
  assetReferences?: bigint[] | undefined;
495
503
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
496
504
  accessReferences?: ResourceReference[] | undefined;
497
505
  rejectVersion?: number | undefined;
498
- appId?: 0 | undefined;
499
506
  approvalProgram: string | Uint8Array;
500
507
  clearStateProgram: string | Uint8Array;
501
- schema?: {
502
- globalInts: number;
503
- globalByteSlices: number;
504
- localInts: number;
505
- localByteSlices: number;
506
- } | undefined;
507
- extraProgramPages?: number | undefined;
508
- }> | Promise<Transaction> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
508
+ }> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
509
509
  onComplete: OnApplicationComplete.DeleteApplication;
510
510
  };
511
511
  bare: {
@@ -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;
805
808
  createdRound: bigint;
806
809
  updatedRound: bigint;
807
810
  createdMetadata: AppDeployMetadata;
808
811
  deleted: boolean;
809
812
  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;
851
854
  createdRound: bigint;
852
855
  updatedRound: bigint;
853
856
  createdMetadata: AppDeployMetadata;
854
857
  deleted: boolean;
855
858
  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;
@@ -46,7 +46,7 @@ interface GetTestAccountParams {
46
46
  /** Whether to suppress the log (which includes a mnemonic) or not (default: do not suppress the log) */
47
47
  suppressLog?: boolean;
48
48
  /** Optional override for how to get a test account; this allows you to retrieve accounts from a known or cached list of accounts. */
49
- accountGetter?: (algorand: AlgorandClient) => Promise<AddressWithSigners>;
49
+ accountGetter?: (algorand: AlgorandClient) => Promise<Address & AddressWithSigners>;
50
50
  }
51
51
  /** Configuration for creating an Algorand testing fixture. */
52
52
  interface AlgorandFixtureConfig extends Partial<AlgoConfig> {
@@ -59,7 +59,7 @@ interface AlgorandFixtureConfig extends Partial<AlgoConfig> {
59
59
  /** The amount of funds to allocate to the default testing account, if not specified then it will get 10 ALGO. */
60
60
  testAccountFunding?: AlgoAmount;
61
61
  /** Optional override for how to get an account; this allows you to retrieve accounts from a known or cached list of accounts. */
62
- accountGetter?: (algod: AlgodClient, kmd?: KmdClient) => Promise<AddressWithSigners>;
62
+ accountGetter?: (algorand: AlgorandClient) => Promise<Address & AddressWithSigners>;
63
63
  }
64
64
  /** An Algorand automated testing fixture */
65
65
  interface AlgorandFixture {