@harmoniclabs/uplc
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -114,2 +114,4 @@ /** | ||
static get blake2b_224(): Builtin; | ||
static get integerToByteString(): Builtin; | ||
static get byteStringToInteger(): Builtin; | ||
} |
@@ -436,4 +436,14 @@ "use strict"; | ||
}); | ||
Object.defineProperty(Builtin, "integerToByteString", { | ||
get: function () { return new Builtin(UPLCBuiltinTag_1.UPLCBuiltinTag.integerToByteString); }, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
Object.defineProperty(Builtin, "byteStringToInteger", { | ||
get: function () { return new Builtin(UPLCBuiltinTag_1.UPLCBuiltinTag.byteStringToInteger); }, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
return Builtin; | ||
}()); | ||
exports.Builtin = Builtin; |
@@ -78,3 +78,5 @@ export type UPLCBuiltinTagNumber = 0 | 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 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53; | ||
keccak_256 = 71, | ||
blake2b_224 = 72 | ||
blake2b_224 = 72, | ||
integerToByteString = 73, | ||
byteStringToInteger = 74 | ||
} | ||
@@ -81,0 +83,0 @@ export declare function isUPLCBuiltinTag(tag: UPLCBuiltinTag | UPLCBuiltinTagNumber): boolean; |
@@ -94,2 +94,5 @@ "use strict"; | ||
UPLCBuiltinTag[UPLCBuiltinTag["blake2b_224"] = 72] = "blake2b_224"; | ||
// bitwise | ||
UPLCBuiltinTag[UPLCBuiltinTag["integerToByteString"] = 73] = "integerToByteString"; | ||
UPLCBuiltinTag[UPLCBuiltinTag["byteStringToInteger"] = 74] = "byteStringToInteger"; | ||
})(UPLCBuiltinTag = exports.UPLCBuiltinTag || (exports.UPLCBuiltinTag = {})); | ||
@@ -99,3 +102,3 @@ function isUPLCBuiltinTag(tag) { | ||
&& | ||
(tag >= 0 && tag <= 72)); | ||
(tag >= 0 && tag <= 74)); | ||
} | ||
@@ -107,3 +110,4 @@ exports.isUPLCBuiltinTag = isUPLCBuiltinTag; | ||
if (tag <= 25 || | ||
(tag >= UPLCBuiltinTag.constrData && tag < 53)) { | ||
// all fixed type after constrData | ||
tag >= UPLCBuiltinTag.constrData) { | ||
return 0; | ||
@@ -215,2 +219,4 @@ } | ||
case UPLCBuiltinTag.blake2b_224: return "blake2b_224"; | ||
case UPLCBuiltinTag.integerToByteString: return "integerToByteString"; | ||
case UPLCBuiltinTag.byteStringToInteger: return "byteStringToInteger"; | ||
default: | ||
@@ -217,0 +223,0 @@ // tag; // check that is of type 'never' |
{ | ||
"name": "@harmoniclabs/uplc", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
223477
4744