@algorandfoundation/puya-ts 1.2.0-beta.45 → 1.2.0-beta.47

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 (31) hide show
  1. package/{analyser-service-g6r-wiDR.js → analyser-service-BNgLEqCk.js} +3 -3
  2. package/{analyser-service-g6r-wiDR.js.map → analyser-service-BNgLEqCk.js.map} +1 -1
  3. package/analyserService.mjs +3 -3
  4. package/{arc4-clientgen-DpKJCM6x.js → arc4-clientgen-DaRok-mo.js} +2 -2
  5. package/{arc4-clientgen-DpKJCM6x.js.map → arc4-clientgen-DaRok-mo.js.map} +1 -1
  6. package/awst/intrinsic-factory.d.ts +4 -2
  7. package/awst/node-factory.d.ts +1 -0
  8. package/awst/nodes.d.ts +1 -0
  9. package/bin/puyats-clientgen.mjs +5 -5
  10. package/bin/puyats-ls.mjs +6 -6
  11. package/bin/run-cli.mjs +8 -8
  12. package/{check-node-version-CgpZ-rvZ.js → check-node-version-B6xl9CGx.js} +3 -3
  13. package/{check-node-version-CgpZ-rvZ.js.map → check-node-version-B6xl9CGx.js.map} +1 -1
  14. package/cli.mjs +8 -8
  15. package/{compile-BFtdjrmj.js → compile-B7ifMybr.js} +6 -6
  16. package/{compile-BFtdjrmj.js.map → compile-B7ifMybr.js.map} +1 -1
  17. package/constants.d.ts +1 -1
  18. package/{contract-class-model-0NzrC4s2.js → contract-class-model-CgmcMfyz.js} +5 -2
  19. package/contract-class-model-CgmcMfyz.js.map +1 -0
  20. package/index.mjs +8 -8
  21. package/{options-YOTdChNT.js → options-GI57j8ua.js} +17 -10
  22. package/options-GI57j8ua.js.map +1 -0
  23. package/package.json +2 -2
  24. package/{resolve-puya-path-BisVPj7y.js → resolve-puya-path-lZ6KfZZB.js} +4 -4
  25. package/{resolve-puya-path-BisVPj7y.js.map → resolve-puya-path-lZ6KfZZB.js.map} +1 -1
  26. package/{semver-BwxlEvtx.js → semver-CILSJ13C.js} +2 -2
  27. package/{semver-BwxlEvtx.js.map → semver-CILSJ13C.js.map} +1 -1
  28. package/{util-DCBjwSzY.js → util--2MIsJjZ.js} +2 -2
  29. package/{util-DCBjwSzY.js.map → util--2MIsJjZ.js.map} +1 -1
  30. package/contract-class-model-0NzrC4s2.js.map +0 -1
  31. package/options-YOTdChNT.js.map +0 -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, 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-0NzrC4s2.js';
2
- export { f as AbsolutePath, b0 as LogLevel, b1 as LogSource, b2 as LoggingContext, bG as SourceLocation } from './contract-class-model-0NzrC4s2.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-YOTdChNT.js';
4
- export { C as CompileOptions, T as TypeResolver, a1 as processInputPaths, a2 as registerPTypes, a6 as typeRegistry } from './options-YOTdChNT.js';
5
- export { c as compile } from './compile-BFtdjrmj.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-CgmcMfyz.js';
2
+ export { f as AbsolutePath, b0 as LogLevel, b1 as LogSource, b2 as LoggingContext, bG as SourceLocation } from './contract-class-model-CgmcMfyz.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-GI57j8ua.js';
4
+ export { C as CompileOptions, T as TypeResolver, a1 as processInputPaths, a2 as registerPTypes, a6 as typeRegistry } from './options-GI57j8ua.js';
5
+ export { c as compile } from './compile-B7ifMybr.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-DpKJCM6x.js';
25
+ import './arc4-clientgen-DaRok-mo.js';
26
26
  import '@algorandfoundation/algokit-utils/abi';
27
27
  import 'fs';
28
28
  import 'fs/promises';
29
- import './semver-BwxlEvtx.js';
29
+ import './semver-CILSJ13C.js';
30
30
  import 'node:url';
31
- import './resolve-puya-path-BisVPj7y.js';
31
+ import './resolve-puya-path-lZ6KfZZB.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, 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-0NzrC4s2.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-CgmcMfyz.js';
2
2
  import * as fs from 'node:fs';
3
3
  import 'node:util';
4
4
  import pathe__default, { normalize } from 'pathe';
@@ -4103,21 +4103,23 @@ const intrinsicFactory = {
4103
4103
  opCode: 'concat',
4104
4104
  });
4105
4105
  },
