sephynox / xrpl-rust

A 100% Rust library to interact with the XRPL. XRPL Grant Winner
https://crates.io/crates/xrpl-rust
ISC License
20 stars 8 forks source link

Revise Models #74

Closed LimpidCrypto closed 8 months ago

LimpidCrypto commented 9 months ago

High Level Overview of Change

This PR makes use of the XRPL CommonFields in the models making it easier to work with them. It also adds some smaller features like:

Context of Change

As I was working on #71 the current models made it really hard to get model values (mostly from common fields). I had to write workarounds to get/set values of a model making it really inconvenient to work with them. This PR add CommonFields introducing a way easier way to work with the models.

Type of Change

Test Plan

The tests already exist.

TODO