Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
✨ Added inscription indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthurdw committed Oct 23, 2023
1 parent 036dd18 commit d5993cf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "ord"]
path = ord
url = [email protected]:XilerNet/ord.git
[submodule "inscription-indexer"]
path = inscription-indexer
url = [email protected]:XilerNet/dns-inscription-indexer.git
2 changes: 1 addition & 1 deletion crates/db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ shared = {path = "../shared"}
entity = {path = "../../entity" }
migration = {path = "../../migration" }
chrono = "0.4.26"
sea-orm = { version = "0.12.2", features = ["sqlx-sqlite", "macros", "runtime-tokio-rustls", "sqlx-postgres"] }
sea-orm = { version = "0.12.4", features = ["sqlx-sqlite", "macros", "runtime-tokio-rustls", "sqlx-postgres"] }
futures = "0.3.28"
log = "0.4.19"
tokio = { version = "1.29.1", features = ["macros"] }
3 changes: 2 additions & 1 deletion crates/db/src/sources/sqlite/repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ use xdns_data::models::{Credentials, Data, Domain, SubDomain, Validity, Validity

use crate::traits::Repository;

// TODO: Get from env
// const FILENAME: &str = "sqlite:/home/arthur/.local/share/xiler/xdns.db?mode=rwc";
const FILENAME: &str = "postgresql://postgres:alderson@localhost:5432/bitcoin";
const FILENAME: &str = "postgresql://postgres:alderson@localhost:5432/accounts";
const DOMAIN_LIFETIME: u64 = 31536000; // 1 year

pub struct SqliteRepository {
Expand Down
1 change: 1 addition & 0 deletions inscription-indexer
Submodule inscription-indexer added at 274a89

0 comments on commit d5993cf

Please sign in to comment.