Skip to content

Commit e906e4f

Browse files
temp 1
1 parent 3454331 commit e906e4f

File tree

15 files changed

+528
-24
lines changed

15 files changed

+528
-24
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ xcuserdata
1515
.idea/
1616
.editorconfig
1717
bdk.kt
18+
kyotodata/
1819

1920
# Swift related
2021
/.build
@@ -35,4 +36,4 @@ bdk.swift
3536
Info.plist
3637

3738
# Python related
38-
__pycache__
39+
__pycache__

bdk-android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ org.gradle.jvmargs=-Xmx1536m
22
android.useAndroidX=true
33
android.enableJetifier=true
44
kotlin.code.style=official
5-
libraryVersion=1.0.0-alpha.12-SNAPSHOT
5+
libraryVersion=1.0.0-alpha.13-KYOTO

bdk-android/lib/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@ java {
5656
dependencies {
5757
implementation("net.java.dev.jna:jna:5.14.0@aar")
5858
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7")
59+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
5960
implementation("androidx.appcompat:appcompat:1.4.0")
6061
implementation("androidx.core:core-ktx:1.7.0")
6162
api("org.slf4j:slf4j-api:1.7.30")
6263

6364
androidTestImplementation("com.github.tony19:logback-android:2.0.0")
65+
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
6466
androidTestImplementation("androidx.test.ext:junit:1.1.3")
6567
androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0")
6668
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)