ripple / ripple-binary-codec

Convert between json and hex representations of transactions and ledger entries on the XRP Ledger. Moved to: https://github.com/XRPLF/xrpl.js/tree/develop/packages/ripple-binary-codec
https://github.com/XRPLF/xrpl.js/tree/develop/packages/ripple-binary-codec
ISC License
19 stars 45 forks source link

refactored src/types #86

Closed natenichols closed 4 years ago

natenichols commented 4 years ago

High Level Overview of Change

Context of Change

Finished refactoring STObject and Amount classes. Now constructed with bytes representation. Cleaned up some types in accordance with linter.

Type of Change

Before / After

Refactored STObject, Amount, and linted code. Now both classes are constructed using Buffers. Also, renamed SerializedTypeClass -> SerializedType and ComparableClass -> Comparable. Added types to binary-parser.ts and binary-serializer.ts.

Test Plan

All tests still pass. Had to modify SerializedType -> SerializedType.prototype` in test/