Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@
# endpoint (QuickNode / Ankr / Blast / your own node) for production use.
BNB_WS_URL=wss://bsc-rpc.publicnode.com
BNB_HTTP_URL=https://bsc-rpc.publicnode.com

# Hot-wallet signer (hex, 0x-prefixed). Optional.
# Omit to run the bot in scan-only mode: no tx signing, no simulation,
# no opportunities enqueued for broadcast. Safe for dry runs and CI.
# When set, the CLI will sign, simulate via eth_call, and only then
# enqueue — see `CLAUDE.md` safety invariants.
#CHARON_SIGNER_KEY=0x...
16 changes: 16 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] }
anyhow = "1"
thiserror = "2"

# Secret-holding wrapper (zeroes memory on drop, redacts from Debug)
secrecy = { version = "0.10", features = ["serde"] }

# Async trait objects
async-trait = "0.1"

Expand Down
5 changes: 5 additions & 0 deletions config/default.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ scan_interval_ms = 1000
# hot_scan_blocks = 1
# warm_scan_blocks = 10
# cold_scan_blocks = 100
# Hot-wallet signer private key (hex, optional). Sourced from the
# `${CHARON_SIGNER_KEY}` env var — empty/unset puts the bot in
# scan-only mode: no tx signing, no simulation, nothing gets enqueued.
# Never commit a literal key here; see `.env.example` for the env var.
signer_key = "${CHARON_SIGNER_KEY:-}"

# ── Chains ────────────────────────────────────────────────────────────────
[chain.bnb]
Expand Down
5 changes: 5 additions & 0 deletions crates/charon-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ path = "src/main.rs"

[dependencies]
charon-core = { workspace = true }
charon-executor = { workspace = true }
charon-flashloan = { workspace = true }
charon-protocols = { workspace = true }
charon-scanner = { workspace = true }
alloy = { workspace = true }
Expand All @@ -20,6 +22,9 @@ anyhow = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
dotenvy = { workspace = true }
secrecy = { workspace = true }
async-trait = { workspace = true }
futures-util = { workspace = true }
metrics = { workspace = true }

[lints]
Expand Down
Loading