@helios-lang/contract-utils 0.3.9 → 0.3.11
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 +1 -1
- package/src/artifacts/ChildArtifactWriter.js +35 -22
- package/src/artifacts/FunctionArtifact.js +52 -10
- package/src/artifacts/RootArtifact.js +29 -0
- package/src/artifacts/ValidatorArtifact.js +75 -16
- package/types/artifacts/ChildArtifactWriter.d.ts +2 -1
- package/types/artifacts/ChildArtifactWriter.d.ts.map +1 -1
- package/types/artifacts/FunctionArtifact.d.ts +1 -0
- package/types/artifacts/FunctionArtifact.d.ts.map +1 -1
- package/types/artifacts/RootArtifact.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -41,36 +41,49 @@ export class ChildArtifactWriter extends ArtifactWriter {
|
|
|
41
41
|
/**
|
|
42
42
|
* @param {string} name
|
|
43
43
|
* @param {UplcProgram} program
|
|
44
|
+
* @param {boolean} includeDef
|
|
44
45
|
* @returns {ChildArtifactWriter}
|
|
45
46
|
*/
|
|
46
|
-
writeProgram(name, program) {
|
|
47
|
+
writeProgram(name, program, includeDef) {
|
|
47
48
|
if (program.plutusVersion == "PlutusScriptV1") {
|
|
48
49
|
this.addImport("UplcProgramV1", "@helios-lang/uplc", true)
|
|
49
|
-
this.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
this.writeDeclLine(`export const ${name}: UplcProgramV1`)
|
|
51
|
+
|
|
52
|
+
if (includeDef) {
|
|
53
|
+
this.addImport(
|
|
54
|
+
"decodeUplcProgramV1FromCbor",
|
|
55
|
+
"@helios-lang/uplc"
|
|
56
|
+
)
|
|
57
|
+
this.writeDefLine(
|
|
58
|
+
`export const ${name} = ${stringifyProgram("decodeUplcProgramV1FromCbor", program)}`
|
|
59
|
+
)
|
|
60
|
+
}
|
|
56
61
|
} else if (program.plutusVersion == "PlutusScriptV2") {
|
|
57
62
|
this.addImport("UplcProgramV2", "@helios-lang/uplc", true)
|
|
58
|
-
this.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
this.writeDeclLine(`export const ${name}: UplcProgramV2`)
|
|
64
|
+
|
|
65
|
+
if (includeDef) {
|
|
66
|
+
this.addImport(
|
|
67
|
+
"decodeUplcProgramV2FromCbor",
|
|
68
|
+
"@helios-lang/uplc"
|
|
69
|
+
)
|
|
70
|
+
this.writeDefLine(
|
|
71
|
+
`export const ${name} = ${stringifyProgram("decodeUplcProgramV2FromCbor", program)}`
|
|
72
|
+
)
|
|
73
|
+
}
|
|
65
74
|
} else if (program.plutusVersion == "PlutusScriptV3") {
|
|
66
75
|
this.addImport("UplcProgramV3", "@helios-lang/uplc", true)
|
|
67
|
-
this.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
76
|
+
this.writeDeclLine(`export const ${name}: UplcProgramV3`)
|
|
77
|
+
|
|
78
|
+
if (includeDef) {
|
|
79
|
+
this.addImport(
|
|
80
|
+
"decodeUplcProgramV3FromCbor",
|
|
81
|
+
"@helios-lang/uplc"
|
|
82
|
+
)
|
|
83
|
+
this.writeDefLine(
|
|
84
|
+
`export const ${name} = ${stringifyProgram("decodeUplcProgramV3FromCbor", program)}`
|
|
85
|
+
)
|
|
86
|
+
}
|
|
74
87
|
} else {
|
|
75
88
|
throw new Error("unhandled Plutus version")
|
|
76
89
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import { bytesToHex } from "@helios-lang/codec-utils"
|
|
2
|
+
import { expectDefined, isRight } from "@helios-lang/type-utils"
|
|
1
3
|
import {
|
|
2
|
-
genFuncType,
|
|
3
4
|
genUserFuncArgsType,
|
|
4
5
|
genUserFuncRetType
|
|
5
6
|
} from "../codegen/LoadedScriptsWriter.js"
|
|
6
7
|
import { ChildArtifactWriter } from "./ChildArtifactWriter.js"
|
|
7
8
|
|
|
8
9
|
/**
|
|
10
|
+
* @import { UplcProgram } from "@helios-lang/uplc"
|
|
9
11
|
* @import { UserFuncProps } from "../index.js"
|
|
10
12
|
* @import { Artifact } from "./Artifact.js"
|
|
11
13
|
* @import { FunctionDetails } from "./symbols.js"
|
|
@@ -22,9 +24,9 @@ export function writeFunctionArtifact(parent, name, details) {
|
|
|
22
24
|
const program = details.uplc
|
|
23
25
|
const props = details.props
|
|
24
26
|
|
|
25
|
-
artifact.writeProgram("$program", program)
|
|
27
|
+
artifact.writeProgram("$program", program, true)
|
|
26
28
|
artifact.writeProps(props)
|
|
27
|
-
artifact.writeEvals(props)
|
|
29
|
+
artifact.writeEvals(program, props)
|
|
28
30
|
|
|
29
31
|
artifact.save()
|
|
30
32
|
|
|
@@ -49,13 +51,15 @@ export const $props = ${JSON.stringify(props, undefined, 4)}`)
|
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
/**
|
|
54
|
+
* @param {UplcProgram} program
|
|
52
55
|
* @param {UserFuncProps} props
|
|
53
56
|
*/
|
|
54
|
-
writeEvals(props) {
|
|
57
|
+
writeEvals(program, props) {
|
|
55
58
|
const safeArgsType = genUserFuncArgsType(props)
|
|
56
59
|
const unsafeArgsType = genUserFuncArgsType(props, true)
|
|
57
60
|
const retType = genUserFuncRetType(props)
|
|
58
61
|
const unsafeRetType = genUserFuncRetType(props, true)
|
|
62
|
+
const isConst = safeArgsType == "{}"
|
|
59
63
|
|
|
60
64
|
this.addImport("UplcLogger", "@helios-lang/uplc", true)
|
|
61
65
|
this.addImport("UplcData", "@helios-lang/uplc", true)
|
|
@@ -63,28 +67,66 @@ export const $props = ${JSON.stringify(props, undefined, 4)}`)
|
|
|
63
67
|
|
|
64
68
|
this.addImport("evalUserFunc", "@helios-lang/contract-utils")
|
|
65
69
|
.writeDeclLine(
|
|
66
|
-
`export function $eval(args${
|
|
70
|
+
`export function $eval(args${isConst ? "?" : ""}: ${safeArgsType}, logOptions?: UplcLogger | undefined): ${retType}`
|
|
67
71
|
)
|
|
68
72
|
.writeDefLine(
|
|
69
|
-
`export function $eval(args${
|
|
73
|
+
`export function $eval(args${isConst ? " = {}" : ""}, logOptions = undefined) {
|
|
70
74
|
return evalUserFunc($program, $props, args, logOptions)
|
|
71
75
|
}`
|
|
72
76
|
)
|
|
73
77
|
.addImport("evalUserFuncUnsafe", "@helios-lang/contract-utils")
|
|
74
78
|
.writeDeclLine(
|
|
75
|
-
`export function $evalUnsafe(args${
|
|
79
|
+
`export function $evalUnsafe(args${isConst ? "?" : ""}: ${unsafeArgsType}, logOptions?: UplcLogger | undefined): ${unsafeRetType}`
|
|
76
80
|
)
|
|
77
81
|
.writeDefLine(
|
|
78
|
-
`export function $evalUnsafe(args${
|
|
82
|
+
`export function $evalUnsafe(args${isConst ? " = {}" : ""}, logOptions = undefined) {
|
|
79
83
|
return evalUserFuncUnsafe($program, $props, args, logOptions)
|
|
80
84
|
}`
|
|
81
85
|
)
|
|
82
86
|
.addImport("profileUserFunc", "@helios-lang/contract-utils")
|
|
83
87
|
.writeDeclLine(
|
|
84
|
-
`export function $profile(args${
|
|
88
|
+
`export function $profile(args${isConst ? "?" : ""}: ${unsafeArgsType}, logOptions?: UplcLogger | undefined): CekResult`
|
|
85
89
|
)
|
|
86
|
-
.writeDefLine(`export function $profile(args${
|
|
90
|
+
.writeDefLine(`export function $profile(args${isConst ? " = {}" : ""}, logOptions = undefined) {
|
|
87
91
|
return profileUserFunc($program, $props, args, logOptions)
|
|
88
92
|
}`)
|
|
93
|
+
|
|
94
|
+
if (isConst) {
|
|
95
|
+
// attempt to evaluate, and add $data
|
|
96
|
+
try {
|
|
97
|
+
const result = program.eval([])
|
|
98
|
+
|
|
99
|
+
if (
|
|
100
|
+
isRight(result.result) &&
|
|
101
|
+
typeof result.result.right != "string" &&
|
|
102
|
+
result.result.right.kind == "data"
|
|
103
|
+
) {
|
|
104
|
+
const data = result.result.right.value
|
|
105
|
+
|
|
106
|
+
const uplcDataType = expectDefined(
|
|
107
|
+
{
|
|
108
|
+
int: "IntData",
|
|
109
|
+
bytes: "ByteArrayData",
|
|
110
|
+
constr: "ConstrData",
|
|
111
|
+
map: "MapData",
|
|
112
|
+
list: "ListData"
|
|
113
|
+
}[data.kind]
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
this.addImport(uplcDataType, "@helios-lang/uplc", true)
|
|
117
|
+
.writeDeclLine(
|
|
118
|
+
`export const $constData: ${uplcDataType}`
|
|
119
|
+
)
|
|
120
|
+
.addImport("decodeUplcData", "@helios-lang/uplc", false)
|
|
121
|
+
.writeDefLine(
|
|
122
|
+
`export const $constData = /* @__PURE__ */ decodeUplcData("${bytesToHex(data.toCbor())}")`
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
// TODO: $constValue
|
|
126
|
+
}
|
|
127
|
+
} catch (_e) {
|
|
128
|
+
// don't do anything, simply ignore
|
|
129
|
+
}
|
|
130
|
+
}
|
|
89
131
|
}
|
|
90
132
|
}
|
|
@@ -16,6 +16,11 @@ export function writeContractContextArtifacts(context, options) {
|
|
|
16
16
|
|
|
17
17
|
const root = new RootArtifact(options.fs, options.outDir, isMainnet)
|
|
18
18
|
|
|
19
|
+
/**
|
|
20
|
+
* @type {string[]}
|
|
21
|
+
*/
|
|
22
|
+
let validatorNames = []
|
|
23
|
+
|
|
19
24
|
for (let moduleName in context) {
|
|
20
25
|
if (moduleName.startsWith("$")) {
|
|
21
26
|
continue
|
|
@@ -30,11 +35,14 @@ export function writeContractContextArtifacts(context, options) {
|
|
|
30
35
|
moduleDetails.$hash,
|
|
31
36
|
moduleDetails
|
|
32
37
|
)
|
|
38
|
+
|
|
39
|
+
validatorNames.push(moduleName)
|
|
33
40
|
} else {
|
|
34
41
|
writeModuleArtifact(root, moduleName, moduleDetails)
|
|
35
42
|
}
|
|
36
43
|
}
|
|
37
44
|
|
|
45
|
+
root.writeValidatorNameUtils(validatorNames)
|
|
38
46
|
root.save()
|
|
39
47
|
}
|
|
40
48
|
|
|
@@ -58,6 +66,27 @@ class RootArtifact extends ArtifactWriter {
|
|
|
58
66
|
|
|
59
67
|
this.isMainnet = isMainnet
|
|
60
68
|
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @param {string[]} names
|
|
72
|
+
*/
|
|
73
|
+
writeValidatorNameUtils(names) {
|
|
74
|
+
this.writeDeclLine(
|
|
75
|
+
`export type $ValidatorNameType = ${names.map((n) => `"${n}"`).join(" | ")}`
|
|
76
|
+
)
|
|
77
|
+
.writeDeclLine(
|
|
78
|
+
`export const $VALIDATOR_NAMES: $ValidatorNameType[]`
|
|
79
|
+
)
|
|
80
|
+
.writeDeclLine(
|
|
81
|
+
`export function $isValidatorName(name: string): name is $ValidatorNameType`
|
|
82
|
+
)
|
|
83
|
+
.writeDefLine(
|
|
84
|
+
`export const $VALIDATOR_NAMES = [${names.map((n) => `"${n}"`).join(", ")}]`
|
|
85
|
+
)
|
|
86
|
+
.writeDefLine(
|
|
87
|
+
`export function $isValidatorName(name) {return $VALIDATOR_NAMES.includes(name)}`
|
|
88
|
+
)
|
|
89
|
+
}
|
|
61
90
|
}
|
|
62
91
|
|
|
63
92
|
/**
|
|
@@ -17,10 +17,10 @@ import { ModuleArtifact } from "./ModuleArtifact.js"
|
|
|
17
17
|
export function writeValidatorArtifact(parent, name, hash, symbols) {
|
|
18
18
|
const artifact = new ValdiatorArtifact(parent, name)
|
|
19
19
|
|
|
20
|
-
artifact.writeHash(hash)
|
|
21
|
-
|
|
22
20
|
artifact.writeSymbols(symbols)
|
|
23
21
|
|
|
22
|
+
artifact.writeHash(hash)
|
|
23
|
+
|
|
24
24
|
artifact.save()
|
|
25
25
|
|
|
26
26
|
parent.writeAggregateExport(name)
|
|
@@ -30,19 +30,28 @@ export function writeValidatorArtifact(parent, name, hash, symbols) {
|
|
|
30
30
|
* @implements {Artifact}
|
|
31
31
|
*/
|
|
32
32
|
class ValdiatorArtifact extends ModuleArtifact {
|
|
33
|
+
/**
|
|
34
|
+
* @private
|
|
35
|
+
* @type {boolean}
|
|
36
|
+
*/
|
|
37
|
+
hasMainFunction
|
|
38
|
+
|
|
33
39
|
/**
|
|
34
40
|
* @param {Artifact} parent
|
|
35
41
|
* @param {string} name
|
|
36
42
|
*/
|
|
37
43
|
constructor(parent, name) {
|
|
38
44
|
super(parent, name)
|
|
45
|
+
this.hasMainFunction = false
|
|
39
46
|
}
|
|
40
47
|
|
|
41
48
|
/**
|
|
42
49
|
* @param {ScriptHash} hash
|
|
43
50
|
*/
|
|
44
51
|
writeHash(hash) {
|
|
45
|
-
|
|
52
|
+
this.writeDeclLine(`export const $hashHex: string`)
|
|
53
|
+
this.writeDefLine(`export const $hashHex = "${hash.toHex()}"`)
|
|
54
|
+
|
|
46
55
|
if (hash.kind == "MintingPolicyHash") {
|
|
47
56
|
this.addImport(
|
|
48
57
|
"MintingPolicyHash",
|
|
@@ -54,9 +63,15 @@ class ValdiatorArtifact extends ModuleArtifact {
|
|
|
54
63
|
this.writeDeclLine(
|
|
55
64
|
`export const $hash: MintingPolicyHash`
|
|
56
65
|
).writeDefLine(
|
|
57
|
-
`export const $hash = /* @__PURE__ */ makeMintingPolicyHash(
|
|
66
|
+
`export const $hash = /* @__PURE__ */ makeMintingPolicyHash($hashHex)`
|
|
58
67
|
)
|
|
59
68
|
} else {
|
|
69
|
+
this.writeDeclLine(
|
|
70
|
+
`export const $hashWithoutContext: MintingPolicyHash`
|
|
71
|
+
).writeDefLine(
|
|
72
|
+
`export const $hashWithoutContext = /* @__PURE__ */ makeMintingPolicyHash($hashHex)`
|
|
73
|
+
)
|
|
74
|
+
|
|
60
75
|
this.addImport("makeCast", "@helios-lang/contract-utils")
|
|
61
76
|
this.addImport("MintingContext", "@helios-lang/ledger", true)
|
|
62
77
|
|
|
@@ -70,10 +85,14 @@ class ValdiatorArtifact extends ModuleArtifact {
|
|
|
70
85
|
)
|
|
71
86
|
const types = genTypes(redeemer.schema)
|
|
72
87
|
|
|
73
|
-
this.writeProgram("$program", program)
|
|
74
|
-
|
|
88
|
+
this.writeProgram("$program", program, !this.hasMainFunction)
|
|
89
|
+
|
|
90
|
+
this.writeDeclLine(
|
|
91
|
+
`export type $ContextType = MintingContext<${types[0]}, ${types[1]}>`
|
|
92
|
+
).writeDeclLine(
|
|
93
|
+
`export const $hash: MintingPolicyHash<$ContextType>`
|
|
75
94
|
)
|
|
76
|
-
.writeDefLine(`export const $hash = /* @__PURE__ */ makeMintingPolicyHash(
|
|
95
|
+
.writeDefLine(`export const $hash = /* @__PURE__ */ makeMintingPolicyHash($hashHex, {
|
|
77
96
|
program: $program,
|
|
78
97
|
redeemer: /* @__PURE__*/ makeCast(${JSON.stringify(redeemer.schema, undefined, 4).split("\n").join("\n ")}, {isMainnet: ${this.isMainnet}})
|
|
79
98
|
})`)
|
|
@@ -89,9 +108,15 @@ class ValdiatorArtifact extends ModuleArtifact {
|
|
|
89
108
|
this.writeDeclLine(
|
|
90
109
|
`export const $hash: StakingValidatorHash`
|
|
91
110
|
).writeDefLine(
|
|
92
|
-
`export const $hash = /* @__PURE__*/ makeStakingValidatorHash(
|
|
111
|
+
`export const $hash = /* @__PURE__*/ makeStakingValidatorHash($hashHex)`
|
|
93
112
|
)
|
|
94
113
|
} else {
|
|
114
|
+
this.writeDeclLine(
|
|
115
|
+
`export const $hashWithoutContext: StakingValidatorHash`
|
|
116
|
+
).writeDefLine(
|
|
117
|
+
`export const $hashWithoutContext = /* @__PURE__*/ makeStakingValidatorHash($hashHex)`
|
|
118
|
+
)
|
|
119
|
+
|
|
95
120
|
this.addImport("makeCast", "@helios-lang/contract-utils")
|
|
96
121
|
this.addImport("StakingContext", "@helios-lang/ledger", true)
|
|
97
122
|
|
|
@@ -105,10 +130,14 @@ class ValdiatorArtifact extends ModuleArtifact {
|
|
|
105
130
|
)
|
|
106
131
|
const types = genTypes(redeemer.schema)
|
|
107
132
|
|
|
108
|
-
this.writeProgram("$program", program)
|
|
109
|
-
|
|
133
|
+
this.writeProgram("$program", program, !this.hasMainFunction)
|
|
134
|
+
|
|
135
|
+
this.writeDeclLine(
|
|
136
|
+
`export type $ContextType = StakingContext<${types[0]}, ${types[1]}>`
|
|
137
|
+
).writeDeclLine(
|
|
138
|
+
`export const $hash: StakingValidatorHash<$ContextType>`
|
|
110
139
|
)
|
|
111
|
-
.writeDefLine(`export const $hash = /* @__PURE__*/ makeStakingValidatorHash(
|
|
140
|
+
.writeDefLine(`export const $hash = /* @__PURE__*/ makeStakingValidatorHash($hashHex, {
|
|
112
141
|
program: $program,
|
|
113
142
|
redeemer: /* @__PURE__ */ makeCast(${JSON.stringify(redeemer.schema, undefined, 4).split("\n").join("\n ")}, {isMainnet: ${this.isMainnet}})
|
|
114
143
|
})`)
|
|
@@ -124,9 +153,15 @@ class ValdiatorArtifact extends ModuleArtifact {
|
|
|
124
153
|
this.writeDeclLine(
|
|
125
154
|
`export const $hash: ValidatorHash`
|
|
126
155
|
).writeDefLine(
|
|
127
|
-
`export const $hash = /* @__PURE__ */ makeValidatorHash(
|
|
156
|
+
`export const $hash = /* @__PURE__ */ makeValidatorHash($hashHex)`
|
|
128
157
|
)
|
|
129
158
|
} else {
|
|
159
|
+
this.writeDeclLine(
|
|
160
|
+
`export const $hashWithoutContext: ValidatorHash`
|
|
161
|
+
).writeDefLine(
|
|
162
|
+
`export const $hashWithoutContext = /* @__PURE__ */ makeValidatorHash($hashHex)`
|
|
163
|
+
)
|
|
164
|
+
|
|
130
165
|
this.addImport("makeCast", "@helios-lang/contract-utils")
|
|
131
166
|
this.addImport("SpendingContext", "@helios-lang/ledger", true)
|
|
132
167
|
|
|
@@ -144,15 +179,39 @@ class ValdiatorArtifact extends ModuleArtifact {
|
|
|
144
179
|
const dTypes = genTypes(datum.schema)
|
|
145
180
|
const rTypes = genTypes(redeemer.schema)
|
|
146
181
|
|
|
147
|
-
this.writeProgram("$program", program)
|
|
148
|
-
|
|
182
|
+
this.writeProgram("$program", program, !this.hasMainFunction)
|
|
183
|
+
|
|
184
|
+
this.writeDeclLine(
|
|
185
|
+
`export type $ContextType = SpendingContext<${dTypes[0]}, ${dTypes[1]}, ${rTypes[0]}, ${rTypes[1]}>`
|
|
149
186
|
)
|
|
150
|
-
.
|
|
187
|
+
.writeDeclLine(
|
|
188
|
+
`export const $hash: ValidatorHash<$ContextType>`
|
|
189
|
+
)
|
|
190
|
+
.writeDefLine(
|
|
191
|
+
`export const $hash = /* @__PURE__ */ makeValidatorHash($hashHex, {
|
|
151
192
|
program: $program,
|
|
152
193
|
datum: /* @__PURE__ */ makeCast(${JSON.stringify(datum.schema, undefined, 4).split("\n").join("\n ")}, {isMainnet: ${this.isMainnet}}),
|
|
153
194
|
redeemer: /* @__PURE__ */ makeCast(${JSON.stringify(redeemer.schema, undefined, 4).split("\n").join("\n ")}, {isMainnet: ${this.isMainnet}})
|
|
154
|
-
})`
|
|
195
|
+
})`
|
|
196
|
+
)
|
|
155
197
|
}
|
|
156
198
|
}
|
|
157
199
|
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @param {string} name
|
|
203
|
+
* @returns {ValdiatorArtifact}
|
|
204
|
+
*/
|
|
205
|
+
writeAggregateExport(name) {
|
|
206
|
+
super.writeAggregateExport(name)
|
|
207
|
+
|
|
208
|
+
if (name == "main") {
|
|
209
|
+
this.writeDefLine(
|
|
210
|
+
`import { $program } from "./${name}/index.js"`
|
|
211
|
+
).writeDefLine(`export { $program }`)
|
|
212
|
+
this.hasMainFunction = true
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
return this
|
|
216
|
+
}
|
|
158
217
|
}
|
|
@@ -25,9 +25,10 @@ export class ChildArtifactWriter extends ArtifactWriter {
|
|
|
25
25
|
/**
|
|
26
26
|
* @param {string} name
|
|
27
27
|
* @param {UplcProgram} program
|
|
28
|
+
* @param {boolean} includeDef
|
|
28
29
|
* @returns {ChildArtifactWriter}
|
|
29
30
|
*/
|
|
30
|
-
writeProgram(name: string, program: UplcProgram): ChildArtifactWriter;
|
|
31
|
+
writeProgram(name: string, program: UplcProgram, includeDef: boolean): ChildArtifactWriter;
|
|
31
32
|
}
|
|
32
33
|
import { ArtifactWriter } from "./ArtifactWriter.js";
|
|
33
34
|
import type { Artifact } from "./Artifact.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChildArtifactWriter.d.ts","sourceRoot":"","sources":["../../src/artifacts/ChildArtifactWriter.js"],"names":[],"mappings":"AAIA;;;GAGG;AAEH;IAaI;;;OAGG;IACH,oBAHW,QAAQ,QACR,MAAM,EAOhB;IArBD;;;OAGG;IACH,iBAFU,QAAQ,CAEZ;IAEN;;;OAGG;IACH,eAFU,MAAM,CAEZ;IAaJ;;OAEG;IACH,iBAFU,OAAO,CAIhB;IAED
|
|
1
|
+
{"version":3,"file":"ChildArtifactWriter.d.ts","sourceRoot":"","sources":["../../src/artifacts/ChildArtifactWriter.js"],"names":[],"mappings":"AAIA;;;GAGG;AAEH;IAaI;;;OAGG;IACH,oBAHW,QAAQ,QACR,MAAM,EAOhB;IArBD;;;OAGG;IACH,iBAFU,QAAQ,CAEZ;IAEN;;;OAGG;IACH,eAFU,MAAM,CAEZ;IAaJ;;OAEG;IACH,iBAFU,OAAO,CAIhB;IAED;;;;;OAKG;IACH,mBALW,MAAM,WACN,WAAW,cACX,OAAO,GACL,mBAAmB,CA+C/B;CACJ;+BA1F8B,qBAAqB;8BAIvB,eAAe;iCADZ,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionArtifact.d.ts","sourceRoot":"","sources":["../../src/artifacts/FunctionArtifact.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FunctionArtifact.d.ts","sourceRoot":"","sources":["../../src/artifacts/FunctionArtifact.js"],"names":[],"mappings":"AAQA;;;;;GAKG;AAEH;;;;GAIG;AACH,8CAJW,QAAQ,QACR,MAAM,WACN,eAAe,QAezB;8BAtB4B,eAAe;qCACR,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RootArtifact.d.ts","sourceRoot":"","sources":["../../src/artifacts/RootArtifact.js"],"names":[],"mappings":"AAIA;;;GAGG;AAEH;;;GAGG;AACH,uDAHW,GAAG,WACH,oCAAoC,
|
|
1
|
+
{"version":3,"file":"RootArtifact.d.ts","sourceRoot":"","sources":["../../src/artifacts/RootArtifact.js"],"names":[],"mappings":"AAIA;;;GAGG;AAEH;;;GAGG;AACH,uDAHW,GAAG,WACH,oCAAoC,QAmC9C;0DAzCyJ,aAAa"}
|