Commit graph

1 commit

Author SHA1 Message Date
Hossein Zoda
cab3f49c35 feat: index token-token & token-BCH delegation pools with ORB admission
Re-index tokentoken for the delegation design and add a tokenbch
single-UTXO token-to-BCH pool indexer: mempool + block ingestion, reorg
undo, RPC (/tokenbch), and cauldron.db table migrations.

ORB PoolParams admission (src/db/cauldron/orb.rs): a pool creation is
admitted only if its tx carried the live PoolParams NFT and the pool
matches the pinned platformFeeRate + platformFeeNfth (logicHash derived
from the NFTH at admission, not a constant). Per-network params-NFT
categories are centralized in src/db/orbconstants.rs (pool-params
categories placeholder + fail-closed). Store platform_fee_nfth on both
pool tables and the tokenbch fee_paid_in_bch variant.

Cargo.toml: riftenlabs-defi 0.4.5 (published, no longer a local path),
bitcoincash 0.32.4.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-19 18:29:41 +03:00