@algorandfoundation/puya-ts 1.2.0-beta.3 → 1.2.0-beta.30
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/README.md +7 -5
- package/{analyser-service-_vXhzOY0.js → analyser-service-8d-CfbHF.js} +409 -372
- package/analyser-service-8d-CfbHF.js.map +1 -0
- package/analyserService.mjs +7 -6
- package/analyserService.mjs.map +1 -1
- package/arc4-clientgen-S0OsOYq5.js +324 -0
- package/arc4-clientgen-S0OsOYq5.js.map +1 -0
- package/arc4-clientgen.d.ts +6 -0
- package/awst/intrinsic-factory.d.ts +4 -2
- package/awst/node-factory.d.ts +1 -0
- package/awst/nodes.d.ts +26 -15
- package/awst/to-code-visitor.d.ts +3 -2
- package/awst/validation/awst-traverser.d.ts +4 -3
- package/awst/wtypes.d.ts +49 -36
- package/awst_build/arc4-util.d.ts +1 -38
- package/awst_build/ast-visitors/contract-method-visitor.d.ts +0 -2
- package/awst_build/eb/arc28/arc-28-emit-function-builder.d.ts +1 -2
- package/awst_build/eb/arc4/uintn.d.ts +1 -1
- package/awst_build/eb/arc4/util.d.ts +1 -0
- package/awst_build/eb/array-like/util.d.ts +0 -1
- package/awst_build/eb/logged-error-builder.d.ts +11 -0
- 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/models/decorator-data.d.ts +1 -0
- package/awst_build/ptypes/arc4-types.d.ts +7 -2
- package/awst_build/ptypes/base.d.ts +5 -0
- package/awst_build/ptypes/for-export.d.ts +0 -1
- package/awst_build/ptypes/index.d.ts +36 -8
- package/awst_build/ptypes/util.d.ts +2 -2
- package/awst_build/ptypes/visitor.d.ts +3 -1
- package/awst_build/ptypes/visitors/default-visitor.d.ts +3 -1
- package/bin/puyats-clientgen.d.ts +2 -0
- package/bin/puyats-clientgen.mjs +101 -0
- package/bin/puyats-clientgen.mjs.map +1 -0
- package/bin/puyats-ls.mjs +21 -46
- package/bin/puyats-ls.mjs.map +1 -1
- package/bin/run-cli.mjs +18 -12
- package/bin/run-cli.mjs.map +1 -1
- package/{check-node-version-CNvxI8_l.js → check-node-version-C5jEehMw.js} +3 -3
- package/{check-node-version-CNvxI8_l.js.map → check-node-version-C5jEehMw.js.map} +1 -1
- package/cli/build-command.d.ts +2 -0
- package/cli.mjs +36 -76
- package/cli.mjs.map +1 -1
- package/clientgen.d.ts +1 -0
- package/code-fix/{invalid-non-null-assertion.d.ts → no-op-non-null-assertion.d.ts} +1 -1
- package/{compile-Bz8LVwK2.js → compile-D3cWR93M.js} +11 -4
- package/compile-D3cWR93M.js.map +1 -0
- package/compile.d.ts +1 -1
- package/constants.d.ts +1 -1
- package/contract-class-model-MEy7uIVO.js +5611 -0
- package/contract-class-model-MEy7uIVO.js.map +1 -0
- package/index.d.ts +1 -1
- package/index.mjs +21 -10
- package/index.mjs.map +1 -1
- package/{options-COFRHTFQ.js → options-DG9_1uUe.js} +3831 -9534
- package/options-DG9_1uUe.js.map +1 -0
- package/options.d.ts +4 -0
- package/package.json +17 -12
- package/puya/index.d.ts +1 -1
- package/puya/puya-service.d.ts +5 -1
- package/{resolve-puya-path-DtTAMi0Y.js → resolve-puya-path-gdMolChu.js} +9 -45
- package/resolve-puya-path-gdMolChu.js.map +1 -0
- package/semver-DjqBu3r-.js +45 -0
- package/semver-DjqBu3r-.js.map +1 -0
- package/util/typed-message-port.d.ts +2 -2
- package/util-5sZ6DHLY.js +63 -0
- package/util-5sZ6DHLY.js.map +1 -0
- package/visitor/syntax-names.d.ts +190 -190
- package/analyser-service-_vXhzOY0.js.map +0 -1
- package/compile-Bz8LVwK2.js.map +0 -1
- package/options-COFRHTFQ.js.map +0 -1
- package/resolve-puya-path-DtTAMi0Y.js.map +0 -1
- package/util/arc4-signature-parser.d.ts +0 -14
package/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { typeRegistry } from './awst_build/type-registry';
|
|
|
7
7
|
export { TypeResolver } from './awst_build/type-resolver';
|
|
8
8
|
export { compile } from './compile';
|
|
9
9
|
export { processInputPaths } from './input-paths/process-input-paths';
|
|
10
|
-
export { LoggingContext } from './logger';
|
|
10
|
+
export { LoggingContext, LogLevel, LogSource, LogEvent } from './logger';
|
|
11
11
|
export { CompileOptions } from './options';
|
|
12
12
|
export { AbsolutePath } from './util/absolute-path';
|
|
13
13
|
export declare const encodingUtil: {
|
package/index.mjs
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
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-MEy7uIVO.js';
|
|
2
|
+
export { A as AbsolutePath, L as LogLevel, cg as LogSource, a as LoggingContext, ch as SourceLocation } from './contract-class-model-MEy7uIVO.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 arc4Uint64, L as compileArc4Function, M as convertBytesFunction, N as decodeArc4Function, O as encodeArc4Function, P as methodSelectorFunction, Q as sizeOfFunction, R as uint8ArrayToHex, V as hexToUint8Array } from './options-DG9_1uUe.js';
|
|
4
|
+
export { W as CompileOptions, X as TypeResolver, Y as processInputPaths, Z as registerPTypes, _ as typeRegistry } from './options-DG9_1uUe.js';
|
|
5
|
+
export { c as compile } from './compile-D3cWR93M.js';
|
|
6
|
+
import 'typescript';
|
|
5
7
|
import 'node:fs';
|
|
6
8
|
import 'node:util';
|
|
7
9
|
import 'pathe';
|
|
8
|
-
import 'tslib';
|
|
9
|
-
import 'node:buffer';
|
|
10
|
-
import 'typescript';
|
|
11
10
|
import 'node:crypto';
|
|
11
|
+
import 'polytype';
|
|
12
12
|
import 'node:async_hooks';
|
|
13
|
+
import 'arcsecond';
|
|
14
|
+
import 'tslib';
|
|
15
|
+
import 'node:buffer';
|
|
13
16
|
import 'cross-spawn';
|
|
14
17
|
import 'util';
|
|
15
18
|
import 'path';
|
|
@@ -17,12 +20,15 @@ import 'os';
|
|
|
17
20
|
import 'crypto';
|
|
18
21
|
import 'net';
|
|
19
22
|
import 'change-case';
|
|
20
|
-
import 'polytype';
|
|
21
23
|
import 'glob';
|
|
22
24
|
import 'minimatch';
|
|
23
|
-
import './
|
|
25
|
+
import './arc4-clientgen-S0OsOYq5.js';
|
|
26
|
+
import '@algorandfoundation/algokit-utils/abi';
|
|
24
27
|
import 'fs';
|
|
28
|
+
import 'fs/promises';
|
|
29
|
+
import './semver-DjqBu3r-.js';
|
|
25
30
|
import 'node:url';
|
|
31
|
+
import './resolve-puya-path-gdMolChu.js';
|
|
26
32
|
import 'signal-exit';
|
|
27
33
|
import 'tar';
|
|
28
34
|
import 'node:zlib';
|
|
@@ -85,6 +91,8 @@ var forExport = /*#__PURE__*/Object.freeze({
|
|
|
85
91
|
GeneratorGeneric: GeneratorGeneric,
|
|
86
92
|
GeneratorType: GeneratorType,
|
|
87
93
|
GenericPType: GenericPType,
|
|
94
|
+
GlobalMapGeneric: GlobalMapGeneric,
|
|
95
|
+
GlobalMapType: GlobalMapType,
|
|
88
96
|
GlobalStateGeneric: GlobalStateGeneric,
|
|
89
97
|
GlobalStateType: GlobalStateType,
|
|
90
98
|
GroupTransactionPType: GroupTransactionPType,
|
|
@@ -105,6 +113,8 @@ var forExport = /*#__PURE__*/Object.freeze({
|
|
|
105
113
|
LibClassType: LibClassType,
|
|
106
114
|
LibFunctionType: LibFunctionType,
|
|
107
115
|
LibObjType: LibObjType,
|
|
116
|
+
LocalMapGeneric: LocalMapGeneric,
|
|
117
|
+
LocalMapType: LocalMapType,
|
|
108
118
|
LocalStateGeneric: LocalStateGeneric,
|
|
109
119
|
LocalStateType: LocalStateType,
|
|
110
120
|
LogicSigPType: LogicSigPType,
|
|
@@ -224,6 +234,8 @@ var forExport = /*#__PURE__*/Object.freeze({
|
|
|
224
234
|
keyRegistrationItxnParamsType: keyRegistrationItxnParamsType,
|
|
225
235
|
keyRegistrationItxnType: keyRegistrationItxnType,
|
|
226
236
|
logFunction: logFunction,
|
|
237
|
+
loggedAssertFunction: loggedAssertFunction,
|
|
238
|
+
loggedErrFunction: loggedErrFunction,
|
|
227
239
|
logicSigBaseType: logicSigBaseType,
|
|
228
240
|
logicSigOptionsDecorator: logicSigOptionsDecorator,
|
|
229
241
|
matchFunction: matchFunction,
|
|
@@ -238,7 +250,6 @@ var forExport = /*#__PURE__*/Object.freeze({
|
|
|
238
250
|
paymentItxnFn: paymentItxnFn,
|
|
239
251
|
paymentItxnParamsType: paymentItxnParamsType,
|
|
240
252
|
paymentItxnType: paymentItxnType,
|
|
241
|
-
ptypeToArc4EncodedType: ptypeToArc4EncodedType,
|
|
242
253
|
readonlyDecorator: readonlyDecorator,
|
|
243
254
|
sizeOfFunction: sizeOfFunction,
|
|
244
255
|
stringPType: stringPType,
|
package/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../src/awst_build/ptypes/for-export.ts","../src/index.ts"],"sourcesContent":["/* This file aggregates all ptypes into a single export for external consumption of the compiler api */\nexport
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/awst_build/ptypes/for-export.ts","../src/index.ts"],"sourcesContent":["/* This file aggregates all ptypes into a single export for external consumption of the compiler api */\nexport * from './arc4-types'\nexport * from './index'\n","import {\n base32ToUint8Array,\n base64ToUint8Array,\n bigIntToUint8Array,\n hexToUint8Array,\n uint8ArrayToBase32,\n uint8ArrayToBase64,\n uint8ArrayToBigInt,\n uint8ArrayToHex,\n uint8ArrayToUtf8,\n utf8ToUint8Array,\n} from './util'\nimport './util/polyfills'\n\nexport { SourceLocation } from './awst/source-location'\nexport * as ptypes from './awst_build/ptypes/for-export'\nexport { registerPTypes } from './awst_build/ptypes/register'\nexport { typeRegistry } from './awst_build/type-registry'\nexport { TypeResolver } from './awst_build/type-resolver'\nexport { compile } from './compile'\nexport { processInputPaths } from './input-paths/process-input-paths'\nexport { LoggingContext, LogLevel, LogSource, LogEvent } from './logger'\nexport { CompileOptions } from './options'\nexport { AbsolutePath } from './util/absolute-path'\n\nexport const encodingUtil = {\n utf8ToUint8Array,\n bigIntToUint8Array,\n hexToUint8Array,\n base32ToUint8Array,\n base64ToUint8Array,\n uint8ArrayToUtf8,\n uint8ArrayToHex,\n uint8ArrayToBase32,\n uint8ArrayToBase64,\n uint8ArrayToBigInt,\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACyBO,MAAM,YAAY,GAAG;IAC1B,gBAAgB;IAChB,kBAAkB;IAClB,eAAe;IACf,kBAAkB;IAClB,kBAAkB;IAClB,gBAAgB;IAChB,eAAe;IACf,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;;;;;"}
|