@helios-lang/contract-utils 0.2.24 → 0.2.25
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
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { bytesToHex } from "@helios-lang/codec-utils"
|
|
2
2
|
import {
|
|
3
3
|
MintingPolicyHash,
|
|
4
|
+
ScriptHash,
|
|
4
5
|
StakingValidatorHash,
|
|
5
6
|
ValidatorHash
|
|
6
7
|
} from "@helios-lang/ledger"
|
|
@@ -219,6 +220,13 @@ export class DagCompiler {
|
|
|
219
220
|
datum: configureCast(validator.$Datum, this.castConfig)
|
|
220
221
|
})
|
|
221
222
|
break
|
|
223
|
+
case "mixed":
|
|
224
|
+
this.cachedValidators[name] = new ScriptHash(hash, {
|
|
225
|
+
program,
|
|
226
|
+
redeemer,
|
|
227
|
+
datum: configureCast(validator.$Datum, this.castConfig)
|
|
228
|
+
})
|
|
229
|
+
break
|
|
222
230
|
case "minting":
|
|
223
231
|
this.cachedValidators[name] = new MintingPolicyHash(hash, {
|
|
224
232
|
program,
|
|
@@ -234,7 +242,9 @@ export class DagCompiler {
|
|
|
234
242
|
})
|
|
235
243
|
break
|
|
236
244
|
default:
|
|
237
|
-
throw new Error(
|
|
245
|
+
throw new Error(
|
|
246
|
+
`unhandled purpose '${/** @type {any} */ (validator).$purpose}'`
|
|
247
|
+
)
|
|
238
248
|
}
|
|
239
249
|
}
|
|
240
250
|
|
|
@@ -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":"AAgVA;;;GAGG;AACH,iDAHW,eAAe,GACb,MAAM,EAAE,CAsBpB;AA7VD;;;;;;GAMG;AAEH;;;;;GAKG;AAEH;;GAEG;AACH;IA6BI;;;OAGG;IACH,iBAHW,WAAW,cACX,UAAU,EAOpB;IArCD;;;;OAIG;IACH,qBAAG;IAEH;;;;OAIG;IACH,wBAAM;IAEN;;;;OAIG;IACH,kCAAgB;IAEhB;;;;OAIG;IACH,iCAAe;IAQX,iDAA4B;IAKhC;;;;;;OAMG;IACH,kBANW,eAAe,EAAE,cACjB,OAAO,MAAM,EAAE,GAAG,CAAC,aACnB,OAAO;;SAEL,iBAAiB,CAgI7B;IAED;;;;;OAKG;IACH,4BAsCC;IAED;;;;;OAKG;IACH,yBA0BC;IAED;;;;;OAKG;IACH,qBAoBC;IAED;;;;;OAKG;IACH,4BAeC;CACJ;0BAlUY,OAAO,mBAAmB,EAAE,WAAW;yBACvC,OAAO,kBAAkB,EAAE,UAAU;8BACrC,OAAO,+BAA+B,EAAE,eAAe;0BACvD,OAAO,sBAAsB,EAAE,WAAW;0CAC1C,OAAO,sBAAsB,EAAE,2BAA2B"}
|