@algorandfoundation/puya-ts 1.2.0-beta.2 → 1.2.0-beta.21
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-DSK9g7zQ.js → analyser-service-CGprVWba.js} +409 -372
- package/analyser-service-CGprVWba.js.map +1 -0
- package/analyserService.mjs +7 -6
- package/analyserService.mjs.map +1 -1
- package/arc4-clientgen-C7FQSt3R.js +324 -0
- package/arc4-clientgen-C7FQSt3R.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 +22 -2
- package/awst/to-code-visitor.d.ts +2 -0
- package/awst/validation/awst-traverser.d.ts +3 -1
- package/awst/wtypes.d.ts +8 -1
- 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/models/decorator-data.d.ts +1 -0
- package/awst_build/ptypes/for-export.d.ts +0 -1
- package/awst_build/ptypes/index.d.ts +2 -0
- 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-BtcNqlid.js → check-node-version-DcMVGPC-.js} +3 -3
- package/{check-node-version-BtcNqlid.js.map → check-node-version-DcMVGPC-.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-Cj7vjDbw.js → compile-D0CpLiRh.js} +13 -4
- package/compile-D0CpLiRh.js.map +1 -0
- package/compile.d.ts +1 -1
- package/constants.d.ts +1 -1
- package/contract-class-model-CLKobHyV.js +5574 -0
- package/contract-class-model-CLKobHyV.js.map +1 -0
- package/index.d.ts +1 -1
- package/index.mjs +17 -10
- package/index.mjs.map +1 -1
- package/logger/index.d.ts +1 -0
- package/{options-Cbipn6vL.js → options-B93nVWrL.js} +2419 -8288
- package/options-B93nVWrL.js.map +1 -0
- package/options.d.ts +4 -0
- package/package.json +13 -12
- package/puya/puya-service.d.ts +5 -1
- package/{resolve-puya-path-CsuzbFH2.js → resolve-puya-path-D7qDcdPx.js} +9 -45
- package/resolve-puya-path-D7qDcdPx.js.map +1 -0
- package/semver-BPw8lYGI.js +45 -0
- package/semver-BPw8lYGI.js.map +1 -0
- package/util/typed-message-port.d.ts +2 -2
- package/util-BhM5b2cL.js +63 -0
- package/util-BhM5b2cL.js.map +1 -0
- package/visitor/syntax-names.d.ts +190 -190
- package/analyser-service-DSK9g7zQ.js.map +0 -1
- package/compile-Cj7vjDbw.js.map +0 -1
- package/options-Cbipn6vL.js.map +0 -1
- package/puya/index.d.ts +0 -14
- package/resolve-puya-path-CsuzbFH2.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 GlobalStateGeneric, a6 as GlobalStateType, a7 as GroupTransactionPType, a8 as ImmutableObjectPType, a9 as InnerTransactionPType, aa as InstanceType, ab as InternalType, ac as IntersectionPType, ad as IntrinsicEnumType, ae as IntrinsicFunctionGroupType, af as IntrinsicFunctionGroupTypeType, ag as IntrinsicFunctionType, ah as IntrinsicFunctionTypeType, ai as IterableIteratorGeneric, aj as IterableIteratorType, ak as ItxnParamsPType, al as KeyRegistrationTxnFunction, am as LibClassType, an as LibFunctionType, ao as LibObjType, ap as LocalStateGeneric, aq as LocalStateType, ar as LogicSigPType, as as MutableObjectPType, at as MutableTuplePType, au as NamespacePType, av as NumberPType, aw as NumericLiteralPType, ax as ObjectLiteralPType, ay as ObjectWithOptionalFieldsType, az as PType, aA as PaymentTxnFunction, aB as PolytypeClassMethodHelper, aC as PromiseGeneric, aD as PromiseType, aE as ReadonlyArrayGeneric, aF as ReadonlyArrayPType, aG as ReadonlyGeneric, aH as ReadonlyTuplePType, aI as ReferenceArrayGeneric, aJ as ReferenceArrayType, aK as StringFunction, aL as SuperPrototypeSelector, aM as SuperPrototypeSelectorGeneric, aN as TemplateVarFunction, aO as TransactionFunction, aP as TransactionFunctionType, aQ as TransientType, aR as TypeParameterType, aS as Uint64EnumMemberLiteralType, aT as Uint64EnumMemberType, aU as Uint64EnumType, aV as Uint64Function, aW as UnionPType, aX as UnsupportedType, e as accountPType, h as anyGtxnType, aY as anyItxnParamsType, aZ as anyItxnType, a_ as anyPType, n as applicationCallGtxnType, a$ as applicationCallItxnFn, b0 as applicationCallItxnParamsType, b1 as applicationItxnType, f as applicationPType, b2 as arc28EmitFunction, b3 as arc4AbiMethodDecorator, b4 as arc4BareMethodDecorator, b5 as arc4BaseContractType, b6 as assertFunction, b7 as assertMatchFunction, i as assetConfigGtxnType, b8 as assetConfigItxnFn, b9 as assetConfigItxnParamsType, ba as assetConfigItxnType, m as assetFreezeGtxnType, bb as assetFreezeItxnFn, bc as assetFreezeItxnParamsType, bd as assetFreezeItxnType, g as assetPType, j as assetTransferGtxnType, be as assetTransferItxnFn, bf as assetTransferItxnParamsType, bg as assetTransferItxnType, bh as base64PType, bi as baseContractType, bj as bigIntPType, bk as biguintPType, bl as boolPType, bm as bytesPType, bn as bzeroFunction, bo as cloneFunctionPType, bp as compileFunctionType, bq as compiledContractType, br as compiledLogicSigType, bs as contractOptionsDecorator, bt as ecPType, bu as ecdsaPType, bv as ensureBudgetFunction, bw as errFunction, bx as esSymbol, by as inputOnlyObjects, bz as isArrayType, bA as isObjectType, bB as isTupleLike, bC as itoaMethod, bD as itxnComposePType, k as keyRegistrationGtxnType, bE as keyRegistrationItxnFn, bF as keyRegistrationItxnParamsType, bG as keyRegistrationItxnType, bH as logFunction, bI as loggedAssertFunction, bJ as loggedErrFunction, bK as logicSigBaseType, bL as logicSigOptionsDecorator, bM as matchFunction, bN as mimcConfigurationsPType, bO as neverPType, bP as nullPType, bQ as numberPType, bR as onCompleteActionType, bS as opUpFeeSourceType, p as paymentGtxnType, bT as paymentItxnFn, bU as paymentItxnParamsType, bV as paymentItxnType, bW as readonlyDecorator, bX as stringPType, bY as submitGroupItxnFunction, bZ as transactionTypeType, b_ as uint64PType, b$ as undefinedPType, c0 as unknownPType, c1 as urangeFunction, c2 as validateEncodingFunctionPType, v as voidPType, c3 as vrfVerifyPType, c4 as uint8ArrayToBigInt, c5 as uint8ArrayToBase64, c6 as uint8ArrayToBase32, c7 as uint8ArrayToUtf8, c8 as base64ToUint8Array, c9 as base32ToUint8Array, ca as bigIntToUint8Array, cb as utf8ToUint8Array } from './contract-class-model-CLKobHyV.js';
|
|
2
|
+
export { A as AbsolutePath, L as LogLevel, cc as LogSource, a as LoggingContext, cd as SourceLocation } from './contract-class-model-CLKobHyV.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-B93nVWrL.js';
|
|
4
|
+
export { W as CompileOptions, X as TypeResolver, Y as processInputPaths, Z as registerPTypes, _ as typeRegistry } from './options-B93nVWrL.js';
|
|
5
|
+
export { c as compile } from './compile-D0CpLiRh.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-C7FQSt3R.js';
|
|
26
|
+
import '@algorandfoundation/algokit-utils/abi';
|
|
24
27
|
import 'fs';
|
|
28
|
+
import 'fs/promises';
|
|
29
|
+
import './semver-BPw8lYGI.js';
|
|
25
30
|
import 'node:url';
|
|
31
|
+
import './resolve-puya-path-D7qDcdPx.js';
|
|
26
32
|
import 'signal-exit';
|
|
27
33
|
import 'tar';
|
|
28
34
|
import 'node:zlib';
|
|
@@ -224,6 +230,8 @@ var forExport = /*#__PURE__*/Object.freeze({
|
|
|
224
230
|
keyRegistrationItxnParamsType: keyRegistrationItxnParamsType,
|
|
225
231
|
keyRegistrationItxnType: keyRegistrationItxnType,
|
|
226
232
|
logFunction: logFunction,
|
|
233
|
+
loggedAssertFunction: loggedAssertFunction,
|
|
234
|
+
loggedErrFunction: loggedErrFunction,
|
|
227
235
|
logicSigBaseType: logicSigBaseType,
|
|
228
236
|
logicSigOptionsDecorator: logicSigOptionsDecorator,
|
|
229
237
|
matchFunction: matchFunction,
|
|
@@ -238,7 +246,6 @@ var forExport = /*#__PURE__*/Object.freeze({
|
|
|
238
246
|
paymentItxnFn: paymentItxnFn,
|
|
239
247
|
paymentItxnParamsType: paymentItxnParamsType,
|
|
240
248
|
paymentItxnType: paymentItxnType,
|
|
241
|
-
ptypeToArc4EncodedType: ptypeToArc4EncodedType,
|
|
242
249
|
readonlyDecorator: readonlyDecorator,
|
|
243
250
|
sizeOfFunction: sizeOfFunction,
|
|
244
251
|
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;;;;;"}
|
package/logger/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export declare const logger: PuyaLogger;
|
|
|
48
48
|
export declare const patchErrorLocation: <TArgs extends unknown[], TReturn>(action: (...args: TArgs) => TReturn, sourceLocation: SourceLocation) => (...args: TArgs) => TReturn;
|
|
49
49
|
export declare class LoggingContext {
|
|
50
50
|
#private;
|
|
51
|
+
treatWarningsAsErrors: boolean;
|
|
51
52
|
get logEvents(): readonly LogEvent[];
|
|
52
53
|
get logEventsByPath(): {
|
|
53
54
|
readonly [path: string]: readonly LogEvent[];
|