Skip to content

Commit 48cbd2a

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 3cc3365 commit 48cbd2a

File tree

13 files changed

+686
-127
lines changed

13 files changed

+686
-127
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+
}

0 commit comments

Comments
 (0)