@algorandfoundation/puya-ts 1.2.0-beta.34 → 1.2.0-beta.35

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 (34) hide show
  1. package/{analyser-service-DjrWRS0-.js → analyser-service-B0DpIecU.js} +3 -3
  2. package/{analyser-service-DjrWRS0-.js.map → analyser-service-B0DpIecU.js.map} +1 -1
  3. package/analyserService.mjs +3 -3
  4. package/{arc4-clientgen-CZtNN1eT.js → arc4-clientgen-Dd2qW-1d.js} +2 -2
  5. package/{arc4-clientgen-CZtNN1eT.js.map → arc4-clientgen-Dd2qW-1d.js.map} +1 -1
  6. package/awst/wtypes.d.ts +2 -5
  7. package/awst_build/ast-visitors/base-visitor.d.ts +0 -1
  8. package/awst_build/ast-visitors/contract-method-visitor.d.ts +3 -3
  9. package/awst_build/eb/index.d.ts +0 -1
  10. package/awst_build/ptypes/arc4-types.d.ts +1 -1
  11. package/awst_build/ptypes/index.d.ts +1 -3
  12. package/awst_build/type-resolver.d.ts +1 -1
  13. package/bin/puyats-clientgen.mjs +5 -5
  14. package/bin/puyats-ls.mjs +6 -6
  15. package/bin/run-cli.mjs +8 -8
  16. package/{check-node-version-BYGc-qxw.js → check-node-version-Df1hdewH.js} +3 -3
  17. package/{check-node-version-BYGc-qxw.js.map → check-node-version-Df1hdewH.js.map} +1 -1
  18. package/cli.mjs +8 -8
  19. package/{compile-BKk4hPli.js → compile-DGk1ftqu.js} +6 -6
  20. package/{compile-BKk4hPli.js.map → compile-DGk1ftqu.js.map} +1 -1
  21. package/{contract-class-model-Dpn9A-pJ.js → contract-class-model-cK8F4WVM.js} +5 -8
  22. package/contract-class-model-cK8F4WVM.js.map +1 -0
  23. package/index.mjs +8 -8
  24. package/{options-BCW57sPn.js → options-sBHEIhey.js} +36 -54
  25. package/options-sBHEIhey.js.map +1 -0
  26. package/package.json +2 -2
  27. package/{resolve-puya-path-CdZID0Yd.js → resolve-puya-path-Bgh6DuRP.js} +4 -4
  28. package/{resolve-puya-path-CdZID0Yd.js.map → resolve-puya-path-Bgh6DuRP.js.map} +1 -1
  29. package/{semver-a7hIj_hk.js → semver-T4bO0VEo.js} +2 -2
  30. package/{semver-a7hIj_hk.js.map → semver-T4bO0VEo.js.map} +1 -1
  31. package/{util-nZLj7LWS.js → util-CA3Q0W2C.js} +2 -2
  32. package/{util-nZLj7LWS.js.map → util-CA3Q0W2C.js.map} +1 -1
  33. package/contract-class-model-Dpn9A-pJ.js.map +0 -1
  34. package/options-BCW57sPn.js.map +0 -1
