Main page. Just simple HTML, CSS and JS. https://asxp.io
  • Ruby 66.9%
  • HTML 23.5%
  • CSS 5.9%
  • JavaScript 2.7%
  • Nix 0.4%
  • Other 0.6%
Find a file
Sergei Poljanski 33ba7650c3
invoices: self-contained payout addresses
Crypto options were limited to a hard-coded asset list, with one
address per coin in a side table. A payout address now carries
everything an invoice needs: ticker, name, QR URI scheme, amount
parameter, CoinGecko id, address and an active flag. Any coin can be
added, several addresses per ticker are fine, and known tickers fill the
QR and rate fields from the built-in templates.

The new-invoice form picks a payout address. The invoice snapshots the
ticker, address, name, scheme and amount parameter, and the PDF and QR
render from that copy, so editing, retiring or deleting a payout entry
never changes an issued invoice. "Fetch live" looks up the rate by the
payout address's CoinGecko id.

Migration 012 keeps the existing rows and backfills both the payout
metadata and the snapshots on existing crypto invoices.

Assisted-by: Claude:opus-5
2026-10-10 09:17:09 +04:00
.forgejo/workflows bingo: stop serving bingo.asxp.io 2026-10-10 06:07:37 +04:00
bin tests: minitest + rack-test suite, bin/test with ephemeral Postgres 2026-07-02 17:32:14 +04:00
db invoices: self-contained payout addresses 2026-10-10 09:17:09 +04:00
lib invoices: self-contained payout addresses 2026-10-10 09:17:09 +04:00
public invoices: self-contained payout addresses 2026-10-10 09:17:09 +04:00
test invoices: self-contained payout addresses 2026-10-10 09:17:09 +04:00
views invoices: self-contained payout addresses 2026-10-10 09:17:09 +04:00
.dockerignore tests: minitest + rack-test suite, bin/test with ephemeral Postgres 2026-07-02 17:32:14 +04:00
.env.example bingo: serve bingo.asxp.io too, credit asxp.io in footer 2026-10-10 06:00:39 +04:00
.gitignore ltc payments 2026-06-08 18:43:01 +03:00
asxpio.rb invoices: self-contained payout addresses 2026-10-10 09:17:09 +04:00
bingo_web.rb bingo: planned status and capacity type 2026-10-10 06:59:04 +04:00
CLAUDE.md invoices: self-contained payout addresses 2026-10-10 09:17:09 +04:00
config.ru bingo: serve bingo.asxp.io too, credit asxp.io in footer 2026-10-10 06:00:39 +04:00
docker-compose.yml bingo: stop serving bingo.asxp.io 2026-10-10 06:07:37 +04:00
Dockerfile bingo: SEO pass and resized photos 2026-10-10 06:26:03 +04:00
flake.lock ruby rework with contact form 2026-05-05 00:45:27 +04:00
flake.nix gems: add pg, sequel, prawn, aws-sdk-s3 for invoicing 2026-05-26 17:29:21 +03:00
Gemfile tests: minitest + rack-test suite, bin/test with ephemeral Postgres 2026-07-02 17:32:14 +04:00
Gemfile.lock tests: minitest + rack-test suite, bin/test with ephemeral Postgres 2026-07-02 17:32:14 +04:00
Rakefile tests: minitest + rack-test suite, bin/test with ephemeral Postgres 2026-07-02 17:32:14 +04:00