{"id":19506773,"url":"https://github.com/calvinlfer/wallet-api","last_synced_at":"2026-06-13T03:01:57.528Z","repository":{"id":68736798,"uuid":"251315961","full_name":"calvinlfer/wallet-api","owner":"calvinlfer","description":"An implementation of an API for wallet built using Akka (HTTP, Cluster Sharding, Event Sourcing) and ZIO","archived":false,"fork":false,"pushed_at":"2020-04-03T15:13:08.000Z","size":63,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T19:56:47.840Z","etag":null,"topics":["akka","scala","zio"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/calvinlfer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-30T13:38:24.000Z","updated_at":"2020-06-25T20:16:45.000Z","dependencies_parsed_at":"2023-04-15T19:32:53.171Z","dependency_job_id":null,"html_url":"https://github.com/calvinlfer/wallet-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/calvinlfer/wallet-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calvinlfer%2Fwallet-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calvinlfer%2Fwallet-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calvinlfer%2Fwallet-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calvinlfer%2Fwallet-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/calvinlfer","download_url":"https://codeload.github.com/calvinlfer/wallet-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calvinlfer%2Fwallet-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34270417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["akka","scala","zio"],"created_at":"2024-11-10T22:38:17.117Z","updated_at":"2026-06-13T03:01:57.512Z","avatar_url":"https://github.com/calvinlfer.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Wallet API\n\nAn implementation of a Wallet API built on Akka Typed making using of event sourcing (using the JDBC plugin) and \ndistributed by Akka Cluster Sharding.\n\nDeposits and Withdrawals follow a fee structure (the more money in your account, the cheaper it becomes to transact).\nThe amount of money generated by fees is calculated via a Persistence Query but is not currently exposed but can be \naccessed by querying the `processor` table.\n\n### Running the application\n1. Make sure to spin up Postgres via `docker-compose up -d`\n2. Run the application using IntelliJ, Visual Studio Code + Metals or just `sbt run`\n\n### Postman\nA Postman collection is included for easy testing in the `postman` folder\n\n### Operations\n\n#### Create \n`POST /wallets`\n```json\n{\n  \"id\": \"abc\"\n}\n```\n\n#### Deposit\n`POST /wallets/\u003cid\u003e/deposit`\n```json\n{\n  \"amount\": 2000\n}\n```\n\n#### Withdraw\n`POST /wallets/\u003cid\u003e/withdraw`\n```json\n{\n  \"amount\": 2000\n}\n```\n\n#### Query Deposit Fee\n`POST /wallets/\u003cid\u003e/depositFee`\n```json\n{\n  \"amount\": 2000\n}\n```\n\n#### Query Withdraw Fee\n`POST /wallets/\u003cid\u003e/withdrawFee`\n```json\n{\n  \"amount\": 2000\n}\n```\n\n#### Immediate history\n`GET /wallets/abc/history/immediate`\n\n#### All history\n`GET /wallets/abc/history/all`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalvinlfer%2Fwallet-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalvinlfer%2Fwallet-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalvinlfer%2Fwallet-api/lists"}