diff --git a/.gitmodules b/.gitmodules index eba7731..f44d171 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "ord"] path = ord url = git@github.com:XilerNet/ord.git +[submodule "inscription-indexer"] + path = inscription-indexer + url = git@github.com:XilerNet/dns-inscription-indexer.git diff --git a/crates/db/Cargo.toml b/crates/db/Cargo.toml index 6d2a673..35482c8 100644 --- a/crates/db/Cargo.toml +++ b/crates/db/Cargo.toml @@ -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"] } diff --git a/crates/db/src/sources/sqlite/repository.rs b/crates/db/src/sources/sqlite/repository.rs index fc6f233..7d939b0 100644 --- a/crates/db/src/sources/sqlite/repository.rs +++ b/crates/db/src/sources/sqlite/repository.rs @@ -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 { diff --git a/inscription-indexer b/inscription-indexer new file mode 160000 index 0000000..274a89b --- /dev/null +++ b/inscription-indexer @@ -0,0 +1 @@ +Subproject commit 274a89b5f9466b75dce9799f7c48aab1a8d21990