Skip to content

Commit

Permalink
Merge pull request #263 from tonlabs/1.1.2-rc
Browse files Browse the repository at this point in the history
1.1.2 rc
  • Loading branch information
g9d authored Nov 16, 2020
2 parents 504f599 + 75da667 commit b9543ca
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 13 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Release Notes
All notable changes to this project will be documented in this file.

## 1.1.2 Nov 15, 2020
### Fixed
- `wasm` feature was not worked.
- `crypto.factorize` doesn't panic on invalid challenge
- `client.get_api_reference` returns proper version
- ABI JSON with explicit function ID is parsed properly

## 1.1.1 Nov 11, 2020
### Fixed
- To be compatible with older rust version change api type derivation with `vec![]`
Expand Down
2 changes: 1 addition & 1 deletion api/derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "api_derive"
version = "1.1.1"
version = "1.1.2"
authors = ["Michael Vlasov <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion api/info/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "api_info"
version = "1.1.1"
version = "1.1.2"
authors = ["Michael Vlasov <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion api/test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "api_test"
version = "1.1.1"
version = "1.1.2"
authors = ["Michael Vlasov <[email protected]>"]
edition = "2018"

Expand Down
4 changes: 2 additions & 2 deletions ton_client/client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ton_client"
version = "1.1.1"
version = "1.1.2"
authors = ["Michael Vlasov"]
edition = "2018"
license = "Apache-2.0"
Expand Down Expand Up @@ -81,4 +81,4 @@ pretty_assertions = "0.6.1"
[features]
default = ["std"]
std = ["tokio/rt-threaded", "tokio/macros", "tokio/sync", "reqwest", "tokio-tungstenite"]
wasm = ["wasm-bindgen", "wasm-bindgen-futures", "js-sys", "web-sys"]
wasm = ["wasm-bindgen", "wasm-bindgen-futures", "js-sys", "web-sys", "rand/wasm-bindgen", "chrono/wasmbind"]
4 changes: 2 additions & 2 deletions ton_client/client/src/abi/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ pub struct AbiFunction {
pub inputs: Vec<AbiParam>,
pub outputs: Vec<AbiParam>,
#[serde(default)]
pub id: Option<u32>,
pub id: Option<String>,
}

#[derive(Serialize, Deserialize, Clone, Debug, ApiType)]
pub struct AbiEvent {
pub name: String,
pub inputs: Vec<AbiParam>,
#[serde(default)]
pub id: Option<u32>,
pub id: Option<String>,
}

#[derive(Serialize, Deserialize, Clone, Debug, ApiType)]
Expand Down
1 change: 1 addition & 0 deletions ton_client/client/src/client/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ fn api_reference() {
crate::client::get_api_reference_api().name
)).unwrap();
assert_ne!(api.api.modules.len(), 0);
assert_eq!(api.api.version, env!("CARGO_PKG_VERSION"));
}
2 changes: 1 addition & 1 deletion ton_client/client/src/crypto/math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub fn factorize(
let mut y = x;

let q = ((rng.next_u64() & 0xF) + 17) % composite;
let lim = 1 << (i + 18);
let lim = 1 << (std::cmp::min(i, 5) + 18);

for j in 1..lim {
it += 1;
Expand Down
8 changes: 8 additions & 0 deletions ton_client/client/src/crypto/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ fn math() {
assert_eq!("494C553B", result.factors[0]);
assert_eq!("53911073", result.factors[1]);

let result = client.request::<_, ResultOfFactorize>(
"crypto.factorize",
ParamsOfFactorize {
composite: "10".into(),
},
);
assert!(result.is_err());

let result: ResultOfModularPower = client.request(
"crypto.modular_power",
ParamsOfModularPower {
Expand Down
2 changes: 1 addition & 1 deletion ton_client/client/src/json_interface/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl RuntimeHandlers {
sync_handlers: HashMap::new(),
async_handlers: HashMap::new(),
api: API {
version: "1.0.0".into(),
version: env!("CARGO_PKG_VERSION").to_owned(),
modules: Vec::new(),
},
};
Expand Down
2 changes: 1 addition & 1 deletion ton_client/platforms/ton-client-node-js/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ton_client_node_js"
version = "1.1.1"
version = "1.1.2"
authors = ["TON Labs"]
license = "Apache-2.0"

Expand Down
2 changes: 1 addition & 1 deletion ton_client/platforms/ton-client-web/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ton_client_wasm"
version = "1.1.1"
version = "1.1.2"
edition = "2018"
description = "TON Client WASM binding"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion ton_sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ton_sdk"
version = "1.1.1"
version = "1.1.2"
edition = "2018"
license = "Apache-2.0"

Expand Down
2 changes: 1 addition & 1 deletion toncli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "toncli"
version = "1.1.1"
version = "1.1.2"
description = "TON CLient Command Line Tool"
authors = ["TON DEV SOLUTIONS LTD <[email protected]>"]
repository = "https://github.com/tonlabs/TON-SDK"
Expand Down

0 comments on commit b9543ca

Please sign in to comment.