riftenlabs-indexer/src/rpc
Dagur Valberg Johannsson 1614b84674 Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing
Migrate off the deprecated bitcoincash 0.29 API (Amount/Version types,
FromHex -> FromStr/parse, non-exhaustive Network) across the indexer and
tests.

Add indexing of native token-A <-> token-B (TokenToken) AMM pools:

- tokentoken_pool / tokentoken_pool_history_entry tables in cauldron.db,
  created via an always-run idempotent migration (no DB_VERSION bump, so
  existing databases upgrade in place)
- block-path indexing sharing the cauldron write transaction and reorg
  undo, with creation/swap/withdrawal state tracking and reserve deltas
- mempool indexing: electrum mempool.get filters on the tokentoken
  contract code (spends) and the CONJURE op_return hint (creations);
  first_seen_timestamp reconciles with mtp on confirmation
- RPC endpoints /tokentoken/pool/active (pair lookup, order-insensitive)
  and /tokentoken/tokens

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 16:18:35 +02:00
..
apy dormant-pools-report-inflated-apy 2026-03-19 08:55:51 +00:00
bcmr.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
candlesticks.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
contract.rs Switch to tokio and sqlx 2026-02-18 10:16:51 +01:00
err.rs Switch to tokio and sqlx 2026-02-18 10:16:51 +01:00
health.rs Add /health endpoint 2026-02-10 15:36:21 +01:00
mod.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
moria.rs Added support for indexing Moria contracts 2026-03-30 23:52:29 +02:00
oracle.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
pool.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
price.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
response.rs Update copyright headers 2026-01-21 12:37:13 +01:00
tokens.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
tokentoken.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
tvl.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
tx.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
user.rs Document improvements 2026-02-24 11:39:20 +01:00
volume.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00