Skip to content

Commit

Permalink
Added 1.42.1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorofeev committed Mar 26, 2023
1 parent 62df408 commit 619ef42
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/kotlin/ee/nx01/tonclient/process/ProcessModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ class ProcessModule(private val tonClient: TonClient) {
return tonClient.request("processing.send_message", params)
}

/**
## send_messages
Sends specified messages to the blockchain.
*/
suspend fun sendMessages(params: ParamsOfSendMessages): ResultOfSendMessages {
return tonClient.request("processing.send_messages", params)
}

/**
## wait_for_transaction
Expand Down
33 changes: 33 additions & 0 deletions src/main/kotlin/ee/nx01/tonclient/process/Types.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,36 @@ enum class ProcessingEventType {
MessageExpired,
TransactionReceived
}

data class ParamsOfSendMessages(
val messages: List<MessageSendingParams>,
val monitorQueue: String? = null
)

data class ResultOfSendMessages(
val messages: List<MessageMonitoringParams>
)

data class MessageSendingParams(
val boc: String,
val waitUntil: Int,
val userData: Any? = null
)

data class ParamsOfMonitorMessages(
val queue: String,
val messages: List<MessageMonitoringParams>
)

data class MessageMonitoringParams(
val message: MonitoredMessage,
val waitUntil: Int,
val userData: Any? = null
)

data class MonitoredMessage(
val type: String,
val boc: String? = null,
val hash: String? = null,
val address: String? = null
)
Binary file modified src/main/resources/natives/osx_64/libtonclientjni.dylib
Binary file not shown.
Binary file modified src/main/resources/natives/osx_arm64/libtonclientjni.dylib
Binary file not shown.

0 comments on commit 619ef42

Please sign in to comment.