- update IDO_POSTLAUNCH_CONTRACT to the recompiled 1627-byte script (libriften cd58dd1): postlaunch.cash reordered the permanent-pool sibling config, moving the all-zero nftOwner to the end. The indexer byte-compares this body against on-chain output#7, so the stale 1669-byte constant would have marked every new IDO invalid. - set CHIPNET_IDO_PARAMS_NFT_CATEGORY (was an all-zero placeholder). - validate the ORB IdoParams NFT commitment version byte: only index when it equals IDO_PARAMS_VERSION (0x00), else push an "incompatible with the indexer" reason and mark the IDO invalid. The other commitment fields are read at v0 offsets, so the parameter comparisons are skipped on a version mismatch to avoid spurious errors. 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