riftenlabs-indexer/src
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
..
bcmr Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
cashaddr Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
crc20 Switch to tokio and sqlx 2026-02-18 10:16:51 +01:00
db Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
rpc Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
chain.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
def.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
electrum.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
index.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
main.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
signal.rs Do not serve requests during IBD 2026-02-02 12:08:04 +01:00
timeutil.rs Update copyright headers 2026-01-21 12:37:13 +01:00
utiltest.rs Added support for indexing Moria contracts 2026-03-30 23:52:29 +02:00
utiltoken.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
utiltx.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00