package/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { o as ABICompatibleInstanceType, q as ALL_OP_ENUMS, r as AccountFunction, s as AnyPType, t as ApplicationFunctionType, u as ApplicationTxnFunction, w as ApprovalProgram, x as ArrayGeneric, y as ArrayLiteralPType, z as ArrayPType, B as AssetConfigTxnFunction, D as AssetFreezeTxnFunction, E as AssetFunction, F as AssetTransferTxnFunction, G as BaseContractClassType, H as BigIntLiteralPType, J as BigIntPType, K as BigUintFunction, M as BooleanFunction, N as BoxGeneric, Q as BoxMapGeneric, R as BoxMapPType, S as BoxPType, T as BytesFunction, U as BytesGeneric, V as BytesPType, W as ClassMethodDecoratorContext, X as ClearStateProgram, Y as ClusteredContractClassType, Z as ClusteredPrototype, _ as ContractClassPType, $ as FixedArrayGeneric, a0 as FixedArrayPType, a1 as FunctionPType, a2 as GeneratorGeneric, a3 as GeneratorType, a4 as GenericPType, a5 as GlobalMapGeneric, a6 as GlobalMapType, a7 as GlobalStateGeneric, a8 as GlobalStateType, a9 as GroupTransactionPType, aa as ImmutableObjectPType, ab as InnerTransactionPType, ac as InstanceType, ad as InternalType, ae as IntersectionPType, af as IntrinsicEnumType, ag as IntrinsicFunctionGroupType, ah as IntrinsicFunctionGroupTypeType, ai as IntrinsicFunctionType, aj as IntrinsicFunctionTypeType, ak as IterableIteratorGeneric, al as IterableIteratorType, am as ItxnParamsPType, an as KeyRegistrationTxnFunction, ao as LibClassType, ap as LibFunctionType, aq as LibObjType, ar as LocalMapGeneric, as as LocalMapType, at as LocalStateGeneric, au as LocalStateType, av as LogicSigPType, aw as MutableObjectPType, ax as MutableTuplePType, ay as NamespacePType, az as NumberPType, aA as NumericLiteralPType, aB as ObjectLiteralPType, aC as ObjectWithOptionalFieldsType, aD as PType, aE as PaymentTxnFunction, aF as PolytypeClassMethodHelper, aG as PromiseGeneric, aH as PromiseType, aI as ReadonlyArrayGeneric, aJ as ReadonlyArrayPType, aK as ReadonlyGeneric, aL as ReadonlyTuplePType, aM as ReferenceArrayGeneric, aN as ReferenceArrayType, aO as StringFunction, aP as SuperPrototypeSelector, aQ as SuperPrototypeSelectorGeneric, aR as TemplateVarFunction, aS as TransactionFunction, aT as TransactionFunctionType, aU as TransientType, aV as TypeParameterType, aW as Uint64EnumMemberLiteralType, aX as Uint64EnumMemberType, aY as Uint64EnumType, aZ as Uint64Function, a_ as UnionPType, a$ as UnsupportedType, e as accountPType, h as anyGtxnType, b0 as anyItxnParamsType, b1 as anyItxnType, b2 as anyPType, n as applicationCallGtxnType, b3 as applicationCallItxnFn, b4 as applicationCallItxnParamsType, b5 as applicationItxnType, f as applicationPType, b6 as arc28EmitFunction, b7 as arc4AbiMethodDecorator, b8 as arc4BareMethodDecorator, b9 as arc4BaseContractType, ba as assertFunction, bb as assertMatchFunction, i as assetConfigGtxnType, bc as assetConfigItxnFn, bd as assetConfigItxnParamsType, be as assetConfigItxnType, m as assetFreezeGtxnType, bf as assetFreezeItxnFn, bg as assetFreezeItxnParamsType, bh as assetFreezeItxnType, g as assetPType, j as assetTransferGtxnType, bi as assetTransferItxnFn, bj as assetTransferItxnParamsType, bk as assetTransferItxnType, bl as base64PType, bm as baseContractType, bn as bigIntPType, bo as biguintPType, bp as boolPType, bq as bytesPType, br as bzeroFunction, bs as cloneFunctionPType, bt as compileFunctionType, bu as compiledContractType, bv as compiledLogicSigType, bw as contractOptionsDecorator, bx as ecPType, by as ecdsaPType, bz as ensureBudgetFunction, bA as errFunction, bB as esSymbol, bC as inputOnlyObjects, bD as isArrayType, bE as isObjectType, bF as isTupleLike, bG as itoaMethod, bH as itxnComposePType, k as keyRegistrationGtxnType, bI as keyRegistrationItxnFn, bJ as keyRegistrationItxnParamsType, bK as keyRegistrationItxnType, bL as logFunction, bM as loggedAssertFunction, bN as loggedErrFunction, bO as logicSigBaseType, bP as logicSigOptionsDecorator, bQ as matchFunction, bR as mimcConfigurationsPType, bS as neverPType, bT as nullPType, bU as numberPType, bV as onCompleteActionType, bW as opUpFeeSourceType, p as paymentGtxnType, bX as paymentItxnFn, bY as paymentItxnParamsType, bZ as paymentItxnType, b_ as readonlyDecorator, b$ as stringPType, c0 as submitGroupItxnFunction, c1 as transactionTypeType, c2 as uint64PType, c3 as undefinedPType, c4 as unknownPType, c5 as urangeFunction, c6 as validateEncodingFunctionPType, v as voidPType, c7 as vrfVerifyPType, c8 as uint8ArrayToBigInt, c9 as uint8ArrayToBase64, ca as uint8ArrayToBase32, cb as uint8ArrayToUtf8, cc as base64ToUint8Array, cd as base32ToUint8Array, ce as bigIntToUint8Array, cf as utf8ToUint8Array } from './contract-class-model-Dpn9A-pJ.js';
2
- export { A as AbsolutePath, L as LogLevel, cg as LogSource, a as LoggingContext, ch as SourceLocation } from './contract-class-model-Dpn9A-pJ.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 ARC4TupleType, h as AddressClass, i as Arc4TupleGeneric, B as ByteClass, C as ContractProxyGeneric, j as ContractProxyType, D as DynamicArrayGeneric, k as DynamicArrayType, l as DynamicBytesConstructor, m as DynamicBytesType, S as StaticArrayGeneric, n as StaticArrayType, o as StaticBytesGeneric, p as StaticBytesType, T as TypedApplicationCallResponseGeneric, q as TypedApplicationCallResponseType, U as UFixedNxMGeneric, r as UFixedNxMType, s as UintN128Class, t as UintN16Class, u as UintN256Class, v as UintN32Class, w as UintN64Class, x as UintN8Class, y as UintNGeneric, z as UintNType, E as abiCallFunction, F as arc4AddressAlias, G as arc4BooleanType, H as arc4ByteAlias, I as arc4StringType, J as arc4StructBaseType, K as compileArc4Function, L as convertBytesFunction, M as decodeArc4Function, N as encodeArc4Function, O as methodSelectorFunction, P as sizeOfFunction, Q as uint8ArrayToHex, R as hexToUint8Array } from './options-BCW57sPn.js';
4
- export { V as CompileOptions, W as TypeResolver, X as processInputPaths, Y as registerPTypes, Z as typeRegistry } from './options-BCW57sPn.js';
5
- export { c as compile } from './compile-BKk4hPli.js';
1
+ import { o as ABICompatibleInstanceType, q as ALL_OP_ENUMS, r as AccountFunction, s as AnyPType, t as ApplicationFunctionType, u as ApplicationTxnFunction, w as ApprovalProgram, x as ArrayGeneric, y as ArrayLiteralPType, z as ArrayPType, B as AssetConfigTxnFunction, D as AssetFreezeTxnFunction, E as AssetFunction, F as AssetTransferTxnFunction, G as BaseContractClassType, H as BigIntLiteralPType, J as BigIntPType, K as BigUintFunction, M as BooleanFunction, N as BoxGeneric, Q as BoxMapGeneric, R as BoxMapPType, S as BoxPType, T as BytesFunction, U as BytesGeneric, V as BytesPType, W as ClassMethodDecoratorContext, X as ClearStateProgram, Y as ClusteredContractClassType, Z as ClusteredPrototype, _ as ContractClassPType, $ as FixedArrayGeneric, a0 as FixedArrayPType, a1 as FunctionPType, a2 as GeneratorGeneric, a3 as GeneratorType, a4 as GenericPType, a5 as GlobalMapGeneric, a6 as GlobalMapType, a7 as GlobalStateGeneric, a8 as GlobalStateType, a9 as GroupTransactionPType, aa as ImmutableObjectPType, ab as InnerTransactionPType, ac as InstanceType, ad as InternalType, ae as IntersectionPType, af as IntrinsicEnumType, ag as IntrinsicFunctionGroupType, ah as IntrinsicFunctionGroupTypeType, ai as IntrinsicFunctionType, aj as IntrinsicFunctionTypeType, ak as IterableIteratorGeneric, al as IterableIteratorType, am as ItxnParamsPType, an as KeyRegistrationTxnFunction, ao as LibClassType, ap as LibFunctionType, aq as LibObjType, ar as LocalMapGeneric, as as LocalMapType, at as LocalStateGeneric, au as LocalStateType, av as LogicSigPType, aw as MutableObjectPType, ax as MutableTuplePType, ay as NamespacePType, az as NumberPType, aA as NumericLiteralPType, aB as ObjectLiteralPType, aC as ObjectWithOptionalFieldsType, aD as PType, aE as PaymentTxnFunction, aF as PolytypeClassMethodHelper, aG as PromiseGeneric, aH as PromiseType, aI as ReadonlyArrayGeneric, aJ as ReadonlyArrayPType, aK as ReadonlyGeneric, aL as ReadonlyTuplePType, aM as ReferenceArrayGeneric, aN as ReferenceArrayType, aO as StringFunction, aP as SuperPrototypeSelector, aQ as SuperPrototypeSelectorGeneric, aR as TemplateVarFunction, aS as TransactionFunction, aT as TransactionFunctionType, aU as TransientType, aV as TypeParameterType, aW as Uint64EnumMemberLiteralType, aX as Uint64EnumMemberType, aY as Uint64EnumType, aZ as Uint64Function, a_ as UnionPType, a$ as UnsupportedType, e as accountPType, h as anyGtxnType, b0 as anyItxnParamsType, b1 as anyItxnType, b2 as anyPType, n as applicationCallGtxnType, b3 as applicationCallItxnFn, b4 as applicationCallItxnParamsType, b5 as applicationItxnType, f as applicationPType, b6 as arc28EmitFunction, b7 as arc4AbiMethodDecorator, b8 as arc4BareMethodDecorator, b9 as arc4BaseContractType, ba as assertFunction, bb as assertMatchFunction, i as assetConfigGtxnType, bc as assetConfigItxnFn, bd as assetConfigItxnParamsType, be as assetConfigItxnType, m as assetFreezeGtxnType, bf as assetFreezeItxnFn, bg as assetFreezeItxnParamsType, bh as assetFreezeItxnType, g as assetPType, j as assetTransferGtxnType, bi as assetTransferItxnFn, bj as assetTransferItxnParamsType, bk as assetTransferItxnType, bl as base64PType, bm as baseContractType, bn as bigIntPType, bo as biguintPType, bp as boolPType, bq as bytesPType, br as bzeroFunction, bs as cloneFunctionPType, bt as compileFunctionType, bu as compiledContractType, bv as compiledLogicSigType, bw as contractOptionsDecorator, bx as ecPType, by as ecdsaPType, bz as ensureBudgetFunction, bA as errFunction, bB as esSymbol, bC as inputOnlyObjects, bD as isArrayType, bE as isObjectType, bF as isTupleLike, bG as itoaMethod, bH as itxnComposePType, k as keyRegistrationGtxnType, bI as keyRegistrationItxnFn, bJ as keyRegistrationItxnParamsType, bK as keyRegistrationItxnType, bL as logFunction, bM as loggedAssertFunction, bN as loggedErrFunction, bO as logicSigBaseType, bP as logicSigOptionsDecorator, bQ as matchFunction, bR as mimcConfigurationsPType, bS as neverPType, bT as nullPType, bU as numberPType, bV as onCompleteActionType, bW as opUpFeeSourceType, p as paymentGtxnType, bX as paymentItxnFn, bY as paymentItxnParamsType, bZ as paymentItxnType, b_ as readonlyDecorator, b$ as stringPType, c0 as submitGroupItxnFunction, c1 as transactionTypeType, c2 as uint64PType, c3 as undefinedPType, c4 as unknownPType, c5 as urangeFunction, c6 as validateEncodingFunctionPType, v as voidPType, c7 as vrfVerifyPType, c8 as uint8ArrayToBigInt, c9 as uint8ArrayToBase64, ca as uint8ArrayToBase32, cb as uint8ArrayToUtf8, cc as base64ToUint8Array, cd as base32ToUint8Array, ce as bigIntToUint8Array, cf as utf8ToUint8Array } from './contract-class-model-cK8F4WVM.js';
2
+ export { A as AbsolutePath, L as LogLevel, cg as LogSource, a as LoggingContext, ch as SourceLocation } from './contract-class-model-cK8F4WVM.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 ARC4TupleType, h as AddressClass, i as Arc4TupleGeneric, B as ByteClass, C as ContractProxyGeneric, j as ContractProxyType, D as DynamicArrayGeneric, k as DynamicArrayType, l as DynamicBytesConstructor, m as DynamicBytesType, S as StaticArrayGeneric, n as StaticArrayType, o as StaticBytesGeneric, p as StaticBytesType, T as TypedApplicationCallResponseGeneric, q as TypedApplicationCallResponseType, U as UFixedNxMGeneric, r as UFixedNxMType, s as UintN128Class, t as UintN16Class, u as UintN256Class, v as UintN32Class, w as UintN64Class, x as UintN8Class, y as UintNGeneric, z as UintNType, E as abiCallFunction, F as arc4AddressAlias, G as arc4BooleanType, H as arc4ByteAlias, I as arc4StringType, J as arc4StructBaseType, K as compileArc4Function, L as convertBytesFunction, M as decodeArc4Function, N as encodeArc4Function, O as methodSelectorFunction, P as sizeOfFunction, Q as uint8ArrayToHex, R as hexToUint8Array } from './options-sBHEIhey.js';
4
+ export { V as CompileOptions, W as TypeResolver, X as processInputPaths, Y as registerPTypes, Z as typeRegistry } from './options-sBHEIhey.js';
5
+ export { c as compile } from './compile-DGk1ftqu.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-CZtNN1eT.js';
25
+ import './arc4-clientgen-Dd2qW-1d.js';
26
26
  import '@algorandfoundation/algokit-utils/abi';
