Skip to content

Commit 80e2c74

Browse files
authored
remove dht and libp2p and replace with nostr todos (#423)
remove lettre because it's not wasm compatible
1 parent dd37941 commit 80e2c74

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+135
-5780
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ anyhow = { version = "1.0.95", default-features = false }
2121
thiserror = { version = "2.0.11", default-features = false }
2222
lazy_static = "1.5.0"
2323
uuid = { version = "1", default-features = false, features = ["v4"] }
24-
libp2p = { version = "0.51.4", features = ["async-std", "dcutr", "dns", "gossipsub", "identify", "kad", "macros", "noise", "relay", "request-response", "secp256k1", "tcp", "tokio", "yamux"] }
2524
bitcoin = { version = "0.32.5", default-features = false }
2625
bip39 = { version = "2.1.0", features = ["rand"] }
2726
ecies = { version = "0.2.6", default-features = false, features = ["pure"] }

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,4 @@ ENV ROCKET_ADDRESS=0.0.0.0
6060
# Expose web server port
6161
EXPOSE 8000
6262

63-
# Expose P2P port
64-
EXPOSE 1908
65-
6663
CMD ["/ebills/bitcredit"]

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ RUST_LOG=info cargo run
4343
# configure listening ports and addresses
4444
RUST_LOG=info cargo run -- --http-port 8001 --http-address 0.0.0.0
4545

46-
# Configuration can also be set via environment variables
47-
export P2P_PORT=1909
48-
export P2P_ADDRESS=0.0.0.0
49-
5046
# Run with embedded database feature, data stored in data/surreal
5147
cargo run --features embedded-db -- --surreal-db-connection rocksdb://data/surreal
5248
```

crates/bcr-ebill-api/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ borsh.workspace = true
1111
borsh-derive.workspace = true
1212
chrono.workspace = true
1313
tokio.workspace = true
14-
libp2p.workspace = true
1514
async-trait.workspace = true
1615
serde_json.workspace = true
1716
serde.workspace = true
@@ -24,7 +23,6 @@ bitcoin.workspace = true
2423
nostr-sdk.workspace = true
2524
futures.workspace = true
2625
reqwest = { version = "0.12.12", default-features = false, features = ["rustls-tls", "json"] }
27-
lettre = { version = "0.11.12", default-features = false, features = ["builder", "smtp-transport", "tokio1-rustls-tls"] }
2826
rust_decimal = { version = "1.36.0", default-features = false }
2927
infer = { version = "0.19.0", default-features = false }
3028
bcr-ebill-core = { path = "../bcr-ebill-core"}

crates/bcr-ebill-api/src/constants.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
// General
2-
pub const BILLS_PREFIX: &str = "BILLS";
3-
pub const BILL_PREFIX: &str = "BILL";
4-
pub const BILL_ATTACHMENT_PREFIX: &str = "BILLATT";
5-
pub const KEY_PREFIX: &str = "KEY";
6-
pub const COMPANIES_PREFIX: &str = "COMPANIES";
7-
pub const COMPANY_PREFIX: &str = "COMPANY";
8-
pub const COMPANY_KEY_PREFIX: &str = "COMPANYKEY";
9-
pub const COMPANY_CHAIN_PREFIX: &str = "COMPANYCHAIN";
10-
pub const COMPANY_LOGO_PREFIX: &str = "COMPANYLOGO";
11-
pub const COMPANY_PROOF_PREFIX: &str = "COMPANYPROOF";
12-
131
// Currency
142
pub const SAT_TO_BTC_RATE: i64 = 100_000_000;
153

0 commit comments

Comments
 (0)