@helios-lang/contract-utils 0.2.53 → 0.2.55
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 +43 -44
- package/src/cast/UserFunc.js +55 -16
- package/src/codegen/LoadedScriptsWriter.js +7 -3
- package/src/codegen/TypeCheckedModule.js +3 -1
- package/src/context/ContractContextBuilder.js +26 -9
- package/types/cast/UserFunc.d.ts +14 -4
- package/types/cast/UserFunc.d.ts.map +1 -1
- package/types/codegen/TypeCheckedModule.d.ts +5 -1
- package/types/codegen/TypeCheckedModule.d.ts.map +1 -1
- package/types/context/ContractContextBuilder.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,45 +1,44 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
2
|
+
"name": "@helios-lang/contract-utils",
|
|
3
|
+
"version": "0.2.55",
|
|
4
|
+
"description": "Convenience and type-safety utilities for using Helios validators from within Typescript",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"types": "types/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"bin": {
|
|
9
|
+
"hl2ts": "src/hl2ts.js"
|
|
10
|
+
},
|
|
11
|
+
"author": "Christian Schmitz",
|
|
12
|
+
"license": "BSD-3-Clause",
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@types/node": "^20.11.24",
|
|
15
|
+
"prettier": "^3.1.0",
|
|
16
|
+
"typescript": "^5.3.2"
|
|
17
|
+
},
|
|
18
|
+
"prettier": {
|
|
19
|
+
"trailingComma": "none",
|
|
20
|
+
"tabWidth": 4,
|
|
21
|
+
"semi": false,
|
|
22
|
+
"singleQuote": false
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@helios-lang/compiler": "*"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@helios-lang/cli-utils": "^0.1.6",
|
|
29
|
+
"@helios-lang/codec-utils": "^0.1.34",
|
|
30
|
+
"@helios-lang/compiler-utils": "^0.1.25",
|
|
31
|
+
"@helios-lang/ledger": "^0.4.10",
|
|
32
|
+
"@helios-lang/type-utils": "^0.1.21",
|
|
33
|
+
"@helios-lang/uplc": "^0.3.5"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "pnpm run prettify && pnpm run build:types && pnpm run test:suite",
|
|
37
|
+
"build:types": "tsc -p jsconfig.json --noEmit false --emitDeclarationOnly",
|
|
38
|
+
"prettify": "prettier . --write",
|
|
39
|
+
"test": "pnpm run test:pretty && pnpm run test:types && pnpm run test:suite",
|
|
40
|
+
"test:pretty": "prettier . --check",
|
|
41
|
+
"test:suite": "node --test",
|
|
42
|
+
"test:types": "pnpm run build:types"
|
|
43
|
+
}
|
|
44
|
+
}
|
package/src/cast/UserFunc.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { bytesToHex } from "@helios-lang/codec-utils"
|
|
2
2
|
import { expectSome, isLeft, isString } from "@helios-lang/type-utils"
|
|
3
|
-
import { ConstrData, UplcDataValue } from "@helios-lang/uplc"
|
|
3
|
+
import { ConstrData, IntData, UplcDataValue } from "@helios-lang/uplc"
|
|
4
4
|
import { Cast } from "./Cast.js"
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -13,6 +13,7 @@ import { Cast } from "./Cast.js"
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
+
* `returns` is optional to accomodate main functions that return void
|
|
16
17
|
* @typedef {{
|
|
17
18
|
* name: string
|
|
18
19
|
* requiresScriptContext: boolean
|
|
@@ -21,8 +22,9 @@ import { Cast } from "./Cast.js"
|
|
|
21
22
|
* name: string
|
|
22
23
|
* type: TypeSchema
|
|
23
24
|
* isOptional: boolean
|
|
25
|
+
* isIgnored?: boolean
|
|
24
26
|
* }[]
|
|
25
|
-
* returns
|
|
27
|
+
* returns?: TypeSchema
|
|
26
28
|
* validatorIndices?: Record<string, number>
|
|
27
29
|
* castConfig: CastConfig
|
|
28
30
|
* }} UserFuncProps
|
|
@@ -60,6 +62,13 @@ export class UserFunc {
|
|
|
60
62
|
this.props = props
|
|
61
63
|
}
|
|
62
64
|
|
|
65
|
+
/**
|
|
66
|
+
* @type {string}
|
|
67
|
+
*/
|
|
68
|
+
get name() {
|
|
69
|
+
return this.props.name
|
|
70
|
+
}
|
|
71
|
+
|
|
63
72
|
/**
|
|
64
73
|
* @param {ArgsT} namedArgs
|
|
65
74
|
* @returns {RetT}
|
|
@@ -95,14 +104,19 @@ export class UserFunc {
|
|
|
95
104
|
/** @type {UnsafeArgsT<ArgsT>} */ (unsafeNamedArgs)
|
|
96
105
|
)
|
|
97
106
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
107
|
+
if (this.props.returns) {
|
|
108
|
+
return new Cast(
|
|
109
|
+
this.props.returns,
|
|
110
|
+
this.props.castConfig
|
|
111
|
+
).fromUplcData(expectSome(/** @type {any} */ (result)))
|
|
112
|
+
} else {
|
|
113
|
+
return /** @type {any} */ (undefined)
|
|
114
|
+
}
|
|
101
115
|
}
|
|
102
116
|
|
|
103
117
|
/**
|
|
104
118
|
* @param {UnsafeArgsT<ArgsT>} namedArgs
|
|
105
|
-
* @returns {UplcData}
|
|
119
|
+
* @returns {RetT extends void ? void : UplcData}
|
|
106
120
|
*/
|
|
107
121
|
evalUnsafe(namedArgs) {
|
|
108
122
|
const result = this.profile(namedArgs).result
|
|
@@ -110,9 +124,11 @@ export class UserFunc {
|
|
|
110
124
|
if (isLeft(result)) {
|
|
111
125
|
throw new Error(result.left.error)
|
|
112
126
|
} else if (!isString(result.right) && result.right.kind == "data") {
|
|
113
|
-
return result.right.value
|
|
114
|
-
} else {
|
|
127
|
+
return /** @type {any} */ (result.right.value)
|
|
128
|
+
} else if (this.props.returns) {
|
|
115
129
|
throw new Error(`${result.right.toString()} isn't a UplcDataValue`)
|
|
130
|
+
} else {
|
|
131
|
+
return /** @type {any} */ (undefined)
|
|
116
132
|
}
|
|
117
133
|
}
|
|
118
134
|
|
|
@@ -121,20 +137,43 @@ export class UserFunc {
|
|
|
121
137
|
* @returns {CekResult}
|
|
122
138
|
*/
|
|
123
139
|
profile(namedArgs) {
|
|
140
|
+
const isMain = this.name == "main"
|
|
141
|
+
|
|
124
142
|
/**
|
|
125
143
|
* @type {UplcData[]}
|
|
126
144
|
*/
|
|
127
|
-
const args =
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
145
|
+
const args = []
|
|
146
|
+
|
|
147
|
+
this.props.arguments.forEach(
|
|
148
|
+
({ name, type, isOptional, isIgnored }) => {
|
|
149
|
+
if (isMain) {
|
|
150
|
+
if (isOptional) {
|
|
151
|
+
// used for $datum in mixed script
|
|
152
|
+
if (name in namedArgs && namedArgs[name]) {
|
|
153
|
+
args.push(namedArgs[name])
|
|
154
|
+
}
|
|
155
|
+
} else if (isIgnored) {
|
|
156
|
+
if (name in namedArgs && namedArgs[name]) {
|
|
157
|
+
args.push(namedArgs[name])
|
|
158
|
+
} else {
|
|
159
|
+
args.push(new IntData(0))
|
|
160
|
+
}
|
|
161
|
+
} else {
|
|
162
|
+
args.push(expectSome(namedArgs[name]))
|
|
163
|
+
}
|
|
131
164
|
} else {
|
|
132
|
-
|
|
165
|
+
if (isOptional) {
|
|
166
|
+
if (name in namedArgs && namedArgs[name]) {
|
|
167
|
+
args.push(new ConstrData(0, [namedArgs[name]]))
|
|
168
|
+
} else {
|
|
169
|
+
args.push(new ConstrData(1, []))
|
|
170
|
+
}
|
|
171
|
+
} else {
|
|
172
|
+
args.push(expectSome(namedArgs[name]))
|
|
173
|
+
}
|
|
133
174
|
}
|
|
134
|
-
} else {
|
|
135
|
-
return expectSome(namedArgs[name])
|
|
136
175
|
}
|
|
137
|
-
|
|
176
|
+
)
|
|
138
177
|
|
|
139
178
|
if (this.props.requiresScriptContext) {
|
|
140
179
|
args.push(expectSome(namedArgs["$scriptContext"]))
|
|
@@ -403,12 +403,16 @@ function genFuncType(fn) {
|
|
|
403
403
|
fields.push("$currentScript: string")
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
fn.arguments.forEach(({ name, type, isOptional }, i) => {
|
|
407
|
-
|
|
406
|
+
fn.arguments.forEach(({ name, type, isOptional, isIgnored }, i) => {
|
|
407
|
+
if (isIgnored) {
|
|
408
|
+
fields.push(`${name}?: UplcData`)
|
|
409
|
+
} else {
|
|
410
|
+
fields.push(`${name}${isOptional ? "?" : ""}: ${genTypes(type)[1]}`)
|
|
411
|
+
}
|
|
408
412
|
})
|
|
409
413
|
|
|
410
414
|
const argsTypeStr = `{${fields.join(", ")}}`
|
|
411
|
-
const retTypeStr = genTypes(fn.returns)[0]
|
|
415
|
+
const retTypeStr = fn?.returns ? genTypes(fn.returns)[0] : "void"
|
|
412
416
|
|
|
413
417
|
return [argsTypeStr, retTypeStr]
|
|
414
418
|
}
|
|
@@ -5,6 +5,7 @@ export {}
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
+
* `returns` is optional to accomodate main functions that return undefined
|
|
8
9
|
* @typedef {{
|
|
9
10
|
* name: string
|
|
10
11
|
* requiresScriptContext: boolean
|
|
@@ -13,8 +14,9 @@ export {}
|
|
|
13
14
|
* name: string
|
|
14
15
|
* type: TypeSchema
|
|
15
16
|
* isOptional: boolean
|
|
17
|
+
* isIgnored?: boolean
|
|
16
18
|
* }[]
|
|
17
|
-
* returns
|
|
19
|
+
* returns?: TypeSchema
|
|
18
20
|
* }} TypeCheckedUserFunc
|
|
19
21
|
*/
|
|
20
22
|
|
|
@@ -187,15 +187,32 @@ export class ContractContextBuilder {
|
|
|
187
187
|
),
|
|
188
188
|
...Object.fromEntries(
|
|
189
189
|
Object.entries(validator.$functions).map(
|
|
190
|
-
([funcKey, userFunc]) =>
|
|
191
|
-
funcKey
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
190
|
+
([funcKey, userFunc]) => {
|
|
191
|
+
if (funcKey == "main") {
|
|
192
|
+
return [
|
|
193
|
+
funcKey,
|
|
194
|
+
userFunc(
|
|
195
|
+
expectSome(
|
|
196
|
+
compiled.validators[name].context
|
|
197
|
+
.program
|
|
198
|
+
),
|
|
199
|
+
castConfig
|
|
200
|
+
)
|
|
201
|
+
]
|
|
202
|
+
} else {
|
|
203
|
+
return [
|
|
204
|
+
funcKey,
|
|
205
|
+
userFunc(
|
|
206
|
+
expectSome(
|
|
207
|
+
compiled.userFuncs[
|
|
208
|
+
`${name}::${funcKey}`
|
|
209
|
+
]
|
|
210
|
+
),
|
|
211
|
+
castConfig
|
|
212
|
+
)
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
}
|
|
199
216
|
)
|
|
200
217
|
),
|
|
201
218
|
$hash: compiled.validators[name]
|
package/types/cast/UserFunc.d.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* @typedef {import("./Cast.js").CastConfig} CastConfig
|
|
8
8
|
*/
|
|
9
9
|
/**
|
|
10
|
+
* `returns` is optional to accomodate main functions that return void
|
|
10
11
|
* @typedef {{
|
|
11
12
|
* name: string
|
|
12
13
|
* requiresScriptContext: boolean
|
|
@@ -15,8 +16,9 @@
|
|
|
15
16
|
* name: string
|
|
16
17
|
* type: TypeSchema
|
|
17
18
|
* isOptional: boolean
|
|
19
|
+
* isIgnored?: boolean
|
|
18
20
|
* }[]
|
|
19
|
-
* returns
|
|
21
|
+
* returns?: TypeSchema
|
|
20
22
|
* validatorIndices?: Record<string, number>
|
|
21
23
|
* castConfig: CastConfig
|
|
22
24
|
* }} UserFuncProps
|
|
@@ -48,6 +50,10 @@ export class UserFunc<ArgsT extends {
|
|
|
48
50
|
* @type {UserFuncProps}
|
|
49
51
|
*/
|
|
50
52
|
private readonly props;
|
|
53
|
+
/**
|
|
54
|
+
* @type {string}
|
|
55
|
+
*/
|
|
56
|
+
get name(): string;
|
|
51
57
|
/**
|
|
52
58
|
* @param {ArgsT} namedArgs
|
|
53
59
|
* @returns {RetT}
|
|
@@ -55,9 +61,9 @@ export class UserFunc<ArgsT extends {
|
|
|
55
61
|
eval(namedArgs: ArgsT): RetT;
|
|
56
62
|
/**
|
|
57
63
|
* @param {UnsafeArgsT<ArgsT>} namedArgs
|
|
58
|
-
* @returns {UplcData}
|
|
64
|
+
* @returns {RetT extends void ? void : UplcData}
|
|
59
65
|
*/
|
|
60
|
-
evalUnsafe(namedArgs: UnsafeArgsT<ArgsT>): UplcData;
|
|
66
|
+
evalUnsafe(namedArgs: UnsafeArgsT<ArgsT>): RetT extends void ? void : UplcData;
|
|
61
67
|
/**
|
|
62
68
|
* @param {UnsafeArgsT<ArgsT>} namedArgs
|
|
63
69
|
* @returns {CekResult}
|
|
@@ -70,6 +76,9 @@ export type UplcData = import("@helios-lang/uplc").UplcData;
|
|
|
70
76
|
export type UplcProgram = import("@helios-lang/uplc").UplcProgram;
|
|
71
77
|
export type UplcValue = import("@helios-lang/uplc").UplcValue;
|
|
72
78
|
export type CastConfig = import("./Cast.js").CastConfig;
|
|
79
|
+
/**
|
|
80
|
+
* `returns` is optional to accomodate main functions that return void
|
|
81
|
+
*/
|
|
73
82
|
export type UserFuncProps = {
|
|
74
83
|
name: string;
|
|
75
84
|
requiresScriptContext: boolean;
|
|
@@ -78,8 +87,9 @@ export type UserFuncProps = {
|
|
|
78
87
|
name: string;
|
|
79
88
|
type: TypeSchema;
|
|
80
89
|
isOptional: boolean;
|
|
90
|
+
isIgnored?: boolean;
|
|
81
91
|
}[];
|
|
82
|
-
returns
|
|
92
|
+
returns?: TypeSchema;
|
|
83
93
|
validatorIndices?: Record<string, number>;
|
|
84
94
|
castConfig: CastConfig;
|
|
85
95
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserFunc.d.ts","sourceRoot":"","sources":["../../src/cast/UserFunc.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AAEH
|
|
1
|
+
{"version":3,"file":"UserFunc.d.ts","sourceRoot":"","sources":["../../src/cast/UserFunc.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;GAgBG;AAEH;;;GAGG;AAEH;;;GAGG;AACH,sBAHwC,KAAK,SAAhC;IAAE,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAC1B,IAAI;IAgBb;;;OAGG;IACH,kBAHW,WAAW,SACX,aAAa,EAKvB;IApBD;;;OAGG;IACH,eAFU,WAAW,CAEjB;IAEJ;;;;OAIG;IACH,uBAAK;IAWL;;OAEG;IACH,mBAEC;IAED;;;OAGG;IACH,gBAHW,KAAK,GACH,IAAI,CAyChB;IAED;;;OAGG;IACH,sBAHW,WAAW,CAAC,KAAK,CAAC,GAChB,IAAI,SAAS,IAAI,GAAG,IAAI,GAAG,QAAQ,CAc/C;IAED;;;OAGG;IACH,mBAHW,WAAW,CAAC,KAAK,CAAC,GAChB,SAAS,CAyGrB;CACJ;yBA5OY,OAAO,yBAAyB,EAAE,UAAU;wBAC5C,OAAO,mBAAmB,EAAE,SAAS;uBACrC,OAAO,mBAAmB,EAAE,QAAQ;0BACpC,OAAO,mBAAmB,EAAE,WAAW;wBACvC,OAAO,mBAAmB,EAAE,SAAS;yBACrC,OAAO,WAAW,EAAE,UAAU;;;;4BAK9B;IACZ,IAAQ,EAAE,MAAM,CAAA;IAChB,qBAAyB,EAAE,OAAO,CAAA;IAClC,qBAAyB,EAAE,OAAO,CAAA;IAClC,SAAa,EAAE;QACf,IAAU,EAAE,MAAM,CAAA;QAClB,IAAU,EAAE,UAAU,CAAA;QACtB,UAAgB,EAAE,OAAO,CAAA;QACzB,SAAe,CAAC,EAAE,OAAO,CAAA;KACpB,EAAE,CAAA;IACP,OAAW,CAAC,EAAE,UAAU,CAAA;IACxB,gBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,UAAc,EAAE,UAAU,CAAA;CACvB;wBAIS,KAAK,IACL,GAAE,CAAgB,IAAX,MAAM,KAAK,GAAG,CAAC,SAAS,gBAAgB,GAAG,MAAM,GAAG,QAAQ,GAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export type TypeSchema = import("./TypeSchema.js").TypeSchema;
|
|
2
|
+
/**
|
|
3
|
+
* `returns` is optional to accomodate main functions that return undefined
|
|
4
|
+
*/
|
|
2
5
|
export type TypeCheckedUserFunc = {
|
|
3
6
|
name: string;
|
|
4
7
|
requiresScriptContext: boolean;
|
|
@@ -7,8 +10,9 @@ export type TypeCheckedUserFunc = {
|
|
|
7
10
|
name: string;
|
|
8
11
|
type: TypeSchema;
|
|
9
12
|
isOptional: boolean;
|
|
13
|
+
isIgnored?: boolean;
|
|
10
14
|
}[];
|
|
11
|
-
returns
|
|
15
|
+
returns?: TypeSchema;
|
|
12
16
|
};
|
|
13
17
|
export type TypeCheckedModule = {
|
|
14
18
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypeCheckedModule.d.ts","sourceRoot":"","sources":["../../src/codegen/TypeCheckedModule.js"],"names":[],"mappings":"yBAGa,OAAO,iBAAiB,EAAE,UAAU;
|
|
1
|
+
{"version":3,"file":"TypeCheckedModule.d.ts","sourceRoot":"","sources":["../../src/codegen/TypeCheckedModule.js"],"names":[],"mappings":"yBAGa,OAAO,iBAAiB,EAAE,UAAU;;;;kCAKpC;IACZ,IAAQ,EAAE,MAAM,CAAA;IAChB,qBAAyB,EAAE,OAAO,CAAA;IAClC,qBAAyB,EAAE,OAAO,CAAA;IAClC,SAAa,EAAE;QACf,IAAU,EAAE,MAAM,CAAA;QAClB,IAAU,EAAE,UAAU,CAAA;QACtB,UAAgB,EAAE,OAAO,CAAA;QACzB,SAAe,CAAC,EAAE,OAAO,CAAA;KACpB,EAAE,CAAA;IACP,OAAW,CAAC,EAAE,UAAU,CAAA;CACrB;gCAIS;IACZ,IAAQ,EAAE,MAAM,CAAA;IAChB,OAAW,EAAE,MAAM,CAAA;IACnB,UAAc,EAAE,MAAM,CAAA;IACtB,iBAAqB,EAAE,MAAM,EAAE,CAAA;IAC/B,KAAS,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;IACrC,SAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAA;CAChD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContractContextBuilder.d.ts","sourceRoot":"","sources":["../../src/context/ContractContextBuilder.js"],"names":[],"mappings":"AAMA;;;;;GAKG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;;;;GAQG;AAEH;;;GAGG;AACH,oCAHiD,EAAE,SAAtC;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAAA;CAAE,EACF,EAAE,SAAnC;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAAA;CAAE;IA0BzC;;OAEG;IACH,gBAFa,sBAAsB,CAAC,EAAE,EAAE,EAAE,CAAC,CAI1C;IAfD;;;;OAIG;IACH,sBAGC;IArBD;;;;OAIG;IACH,4BAAU;IAEV;;;OAGG;IACH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