caelum0x 894359e5ff feat(railyard): per-app completion pass — money-correct settlement + crate cores
- rago: exactly-once prepaid settlement (deterministic idempotency, unique partial index + in-tx ON CONFLICT guard) — closes the double-charge risk
- mint: double-entry + reserve conservation verified (14 tests)
- ledgerline: atomic settlement outbox + partial recovery index (37 tests)
- abacus: hard per-agent budget enforcement + kill-switch (54 tests)
- vend: crash reaper / in-flight session reconciliation
- turnstile/agent-runtime/ranguard/rit/game-economy/context-passport/rithub: core advanced + tests
2026-09-07 17:17:54 +03:00

34 lines
1.3 KiB
TOML

[package]
name = "game-economy-mint-client"
version = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
# The REAL HTTP transport to a live mint-server. Implements the same
# `game_economy_core::MintTransport` seam the FakeMint does, so a game storefront
# can settle actual card-pack / cosmetic / battle-pass purchases over HTTP.
#
# Ported in shape from `apps/abacus`'s abacus-mint-client:
# - `x-api-key` auth from config/env,
# - bare-`i64` `amount_micros`,
# - the `{success:true,data}` / `{success:false,error:{code,message}}` envelope,
# - HTTP status + stable error code -> typed `GameError` mapping.
# It only needs the direct-holds path (create / capture / release) the fixed-price
# storefront uses; a `transfer` convenience is provided for symmetry with
# `POST /v1/transfers` but is not part of the store's hot path.
[dependencies]
game-economy-core = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
async-trait = { workspace = true }
blake3 = { workspace = true }
reqwest = { workspace = true }
mint-protocol = { workspace = true }
[dev-dependencies]
# The mock mint-server used by the tests is a tiny hand-rolled tokio TCP stub
# (no new crates), so the suite runs fully offline and never hits a live Mint.
tokio = { workspace = true }
game-economy-testkit = { workspace = true }