diff --git a/README.md b/README.md index d59ca3a..baacee2 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,14 @@ Maven: org.stellar wallet-sdk - 0.9.2 + 0.10.0 ``` Gradle: ```gradle -implementation("org.stellar:wallet-sdk:0.9.2") +implementation("org.stellar:wallet-sdk:0.10.0") ``` ## Introduction diff --git a/build.gradle.kts b/build.gradle.kts index c766ae3..4311183 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -16,7 +16,7 @@ val jvmVersion = JavaVersion.VERSION_1_8 allprojects { group = "org.stellar.wallet-sdk" - version = "0.9.2" + version = "0.10.0" } subprojects { diff --git a/examples/SEP-24/src/main/kotlin/org/stellar/example/Main.kt b/examples/SEP-24/src/main/kotlin/org/stellar/example/Main.kt index d13beff..edd9f00 100644 --- a/examples/SEP-24/src/main/kotlin/org/stellar/example/Main.kt +++ b/examples/SEP-24/src/main/kotlin/org/stellar/example/Main.kt @@ -111,7 +111,8 @@ suspend fun main() { // Send transaction with transfer val anchorTransaction = (statusChange.transaction as WithdrawalTransaction) - val transfer = stellar.transaction(keypair).transferWithdrawalTransaction(anchorTransaction, asset).build() + val transfer = + stellar.transaction(keypair).transferWithdrawalTransaction(anchorTransaction, asset).build() transfer.sign(keypair) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index b6ff883..a311287 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,7 +3,7 @@ coroutines = "1.6.4" google-gson = "2.8.9" hoplite = "2.7.0" -java-stellar-sdk = "0.34.2" +java-stellar-sdk = "0.40.0" dokka = "1.6.10" kotlin = "1.8.20" kotlinx-json = "1.5.0" diff --git a/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/auth/WalletSigner.kt b/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/auth/WalletSigner.kt index 49ce043..049977c 100644 --- a/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/auth/WalletSigner.kt +++ b/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/auth/WalletSigner.kt @@ -51,7 +51,7 @@ interface WalletSigner { * @constructor Create empty Json http signer * @property url url to which requests should be made * @property requestTransformer optional transformer of the default request. Can be used for - * authentication purposes, etc. + * authentication purposes, etc. */ class DomainSigner(val url: String, val requestTransformer: HttpRequestBuilder.() -> Unit = {}) : DefaultSigner() { diff --git a/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/horizon/Stellar.kt b/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/horizon/Stellar.kt index 753746e..a603e5f 100644 --- a/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/horizon/Stellar.kt +++ b/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/horizon/Stellar.kt @@ -1,6 +1,7 @@ package org.stellar.walletsdk.horizon import java.time.Duration +import kotlin.math.min import mu.KotlinLogging import org.stellar.sdk.* import org.stellar.sdk.responses.SubmitTransactionTimeoutResponseException @@ -12,7 +13,6 @@ import org.stellar.walletsdk.exception.ValidationException import org.stellar.walletsdk.extension.accountOrNull import org.stellar.walletsdk.horizon.transaction.TransactionBuilder import org.stellar.walletsdk.util.toTimeBounds -import kotlin.math.min private val log = KotlinLogging.logger {}