2024-04-24 18:44:52 -07:00
|
|
|
[package]
|
|
|
|
|
name = "neptune-explorer"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
edition = "2021"
|
2025-10-09 18:32:51 +02:00
|
|
|
default-run = "neptune-explorer"
|
2024-04-24 18:44:52 -07:00
|
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
2025-10-09 18:32:51 +02:00
|
|
|
[[bin]]
|
|
|
|
|
name = "high_rate_attack"
|
|
|
|
|
path = "src/bin/high_rate_attack.rs"
|
|
|
|
|
required-features = ["attacks"]
|
|
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
|
name = "scraper"
|
|
|
|
|
path = "src/bin/scraper.rs"
|
|
|
|
|
required-features = ["attacks"]
|
|
|
|
|
|
2024-04-24 18:44:52 -07:00
|
|
|
[dependencies]
|
2024-11-23 00:47:36 +00:00
|
|
|
axum = { version = "0.7.9", features = ["macros"] }
|
2025-10-27 06:53:30 +01:00
|
|
|
serde = { version = "1.0.228", features = ["derive"] }
|
|
|
|
|
serde_json = "1.0.145"
|
|
|
|
|
tokio = { version = "1.48.0", features = ["full", "tracing"] }
|
2025-01-22 21:00:11 -08:00
|
|
|
tracing = "0.1"
|
|
|
|
|
tracing-subscriber = "0.3"
|
2024-11-23 00:47:36 +00:00
|
|
|
|
2025-10-02 15:56:49 +02:00
|
|
|
neptune-cash = "0.4.0"
|
2024-04-24 18:44:52 -07:00
|
|
|
tarpc = { version = "^0.34", features = [
|
|
|
|
|
"tokio1",
|
|
|
|
|
"serde-transport",
|
|
|
|
|
"serde-transport-json",
|
|
|
|
|
"tcp",
|
|
|
|
|
] }
|
2025-10-27 06:53:30 +01:00
|
|
|
clap = "4.5.50"
|
|
|
|
|
thiserror = "1.0.69"
|
|
|
|
|
boilerplate = { version = "1.0.1" }
|
2024-05-09 08:56:59 -07:00
|
|
|
html-escaper = "0.2.0"
|
|
|
|
|
tower-http = { version = "0.5.2", features = ["fs"] }
|
2025-10-27 06:53:30 +01:00
|
|
|
readonly = "0.2.13"
|
|
|
|
|
url = "2.5.7"
|
|
|
|
|
lettre = { version = "0.11.19", features = ["tokio1-native-tls"] }
|
|
|
|
|
chrono = "0.4.42"
|
2024-04-24 18:44:52 -07:00
|
|
|
|
2024-05-22 18:34:47 -07:00
|
|
|
# only should be used inside main.rs, for the binary.
|
2025-10-27 06:53:30 +01:00
|
|
|
anyhow = "1.0.100"
|
2024-05-27 17:24:01 -07:00
|
|
|
arc-swap = "1.7.1"
|
2024-12-31 09:58:40 -08:00
|
|
|
derive_more = { version = "1.0.0", features = ["display"] }
|
2024-04-24 18:44:52 -07:00
|
|
|
|
2025-01-22 21:00:11 -08:00
|
|
|
# not a direct dep. workaround for weird "could not resolve" cargo error
|
2025-10-27 06:53:30 +01:00
|
|
|
indexmap = "2.12.0"
|
2025-01-22 21:00:11 -08:00
|
|
|
|
2025-10-02 15:56:49 +02:00
|
|
|
blake3 = { version = "1.8.2", optional = true }
|
|
|
|
|
rand = { version = "0.9.2", optional = true }
|
2025-10-27 06:53:30 +01:00
|
|
|
reqwest = { version = "0.12.24", optional = true }
|
2025-10-09 18:32:51 +02:00
|
|
|
log = {version = "0.4.28", optional = true}
|
|
|
|
|
env_logger = {version = "0.11.8", optional = true}
|
2025-10-27 06:53:30 +01:00
|
|
|
regex = {version = "1.12.2", optional = true }
|
|
|
|
|
futures = {version = "0.3.31", optional = true }
|
feat: Add Announcement viewer
Every transaction can have zero or more announcements, which are essentially
messages that must be included across all future mergers and updates.
Announcements are typically used for transmitting information related to
receiving UTXOs, encrypted. However, a new use case is that of *transparent
transaction info*, which is an announcement containing the UTXOs and the
commitment randomnesses needed to reproduce the transaction's inputs and
outputs. With such a transparent transaction info announcement, third parties
can transparently audit transactions.
This commit adds a page for viewing announcements, and if the announcement can
be parsed as a transparent transaction info type announcement then it is
rendered as such, complete with native currency amounts and linkable UTXOs
(where possible).
The path for accessing announcements is any of
- `/announcement/digest/<hex-string>/<index>`
- `/announcement/tip/<index>`
- `/announcement/genesis/<index>`
- `/announcement/height/<height>/<index>`
- `/announcement/height_or_digest/<height-or-diges>/index/<index>`.
The last bullet point exists to support the quick lookup functionality, which is
also new. A `AnnouncementSelector` has display and from-string methods relating
these path formats to the relevant object. A suite of (prop)tests verifies
parsing.
Also, this commit enables mocking, which is useful when the neptune-core node
the explorer is connected to is outdated, unsynced, or for whatever reason does
not serve the desired data. The RPC client call is intercepted, and if it fails
and mocking is enabled, an imagined (pseudorandom) resource of the requested
type is returned. To enable mocking, compile with the "mock" feature flag and
set the "MOCK" environment variable.
2025-08-12 18:21:27 +02:00
|
|
|
|
|
|
|
|
#[dev-dependencies]
|
|
|
|
|
test-strategy = "0.4.3"
|
2025-10-27 06:53:30 +01:00
|
|
|
proptest = "1.9.0"
|
|
|
|
|
arbitrary = "1.4.2"
|
feat: Add Announcement viewer
Every transaction can have zero or more announcements, which are essentially
messages that must be included across all future mergers and updates.
Announcements are typically used for transmitting information related to
receiving UTXOs, encrypted. However, a new use case is that of *transparent
transaction info*, which is an announcement containing the UTXOs and the
commitment randomnesses needed to reproduce the transaction's inputs and
outputs. With such a transparent transaction info announcement, third parties
can transparently audit transactions.
This commit adds a page for viewing announcements, and if the announcement can
be parsed as a transparent transaction info type announcement then it is
rendered as such, complete with native currency amounts and linkable UTXOs
(where possible).
The path for accessing announcements is any of
- `/announcement/digest/<hex-string>/<index>`
- `/announcement/tip/<index>`
- `/announcement/genesis/<index>`
- `/announcement/height/<height>/<index>`
- `/announcement/height_or_digest/<height-or-diges>/index/<index>`.
The last bullet point exists to support the quick lookup functionality, which is
also new. A `AnnouncementSelector` has display and from-string methods relating
these path formats to the relevant object. A suite of (prop)tests verifies
parsing.
Also, this commit enables mocking, which is useful when the neptune-core node
the explorer is connected to is outdated, unsynced, or for whatever reason does
not serve the desired data. The RPC client call is intercepted, and if it fails
and mocking is enabled, an imagined (pseudorandom) resource of the requested
type is returned. To enable mocking, compile with the "mock" feature flag and
set the "MOCK" environment variable.
2025-08-12 18:21:27 +02:00
|
|
|
proptest-arbitrary-interop = "0.1.0"
|
|
|
|
|
|
|
|
|
|
[patch.crates-io]
|
2025-10-27 06:53:30 +01:00
|
|
|
neptune-cash = { git = "https://github.com/Neptune-Crypto/neptune-core.git", rev = "71f471a526a13ddd41ab4400e1a873471d03ede6" }
|
feat: Add Announcement viewer
Every transaction can have zero or more announcements, which are essentially
messages that must be included across all future mergers and updates.
Announcements are typically used for transmitting information related to
receiving UTXOs, encrypted. However, a new use case is that of *transparent
transaction info*, which is an announcement containing the UTXOs and the
commitment randomnesses needed to reproduce the transaction's inputs and
outputs. With such a transparent transaction info announcement, third parties
can transparently audit transactions.
This commit adds a page for viewing announcements, and if the announcement can
be parsed as a transparent transaction info type announcement then it is
rendered as such, complete with native currency amounts and linkable UTXOs
(where possible).
The path for accessing announcements is any of
- `/announcement/digest/<hex-string>/<index>`
- `/announcement/tip/<index>`
- `/announcement/genesis/<index>`
- `/announcement/height/<height>/<index>`
- `/announcement/height_or_digest/<height-or-diges>/index/<index>`.
The last bullet point exists to support the quick lookup functionality, which is
also new. A `AnnouncementSelector` has display and from-string methods relating
these path formats to the relevant object. A suite of (prop)tests verifies
parsing.
Also, this commit enables mocking, which is useful when the neptune-core node
the explorer is connected to is outdated, unsynced, or for whatever reason does
not serve the desired data. The RPC client call is intercepted, and if it fails
and mocking is enabled, an imagined (pseudorandom) resource of the requested
type is returned. To enable mocking, compile with the "mock" feature flag and
set the "MOCK" environment variable.
2025-08-12 18:21:27 +02:00
|
|
|
|
|
|
|
|
[features]
|
2025-10-02 15:56:49 +02:00
|
|
|
mock = ["dep:blake3", "dep:rand"]
|
2025-10-27 06:53:30 +01:00
|
|
|
attacks = ["reqwest", "log", "env_logger", "regex", "dep:rand", "futures"]
|