@algorandfoundation/algorand-typescript-testing 1.0.0-beta.11 → 1.0.0-beta.13

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 (78) hide show
  1. package/abi-metadata.d.ts +2 -2
  2. package/collections/custom-key-map.d.ts +3 -2
  3. package/context-helpers/context-util.d.ts +2 -2
  4. package/context-helpers/internal-context.d.ts +6 -7
  5. package/decode-logs.d.ts +1 -1
  6. package/{runtime-helpers-Bq9M2MMd.js → encoded-types-CuGiO_X_.js} +247 -769
  7. package/encoded-types-CuGiO_X_.js.map +1 -0
  8. package/encoders.d.ts +3 -2
  9. package/impl/acct-params.d.ts +2 -2
  10. package/impl/app-global.d.ts +2 -2
  11. package/impl/app-local.d.ts +2 -2
  12. package/impl/app-params.d.ts +3 -3
  13. package/impl/asset-holding.d.ts +2 -2
  14. package/impl/asset-params.d.ts +4 -3
  15. package/impl/base.d.ts +2 -1
  16. package/impl/block.d.ts +4 -4
  17. package/impl/box.d.ts +2 -2
  18. package/impl/compiled.d.ts +2 -2
  19. package/impl/crypto.d.ts +10 -2
  20. package/impl/encoded-types.d.ts +9 -6
  21. package/impl/ensure-budget.d.ts +2 -1
  22. package/impl/global.d.ts +3 -3
  23. package/impl/gtxn.d.ts +9 -2
  24. package/impl/inner-transactions.d.ts +3 -2
  25. package/impl/itxn.d.ts +4 -4
  26. package/impl/log.d.ts +3 -0
  27. package/impl/logicSigArg.d.ts +1 -1
  28. package/impl/match.d.ts +1 -1
  29. package/impl/online-stake.d.ts +2 -2
  30. package/impl/pure.d.ts +7 -2
  31. package/impl/reference.d.ts +90 -0
  32. package/impl/scratch.d.ts +4 -4
  33. package/impl/state.d.ts +2 -1
  34. package/impl/transactions.d.ts +32 -31
  35. package/impl/txn.d.ts +3 -2
  36. package/impl/urange.d.ts +1 -1
  37. package/impl/voter-params.d.ts +2 -2
  38. package/index.mjs +23 -3491
  39. package/index.mjs.map +1 -1
  40. package/internal/arc4.mjs +12 -0
  41. package/internal/arc4.mjs.map +1 -0
  42. package/internal/op.mjs +15 -0
  43. package/internal/op.mjs.map +1 -0
  44. package/internal-arc4-C9t-aREu.js +25 -0
  45. package/internal-arc4-C9t-aREu.js.map +1 -0
  46. package/internal-arc4.d.ts +2 -0
  47. package/internal-op-DlLQ5gew.js +1597 -0
  48. package/internal-op-DlLQ5gew.js.map +1 -0
  49. package/internal-op.d.ts +19 -0
  50. package/internal.d.ts +32 -0
  51. package/internal.mjs +166 -0
  52. package/internal.mjs.map +1 -0
  53. package/package.json +14 -2
  54. package/pure-CKz3aJeT.js +1059 -0
  55. package/pure-CKz3aJeT.js.map +1 -0
  56. package/runtime-helpers-Dg42m-TM.js +436 -0
  57. package/runtime-helpers-Dg42m-TM.js.map +1 -0
  58. package/runtime-helpers.d.ts +1 -6
  59. package/runtime-helpers.mjs +4 -3
  60. package/runtime-helpers.mjs.map +1 -1
  61. package/state-BZHLEhrM.js +837 -0
  62. package/state-BZHLEhrM.js.map +1 -0
  63. package/subcontexts/contract-context.d.ts +3 -3
  64. package/subcontexts/ledger-context.d.ts +23 -22
  65. package/subcontexts/transaction-context.d.ts +8 -7
  66. package/test-execution-context.d.ts +7 -6
  67. package/test-transformer/index.mjs +34 -13
  68. package/test-transformer/index.mjs.map +1 -1
  69. package/test-transformer/node-factory.d.ts +2 -2
  70. package/test-transformer/visitors.d.ts +1 -1
  71. package/util.d.ts +3 -6
  72. package/value-generators/arc4.d.ts +1 -1
  73. package/value-generators/avm.d.ts +9 -9
  74. package/value-generators/txn.d.ts +3 -2
  75. package/impl/account.d.ts +0 -35
  76. package/impl/application.d.ts +0 -30
  77. package/impl/asset.d.ts +0 -24
  78. package/runtime-helpers-Bq9M2MMd.js.map +0 -1
