@algorandfoundation/puya-ts 1.2.0-beta.37 → 1.2.0-beta.38
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.
- package/{analyser-service-Bk9GEtDA.js → analyser-service-WPf-QuDW.js} +3 -3
- package/{analyser-service-Bk9GEtDA.js.map → analyser-service-WPf-QuDW.js.map} +1 -1
- package/analyserService.mjs +3 -3
- package/{arc4-clientgen-qBTlCOIm.js → arc4-clientgen-DgWfvOGz.js} +2 -2
- package/{arc4-clientgen-qBTlCOIm.js.map → arc4-clientgen-DgWfvOGz.js.map} +1 -1
- package/bin/puyats-clientgen.mjs +5 -5
- package/bin/puyats-ls.mjs +6 -6
- package/bin/run-cli.mjs +8 -8
- package/{check-node-version-CLFFTDHN.js → check-node-version-DsAd6dpa.js} +3 -3
- package/{check-node-version-CLFFTDHN.js.map → check-node-version-DsAd6dpa.js.map} +1 -1
- package/cli.mjs +8 -8
- package/{compile-ycpMcgmJ.js → compile-BJw_a0H1.js} +6 -6
- package/{compile-ycpMcgmJ.js.map → compile-BJw_a0H1.js.map} +1 -1
- package/{contract-class-model-BZeEDGw0.js → contract-class-model-CfKzhI4r.js} +16 -16
- package/contract-class-model-CfKzhI4r.js.map +1 -0
- package/index.mjs +8 -8
- package/{options-DD9MApH4.js → options-YRBC-TAk.js} +27 -27
- package/options-YRBC-TAk.js.map +1 -0
- package/package.json +2 -2
- package/{resolve-puya-path-Ba54kz9o.js → resolve-puya-path-DLsqg26A.js} +4 -4
- package/{resolve-puya-path-Ba54kz9o.js.map → resolve-puya-path-DLsqg26A.js.map} +1 -1
- package/{semver-B0p_0XuH.js → semver-B8UJAUju.js} +2 -2
- package/{semver-B0p_0XuH.js.map → semver-B8UJAUju.js.map} +1 -1
- package/{util-Aa8RgOmt.js → util-BRWKzM85.js} +2 -2
- package/{util-Aa8RgOmt.js.map → util-BRWKzM85.js.map} +1 -1
- package/contract-class-model-BZeEDGw0.js.map +0 -1
- package/options-DD9MApH4.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-
|
|
2
|
-
export { A as AbsolutePath, L as LogLevel, cg as LogSource, a as LoggingContext, ch as SourceLocation } from './contract-class-model-
|
|
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-
|
|
4
|
-
export { V as CompileOptions, W as TypeResolver, X as processInputPaths, Y as registerPTypes, Z as typeRegistry } from './options-
|
|
5
|
-
export { c as compile } from './compile-
|
|
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-CfKzhI4r.js';
|
|
2
|
+
export { A as AbsolutePath, L as LogLevel, cg as LogSource, a as LoggingContext, ch as SourceLocation } from './contract-class-model-CfKzhI4r.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-YRBC-TAk.js';
|
|
4
|
+
export { V as CompileOptions, W as TypeResolver, X as processInputPaths, Y as registerPTypes, Z as typeRegistry } from './options-YRBC-TAk.js';
|
|
5
|
+
export { c as compile } from './compile-BJw_a0H1.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-
|
|
25
|
+
import './arc4-clientgen-DgWfvOGz.js';
|
|
26
26
|
import '@algorandfoundation/algokit-utils/abi';
|
|
27
27
|
import 'fs';
|
|
28
28
|
import 'fs/promises';
|
|
29
|
-
import './semver-
|
|
29
|
+
import './semver-B8UJAUju.js';
|
|
30
30
|
import 'node:url';
|
|
31
|
-
import './resolve-puya-path-
|
|
31
|
+
import './resolve-puya-path-DLsqg26A.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,
|
|
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, _ as ContractClassPType, bu as compiledContractType, aa as ImmutableObjectPType, b5 as applicationItxnType, v as voidPType, aw as MutableObjectPType, I as InternalError, c as CodeError, cq as throwError, cr as StringConstant, cs as BytesConstant, ct as IntegerConstant, cu as BoolConstant, cv as AddressConstant, cw as MethodConstant, cx as DecimalConstant, cy as TemplateVar, cg as LogSource, L as LogLevel, cz as instanceOfAny, cA as SingleEvaluation, cB as VarExpression, cC as nodeFactory, cD as NotSupported, l as logger, cE as TupleItemExpression, cF as FieldExpression, cG as IndexExpression, cH as TupleExpression, cI as AppStateExpression, cJ as AppAccountStateExpression, cK as BoxValueExpression, cL as StateGetEx, cM as StateGet, aU as TransientType, bU as numberPType, bn as bigIntPType, b6 as arc28EmitFunction, y as ArrayLiteralPType, H as BigIntLiteralPType, cN as hasFlags, cO as invariant, 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-CfKzhI4r.js';
|
|
2
2
|
import * as fs from 'node:fs';
|
|
3
3
|
import 'node:util';
|
|
4
4
|
import pathe__default, { normalize } from 'pathe';
|
|
@@ -251,7 +251,7 @@ const Arc4TupleGeneric = new GenericPType({
|
|
|
251
251
|
codeInvariant(tupleType && !rest.length, `${this.name} expects 1 generic parameter`);
|
|
252
252
|
codeInvariant(tupleType instanceof ReadonlyTuplePType || tupleType instanceof MutableTuplePType, `${this.name} generic parameter must be a native tuple type`);
|
|
253
253
|
const encodedTypes = tupleType.items.map((itemType, index) => {
|
|
254
|
-
codeInvariant(itemType instanceof ARC4EncodedType, `Item ${index} of
|
|
254
|
+
codeInvariant(itemType instanceof ARC4EncodedType, `Item ${index} of ${this.name} must be an ARC4 encoded type`);
|
|
255
255
|
return itemType;
|
|
256
256
|
});
|
|
257
257
|
return new ARC4TupleType({
|
|
@@ -291,9 +291,9 @@ const UintNGeneric = new GenericPType({
|
|
|
291
291
|
name: 'Uint',
|
|
292
292
|
module: Constants.moduleNames.algoTs.arc4.encodedTypes,
|
|
293
293
|
parameterise(typeArgs) {
|
|
294
|
-
codeInvariant(typeArgs.length === 1,
|
|
294
|
+
codeInvariant(typeArgs.length === 1, `${this.name} type expects exactly one type parameter`);
|
|
295
295
|
const [size] = typeArgs;
|
|
296
|
-
codeInvariant(size instanceof NumericLiteralPType && size.literalValue, `Generic type param for
|
|
296
|
+
codeInvariant(size instanceof NumericLiteralPType && size.literalValue, `Generic type param for ${this.name} must be a literal number. Inferred type is ${size.name}`);
|
|
297
297
|
return new UintNType({ n: size.literalValue });
|
|
298
298
|
},
|
|
299
299
|
});
|
|
@@ -326,8 +326,8 @@ const UFixedNxMGeneric = new GenericPType({
|
|
|
326
326
|
parameterise(typeArgs) {
|
|
327
327
|
codeInvariant(typeArgs.length === 2, `${this.name} expects exactly 2 generic type parameters`);
|
|
328
328
|
const [n, m] = typeArgs;
|
|
329
|
-
codeInvariant(n instanceof NumericLiteralPType && n.literalValue, `Generic type param 'N' for ${this.name}
|
|
330
|
-
codeInvariant(m instanceof NumericLiteralPType && m.literalValue, `Generic type param 'M' for
|
|
329
|
+
codeInvariant(n instanceof NumericLiteralPType && n.literalValue, `Generic type param 'N' for ${this.name} must be a literal number. Inferred type is ${n.name}`);
|
|
330
|
+
codeInvariant(m instanceof NumericLiteralPType && m.literalValue, `Generic type param 'M' for ${this.name} must be a literal number. Inferred type is ${m.name}`);
|
|
331
331
|
return new UFixedNxMType({
|
|
332
332
|
n: n.literalValue,
|
|
333
333
|
m: m.literalValue,
|
|
@@ -352,7 +352,7 @@ class UFixedNxMType extends ARC4EncodedType {
|
|
|
352
352
|
codeInvariant(m >= 1n && m <= 160n, 'm must be between 1 and 160');
|
|
353
353
|
this.n = n;
|
|
354
354
|
this.m = m;
|
|
355
|
-
this.name =
|
|
355
|
+
this.name = `UFixed<${n}, ${m}>`;
|
|
356
356
|
this.wtype = new wtypes.ARC4UFixedNxM({ n: this.n, m: this.m });
|
|
357
357
|
this.abiTypeSignature = `ufixed${n}x${m}`;
|
|
358
358
|
}
|
|
@@ -364,10 +364,10 @@ const arc4ByteAlias = new UintNType({ n: 8n, wtype: wtypes.arc4ByteAliasWType, n
|
|
|
364
364
|
const DynamicArrayGeneric = new GenericPType({
|
|
365
365
|
name: 'DynamicArray',
|
|
366
366
|
module: Constants.moduleNames.algoTs.arc4.encodedTypes,
|
|
367
|
-
parameterise
|
|
368
|
-
codeInvariant(typeArgs.length === 1,
|
|
367
|
+
parameterise(typeArgs) {
|
|
368
|
+
codeInvariant(typeArgs.length === 1, `${this.name} type expects exactly one type parameter`);
|
|
369
369
|
const [elementType] = typeArgs;
|
|
370
|
-
codeInvariant(elementType instanceof ARC4EncodedType, `Generic type param for
|
|
370
|
+
codeInvariant(elementType instanceof ARC4EncodedType, `Generic type param for ${this.name} must be an ARC4 encoded type. Inferred type is ${elementType.name}`);
|
|
371
371
|
return new DynamicArrayType({ elementType: elementType });
|
|
372
372
|
},
|
|
373
373
|
});
|
|
@@ -403,11 +403,11 @@ class DynamicArrayType extends ARC4ArrayType {
|
|
|
403
403
|
const StaticArrayGeneric = new GenericPType({
|
|
404
404
|
name: 'StaticArray',
|
|
405
405
|
module: Constants.moduleNames.algoTs.arc4.encodedTypes,
|
|
406
|
-
parameterise
|
|
407
|
-
codeInvariant(typeArgs.length === 2,
|
|
406
|
+
parameterise(typeArgs) {
|
|
407
|
+
codeInvariant(typeArgs.length === 2, `${this.name} type expects exactly two type parameters`);
|
|
408
408
|
const [elementType, arraySize] = typeArgs;
|
|
409
|
-
codeInvariant(elementType instanceof ARC4EncodedType, `Element type generic type param for
|
|
410
|
-
codeInvariant(arraySize instanceof NumericLiteralPType, `Array size generic type param for
|
|
409
|
+
codeInvariant(elementType instanceof ARC4EncodedType, `Element type generic type param for ${this.name} must be an ARC4 encoded type. Inferred type is ${elementType.name}`);
|
|
410
|
+
codeInvariant(arraySize instanceof NumericLiteralPType, `Array size generic type param for ${this.name} must be a literal number. Inferred type is ${arraySize.name}`);
|
|
411
411
|
return new StaticArrayType({ arraySize: arraySize.literalValue, elementType });
|
|
412
412
|
},
|
|
413
413
|
});
|
|
@@ -459,10 +459,10 @@ const AddressClass = new LibClassType({
|
|
|
459
459
|
const StaticBytesGeneric = new GenericPType({
|
|
460
460
|
name: 'StaticBytes',
|
|
461
461
|
module: Constants.moduleNames.algoTs.arc4.encodedTypes,
|
|
462
|
-
parameterise
|
|
463
|
-
codeInvariant(typeArgs.length === 1,
|
|
462
|
+
parameterise(typeArgs) {
|
|
463
|
+
codeInvariant(typeArgs.length === 1, `${this.name} type expects exactly one type parameter`);
|
|
464
464
|
const [length] = typeArgs;
|
|
465
|
-
codeInvariant(length instanceof NumericLiteralPType, `Length generic type param for
|
|
465
|
+
codeInvariant(length instanceof NumericLiteralPType, `Length generic type param for ${this.name} must be a literal number. Inferred type is ${length.name}`);
|
|
466
466
|
return new StaticBytesType({
|
|
467
467
|
length: length.literalValue,
|
|
468
468
|
});
|
|
@@ -485,7 +485,7 @@ const DynamicBytesConstructor = new LibClassType({
|
|
|
485
485
|
module: Constants.moduleNames.algoTs.arc4.encodedTypes,
|
|
486
486
|
});
|
|
487
487
|
const DynamicBytesType = new DynamicArrayType({
|
|
488
|
-
name:
|
|
488
|
+
name: 'DynamicBytes',
|
|
489
489
|
immutable: true,
|
|
490
490
|
elementType: arc4ByteAlias,
|
|
491
491
|
nativeType: bytesPType,
|
|
@@ -522,9 +522,9 @@ const ContractProxyGeneric = new GenericPType({
|
|
|
522
522
|
name: 'ContractProxy',
|
|
523
523
|
module: Constants.moduleNames.algoTs.arc4.c2c,
|
|
524
524
|
parameterise(args) {
|
|
525
|
-
|
|
525
|
+
codeInvariant(args.length === 1, `${this.name} expects exactly 1 type arg`);
|
|
526
526
|
const [typeArg] = args;
|
|
527
|
-
|
|
527
|
+
codeInvariant(typeArg instanceof ContractClassPType && typeArg.isARC4, `${this.name} generic type arg must extend arc4 Contract type`);
|
|
528
528
|
return new ContractProxyType({ contractType: typeArg });
|
|
529
529
|
},
|
|
530
530
|
});
|
|
@@ -549,7 +549,7 @@ const TypedApplicationCallResponseGeneric = new GenericPType({
|
|
|
549
549
|
name: 'TypedApplicationCallResponse',
|
|
550
550
|
module: Constants.moduleNames.algoTs.arc4.c2c,
|
|
551
551
|
parameterise(args) {
|
|
552
|
-
|
|
552
|
+
codeInvariant(args.length === 1, `${this.name} expects exactly 1 type arg`);
|
|
553
553
|
const [typeArg] = args;
|
|
554
554
|
return new TypedApplicationCallResponseType({ returnValue: typeArg });
|
|
555
555
|
},
|
|
@@ -2417,7 +2417,7 @@ let TypeResolver = (() => {
|
|
|
2417
2417
|
return node.typeArguments.map((t) => this.resolveTypeNode(t, sourceLocation));
|
|
2418
2418
|
}
|
|
2419
2419
|
const sig = this.checker.getResolvedSignature(node);
|
|
2420
|
-
invariant(sig, 'CallExpression must resolve to a signature');
|
|
2420
|
+
invariant(sig, 'CallExpression must resolve to a signature', sourceLocation);
|
|
2421
2421
|
const tps = this.checker.getTypeArgumentsForResolvedSignature(sig);
|
|
2422
2422
|
return tps?.map((t) => this.resolveType(t, sourceLocation)) ?? [];
|
|
2423
2423
|
}
|
|
@@ -2592,7 +2592,7 @@ let TypeResolver = (() => {
|
|
|
2592
2592
|
if (typeName.fullName === logicSigBaseType.fullName)
|
|
2593
2593
|
return logicSigBaseType;
|
|
2594
2594
|
const [baseType, ...rest] = tsType.getBaseTypes()?.map((t) => this.resolveType(t, sourceLocation)) ?? [];
|
|
2595
|
-
invariant(rest.length === 0, 'Class can have at most one base type');
|
|
2595
|
+
invariant(rest.length === 0, 'Class can have at most one base type', sourceLocation);
|
|
2596
2596
|
// Treat sub-types of UintN type as the base type.
|
|
2597
2597
|
if (baseType instanceof UintNType)
|
|
2598
2598
|
return baseType;
|
|
@@ -2685,7 +2685,7 @@ let TypeResolver = (() => {
|
|
|
2685
2685
|
if (expectReadonly !== readonly) {
|
|
2686
2686
|
const correction = expectReadonly
|
|
2687
2687
|
? 'Add a readonly modifier to this property, or remove it from all others'
|
|
2688
|
-
: 'Remove the readonly modifier from this property, or add it all others';
|
|
2688
|
+
: 'Remove the readonly modifier from this property, or add it to all others';
|
|
2689
2689
|
logger.error(propLocation, `All properties of a type must share the same readonly annotation. ${correction}`);
|
|
2690
2690
|
}
|
|
2691
2691
|
const ptype = this.resolveType(type, propLocation);
|
|
@@ -2708,7 +2708,7 @@ let TypeResolver = (() => {
|
|
|
2708
2708
|
}
|
|
2709
2709
|
reflectConstructorType(tsType, sourceLocation) {
|
|
2710
2710
|
const constructorSignatures = tsType.getConstructSignatures();
|
|
2711
|
-
invariant(constructorSignatures.length, 'Must have at least one signature');
|
|
2711
|
+
invariant(constructorSignatures.length, 'Must have at least one signature', sourceLocation);
|
|
2712
2712
|
const typeDeclaration = tsType.getSymbol()?.declarations?.[0];
|
|
2713
2713
|
if (typeDeclaration && ts.isClassDeclaration(typeDeclaration)) {
|
|
2714
2714
|
const ptype = this.resolve(typeDeclaration, sourceLocation);
|
|
@@ -2793,7 +2793,7 @@ let TypeResolver = (() => {
|
|
|
2793
2793
|
});
|
|
2794
2794
|
}
|
|
2795
2795
|
resolveClusteredPrototype(tsType, sourceLocation) {
|
|
2796
|
-
invariant(isIntersectionType(tsType), 'Clustered prototypes must be an intersection type');
|
|
2796
|
+
invariant(isIntersectionType(tsType), 'Clustered prototypes must be an intersection type', sourceLocation);
|
|
2797
2797
|
const baseContracts = [];
|
|
2798
2798
|
for (const t of tsType.types.map((t) => this.resolveType(t, sourceLocation))) {
|
|
2799
2799
|
if (t instanceof ContractClassPType) {
|
|
@@ -23507,4 +23507,4 @@ class PuyaOptions {
|
|
|
23507
23507
|
}
|
|
23508
23508
|
|
|
23509
23509
|
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 };
|
|
23510
|
-
//# sourceMappingURL=options-
|
|
23510
|
+
//# sourceMappingURL=options-YRBC-TAk.js.map
|