@algorandfoundation/puya-ts 1.2.0-beta.41 → 1.2.0-beta.42

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 (27) hide show
  1. package/{analyser-service-DRDPe9MV.js → analyser-service-DPSzV4Fr.js} +3 -3
  2. package/{analyser-service-DRDPe9MV.js.map → analyser-service-DPSzV4Fr.js.map} +1 -1
  3. package/analyserService.mjs +3 -3
  4. package/{arc4-clientgen-sFEhO2LJ.js → arc4-clientgen-B18Iy1pB.js} +2 -2
  5. package/{arc4-clientgen-sFEhO2LJ.js.map → arc4-clientgen-B18Iy1pB.js.map} +1 -1
  6. package/awst/json-serialize-awst.d.ts +5 -0
  7. package/bin/puyats-clientgen.mjs +5 -5
  8. package/bin/puyats-ls.mjs +6 -6
  9. package/bin/run-cli.mjs +8 -8
  10. package/{check-node-version-C1jtIFzd.js → check-node-version-CTUDg7U0.js} +3 -3
  11. package/{check-node-version-C1jtIFzd.js.map → check-node-version-CTUDg7U0.js.map} +1 -1
  12. package/cli.mjs +8 -8
  13. package/{compile-D3rBypqy.js → compile-fR7joa-i.js} +6 -6
  14. package/{compile-D3rBypqy.js.map → compile-fR7joa-i.js.map} +1 -1
  15. package/constants.d.ts +1 -1
  16. package/{contract-class-model-bHAozdbL.js → contract-class-model-DrIKzG8T.js} +3 -3
  17. package/{contract-class-model-bHAozdbL.js.map → contract-class-model-DrIKzG8T.js.map} +1 -1
  18. package/index.mjs +8 -8
  19. package/{options-lB3ucfHV.js → options-CjaCG-jG.js} +33 -2
  20. package/{options-lB3ucfHV.js.map → options-CjaCG-jG.js.map} +1 -1
  21. package/package.json +2 -2
  22. package/{resolve-puya-path-CxwX2Y7m.js → resolve-puya-path-bE8Kv9ba.js} +4 -4
  23. package/{resolve-puya-path-CxwX2Y7m.js.map → resolve-puya-path-bE8Kv9ba.js.map} +1 -1
  24. package/{semver-DSCCFKAJ.js → semver-CE5w1Rr0.js} +2 -2
  25. package/{semver-DSCCFKAJ.js.map → semver-CE5w1Rr0.js.map} +1 -1
  26. package/{util-Dz5YVLPa.js → util-Dg9vLXWz.js} +2 -2
  27. package/{util-Dz5YVLPa.js.map → util-Dg9vLXWz.js.map} +1 -1
