New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

xrpl

Package Overview
Dependencies
Maintainers
8
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xrpl - npm Package Compare versions

Comparing version 2.4.0 to 2.5.0-beta.0

dist/npm/models/transactions/XChainAccountCreateCommit.d.ts

10

dist/npm/models/common/index.d.ts
export declare type LedgerIndex = number | ('validated' | 'closed' | 'current');
export declare type AccountObjectType = 'check' | 'deposit_preauth' | 'escrow' | 'offer' | 'payment_channel' | 'signer_list' | 'ticket' | 'state';
export declare type AccountObjectType = 'check' | 'deposit_preauth' | 'escrow' | 'offer' | 'payment_channel' | 'signer_list' | 'ticket' | 'state' | 'xchain_claim_id';
interface XRP {
currency: 'XRP';
}
interface IssuedCurrency {
export interface IssuedCurrency {
currency: string;

@@ -55,3 +55,9 @@ issuer: string;

}
export interface XChainBridge {
LockingChainDoor: string;
LockingChainIssue: 'XRP' | IssuedCurrency;
IssuingChainDoor: string;
IssuingChainIssue: 'XRP' | IssuedCurrency;
}
export {};
//# sourceMappingURL=index.d.ts.map

22

dist/npm/models/methods/ledgerEntry.d.ts

@@ -1,2 +0,2 @@

import { LedgerIndex } from '../common';
import { IssuedCurrency, LedgerIndex } from '../common';
import { LedgerEntry } from '../ledger';

@@ -38,2 +38,22 @@ import { BaseRequest, BaseResponse } from './baseMethod';

} | string;
xchain_bridge?: {
locking_chain_door: string;
locking_chain_issue: 'XRP' | IssuedCurrency;
issuing_chain_door: string;
issuing_chain_issue: 'XRP' | IssuedCurrency;
} | string;
xchain_claim_id?: {
locking_chain_door: string;
locking_chain_issue: 'XRP' | IssuedCurrency;
issuing_chain_door: string;
issuing_chain_issue: 'XRP' | IssuedCurrency;
xchain_claim_id: string | number;
} | string;
xchain_create_account_claim_id?: {
locking_chain_door: string;
locking_chain_issue: 'XRP' | IssuedCurrency;
issuing_chain_door: string;
issuing_chain_issue: 'XRP' | IssuedCurrency;
xchain_create_account_claim_id: string | number;
} | string;
}

@@ -40,0 +60,0 @@ export interface LedgerEntryResponse extends BaseResponse {

@@ -27,2 +27,9 @@ export { validate, TransactionAndMetadata, Transaction } from './transaction';

export { TrustSetFlagsInterface, TrustSetFlags, TrustSet } from './trustSet';
export { XChainAddAttestation } from './XChainAddAttestation';
export { XChainClaim } from './XChainClaim';
export { XChainCommit } from './XChainCommit';
export { XChainCreateBridge } from './XChainCreateBridge';
export { XChainCreateClaimID } from './XChainCreateClaimID';
export { XChainAccountCreateCommit } from './XChainAccountCreateCommit';
export { XChainModifyBridge } from './XChainModifyBridge';
//# sourceMappingURL=index.d.ts.map

@@ -26,3 +26,10 @@ import { AccountDelete } from './accountDelete';

import { TrustSet } from './trustSet';
export declare type Transaction = AccountDelete | AccountSet | CheckCancel | CheckCash | CheckCreate | DepositPreauth | EscrowCancel | EscrowCreate | EscrowFinish | NFTokenAcceptOffer | NFTokenBurn | NFTokenCancelOffer | NFTokenCreateOffer | NFTokenMint | OfferCancel | OfferCreate | Payment | PaymentChannelClaim | PaymentChannelCreate | PaymentChannelFund | SetRegularKey | SignerListSet | TicketCreate | TrustSet;
import { XChainAccountCreateCommit } from './XChainAccountCreateCommit';
import { XChainAddAttestation } from './XChainAddAttestation';
import { XChainClaim } from './XChainClaim';
import { XChainCommit } from './XChainCommit';
import { XChainCreateBridge } from './XChainCreateBridge';
import { XChainCreateClaimID } from './XChainCreateClaimID';
import { XChainModifyBridge } from './XChainModifyBridge';
export declare type Transaction = AccountDelete | AccountSet | CheckCancel | CheckCash | CheckCreate | DepositPreauth | EscrowCancel | EscrowCreate | EscrowFinish | NFTokenAcceptOffer | NFTokenBurn | NFTokenCancelOffer | NFTokenCreateOffer | NFTokenMint | OfferCancel | OfferCreate | Payment | PaymentChannelClaim | PaymentChannelCreate | PaymentChannelFund | SetRegularKey | SignerListSet | TicketCreate | TrustSet | XChainAddAttestation | XChainClaim | XChainCommit | XChainCreateBridge | XChainCreateClaimID | XChainAccountCreateCommit | XChainModifyBridge;
export interface TransactionAndMetadata {

@@ -29,0 +36,0 @@ transaction: Transaction;

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

const trustSet_1 = require("./trustSet");
const XChainAccountCreateCommit_1 = require("./XChainAccountCreateCommit");
const XChainAddAttestation_1 = require("./XChainAddAttestation");
const XChainClaim_1 = require("./XChainClaim");
const XChainCommit_1 = require("./XChainCommit");
const XChainCreateBridge_1 = require("./XChainCreateBridge");
const XChainCreateClaimID_1 = require("./XChainCreateClaimID");
const XChainModifyBridge_1 = require("./XChainModifyBridge");
function validate(transaction) {

@@ -118,2 +125,23 @@ const tx = Object.assign({}, transaction);

break;
case 'XChainAddAttestation':
(0, XChainAddAttestation_1.validateXChainAddAttestation)(tx);
break;
case 'XChainClaim':
(0, XChainClaim_1.validateXChainClaim)(tx);
break;
case 'XChainCommit':
(0, XChainCommit_1.validateXChainCommit)(tx);
break;
case 'XChainCreateBridge':
(0, XChainCreateBridge_1.validateXChainCreateBridge)(tx);
break;
case 'XChainCreateClaimID':
(0, XChainCreateClaimID_1.validateXChainCreateClaimID)(tx);
break;
case 'XChainAccountCreateCommit':
(0, XChainAccountCreateCommit_1.validateXChainAccountCreateCommit)(tx);
break;
case 'XChainModifyBridge':
(0, XChainModifyBridge_1.validateXChainModifyBridge)(tx);
break;
default:

@@ -120,0 +148,0 @@ throw new errors_1.ValidationError(`Invalid field TransactionType: ${tx.TransactionType}`);

{
"name": "xrpl",
"version": "2.4.0",
"version": "2.5.0-beta.0",
"license": "ISC",

@@ -30,3 +30,3 @@ "description": "A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser",

"ripple-address-codec": "^4.2.4",
"ripple-binary-codec": "^1.4.2",
"ripple-binary-codec": "^1.5.0-beta.0",
"ripple-keypairs": "^1.1.4",

@@ -72,3 +72,3 @@ "ws": "^8.2.2"

},
"gitHead": "d8dbd44f56d85ec2e4f7965d2f8f033e8f0c959c"
"gitHead": "e697bd017b917b141c60937477becc893e70fff1"
}

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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