riftenlabs-indexer/Cargo.toml
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

54 lines
1.8 KiB
TOML

[package]
name = "riftenlabs-indexer"
version = "0.2.0"
edition = "2021"
authors = ["Whiterun LLC <hello@riftenlabs.com>"]
description = "Riften Labs DeFi contract indexer on Bitcoin Cash"
license = "AGPL-3.0-or-later"
homepage = "https://gitlab.com/riftenlabs/riftenlabs-indexer"
repository = "https://gitlab.com/riftenlabs/riftenlabs-indexer"
keywords = ["bitcoincash", "bitcoin", "cauldron", "defi", "cpmm"]
readme = "README.md"
build = "build.rs"
[dependencies]
anyhow = { version = "1.0.94", features = ["backtrace"] }
bitcoincash = "0.32.4"
bitcoin_hashes = { version = "0.14.100", default-features = false } # Same version as used by bitcoincash
electrum-client-netagnostic = { version = "0.21.2", features = ["use-rustls", "use-websocket"] }
hex = { version = "0.4.3", features = ["serde"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.133"
rocket = { version = "0.5.1", features = ["json"] }
sqlx = { version = "0.8", features = ["runtime-tokio", "sqlite"] }
rayon = "1.10.0"
riftenlabs-defi = "0.4.5"
rocket_cors = "0.6.0"
log = "0.4"
stderrlog = "0.6.0"
tokio = { version = "1", features = ["full"] }
rust_decimal = { version = "1.36", features = ["maths"] }
rust_decimal_macros = "1.36"
reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false }
rand = "0.8.5"
configure_me = "0.4.0"
futures = "0.3.32"
serde_with = { version = "3.18.0", features = ["hex"] }
[build-dependencies]
configure_me_codegen = "0.4.8"
[dependencies.malachite]
version = "0.6.1"
default-features = false
features = [ "naturals_and_integers"]
[package.metadata.configure_me]
spec = "internal/config_specification.toml"
[profile.release]
debug = true
[lints.clippy]
# workaround for generated code in depdencendy configure_me
uninlined_format_args = "allow"