package/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { A as ABICompatibleInstanceType, a as ALL_OP_ENUMS, g as AccountFunction, i as AnyPType, m as ApplicationCallTxnFunction, n as ApplicationFunction, o as ApprovalProgram, q as ArrayGeneric, s as ArrayLiteralPType, t as ArrayPType, x as AssetConfigTxnFunction, y as AssetFreezeTxnFunction, z as AssetFunction, B as AssetTransferTxnFunction, D as BaseContractClassType, E as BigIntLiteralPType, F as BigIntPType, K as BigUintFunction, O as BooleanFunction, P as BoxGeneric, Q as BoxMapGeneric, R as BoxMapPType, S as BoxPType, Y as BytesFunction, Z as BytesGeneric, _ as BytesPType, a2 as ClassMethodDecoratorContext, a3 as ClearStateProgram, a4 as ClusteredContractClassType, a5 as ClusteredPrototype, ad as ContractClassPType, ap as FixedArrayGeneric, aq as FixedArrayPType, ar as FunctionPType, as as GeneratorGeneric, at as GeneratorType, au as GenericPType, av as GlobalMapGeneric, aw as GlobalMapType, ax as GlobalStateGeneric, ay as GlobalStateType, aA as GroupTransactionPType, aB as ImmutableObjectPType, aD as InnerTransactionPType, aG as InstanceType, aJ as InternalType, aK as IntersectionPType, aM as IntrinsicEnumType, aN as IntrinsicFunctionGroupType, aO as IntrinsicFunctionGroupTypeType, aP as IntrinsicFunctionType, aQ as IntrinsicFunctionTypeType, aR as IterableIteratorGeneric, aS as IterableIteratorType, aT as ItxnParamsPType, aU as KeyRegistrationTxnFunction, aV as LibClassType, aW as LibFunctionType, aX as LibObjType, aY as LocalMapGeneric, aZ as LocalMapType, a_ as LocalStateGeneric, a$ as LocalStateType, b4 as LogicSigPType, b9 as MutableObjectPType, ba as MutableTuplePType, bb as NamespacePType, bf as NumberPType, bi as NumericLiteralPType, bj as ObjectLiteralPType, bk as ObjectWithOptionalFieldsType, bm as PType, bn as PaymentTxnFunction, bo as PolytypeClassMethodHelper, bp as PromiseGeneric, bq as PromiseType, bv as ReadonlyArrayGeneric, bw as ReadonlyArrayPType, bx as ReadonlyGeneric, by as ReadonlyTuplePType, bz as ReferenceArrayGeneric, bA as ReferenceArrayType, bL as StringFunction, bP as SuperPrototypeSelector, bQ as SuperPrototypeSelectorGeneric, bT as TemplateVarFunction, bU as TransactionFunction, bV as TransactionFunctionType, bX as TransientType, b_ as TypeParameterType, c5 as Uint64EnumMemberLiteralType, c6 as Uint64EnumMemberType, c7 as Uint64EnumType, c8 as Uint64Function, c9 as UnionPType, ca as UnsupportedType, ce as accountPType, cf as anyGtxnType, cg as anyItxnParamsType, ch as anyItxnType, ci as anyPType, cj as applicationCallGtxnType, ck as applicationCallItxnFunction, cl as applicationCallItxnParamsType, cm as applicationCallItxnType, cn as applicationPType, co as arc28EmitFunction, cp as arc4AbiMethodDecorator, cq as arc4BareMethodDecorator, cr as arc4BaseContractType, cs as assertFunction, ct as assertMatchFunction, cu as assetConfigGtxnType, cv as assetConfigItxnFunction, cw as assetConfigItxnParamsType, cx as assetConfigItxnType, cy as assetFreezeGtxnType, cz as assetFreezeItxnFunction, cA as assetFreezeItxnParamsType, cB as assetFreezeItxnType, cC as assetPType, cD as assetTransferGtxnType, cE as assetTransferItxnFunction, cF as assetTransferItxnParamsType, cG as assetTransferItxnType, cI as base64PType, cK as baseContractType, cL as bigIntPType, cN as biguintPType, cO as boolPType, cP as bytesPType, cQ as bzeroFunction, cR as cloneFunction, cT as compileFunction, cU as compiledContractType, cV as compiledLogicSigType, cW as contractOptionsDecorator, cY as ecPType, cZ as ecdsaPType, c_ as ensureBudgetFunction, d1 as errFunction, d2 as esSymbol, d9 as inputOnlyObjects, dd as isArrayType, dg as isObjectType, dh as isTupleLike, di as itoaMethod, dj as itxnComposePType, dk as keyRegistrationGtxnType, dl as keyRegistrationItxnFunction, dm as keyRegistrationItxnParamsType, dn as keyRegistrationItxnType, dp as logFunction, dq as loggedAssertFunction, dr as loggedErrFunction, dt as logicSigBaseType, du as logicSigOptionsDecorator, dv as matchFunction, dw as mimcConfigurationsPType, dy as neverPType, dA as nullPType, dB as numberPType, dC as onCompleteActionType, dD as opUpFeeSourceType, dF as paymentGtxnType, dG as paymentItxnFunction, dH as paymentItxnParamsType, dI as paymentItxnType, dK as readonlyDecorator, dM as stringPType, dN as submitGroupItxnFunction, dQ as transactionTypeType, dT as uint64PType, dY as undefinedPType, dZ as unknownPType, d_ as urangeFunction, e0 as validateEncodingFunction, e1 as voidPType, e2 as vrfVerifyPType, dW as uint8ArrayToBigInt, dV as uint8ArrayToBase64, dU as uint8ArrayToBase32, dX as uint8ArrayToUtf8, cJ as base64ToUint8Array, cH as base32ToUint8Array, cM as bigIntToUint8Array, d$ as utf8ToUint8Array } from './contract-class-model-bHAozdbL.js';
2
- export { f as AbsolutePath, b0 as LogLevel, b1 as LogSource, b2 as LoggingContext, bF as SourceLocation } from './contract-class-model-bHAozdbL.js';
3
- import { A as ARC4ArrayType, a as ARC4BoolClass, b as ARC4EncodedType, c as ARC4InstanceType, d as ARC4StrClass, e as ARC4StructClass, f as ARC4StructType, g as ARC4TupleGeneric, h as ARC4TupleType, i as AddressClass, B as ByteClass, j as ContractProxyGeneric, k as ContractProxyType, l as DynamicArrayGeneric, m as DynamicArrayType, n as DynamicBytesClass, S as StaticArrayGeneric, o as StaticArrayType, p as StaticBytesGeneric, q as StaticBytesType, r as TypedApplicationCallResponseGeneric, s as TypedApplicationCallResponseType, U as UFixedNxMGeneric, t as UFixedNxMType, u as UintN128Class, v as UintN16Class, w as UintN256Class, x as UintN32Class, y as UintN64Class, z as UintN8Class, E as UintNGeneric, F as UintNType, G as abiCallFunction, H as arc4AddressAlias, I as arc4BooleanType, J as arc4ByteAlias, K as arc4StringType, M as arc4StructBaseType, O as compileArc4Function, Q as convertBytesFunction, V as decodeArc4Function, Y as dynamicBytesType, Z as encodeArc4Function, $ as methodSelectorFunction, a4 as sizeOfFunction, a7 as uint8ArrayToHex, _ as hexToUint8Array } from './options-lB3ucfHV.js';
4
- export { C as CompileOptions, T as TypeResolver, a1 as processInputPaths, a2 as registerPTypes, a6 as typeRegistry } from './options-lB3ucfHV.js';
5
- export { c as compile } from './compile-D3rBypqy.js';
1
+ import { A as ABICompatibleInstanceType, a as ALL_OP_ENUMS, g as AccountFunction, i as AnyPType, m as ApplicationCallTxnFunction, n as ApplicationFunction, o as ApprovalProgram, q as ArrayGeneric, s as ArrayLiteralPType, t as ArrayPType, x as AssetConfigTxnFunction, y as AssetFreezeTxnFunction, z as AssetFunction, B as AssetTransferTxnFunction, D as BaseContractClassType, E as BigIntLiteralPType, F as BigIntPType, K as BigUintFunction, O as BooleanFunction, P as BoxGeneric, Q as BoxMapGeneric, R as BoxMapPType, S as BoxPType, Y as BytesFunction, Z as BytesGeneric, _ as BytesPType, a2 as ClassMethodDecoratorContext, a3 as ClearStateProgram, a4 as ClusteredContractClassType, a5 as ClusteredPrototype, ad as ContractClassPType, ap as FixedArrayGeneric, aq as FixedArrayPType, ar as FunctionPType, as as GeneratorGeneric, at as GeneratorType, au as GenericPType, av as GlobalMapGeneric, aw as GlobalMapType, ax as GlobalStateGeneric, ay as GlobalStateType, aA as GroupTransactionPType, aB as ImmutableObjectPType, aD as InnerTransactionPType, aG as InstanceType, aJ as InternalType, aK as IntersectionPType, aM as IntrinsicEnumType, aN as IntrinsicFunctionGroupType, aO as IntrinsicFunctionGroupTypeType, aP as IntrinsicFunctionType, aQ as IntrinsicFunctionTypeType, aR as IterableIteratorGeneric, aS as IterableIteratorType, aT as ItxnParamsPType, aU as KeyRegistrationTxnFunction, aV as LibClassType, aW as LibFunctionType, aX as LibObjType, aY as LocalMapGeneric, aZ as LocalMapType, a_ as LocalStateGeneric, a$ as LocalStateType, b4 as LogicSigPType, b9 as MutableObjectPType, ba as MutableTuplePType, bb as NamespacePType, bg as NumberPType, bj as NumericLiteralPType, bk as ObjectLiteralPType, bl as ObjectWithOptionalFieldsType, bn as PType, bo as PaymentTxnFunction, bp as PolytypeClassMethodHelper, bq as PromiseGeneric, br as PromiseType, bw as ReadonlyArrayGeneric, bx as ReadonlyArrayPType, by as ReadonlyGeneric, bz as ReadonlyTuplePType, bA as ReferenceArrayGeneric, bB as ReferenceArrayType, bM as StringFunction, bQ as SuperPrototypeSelector, bR as SuperPrototypeSelectorGeneric, bU as TemplateVarFunction, bV as TransactionFunction, bW as TransactionFunctionType, bY as TransientType, b$ as TypeParameterType, c6 as Uint64EnumMemberLiteralType, c7 as Uint64EnumMemberType, c8 as Uint64EnumType, c9 as Uint64Function, ca as UnionPType, cb as UnsupportedType, cf as accountPType, cg as anyGtxnType, ch as anyItxnParamsType, ci as anyItxnType, cj as anyPType, ck as applicationCallGtxnType, cl as applicationCallItxnFunction, cm as applicationCallItxnParamsType, cn as applicationCallItxnType, co as applicationPType, cp as arc28EmitFunction, cq as arc4AbiMethodDecorator, cr as arc4BareMethodDecorator, cs as arc4BaseContractType, ct as assertFunction, cu as assertMatchFunction, cv as assetConfigGtxnType, cw as assetConfigItxnFunction, cx as assetConfigItxnParamsType, cy as assetConfigItxnType, cz as assetFreezeGtxnType, cA as assetFreezeItxnFunction, cB as assetFreezeItxnParamsType, cC as assetFreezeItxnType, cD as assetPType, cE as assetTransferGtxnType, cF as assetTransferItxnFunction, cG as assetTransferItxnParamsType, cH as assetTransferItxnType, cJ as base64PType, cL as baseContractType, cM as bigIntPType, cO as biguintPType, cP as boolPType, cQ as bytesPType, cR as bzeroFunction, cS as cloneFunction, cU as compileFunction, cV as compiledContractType, cW as compiledLogicSigType, cX as contractOptionsDecorator, cZ as ecPType, c_ as ecdsaPType, c$ as ensureBudgetFunction, d2 as errFunction, d3 as esSymbol, da as inputOnlyObjects, de as isArrayType, dh as isObjectType, di as isTupleLike, dj as itoaMethod, dk as itxnComposePType, dl as keyRegistrationGtxnType, dm as keyRegistrationItxnFunction, dn as keyRegistrationItxnParamsType, dp as keyRegistrationItxnType, dq as logFunction, dr as loggedAssertFunction, ds as loggedErrFunction, du as logicSigBaseType, dv as logicSigOptionsDecorator, dw as matchFunction, dx as mimcConfigurationsPType, dz as neverPType, dB as nullPType, dC as numberPType, dD as onCompleteActionType, dE as opUpFeeSourceType, dG as paymentGtxnType, dH as paymentItxnFunction, dI as paymentItxnParamsType, dJ as paymentItxnType, dL as readonlyDecorator, dN as stringPType, dO as submitGroupItxnFunction, dR as transactionTypeType, dU as uint64PType, dZ as undefinedPType, d_ as unknownPType, d$ as urangeFunction, e1 as validateEncodingFunction, e2 as voidPType, e3 as vrfVerifyPType, dX as uint8ArrayToBigInt, dW as uint8ArrayToBase64, dV as uint8ArrayToBase32, dY as uint8ArrayToUtf8, cK as base64ToUint8Array, cI as base32ToUint8Array, cN as bigIntToUint8Array, e0 as utf8ToUint8Array } from './contract-class-model-DrIKzG8T.js';
2
+ export { f as AbsolutePath, b0 as LogLevel, b1 as LogSource, b2 as LoggingContext, bG as SourceLocation } from './contract-class-model-DrIKzG8T.js';
3
+ import { A as ARC4ArrayType, a as ARC4BoolClass, b as ARC4EncodedType, c as ARC4InstanceType, d as ARC4StrClass, e as ARC4StructClass, f as ARC4StructType, g as ARC4TupleGeneric, h as ARC4TupleType, i as AddressClass, B as ByteClass, j as ContractProxyGeneric, k as ContractProxyType, l as DynamicArrayGeneric, m as DynamicArrayType, n as DynamicBytesClass, S as StaticArrayGeneric, o as StaticArrayType, p as StaticBytesGeneric, q as StaticBytesType, r as TypedApplicationCallResponseGeneric, s as TypedApplicationCallResponseType, U as UFixedNxMGeneric, t as UFixedNxMType, u as UintN128Class, v as UintN16Class, w as UintN256Class, x as UintN32Class, y as UintN64Class, z as UintN8Class, E as UintNGeneric, F as UintNType, G as abiCallFunction, H as arc4AddressAlias, I as arc4BooleanType, J as arc4ByteAlias, K as arc4StringType, M as arc4StructBaseType, O as compileArc4Function, Q as convertBytesFunction, V as decodeArc4Function, Y as dynamicBytesType, Z as encodeArc4Function, $ as methodSelectorFunction, a4 as sizeOfFunction, a7 as uint8ArrayToHex, _ as hexToUint8Array } from './options-CjaCG-jG.js';
4
+ export { C as CompileOptions, T as TypeResolver, a1 as processInputPaths, a2 as registerPTypes, a6 as typeRegistry } from './options-CjaCG-jG.js';
5
+ export { c as compile } from './compile-fR7joa-i.js';
6
6
  import 'typescript';
