You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.d.ts 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { classicAddressToXAddress, decodeAccountID, decodeAccountPublic, decodeNodePublic, decodeSeed, decodeXAddress, encodeAccountID, encodeAccountPublic, encodeNodePublic, encodeSeed, encodeXAddress, isValidClassicAddress, isValidXAddress, xAddressToClassicAddress } from 'ripple-address-codec';
  2. import { verify as verifyKeypairSignature } from 'ripple-keypairs';
  3. import { LedgerEntry } from '../models/ledger';
  4. import { Response } from '../models/methods';
  5. import { PaymentChannelClaim } from '../models/transactions/paymentChannelClaim';
  6. import { Transaction } from '../models/transactions/transaction';
  7. import createCrossChainPayment from './createCrossChainPayment';
  8. import { deriveKeypair, deriveAddress, deriveXAddress } from './derive';
  9. import getBalanceChanges from './getBalanceChanges';
  10. import getNFTokenID from './getNFTokenID';
  11. import { hashSignedTx, hashTx, hashAccountRoot, hashSignerListId, hashOfferId, hashTrustline, hashTxTree, hashStateTree, hashLedger, hashLedgerHeader, hashEscrow, hashPaymentChannel } from './hashes';
  12. import parseNFTokenID from './parseNFTokenID';
  13. import { percentToTransferRate, decimalToTransferRate, transferRateToDecimal, percentToQuality, decimalToQuality, qualityToDecimal } from './quality';
  14. import signPaymentChannelClaim from './signPaymentChannelClaim';
  15. import { convertHexToString, convertStringToHex } from './stringConversion';
  16. import { rippleTimeToISOTime, isoTimeToRippleTime, rippleTimeToUnixTime, unixTimeToRippleTime } from './timeConversion';
  17. import verifyPaymentChannelClaim from './verifyPaymentChannelClaim';
  18. import { xrpToDrops, dropsToXrp } from './xrpConversion';
  19. declare function isValidSecret(secret: string): boolean;
  20. declare function encode(object: Transaction | LedgerEntry): string;
  21. declare function encodeForSigning(object: Transaction): string;
  22. declare function encodeForSigningClaim(object: PaymentChannelClaim): string;
  23. declare function encodeForMultiSigning(object: Transaction, signer: string): string;
  24. declare function decode(hex: string): Record<string, unknown>;
  25. declare function isValidAddress(address: string): boolean;
  26. declare function hasNextPage(response: Response): boolean;
  27. declare const hashes: {
  28. hashSignedTx: typeof hashSignedTx;
  29. hashTx: typeof hashTx;
  30. hashAccountRoot: typeof hashAccountRoot;
  31. hashSignerListId: typeof hashSignerListId;
  32. hashOfferId: typeof hashOfferId;
  33. hashTrustline: typeof hashTrustline;
  34. hashTxTree: typeof hashTxTree;
  35. hashStateTree: typeof hashStateTree;
  36. hashLedger: typeof hashLedger;
  37. hashLedgerHeader: typeof hashLedgerHeader;
  38. hashEscrow: typeof hashEscrow;
  39. hashPaymentChannel: typeof hashPaymentChannel;
  40. };
  41. export { getBalanceChanges, dropsToXrp, xrpToDrops, hasNextPage, rippleTimeToISOTime, isoTimeToRippleTime, rippleTimeToUnixTime, unixTimeToRippleTime, percentToQuality, decimalToQuality, percentToTransferRate, decimalToTransferRate, transferRateToDecimal, qualityToDecimal, isValidSecret, isValidAddress, hashes, deriveKeypair, deriveAddress, deriveXAddress, signPaymentChannelClaim, verifyKeypairSignature, verifyPaymentChannelClaim, convertStringToHex, convertHexToString, classicAddressToXAddress, xAddressToClassicAddress, isValidXAddress, isValidClassicAddress, encodeSeed, decodeSeed, encodeAccountID, decodeAccountID, encodeNodePublic, decodeNodePublic, encodeAccountPublic, decodeAccountPublic, encodeXAddress, decodeXAddress, encode, decode, encodeForMultiSigning, encodeForSigning, encodeForSigningClaim, getNFTokenID, createCrossChainPayment, parseNFTokenID, };
  42. //# sourceMappingURL=index.d.ts.map