From 96e3b5c86527a679c8f27e7f070ec027e22174d0 Mon Sep 17 00:00:00 2001 From: Maxim Dorofeev Date: Tue, 7 Jun 2022 21:51:47 +0300 Subject: [PATCH] Update to 1.34.2 --- src/main/kotlin/ee/nx01/tonclient/TonClient.kt | 5 +++++ src/main/kotlin/ee/nx01/tonclient/tvm/Types.kt | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/main/kotlin/ee/nx01/tonclient/TonClient.kt b/src/main/kotlin/ee/nx01/tonclient/TonClient.kt index b509220..0a830fc 100644 --- a/src/main/kotlin/ee/nx01/tonclient/TonClient.kt +++ b/src/main/kotlin/ee/nx01/tonclient/TonClient.kt @@ -73,6 +73,11 @@ class TonClient(val config: TonClientConfig = TonClientConfig()) { return JsonUtils.read>(response)["version"] ?: error("Incorrect response") } + suspend fun config() : Map { + val response = requestString("client.config", "") + return JsonUtils.read(response) + } + suspend fun buildInfo(): Any { val response = requestString("client.build_info", "") return JsonUtils.read>(response)["build_number"] ?: error("Incorrect response") diff --git a/src/main/kotlin/ee/nx01/tonclient/tvm/Types.kt b/src/main/kotlin/ee/nx01/tonclient/tvm/Types.kt index 381c790..28e9f91 100644 --- a/src/main/kotlin/ee/nx01/tonclient/tvm/Types.kt +++ b/src/main/kotlin/ee/nx01/tonclient/tvm/Types.kt @@ -49,6 +49,9 @@ data class TransactionFees( val outMsgsFwdFee: Long, val totalAccountFees: Long, val totalOutput: Long, + val extInMsgFee: Long, + val totalFwdFees: Long, + val accountFees: Long ) data class DecodedOutput(