{"id":26579976,"url":"https://github.com/slne-development/surf-transaction","last_synced_at":"2026-06-06T23:01:01.400Z","repository":{"id":282444450,"uuid":"931771388","full_name":"SLNE-Development/surf-transaction","owner":"SLNE-Development","description":"A lightweight and efficient transaction system for managing multiple currencies. Supports seamless transfers, real-time balance tracking, and secure transactions.","archived":false,"fork":false,"pushed_at":"2026-05-03T21:55:55.000Z","size":699,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"version/26.1","last_synced_at":"2026-05-03T23:33:24.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/SLNE-Development.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"SLNE-Development"}},"created_at":"2025-02-12T20:37:37.000Z","updated_at":"2026-05-03T21:54:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"72032886-44e6-40f1-9e60-63b41ff586b7","html_url":"https://github.com/SLNE-Development/surf-transaction","commit_stats":null,"previous_names":["slne-development/surf-transaction"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/SLNE-Development/surf-transaction","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SLNE-Development%2Fsurf-transaction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SLNE-Development%2Fsurf-transaction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SLNE-Development%2Fsurf-transaction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SLNE-Development%2Fsurf-transaction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SLNE-Development","download_url":"https://codeload.github.com/SLNE-Development/surf-transaction/tar.gz/refs/heads/version/26.1","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SLNE-Development%2Fsurf-transaction/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34002561,"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-06T02:00:07.033Z","response_time":107,"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":[],"created_at":"2025-03-23T06:29:40.220Z","updated_at":"2026-06-06T23:01:01.316Z","avatar_url":"https://github.com/SLNE-Development.png","language":"Kotlin","funding_links":["https://github.com/sponsors/SLNE-Development"],"categories":[],"sub_categories":[],"readme":"# surf-transaction\n\n**surf-transaction** is a modular transaction system for the Surf ecosystem.\nIt provides a structured API for managing accounts, currencies, and transactions and is designed for\nasynchronous use in plugins and modules.\n\n## Features\n\n* Account-based transaction system\n* Support for multiple currencies with configurable scaling\n* Deposits, withdrawals, and transfers\n* User- and account-centric API design\n* Extensible transaction metadata\n* Clear separation between public API and internal implementation\n\n## Installation\n\n### Gradle (Kotlin DSL)\n\n```kotlin\ndependencies {\n    compileOnly(\"dev.slne.surf.transaction:surf-transaction-api:\u003cversion\u003e\")\n}\n```\n\n## Core Concepts\n\nThe API is built around a small set of core abstractions:\n\n* **TransactionUser**\n  Entry point for user-scoped transactions and account access.\n\n* **Account**\n  Accounts that hold balances in one or more currencies.\n\n* **Currency**\n  Defines currencies including symbol, scale, and minimum amount.\n\n* **Transaction**\n  Immutable representation of a completed transaction.\n\n## Example\n\n```kotlin\nval user = TransactionUser.byUuid(userUuid)\n\nuser.deposit(\n    amount = BigDecimal(\"100\"),\n    currency = Currency.default()\n)\n\nval balance = user.balance(Currency.default())\n```\n\nAll transaction operations return a `TransactionResult`, which can be used to evaluate success or\nfailure.\n\n## Internal APIs\n\nAPIs annotated with `@InternalTransactionApi` are **not part of the public API** and must not be\nused.\nThey may change or be removed at any time without notice.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslne-development%2Fsurf-transaction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslne-development%2Fsurf-transaction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslne-development%2Fsurf-transaction/lists"}