ripple-binary-codec
Version:
XRP Ledger binary codec
22 lines (21 loc) • 516 B
TypeScript
import BigNumber from 'bignumber.js';
/**
* class for encoding and decoding quality
*/
declare class quality {
/**
* Encode quality amount
*
* @param arg string representation of an amount
* @returns Serialized quality
*/
static encode(quality: string): Uint8Array;
/**
* Decode quality amount
*
* @param arg hex-string denoting serialized quality
* @returns deserialized quality
*/
static decode(quality: string): BigNumber;
}
export { quality };