lifecycle.tick runs the round from open to closed one write-locked step at a time, resumable from the database (an interrupted draw gives the same winner). Draw primitives move to plm_engine.draw and are shared with the old module. SimulatedChain and settle() stand in for blocks and confirmations; the worker runs both every tick and opens the first round. The round secret is stored encrypted and revealed with the winner; the proof exposes no usernames. Mutation checks confirmed the wait for in-flight bets and the txid ordering are caught by the tests. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
37 lines
773 B
TOML
37 lines
773 B
TOML
[project]
|
|
name = "plm-lottery"
|
|
version = "0.1.0"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"fastapi>=0.115",
|
|
"uvicorn[standard]>=0.32",
|
|
"sqlalchemy[asyncio]>=2.0",
|
|
"aiosqlite>=0.20",
|
|
"alembic>=1.13",
|
|
"pydantic-settings>=2.6",
|
|
"argon2-cffi>=23.1",
|
|
"pyjwt>=2.7",
|
|
"cryptography>=43.0",
|
|
"embit>=0.7",
|
|
"qrcode[pil]>=7.4",
|
|
"Django>=5.2,<5.3",
|
|
"gunicorn>=23",
|
|
"whitenoise>=6.7",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.3",
|
|
"pytest-asyncio>=0.24",
|
|
"httpx>=0.27",
|
|
"pytest-django>=4.9",
|
|
]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|
|
DJANGO_SETTINGS_MODULE = "config.settings_test"
|
|
|
|
[tool.setuptools.packages.find]
|
|
include = ["app*", "config*", "apps*", "plm_engine*"]
|