Skip to content

Commit

Permalink
temp 1
Browse files Browse the repository at this point in the history
  • Loading branch information
thunderbiscuit committed Jul 23, 2024
1 parent 3454331 commit e906e4f
Show file tree
Hide file tree
Showing 15 changed files with 528 additions and 24 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ xcuserdata
.idea/
.editorconfig
bdk.kt
kyotodata/

# Swift related
/.build
Expand All @@ -35,4 +36,4 @@ bdk.swift
Info.plist

# Python related
__pycache__
__pycache__
2 changes: 1 addition & 1 deletion bdk-android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ org.gradle.jvmargs=-Xmx1536m
android.useAndroidX=true
android.enableJetifier=true
kotlin.code.style=official
libraryVersion=1.0.0-alpha.12-SNAPSHOT
libraryVersion=1.0.0-alpha.13-KYOTO
2 changes: 2 additions & 0 deletions bdk-android/lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,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 e906e4f

Please sign in to comment.