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

xrpl

Package Overview
Dependencies
Maintainers
5
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.0.0 to 2.0.1

2

dist/npm/index.d.ts
export { default as BroadcastClient } from './client/BroadcastClient';
export { Client } from './client';
export { Client, ClientOptions } from './client';
export * from './models';

@@ -4,0 +4,0 @@ export * from './utils';

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

import AccountRoot, { AccountRootFlags } from './AccountRoot';
import AccountRoot, { AccountRootFlags, AccountRootFlagsInterface } from './AccountRoot';
import Amendments from './Amendments';

@@ -17,3 +17,3 @@ import Check from './Check';

import Ticket from './Ticket';
export { AccountRoot, AccountRootFlags, Amendments, Check, DepositPreauth, DirectoryNode, Escrow, FeeSettings, Ledger, LedgerEntry, LedgerHashes, NegativeUNL, Offer, OfferFlags, PayChannel, RippleState, RippleStateFlags, SignerList, SignerListFlags, Ticket, };
export { AccountRoot, AccountRootFlags, AccountRootFlagsInterface, Amendments, Check, DepositPreauth, DirectoryNode, Escrow, FeeSettings, Ledger, LedgerEntry, LedgerHashes, NegativeUNL, Offer, OfferFlags, PayChannel, RippleState, RippleStateFlags, SignerList, SignerListFlags, Ticket, };
//# sourceMappingURL=index.d.ts.map

@@ -9,3 +9,3 @@ import { AccountChannelsRequest, AccountChannelsResponse } from './accountChannels';

import { ErrorResponse } from './baseMethod';
import { BookOffersRequest, BookOffersResponse } from './bookOffers';
import { BookOffersRequest, BookOffer, BookOffersResponse } from './bookOffers';
import { ChannelVerifyRequest, ChannelVerifyResponse } from './channelVerify';

@@ -22,3 +22,3 @@ import { DepositAuthorizedRequest, DepositAuthorizedResponse } from './depositAuthorized';

import { NoRippleCheckRequest, NoRippleCheckResponse } from './norippleCheck';
import { PathFindRequest, PathFindResponse } from './pathFind';
import { PathFindRequest, PathFindCloseRequest, PathFindCreateRequest, PathFindStatusRequest, PathFindResponse } from './pathFind';
import { PingRequest, PingResponse } from './ping';

@@ -37,3 +37,3 @@ import { RandomRequest, RandomResponse } from './random';

declare type Response = AccountChannelsResponse | AccountCurrenciesResponse | AccountInfoResponse | AccountLinesResponse | AccountObjectsResponse | AccountOffersResponse | AccountTxResponse | GatewayBalancesResponse | NoRippleCheckResponse | LedgerResponse | LedgerClosedResponse | LedgerCurrentResponse | LedgerDataResponse | LedgerEntryResponse | SubmitResponse | SubmitMultisignedResponse | TransactionEntryResponse | TxResponse | BookOffersResponse | DepositAuthorizedResponse | PathFindResponse | RipplePathFindResponse | ChannelVerifyResponse | SubscribeResponse | UnsubscribeResponse | FeeResponse | ManifestResponse | ServerInfoResponse | ServerStateResponse | PingResponse | RandomResponse;
export { Request, Response, AccountChannelsRequest, AccountChannelsResponse, AccountCurrenciesRequest, AccountCurrenciesResponse, AccountInfoRequest, AccountInfoResponse, AccountLinesRequest, AccountLinesResponse, AccountObjectsRequest, AccountObjectsResponse, AccountOffersRequest, AccountOffersResponse, AccountTxRequest, AccountTxResponse, GatewayBalancesRequest, GatewayBalancesResponse, NoRippleCheckRequest, NoRippleCheckResponse, LedgerRequest, LedgerResponse, LedgerClosedRequest, LedgerClosedResponse, LedgerCurrentRequest, LedgerCurrentResponse, LedgerDataRequest, LedgerDataResponse, LedgerEntryRequest, LedgerEntryResponse, SubmitRequest, SubmitResponse, SubmitMultisignedRequest, SubmitMultisignedResponse, TransactionEntryRequest, TransactionEntryResponse, TxRequest, TxResponse, BookOffersRequest, BookOffersResponse, DepositAuthorizedRequest, DepositAuthorizedResponse, PathFindRequest, PathFindResponse, RipplePathFindRequest, RipplePathFindResponse, ChannelVerifyRequest, ChannelVerifyResponse, SubscribeRequest, SubscribeResponse, Stream, LedgerStream, ValidationStream, TransactionStream, PathFindStream, PeerStatusStream, OrderBookStream, ConsensusStream, UnsubscribeRequest, UnsubscribeResponse, FeeRequest, FeeResponse, ManifestRequest, ManifestResponse, ServerInfoRequest, ServerInfoResponse, ServerStateRequest, ServerStateResponse, PingRequest, PingResponse, RandomRequest, RandomResponse, ErrorResponse, };
export { Request, Response, AccountChannelsRequest, AccountChannelsResponse, AccountCurrenciesRequest, AccountCurrenciesResponse, AccountInfoRequest, AccountInfoResponse, AccountLinesRequest, AccountLinesResponse, AccountObjectsRequest, AccountObjectsResponse, AccountOffersRequest, AccountOffersResponse, AccountTxRequest, AccountTxResponse, GatewayBalancesRequest, GatewayBalancesResponse, NoRippleCheckRequest, NoRippleCheckResponse, LedgerRequest, LedgerResponse, LedgerClosedRequest, LedgerClosedResponse, LedgerCurrentRequest, LedgerCurrentResponse, LedgerDataRequest, LedgerDataResponse, LedgerEntryRequest, LedgerEntryResponse, SubmitRequest, SubmitResponse, SubmitMultisignedRequest, SubmitMultisignedResponse, TransactionEntryRequest, TransactionEntryResponse, TxRequest, TxResponse, BookOffersRequest, BookOffer, BookOffersResponse, DepositAuthorizedRequest, DepositAuthorizedResponse, PathFindRequest, PathFindCreateRequest, PathFindCloseRequest, PathFindStatusRequest, PathFindResponse, RipplePathFindRequest, RipplePathFindResponse, ChannelVerifyRequest, ChannelVerifyResponse, SubscribeRequest, SubscribeResponse, Stream, LedgerStream, ValidationStream, TransactionStream, PathFindStream, PeerStatusStream, OrderBookStream, ConsensusStream, UnsubscribeRequest, UnsubscribeResponse, FeeRequest, FeeResponse, ManifestRequest, ManifestResponse, ServerInfoRequest, ServerInfoResponse, ServerStateRequest, ServerStateResponse, PingRequest, PingResponse, RandomRequest, RandomResponse, ErrorResponse, };
//# sourceMappingURL=index.d.ts.map

