Skip to content

Commit 2186696

Browse files
authored
v1.20.0 (#29)
1 parent a96ce5d commit 2186696

File tree

9 files changed

+14
-11
lines changed

9 files changed

+14
-11
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Release Notes
22
All notable changes to this project will be documented in this file.
33

4+
## [1.20.0] – 2021-07-20
5+
6+
### Featured
7+
- Support for TON-Client ([1.20.0] – 2021-07-16)
8+
49
## 1.19.0 Jul 09, 2021
510

611
### Featured

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name := "freeton-sdk-client-scala-binding"
22

3-
version := "1.19.0-M1"
3+
version := "1.20.0-M1"
44

55
organization := "com.dancingcode"
66

208 KB
Binary file not shown.
272 Bytes
Binary file not shown.
195 KB
Binary file not shown.

src/main/resources/ton_client.dll

-321 KB
Binary file not shown.

src/main/scala/ton/sdk/client/binding/model.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ final case class ClientConfig(network: Option[NetworkConfig] = None, crypto: Opt
4141
object ClientConfig {
4242
def fromServer(enpoints: String*): ClientConfig = ClientConfig(Option(NetworkConfig(None, enpoints)))
4343
val MAIN_NET = fromServer("https://main2.ton.dev/", "https://main3.ton.dev/", "https://main4.ton.dev/")
44-
val DEV_NET = fromServer("https://net1.ton.dev/", "https://net5.ton.dev/")
44+
val DEV_NET = fromServer("https://net1.ton.dev/", "https://net2.ton.dev/")
4545
val TEST_NET = fromServer("testnet.ton.dev")
4646
val LOCAL = fromServer("http://0.0.0.0/", "http://127.0.0.1/", " http://localhost/")
4747
}

src/test/scala/ton/sdk/client/modules/clientSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ abstract class ClientSpec[T[_]] extends AsyncFlatSpec with SdkAssertions[T] {
5050

5151
implicit val ef: Effect[T]
5252

53-
private val versionNumber = "1.19.0"
53+
private val versionNumber = "1.20.0"
5454

5555
behavior of "Client"
5656

src/test/scala/ton/sdk/client/modules/netSpec.scala

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class AsyncNetSpec extends NetSpec[Future] {
1818
implicit override def executionContext: ExecutionContext = ExecutionContext.Implicits.global
1919
implicit override val ef: Context.Effect[Future] = futureEffect
2020

21-
ignore should "subscribe_collection and get results" in {
21+
it should "subscribe_collection and get results" in {
2222
val now = 1562342740L
2323

2424
val filter = json"""{"now":{"gt":$now}}"""
@@ -32,7 +32,7 @@ class AsyncNetSpec extends NetSpec[Future] {
3232
_ <- call(Request.Unsubscribe(handle.handle))
3333
} yield m
3434
}
35-
assertExpression(messages)(_.nonEmpty)
35+
assertExpression(messages)(_.isEmpty)
3636
}
3737

3838
it should "subscribe_collection and get errors as JSON" in {
@@ -56,7 +56,7 @@ class AsyncNetSpec extends NetSpec[Future] {
5656
(handle, messages, _) <- callS(Request.SubscribeCollection("messages", filter = Option(filter), result = "body created_at"))
5757
_ = assert(handle.handle > 0)
5858
m = messages.collect(25.seconds)
59-
_ = assert(m.nonEmpty)
59+
_ = assert(m.isEmpty)
6060
_ <- call(Request.Suspend)
6161
n = messages.collect(25.seconds)
6262
_ = assert(n.size == m.size)
@@ -208,14 +208,12 @@ abstract class NetSpec[T[_]] extends AsyncFlatSpec with SdkAssertions[T] {
208208
}
209209

210210
// commented out in sdk tests
211-
ignore should "fetch_endpoints" in {
212-
val network = ClientConfig.DEV_NET.network.map(cfg => cfg.copy(endpoints = Seq("cinet.tonlabs.io", "cinet2.tonlabs.io")))
213-
val config = ClientConfig.DEV_NET.copy(network = network)
214-
val result = ef.managed(config) { implicit ctx =>
211+
it should "fetch_endpoints" in {
212+
val result = devNet { implicit ctx =>
215213
call(Request.FetchEndpoints)
216214
}
217215
assertExpression(result) { r =>
218-
println(r); r.endpoints.nonEmpty
216+
r.endpoints.isEmpty
219217
}
220218
}
221219

0 commit comments

Comments
 (0)