Skip to content

Commit

Permalink
Update to 1.34.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorofeev committed Jun 7, 2022
1 parent 67946d8 commit 96e3b5c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/kotlin/ee/nx01/tonclient/TonClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ class TonClient(val config: TonClientConfig = TonClientConfig()) {
return JsonUtils.read<Map<String, String>>(response)["version"] ?: error("Incorrect response")
}

suspend fun config() : Map<String, String> {
val response = requestString("client.config", "")
return JsonUtils.read(response)
}

suspend fun buildInfo(): Any {
val response = requestString("client.build_info", "")
return JsonUtils.read<Map<String, Any>>(response)["build_number"] ?: error("Incorrect response")
Expand Down
3 changes: 3 additions & 0 deletions src/main/kotlin/ee/nx01/tonclient/tvm/Types.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 96e3b5c

Please sign in to comment.