Skip to content

Commit 44b0dea

Browse files
thunderbiscuitrustaceanrob
authored andcommitted
feat: add compact block filter client
temp 2 temp 3 temp 4 pass wallet to builder remove async builder make ip a type, bump bdk-kyoto, add connections add more configurations fix datadir builder bump kyoto add trait bound for logger update logger update bdk-ffi
1 parent 6cfcf23 commit 44b0dea

File tree

13 files changed

+510
-2
lines changed

13 files changed

+510
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ local.properties
77
*.log
88
*.dylib
99
*.so
10+
*.db
11+
*/data/signet
1012
.DS_Store
1113
testdb
1214
xcuserdata

bdk-android/lib/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ java {
5252
dependencies {
5353
implementation("net.java.dev.jna:jna:5.14.0@aar")
5454
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7")
55+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
5556
implementation("androidx.appcompat:appcompat:1.4.0")
5657
implementation("androidx.core:core-ktx:1.7.0")
5758
api("org.slf4j:slf4j-api:1.7.30")
5859

5960
androidTestImplementation("com.github.tony19:logback-android:2.0.0")
61+
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
6062
androidTestImplementation("androidx.test.ext:junit:1.1.3")
6163
androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0")
6264
androidTestImplementation("org.jetbrains.kotlin:kotlin-test:1.6.10")
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package org.bitcoindevkit
2+
3+
import org.junit.Test
4+
import androidx.test.ext.junit.runners.AndroidJUnit4
5+
import kotlinx.coroutines.runBlocking
6+
import org.junit.runner.RunWith
7+
8+
@RunWith(AndroidJUnit4::class)
9+
class KyotoTest {
10+
private val descriptor: Descriptor = Descriptor("wpkh(tprv8ZgxMBicQKsPf2qfrEygW6fdYseJDDrVnDv26PH5BHdvSuG6ecCbHqLVof9yZcMoM31z9ur3tTYbSnr1WBqbGX97CbXcmp5H6qeMpyvx35B/84h/1h/0h/0/*)", Network.SIGNET)
11+
private val changeDescriptor: Descriptor = Descriptor("wpkh(tprv8ZgxMBicQKsPf2qfrEygW6fdYseJDDrVnDv26PH5BHdvSuG6ecCbHqLVof9yZcMoM31z9ur3tTYbSnr1WBqbGX97CbXcmp5H6qeMpyvx35B/84h/1h/0h/1/*)", Network.SIGNET)
12+
13+
@Test
14+
fun testKyoto() {
15+
// val wallet: Wallet = Wallet(descriptor, changeDescriptor, Network.SIGNET)
16+
runBlocking {
17+
println("Running test Kyoto")
18+
val (node, client) = buildKyotoClient()
19+
runNode(node)
20+
client.update()
21+
println("Done running test Kyoto")
22+
}
23+
}
24+
}

bdk-ffi/Cargo.lock

Lines changed: 157 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bdk-ffi/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ bdk_wallet = { version = "=1.0.0-beta.5", features = ["all-keys", "keys-bip39",
2222
bdk_core = { version = "0.3.0" }
2323
bdk_esplora = { version = "0.19.0", default-features = false, features = ["std", "blocking", "blocking-https-rustls"] }
2424
bdk_electrum = { version = "0.19.0", default-features = false, features = ["use-rustls-ring"] }
25+
bdk_kyoto = { version = "0.1.0", default-features = false, features = ["wallet", "rusqlite"] }
2526
bdk_bitcoind_rpc = { version = "0.16.0" }
2627
bitcoin-ffi = { git = "https://github.com/bitcoindevkit/bitcoin-ffi", tag = "v0.1.2" }
2728

2829
uniffi = { version = "=0.28.0" }
30+
tokio = { version = "1", default-features = false, features = [ "rt-multi-thread", "sync" ] }
2931
thiserror = "1.0.58"
3032

3133
[build-dependencies]

0 commit comments

Comments
 (0)