Socket
Socket
Sign inDemoInstall

ripple-binary-codec

Package Overview
Dependencies
46
Maintainers
11
Versions
82
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.9.0 to 1.10.0-beta.0

src/types/xchain-bridge.ts

250

dist/enums/src/enums/definitions.json

@@ -25,2 +25,3 @@ {

"Issue": 24,
"XChainBridge": 25,
"Transaction": 10001,

@@ -39,4 +40,7 @@ "LedgerEntry": 10002,

"Offer": 111,
"Bridge": 105,
"LedgerHashes": 104,
"Amendments": 102,
"XChainOwnedClaimID": 113,
"XChainOwnedCreateAccountClaimID": 116,
"FeeSettings": 115,

@@ -239,2 +243,12 @@ "Escrow": 117,

[
"WasLockingChainSend",
{
"nth": 19,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "UInt8"
}
],
[
"LedgerEntryType",

@@ -990,2 +1004,32 @@ {

[
"XChainClaimID",
{
"nth": 20,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "UInt64"
}
],
[
"XChainAccountCreateCount",
{
"nth": 21,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "UInt64"
}
],
[
"XChainAccountClaimCount",
{
"nth": 22,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "UInt64"
}
],
[
"EmailHash",

@@ -1591,2 +1635,22 @@ {

[
"SignatureReward",
{
"nth": 29,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Amount"
}
],
[
"MinAccountCreateAmount",
{
"nth": 30,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Amount"
}
],
[
"LPTokenBalance",

@@ -1942,2 +2006,62 @@ {

[
"OtherChainSource",
{
"nth": 18,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "AccountID"
}
],
[
"OtherChainDestination",
{
"nth": 19,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "AccountID"
}
],
[
"AttestationSignerAccount",
{
"nth": 20,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "AccountID"
}
],
[
"AttestationRewardAccount",
{
"nth": 21,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "AccountID"
}
],
[
"LockingChainDoor",
{
"nth": 22,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "AccountID"
}
],
[
"IssuingChainDoor",
{
"nth": 23,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "AccountID"
}
],
[
"Indexes",

@@ -1993,2 +2117,22 @@ {

[
"LockingChainIssue",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Issue"
}
],
[
"IssuingChainIssue",
{
"nth": 2,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Issue"
}
],
[
"Asset",

@@ -2014,2 +2158,12 @@ {

[
"XChainBridge",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "XChainBridge"
}
],
[
"TransactionMetaData",

@@ -2255,2 +2409,42 @@ {

[
"XChainClaimProofSig",
{
"nth": 28,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
}
],
[
"XChainCreateAccountProofSig",
{
"nth": 29,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
}
],
[
"XChainClaimAttestationCollectionElement",
{
"nth": 30,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
}
],
[
"XChainCreateAccountAttestationCollectionElement",
{
"nth": 31,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
}
],
[
"Signers",

@@ -2406,2 +2600,22 @@ {

[
"XChainClaimAttestations",
{
"nth": 21,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
}
],
[
"XChainCreateAccountAttestations",
{
"nth": 22,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
}
],
[
"AuthAccounts",

@@ -2474,2 +2688,8 @@ {

"temBAD_AMM_TOKENS": -261,
"temXCHAIN_EQUAL_DOOR_ACCOUNTS": -260,
"temXCHAIN_BAD_PROOF": -259,
"temXCHAIN_BRIDGE_BAD_ISSUES": -258,
"temXCHAIN_BRIDGE_NONDOOR_OWNER": -257,
"temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT": -256,
"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT": -255,

@@ -2564,6 +2784,19 @@ "tefFAILURE": -199,

"tecAMM_INVALID_TOKENS": 165,
"tecAMM_EMPTY": 166,
"tecAMM_NOT_EMPTY": 167,
"tecAMM_ACCOUNT": 168,
"tecINCOMPLETE": 169
"tecXCHAIN_BAD_TRANSFER_ISSUE": 166,
"tecXCHAIN_NO_CLAIM_ID": 167,
"tecXCHAIN_BAD_CLAIM_ID": 168,
"tecXCHAIN_CLAIM_NO_QUORUM": 169,
"tecXCHAIN_PROOF_UNKNOWN_KEY": 170,
"tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE": 171,
"tecXCHAIN_WRONG_CHAIN": 172,
"tecXCHAIN_REWARD_MISMATCH": 173,
"tecXCHAIN_NO_SIGNERS_LIST": 174,
"tecXCHAIN_SENDING_ACCOUNT_MISMATCH": 175,
"tecXCHAIN_INSUFF_CREATE_AMOUNT": 176,
"tecXCHAIN_ACCOUNT_CREATE_PAST": 177,
"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY": 178,
"tecXCHAIN_PAYMENT_FAILED": 179,
"tecXCHAIN_SELF_COMMIT": 180,
"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR": 181,
"tecXCHAIN_CREATE_ACCOUNT_DISABLED": 182
},

@@ -2606,3 +2839,10 @@ "TRANSACTION_TYPES": {

"AMMBid": 39,
"AMMDelete": 40,
"XChainCreateBridge": 40,
"XChainCreateClaimID": 41,
"XChainCommit": 42,
"XChainClaim": 43,
"XChainAccountCreateCommit": 44,
"XChainAddClaimAttestation": 45,
"XChainAddAccountCreateAttestation": 46,
"XChainModifyBridge": 47,
"EnableAmendment": 100,

@@ -2609,0 +2849,0 @@ "SetFee": 101,

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

Object.defineProperty(exports, "Vector256", { enumerable: true, get: function () { return vector_256_1.Vector256; } });
const xchain_bridge_1 = require("./xchain-bridge");
const enums_1 = require("../enums");

@@ -54,2 +55,3 @@ const coreTypes = {

Vector256: vector_256_1.Vector256,
XChainBridge: xchain_bridge_1.XChainBridge,
};

@@ -56,0 +58,0 @@ exports.coreTypes = coreTypes;

4

package.json
{
"name": "ripple-binary-codec",
"version": "1.9.0",
"version": "1.10.0-beta.0",
"description": "XRP Ledger binary codec",

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

},
"gitHead": "37fbc03584f4671317576a97ad2cdb3f6c1e1bed"
"gitHead": "c96376a1c988786bb1410afe99d73b513a1882ec"
}

@@ -25,2 +25,3 @@ {

"Issue": 24,
"XChainBridge": 25,
"Transaction": 10001,

@@ -39,4 +40,7 @@ "LedgerEntry": 10002,

"Offer": 111,
"Bridge": 105,
"LedgerHashes": 104,
"Amendments": 102,
"XChainOwnedClaimID": 113,
"XChainOwnedCreateAccountClaimID": 116,
"FeeSettings": 115,

@@ -239,2 +243,12 @@ "Escrow": 117,

[
"WasLockingChainSend",
{
"nth": 19,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "UInt8"
}
],
[
"LedgerEntryType",

@@ -990,2 +1004,32 @@ {

[
"XChainClaimID",
{
"nth": 20,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "UInt64"
}
],
[
"XChainAccountCreateCount",
{
"nth": 21,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "UInt64"
}
],
[
"XChainAccountClaimCount",
{
"nth": 22,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "UInt64"
}
],
[
"EmailHash",

@@ -1591,2 +1635,22 @@ {

[
"SignatureReward",
{
"nth": 29,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Amount"
}
],
[
"MinAccountCreateAmount",
{
"nth": 30,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Amount"
}
],
[
"LPTokenBalance",

@@ -1942,2 +2006,62 @@ {

[
"OtherChainSource",
{
"nth": 18,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "AccountID"
}
],
[
"OtherChainDestination",
{
"nth": 19,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "AccountID"
}
],
[
"AttestationSignerAccount",
{
"nth": 20,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "AccountID"
}
],
[
"AttestationRewardAccount",
{
"nth": 21,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "AccountID"
}
],
[
"LockingChainDoor",
{
"nth": 22,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "AccountID"
}
],
[
"IssuingChainDoor",
{
"nth": 23,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "AccountID"
}
],
[
"Indexes",

@@ -1993,2 +2117,22 @@ {

[
"LockingChainIssue",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Issue"
}
],
[
"IssuingChainIssue",
{
"nth": 2,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Issue"
}
],
[
"Asset",

@@ -2014,2 +2158,12 @@ {

[
"XChainBridge",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "XChainBridge"
}
],
[
"TransactionMetaData",

@@ -2255,2 +2409,42 @@ {

[
"XChainClaimProofSig",
{
"nth": 28,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
}
],
[
"XChainCreateAccountProofSig",
{
"nth": 29,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
}
],
[
"XChainClaimAttestationCollectionElement",
{
"nth": 30,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
}
],
[
"XChainCreateAccountAttestationCollectionElement",
{
"nth": 31,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
}
],
[
"Signers",

@@ -2406,2 +2600,22 @@ {

[
"XChainClaimAttestations",
{
"nth": 21,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
}
],
[
"XChainCreateAccountAttestations",
{
"nth": 22,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
}
],
[
"AuthAccounts",

@@ -2474,2 +2688,8 @@ {

"temBAD_AMM_TOKENS": -261,
"temXCHAIN_EQUAL_DOOR_ACCOUNTS": -260,
"temXCHAIN_BAD_PROOF": -259,
"temXCHAIN_BRIDGE_BAD_ISSUES": -258,
"temXCHAIN_BRIDGE_NONDOOR_OWNER": -257,
"temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT": -256,
"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT": -255,

@@ -2564,6 +2784,19 @@ "tefFAILURE": -199,

"tecAMM_INVALID_TOKENS": 165,
"tecAMM_EMPTY": 166,
"tecAMM_NOT_EMPTY": 167,
"tecAMM_ACCOUNT": 168,
"tecINCOMPLETE": 169
"tecXCHAIN_BAD_TRANSFER_ISSUE": 166,
"tecXCHAIN_NO_CLAIM_ID": 167,
"tecXCHAIN_BAD_CLAIM_ID": 168,
"tecXCHAIN_CLAIM_NO_QUORUM": 169,
"tecXCHAIN_PROOF_UNKNOWN_KEY": 170,
"tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE": 171,
"tecXCHAIN_WRONG_CHAIN": 172,
"tecXCHAIN_REWARD_MISMATCH": 173,
"tecXCHAIN_NO_SIGNERS_LIST": 174,
"tecXCHAIN_SENDING_ACCOUNT_MISMATCH": 175,
"tecXCHAIN_INSUFF_CREATE_AMOUNT": 176,
"tecXCHAIN_ACCOUNT_CREATE_PAST": 177,
"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY": 178,
"tecXCHAIN_PAYMENT_FAILED": 179,
"tecXCHAIN_SELF_COMMIT": 180,
"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR": 181,
"tecXCHAIN_CREATE_ACCOUNT_DISABLED": 182
},

@@ -2606,3 +2839,10 @@ "TRANSACTION_TYPES": {

"AMMBid": 39,
"AMMDelete": 40,
"XChainCreateBridge": 40,
"XChainCreateClaimID": 41,
"XChainCommit": 42,
"XChainClaim": 43,
"XChainAccountCreateCommit": 44,
"XChainAddClaimAttestation": 45,
"XChainAddAccountCreateAttestation": 46,
"XChainModifyBridge": 47,
"EnableAmendment": 100,

@@ -2609,0 +2849,0 @@ "SetFee": 101,

@@ -17,2 +17,3 @@ import { AccountID } from './account-id'

import { Vector256 } from './vector-256'
import { XChainBridge } from './xchain-bridge'
import { type SerializedType } from './serialized-type'

@@ -38,2 +39,3 @@ import { DEFAULT_DEFINITIONS } from '../enums'

Vector256,
XChainBridge,
}

@@ -40,0 +42,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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc