Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ripple-binary-codec

Package Overview
Dependencies
Maintainers
2
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ripple-binary-codec - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

test/fixtures/delivermin-tx-binary.json

13

distrib/npm/enums/definitions.json

@@ -865,2 +865,13 @@ {

[
"DeliverMin",
{
"nth": 10,
"isVLEncoded": false,
"bytes": "6A",
"isSerialized": true,
"isSigningField": true,
"type": "Amount"
}
],
[
"MinimumOffer",

@@ -1640,2 +1651,2 @@ {

}
}
}

2

package.json
{
"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);
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc