Preinit txs must now spend an ORB IdoParams NFT (use() at input #1, preserved at output #10) whose per-network category is pinned and whose 121-byte commitment is cross-checked field-by-field against the announced parameters; xToken must be a non-native token. ido.db is version-gated (PRAGMA user_version = 2); legacy IDOs do not parse. Also refresh the embedded IDOPostLaunch contract to the current tokentoken-delegation build (1616 bytes, libriften ido+ttd a9fcfa0); the previous copy predated the recompile and would have failed the preinit output #7 byte-compare. All other embedded contracts verified byte-identical to the libriften templates. Per-network IdoParams NFT categories are still all-zero placeholders; until set, every preinit indexes as is_valid=false. Co-Authored-By: Claude Fable 5 <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