Lightning payments through LNbits, wallets, passes, credits, the entitlement resolver and priority lanes. - internal/entitle: pure resolver (one-off, own pass, group pass, group credits, own credits, free) with a table-driven suite and an invariant check over every input combination - internal/billing: wallets, append-only ledger with dedupe keys, stacking passes, purchases, gift codes, referral reward - LNbits client verified against v0.12.12 and v1.7.1 source - Settlement by one conditional UPDATE: idempotent under any mix of webhooks, polls and the check button. Webhooks are unsigned, so every payment is confirmed with LNbits before it is credited - Polling fallback, reconciliation of all unsettled invoices at startup, late payments still honored, no expiry while LNbits is unreachable - Charge, quota and job are written in one transaction; failed, cancelled and undeliverable downloads are refunded exactly once - Paid lane first with one slot of the fleet reserved for free users - Daily download quota and daily volume cap, per-user and per-group rate limits - Bot: /buy /account /limits /credits /redeem /referral /donate, QR invoice message that flips to paid, over-limit offer (passes or this file only), deep links from groups, skip the queue - Fake LNbits server for tests; end-to-end money flows including a payment made while the core was down Cashu redemption is behind an interface and not implemented. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
43 lines
1.6 KiB
AMPL
43 lines
1.6 KiB
AMPL
module github.com/noderunners/dlbot
|
|
|
|
go 1.26.11
|
|
|
|
require (
|
|
github.com/BurntSushi/toml v1.6.0
|
|
github.com/mymmrac/telego v1.13.0
|
|
github.com/nicksnyder/go-i18n/v2 v2.7.0
|
|
github.com/pressly/goose/v3 v3.30.1
|
|
golang.org/x/text v0.44.0
|
|
modernc.org/sqlite v1.62.0
|
|
)
|
|
|
|
require (
|
|
github.com/bytedance/gopkg v0.1.3 // indirect
|
|
github.com/bytedance/sonic v1.15.5 // indirect
|
|
github.com/bytedance/sonic/loader v0.5.3 // indirect
|
|
github.com/cloudwego/base64x v0.1.6 // indirect
|
|
github.com/dustin/go-humanize v1.1.0 // indirect
|
|
github.com/goccy/go-json v0.12.0 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/klauspost/compress v1.20.4 // indirect
|
|
github.com/klauspost/cpuid/v2 v2.2.9 // indirect
|
|
github.com/mattn/go-isatty v0.0.24 // indirect
|
|
github.com/mfridman/interpolate v0.2.0 // indirect
|
|
github.com/molecule-man/go-brrr v1.3.1 // indirect
|
|
github.com/ncruces/go-strftime v1.1.0 // indirect
|
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
|
github.com/sethvargo/go-retry v0.5.0 // indirect
|
|
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e // indirect
|
|
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
|
|
github.com/valyala/bytebufferpool v1.0.0 // indirect
|
|
github.com/valyala/fasthttp v1.78.0 // indirect
|
|
github.com/valyala/fastjson v1.6.10 // indirect
|
|
go.uber.org/multierr v1.11.0 // indirect
|
|
golang.org/x/arch v0.0.0-20210923205945-b76863e36670 // indirect
|
|
golang.org/x/sync v0.25.0 // indirect
|
|
golang.org/x/sys v0.50.0 // indirect
|
|
modernc.org/libc v1.80.2 // indirect
|
|
modernc.org/mathutil v1.7.1 // indirect
|
|
modernc.org/memory v1.12.1 // indirect
|
|
)
|