https://github.com/totalkrill/toypa
https://github.com/totalkrill/toypa
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/totalkrill/toypa
- Owner: TotalKrill
- Created: 2022-04-09T16:05:09.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-09T16:06:33.000Z (about 4 years ago)
- Last Synced: 2025-02-09T16:43:35.487Z (over 1 year ago)
- Language: Rust
- Size: 4.67 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Toy payment engine
A toy payment engine
# Usage
cargo run -- >
# Implementation
The payment engine only handles disputes on deposit transactions, it also stores all deposits locally
under each account for retrieval in dispute matters, eating quite a lot of ram on large datasets.
Theres a fixed point implementation running in the account handling, treating all internal values as integers,
with the unit of 1/1000th of an amount. Upon serialization or deserialization, they are again transformed to f64 and serialized
mostly because trying to implement a custom serializers and deserializer is always a bit painful