@algorandfoundation/puya-ts 1.2.0-beta.25 → 1.2.0-beta.26
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-B84GATtQ.js → analyser-service-DPB64W_I.js} +3 -3
- package/{analyser-service-B84GATtQ.js.map → analyser-service-DPB64W_I.js.map} +1 -1
- package/analyserService.mjs +3 -3
- package/{arc4-clientgen-Umq6mCn8.js → arc4-clientgen-wsi8el9O.js} +2 -2
- package/{arc4-clientgen-Umq6mCn8.js.map → arc4-clientgen-wsi8el9O.js.map} +1 -1
- package/awst/nodes.d.ts +9 -2
- package/awst/to-code-visitor.d.ts +1 -0
- package/awst/validation/awst-traverser.d.ts +2 -1
- package/awst_build/eb/storage/global-map.d.ts +21 -0
- package/awst_build/eb/storage/local-map.d.ts +21 -0
- package/awst_build/ptypes/index.d.ts +27 -1
- package/awst_build/ptypes/visitor.d.ts +3 -1
- package/awst_build/ptypes/visitors/default-visitor.d.ts +3 -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-HR1SqoVK.js → check-node-version-FCNk0unc.js} +3 -3
- package/{check-node-version-HR1SqoVK.js.map → check-node-version-FCNk0unc.js.map} +1 -1
- package/cli.mjs +8 -8
- package/{compile-BvWnPSet.js → compile-C8QvmjEM.js} +6 -6
- package/{compile-BvWnPSet.js.map → compile-C8QvmjEM.js.map} +1 -1
- package/{contract-class-model-Dvfr2oDn.js → contract-class-model-QzlhxT7N.js} +72 -3
- package/contract-class-model-QzlhxT7N.js.map +1 -0
- package/index.mjs +12 -8
- package/index.mjs.map +1 -1
- package/{options-Bq5xN07C.js → options-JF2uHXg3.js} +190 -15
- package/options-JF2uHXg3.js.map +1 -0
- package/package.json +2 -2
- package/{resolve-puya-path-CH8YhrrD.js → resolve-puya-path-Xb15ffnK.js} +4 -4
- package/{resolve-puya-path-CH8YhrrD.js.map → resolve-puya-path-Xb15ffnK.js.map} +1 -1
- package/{semver-Cl2GNl-D.js → semver-BEcHIBxM.js} +2 -2
- package/{semver-Cl2GNl-D.js.map → semver-BEcHIBxM.js.map} +1 -1
- package/{util-D6_ufaax.js → util-C6eWLSUe.js} +2 -2
- package/{util-D6_ufaax.js.map → util-C6eWLSUe.js.map} +1 -1
- package/contract-class-model-Dvfr2oDn.js.map +0 -1
- package/options-Bq5xN07C.js.map +0 -1
|
@@ -1539,6 +1539,35 @@ class GlobalStateType extends StorageProxyPType {
|
|
|
1539
1539
|
return visitor.visitGlobalStateType(this);
|
|
1540
1540
|
}
|
|
1541
1541
|
}
|
|
1542
|
+
const GlobalMapGeneric = new GenericPType({
|
|
1543
|
+
name: 'GlobalMap',
|
|
1544
|
+
module: Constants.moduleNames.algoTs.state,
|
|
1545
|
+
parameterise(typeArgs) {
|
|
1546
|
+
codeInvariant(typeArgs.length === 2, `${this.name} type expects exactly two type parameters`);
|
|
1547
|
+
return new GlobalMapType({
|
|
1548
|
+
keyType: typeArgs[0],
|
|
1549
|
+
content: typeArgs[1],
|
|
1550
|
+
});
|
|
1551
|
+
},
|
|
1552
|
+
});
|
|
1553
|
+
class GlobalMapType extends StorageProxyPType {
|
|
1554
|
+
[PType.IdSymbol] = 'GlobalMapType';
|
|
1555
|
+
module = Constants.moduleNames.algoTs.state;
|
|
1556
|
+
get name() {
|
|
1557
|
+
return `GlobalMap<${this.keyType.name}, ${this.contentType.name}>`;
|
|
1558
|
+
}
|
|
1559
|
+
get fullName() {
|
|
1560
|
+
return `${this.module}::${this.name}<${this.keyType.name}, ${this.contentType.fullName}>`;
|
|
1561
|
+
}
|
|
1562
|
+
keyType;
|
|
1563
|
+
constructor(props) {
|
|
1564
|
+
super({ ...props, keyWType: wtypes.stateKeyWType });
|
|
1565
|
+
this.keyType = props.keyType;
|
|
1566
|
+
}
|
|
1567
|
+
accept(visitor) {
|
|
1568
|
+
return visitor.visitGlobalMapType(this);
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1542
1571
|
const LocalStateGeneric = new GenericPType({
|
|
1543
1572
|
name: 'LocalState',
|
|
1544
1573
|
module: Constants.moduleNames.algoTs.state,
|
|
@@ -1573,6 +1602,35 @@ class LocalStateType extends StorageProxyPType {
|
|
|
1573
1602
|
return visitor.visitLocalStateType(this);
|
|
1574
1603
|
}
|
|
1575
1604
|
}
|
|
1605
|
+
const LocalMapGeneric = new GenericPType({
|
|
1606
|
+
name: 'LocalMap',
|
|
1607
|
+
module: Constants.moduleNames.algoTs.state,
|
|
1608
|
+
parameterise(typeArgs) {
|
|
1609
|
+
codeInvariant(typeArgs.length === 2, `${this.name} type expects exactly two type parameters`);
|
|
1610
|
+
return new LocalMapType({
|
|
1611
|
+
keyType: typeArgs[0],
|
|
1612
|
+
content: typeArgs[1],
|
|
1613
|
+
});
|
|
1614
|
+
},
|
|
1615
|
+
});
|
|
1616
|
+
class LocalMapType extends StorageProxyPType {
|
|
1617
|
+
[PType.IdSymbol] = 'LocalMapType';
|
|
1618
|
+
module = Constants.moduleNames.algoTs.state;
|
|
1619
|
+
get name() {
|
|
1620
|
+
return `LocalMap<${this.keyType.name}, ${this.contentType.name}>`;
|
|
1621
|
+
}
|
|
1622
|
+
get fullName() {
|
|
1623
|
+
return `${this.module}::${this.name}<${this.keyType.name}, ${this.contentType.fullName}>`;
|
|
1624
|
+
}
|
|
1625
|
+
keyType;
|
|
1626
|
+
constructor(props) {
|
|
1627
|
+
super({ ...props, keyWType: wtypes.stateKeyWType });
|
|
1628
|
+
this.keyType = props.keyType;
|
|
1629
|
+
}
|
|
1630
|
+
accept(visitor) {
|
|
1631
|
+
return visitor.visitLocalMapType(this);
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1576
1634
|
const BoxGeneric = new GenericPType({
|
|
1577
1635
|
name: 'Box',
|
|
1578
1636
|
module: Constants.moduleNames.algoTs.box,
|
|
@@ -3717,7 +3775,7 @@ class AppAccountStateExpression extends Expression {
|
|
|
3717
3775
|
return visitor.visitAppAccountStateExpression(this);
|
|
3718
3776
|
}
|
|
3719
3777
|
}
|
|
3720
|
-
class
|
|
3778
|
+
class MapPrefixedKeyExpression extends Expression {
|
|
3721
3779
|
constructor(props) {
|
|
3722
3780
|
super(props);
|
|
3723
3781
|
this.prefix = props.prefix;
|
|
@@ -3727,6 +3785,16 @@ class BoxPrefixedKeyExpression extends Expression {
|
|
|
3727
3785
|
prefix;
|
|
3728
3786
|
key;
|
|
3729
3787
|
wtype;
|
|
3788
|
+
accept(visitor) {
|
|
3789
|
+
return visitor.visitMapPrefixedKeyExpression(this);
|
|
3790
|
+
}
|
|
3791
|
+
}
|
|
3792
|
+
class BoxPrefixedKeyExpression extends MapPrefixedKeyExpression {
|
|
3793
|
+
constructor(props) {
|
|
3794
|
+
super(props);
|
|
3795
|
+
this.wtype = props.wtype;
|
|
3796
|
+
}
|
|
3797
|
+
wtype;
|
|
3730
3798
|
accept(visitor) {
|
|
3731
3799
|
return visitor.visitBoxPrefixedKeyExpression(this);
|
|
3732
3800
|
}
|
|
@@ -4651,6 +4719,7 @@ const concreteNodes = {
|
|
|
4651
4719
|
intersectionSliceExpression: IntersectionSliceExpression,
|
|
4652
4720
|
appStateExpression: AppStateExpression,
|
|
4653
4721
|
appAccountStateExpression: AppAccountStateExpression,
|
|
4722
|
+
mapPrefixedKeyExpression: MapPrefixedKeyExpression,
|
|
4654
4723
|
boxPrefixedKeyExpression: BoxPrefixedKeyExpression,
|
|
4655
4724
|
boxValueExpression: BoxValueExpression,
|
|
4656
4725
|
singleEvaluation: SingleEvaluation,
|
|
@@ -5570,5 +5639,5 @@ class CompilationSet extends CustomKeyMap {
|
|
|
5570
5639
|
}
|
|
5571
5640
|
}
|
|
5572
5641
|
|
|
5573
|
-
export { FixedArrayGeneric as $, AbsolutePath as A, AssetConfigTxnFunction as B, ContractReference as C, AssetFreezeTxnFunction as D, AssetFunction as E, AssetTransferTxnFunction as F, BaseContractClassType as G, BigIntLiteralPType as H, InternalError as I, BigIntPType as J, BigUintFunction as K, LogLevel as L, BooleanFunction as M, BoxGeneric as N, OnCompletionAction as O, PuyaError as P, BoxMapGeneric as Q, BoxMapPType as R, BoxPType as S, BytesFunction as T, BytesGeneric as U, BytesPType as V, ClassMethodDecoratorContext as W, ClearStateProgram as X, ClusteredContractClassType as Y, ClusteredPrototype as Z, ContractClassPType as _, LoggingContext as a,
|
|
5574
|
-
//# sourceMappingURL=contract-class-model-
|
|
5642
|
+
export { FixedArrayGeneric as $, AbsolutePath as A, AssetConfigTxnFunction as B, ContractReference as C, AssetFreezeTxnFunction as D, AssetFunction as E, AssetTransferTxnFunction as F, BaseContractClassType as G, BigIntLiteralPType as H, InternalError as I, BigIntPType as J, BigUintFunction as K, LogLevel as L, BooleanFunction as M, BoxGeneric as N, OnCompletionAction as O, PuyaError as P, BoxMapGeneric as Q, BoxMapPType as R, BoxPType as S, BytesFunction as T, BytesGeneric as U, BytesPType as V, ClassMethodDecoratorContext as W, ClearStateProgram as X, ClusteredContractClassType as Y, ClusteredPrototype as Z, ContractClassPType as _, LoggingContext as a, UnsupportedType as a$, FixedArrayPType as a0, FunctionPType as a1, GeneratorGeneric as a2, GeneratorType as a3, GenericPType as a4, GlobalMapGeneric as a5, GlobalMapType as a6, GlobalStateGeneric as a7, GlobalStateType as a8, GroupTransactionPType as a9, NumericLiteralPType as aA, ObjectLiteralPType as aB, ObjectWithOptionalFieldsType as aC, PType as aD, PaymentTxnFunction as aE, PolytypeClassMethodHelper as aF, PromiseGeneric as aG, PromiseType as aH, ReadonlyArrayGeneric as aI, ReadonlyArrayPType as aJ, ReadonlyGeneric as aK, ReadonlyTuplePType as aL, ReferenceArrayGeneric as aM, ReferenceArrayType as aN, StringFunction as aO, SuperPrototypeSelector as aP, SuperPrototypeSelectorGeneric as aQ, TemplateVarFunction as aR, TransactionFunction as aS, TransactionFunctionType as aT, TransientType as aU, TypeParameterType as aV, Uint64EnumMemberLiteralType as aW, Uint64EnumMemberType as aX, Uint64EnumType as aY, Uint64Function as aZ, UnionPType as a_, ImmutableObjectPType as aa, InnerTransactionPType as ab, InstanceType as ac, InternalType as ad, IntersectionPType as ae, IntrinsicEnumType as af, IntrinsicFunctionGroupType as ag, IntrinsicFunctionGroupTypeType as ah, IntrinsicFunctionType as ai, IntrinsicFunctionTypeType as aj, IterableIteratorGeneric as ak, IterableIteratorType as al, ItxnParamsPType as am, KeyRegistrationTxnFunction as an, LibClassType as ao, LibFunctionType as ap, LibObjType as aq, LocalMapGeneric as ar, LocalMapType as as, LocalStateGeneric as at, LocalStateType as au, LogicSigPType as av, MutableObjectPType as aw, MutableTuplePType as ax, NamespacePType as ay, NumberPType as az, ContractClassModel as b, stringPType as b$, anyItxnParamsType as b0, anyItxnType as b1, anyPType as b2, applicationCallItxnFn as b3, applicationCallItxnParamsType as b4, applicationItxnType as b5, arc28EmitFunction as b6, arc4AbiMethodDecorator as b7, arc4BareMethodDecorator as b8, arc4BaseContractType as b9, errFunction as bA, esSymbol as bB, inputOnlyObjects as bC, isArrayType as bD, isObjectType as bE, isTupleLike as bF, itoaMethod as bG, itxnComposePType as bH, keyRegistrationItxnFn as bI, keyRegistrationItxnParamsType as bJ, keyRegistrationItxnType as bK, logFunction as bL, loggedAssertFunction as bM, loggedErrFunction as bN, logicSigBaseType as bO, logicSigOptionsDecorator as bP, matchFunction as bQ, mimcConfigurationsPType as bR, neverPType as bS, nullPType as bT, numberPType as bU, onCompleteActionType as bV, opUpFeeSourceType as bW, paymentItxnFn as bX, paymentItxnParamsType as bY, paymentItxnType as bZ, readonlyDecorator as b_, assertFunction as ba, assertMatchFunction as bb, assetConfigItxnFn as bc, assetConfigItxnParamsType as bd, assetConfigItxnType as be, assetFreezeItxnFn as bf, assetFreezeItxnParamsType as bg, assetFreezeItxnType as bh, assetTransferItxnFn as bi, assetTransferItxnParamsType as bj, assetTransferItxnType as bk, base64PType as bl, baseContractType as bm, bigIntPType as bn, biguintPType as bo, boolPType as bp, bytesPType as bq, bzeroFunction as br, cloneFunctionPType as bs, compileFunctionType as bt, compiledContractType as bu, compiledLogicSigType as bv, contractOptionsDecorator as bw, ecPType as bx, ecdsaPType as by, ensureBudgetFunction as bz, CodeError as c, FixableCodeError as c$, submitGroupItxnFunction as c0, transactionTypeType as c1, uint64PType as c2, undefinedPType as c3, unknownPType as c4, urangeFunction as c5, validateEncodingFunctionPType as c6, vrfVerifyPType as c7, uint8ArrayToBigInt as c8, uint8ArrayToBase64 as c9, instanceOfAny as cA, SingleEvaluation as cB, VarExpression as cC, nodeFactory as cD, NotSupported as cE, TupleItemExpression as cF, FieldExpression as cG, IndexExpression as cH, TupleExpression as cI, AppStateExpression as cJ, AppAccountStateExpression as cK, BoxValueExpression as cL, ReinterpretCast as cM, StateGetEx as cN, StateGet as cO, hasFlags as cP, BinaryBooleanOperator as cQ, SymbolName as cR, intersectsFlags as cS, extractModuleName as cT, toSubScript as cU, CompilationSet as cV, ARC4ABIMethodConfig as cW, EqualityComparison as cX, ARC4CreateOption as cY, NewArray as cZ, BytesEncoding as c_, uint8ArrayToBase32 as ca, uint8ArrayToUtf8 as cb, base64ToUint8Array as cc, base32ToUint8Array as cd, bigIntToUint8Array as ce, utf8ToUint8Array as cf, LogSource as cg, SourceLocation as ch, isMinLevel as ci, enumFromValue as cj, mkDirIfNotExists as ck, distinct as cl, zipStrict as cm, isIn as cn, wtypes as co, codeInvariant as cp, invariant as cq, throwError as cr, StringConstant as cs, BytesConstant as ct, IntegerConstant as cu, BoolConstant as cv, AddressConstant as cw, MethodConstant as cx, DecimalConstant as cy, TemplateVar as cz, Constants as d, InstanceMethodTarget as d$, UInt64BinaryOperator as d0, tryConvertEnum as d1, NumericComparison as d2, UInt64UnaryOperator as d3, UInt64PostfixUnaryOperator as d4, wrapInCodeError as d5, TransactionKind as d6, LogicSigReference as d7, getInnerTransactionType as d8, getItxnParamsType as d9, CheckedMaybe as dA, SetInnerTransactionFields as dB, StageInnerTransactions as dC, SubmitInnerTransaction as dD, BoxPrefixedKeyExpression as dE, AssignmentExpression as dF, CommaExpression as dG, NumericComparisonExpression as dH, BytesComparisonExpression as dI, PuyaLibCall as dJ, UInt64UnaryOperation as dK, UInt64PostfixUnaryOperation as dL, BigUIntPostfixUnaryOperation as dM, BytesUnaryOperation as dN, UInt64BinaryOperation as dO, BigUIntBinaryOperation as dP, BooleanBinaryOperation as dQ, Not as dR, Emit as dS, Range as dT, Enumeration as dU, Reversed as dV, StateExists as dW, ARC4Router as dX, MethodSignatureString as dY, SubroutineID as dZ, ContractMethodTarget as d_, CompiledContract as da, ARC4BareMethodConfig as db, MethodSignature as dc, BigUIntBinaryOperator as dd, BigUIntPostfixUnaryOperator as de, BytesBinaryOperator as df, IntrinsicCall as dg, enumKeyFromValue as dh, BytesUnaryOperator as di, PuyaLibFunction as dj, Expression as dk, AppStorageKind as dl, transientTypeErrors as dm, getGroupTransactionType as dn, Contract as dp, InstanceSuperMethodTarget as dq, ExpressionStatement as dr, AssertExpression as ds, VoidConstant as dt, ArrayConcat as du, ArrayPop as dv, ArrayReplace as dw, ArrayLength as dx, SizeOf as dy, UpdateInnerTransaction as dz, accountPType as e, patchErrorLocation as e0, Goto as e1, ReturnStatement as e2, ContractMethod as e3, sameSets as e4, Subroutine as e5, LogicSigClassModel as e6, ptypeIn as e7, expandMaybeArray as e8, applicationPType as f, assetPType as g, anyGtxnType as h, assetConfigGtxnType as i, assetTransferGtxnType as j, keyRegistrationGtxnType as k, logger as l, assetFreezeGtxnType as m, applicationCallGtxnType as n, ABICompatibleInstanceType as o, paymentGtxnType as p, ALL_OP_ENUMS as q, AccountFunction as r, AnyPType as s, ApplicationFunctionType as t, ApplicationTxnFunction as u, voidPType as v, ApprovalProgram as w, ArrayGeneric as x, ArrayLiteralPType as y, ArrayPType as z };
|
|
5643
|
+
//# sourceMappingURL=contract-class-model-QzlhxT7N.js.map
|