27
27
  import 'fs';
28
28
  import 'fs/promises';
29
- import './semver-a7hIj_hk.js';
29
+ import './semver-T4bO0VEo.js';
30
30
  import 'node:url';
31
- import './resolve-puya-path-CdZID0Yd.js';
31
+ import './resolve-puya-path-Bgh6DuRP.js';
32
32
  import 'signal-exit';
33
33
  import 'tar';
34
34
  import 'node:zlib';
@@ -1,4 +1,4 @@
1
- import { ao as LibClassType, d as Constants, bp as boolPType, co as wtypes, b$ as stringPType, a4 as GenericPType, cp as codeInvariant, aL as ReadonlyTuplePType, ax as MutableTuplePType, aD as PType, aA as NumericLiteralPType, c2 as uint64PType, bo as biguintPType, z as ArrayPType, aJ as ReadonlyArrayPType, e as accountPType, bq as bytesPType, ap as LibFunctionType, cq as invariant, _ as ContractClassPType, bu as compiledContractType, aa as ImmutableObjectPType, b5 as applicationItxnType, v as voidPType, aw as MutableObjectPType, I as InternalError, c as CodeError, cr as throwError, cs as StringConstant, ct as BytesConstant, cu as IntegerConstant, cv as BoolConstant, cw as AddressConstant, cx as MethodConstant, cy as DecimalConstant, cz as TemplateVar, cg as LogSource, L as LogLevel, cA as instanceOfAny, cB as SingleEvaluation, cC as VarExpression, cD as nodeFactory, cE as NotSupported, l as logger, cF as TupleItemExpression, cG as FieldExpression, cH as IndexExpression, cI as TupleExpression, cJ as AppStateExpression, cK as AppAccountStateExpression, cL as BoxValueExpression, cM as ReinterpretCast, cN as StateGetEx, cO as StateGet, aU as TransientType, bU as numberPType, bn as bigIntPType, b6 as arc28EmitFunction, y as ArrayLiteralPType, H as BigIntLiteralPType, cP as hasFlags, cQ as BinaryBooleanOperator, ay as NamespacePType, bm as baseContractType, b9 as arc4BaseContractType, cR as SymbolName, a_ as UnionPType, a9 as GroupTransactionPType, h as anyGtxnType, aX as Uint64EnumMemberType, aV as TypeParameterType, bB as esSymbol, c4 as unknownPType, bS as neverPType, b2 as anyPType, bT as nullPType, c3 as undefinedPType, Z as ClusteredPrototype, ae as IntersectionPType, bO as logicSigBaseType, av as LogicSigPType, aY as Uint64EnumType, a1 as FunctionPType, w as ApprovalProgram, X as ClearStateProgram, cn as isIn, R as BoxMapPType, S as BoxPType, as as LocalMapType, au as LocalStateType, a6 as GlobalMapType, a8 as GlobalStateType, aP as SuperPrototypeSelector, Y as ClusteredContractClassType, ch as SourceLocation, cS as intersectsFlags, cT as extractModuleName, cU as toSubScript, A as AbsolutePath, cV as CompilationSet, cW as ARC4ABIMethodConfig, C as ContractReference, V as BytesPType, cX as EqualityComparison, aB as ObjectLiteralPType, bE as isObjectType$1, b_ as readonlyDecorator, b7 as arc4AbiMethodDecorator, b8 as arc4BareMethodDecorator, cY as ARC4CreateOption, cZ as NewArray, O as OnCompletionAction, c_ as BytesEncoding, ce as bigIntToUint8Array, c$ as FixableCodeError, d0 as UInt64BinaryOperator, d1 as tryConvertEnum, d2 as NumericComparison, d3 as UInt64UnaryOperator, bG as itoaMethod, aZ as Uint64Function, d4 as UInt64PostfixUnaryOperator, a0 as FixedArrayPType, al as IterableIteratorType, ak as IterableIteratorGeneric, f as applicationPType, g as assetPType, bV as onCompleteActionType, d5 as wrapInCodeError, cd as base32ToUint8Array, c1 as transactionTypeType, d6 as TransactionKind, bt as compileFunctionType, bv as compiledLogicSigType, d7 as LogicSigReference, ab as InnerTransactionPType, aT as TransactionFunctionType, c0 as submitGroupItxnFunction, am as ItxnParamsPType, d8 as getInnerTransactionType, d9 as getItxnParamsType, da as CompiledContract, db as ARC4BareMethodConfig, dc as MethodSignature, cj as enumFromValue, x as ArrayGeneric, $ as FixedArrayGeneric, cm as zipStrict, bD as isArrayType, bF as isTupleLike, bQ as matchFunction, bb as assertMatchFunction, dd as BigUIntBinaryOperator, K as BigUintFunction, de as BigUIntPostfixUnaryOperator, cf as utf8ToUint8Array, df as BytesBinaryOperator, dg as IntrinsicCall, cb as uint8ArrayToUtf8, T as BytesFunction, U as BytesGeneric, cc as base64ToUint8Array, dh as enumKeyFromValue, di as BytesUnaryOperator, bs as cloneFunctionPType, bw as contractOptionsDecorator, bz as ensureBudgetFunction, dj as PuyaLibFunction, bW as opUpFeeSourceType, af as IntrinsicEnumType, bP as logicSigOptionsDecorator, ac as InstanceType, aC as ObjectWithOptionalFieldsType, c7 as vrfVerifyPType, bR as mimcConfigurationsPType, by as ecdsaPType, bx as ecPType, bl as base64PType, ag as IntrinsicFunctionGroupType, dk as Expression, ai as IntrinsicFunctionType, aM as ReferenceArrayGeneric, aN as ReferenceArrayType, dl as AppStorageKind, a$ as UnsupportedType, dm as transientTypeErrors, a7 as GlobalStateGeneric, aR as TemplateVarFunction, dn as getGroupTransactionType, bH as itxnComposePType, aW as Uint64EnumMemberLiteralType, b0 as anyItxnParamsType, c6 as validateEncodingFunctionPType, M as BooleanFunction, aO as StringFunction, aI as ReadonlyArrayGeneric, aK as ReadonlyGeneric, a2 as GeneratorGeneric, a3 as GeneratorType, aG as PromiseGeneric, aH as PromiseType, W as ClassMethodDecoratorContext, aQ as SuperPrototypeSelectorGeneric, aF as PolytypeClassMethodHelper, bL as logFunction, ba as assertFunction, bA as errFunction, bM as loggedAssertFunction, bN as loggedErrFunction, c5 as urangeFunction, br as bzeroFunction, aj as IntrinsicFunctionTypeType, q as ALL_OP_ENUMS, ah as IntrinsicFunctionGroupTypeType, a5 as GlobalMapGeneric, at as LocalStateGeneric, ar as LocalMapGeneric, N as BoxGeneric, Q as BoxMapGeneric, t as ApplicationFunctionType, r as AccountFunction, E as AssetFunction, p as paymentGtxnType, aE as PaymentTxnFunction, k as keyRegistrationGtxnType, an as KeyRegistrationTxnFunction, i as assetConfigGtxnType, B as AssetConfigTxnFunction, j as assetTransferGtxnType, F as AssetTransferTxnFunction, m as assetFreezeGtxnType, D as AssetFreezeTxnFunction, n as applicationCallGtxnType, u as ApplicationTxnFunction, aS as TransactionFunction, bX as paymentItxnFn, bI as keyRegistrationItxnFn, bc as assetConfigItxnFn, bi as assetTransferItxnFn, bf as assetFreezeItxnFn, b3 as applicationCallItxnFn, bZ as paymentItxnType, bK as keyRegistrationItxnType, be as assetConfigItxnType, bk as assetTransferItxnType, bh as assetFreezeItxnType, bY as paymentItxnParamsType, bJ as keyRegistrationItxnParamsType, bd as assetConfigItxnParamsType, bj as assetTransferItxnParamsType, bg as assetFreezeItxnParamsType, b4 as applicationCallItxnParamsType, bC as inputOnlyObjects, dp as Contract, dq as InstanceSuperMethodTarget, dr as ExpressionStatement, ds as AssertExpression, dt as VoidConstant, du as ArrayConcat, dv as ArrayPop, dw as ArrayReplace, dx as ArrayLength, dy as SizeOf, dz as UpdateInnerTransaction, dA as CheckedMaybe, dB as StageInnerTransactions, dC as SubmitInnerTransaction, dD as AssignmentExpression, dE as CommaExpression, dF as NumericComparisonExpression, dG as BytesComparisonExpression, dH as PuyaLibCall, dI as UInt64UnaryOperation, dJ as UInt64PostfixUnaryOperation, dK as BigUIntPostfixUnaryOperation, dL as BytesUnaryOperation, dM as UInt64BinaryOperation, dN as BigUIntBinaryOperation, dO as BooleanBinaryOperation, dP as Not, dQ as Emit, dR as Range, dS as Enumeration, dT as Reversed, dU as StateExists, dV as ARC4Router, dW as MethodSignatureString, dX as SubroutineID, dY as ContractMethodTarget, dZ as InstanceMethodTarget, ca as uint8ArrayToBase32, ck as mkDirIfNotExists, d_ as patchErrorLocation, d$ as Goto, e0 as ReturnStatement, e1 as ContractMethod, e2 as sameSets, b as ContractClassModel, e3 as Subroutine, e4 as LogicSigClassModel, e5 as ptypeIn, e6 as expandMaybeArray, a as LoggingContext, P as PuyaError } from './contract-class-model-Dpn9A-pJ.js';
1
+ import { ao as LibClassType, d as Constants, bp as boolPType, co as wtypes, b$ as stringPType, a4 as GenericPType, cp as codeInvariant, aL as ReadonlyTuplePType, ax as MutableTuplePType, aD as PType, aA as NumericLiteralPType, c2 as uint64PType, bo as biguintPType, z as ArrayPType, aJ as ReadonlyArrayPType, e as accountPType, bq as bytesPType, ap as LibFunctionType, cq as invariant, _ as ContractClassPType, bu as compiledContractType, aa as ImmutableObjectPType, b5 as applicationItxnType, v as voidPType, aw as MutableObjectPType, I as InternalError, c as CodeError, cr as throwError, cs as StringConstant, ct as BytesConstant, cu as IntegerConstant, cv as BoolConstant, cw as AddressConstant, cx as MethodConstant, cy as DecimalConstant, cz as TemplateVar, cg as LogSource, L as LogLevel, cA as instanceOfAny, cB as SingleEvaluation, cC as VarExpression, cD as nodeFactory, cE as NotSupported, l as logger, cF as TupleItemExpression, cG as FieldExpression, cH as IndexExpression, cI as TupleExpression, cJ as AppStateExpression, cK as AppAccountStateExpression, cL as BoxValueExpression, cM as StateGetEx, cN as StateGet, aU as TransientType, bU as numberPType, bn as bigIntPType, b6 as arc28EmitFunction, y as ArrayLiteralPType, H as BigIntLiteralPType, cO as hasFlags, cP as BinaryBooleanOperator, ay as NamespacePType, bm as baseContractType, b9 as arc4BaseContractType, cQ as SymbolName, a_ as UnionPType, a9 as GroupTransactionPType, h as anyGtxnType, aX as Uint64EnumMemberType, aV as TypeParameterType, bB as esSymbol, c4 as unknownPType, bS as neverPType, b2 as anyPType, bT as nullPType, c3 as undefinedPType, Z as ClusteredPrototype, ae as IntersectionPType, bO as logicSigBaseType, av as LogicSigPType, aY as Uint64EnumType, a1 as FunctionPType, w as ApprovalProgram, X as ClearStateProgram, cn as isIn, R as BoxMapPType, S as BoxPType, as as LocalMapType, au as LocalStateType, a6 as GlobalMapType, a8 as GlobalStateType, aP as SuperPrototypeSelector, Y as ClusteredContractClassType, ch as SourceLocation, cR as intersectsFlags, cS as extractModuleName, cT as toSubScript, A as AbsolutePath, cU as CompilationSet, cV as ARC4ABIMethodConfig, C as ContractReference, V as BytesPType, cW as EqualityComparison, aB as ObjectLiteralPType, bE as isObjectType$1, b_ as readonlyDecorator, b7 as arc4AbiMethodDecorator, b8 as arc4BareMethodDecorator, cX as ARC4CreateOption, cY as NewArray, O as OnCompletionAction, cZ as BytesEncoding, ce as bigIntToUint8Array, c_ as FixableCodeError, c$ as UInt64BinaryOperator, d0 as tryConvertEnum, d1 as NumericComparison, d2 as UInt64UnaryOperator, bG as itoaMethod, aZ as Uint64Function, d3 as UInt64PostfixUnaryOperator, a0 as FixedArrayPType, al as IterableIteratorType, ak as IterableIteratorGeneric, f as applicationPType, g as assetPType, bV as onCompleteActionType, d4 as wrapInCodeError, cd as base32ToUint8Array, c1 as transactionTypeType, d5 as TransactionKind, bt as compileFunctionType, bv as compiledLogicSigType, d6 as LogicSigReference, ab as InnerTransactionPType, aT as TransactionFunctionType, c0 as submitGroupItxnFunction, am as ItxnParamsPType, d7 as getInnerTransactionType, d8 as getItxnParamsType, d9 as CompiledContract, da as ARC4BareMethodConfig, db as MethodSignature, cj as enumFromValue, x as ArrayGeneric, $ as FixedArrayGeneric, cm as zipStrict, bD as isArrayType, bF as isTupleLike, bQ as matchFunction, bb as assertMatchFunction, dc as BigUIntBinaryOperator, K as BigUintFunction, dd as BigUIntPostfixUnaryOperator, cf as utf8ToUint8Array, de as BytesBinaryOperator, df as IntrinsicCall, cb as uint8ArrayToUtf8, T as BytesFunction, U as BytesGeneric, cc as base64ToUint8Array, dg as enumKeyFromValue, dh as BytesUnaryOperator, bs as cloneFunctionPType, bw as contractOptionsDecorator, bz as ensureBudgetFunction, di as PuyaLibFunction, bW as opUpFeeSourceType, af as IntrinsicEnumType, bP as logicSigOptionsDecorator, ac as InstanceType, aC as ObjectWithOptionalFieldsType, c7 as vrfVerifyPType, bR as mimcConfigurationsPType, by as ecdsaPType, bx as ecPType, bl as base64PType, ag as IntrinsicFunctionGroupType, dj as Expression, ai as IntrinsicFunctionType, aM as ReferenceArrayGeneric, aN as ReferenceArrayType, dk as AppStorageKind, a$ as UnsupportedType, dl as transientTypeErrors, a7 as GlobalStateGeneric, aR as TemplateVarFunction, dm as getGroupTransactionType, bH as itxnComposePType, aW as Uint64EnumMemberLiteralType, b0 as anyItxnParamsType, c6 as validateEncodingFunctionPType, M as BooleanFunction, aO as StringFunction, aI as ReadonlyArrayGeneric, aK as ReadonlyGeneric, a2 as GeneratorGeneric, a3 as GeneratorType, aG as PromiseGeneric, aH as PromiseType, W as ClassMethodDecoratorContext, aQ as SuperPrototypeSelectorGeneric, aF as PolytypeClassMethodHelper, bL as logFunction, ba as assertFunction, bA as errFunction, bM as loggedAssertFunction, bN as loggedErrFunction, c5 as urangeFunction, br as bzeroFunction, aj as IntrinsicFunctionTypeType, q as ALL_OP_ENUMS, ah as IntrinsicFunctionGroupTypeType, a5 as GlobalMapGeneric, at as LocalStateGeneric, ar as LocalMapGeneric, N as BoxGeneric, Q as BoxMapGeneric, t as ApplicationFunctionType, r as AccountFunction, E as AssetFunction, p as paymentGtxnType, aE as PaymentTxnFunction, k as keyRegistrationGtxnType, an as KeyRegistrationTxnFunction, i as assetConfigGtxnType, B as AssetConfigTxnFunction, j as assetTransferGtxnType, F as AssetTransferTxnFunction, m as assetFreezeGtxnType, D as AssetFreezeTxnFunction, n as applicationCallGtxnType, u as ApplicationTxnFunction, aS as TransactionFunction, bX as paymentItxnFn, bI as keyRegistrationItxnFn, bc as assetConfigItxnFn, bi as assetTransferItxnFn, bf as assetFreezeItxnFn, b3 as applicationCallItxnFn, bZ as paymentItxnType, bK as keyRegistrationItxnType, be as assetConfigItxnType, bk as assetTransferItxnType, bh as assetFreezeItxnType, bY as paymentItxnParamsType, bJ as keyRegistrationItxnParamsType, bd as assetConfigItxnParamsType, bj as assetTransferItxnParamsType, bg as assetFreezeItxnParamsType, b4 as applicationCallItxnParamsType, bC as inputOnlyObjects, dn as Contract, dp as InstanceSuperMethodTarget, dq as ExpressionStatement, dr as AssertExpression, ds as VoidConstant, dt as ArrayConcat, du as ArrayPop, dv as ArrayReplace, dw as ArrayLength, dx as SizeOf, dy as UpdateInnerTransaction, dz as CheckedMaybe, dA as StageInnerTransactions, dB as SubmitInnerTransaction, dC as AssignmentExpression, dD as CommaExpression, dE as NumericComparisonExpression, dF as BytesComparisonExpression, dG as PuyaLibCall, dH as UInt64UnaryOperation, dI as UInt64PostfixUnaryOperation, dJ as BigUIntPostfixUnaryOperation, dK as BytesUnaryOperation, dL as UInt64BinaryOperation, dM as BigUIntBinaryOperation, dN as BooleanBinaryOperation, dO as Not, dP as Emit, dQ as Range, dR as Enumeration, dS as Reversed, dT as StateExists, dU as ARC4Router, dV as MethodSignatureString, dW as SubroutineID, dX as ContractMethodTarget, dY as InstanceMethodTarget, ca as uint8ArrayToBase32, ck as mkDirIfNotExists, dZ as patchErrorLocation, d_ as Goto, d$ as ReturnStatement, e0 as ContractMethod, e1 as sameSets, b as ContractClassModel, e2 as Subroutine, e3 as LogicSigClassModel, e4 as ptypeIn, e5 as expandMaybeArray, a as LoggingContext, P as PuyaError } from './contract-class-model-cK8F4WVM.js';
2
2
  import * as fs from 'node:fs';
