ripple-binary-codec
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -865,2 +865,13 @@ { | ||
[ | ||
"DeliverMin", | ||
{ | ||
"nth": 10, | ||
"isVLEncoded": false, | ||
"bytes": "6A", | ||
"isSerialized": true, | ||
"isSigningField": true, | ||
"type": "Amount" | ||
} | ||
], | ||
[ | ||
"MinimumOffer", | ||
@@ -1640,2 +1651,2 @@ { | ||
} | ||
} | ||
} |
{ | ||
"name": "ripple-binary-codec", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "ripple binary codec", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -8,2 +8,3 @@ /* eslint-disable func-style */ | ||
const lib = require('../src/coretypes'); | ||
const encode = require('../src').encode; | ||
const {binary: {makeParser, BytesList, BinarySerializer}} = lib; | ||
@@ -13,2 +14,4 @@ const {UInt8, UInt16, UInt32, UInt64, STObject} = lib; | ||
const fixtures = loadFixture('data-driven-tests.json'); | ||
const deliverMinTx = require('./fixtures/delivermin-tx.json'); | ||
const deliverMinTxBinary = require('./fixtures/delivermin-tx-binary.json'); | ||
@@ -90,2 +93,8 @@ function bytesListTest() { | ||
function deliverMinTest() { | ||
it(`can serialize DeliverMin`, () => { | ||
assert.strictEqual(encode(deliverMinTx), deliverMinTxBinary); | ||
}); | ||
} | ||
describe('Binary Serialization', function() { | ||
@@ -96,2 +105,3 @@ describe.skip('parseLedger4320278', parseLedger4320278); | ||
describe('BytesList', bytesListTest); | ||
describe('DeliverMin', deliverMinTest); | ||
}); |
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
879185
58
12969