7
7
  import 'node:fs';
8
8
  import 'node:util';
@@ -22,13 +22,13 @@ import 'net';
22
22
  import 'change-case';
23
23
  import 'glob';
24
24
  import 'minimatch';
25
- import './arc4-clientgen-sFEhO2LJ.js';
25
+ import './arc4-clientgen-B18Iy1pB.js';
26
26
  import '@algorandfoundation/algokit-utils/abi';
27
27
  import 'fs';
28
28
  import 'fs/promises';
29
- import './semver-DSCCFKAJ.js';
29
+ import './semver-CE5w1Rr0.js';
30
30
  import 'node:url';
31
- import './resolve-puya-path-CxwX2Y7m.js';
31
+ import './resolve-puya-path-bE8Kv9ba.js';
32
32
  import 'signal-exit';
33
33
  import 'tar';
34
34
  import 'node:zlib';
@@ -1,4 +1,4 @@
1
- import { aV as LibClassType, aa as Constants, cO as boolPType, e4 as wtypes, dM as stringPType, au as GenericPType, cS as codeInvariant, by as ReadonlyTuplePType, ba as MutableTuplePType, bm as PType, bi as NumericLiteralPType, dT as uint64PType, cN as biguintPType, t as ArrayPType, bw as ReadonlyArrayPType, ce as accountPType, cP as bytesPType, aW as LibFunctionType, ad as ContractClassPType, cU as compiledContractType, aB as ImmutableObjectPType, cm as applicationCallItxnType, e1 as voidPType, b9 as MutableObjectPType, aI as InternalError, a6 as CodeError, dO as throwError, bK as StringConstant, W as BytesConstant, aH as IntegerConstant, M as BoolConstant, h as AddressConstant, b6 as MethodConstant, ah as DecimalConstant, bS as TemplateVar, b1 as LogSource, b0 as LogLevel, da as instanceOfAny, bD as SingleEvaluation, cc as VarExpression, dz as nodeFactory, be as NotSupported, ds as logger, bZ as TupleItemExpression, an as FieldExpression, aC as IndexExpression, bY as TupleExpression, k as AppStateExpression, j as AppAccountStateExpression, T as BoxValueExpression, bJ as StateGetEx, bI as StateGet, bX as TransientType, dB as numberPType, cL as bigIntPType, co as arc28EmitFunction, s as ArrayLiteralPType, E as BigIntLiteralPType, d8 as hasFlags, dc as invariant, L as BinaryBooleanOperator, bb as NamespacePType, cK as baseContractType, cr as arc4BaseContractType, bR as SymbolName, c9 as UnionPType, aA as GroupTransactionPType, cf as anyGtxnType, c6 as Uint64EnumMemberType, b_ as TypeParameterType, d2 as esSymbol, dZ as unknownPType, dy as neverPType, ci as anyPType, dA as nullPType, dY as undefinedPType, a5 as ClusteredPrototype, aK as IntersectionPType, dt as logicSigBaseType, b4 as LogicSigPType, c7 as Uint64EnumType, ar as FunctionPType, o as ApprovalProgram, a3 as ClearStateProgram, de as isIn, R as BoxMapPType, S as BoxPType, aZ as LocalMapType, a$ as LocalStateType, aw as GlobalMapType, ay as GlobalStateType, bP as SuperPrototypeSelector, a4 as ClusteredContractClassType, bF as SourceLocation, db as intersectsFlags, d4 as extractModuleName, dP as toSubScript, f as AbsolutePath, a8 as CompilationSet, b as ARC4ABIMethodConfig, ag as ContractReference, _ as BytesPType, ak as EqualityComparison, bj as ObjectLiteralPType, dg as isObjectType$1, dK as readonlyDecorator, cp as arc4AbiMethodDecorator, cq as arc4BareMethodDecorator, d as ARC4CreateOption, bc as NewArray, bl as OnCompletionAction, X as BytesEncoding, cM as bigIntToUint8Array, ao as FixableCodeError, c0 as UInt64BinaryOperator, dS as tryConvertEnum, bg as NumericComparison, c4 as UInt64UnaryOperator, di as itoaMethod, c8 as Uint64Function, c2 as UInt64PostfixUnaryOperator, aq as FixedArrayPType, aS as IterableIteratorType, aR as IterableIteratorGeneric, cn as applicationPType, cC as assetPType, dC as onCompleteActionType, e3 as wrapInCodeError, cH as base32ToUint8Array, dQ as transactionTypeType, bW as TransactionKind, cT as compileFunction, cV as compiledLogicSigType, b5 as LogicSigReference, aD as InnerTransactionPType, bV as TransactionFunctionType, dN as submitGroupItxnFunction, aT as ItxnParamsPType, d6 as getInnerTransactionType, d7 as getItxnParamsType, a9 as CompiledContract, c as ARC4BareMethodConfig, b7 as MethodSignature, c$ as enumFromValue, q as ArrayGeneric, ap as FixedArrayGeneric, e5 as zipStrict, dd as isArrayType, dh as isTupleLike, dv as matchFunction, ct as assertMatchFunction, H as BigUIntBinaryOperator, K as BigUintFunction, J as BigUIntPostfixUnaryOperator, d$ as utf8ToUint8Array, U as BytesBinaryOperator, aL as IntrinsicCall, dX as uint8ArrayToUtf8, Y as BytesFunction, Z as BytesGeneric, cJ as base64ToUint8Array, d0 as enumKeyFromValue, a0 as BytesUnaryOperator, cR as cloneFunction, cW as contractOptionsDecorator, c_ as ensureBudgetFunction, bt as PuyaLibFunction, dD as opUpFeeSourceType, aM as IntrinsicEnumType, du as logicSigOptionsDecorator, aG as InstanceType, bk as ObjectWithOptionalFieldsType, e2 as vrfVerifyPType, dw as mimcConfigurationsPType, cZ as ecdsaPType, cY as ecPType, cI as base64PType, aN as IntrinsicFunctionGroupType, al as Expression, aP as IntrinsicFunctionType, bz as ReferenceArrayGeneric, bA as ReferenceArrayType, l as AppStorageKind, ca as UnsupportedType, dR as transientTypeErrors, ax as GlobalStateGeneric, bT as TemplateVarFunction, d5 as getGroupTransactionType, dj as itxnComposePType, c5 as Uint64EnumMemberLiteralType, cg as anyItxnParamsType, e0 as validateEncodingFunction, O as BooleanFunction, bL as StringFunction, bv as ReadonlyArrayGeneric, bx as ReadonlyGeneric, as as GeneratorGeneric, at as GeneratorType, bp as PromiseGeneric, bq as PromiseType, a2 as ClassMethodDecoratorContext, bQ as SuperPrototypeSelectorGeneric, bo as PolytypeClassMethodHelper, dp as logFunction, cs as assertFunction, d1 as errFunction, dq as loggedAssertFunction, dr as loggedErrFunction, d_ as urangeFunction, cQ as bzeroFunction, aQ as IntrinsicFunctionTypeType, a as ALL_OP_ENUMS, aO as IntrinsicFunctionGroupTypeType, av as GlobalMapGeneric, a_ as LocalStateGeneric, aY as LocalMapGeneric, P as BoxGeneric, Q as BoxMapGeneric, n as ApplicationFunction, g as AccountFunction, z as AssetFunction, dF as paymentGtxnType, bn as PaymentTxnFunction, dk as keyRegistrationGtxnType, aU as KeyRegistrationTxnFunction, cu as assetConfigGtxnType, x as AssetConfigTxnFunction, cD as assetTransferGtxnType, B as AssetTransferTxnFunction, cy as assetFreezeGtxnType, y as AssetFreezeTxnFunction, cj as applicationCallGtxnType, m as ApplicationCallTxnFunction, bU as TransactionFunction, dG as paymentItxnFunction, dl as keyRegistrationItxnFunction, cv as assetConfigItxnFunction, cE as assetTransferItxnFunction, cz as assetFreezeItxnFunction, ck as applicationCallItxnFunction, dI as paymentItxnType, dn as keyRegistrationItxnType, cx as assetConfigItxnType, cG as assetTransferItxnType, cB as assetFreezeItxnType, dH as paymentItxnParamsType, dm as keyRegistrationItxnParamsType, cw as assetConfigItxnParamsType, cF as assetTransferItxnParamsType, cA as assetFreezeItxnParamsType, cl as applicationCallItxnParamsType, d9 as inputOnlyObjects, ab as Contract, aF as InstanceSuperMethodTarget, am as ExpressionStatement, w as AssertExpression, cd as VoidConstant, p as ArrayConcat, u as ArrayPop, v as ArrayReplace, r as ArrayLength, bE as SizeOf, cb as UpdateInnerTransaction, a1 as CheckedMaybe, bG as StageInnerTransactions, bM as SubmitInnerTransaction, C as AssignmentExpression, a7 as CommaExpression, bh as NumericComparisonExpression, V as BytesComparisonExpression, bs as PuyaLibCall, c3 as UInt64UnaryOperation, c1 as UInt64PostfixUnaryOperation, I as BigUIntPostfixUnaryOperation, $ as BytesUnaryOperation, b$ as UInt64BinaryOperation, G as BigUIntBinaryOperation, N as BooleanBinaryOperation, bd as Not, ai as Emit, bu as Range, aj as Enumeration, bC as Reversed, bH as StateExists, e as ARC4Router, b8 as MethodSignatureString, bO as SubroutineID, af as ContractMethodTarget, aE as InstanceMethodTarget, dU as uint8ArrayToBase32, dx as mkDirIfNotExists, dE as patchErrorLocation, az as Goto, bB as ReturnStatement, ae as ContractMethod, dL as sameSets, ac as ContractClassModel, bN as Subroutine, b3 as LogicSigClassModel, dJ as ptypeIn, d3 as expandMaybeArray, b2 as LoggingContext, br as PuyaError } from './contract-class-model-bHAozdbL.js';
1
+ import { aV as LibClassType, aa as Constants, cP as boolPType, e5 as wtypes, dN as stringPType, au as GenericPType, cT as codeInvariant, bz as ReadonlyTuplePType, ba as MutableTuplePType, bn as PType, bj as NumericLiteralPType, dU as uint64PType, cO as biguintPType, t as ArrayPType, bx as ReadonlyArrayPType, cf as accountPType, cQ as bytesPType, aW as LibFunctionType, ad as ContractClassPType, cV as compiledContractType, aB as ImmutableObjectPType, cn as applicationCallItxnType, e2 as voidPType, b9 as MutableObjectPType, aI as InternalError, a6 as CodeError, dP as throwError, bL as StringConstant, W as BytesConstant, aH as IntegerConstant, M as BoolConstant, h as AddressConstant, b6 as MethodConstant, ah as DecimalConstant, bT as TemplateVar, b1 as LogSource, b0 as LogLevel, db as instanceOfAny, bE as SingleEvaluation, cd as VarExpression, dA as nodeFactory, bf as NotSupported, dt as logger, b_ as TupleItemExpression, an as FieldExpression, aC as IndexExpression, bZ as TupleExpression, k as AppStateExpression, j as AppAccountStateExpression, T as BoxValueExpression, bK as StateGetEx, bJ as StateGet, bY as TransientType, dC as numberPType, cM as bigIntPType, cp as arc28EmitFunction, s as ArrayLiteralPType, E as BigIntLiteralPType, d9 as hasFlags, dd as invariant, L as BinaryBooleanOperator, bb as NamespacePType, cL as baseContractType, cs as arc4BaseContractType, bS as SymbolName, ca as UnionPType, aA as GroupTransactionPType, cg as anyGtxnType, c7 as Uint64EnumMemberType, b$ as TypeParameterType, d3 as esSymbol, d_ as unknownPType, dz as neverPType, cj as anyPType, dB as nullPType, dZ as undefinedPType, a5 as ClusteredPrototype, aK as IntersectionPType, du as logicSigBaseType, b4 as LogicSigPType, c8 as Uint64EnumType, ar as FunctionPType, o as ApprovalProgram, a3 as ClearStateProgram, df as isIn, R as BoxMapPType, S as BoxPType, aZ as LocalMapType, a$ as LocalStateType, aw as GlobalMapType, ay as GlobalStateType, bQ as SuperPrototypeSelector, a4 as ClusteredContractClassType, bG as SourceLocation, dc as intersectsFlags, d5 as extractModuleName, dQ as toSubScript, f as AbsolutePath, a8 as CompilationSet, b as ARC4ABIMethodConfig, ag as ContractReference, _ as BytesPType, ak as EqualityComparison, bk as ObjectLiteralPType, dh as isObjectType$1, dL as readonlyDecorator, cq as arc4AbiMethodDecorator, cr as arc4BareMethodDecorator, d as ARC4CreateOption, bc as NewArray, bm as OnCompletionAction, X as BytesEncoding, cN as bigIntToUint8Array, ao as FixableCodeError, c1 as UInt64BinaryOperator, dT as tryConvertEnum, bh as NumericComparison, c5 as UInt64UnaryOperator, dj as itoaMethod, c9 as Uint64Function, c3 as UInt64PostfixUnaryOperator, aq as FixedArrayPType, aS as IterableIteratorType, aR as IterableIteratorGeneric, co as applicationPType, cD as assetPType, dD as onCompleteActionType, e4 as wrapInCodeError, cI as base32ToUint8Array, dR as transactionTypeType, bX as TransactionKind, cU as compileFunction, cW as compiledLogicSigType, b5 as LogicSigReference, aD as InnerTransactionPType, bW as TransactionFunctionType, dO as submitGroupItxnFunction, aT as ItxnParamsPType, d7 as getInnerTransactionType, d8 as getItxnParamsType, a9 as CompiledContract, c as ARC4BareMethodConfig, b7 as MethodSignature, d0 as enumFromValue, q as ArrayGeneric, ap as FixedArrayGeneric, e6 as zipStrict, de as isArrayType, di as isTupleLike, dw as matchFunction, cu as assertMatchFunction, H as BigUIntBinaryOperator, K as BigUintFunction, J as BigUIntPostfixUnaryOperator, e0 as utf8ToUint8Array, U as BytesBinaryOperator, aL as IntrinsicCall, dY as uint8ArrayToUtf8, Y as BytesFunction, Z as BytesGeneric, cK as base64ToUint8Array, d1 as enumKeyFromValue, a0 as BytesUnaryOperator, cS as cloneFunction, cX as contractOptionsDecorator, c$ as ensureBudgetFunction, bu as PuyaLibFunction, dE as opUpFeeSourceType, aM as IntrinsicEnumType, dv as logicSigOptionsDecorator, aG as InstanceType, bl as ObjectWithOptionalFieldsType, e3 as vrfVerifyPType, dx as mimcConfigurationsPType, c_ as ecdsaPType, cZ as ecPType, cJ as base64PType, aN as IntrinsicFunctionGroupType, al as Expression, aP as IntrinsicFunctionType, bA as ReferenceArrayGeneric, bB as ReferenceArrayType, l as AppStorageKind, cb as UnsupportedType, dS as transientTypeErrors, ax as GlobalStateGeneric, bU as TemplateVarFunction, d6 as getGroupTransactionType, dk as itxnComposePType, c6 as Uint64EnumMemberLiteralType, ch as anyItxnParamsType, e1 as validateEncodingFunction, O as BooleanFunction, bM as StringFunction, bw as ReadonlyArrayGeneric, by as ReadonlyGeneric, as as GeneratorGeneric, at as GeneratorType, bq as PromiseGeneric, br as PromiseType, a2 as ClassMethodDecoratorContext, bR as SuperPrototypeSelectorGeneric, bp as PolytypeClassMethodHelper, dq as logFunction, ct as assertFunction, d2 as errFunction, dr as loggedAssertFunction, ds as loggedErrFunction, d$ as urangeFunction, cR as bzeroFunction, aQ as IntrinsicFunctionTypeType, a as ALL_OP_ENUMS, aO as IntrinsicFunctionGroupTypeType, av as GlobalMapGeneric, a_ as LocalStateGeneric, aY as LocalMapGeneric, P as BoxGeneric, Q as BoxMapGeneric, n as ApplicationFunction, g as AccountFunction, z as AssetFunction, dG as paymentGtxnType, bo as PaymentTxnFunction, dl as keyRegistrationGtxnType, aU as KeyRegistrationTxnFunction, cv as assetConfigGtxnType, x as AssetConfigTxnFunction, cE as assetTransferGtxnType, B as AssetTransferTxnFunction, cz as assetFreezeGtxnType, y as AssetFreezeTxnFunction, ck as applicationCallGtxnType, m as ApplicationCallTxnFunction, bV as TransactionFunction, dH as paymentItxnFunction, dm as keyRegistrationItxnFunction, cw as assetConfigItxnFunction, cF as assetTransferItxnFunction, cA as assetFreezeItxnFunction, cl as applicationCallItxnFunction, dJ as paymentItxnType, dp as keyRegistrationItxnType, cy as assetConfigItxnType, cH as assetTransferItxnType, cC as assetFreezeItxnType, dI as paymentItxnParamsType, dn as keyRegistrationItxnParamsType, cx as assetConfigItxnParamsType, cG as assetTransferItxnParamsType, cB as assetFreezeItxnParamsType, cm as applicationCallItxnParamsType, da as inputOnlyObjects, ab as Contract, aF as InstanceSuperMethodTarget, am as ExpressionStatement, w as AssertExpression, ce as VoidConstant, p as ArrayConcat, u as ArrayPop, v as ArrayReplace, r as ArrayLength, bF as SizeOf, cc as UpdateInnerTransaction, a1 as CheckedMaybe, bH as StageInnerTransactions, bN as SubmitInnerTransaction, C as AssignmentExpression, a7 as CommaExpression, bi as NumericComparisonExpression, V as BytesComparisonExpression, bt as PuyaLibCall, c4 as UInt64UnaryOperation, c2 as UInt64PostfixUnaryOperation, I as BigUIntPostfixUnaryOperation, $ as BytesUnaryOperation, c0 as UInt64BinaryOperation, G as BigUIntBinaryOperation, N as BooleanBinaryOperation, be as Not, ai as Emit, bv as Range, aj as Enumeration, bD as Reversed, bI as StateExists, e as ARC4Router, bd as Node, b8 as MethodSignatureString, bP as SubroutineID, af as ContractMethodTarget, aE as InstanceMethodTarget, dV as uint8ArrayToBase32, dy as mkDirIfNotExists, dF as patchErrorLocation, az as Goto, bC as ReturnStatement, ae as ContractMethod, dM as sameSets, ac as ContractClassModel, bO as Subroutine, b3 as LogicSigClassModel, dK as ptypeIn, d4 as expandMaybeArray, b2 as LoggingContext, bs as PuyaError } from './contract-class-model-DrIKzG8T.js';
2
2
  import * as fs from 'node:fs';
