@algorandfoundation/puya-ts 1.2.0-beta.32 → 1.2.0-beta.34
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-4cYQscWZ.js → analyser-service-DjrWRS0-.js} +3 -3
- package/{analyser-service-4cYQscWZ.js.map → analyser-service-DjrWRS0-.js.map} +1 -1
- package/analyserService.mjs +3 -3
- package/{arc4-clientgen-CkO21MdT.js → arc4-clientgen-CZtNN1eT.js} +3 -3
- package/arc4-clientgen-CZtNN1eT.js.map +1 -0
- package/awst_build/ast-visitors/class-definition-visitor.d.ts +721 -1
- package/awst_build/ast-visitors/function-visitor.d.ts +721 -1
- package/awst_build/ast-visitors/text-visitor.d.ts +721 -1
- package/awst_build/eb/arc4/arrays.d.ts +2 -1
- package/awst_build/eb/arc4/c2c.d.ts +0 -17
- package/awst_build/eb/array-like/arrays.d.ts +3 -2
- package/awst_build/eb/bytes-expression-builder.d.ts +0 -28
- package/awst_build/eb/contract-builder.d.ts +0 -11
- package/awst_build/eb/index.d.ts +0 -1
- package/awst_build/eb/literal/object-literal-expression-builder.d.ts +8 -4
- package/awst_build/eb/objects/util.d.ts +0 -2
- package/awst_build/eb/op-module-builder.d.ts +0 -3
- package/awst_build/eb/storage/box/box.d.ts +1 -21
- package/awst_build/eb/string-expression-builder.d.ts +0 -6
- package/awst_build/eb/util/resolve-compat-builder.d.ts +0 -8
- package/awst_build/op-metadata.d.ts +4 -3
- package/awst_build/ptypes/arc4-types.d.ts +0 -1
- package/awst_build/ptypes/index.d.ts +1 -1
- package/awst_build/ptypes/visitors/index-type-visitor.d.ts +0 -30
- package/bin/puyats-clientgen.mjs +5 -5
- package/bin/puyats-ls.mjs +6 -6
- package/bin/puyats-ls.mjs.map +1 -1
- package/bin/run-cli.mjs +8 -8
- package/{check-node-version-CJZN8bUo.js → check-node-version-BYGc-qxw.js} +3 -3
- package/{check-node-version-CJZN8bUo.js.map → check-node-version-BYGc-qxw.js.map} +1 -1
- package/cli.mjs +8 -8
- package/{compile-P13jbcuM.js → compile-BKk4hPli.js} +6 -6
- package/{compile-P13jbcuM.js.map → compile-BKk4hPli.js.map} +1 -1
- package/constants.d.ts +5 -0
- package/{contract-class-model-BUOeMEKh.js → contract-class-model-Dpn9A-pJ.js} +38 -33
- package/contract-class-model-Dpn9A-pJ.js.map +1 -0
- package/errors.d.ts +1 -6
- package/index.mjs +8 -9
- package/index.mjs.map +1 -1
- package/language-server/compile-trigger-queue.d.ts +2 -2
- package/language-server/puya-language-server.d.ts +0 -38
- package/logger/index.d.ts +0 -7
- package/{options-DgrJjFC_.js → options-BCW57sPn.js} +142 -132
- package/options-BCW57sPn.js.map +1 -0
- package/options.d.ts +4 -3
- package/package.json +2 -2
- package/puya/check-puya-version.d.ts +0 -13
- package/puya/log-deserializer.d.ts +0 -2
- package/{resolve-puya-path-n5rXecTR.js → resolve-puya-path-CdZID0Yd.js} +4 -4
- package/resolve-puya-path-CdZID0Yd.js.map +1 -0
- package/{semver-C4QVXBwz.js → semver-a7hIj_hk.js} +2 -2
- package/{semver-C4QVXBwz.js.map → semver-a7hIj_hk.js.map} +1 -1
- package/{util-J87OKSaa.js → util-nZLj7LWS.js} +2 -2
- package/{util-J87OKSaa.js.map → util-nZLj7LWS.js.map} +1 -1
- package/visitor/syntax-names.d.ts +4 -4
- package/visitor/visitor.d.ts +4 -4
- package/arc4-clientgen-CkO21MdT.js.map +0 -1
- package/contract-class-model-BUOeMEKh.js.map +0 -1
- package/language-server/ls-logger.d.ts +0 -11
- package/options-DgrJjFC_.js.map +0 -1
- package/resolve-puya-path-n5rXecTR.js.map +0 -1
|
@@ -25,7 +25,7 @@ export declare class DynamicBytesClassBuilder extends ClassBuilder {
|
|
|
25
25
|
readonly ptype: import("../../ptypes").LibClassType;
|
|
26
26
|
newCall(args: ReadonlyArray<NodeBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): InstanceBuilder;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
declare abstract class ArrayExpressionBuilder<TArrayType extends DynamicArrayType | StaticArrayType> extends Arc4EncodedBaseExpressionBuilder<TArrayType> {
|
|
29
29
|
iterate(): Expression;
|
|
30
30
|
indexAccess(index: InstanceBuilder | bigint, sourceLocation: SourceLocation): NodeBuilder;
|
|
31
31
|
memberAccess(name: string, sourceLocation: SourceLocation): NodeBuilder;
|
|
@@ -46,3 +46,4 @@ export declare class AddressExpressionBuilder extends ArrayExpressionBuilder<Sta
|
|
|
46
46
|
constructor(expr: Expression, ptype: PType);
|
|
47
47
|
memberAccess(name: string, sourceLocation: SourceLocation): NodeBuilder;
|
|
48
48
|
}
|
|
49
|
+
export {};
|
|
@@ -19,23 +19,6 @@ export declare class ContractProxyExpressionBuilder extends InstanceExpressionBu
|
|
|
19
19
|
constructor(expr: Expression, ptype: PType);
|
|
20
20
|
memberAccess(name: string, sourceLocation: SourceLocation): NodeBuilder;
|
|
21
21
|
}
|
|
22
|
-
export declare class ContractProxyBareCreateFunctionBuilder extends FunctionBuilder {
|
|
23
|
-
private readonly proxy;
|
|
24
|
-
constructor(proxy: ContractProxyExpressionBuilder, sourceLocation: SourceLocation);
|
|
25
|
-
call(args: ReadonlyArray<NodeBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation<ts.CallExpression>): NodeBuilder;
|
|
26
|
-
}
|
|
27
|
-
export declare class ContractProxyCallBuilder extends NodeBuilder {
|
|
28
|
-
private readonly proxy;
|
|
29
|
-
readonly ptype: undefined;
|
|
30
|
-
constructor(proxy: ContractProxyExpressionBuilder, sourceLocation: SourceLocation);
|
|
31
|
-
memberAccess(name: string, sourceLocation: SourceLocation): NodeBuilder;
|
|
32
|
-
}
|
|
33
|
-
export declare class ContractProxyCallFunctionBuilder extends FunctionBuilder {
|
|
34
|
-
private readonly proxy;
|
|
35
|
-
private readonly functionType;
|
|
36
|
-
constructor(proxy: ContractProxyExpressionBuilder, functionType: FunctionPType, sourceLocation: SourceLocation);
|
|
37
|
-
call(args: ReadonlyArray<NodeBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation<ts.CallExpression>): NodeBuilder;
|
|
38
|
-
}
|
|
39
22
|
export declare function buildApplicationCallTxnFields({ sourceLocation, fields, arc4Config, applicationProxy, methodSelector, functionType, }: {
|
|
40
23
|
applicationProxy?: InstanceBuilder;
|
|
41
24
|
fields?: InstanceBuilder;
|
|
@@ -4,12 +4,12 @@ import type { PType, PTypeOrClass } from '../../ptypes';
|
|
|
4
4
|
import { ArrayPType, FixedArrayPType, ReadonlyArrayPType } from '../../ptypes';
|
|
5
5
|
import type { InstanceBuilder, NodeBuilder } from '../index';
|
|
6
6
|
import { ClassBuilder, InstanceExpressionBuilder } from '../index';
|
|
7
|
-
|
|
7
|
+
type NativeArrayLike = FixedArrayPType | ReadonlyArrayPType | ArrayPType;
|
|
8
8
|
export declare class NativeArrayClassBuilder extends ClassBuilder {
|
|
9
9
|
readonly ptype: import("../../ptypes").GenericPType<ArrayPType>;
|
|
10
10
|
newCall(args: ReadonlyArray<NodeBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): InstanceBuilder;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
declare class NativeArrayLikeExpressionBuilder<T extends NativeArrayLike = NativeArrayLike> extends InstanceExpressionBuilder<T> {
|
|
13
13
|
iterate(sourceLocation: SourceLocation): Expression;
|
|
14
14
|
indexAccess(index: InstanceBuilder | bigint, sourceLocation: SourceLocation): NodeBuilder;
|
|
15
15
|
protected requireMutable(method: string, sourceLocation: SourceLocation): void;
|
|
@@ -33,3 +33,4 @@ export declare class FixedArrayExpressionBuilder extends NativeArrayLikeExpressi
|
|
|
33
33
|
export declare class ReadonlyArrayExpressionBuilder extends NativeArrayLikeExpressionBuilder<ReadonlyArrayPType> {
|
|
34
34
|
constructor(expr: Expression, ptype: PType);
|
|
35
35
|
}
|
|
36
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type ts from 'typescript';
|
|
2
2
|
import { type awst } from '../../awst';
|
|
3
3
|
import type { Expression } from '../../awst/nodes';
|
|
4
|
-
import { BytesBinaryOperator } from '../../awst/nodes';
|
|
5
4
|
import type { SourceLocation } from '../../awst/source-location';
|
|
6
5
|
import type { PType, PTypeOrClass } from '../ptypes';
|
|
7
6
|
import { BytesPType } from '../ptypes';
|
|
@@ -25,30 +24,3 @@ export declare class BytesExpressionBuilder extends InstanceExpressionBuilder<By
|
|
|
25
24
|
resolvableToPType(ptype: PTypeOrClass): ptype is BytesPType;
|
|
26
25
|
resolveToPType(ptype: PTypeOrClass): InstanceBuilder;
|
|
27
26
|
}
|
|
28
|
-
export declare class ConcatFunctionBuilder extends FunctionBuilder {
|
|
29
|
-
private builder;
|
|
30
|
-
constructor(builder: BytesExpressionBuilder);
|
|
31
|
-
call(args: ReadonlyArray<NodeBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation<ts.CallExpression>): NodeBuilder;
|
|
32
|
-
}
|
|
33
|
-
export declare function bytesToFixed(builder: InstanceBuilder, fixedType: BytesPType, sourceLocation: SourceLocation, strategy?: 'assert-length' | 'unsafe-cast'): InstanceBuilder;
|
|
34
|
-
export declare class ToFixedLengthFunctionBuilder extends FunctionBuilder {
|
|
35
|
-
private builder;
|
|
36
|
-
constructor(builder: BytesExpressionBuilder);
|
|
37
|
-
call(args: ReadonlyArray<NodeBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation<ts.CallExpression>): NodeBuilder;
|
|
38
|
-
}
|
|
39
|
-
export declare class BytesInvertBuilder extends FunctionBuilder {
|
|
40
|
-
private builder;
|
|
41
|
-
constructor(builder: BytesExpressionBuilder);
|
|
42
|
-
call(args: ReadonlyArray<NodeBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation<ts.CallExpression>): NodeBuilder;
|
|
43
|
-
}
|
|
44
|
-
export declare class BitwiseOpFunctionBuilder extends FunctionBuilder {
|
|
45
|
-
private left;
|
|
46
|
-
private op;
|
|
47
|
-
constructor(left: BytesExpressionBuilder, op: BytesBinaryOperator);
|
|
48
|
-
call(args: ReadonlyArray<NodeBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation<ts.CallExpression>): NodeBuilder;
|
|
49
|
-
}
|
|
50
|
-
export declare class ToStringBuilder extends FunctionBuilder {
|
|
51
|
-
private builder;
|
|
52
|
-
constructor(builder: BytesExpressionBuilder);
|
|
53
|
-
call(args: ReadonlyArray<NodeBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation<ts.CallExpression>): NodeBuilder;
|
|
54
|
-
}
|
|
@@ -25,17 +25,6 @@ export declare class ContractSuperBuilder extends ContractThisBuilder {
|
|
|
25
25
|
call(args: ReadonlyArray<NodeBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation<ts.CallExpression>): NodeBuilder;
|
|
26
26
|
memberAccess(name: string, sourceLocation: SourceLocation): NodeBuilder;
|
|
27
27
|
}
|
|
28
|
-
/**
|
|
29
|
-
* Matches polytype's super.class(SomeType) expression
|
|
30
|
-
*/
|
|
31
|
-
export declare class PolytypeExplicitClassAccessExpressionBuilder extends InstanceBuilder {
|
|
32
|
-
readonly ptype: ContractClassPType;
|
|
33
|
-
readonly isConstant = false;
|
|
34
|
-
resolve(): Expression;
|
|
35
|
-
resolveLValue(): LValue;
|
|
36
|
-
constructor(ptype: ContractClassPType, sourceLocation: SourceLocation);
|
|
37
|
-
memberAccess(name: string, sourceLocation: SourceLocation): NodeBuilder;
|
|
38
|
-
}
|
|
39
28
|
export declare class ContractClassBuilder extends InstanceBuilder {
|
|
40
29
|
readonly isConstant = false;
|
|
41
30
|
resolve(): Expression;
|
package/awst_build/eb/index.d.ts
CHANGED
|
@@ -131,7 +131,6 @@ export declare abstract class InstanceExpressionBuilder<TPType extends PType> ex
|
|
|
131
131
|
checkForUnclonedMutables(scenario: string): boolean;
|
|
132
132
|
}
|
|
133
133
|
export declare function isReferableExpression(expr: awst.Expression): boolean;
|
|
134
|
-
export declare function requireLValue(expr: awst.Expression): awst.LValue;
|
|
135
134
|
export declare class DecoratorDataBuilder extends NodeBuilder {
|
|
136
135
|
private readonly data;
|
|
137
136
|
readonly ptype: PType | undefined;
|
|
@@ -4,21 +4,25 @@ import type { ImmutableObjectPType, MutableObjectPType, PTypeOrClass } from '../
|
|
|
4
4
|
import { ObjectLiteralPType } from '../../ptypes';
|
|
5
5
|
import type { InstanceBuilder, NodeBuilder } from '../index';
|
|
6
6
|
import { LiteralExpressionBuilder } from '../literal-expression-builder';
|
|
7
|
-
export type
|
|
7
|
+
export type ObjectLiteralPart = {
|
|
8
8
|
type: 'properties';
|
|
9
|
-
|
|
9
|
+
property: ObjectLiteralBinding;
|
|
10
10
|
} | {
|
|
11
11
|
type: 'spread-object';
|
|
12
12
|
obj: InstanceBuilder;
|
|
13
13
|
spreadLocation: SourceLocation;
|
|
14
14
|
};
|
|
15
|
+
export type ObjectLiteralBinding = {
|
|
16
|
+
name: string;
|
|
17
|
+
target: InstanceBuilder;
|
|
18
|
+
};
|
|
15
19
|
export declare class ObjectLiteralExpressionBuilder extends LiteralExpressionBuilder {
|
|
16
20
|
readonly ptype: ObjectLiteralPType;
|
|
17
21
|
private readonly propertyToItemMap;
|
|
18
|
-
|
|
22
|
+
readonly bindings: ReadonlyArray<ObjectLiteralBinding>;
|
|
19
23
|
private readonly isSingleEval;
|
|
20
24
|
readonly isConstant = false;
|
|
21
|
-
static fromParts(sourceLocation: SourceLocation, parts:
|
|
25
|
+
static fromParts(sourceLocation: SourceLocation, parts: ObjectLiteralPart[]): ObjectLiteralExpressionBuilder;
|
|
22
26
|
private constructor();
|
|
23
27
|
singleEvaluation(): InstanceBuilder;
|
|
24
28
|
resolve(): Expression;
|
|
@@ -2,6 +2,4 @@ import type { NewStruct, TupleExpression } from '../../../awst/nodes';
|
|
|
2
2
|
import type { ImmutableObjectPType, ObjectLiteralPType } from '../../ptypes';
|
|
3
3
|
import { MutableObjectPType } from '../../ptypes';
|
|
4
4
|
import type { InstanceBuilder } from '../index';
|
|
5
|
-
export declare function createStruct(ptype: MutableObjectPType, valueProvider: InstanceBuilder): NewStruct;
|
|
6
|
-
export declare function createNamedTuple(ptype: ImmutableObjectPType | ObjectLiteralPType, valueProvider: InstanceBuilder): TupleExpression;
|
|
7
5
|
export declare function createObject(ptype: ImmutableObjectPType | ObjectLiteralPType | MutableObjectPType, valueProvider: InstanceBuilder): TupleExpression | NewStruct;
|
|
@@ -28,9 +28,6 @@ export declare class FreeIntrinsicOpBuilder extends IntrinsicOpBuilderBase {
|
|
|
28
28
|
readonly ptype: IntrinsicFunctionType;
|
|
29
29
|
constructor(sourceLocation: SourceLocation, ptype: PType);
|
|
30
30
|
}
|
|
31
|
-
export declare class GroupedIntrinsicOpBuilder extends IntrinsicOpBuilderBase {
|
|
32
|
-
constructor(sourceLocation: SourceLocation, opMapping: IntrinsicOpMapping);
|
|
33
|
-
}
|
|
34
31
|
/**
|
|
35
32
|
* Builder for expressions which have the 'type' of an intrinsic function or group but are not the singleton instance
|
|
36
33
|
* imported from @algorandfoundat/algorand-typescript. This is not supported.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type ts from 'typescript';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Expression } from '../../../../awst/nodes';
|
|
3
3
|
import type { SourceLocation } from '../../../../awst/source-location';
|
|
4
4
|
import type { PType } from '../../../ptypes';
|
|
5
5
|
import { BoxPType } from '../../../ptypes';
|
|
@@ -12,23 +12,3 @@ export declare class BoxExpressionBuilder extends BoxProxyExpressionBuilder<BoxP
|
|
|
12
12
|
constructor(expr: Expression, ptype: PType);
|
|
13
13
|
memberAccess(name: string, sourceLocation: SourceLocation): NodeBuilder;
|
|
14
14
|
}
|
|
15
|
-
export declare class BoxResizeFunctionBuilder extends FunctionBuilder {
|
|
16
|
-
private boxValue;
|
|
17
|
-
constructor(boxValue: BoxValueExpression, sourceLocation: SourceLocation);
|
|
18
|
-
call(args: ReadonlyArray<NodeBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): NodeBuilder;
|
|
19
|
-
}
|
|
20
|
-
export declare class BoxExtractFunctionBuilder extends FunctionBuilder {
|
|
21
|
-
private boxValue;
|
|
22
|
-
constructor(boxValue: BoxValueExpression, sourceLocation: SourceLocation);
|
|
23
|
-
call(args: ReadonlyArray<NodeBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): NodeBuilder;
|
|
24
|
-
}
|
|
25
|
-
export declare class BoxReplaceFunctionBuilder extends FunctionBuilder {
|
|
26
|
-
private boxValue;
|
|
27
|
-
constructor(boxValue: BoxValueExpression, sourceLocation: SourceLocation);
|
|
28
|
-
call(args: ReadonlyArray<NodeBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): NodeBuilder;
|
|
29
|
-
}
|
|
30
|
-
export declare class BoxSpliceFunctionBuilder extends FunctionBuilder {
|
|
31
|
-
private boxValue;
|
|
32
|
-
constructor(boxValue: BoxValueExpression, sourceLocation: SourceLocation);
|
|
33
|
-
call(args: ReadonlyArray<NodeBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): NodeBuilder;
|
|
34
|
-
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type ts from 'typescript';
|
|
2
|
-
import { awst } from '../../awst';
|
|
3
2
|
import type { Expression } from '../../awst/nodes';
|
|
4
3
|
import type { SourceLocation } from '../../awst/source-location';
|
|
5
4
|
import type { InstanceType, PType, PTypeOrClass } from '../ptypes';
|
|
@@ -22,8 +21,3 @@ export declare class StringExpressionBuilder extends InstanceExpressionBuilder<I
|
|
|
22
21
|
toBytes(sourceLocation: SourceLocation): InstanceBuilder;
|
|
23
22
|
toString(): Expression;
|
|
24
23
|
}
|
|
25
|
-
export declare class ConcatExpressionBuilder extends FunctionBuilder {
|
|
26
|
-
private expr;
|
|
27
|
-
constructor(expr: awst.Expression);
|
|
28
|
-
call(args: ReadonlyArray<NodeBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation<ts.CallExpression>): NodeBuilder;
|
|
29
|
-
}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
1
|
import type { PType } from '../../ptypes';
|
|
2
2
|
import type { NodeBuilder } from '../index';
|
|
3
|
-
import { InstanceBuilder } from '../index';
|
|
4
|
-
/**
|
|
5
|
-
* Given a builder, attempt to resolve it to the target type converting compatible types as possible
|
|
6
|
-
*
|
|
7
|
-
* @param builder
|
|
8
|
-
* @param targetType
|
|
9
|
-
*/
|
|
10
|
-
export declare function resolveCompatBuilder(builder: NodeBuilder, targetType: PType): InstanceBuilder<PType>;
|
|
11
3
|
export declare function resolveCompatExpression(builder: NodeBuilder, targetType: PType): import("../../../awst/nodes").Expression;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as ptypes from './ptypes';
|
|
2
2
|
import type { Expression } from '../awst/nodes';
|
|
3
|
-
|
|
3
|
+
type ImmediateArgMapping = {
|
|
4
4
|
name: string;
|
|
5
5
|
ptypes: ptypes.PType[];
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type StackArg = {
|
|
8
8
|
name: string;
|
|
9
9
|
ptypes: ptypes.PType[];
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type Signature = {
|
|
12
12
|
argNames: string[];
|
|
13
13
|
immediateArgs: Array<ImmediateArgMapping | bigint | string>;
|
|
14
14
|
stackArgs: Array<StackArg | Expression>;
|
|
@@ -25,3 +25,4 @@ export type IntrinsicOpGrouping = {
|
|
|
25
25
|
ops: Record<string, IntrinsicOpMapping>;
|
|
26
26
|
};
|
|
27
27
|
export declare const OP_METADATA: Record<string, IntrinsicOpMapping | IntrinsicOpGrouping>;
|
|
28
|
+
export {};
|
|
@@ -121,7 +121,6 @@ export declare class UintNType extends ARC4EncodedType {
|
|
|
121
121
|
});
|
|
122
122
|
accept<T>(visitor: PTypeVisitor<T>): T;
|
|
123
123
|
}
|
|
124
|
-
export declare const arc4Uint64: UintNType;
|
|
125
124
|
export declare const UFixedNxMGeneric: GenericPType<UFixedNxMType>;
|
|
126
125
|
export declare class UFixedNxMType extends ARC4EncodedType {
|
|
127
126
|
readonly [PType.IdSymbol] = "UFixedNxMType";
|
|
@@ -249,7 +249,7 @@ export declare class AnyPType extends PType {
|
|
|
249
249
|
readonly [PType.IdSymbol] = "AnyPType";
|
|
250
250
|
get wtype(): never;
|
|
251
251
|
readonly name = "any";
|
|
252
|
-
readonly module
|
|
252
|
+
readonly module: "lib.d.ts";
|
|
253
253
|
readonly singleton = false;
|
|
254
254
|
accept<T>(visitor: PTypeVisitor<T>): T;
|
|
255
255
|
}
|
|
@@ -1,35 +1,5 @@
|
|
|
1
1
|
import type { SourceLocation } from '../../../awst/source-location';
|
|
2
|
-
import type { ARC4StructType, DynamicArrayType, StaticArrayType } from '../arc4-types';
|
|
3
2
|
import type { PType } from '../base';
|
|
4
|
-
import type { ArrayLiteralPType, ArrayPType, FixedArrayPType, ImmutableObjectPType, MutableObjectPType, MutableTuplePType, ObjectLiteralPType, ReadonlyArrayPType, ReadonlyTuplePType, ReferenceArrayType } from '../index';
|
|
5
|
-
import { DefaultVisitor } from './default-visitor';
|
|
6
3
|
export declare function hasPropertyOfType(ptype: PType, property: string, propType: PType, sourceLocation: SourceLocation): boolean;
|
|
7
4
|
export declare function getPropertyType(ptype: PType, property: string, sourceLocation: SourceLocation): PType;
|
|
8
5
|
export declare function getIndexType(ptype: PType, index: bigint | string, sourceLocation: SourceLocation): PType | undefined;
|
|
9
|
-
export declare class IndexTypeVisitor extends DefaultVisitor<PType | undefined> {
|
|
10
|
-
private readonly index;
|
|
11
|
-
private readonly sourceLocation;
|
|
12
|
-
constructor(index: string | bigint, sourceLocation: SourceLocation);
|
|
13
|
-
/**
|
|
14
|
-
* Return the type that would result from accessing the specified index of a value of this type.
|
|
15
|
-
*
|
|
16
|
-
* @param ptype
|
|
17
|
-
* @param index
|
|
18
|
-
* @param sourceLocation
|
|
19
|
-
*/
|
|
20
|
-
static accept(ptype: PType, index: string | bigint, sourceLocation: SourceLocation): PType | undefined;
|
|
21
|
-
defaultReturn(ptype: PType): PType | undefined;
|
|
22
|
-
visitARC4StructType(ptype: ARC4StructType): PType | undefined;
|
|
23
|
-
visitImmutableObjectPType(ptype: ImmutableObjectPType): PType | undefined;
|
|
24
|
-
visitMutableObjectPType(ptype: MutableObjectPType): PType | undefined;
|
|
25
|
-
visitObjectLiteralPType(ptype: ObjectLiteralPType): PType | undefined;
|
|
26
|
-
visitReferenceArrayType(ptype: ReferenceArrayType): PType | undefined;
|
|
27
|
-
visitDynamicArrayType(ptype: DynamicArrayType): PType | undefined;
|
|
28
|
-
visitStaticArrayType(ptype: StaticArrayType): PType | undefined;
|
|
29
|
-
visitFixedArrayPType(ptype: FixedArrayPType): PType | undefined;
|
|
30
|
-
visitReadonlyArrayPType(ptype: ReadonlyArrayPType): PType | undefined;
|
|
31
|
-
visitArrayPType(ptype: ArrayPType): PType | undefined;
|
|
32
|
-
visitReadonlyTuplePType(ptype: ReadonlyTuplePType): PType | undefined;
|
|
33
|
-
visitMutableTuplePType(ptype: MutableTuplePType): PType | undefined;
|
|
34
|
-
visitArrayLiteralPType(ptype: ArrayLiteralPType): PType | undefined;
|
|
35
|
-
}
|
package/bin/puyats-clientgen.mjs
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { arc32ToArc56 } from '@algorandfoundation/algokit-utils/app-spec';
|
|
3
3
|
import { ArgumentParser } from 'argparse';
|
|
4
4
|
import { readFile } from 'fs/promises';
|
|
5
|
-
import { w as writeARC4Client } from '../arc4-clientgen-
|
|
6
|
-
import { a as appVersion } from '../semver-
|
|
7
|
-
import { c as checkNodeVersion } from '../check-node-version-
|
|
8
|
-
import { a as addEnumArg, C as ConsoleLogSink } from '../util-
|
|
9
|
-
import { L as LogLevel, l as logger, A as AbsolutePath, P as PuyaError, a as LoggingContext } from '../contract-class-model-
|
|
5
|
+
import { w as writeARC4Client } from '../arc4-clientgen-CZtNN1eT.js';
|
|
6
|
+
import { a as appVersion } from '../semver-a7hIj_hk.js';
|
|
7
|
+
import { c as checkNodeVersion } from '../check-node-version-BYGc-qxw.js';
|
|
8
|
+
import { a as addEnumArg, C as ConsoleLogSink } from '../util-nZLj7LWS.js';
|
|
9
|
+
import { L as LogLevel, l as logger, A as AbsolutePath, P as PuyaError, a as LoggingContext } from '../contract-class-model-Dpn9A-pJ.js';
|
|
10
10
|
import '@algorandfoundation/algokit-utils/abi';
|
|
11
11
|
import 'fs';
|
|
12
12
|
import 'node:url';
|
package/bin/puyats-ls.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { L as LogLevel, cl as distinct, l as logger, cm as zipStrict, d as Constants } from '../contract-class-model-
|
|
2
|
+
import { L as LogLevel, cl as distinct, l as logger, cm as zipStrict, d as Constants } from '../contract-class-model-Dpn9A-pJ.js';
|
|
3
3
|
import { ArgumentParser, BooleanOptionalAction } from 'argparse';
|
|
4
|
-
import { b as packageVersion, a as appVersion } from '../semver-
|
|
5
|
-
import { c as checkNodeVersion } from '../check-node-version-
|
|
4
|
+
import { b as packageVersion, a as appVersion } from '../semver-a7hIj_hk.js';
|
|
5
|
+
import { c as checkNodeVersion } from '../check-node-version-BYGc-qxw.js';
|
|
6
6
|
import { __esDecorate, __runInitializers } from 'tslib';
|
|
7
|
-
import { r as requireMain, l as logCaughtExpression, L as LogExceptions, c as createAnalyserService, a as createNormalisedTextDocumentConnection, n as normalisedUri, i as isCodeFixData } from '../analyser-service-
|
|
8
|
-
import { r as resolvePuyaPath } from '../resolve-puya-path-
|
|
7
|
+
import { r as requireMain, l as logCaughtExpression, L as LogExceptions, c as createAnalyserService, a as createNormalisedTextDocumentConnection, n as normalisedUri, i as isCodeFixData } from '../analyser-service-DjrWRS0-.js';
|
|
8
|
+
import { r as resolvePuyaPath } from '../resolve-puya-path-CdZID0Yd.js';
|
|
9
9
|
import EventEmitter from 'node:events';
|
|
10
|
-
import {
|
|
10
|
+
import { a7 as DefaultMap } from '../options-BCW57sPn.js';
|
|
11
11
|
import 'typescript';
|
|
12
12
|
import 'node:fs';
|
|
13
13
|
import 'node:util';
|