Skip to content

Commit

Permalink
feat: add compact block filter client
Browse files Browse the repository at this point in the history
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
  • Loading branch information
thunderbiscuit authored and rustaceanrob committed Oct 10, 2024
1 parent 3cc3365 commit bf75577
Show file tree
Hide file tree
Showing 13 changed files with 679 additions and 127 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ local.properties
*.log
*.dylib
*.so
*.db
*/data/signet
.DS_Store
testdb
xcuserdata
Expand Down
2 changes: 2 additions & 0 deletions bdk-android/lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ java {
dependencies {
implementation("net.java.dev.jna:jna:5.14.0@aar")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
implementation("androidx.appcompat:appcompat:1.4.0")
implementation("androidx.core:core-ktx:1.7.0")
api("org.slf4j:slf4j-api:1.7.30")

androidTestImplementation("com.github.tony19:logback-android:2.0.0")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
androidTestImplementation("androidx.test.ext:junit:1.1.3")
androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0")
androidTestImplementation("org.jetbrains.kotlin:kotlin-test:1.6.10")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package org.bitcoindevkit

import org.junit.Test
import androidx.test.ext.junit.runners.AndroidJUnit4
import kotlinx.coroutines.runBlocking
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4::class)
class KyotoTest {
private val descriptor: Descriptor = Descriptor("wpkh(tprv8ZgxMBicQKsPf2qfrEygW6fdYseJDDrVnDv26PH5BHdvSuG6ecCbHqLVof9yZcMoM31z9ur3tTYbSnr1WBqbGX97CbXcmp5H6qeMpyvx35B/84h/1h/0h/0/*)", Network.SIGNET)
private val changeDescriptor: Descriptor = Descriptor("wpkh(tprv8ZgxMBicQKsPf2qfrEygW6fdYseJDDrVnDv26PH5BHdvSuG6ecCbHqLVof9yZcMoM31z9ur3tTYbSnr1WBqbGX97CbXcmp5H6qeMpyvx35B/84h/1h/0h/1/*)", Network.SIGNET)

@Test
fun testKyoto() {
// val wallet: Wallet = Wallet(descriptor, changeDescriptor, Network.SIGNET)
runBlocking {
println("Running test Kyoto")
val (node, client) = buildKyotoClient()
runNode(node)
client.update()
println("Done running test Kyoto")
}
}
}
Loading

0 comments on commit bf75577

Please sign in to comment.