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> |
||
|---|---|---|
| .vscode | ||
| contrib | ||
| internal | ||
| linters | ||
| src | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
Riftenlabs Indexer
RiftenLabs indexer is for indexing DeFi contracts by Riften Labs. It allows for querying historical on-chain data on Bitcoin Cash.
Contributing
All contributors are required to sign a Contributor License Agreement (CLA) before their contributions can be merged into the project.
Contributions are generally welcome. If you intend to make larger changes please discuss them in an issue before MRing them to avoid duplicate work and architectural mismatches.
Installing Rust
Rust can be installed using your package manager of choice or rustup.rs. The former way is considered more secure since it typically doesn't involve trust in the CA system. But you should be aware that the version of Rust shipped by your distribution might be out of date.
Building
The library can be built and tested using cargo:
git clone https://gitlab.com/riftenlabs/riftenlabs-indexer.git
cd riftenlabs-indexer
cargo build
You can run tests with:
cargo test