https://github.com/rainbyte/monedas
This software implements a system which simulates money transactions
https://github.com/rainbyte/monedas
Last synced: 3 months ago
JSON representation
This software implements a system which simulates money transactions
- Host: GitHub
- URL: https://github.com/rainbyte/monedas
- Owner: rainbyte
- Created: 2018-08-23T10:55:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-23T10:56:55.000Z (almost 7 years ago)
- Last Synced: 2025-02-08T11:34:58.620Z (5 months ago)
- Language: Haskell
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
This software implements a system which simulates money transactions
-- Main operations
createCurrency :: String -> Ledger -> Ledger
sendMoney :: Entry -> Ledger -> Ledger
inspectLedger :: Ledger -> [Entry]
accountBalance :: User -> Ledger -> Balance-- Restrictions
-- - Only an user could manage its account
-- - Validate API data (at frontend & backend)
-- - Concurrency should be supported, avoid double-spend