@@ -7,3 +7,3 @@ import { Amount, Path } from '../common';

}
interface PathFindCreateRequest extends BasePathFindRequest {
export interface PathFindCreateRequest extends BasePathFindRequest {
subcommand: 'create';

@@ -16,6 +16,6 @@ source_account: string;

}
interface PathFindCloseRequest extends BasePathFindRequest {
export interface PathFindCloseRequest extends BasePathFindRequest {
subcommand: 'close';
}
interface PathFindStatusRequest extends BasePathFindRequest {
export interface PathFindStatusRequest extends BasePathFindRequest {
subcommand: 'status';

@@ -22,0 +22,0 @@ }

import type { Client } from '..';
import { LedgerIndex } from '../models/common';
interface Balance {
value: string;
currency: string;
issuer?: string;
}
interface GetXrpBalanceOptions {
declare function getXrpBalance(this: Client, address: string, options?: {
ledger_hash?: string;
ledger_index?: LedgerIndex;
}
interface GetBalancesOptions {
}): Promise<string>;
declare function getBalances(this: Client, address: string, options?: {
ledger_hash?: string;

@@ -17,6 +12,8 @@ ledger_index?: LedgerIndex;

limit?: number;
}
declare function getXrpBalance(this: Client, address: string, options?: GetXrpBalanceOptions): Promise<string>;
declare function getBalances(this: Client, address: string, options?: GetBalancesOptions): Promise<Balance[]>;
}): Promise<Array<{
value: string;
currency: string;
issuer?: string | undefined;
}>>;
export { getXrpBalance, getBalances };
//# sourceMappingURL=balances.d.ts.map
import type { Client } from '../client';
import { LedgerIndex } from '../models/common';
import { BookOffer, TakerAmount } from '../models/methods/bookOffers';
interface Orderbook {
buy: BookOffer[];
sell: BookOffer[];
}
interface OrderbookOptions {
declare function getOrderbook(this: Client, takerPays: TakerAmount, takerGets: TakerAmount, options?: {
limit?: number;

@@ -13,5 +9,7 @@ ledger_index?: LedgerIndex;

taker?: string;
}
declare function getOrderbook(this: Client, takerPays: TakerAmount, takerGets: TakerAmount, options?: OrderbookOptions): Promise<Orderbook>;
}): Promise<{
buy: BookOffer[];
sell: BookOffer[];
}>;
export default getOrderbook;
//# sourceMappingURL=getOrderbook.d.ts.map
import type { Client, SubmitResponse, Wallet } from '..';
import { TxResponse } from '../models/methods';
import { Transaction } from '../models/transactions';
interface SubmitOptions {
declare function submit(this: Client, transaction: Transaction | string, opts?: {
autofill?: boolean;
failHard?: boolean;
wallet?: Wallet;
}
declare function submit(this: Client, transaction: Transaction | string, opts?: SubmitOptions): Promise<SubmitResponse>;
declare function submitAndWait(this: Client, transaction: Transaction | string, opts?: SubmitOptions): Promise<TxResponse>;
}): Promise<SubmitResponse>;
declare function submitAndWait(this: Client, transaction: Transaction | string, opts?: {
autofill?: boolean;
failHard?: boolean;
wallet?: Wallet;
}): Promise<TxResponse>;
export { submit, submitAndWait };
//# sourceMappingURL=submit.d.ts.map

@@ -85,3 +85,3 @@ "use strict";

}
function getSignedTx(client, transaction, { autofill = true, wallet } = {}) {
function getSignedTx(client, transaction, { autofill = true, wallet, } = {}) {
return __awaiter(this, void 0, void 0, function* () {

@@ -88,0 +88,0 @@ if (isSigned(transaction)) {

import { deriveKeypair } from 'ripple-keypairs';
interface DeriveOptions {
declare function deriveXAddress(options: {
publicKey: string;
tag: number | false;
test: boolean;
}
declare function deriveXAddress(options: DeriveOptions): string;
}): string;
export { deriveKeypair, deriveXAddress };
//# sourceMappingURL=derive.d.ts.map
import { TransactionMetadata } from '../models/transactions/metadata';
interface Balance {
currency: string;
issuer?: string;
value: string;
}
interface BalanceChanges {
export default function getBalanceChanges(metadata: TransactionMetadata): Array<{
account: string;
balances: Balance[];
}
export default function getBalanceChanges(metadata: TransactionMetadata): BalanceChanges[];
export {};
balances: Array<{
currency: string;
issuer?: string;
value: string;
}>;
}>;
//# sourceMappingURL=getBalanceChanges.d.ts.map
import type { Ledger } from '../../models/ledger';
import { LedgerEntry } from '../../models/ledger';
import { Transaction, TransactionMetadata } from '../../models/transactions';
interface HashLedgerHeaderOptions {
computeTreeHashes?: boolean;
}
export declare function hashSignedTx(tx: Transaction | string): string;

@@ -13,4 +10,6 @@ export declare function hashLedgerHeader(ledgerHeader: Ledger): string;

export declare function hashStateTree(entries: LedgerEntry[]): string;
declare function hashLedger(ledger: Ledger, options?: HashLedgerHeaderOptions): string;
declare function hashLedger(ledger: Ledger, options?: {
computeTreeHashes?: boolean;
}): string;
export default hashLedger;
//# sourceMappingURL=hashLedger.d.ts.map
import type { Client } from '..';
import Wallet from '.';
interface WalletWithStartingBalance {
wallet: Wallet;
balance: number;
}
declare enum FaucetNetwork {

@@ -11,3 +7,6 @@ Testnet = "faucet.altnet.rippletest.net",

}
declare function fundWallet(this: Client, wallet?: Wallet): Promise<WalletWithStartingBalance>;
declare function fundWallet(this: Client, wallet?: Wallet): Promise<{
wallet: Wallet;
balance: number;
}>;
declare function getFaucetUrl(client: Client): FaucetNetwork | undefined;

@@ -14,0 +13,0 @@ export default fundWallet;

import ECDSA from '../ECDSA';
import { Transaction } from '../models/transactions';
interface SignedTxBlobHash {
tx_blob: string;
hash: string;
}
interface WalletBaseOptions {
masterAddress?: string;
}
interface WalletOptions extends WalletBaseOptions {
seed?: string;
}
interface DeriveWalletOptions extends WalletBaseOptions {
algorithm?: ECDSA;
}
interface FromMnemonicOptions extends WalletBaseOptions {
derivationPath?: string;
}
declare class Wallet {

@@ -25,10 +9,25 @@ readonly publicKey: string;

get address(): string;
constructor(publicKey: string, privateKey: string, opts?: WalletOptions);
constructor(publicKey: string, privateKey: string, opts?: {
masterAddress?: string;
seed?: string;
});
static generate(algorithm?: ECDSA): Wallet;
static fromSeed(seed: string, opts?: DeriveWalletOptions): Wallet;
static fromSeed(seed: string, opts?: {
masterAddress?: string;
algorithm?: ECDSA;
}): Wallet;
static fromSecret: typeof Wallet.fromSeed;
static fromMnemonic(mnemonic: string, opts?: FromMnemonicOptions): Wallet;
static fromEntropy(entropy: Uint8Array | number[], opts?: DeriveWalletOptions): Wallet;
static fromMnemonic(mnemonic: string, opts?: {
masterAddress?: string;
derivationPath?: string;
}): Wallet;
static fromEntropy(entropy: Uint8Array | number[], opts?: {
masterAddress?: string;
algorithm?: ECDSA;
}): Wallet;
private static deriveWallet;
sign(this: Wallet, transaction: Transaction, multisign?: boolean | string): SignedTxBlobHash;
sign(this: Wallet, transaction: Transaction, multisign?: boolean | string): {
tx_blob: string;
hash: string;
};
verifyTransaction(signedTransaction: string): boolean;

@@ -35,0 +34,0 @@ getXAddress(tag?: number | false, isTestnet?: boolean): string;

{
"name": "xrpl",
"version": "2.0.0",
"version": "2.0.1",
"license": "ISC",

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

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

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

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

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

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