This PR allows us to make our models stronger typed. It adds the following models:
Currency
IssuedCurrency
XRP
Amount
IssuedCurrencyAmount
XRPAmount
Amounts can be turned into Currencies and vice versa.
The value can be easily turned into Decimal using the TryInto trait (error handling still has to be implemented).
This is a follow up #55
High Level Overview of Change
This PR allows us to make our models stronger typed. It adds the following models:
Currency
IssuedCurrency
XRP
Amount
IssuedCurrencyAmount
XRPAmount
Amounts
can be turned intoCurrencies
and vice versa. Thevalue
can be easily turned intoDecimal
using theTryInto
trait (error handling still has to be implemented).Context of Change
https://github.com/sephynox/xrpl-rust/pull/55#issuecomment-1474174141
Type of Change
Test Plan
The currencies and amounts are tested in the tests for the models.
Future Tasks