@helios-lang/contract-utils 0.2.81 → 0.3.0
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/package.json +7 -7
- package/src/cast/Cast.js +149 -140
- package/src/cast/UserFunc.js +43 -50
- package/src/cast/index.js +2 -29
- package/src/codegen/LoadedScriptsWriter.js +55 -55
- package/src/codegen/TypeSchema.js +6 -14
- package/src/codegen/index.js +1 -14
- package/src/compiler/CompilerLib.js +1 -80
- package/src/compiler/CompilerLib_v0_16.js +14 -14
- package/src/compiler/CompilerLib_v0_17.js +25 -23
- package/src/compiler/index.js +0 -5
- package/src/compiler/ops.js +5 -7
- package/src/context/CacheEntry.js +86 -64
- package/src/context/ContractContextBuilder.js +37 -57
- package/src/context/ContractContextCache.js +5 -7
- package/src/context/DagCompiler.js +24 -20
- package/src/context/index.js +1 -7
- package/src/hl2ts.js +3 -6
- package/src/index.js +355 -9
- package/types/cast/Cast.d.ts +17 -103
- package/types/cast/Cast.d.ts.map +1 -1
- package/types/cast/UserFunc.d.ts +11 -94
- package/types/cast/UserFunc.d.ts.map +1 -1
- package/types/cast/index.d.ts +2 -9
- package/types/cast/index.d.ts.map +1 -1
- package/types/codegen/LoadedScriptsWriter.d.ts +8 -83
- package/types/codegen/LoadedScriptsWriter.d.ts.map +1 -1
- package/types/codegen/TypeCheckedValidator.d.ts +1 -1
- package/types/codegen/TypeCheckedValidator.d.ts.map +1 -1
- package/types/codegen/TypeSchema.d.ts +1 -1
- package/types/codegen/TypeSchema.d.ts.map +1 -1
- package/types/codegen/index.d.ts +1 -7
- package/types/codegen/index.d.ts.map +1 -1
- package/types/compiler/CompilerLib.d.ts +3 -138
- package/types/compiler/CompilerLib.d.ts.map +1 -1
- package/types/compiler/CompilerLib_v0_16.d.ts +8 -118
- package/types/compiler/CompilerLib_v0_16.d.ts.map +1 -1
- package/types/compiler/CompilerLib_v0_17.d.ts +12 -52
- package/types/compiler/CompilerLib_v0_17.d.ts.map +1 -1
- package/types/compiler/index.d.ts +0 -2
- package/types/compiler/index.d.ts.map +1 -1
- package/types/compiler/ops.d.ts +2 -2
- package/types/compiler/ops.d.ts.map +1 -1
- package/types/context/CacheEntry.d.ts +9 -22
- package/types/context/CacheEntry.d.ts.map +1 -1
- package/types/context/ContractContext.d.ts +8 -8
- package/types/context/ContractContext.d.ts.map +1 -1
- package/types/context/ContractContextBuilder.d.ts +5 -100
- package/types/context/ContractContextBuilder.d.ts.map +1 -1
- package/types/context/ContractContextCache.d.ts +5 -8
- package/types/context/ContractContextCache.d.ts.map +1 -1
- package/types/context/DagCompiler.d.ts +11 -15
- package/types/context/DagCompiler.d.ts.map +1 -1
- package/types/context/index.d.ts +1 -6
- package/types/context/index.d.ts.map +1 -1
- package/types/hl2ts.d.ts +0 -3
- package/types/hl2ts.d.ts.map +1 -1
- package/types/index.d.ts +284 -9
- package/types/index.d.ts.map +1 -1
- package/src/cast/PermissiveType.js +0 -18
- package/src/cast/StrictType.js +0 -18
- package/src/codegen/LoadedModule.js +0 -23
- package/src/codegen/LoadedValidator.js +0 -52
- package/src/codegen/TypeCheckedModule.js +0 -31
- package/src/codegen/TypeCheckedValidator.js +0 -15
- package/src/context/ContractContext.js +0 -130
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
3
|
-
* @
|
|
4
|
-
* @typedef {import("./CompilerLib.js").CompilerLib} CompilerLib
|
|
5
|
-
* @typedef {import("./CompilerLib.js").CompileOptions} CompileOptions
|
|
6
|
-
* @typedef {import("./CompilerLib.js").CompileOutput} CompileOutput
|
|
7
|
-
* @typedef {import("./CompilerLib.js").ScriptHashType} ScriptHashType
|
|
8
|
-
* @typedef {import("./CompilerLib.js").TypeCheckOutput} TypeCheckOutput
|
|
2
|
+
* @import { UplcData, UplcProgramV2 } from "@helios-lang/uplc"
|
|
3
|
+
* @import { CompilerLib, CompileOptions, CompileOutput, ScriptHashType, TypeCheckOutput } from "../index.js"
|
|
9
4
|
*/
|
|
10
5
|
/**
|
|
11
6
|
* @typedef {{
|
|
@@ -18,53 +13,15 @@
|
|
|
18
13
|
* hashDependencies?: Record<string, string>
|
|
19
14
|
* validatorIndices?: Record<string, number>
|
|
20
15
|
* excludeUserFuncs?: Set<string>
|
|
21
|
-
* onCompileUserFunc?: (name: string, uplc:
|
|
22
|
-
* }):
|
|
16
|
+
* onCompileUserFunc?: (name: string, uplc: UplcProgramV2) => void
|
|
17
|
+
* }): UplcProgramV2
|
|
23
18
|
* }} Program
|
|
24
19
|
*/
|
|
25
20
|
/**
|
|
26
|
-
* @
|
|
21
|
+
* @param {any} lib
|
|
22
|
+
* @returns {CompilerLib}
|
|
27
23
|
*/
|
|
28
|
-
export
|
|
29
|
-
/**
|
|
30
|
-
* @param {any} lib
|
|
31
|
-
*/
|
|
32
|
-
constructor(lib: any);
|
|
33
|
-
/**
|
|
34
|
-
* @private
|
|
35
|
-
* @type {any}
|
|
36
|
-
*/
|
|
37
|
-
private lib;
|
|
38
|
-
/**
|
|
39
|
-
* @type {string}
|
|
40
|
-
*/
|
|
41
|
-
get version(): string;
|
|
42
|
-
/**
|
|
43
|
-
* @param {string} purpose
|
|
44
|
-
* @returns {ScriptHashType}
|
|
45
|
-
*/
|
|
46
|
-
getScriptHashType(purpose: string): ScriptHashType;
|
|
47
|
-
/**
|
|
48
|
-
* @param {string} mainSource
|
|
49
|
-
* @param {string[]} moduleSources
|
|
50
|
-
* @param {CompileOptions} options
|
|
51
|
-
* @returns {CompileOutput}
|
|
52
|
-
*/
|
|
53
|
-
compile(mainSource: string, moduleSources: string[], options: CompileOptions): CompileOutput;
|
|
54
|
-
/**
|
|
55
|
-
* @param {string[]} validatorSources
|
|
56
|
-
* @param {string[]} moduleSources
|
|
57
|
-
* @returns {TypeCheckOutput}
|
|
58
|
-
*/
|
|
59
|
-
typeCheck(validatorSources: string[], moduleSources: string[]): TypeCheckOutput;
|
|
60
|
-
}
|
|
61
|
-
export type UplcData = import("@helios-lang/uplc").UplcData;
|
|
62
|
-
export type UplcProgramV2I = import("@helios-lang/uplc").UplcProgramV2I;
|
|
63
|
-
export type CompilerLib = import("./CompilerLib.js").CompilerLib;
|
|
64
|
-
export type CompileOptions = import("./CompilerLib.js").CompileOptions;
|
|
65
|
-
export type CompileOutput = import("./CompilerLib.js").CompileOutput;
|
|
66
|
-
export type ScriptHashType = import("./CompilerLib.js").ScriptHashType;
|
|
67
|
-
export type TypeCheckOutput = import("./CompilerLib.js").TypeCheckOutput;
|
|
24
|
+
export function makeCompilerLib_v0_17(lib: any): CompilerLib;
|
|
68
25
|
export type Program = {
|
|
69
26
|
name: string;
|
|
70
27
|
currentScriptIndex: Option<number>;
|
|
@@ -75,7 +32,10 @@ export type Program = {
|
|
|
75
32
|
hashDependencies?: Record<string, string>;
|
|
76
33
|
validatorIndices?: Record<string, number>;
|
|
77
34
|
excludeUserFuncs?: Set<string>;
|
|
78
|
-
onCompileUserFunc?: (name: string, uplc:
|
|
79
|
-
}):
|
|
35
|
+
onCompileUserFunc?: (name: string, uplc: UplcProgramV2) => void;
|
|
36
|
+
}): UplcProgramV2;
|
|
80
37
|
};
|
|
38
|
+
import type { CompilerLib } from "../index.js";
|
|
39
|
+
import type { UplcData } from "@helios-lang/uplc";
|
|
40
|
+
import type { UplcProgramV2 } from "@helios-lang/uplc";
|
|
81
41
|
//# sourceMappingURL=CompilerLib_v0_17.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompilerLib_v0_17.d.ts","sourceRoot":"","sources":["../../src/compiler/CompilerLib_v0_17.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CompilerLib_v0_17.d.ts","sourceRoot":"","sources":["../../src/compiler/CompilerLib_v0_17.js"],"names":[],"mappings":"AAGA;;;GAGG;AAEH;;;;;;;;;;;;;;GAcG;AAEH;;;GAGG;AACH,2CAHW,GAAG,GACD,WAAW,CAIvB;sBArBY;IACR,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,EAAE,MAAM,CAAC,MAAM,CAAC,CAAA;IAClC,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAA;IAC/C,OAAO,CAAC,OAAO,EAAE;QACf,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QACzC,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;QAC9B,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,KAAK,IAAI,CAAA;KAChE,GAAG,aAAa,CAAA;CAClB;iCAhB4F,aAAa;8BADjE,mBAAmB;mCAAnB,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/compiler/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/compiler/index.js"],"names":[],"mappings":""}
|
package/types/compiler/ops.d.ts
CHANGED
|
@@ -19,6 +19,6 @@ export function typeCheckFiles(lib: CompilerLib, files: {
|
|
|
19
19
|
* @returns {TypeCheckOutput}
|
|
20
20
|
*/
|
|
21
21
|
export function typeCheckScripts(lib: CompilerLib, scripts: string[]): TypeCheckOutput;
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
import type { CompilerLib } from "../index.js";
|
|
23
|
+
import type { TypeCheckOutput } from "../index.js";
|
|
24
24
|
//# sourceMappingURL=ops.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ops.d.ts","sourceRoot":"","sources":["../../src/compiler/ops.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ops.d.ts","sourceRoot":"","sources":["../../src/compiler/ops.js"],"names":[],"mappings":"AAoBA;;;GAGG;AACH,mCAFa,WAAW,CAkBvB;AAED;;;;;;GAMG;AACH,oCALW,WAAW,SACX;IAAC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,YACxB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,GACtC,eAAe,CAM3B;AAED;;;;GAIG;AACH,sCAJW,WAAW,WACX,MAAM,EAAE,GACN,eAAe,CAM3B;iCAvDgD,aAAa;qCAAb,aAAa"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
3
|
-
* @
|
|
4
|
-
* @
|
|
5
|
-
* @typedef {import("@helios-lang/uplc").UplcProgram} UplcProgram
|
|
6
|
-
* @typedef {import("@helios-lang/uplc").UplcProgramV1I} UplcProgramV1I
|
|
7
|
-
* @typedef {import("@helios-lang/uplc").UplcProgramV2I} UplcProgramV2I
|
|
8
|
-
* @typedef {import("@helios-lang/uplc").UplcSourceMapJsonSafe} UplcSourceMapJsonSafe
|
|
9
|
-
* @typedef {import("../cast/index.js").CastConfig} CastConfig
|
|
10
|
-
* @typedef {import("../codegen/LoadedModule.js").LoadedModule} LoadedModule
|
|
11
|
-
* @typedef {import("../codegen/LoadedValidator.js").LoadedValidator} LoadedValidator
|
|
12
|
-
* @typedef {import("./ContractContext.js").AnyContractValidatorContext} AnyContractValidatorContext
|
|
2
|
+
* @import { TypeSchema } from "@helios-lang/type-utils"
|
|
3
|
+
* @import { PlutusVersion, UplcData, UplcProgram, UplcProgramV1, UplcProgramV2, UplcSourceMapJsonSafe } from "@helios-lang/uplc"
|
|
4
|
+
* @import { AnyContractValidatorContext, Cast, CastConfig, LoadedModule, LoadedValidator } from "../index.js"
|
|
13
5
|
*/
|
|
14
6
|
/**
|
|
15
7
|
* @typedef {{
|
|
@@ -62,17 +54,6 @@ export function cacheEntryToJsonSafe(entry: CacheEntry): CacheEntryJson;
|
|
|
62
54
|
* @returns {CacheEntry}
|
|
63
55
|
*/
|
|
64
56
|
export function cacheEntryFromJson(entry: CacheEntryJson): CacheEntry;
|
|
65
|
-
export type TypeSchema = import("@helios-lang/type-utils").TypeSchema;
|
|
66
|
-
export type UplcData = import("@helios-lang/uplc").UplcData;
|
|
67
|
-
export type PlutusVersion = import("@helios-lang/uplc").PlutusVersion;
|
|
68
|
-
export type UplcProgram = import("@helios-lang/uplc").UplcProgram;
|
|
69
|
-
export type UplcProgramV1I = import("@helios-lang/uplc").UplcProgramV1I;
|
|
70
|
-
export type UplcProgramV2I = import("@helios-lang/uplc").UplcProgramV2I;
|
|
71
|
-
export type UplcSourceMapJsonSafe = import("@helios-lang/uplc").UplcSourceMapJsonSafe;
|
|
72
|
-
export type CastConfig = import("../cast/index.js").CastConfig;
|
|
73
|
-
export type LoadedModule = import("../codegen/LoadedModule.js").LoadedModule;
|
|
74
|
-
export type LoadedValidator = import("../codegen/LoadedValidator.js").LoadedValidator;
|
|
75
|
-
export type AnyContractValidatorContext = import("./ContractContext.js").AnyContractValidatorContext;
|
|
76
57
|
export type CacheEntry = {
|
|
77
58
|
debug?: boolean;
|
|
78
59
|
validators: {
|
|
@@ -114,4 +95,10 @@ export type CacheEntryJson = {
|
|
|
114
95
|
validators: CacheEntryValidatorsJson;
|
|
115
96
|
userFuncs: CacheEntryUserFuncsJson;
|
|
116
97
|
};
|
|
98
|
+
import type { AnyContractValidatorContext } from "../index.js";
|
|
99
|
+
import type { UplcProgram } from "@helios-lang/uplc";
|
|
100
|
+
import type { UplcSourceMapJsonSafe } from "@helios-lang/uplc";
|
|
101
|
+
import type { PlutusVersion } from "@helios-lang/uplc";
|
|
102
|
+
import type { CastConfig } from "../index.js";
|
|
103
|
+
import type { TypeSchema } from "@helios-lang/type-utils";
|
|
117
104
|
//# sourceMappingURL=CacheEntry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CacheEntry.d.ts","sourceRoot":"","sources":["../../src/context/CacheEntry.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CacheEntry.d.ts","sourceRoot":"","sources":["../../src/context/CacheEntry.js"],"names":[],"mappings":"AAcA;;;;GAIG;AAEH;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AAEH;;;GAGG;AACH,4CAHW,UAAU,GACR,cAAc,CAiI1B;AAED;;;GAGG;AACH,0CAHW,cAAc,GACZ,UAAU,CAmItB;yBAtTY;IACR,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,UAAU,EAAE;QAAC,CAAC,IAAI,EAAE,MAAM,GAAG,2BAA2B,CAAA;KAAC,CAAA;IACzD,SAAS,EAAE;QAAC,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAA;KAAC,CAAA;CACzC;uCAIS;IAAC,CAAC,IAAI,EAAE,MAAM,GAAG;QACvB,OAAO,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAA;QACrD,KAAK,EAAE,MAAM,EAAE,CAAA;QACf,kBAAkB,CAAC,EAAE,MAAM,CAAA;QAC3B,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,oBAAoB,CAAC,EAAE,qBAAqB,CAAA;QAC5C,gBAAgB,EAAE,MAAM,CAAA;QACxB,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,kBAAkB,CAAC,EAAE,qBAAqB,CAAA;QAC1C,aAAa,EAAE,aAAa,CAAA;QAC5B,UAAU,EAAE,UAAU,CAAA;QACtB,KAAK,CAAC,EAAE,UAAU,CAAA;QAClB,QAAQ,EAAE,UAAU,CAAA;KACrB,CAAA;CAAC;sCAIM;IAAC,CAAC,IAAI,EAAE,MAAM,GAAG;QACzB,kBAAkB,CAAC,EAAE,MAAM,CAAA;QAC3B,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,oBAAoB,CAAC,EAAE,qBAAqB,CAAA;QAC5C,gBAAgB,EAAE,MAAM,CAAA;QACxB,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,kBAAkB,CAAC,EAAE,qBAAqB,CAAA;QAC1C,aAAa,EAAE,aAAa,CAAA;KAC7B,CAAA;CAAC;6BAIQ;IACR,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,UAAU,EAAE,wBAAwB,CAAA;IACpC,SAAS,EAAE,uBAAuB,CAAA;CACnC;iDA7C6F,aAAa;iCADA,mBAAmB;2CAAnB,mBAAmB;mCAAnB,mBAAmB;gCAChC,aAAa;gCAF/E,yBAAyB"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
export type UplcProgram = import("@helios-lang/uplc").UplcProgram;
|
|
2
1
|
export type CastConfig = import("../cast/Cast.js").CastConfig;
|
|
3
2
|
export type LoadedModule = import("../codegen/index.js").LoadedModule;
|
|
4
3
|
export type LoadedValidator = import("../codegen/index.js").LoadedValidator;
|
|
5
|
-
export type MintingContext<TRedeemerStrict, TRedeemerPermissive> = import("@helios-lang/ledger").MintingContext<TRedeemerStrict, TRedeemerPermissive>;
|
|
6
|
-
export type SpendingContext<TDatumStrict, TDatumPermissive, TRedeemerStrict, TRedeemerPermissive> = import("@helios-lang/ledger").SpendingContext<TDatumStrict, TDatumPermissive, TRedeemerStrict, TRedeemerPermissive>;
|
|
7
|
-
export type StakingContext<TRedeemerStrict, TRedeemerPermissive> = import("@helios-lang/ledger").StakingContext<TRedeemerStrict, TRedeemerPermissive>;
|
|
8
4
|
export type CastLike<TStrict, TPermissive> = import("../cast/index.js").CastLike<TStrict, TPermissive>;
|
|
9
5
|
export type PermissiveType<C extends CastLike<any, any>> = import("../cast/index.js").PermissiveType<C>;
|
|
10
6
|
export type StrictType<C extends CastLike<any, any>> = import("../cast/index.js").StrictType<C>;
|
|
@@ -44,10 +40,14 @@ export type ContractContext<Vs extends {
|
|
|
44
40
|
}, Ms extends {
|
|
45
41
|
[name: string]: LoadedModule;
|
|
46
42
|
}> = { [K in keyof Vs]: ContractValidatorContexts<Vs[K]>; } & { [K in keyof Ms]: ContractModuleContexts<Ms[K]>; };
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
43
|
+
import type { SpendingContext } from "@helios-lang/ledger";
|
|
44
|
+
import type { ValidatorHash } from "@helios-lang/ledger";
|
|
45
|
+
import type { MintingContext } from "@helios-lang/ledger";
|
|
46
|
+
import type { MintingPolicyHash } from "@helios-lang/ledger";
|
|
47
|
+
import type { StakingContext } from "@helios-lang/ledger";
|
|
48
|
+
import type { StakingValidatorHash } from "@helios-lang/ledger";
|
|
49
|
+
import type { ScriptHash } from "@helios-lang/ledger";
|
|
51
50
|
import { Cast } from "../cast/index.js";
|
|
51
|
+
import type { UplcProgram } from "@helios-lang/uplc";
|
|
52
52
|
import { UserFunc } from "../cast/index.js";
|
|
53
53
|
//# sourceMappingURL=ContractContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContractContext.d.ts","sourceRoot":"","sources":["../../src/context/ContractContext.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContractContext.d.ts","sourceRoot":"","sources":["../../src/context/ContractContext.js"],"names":[],"mappings":"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"}
|
|
@@ -1,105 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
3
|
-
* @
|
|
4
|
-
* @typedef {import("../codegen/LoadedModule.js").LoadedModule} LoadedModule
|
|
5
|
-
* @typedef {import("../codegen/LoadedValidator.js").LoadedValidator} LoadedValidator
|
|
6
|
-
* @typedef {import("../compiler/index.js").CompilerLib} CompilerLib
|
|
2
|
+
* @import { UplcData } from "@helios-lang/uplc"
|
|
3
|
+
* @import { CastConfig, CompilerLib, ContractContext, ContractContextBuilder, ContractContextBuilderProps, ExtractDependencies, LoadedModule, LoadedValidator } from "../index.js"
|
|
7
4
|
*/
|
|
8
5
|
/**
|
|
9
|
-
* @
|
|
10
|
-
* @typedef {import("../codegen/LoadedValidator.js").ExtractDependencies<V>} ExtractDependencies
|
|
6
|
+
* @returns {ContractContextBuilder<{}, {}>}
|
|
11
7
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
* @template {{[name: string]: LoadedModule}} Ms
|
|
15
|
-
* @typedef {import("./ContractContext.js").ContractContext<Vs, Ms>} ContractContext
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* if `debug` is true, the ir is included where possible
|
|
19
|
-
* @typedef {{
|
|
20
|
-
* isMainnet: boolean
|
|
21
|
-
* expectedHashes?: {[name: string]: string}
|
|
22
|
-
* parameters?: Record<string, UplcData>
|
|
23
|
-
* dumpHashes?: boolean
|
|
24
|
-
* debug?: boolean
|
|
25
|
-
* }} ContractContextBuildProps
|
|
26
|
-
*/
|
|
27
|
-
/**
|
|
28
|
-
* @template {{[name: string]: LoadedValidator}} Vs
|
|
29
|
-
* @template {{[name: string]: LoadedModule}} Ms
|
|
30
|
-
*/
|
|
31
|
-
export class ContractContextBuilder<Vs extends {
|
|
32
|
-
[name: string]: LoadedValidator;
|
|
33
|
-
}, Ms extends {
|
|
34
|
-
[name: string]: LoadedModule;
|
|
35
|
-
}> {
|
|
36
|
-
/**
|
|
37
|
-
* @returns {ContractContextBuilder<{}, {}>}
|
|
38
|
-
*/
|
|
39
|
-
static "new"(): ContractContextBuilder<{}, {}>;
|
|
40
|
-
/**
|
|
41
|
-
* @private
|
|
42
|
-
* @param {Vs} validators
|
|
43
|
-
* @param {Ms} modules
|
|
44
|
-
*/
|
|
45
|
-
private constructor();
|
|
46
|
-
/**
|
|
47
|
-
* @private
|
|
48
|
-
* @readonly
|
|
49
|
-
* @type {Vs}
|
|
50
|
-
*/
|
|
51
|
-
private readonly validators;
|
|
52
|
-
/**
|
|
53
|
-
* @private
|
|
54
|
-
* @readonly
|
|
55
|
-
* @type {Ms}
|
|
56
|
-
*/
|
|
57
|
-
private readonly modules;
|
|
58
|
-
/**
|
|
59
|
-
* @template {LoadedValidator} V
|
|
60
|
-
* @param {V} validator
|
|
61
|
-
* @returns {ContractContextBuilder<
|
|
62
|
-
* Vs & {[K in V["$name"]]: V},
|
|
63
|
-
* Ms & ExtractDependencies<V>
|
|
64
|
-
* >}
|
|
65
|
-
*/
|
|
66
|
-
with<V extends LoadedValidator>(validator: V): ContractContextBuilder<Vs & { [K in V["$name"]]: V; }, Ms & ExtractDependencies<V>>;
|
|
67
|
-
/**
|
|
68
|
-
* @template {LoadedModule} M
|
|
69
|
-
* @param {M} m
|
|
70
|
-
* @returns {ContractContextBuilder<
|
|
71
|
-
* Vs,
|
|
72
|
-
* Ms & {[K in M["$name"]]: M}
|
|
73
|
-
* >}
|
|
74
|
-
*/
|
|
75
|
-
withModule<M extends LoadedModule>(m: M): ContractContextBuilder<Vs, Ms & { [K in M["$name"]]: M; }>;
|
|
76
|
-
/**
|
|
77
|
-
* @param {ContractContextBuildProps} props
|
|
78
|
-
* @returns {ContractContext<Vs, Ms>}
|
|
79
|
-
*/
|
|
80
|
-
build(props: ContractContextBuildProps): ContractContext<Vs, Ms>;
|
|
81
|
-
}
|
|
82
|
-
export type UplcData = import("@helios-lang/uplc").UplcData;
|
|
83
|
-
export type CastConfig = import("../cast/index.js").CastConfig;
|
|
84
|
-
export type LoadedModule = import("../codegen/LoadedModule.js").LoadedModule;
|
|
85
|
-
export type LoadedValidator = import("../codegen/LoadedValidator.js").LoadedValidator;
|
|
86
|
-
export type CompilerLib = import("../compiler/index.js").CompilerLib;
|
|
87
|
-
export type ExtractDependencies<V extends LoadedValidator> = import("../codegen/LoadedValidator.js").ExtractDependencies<V>;
|
|
88
|
-
export type ContractContext<Vs extends {
|
|
89
|
-
[name: string]: LoadedValidator;
|
|
90
|
-
}, Ms extends {
|
|
91
|
-
[name: string]: LoadedModule;
|
|
92
|
-
}> = import("./ContractContext.js").ContractContext<Vs, Ms>;
|
|
93
|
-
/**
|
|
94
|
-
* if `debug` is true, the ir is included where possible
|
|
95
|
-
*/
|
|
96
|
-
export type ContractContextBuildProps = {
|
|
97
|
-
isMainnet: boolean;
|
|
98
|
-
expectedHashes?: {
|
|
99
|
-
[name: string]: string;
|
|
100
|
-
};
|
|
101
|
-
parameters?: Record<string, UplcData>;
|
|
102
|
-
dumpHashes?: boolean;
|
|
103
|
-
debug?: boolean;
|
|
104
|
-
};
|
|
8
|
+
export function makeContractContextBuilder(): ContractContextBuilder<{}, {}>;
|
|
9
|
+
import type { ContractContextBuilder } from "../index.js";
|
|
105
10
|
//# sourceMappingURL=ContractContextBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContractContextBuilder.d.ts","sourceRoot":"","sources":["../../src/context/ContractContextBuilder.js"],"names":[],"mappings":"AAMA
|
|
1
|
+
{"version":3,"file":"ContractContextBuilder.d.ts","sourceRoot":"","sources":["../../src/context/ContractContextBuilder.js"],"names":[],"mappings":"AAMA;;;GAGG;AAEH;;GAEG;AACH,8CAFa,uBAAuB,EAAE,EAAE,EAAE,CAAC,CAI1C;4CARqK,aAAa"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export const contractContextCache: ContractContextCache;
|
|
2
|
-
export type UplcData = import("@helios-lang/uplc").UplcData;
|
|
3
|
-
export type UplcProgram = import("@helios-lang/uplc").UplcProgram;
|
|
4
|
-
export type LoadedModule = import("../codegen/LoadedModule.js").LoadedModule;
|
|
5
|
-
export type LoadedValidator = import("../codegen/LoadedValidator.js").LoadedValidator;
|
|
6
2
|
export type CacheEntry = import("./CacheEntry.js").CacheEntry;
|
|
7
3
|
export type CacheEntryJson = import("./CacheEntry.js").CacheEntryJson;
|
|
8
4
|
export type CacheEntryUserFuncsJson = import("./CacheEntry.js").CacheEntryUserFuncsJson;
|
|
@@ -13,10 +9,8 @@ export type ExplicitCache = {
|
|
|
13
9
|
set(key: string, entry: JsonSafe): void;
|
|
14
10
|
};
|
|
15
11
|
/**
|
|
16
|
-
* @
|
|
17
|
-
* @
|
|
18
|
-
* @typedef {import("../codegen/LoadedModule.js").LoadedModule} LoadedModule
|
|
19
|
-
* @typedef {import("../codegen/LoadedValidator.js").LoadedValidator} LoadedValidator
|
|
12
|
+
* @import { UplcData, UplcProgram } from "@helios-lang/uplc"
|
|
13
|
+
* @import { LoadedModule, LoadedValidator } from "../index.js"
|
|
20
14
|
* @typedef {import("./CacheEntry.js").CacheEntry} CacheEntry
|
|
21
15
|
* @typedef {import("./CacheEntry.js").CacheEntryJson} CacheEntryJson
|
|
22
16
|
* @typedef {import("./CacheEntry.js").CacheEntryUserFuncsJson} CacheEntryUserFuncsJson
|
|
@@ -93,5 +87,8 @@ declare class ContractContextCache {
|
|
|
93
87
|
*/
|
|
94
88
|
toJson(): CacheEntryJson[];
|
|
95
89
|
}
|
|
90
|
+
import type { LoadedValidator } from "../index.js";
|
|
91
|
+
import type { LoadedModule } from "../index.js";
|
|
92
|
+
import type { UplcData } from "@helios-lang/uplc";
|
|
96
93
|
export {};
|
|
97
94
|
//# sourceMappingURL=ContractContextCache.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContractContextCache.d.ts","sourceRoot":"","sources":["../../src/context/ContractContextCache.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContractContextCache.d.ts","sourceRoot":"","sources":["../../src/context/ContractContextCache.js"],"names":[],"mappings":"AAwJA,wDAA8D;yBAhJjD,OAAO,iBAAiB,EAAE,UAAU;6BACpC,OAAO,iBAAiB,EAAE,cAAc;sCACxC,OAAO,iBAAiB,EAAE,uBAAuB;uCACjD,OAAO,iBAAiB,EAAE,wBAAwB;4BAIlD;IACR,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;IACzB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAA;IAC1B,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAA;CACxC;AAdJ;;;;;;;GAOG;AAEH;;;;;;GAMG;AAEH;IACI;;;;OAIG;IACH,wBAAe;IAEf;;;;OAIG;IACH,eAFU,MAAM,CAAC,aAAa,CAAC,CAElB;IAEb;;;;OAIG;IACH,UAAC;IAED;;;OAGG;IACH,gBAAO;IAQP,eAEC;IAED;;;;;;;;;;;OAWG;IACH,mBAVW;QACN,OAAO,EAAE,MAAM,CAAA;QACf,KAAK,EAAE,OAAO,CAAA;QACd,SAAS,EAAE,OAAO,CAAA;QAClB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;QAC3C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;QACrC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;KACrC,GACS,MAAM,CA0BlB;IAED;;OAEG;IACH,WAFW,cAAc,EAAE,QAI1B;IAED;;;OAGG;IACH,SAHW,MAAM,SACN,UAAU,QAQpB;IAED;;;OAGG;IACH,SAHW,MAAM,GACJ,MAAM,CAAC,UAAU,CAAC,CAuB9B;IAED;;OAEG;IACH,UAFY,cAAc,EAAE,CAI3B;CACJ;qCA/IiD,aAAa;kCAAb,aAAa;8BADrB,mBAAmB"}
|
|
@@ -4,12 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export function getModuleDependencies(validator: LoadedValidator): string[];
|
|
6
6
|
/**
|
|
7
|
-
* @
|
|
8
|
-
* @
|
|
9
|
-
* @typedef {import("../cast/index.js").CastConfig} CastConfig
|
|
10
|
-
* @typedef {import("../codegen/LoadedValidator.js").LoadedValidator} LoadedValidator
|
|
11
|
-
* @typedef {import("../compiler/index.js").CompilerLib} CompilerLib
|
|
12
|
-
* @typedef {import("./ContractContext.js").AnyContractValidatorContext} AnyContractValidatorContext
|
|
7
|
+
* @import { UplcData, UplcProgram, UplcProgramV2 } from "@helios-lang/uplc"
|
|
8
|
+
* @import { AnyContractValidatorContext, CastConfig, CompilerLib, LoadedValidator} from "../index.js"
|
|
13
9
|
*/
|
|
14
10
|
/**
|
|
15
11
|
* @typedef {CastConfig & {
|
|
@@ -61,12 +57,12 @@ export class DagCompiler {
|
|
|
61
57
|
* @param {LoadedValidator[]} validators
|
|
62
58
|
* @param {Record<string, UplcData>} parameters
|
|
63
59
|
* @param {boolean} isTestnet
|
|
64
|
-
* @param {
|
|
60
|
+
* @param {{[name: string]: string} | undefined} expectedHashes
|
|
65
61
|
* @returns {DagCompilerOutput}
|
|
66
62
|
*/
|
|
67
|
-
build(validators: LoadedValidator[], parameters: Record<string, UplcData>, isTestnet: boolean, expectedHashes?:
|
|
63
|
+
build(validators: LoadedValidator[], parameters: Record<string, UplcData>, isTestnet: boolean, expectedHashes?: {
|
|
68
64
|
[name: string]: string;
|
|
69
|
-
}
|
|
65
|
+
} | undefined): DagCompilerOutput;
|
|
70
66
|
/**
|
|
71
67
|
* @private
|
|
72
68
|
* @param {LoadedValidator} validator
|
|
@@ -96,12 +92,6 @@ export class DagCompiler {
|
|
|
96
92
|
*/
|
|
97
93
|
private getValidatorIndices;
|
|
98
94
|
}
|
|
99
|
-
export type UplcData = import("@helios-lang/uplc").UplcData;
|
|
100
|
-
export type UplcProgram = import("@helios-lang/uplc").UplcProgram;
|
|
101
|
-
export type CastConfig = import("../cast/index.js").CastConfig;
|
|
102
|
-
export type LoadedValidator = import("../codegen/LoadedValidator.js").LoadedValidator;
|
|
103
|
-
export type CompilerLib = import("../compiler/index.js").CompilerLib;
|
|
104
|
-
export type AnyContractValidatorContext = import("./ContractContext.js").AnyContractValidatorContext;
|
|
105
95
|
export type DagCompilerConfig = CastConfig & {
|
|
106
96
|
debug?: boolean;
|
|
107
97
|
};
|
|
@@ -117,4 +107,10 @@ export type DagCompilerOutput = {
|
|
|
117
107
|
[name: string]: UplcProgram;
|
|
118
108
|
};
|
|
119
109
|
};
|
|
110
|
+
import type { LoadedValidator } from "../index.js";
|
|
111
|
+
import type { UplcData } from "@helios-lang/uplc";
|
|
112
|
+
import type { CompilerLib } from "../index.js";
|
|
113
|
+
import type { CastConfig } from "../index.js";
|
|
114
|
+
import type { AnyContractValidatorContext } from "../index.js";
|
|
115
|
+
import type { UplcProgram } from "@helios-lang/uplc";
|
|
120
116
|
//# sourceMappingURL=DagCompiler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DagCompiler.d.ts","sourceRoot":"","sources":["../../src/context/DagCompiler.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DagCompiler.d.ts","sourceRoot":"","sources":["../../src/context/DagCompiler.js"],"names":[],"mappings":"AA2ZA;;;GAGG;AACH,iDAHW,eAAe,GACb,MAAM,EAAE,CAsBpB;AAtaD;;;GAGG;AAEH;;;;GAIG;AACH;;;;;;;GAOG;AAEH;;GAEG;AACH;IA6BI;;;OAGG;IACH,iBAHW,WAAW,UACX,iBAAiB,EAO3B;IArCD;;;;OAIG;IACH,qBAAG;IAEH;;;;OAIG;IACH,wBAAM;IAEN;;;;OAIG;IACH,kCAAgB;IAEhB;;;;OAIG;IACH,iCAAe;IAaf;;;;;;OAMG;IACH,kBANW,eAAe,EAAE,cACjB,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,aACxB,OAAO,mBACP;QAAC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,GAAG,SAAS,GAClC,iBAAiB,CAgM7B;IAED;;;;;OAKG;IACH,4BAuCC;IAED;;;;;OAKG;IACH,yBA8BC;IAED;;;;;OAKG;IACH,qBAoBC;IAED;;;;;OAKG;IACH,4BAeC;CACJ;gCAtYY,UAAU,GAAG;IACrB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;;;;gCAIS;IACR,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,UAAU,EAAE;QAAC,CAAC,IAAI,EAAE,MAAM,GAAG,2BAA2B,CAAA;KAAC,CAAA;IACzD,SAAS,EAAE;QAAC,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAA;KAAC,CAAA;CACzC;qCAdqF,aAAa;8BAD7C,mBAAmB;iCACa,aAAa;gCAAb,aAAa;iDAAb,aAAa;iCAD7C,mBAAmB"}
|
package/types/context/index.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { makeContractContextBuilder } from "./ContractContextBuilder.js";
|
|
2
2
|
export { contractContextCache } from "./ContractContextCache.js";
|
|
3
|
-
export type ContractContext<Vs extends {
|
|
4
|
-
[name: string]: import("../codegen/index.js").LoadedValidator;
|
|
5
|
-
}, Ms extends {
|
|
6
|
-
[name: string]: import("../codegen/index.js").LoadedModule;
|
|
7
|
-
}> = import("./ContractContext.js").ContractContext<Vs, Ms>;
|
|
8
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.js"],"names":[],"mappings":""}
|
package/types/hl2ts.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export type CompilerLib = import("./compiler/CompilerLib.js").CompilerLib;
|
|
3
|
-
export type ModuleDetails = import("./compiler/CompilerLib.js").TypeCheckedModule;
|
|
4
|
-
export type ValidatorDetails = import("./compiler/CompilerLib.js").TypeCheckedValidator;
|
|
5
2
|
export type SourceDetails = {
|
|
6
3
|
name: string;
|
|
7
4
|
purpose: string;
|
package/types/hl2ts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hl2ts.d.ts","sourceRoot":"","sources":["../src/hl2ts.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"hl2ts.d.ts","sourceRoot":"","sources":["../src/hl2ts.js"],"names":[],"mappings":";4BAoBa;IACR,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;CACnB;yBAIS,YAAY,GAAG,YAAY"}
|