Skip to content

Commit

Permalink
Update to TON-SDK 1.35.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorofeev committed Jul 5, 2022
1 parent cfbe007 commit b873691
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/main/kotlin/ee/nx01/tonclient/abi/AbiModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,11 @@ class AbiModule(private val tonClient: TonClient) {
suspend fun encodeBoc(params: ParamsOfAbiEncodeBoc): ResultOfAbiEncodeBoc {
return tonClient.request("abi.encode_boc", params)
}

/**
* Calculates contract function ID by contract ABI
*/
suspend fun calcFunctionId(params: ParamsOfCalcFunctionId): ResultOfCalcFunctionId {
return tonClient.request("abi.calc_function_id", params)
}
}
10 changes: 10 additions & 0 deletions src/main/kotlin/ee/nx01/tonclient/abi/Types.kt
Original file line number Diff line number Diff line change
Expand Up @@ -256,3 +256,13 @@ data class AbiParam(
val type: String,
val components: List<AbiParam>? = null
)

data class ParamsOfCalcFunctionId(
val abi: Abi,
val functionName: String,
val output: Boolean? = null
)

data class ResultOfCalcFunctionId(
val function_id: Long
)
3 changes: 2 additions & 1 deletion src/main/kotlin/ee/nx01/tonclient/tvm/Types.kt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ data class ExecutionOptions(
val blockchainConfig: String? = null,
val blockTime: Long? = null,
val blockLt: BigInteger? = null,
val transactionLt: BigInteger? = null
val transactionLt: BigInteger? = null,
val chksigAlwaysSucceed: Boolean? = null
)

/**
Expand Down
Binary file modified src/main/resources/natives/osx_arm64/libtonclientjni.dylib
Binary file not shown.

0 comments on commit b873691

Please sign in to comment.