aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* invoices: don't re-list an invoice id on update (dedupe :invoices)stagingAdam Soltys2026-06-181-0/+86
| | | | | | | | | | | | | | | | Port of the master fix (2d2f9856) + cleanup script to staging. generate() unconditionally lPush'd the invoice id to `${aid}:invoices`, but it's also called from update() (tip/webhook changes, repeated bolt12 offer creation) re-using the existing id — so each update re-appended the same id and the user's :invoices accumulated duplicate entries, rendering the same offer/invoice multiple times. Guard the push with LPOS so it only adds the id the first time. Also add scripts/dedup-invoices.ts to scrub already-accumulated dupes (dry-run by default, --apply to write, idempotent). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
* analytics: missing-history audit + lightning->liquid arb finderAdam Soltys2026-06-172-0/+232
| | | | | | | | | | | Port of master be896868. scripts/audit-missing-history.ts flags users whose payment history has gaps vs their recorded balance. scripts/ ln-liquid-arb.ts surfaces lightning->liquid rebalancing opportunities. Note: written against the master stack (Redis balances); on staging balances live in TigerBeetle and may need the balance source adjusted. Co-Authored-By: Claude Opus 4.8 <[email protected]>
* analytics: monthly insight reports + signup instrumentationAdam Soltys2026-06-172-0/+423
| | | | | | | | | | | | | | | | Port of master 183a3cb0 + 3db24424. scripts/analytics.ts streams live db (SCAN, never KEYS) and reports a trailing window: MAU/WAU, new users, custody total + top holders, network volume by type, most-active/highest- volume users, bolt12 recipients; --csv flag for month-over-month trends. scripts/analytics-geo.ts reports top countries from the request log. lib/register.ts stamps `created` and stores `country` on new users so reports get signup timing/geography from the db directly. Note: these scripts were written against the master stack; on staging balances live in TigerBeetle, so custody/holder figures may need the balance source adjusted from the Redis balance: keys. Co-Authored-By: Claude Opus 4.8 <[email protected]>
* update migrate scriptAdam Soltys2026-03-161-0/+1783
|
* cln migrateAdam Soltys2026-03-152-0/+300
|
* slow down ark checksark2Adam Soltys2026-03-141-5/+43
|
* ark fixesAdam Soltys2026-03-131-2/+3
|
* ark wallet monitoringAdam Soltys2026-03-123-0/+413
|
* fix typescript issuesAdam Soltys2026-02-282-6/+1
|
* tb dump scriptAdam Soltys2026-02-251-1/+1
|
* tb dump scriptsAdam Soltys2026-02-242-0/+313
|
* microsatsAdam Soltys2026-02-062-33/+70
|
* tigerbeetleAdam Soltys2026-02-061-0/+165
|
* tech debt jubileeAdam Soltys2023-01-083-101/+0
|
* prettierAdam Soltys2022-09-062-28/+42
|
* es6 migrationAdam Soltys2022-09-022-39/+2
|
* update uuid, refactor sync functionAdam Soltys2021-10-271-6/+0
|
* fix case for tableRan Guin2021-08-301-2/+1
|
* update search condition generatorRan Guin2021-07-291-5/+9
|
* add apiParse for generating common search conditionsRan Guin2021-07-281-0/+42
|
* Purge script to wipe coinos-server and coinos-ui clean but without ↵Derrick2021-07-241-0/+31
| | | | | | | destroying local git changes. It is alternative to removing the directories and cloning them again; using this script will accomplish the *same thing but without destroying your local stashes or branches *it will not stash or reset any modified files already tracked in git so those should be stashed separately if any exist for a true clean reset
* deps cleanupAdam Soltys2021-06-091-1/+1
|
* script for checking uploads folderAdam Soltys2020-12-162-0/+54