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

ripple-binary-codec

Package Overview
Dependencies
Maintainers
7
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 1.2.2 to 1.3.0

14

dist/enums/definitions.json

@@ -859,2 +859,12 @@ {

[
"BrokerFee",
{
"nth": 19,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Amount"
}
],
[
"taker_gets_funded",

@@ -1540,3 +1550,3 @@ {

[
"TokenIDs",
"TokenOffers",
{

@@ -1861,2 +1871,4 @@ "nth": 4,

"tefTOO_BIG": -181,
"tefNO_TICKET": -180,
"tefTOKEN_IS_NOT_TRANSFERABLE": -179,

@@ -1863,0 +1875,0 @@ "terRETRY": -99,

import { SerializedType } from '../types/serialized-type';
import { Buffer } from 'buffer/';
import { BytesList } from '../binary';
export declare const TRANSACTION_TYPES: string[];
export declare class Bytes {

@@ -5,0 +6,0 @@ readonly name: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TransactionType = exports.TransactionResult = exports.LedgerEntryType = exports.Type = exports.Field = exports.Bytes = void 0;
exports.TransactionType = exports.TransactionResult = exports.LedgerEntryType = exports.Type = exports.Field = exports.Bytes = exports.TRANSACTION_TYPES = void 0;
var enums = require("./definitions.json");
var serialized_type_1 = require("../types/serialized-type");
var buffer_1 = require("buffer/");
/*
* @brief: All valid transaction types
*/
exports.TRANSACTION_TYPES = Object.entries(enums.TRANSACTION_TYPES)
.filter(function (_a) {
var _key = _a[0], value = _a[1];
return value >= 0;
})
.map(function (_a) {
var key = _a[0], _value = _a[1];
return key;
});
var TYPE_WIDTH = 2;

@@ -8,0 +20,0 @@ var LEDGER_ENTRY_WIDTH = 2;

@@ -64,3 +64,4 @@ import { decodeLedgerData } from './ledger-hashes';

decodeLedgerData: typeof decodeLedgerData;
TRANSACTION_TYPES: string[];
};
export = _default;

@@ -5,2 +5,3 @@ "use strict";

var ledger_hashes_1 = require("./ledger-hashes");
var enums_1 = require("./enums");
var signingData = coretypes_1.binary.signingData, signingClaimData = coretypes_1.binary.signingClaimData, multiSigningData = coretypes_1.binary.multiSigningData, binaryToJSON = coretypes_1.binary.binaryToJSON, serializeObject = coretypes_1.binary.serializeObject;

@@ -98,3 +99,4 @@ /**

decodeLedgerData: ledger_hashes_1.decodeLedgerData,
TRANSACTION_TYPES: enums_1.TRANSACTION_TYPES,
};
//# sourceMappingURL=index.js.map

6

package.json
{
"name": "ripple-binary-codec",
"version": "1.2.2",
"version": "1.3.0",
"description": "XRP Ledger binary codec",

@@ -20,3 +20,3 @@ "files": [

"decimal.js": "^10.2.0",
"ripple-address-codec": "^4.2.2"
"ripple-address-codec": "^4.2.3"
},

@@ -46,3 +46,3 @@ "scripts": {

},
"gitHead": "78d9b117941cd9ce06d6f1291eb24e882482ceab"
"gitHead": "388c4a6124af2f5de12c3ce4e0dc0882d6f7cb65"
}

@@ -331,3 +331,3 @@ {

"SigningPubKey": "0330E7FC9D56BB25D6893BA3F317AE5BCF33B3291BD63DB32654A313222F7FD020",
"TokenIDs": [
"TokenOffers": [
"00090032B5F762798A53D543A014CAF8B297CFF8F2F937E80000099B00000000"

@@ -334,0 +334,0 @@ ],

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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