package/abi-metadata.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { BaseContract, Contract } from '@algorandfoundation/algorand-typescript';
2
- import { AbiMethodConfig, BareMethodConfig, CreateOptions, OnCompleteActionStr } from '@algorandfoundation/algorand-typescript/arc4';
1
+ import type { BaseContract, Contract } from '@algorandfoundation/algorand-typescript';
2
+ import type { AbiMethodConfig, BareMethodConfig, CreateOptions, OnCompleteActionStr } from '@algorandfoundation/algorand-typescript/arc4';
3
3
  export interface AbiMetadata {
4
4
  methodName: string;
5
5
  methodSignature: string | undefined;
@@ -1,5 +1,6 @@
1
- import { Account, internal } from '@algorandfoundation/algorand-typescript';
2
- import { DeliberateAny } from '../typescript-helpers';
1
+ import type { Account } from '@algorandfoundation/algorand-typescript';
2
+ import { internal } from '@algorandfoundation/algorand-typescript';
3
+ import type { DeliberateAny } from '../typescript-helpers';
3
4
  export declare abstract class CustomKeyMap<TKey, TValue> implements Map<TKey, TValue> {
4
5
  #private;
5
6
  constructor(keySerializer: (key: TKey) => number | bigint | string);
@@ -1,3 +1,3 @@
1
- import { uint64 } from '@algorandfoundation/algorand-typescript';
2
- import { AbiMetadata } from '../abi-metadata';
1
+ import type { uint64 } from '@algorandfoundation/algorand-typescript';
2
+ import type { AbiMetadata } from '../abi-metadata';
3
3
  export declare const checkRoutingConditions: (appId: uint64, metadata: AbiMetadata) => void;
@@ -1,10 +1,9 @@
1
- import { Account, BaseContract, internal } from '@algorandfoundation/algorand-typescript';
2
- import { AccountData } from '../impl/account';
3
- import { ApplicationData } from '../impl/application';
4
- import { AssetData } from '../impl/asset';
5
- import { VoterData } from '../impl/voter-params';
6
- import { TransactionGroup } from '../subcontexts/transaction-context';
7
- import { TestExecutionContext } from '../test-execution-context';
1
+ import type { Account } from '@algorandfoundation/algorand-typescript';
2
+ import { BaseContract, internal } from '@algorandfoundation/algorand-typescript';
3
+ import type { AccountData, ApplicationData, AssetData } from '../impl/reference';
4
+ import type { VoterData } from '../impl/voter-params';
5
+ import type { TransactionGroup } from '../subcontexts/transaction-context';
6
+ import type { TestExecutionContext } from '../test-execution-context';
8
7
  /**
9
8
  * For accessing implementation specific functions, with a convenient single entry
10
9
  * point for other modules to import Also allows for a single place to check and
package/decode-logs.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { bytes } from '@algorandfoundation/algorand-typescript';
1
+ import type { bytes } from '@algorandfoundation/algorand-typescript';
2
2
  export type LogDecoding = 'i' | 's' | 'b';
3
3
  export type DecodedLog<T extends LogDecoding> = T extends 'i' ? bigint : T extends 's' ? string : Uint8Array;
4
4
  export type DecodedLogs<T extends [...LogDecoding[]]> = {