3
3
  import 'node:util';
4
4
  import pathe__default, { normalize } from 'pathe';
@@ -16625,12 +16625,43 @@ class SnakeCaseSerializer {
16625
16625
  }
16626
16626
  class AwstSerializer extends SnakeCaseSerializer {
16627
16627
  options;
16628
+ static ID_KEY = '_$%!#ID';
16629
+ static REF_KEY = '_$%!#REF';
16628
16630
  constructor(options) {
16629
16631
  super(options?.spaces ?? 0);
16630
16632
  this.options = options;
16631
16633
  }
16634
+ #known = new Map();
16632
16635
  #singleEvals = new SymbolToNumber();
16636
+ serialize(obj) {
16637
+ try {
16638
+ return super.serialize(obj);
16639
+ }
16640
+ finally {
16641
+ this.#known.clear();
16642
+ }
16643
+ }
16633
16644
  serializerFunction(key, value) {
16645
+ if (!this.shouldTrackValue(value)) {
16646
+ return this.doSerializeValue(key, value);
16647
+ }
16648
+ let id = this.#known.get(value);
16649
+ if (id !== undefined) {
16650
+ return {
16651
+ [AwstSerializer.REF_KEY]: id,
16652
+ };
16653
+ }
16654
+ id = this.#known.size;
16655
+ this.#known.set(value, id);
16656
+ return {
16657
+ [AwstSerializer.ID_KEY]: id,
16658
+ ...this.doSerializeValue(key, value),
16659
+ };
16660
+ }
16661
+ shouldTrackValue(value) {
16662
+ return value instanceof Node || value instanceof wtypes.WType;
16663
+ }
16664
+ doSerializeValue(key, value) {
16634
16665
  if (typeof value === 'bigint') {
16635
16666
  return serializeBigInt(value);
16636
16667
  }
@@ -23483,4 +23514,4 @@ class PuyaOptions {
23483
23514
  }
23484
23515
 
23485
23516
  export { methodSelectorFunction as $, ARC4ArrayType as A, ByteClass as B, CompileOptions as C, DefaultMap as D, UintNGeneric as E, UintNType as F, abiCallFunction as G, arc4AddressAlias as H, arc4BooleanType as I, arc4ByteAlias as J, arc4StringType as K, LocalsCoalescingStrategy as L, arc4StructBaseType as M, buildAwst as N, compileArc4Function as O, PuyaService as P, convertBytesFunction as Q, createTsProgram as R, StaticArrayGeneric as S, TypeResolver as T, UFixedNxMGeneric as U, decodeArc4Function as V, defaultPuyaOptions as W, deserializeAndLog as X, dynamicBytesType as Y, encodeArc4Function as Z, hexToUint8Array as _, ARC4BoolClass as a, parseCliTemplateVar as a0, processInputPaths as a1, registerPTypes as a2, relinquishThread as a3, sizeOfFunction as a4, sleep as a5, typeRegistry as a6, uint8ArrayToHex as a7, validateAwst as a8, ARC4EncodedType as b, ARC4InstanceType as c, ARC4StrClass as d, ARC4StructClass as e, ARC4StructType as f, ARC4TupleGeneric as g, ARC4TupleType as h, AddressClass as i, ContractProxyGeneric as j, ContractProxyType as k, DynamicArrayGeneric as l, DynamicArrayType as m, DynamicBytesClass as n, StaticArrayType as o, StaticBytesGeneric as p, StaticBytesType as q, TypedApplicationCallResponseGeneric as r, TypedApplicationCallResponseType as s, UFixedNxMType as t, UintN128Class as u, UintN16Class as v, UintN256Class as w, UintN32Class as x, UintN64Class as y, UintN8Class as z };
23486
- //# sourceMappingURL=options-lB3ucfHV.js.map
23517
+ //# sourceMappingURL=options-CjaCG-jG.js.map