4106
- err({ sourceLocation, comment, logError }) {
4106
+ err({ sourceLocation, comment, desc, logError, }) {
4107
4107
  return nodeFactory.assertExpression({
4108
4108
  condition: null,
4109
4109
  sourceLocation,
4110
4110
  wtype: wtypes.voidWType,
4111
4111
  errorMessage: comment,
4112
+ desc,
4112
4113
  logError,
4113
4114
  });
4114
4115
  },
4115
- assert({ sourceLocation, comment, condition, logError, }) {
4116
+ assert({ sourceLocation, comment, desc, condition, logError, }) {
4116
4117
  return nodeFactory.assertExpression({
4117
4118
  sourceLocation,
4118
4119
  condition,
4119
4120
  wtype: wtypes.voidWType,
4120
4121
  errorMessage: comment,
4122
+ desc,
4121
4123
  logError,
4122
4124
  });
4123
4125
  },
@@ -8611,12 +8613,14 @@ function resolveMessageAndPrefix(maybeMessageOrOptions) {
8611
8613
  if (maybeMessageOrOptions) {
8612
8614
  const message = requestBuilderOfType(maybeMessageOrOptions, stringPType);
8613
8615
  if (message) {
8614
- return { message: message, prefix: undefined };
8616
+ return { message: message, prefix: undefined, desc: null };
8615
8617
  }
8616
8618
  }
8617
8619
  const message = get('message');
8618
8620
  const prefix = get('prefix');
8619
- return { message, prefix };
8621
+ const descBuilder = get('desc');
8622
+ const desc = descBuilder ? requireStringConstant(descBuilder).value : null;
8623
+ return { message, prefix, desc };
8620
8624
  }
8621
8625
  class LoggedAssertFunctionBuilder extends FunctionBuilder {
8622
8626
  call(args, typeArgs, sourceLocation) {
@@ -8628,12 +8632,13 @@ class LoggedAssertFunctionBuilder extends FunctionBuilder {
8628
8632
  funcName: 'loggedAssert',
8629
8633
  argSpec: (a) => [a.required(), a.required(stringPType), a.optional()],
8630
8634
  });
8631
- const { message, prefix } = resolveMessageAndPrefix(maybeMessageOrOptions);
8635
+ const { message, prefix, desc } = resolveMessageAndPrefix(maybeMessageOrOptions);
8632
8636
  const errorMessage = resolveErrorMessage(code, message, prefix);
8633
8637
  return new VoidExpressionBuilder(intrinsicFactory.assert({
8634
8638
  sourceLocation,
8635
8639
  condition: condition.boolEval(sourceLocation),
8636
8640
  comment: errorMessage,
8641
+ desc,
8637
8642
  logError: true,
8638
8643
  }));
8639
8644
  }
@@ -8648,11 +8653,12 @@ class LoggedErrFunctionBuilder extends FunctionBuilder {
8648
8653
  funcName: 'loggedErr',
8649
8654
  argSpec: (a) => [a.required(stringPType), a.optional()],
8650
8655
  });
8651
- const { message, prefix } = resolveMessageAndPrefix(maybeMessageOrOptions);
8656
+ const { message, prefix, desc } = resolveMessageAndPrefix(maybeMessageOrOptions);
8652
8657
  const errorMessage = resolveErrorMessage(code, message, prefix);
8653
8658
  return new VoidExpressionBuilder(intrinsicFactory.err({
8654
8659
  sourceLocation,
8655
8660
  comment: errorMessage,
8661
+ desc,
8656
8662
  logError: true,
8657
8663
  }));
8658
8664
  }
@@ -17117,12 +17123,13 @@ class ToCodeVisitor {
17117
17123
  return ['', `logicsig ${moduleStatement.id} {`, ...indent(moduleStatement.program.body.accept(this)), '}'];
17118
17124
  }
17119
17125
  visitAssertExpression(expression) {
17126
+ const desc = expression.desc ? `, desc=${expression.desc}` : '';
17120
17127
  if (!expression.condition) {
17121
17128
  const func = expression.logError ? 'logged_err(' : 'err(';
17122
- return `${func}${expression.errorMessage ?? ''})`;
17129
+ return `${func}${expression.errorMessage ?? ''}${desc})`;
17123
17130
  }
17124
17131
  const func = expression.logError ? 'logged_assert(' : 'assert(';
17125
- return `${func}${expression.condition.accept(this)}${expression.errorMessage ? `, comment=${expression.errorMessage}` : ''})`;
17132
+ return `${func}${expression.condition.accept(this)}${expression.errorMessage ? `, comment=${expression.errorMessage}` : ''}${desc})`;
17126
17133
  }
17127
17134
  visitConvertArray(expression) {
17128
17135
  return `convert_array(${expression.expr.accept(this)}, wtype=${expression.wtype})`;
@@ -23519,4 +23526,4 @@ class PuyaOptions {
23519
23526
  }
23520
23527
 
23521
23528
  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 };
23522
- //# sourceMappingURL=options-YOTdChNT.js.map
23529
+ //# sourceMappingURL=options-GI57j8ua.js.map