bitcore-lib-cash
Advanced tools
Comparing version 8.20.3 to 8.20.4
@@ -199,3 +199,6 @@ 'use strict'; | ||
// timelocks | ||
OP_NOP2: 177, | ||
OP_CHECKLOCKTIMEVERIFY: 177, | ||
OP_NOP3: 178, | ||
OP_CHECKSEQUENCEVERIFY: 178, | ||
@@ -205,4 +208,2 @@ | ||
OP_NOP1: 176, | ||
OP_NOP2: 177, | ||
OP_NOP3: 178, | ||
OP_NOP4: 179, | ||
@@ -219,2 +220,3 @@ OP_NOP5: 180, | ||
OP_CHECKDATASIGVERIFY: 187, | ||
OP_REVERSEBYTES: 188, | ||
@@ -221,0 +223,0 @@ OP_PREFIX_BEGIN: 240, |
{ | ||
"name": "bitcore-lib-cash", | ||
"version": "8.20.3", | ||
"version": "8.20.4", | ||
"description": "A pure and powerful JavaScript Bitcoin Cash library.", | ||
@@ -38,3 +38,3 @@ "author": "BitPay <dev@bitpay.com>", | ||
"dependencies": { | ||
"bitcore-lib": "^8.20.3", | ||
"bitcore-lib": "^8.20.4", | ||
"bn.js": "=4.11.8", | ||
@@ -49,3 +49,3 @@ "bs58": "^4.0.1", | ||
"base-x": "=3.0.4", | ||
"bitcore-build": "^8.20.3", | ||
"bitcore-build": "^8.20.4", | ||
"brfs": "^2.0.1", | ||
@@ -52,0 +52,0 @@ "chai": "^4.2.0", |
@@ -85,7 +85,15 @@ 'use strict'; | ||
}); | ||
it('should work for every non-duplicate opcode', function() { | ||
Object.keys(Opcode.map).forEach(function(key) { | ||
if (key === 'OP_TRUE' || key === 'OP_FALSE') return; | ||
if (key === 'OP_NOP2' || key === 'OP_NOP3') return; | ||
Opcode.fromString(key).toString().should.equal(key); | ||
}) | ||
}) | ||
}); | ||
describe('@map', function() { | ||
it('should have a map containing 124 elements', function() { | ||
_.size(Opcode.map).should.equal(124); | ||
it('should have a map containing 125 elements', function() { | ||
_.size(Opcode.map).should.equal(125); | ||
}); | ||
@@ -95,7 +103,9 @@ }); | ||
describe('@reverseMap', function() { | ||
it('should exist and have op 185', function() { | ||
it('should exist and have ops 185 and 188', function() { | ||
should.exist(Opcode.reverseMap); | ||
Opcode.reverseMap[185].should.equal('OP_NOP10'); | ||
Opcode.reverseMap[188].should.equal('OP_REVERSEBYTES'); | ||
}); | ||
}); | ||
var smallints = [ | ||
@@ -143,2 +153,3 @@ Opcode('OP_0'), | ||
}); | ||
describe('@isSmallIntOp', function() { | ||
@@ -145,0 +156,0 @@ var testIsSmallInt = function(op) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2544713
32883
Updatedbitcore-lib@^8.20.4