Socket
Socket
Sign inDemoInstall

ripple-binary-codec

Package Overview
Dependencies
Maintainers
11
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.10.0 to 1.11.0

47

dist/enums/src/enums/definitions.json

@@ -53,2 +53,3 @@ {

"AMM": 121,
"DID": 73,
"Any": -3,

@@ -144,6 +145,6 @@ "Child": -2,

{
"nth": 1,
"nth": 257,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": true,
"isSigningField": false,
"type": "LedgerEntry"

@@ -155,6 +156,6 @@ }

{
"nth": 1,
"nth": 257,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": true,
"isSigningField": false,
"type": "Transaction"

@@ -166,6 +167,6 @@ }

{
"nth": 1,
"nth": 257,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": true,
"isSigningField": false,
"type": "Validation"

@@ -177,6 +178,6 @@ }

{
"nth": 1,
"nth": 257,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isSerialized": false,
"isSigningField": false,
"type": "Metadata"

@@ -1906,2 +1907,22 @@ }

[
"DIDDocument",
{
"nth": 26,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "Blob"
}
],
[
"Data",
{
"nth": 27,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "Blob"
}
],
[
"Account",

@@ -2690,2 +2711,3 @@ {

"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT": -255,
"temEMPTY_DID": -254,

@@ -2769,3 +2791,3 @@ "tefFAILURE": -199,

"tecTOO_SOON": 152,
"tecHOOK_ERROR": 153,
"tecHOOK_REJECTED": 153,
"tecMAX_SEQUENCE_REACHED": 154,

@@ -2803,3 +2825,4 @@ "tecNO_SUITABLE_NFTOKEN_PAGE": 155,

"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR": 185,
"tecXCHAIN_CREATE_ACCOUNT_DISABLED": 186
"tecXCHAIN_CREATE_ACCOUNT_DISABLED": 186,
"tecEMPTY_DID": 187
},

@@ -2851,2 +2874,4 @@ "TRANSACTION_TYPES": {

"XChainCreateBridge": 48,
"DIDSet": 49,
"DIDDelete": 50,
"EnableAmendment": 100,

@@ -2853,0 +2878,0 @@ "SetFee": 101,

@@ -37,15 +37,15 @@ "use strict";

}
if (isXChainBridgeObject(value)) {
const bytes = [];
this.TYPE_ORDER.forEach((item) => {
const { name, type } = item;
if (type === account_id_1.AccountID) {
bytes.push(buffer_1.Buffer.from([0x14]));
}
const object = type.from(value[name]);
bytes.push(object.toBytes());
});
return new XChainBridge(buffer_1.Buffer.concat(bytes));
if (!isXChainBridgeObject(value)) {
throw new Error('Invalid type to construct an XChainBridge');
}
throw new Error('Invalid type to construct an XChainBridge');
const bytes = [];
this.TYPE_ORDER.forEach((item) => {
const { name, type } = item;
if (type === account_id_1.AccountID) {
bytes.push(buffer_1.Buffer.from([0x14]));
}
const object = type.from(value[name]);
bytes.push(object.toBytes());
});
return new XChainBridge(buffer_1.Buffer.concat(bytes));
}

@@ -52,0 +52,0 @@ /**

{
"name": "ripple-binary-codec",
"version": "1.10.0",
"version": "1.11.0",
"description": "XRP Ledger binary codec",

@@ -28,2 +28,8 @@ "files": [

},
"keywords": [
"ripple",
"xrp",
"xrp ledger",
"xrpl"
],
"repository": {

@@ -42,3 +48,4 @@ "type": "git",

"node": ">= 10"
}
},
"gitHead": "99dd0eb44c00b6a4e934467a68036f15320ae69b"
}

@@ -53,2 +53,3 @@ {

"AMM": 121,
"DID": 73,
"Any": -3,

@@ -144,6 +145,6 @@ "Child": -2,

{
"nth": 1,
"nth": 257,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": true,
"isSigningField": false,
"type": "LedgerEntry"

@@ -155,6 +156,6 @@ }

{
"nth": 1,
"nth": 257,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": true,
"isSigningField": false,
"type": "Transaction"

@@ -166,6 +167,6 @@ }

{
"nth": 1,
"nth": 257,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": true,
"isSigningField": false,
"type": "Validation"

@@ -177,6 +178,6 @@ }

{
"nth": 1,
"nth": 257,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isSerialized": false,
"isSigningField": false,
"type": "Metadata"

@@ -1906,2 +1907,22 @@ }

[
"DIDDocument",
{
"nth": 26,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "Blob"
}
],
[
"Data",
{
"nth": 27,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "Blob"
}
],
[
"Account",

@@ -2690,2 +2711,3 @@ {

"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT": -255,
"temEMPTY_DID": -254,

@@ -2769,3 +2791,3 @@ "tefFAILURE": -199,

"tecTOO_SOON": 152,
"tecHOOK_ERROR": 153,
"tecHOOK_REJECTED": 153,
"tecMAX_SEQUENCE_REACHED": 154,

@@ -2803,3 +2825,4 @@ "tecNO_SUITABLE_NFTOKEN_PAGE": 155,

"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR": 185,
"tecXCHAIN_CREATE_ACCOUNT_DISABLED": 186
"tecXCHAIN_CREATE_ACCOUNT_DISABLED": 186,
"tecEMPTY_DID": 187
},

@@ -2851,2 +2874,4 @@ "TRANSACTION_TYPES": {

"XChainCreateBridge": 48,
"DIDSet": 49,
"DIDDelete": 50,
"EnableAmendment": 100,

@@ -2853,0 +2878,0 @@ "SetFee": 101,

@@ -70,16 +70,16 @@ import { BinaryParser } from '../serdes/binary-parser'

if (isXChainBridgeObject(value)) {
const bytes: Array<Buffer> = []
this.TYPE_ORDER.forEach((item) => {
const { name, type } = item
if (type === AccountID) {
bytes.push(Buffer.from([0x14]))
}
const object = type.from(value[name])
bytes.push(object.toBytes())
})
return new XChainBridge(Buffer.concat(bytes))
if (!isXChainBridgeObject(value)) {
throw new Error('Invalid type to construct an XChainBridge')
}
throw new Error('Invalid type to construct an XChainBridge')
const bytes: Array<Buffer> = []
this.TYPE_ORDER.forEach((item) => {
const { name, type } = item
if (type === AccountID) {
bytes.push(Buffer.from([0x14]))
}
const object = type.from(value[name])
bytes.push(object.toBytes())
})
return new XChainBridge(Buffer.concat(bytes))
}

@@ -86,0 +86,0 @@

Sorry, the diff of this file is too big to display

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