3
3
  import 'node:util';
4
4
  import pathe__default, { normalize } from 'pathe';
@@ -1239,9 +1239,6 @@ class ClassBuilder extends NodeBuilder {
1239
1239
  }
1240
1240
  class FunctionBuilder extends NodeBuilder {
1241
1241
  ptype = undefined;
1242
- constructor(location) {
1243
- super(location);
1244
- }
1245
1242
  }
1246
1243
  class InstanceExpressionBuilder extends InstanceBuilder {
1247
1244
  _expr;
@@ -1317,9 +1314,6 @@ function requireLValue(expr) {
1317
1314
  });
1318
1315
  }
1319
1316
  }
1320
- if (expr instanceof ReinterpretCast) {
1321
- requireLValue(expr.expr);
1322
- }
1323
1317
  if (expr instanceof TupleExpression) {
1324
1318
  for (const item of expr.items) {
1325
1319
  requireLValue(item);
@@ -2410,13 +2404,12 @@ let TypeResolver = (() => {
2410
2404
  }
2411
2405
  getUnaliasedSymbolForNode(node) {
2412
2406
  const symbol = this.checker.getSymbolAtLocation(node);
2413
- if (symbol) {
2414
- if (hasFlags(symbol.flags, ts.SymbolFlags.Alias)) {
2415
- return this.checker.getAliasedSymbol(symbol);
2416
- }
2417
- return symbol;
2407
+ if (!symbol)
2408
+ return undefined;
2409
+ if (hasFlags(symbol.flags, ts.SymbolFlags.Alias)) {
2410
+ return this.checker.getAliasedSymbol(symbol);
2418
2411
  }
2419
- return undefined;
2412
+ return symbol;
2420
2413
  }
2421
2414
  resolveTypeParameters(node, sourceLocation) {
2422
2415
  if (node.typeArguments) {
@@ -2431,7 +2424,7 @@ let TypeResolver = (() => {
2431
2424
  resolve(node, sourceLocation) {
2432
2425
  const symbol = this.getUnaliasedSymbolForNode(node);
2433
2426
  if (symbol !== undefined && symbol.declarations?.length) {
2434
- const symbolName = symbol && this.getSymbolFullName(symbol, sourceLocation);
2427
+ const symbolName = this.getSymbolFullName(symbol);
2435
2428
  invariant(symbolName, 'Symbol should have name as we pre-checked it has a declaration', sourceLocation);
2436
2429
  if (symbolName.name === '*') {
2437
2430
  return new NamespacePType(symbolName);
@@ -2461,7 +2454,7 @@ let TypeResolver = (() => {
2461
2454
  if (ts.isConstructorDeclaration(node)) {
2462
2455
  const signature = this.checker.getSignatureFromDeclaration(node);
2463
2456
  invariant(signature, 'Constructor node must have call signature', sourceLocation);
2464
- const parentType = this.getTypeName(this.checker.getTypeAtLocation(node.parent), sourceLocation);
2457
+ const parentType = this.getTypeName(this.checker.getTypeAtLocation(node.parent));
2465
2458
  invariant(parentType, 'Parent type must have name', sourceLocation);
2466
2459
  return this.reflectFunctionType(new SymbolName({
2467
2460
  name: Constants.symbolNames.constructorMethodName,
@@ -2475,7 +2468,7 @@ let TypeResolver = (() => {
2475
2468
  return this.resolveType(type, sourceLocation);
2476
2469
  }
2477
2470
  resolveType(tsType, sourceLocation) {
2478
- const typeName = this.getTypeName(tsType, sourceLocation);
2471
+ const typeName = this.getTypeName(tsType);
2479
2472
  if (isUnionType(tsType)) {
2480
2473
  const ut = UnionPType.fromTypes(tsType.types.map((t) => this.resolveType(t, sourceLocation)));
2481
2474
  if (ut instanceof UnionPType) {
@@ -2674,7 +2667,7 @@ let TypeResolver = (() => {
2674
2667
  }
2675
2668
  }
2676
2669
  reflectObjectType(tsType, sourceLocation) {
2677
- const typeAlias = tsType.aliasSymbol ? this.getSymbolFullName(tsType.aliasSymbol, sourceLocation) : undefined;
2670
+ const typeAlias = tsType.aliasSymbol ? this.getSymbolFullName(tsType.aliasSymbol) : undefined;
2678
2671
  const properties = [];
2679
2672
  let expectReadonly = undefined;
2680
2673
  for (const prop of tsType.getProperties()) {
@@ -2739,7 +2732,7 @@ let TypeResolver = (() => {
2739
2732
  const declaredInNode = sig.declaration?.parent;
2740
2733
  if (declaredInNode && ts.isClassDeclaration(declaredInNode)) {
2741
2734
  const declaredInType = this.checker.getTypeAtLocation(declaredInNode);
2742
- declaredIn = this.getTypeName(declaredInType, sourceLocation);
2735
+ declaredIn = this.getTypeName(declaredInType);
2743
2736
  }
2744
2737
  const returnType = this.resolveType(sig.getReturnType(), sourceLocation);
2745
2738
  const parameters = sig.getParameters().map((p) => {
@@ -2817,9 +2810,9 @@ let TypeResolver = (() => {
2817
2810
  sourceLocation,
2818
2811
  });
2819
2812
  }
2820
- getTypeName(type, sourceLocation) {
2821
- const typeName = type.symbol ? this.getSymbolFullName(type.symbol, sourceLocation) : undefined;
2822
- const aliasName = type.aliasSymbol ? this.getSymbolFullName(type.aliasSymbol, sourceLocation) : undefined;
2813
+ getTypeName(type) {
2814
+ const typeName = type.symbol ? this.getSymbolFullName(type.symbol) : undefined;
2815
+ const aliasName = type.aliasSymbol ? this.getSymbolFullName(type.aliasSymbol) : undefined;
2823
2816
  // If the alias was defined in algo-ts, polytype, or typescript, respect the alias
2824
2817
  if (aliasName?.module.startsWith(Constants.algoTsPackage) ||
2825
2818
  aliasName?.module === Constants.moduleNames.polytype ||
@@ -2833,7 +2826,7 @@ let TypeResolver = (() => {
2833
2826
  if (parentDeclaration && ts.isTypeAliasDeclaration(parentDeclaration)) {
2834
2827
  const name = this.getUnaliasedSymbolForNode(parentDeclaration.name);
2835
2828
  if (name) {
2836
- return this.getSymbolFullName(name, sourceLocation);
2829
+ return this.getSymbolFullName(name);
2837
2830
  }
2838
2831
  }
2839
2832
  }
@@ -2848,7 +2841,7 @@ let TypeResolver = (() => {
2848
2841
  const dec = symbol.getDeclarations()?.[0];
2849
2842
  return dec?.localSymbol?.name;
2850
2843
  }
2851
- getSymbolFullName(symbol, sourceLocation) {
2844
+ getSymbolFullName(symbol) {
2852
2845
  const symbolName = symbol.name === 'default' ? (this.tryGetLocalSymbolName(symbol) ?? symbol.name) : symbol.name;
2853
2846
  const declaration = symbol?.declarations?.[0];
2854
2847
  if (declaration) {
@@ -5030,8 +5023,6 @@ class Arc4EncodedBaseExpressionBuilder extends InstanceExpressionBuilder {
5030
5023
  case 'equals':
5031
5024
  return new Arc4EqualsFunctionBuilder(this, sourceLocation);
5032
5025
  case 'native':
5033
- if (this.ptype.nativeType === undefined)
5034
- break;
5035
5026
  return instanceEb(nodeFactory.aRC4Decode({
5036
5027
  value: this.resolve(),
5037
5028
  sourceLocation,
@@ -6205,7 +6196,7 @@ class ContractProxyCallFunctionBuilder extends FunctionBuilder {
6205
6196
  });
6206
6197
  const arc4Config = AwstBuildContext.current.getArc4Config(this.proxy.ptype.contractType, this.functionType.name);
6207
6198
  codeInvariant(arc4Config instanceof ARC4ABIMethodConfig, `${this.functionType.name} is not an ABI method, or the containing contract has not been visited (possibly due to a circular reference)`, sourceLocation);
6208
- const methodSelector = arc4Config instanceof ARC4ABIMethodConfig ? buildArc4MethodConstant(this.functionType, arc4Config, sourceLocation) : null;
6199
+ const methodSelector = buildArc4MethodConstant(this.functionType, arc4Config, sourceLocation);
6209
6200
  return formatApplicationCallResponse({
6210
6201
  itxnResult: makeApplicationCall({
6211
6202
  applicationProxy: this.proxy,
@@ -6234,7 +6225,6 @@ function buildApplicationCallTxnFields({ sourceLocation, fields, arc4Config, app
6234
6225
  }
6235
6226
  // Add implicit fields
6236
6227
  if (applicationProxy) {
6237
- // Create a copy of the fields
6238
6228
  const implicitFields = getImplicitFields({ applicationProxy: applicationProxy, mappedFields, sourceLocation, methodConfig: arc4Config });
6239
6229
  // Only add fields that aren't explicitly provided
6240
6230
  for (const [key, expr] of implicitFields) {
@@ -6261,8 +6251,8 @@ function buildApplicationCallTxnFields({ sourceLocation, fields, arc4Config, app
6261
6251
  }
6262
6252
  // Build itxn and submit
6263
6253
  itxnGroup.push(nodeFactory.aBICall({
6264
- target: target,
6265
- args: args,
6254
+ target,
6255
+ args,
6266
6256
  fields: mappedFields,
6267
6257
  sourceLocation,
6268
6258
  wtype: new wtypes.WABICallInnerTransactionFields({
@@ -17597,13 +17587,10 @@ class TextVisitor {
17597
17587
 
17598
17588
  class BaseVisitor {
17599
17589
  baseAccept = (node) => accept(this, node);
17600
- textVisitor;
17590
+ textVisitor = new TextVisitor();
17601
17591
  get context() {
17602
17592
  return AwstBuildContext.current;
17603
17593
  }
17604
- constructor() {
17605
- this.textVisitor = new TextVisitor();
17606
- }
17607
17594
  logNotSupported(node, message) {
17608
17595
  if (!node)
17609
17596
  return;
@@ -17645,7 +17632,7 @@ class BaseVisitor {
17645
17632
  }
17646
17633
  const ptype = this.context.getPTypeForNode(node);
17647
17634
  invariant(ptype instanceof NumericLiteralPType, 'ptype should be NumericLiteralPType');
17648
- return new NumericLiteralExpressionBuilder(literalValue, ptype, this.sourceLocation(node));
17635
+ return new NumericLiteralExpressionBuilder(literalValue, ptype, sourceLocation);
17649
17636
  }
17650
17637
  visitIdentifier(node) {
17651
17638
  return this.context.getBuilderForNode(node);
@@ -17732,14 +17719,12 @@ class BaseVisitor {
17732
17719
  if (isMutableType(spreadExpr.ptype) && !containsMutableType(spreadExpr.ptype)) {
17733
17720
  toConcat.push(CloneFunctionBuilder.clone(spreadExpr, this.sourceLocation(element)));
17734
17721
  }
17722
+ else if (spreadExpr.checkForUnclonedMutables('being spread into an array literal')) {
17723
+ // Add a clone if one is required so we don't get cascading errors
17724
+ toConcat.push(CloneFunctionBuilder.clone(spreadExpr, this.sourceLocation(element)));
17725
+ }
17735
17726
  else {
17736
- if (spreadExpr.checkForUnclonedMutables('being spread into an array literal')) {
17737
- // Add a clone if one is required so we don't get cascading errors
17738
- toConcat.push(CloneFunctionBuilder.clone(spreadExpr, this.sourceLocation(element)));
17739
- }
17740
- else {
17741
- toConcat.push(spreadExpr);
17742
- }
17727
+ toConcat.push(spreadExpr);
17743
17728
  }
17744
17729
  }
17745
17730
  else {
@@ -18111,13 +18096,8 @@ class BaseVisitor {
18111
18096
  };
18112
18097
  }
18113
18098
  getNodeDescription(node) {
18114
- const docs = ts.getJSDocCommentsAndTags(node);
18115
- for (const doc of docs) {
18116
- if (ts.isJSDoc(doc)) {
18117
- return ts.getTextOfJSDocComment(doc.comment) ?? null;
18118
- }
18119
- }
18120
- return null;
18099
+ const jsdoc = ts.getJSDocCommentsAndTags(node).find(ts.isJSDoc);
18100
+ return jsdoc ? (ts.getTextOfJSDocComment(jsdoc.comment) ?? null) : null;
18121
18101
  }
18122
18102
  getMethodDocumentation(node) {
18123
18103
  const docs = Array.from(ts.getJSDocCommentsAndTags(node));
@@ -18359,7 +18339,7 @@ class FunctionVisitor extends BaseVisitor {
18359
18339
  case ts.SyntaxKind.ArrayBindingPattern: {
18360
18340
  const items = [];
18361
18341
  for (const element of bindingName.elements) {
18362
- const sourceLocation = this.context.getSourceLocation(element);
18342
+ const sourceLocation = this.sourceLocation(element);
18363
18343
  if (ts.isOmittedExpression(element)) {
18364
18344
  items.push(new OmittedExpressionBuilder(sourceLocation));
18365
18345
  }
@@ -18555,11 +18535,13 @@ class FunctionVisitor extends BaseVisitor {
18555
18535
  const sourceLocation = this.sourceLocation(node);
18556
18536
  const condition = this.evaluateCondition(node.expression);
18557
18537
  const ifBranch = nodeFactory.block({ sourceLocation: this.sourceLocation(node.thenStatement) }, this.accept(node.thenStatement));
18558
- const elseBranch = node.elseStatement && nodeFactory.block({ sourceLocation: this.sourceLocation(node.elseStatement) }, this.accept(node.elseStatement));
18538
+ const elseBranch = node.elseStatement
18539
+ ? nodeFactory.block({ sourceLocation: this.sourceLocation(node.elseStatement) }, this.accept(node.elseStatement))
18540
+ : null;
18559
18541
  return nodeFactory.ifElse({
18560
18542
  condition,
18561
18543
  ifBranch,
18562
- elseBranch: elseBranch ?? null,
18544
+ elseBranch: elseBranch,
18563
18545
  sourceLocation,
18564
18546
  });
18565
18547
  }
@@ -18856,7 +18838,7 @@ class ContractMethodVisitor extends ContractMethodBaseVisitor {
18856
18838
  ])),
18857
18839
  });
18858
18840
  }
18859
- else if (isPublic && this._contractType.isARC4) {
18841
+ else if (this._contractType.isARC4) {
18860
18842
  return new ARC4ABIMethodConfig({
18861
18843
  allowedCompletionTypes: conventionalDefaults?.allowedCompletionTypes ?? unspecifiedDefaults.allowedCompletionTypes,
18862
18844
  create: conventionalDefaults?.create ?? unspecifiedDefaults.create,
@@ -18922,7 +18904,7 @@ class ContractMethodVisitor extends ContractMethodBaseVisitor {
18922
18904
  codeInvariant(functionType.returnType.equals(voidPType), 'Bare method return type must be void', sourceLocation);
18923
18905
  }
18924
18906
  buildDefaultArgument({ methodName, parameterName, config, decoratorLocation, }) {
18925
- const [, paramType] = this._contractType.methods[methodName].parameters.find(([p]) => p === parameterName) ?? [undefined, undefined];
18907
+ const paramType = this._contractType.methods[methodName].parameters.find(([p]) => p === parameterName)?.[1];
18926
18908
  codeInvariant(paramType, `Default argument specification '${parameterName}' does not match any parameters on the target method`, decoratorLocation);
18927
18909
  if (config.type === 'constant') {
18928
18910
  return nodeFactory.aBIMethodArgConstantDefault({
@@ -23531,4 +23513,4 @@ class PuyaOptions {
23531
23513
  }
23532
23514
 
23533
23515
  export { parseCliTemplateVar as $, ARC4ArrayType as A, ByteClass as B, ContractProxyGeneric as C, DynamicArrayGeneric as D, abiCallFunction as E, arc4AddressAlias as F, arc4BooleanType as G, arc4ByteAlias as H, arc4StringType as I, arc4StructBaseType as J, compileArc4Function as K, convertBytesFunction as L, decodeArc4Function as M, encodeArc4Function as N, methodSelectorFunction as O, sizeOfFunction as P, uint8ArrayToHex as Q, hexToUint8Array as R, StaticArrayGeneric as S, TypedApplicationCallResponseGeneric as T, UFixedNxMGeneric as U, CompileOptions as V, TypeResolver as W, processInputPaths as X, registerPTypes as Y, typeRegistry as Z, defaultPuyaOptions as _, ARC4BoolClass as a, LocalsCoalescingStrategy as a0, PuyaService as a1, deserializeAndLog as a2, createTsProgram as a3, buildAwst as a4, validateAwst as a5, sleep as a6, DefaultMap as a7, relinquishThread as a8, ARC4EncodedType as b, ARC4InstanceType as c, ARC4StrClass as d, ARC4StructClass as e, ARC4StructType as f, ARC4TupleType as g, AddressClass as h, Arc4TupleGeneric as i, ContractProxyType as j, DynamicArrayType as k, DynamicBytesConstructor as l, DynamicBytesType as m, StaticArrayType as n, StaticBytesGeneric as o, StaticBytesType as p, TypedApplicationCallResponseType as q, UFixedNxMType as r, UintN128Class as s, UintN16Class as t, UintN256Class as u, UintN32Class as v, UintN64Class as w, UintN8Class as x, UintNGeneric as y, UintNType as z };
23534
- //# sourceMappingURL=options-BCW57sPn.js.map
23516
+ //# sourceMappingURL=options-sBHEIhey.js.map