Skip to content

Commit

Permalink
Merge pull request #479 from tonlabs/1.22.0-rc
Browse files Browse the repository at this point in the history
Version 1.22.0
  • Loading branch information
d3p authored Sep 22, 2021
2 parents dae8925 + ea837e2 commit bb009d2
Show file tree
Hide file tree
Showing 27 changed files with 1,259 additions and 111 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

All notable changes to this project will be documented in this file.

## [1.22.0] – 2021-09-20

### New
- ABI v2.2 with fixed message body layout supported. [See the specification](https://github.com/tonlabs/ton-labs-abi/blob/master/docs/ABI_2.2_spec.md).

Now, for contracts with ABI version < 2.2 compact layout will still be used for compatibility, for contracts with ABI version 2.2 and more - fixed layout will be used.
**Please, make sure that you updated the ABI if you recompiled your contract with 2.2 ABI, or you may get an inconsistent contract behaviour**.
- **Debot module**:
- added `getEncryptionBoxInfo`, `getSigningBoxInfo` functions to Sdk interface.
- implemented Query DeBot interface in DEngine.

## [1.21.5] – 2021-09-13

### Fixed
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.21.5"
version = "1.22.0"
authors = ["TON DEV SOLUTIONS LTD <[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.21.5"
version = "1.22.0"
authors = ["TON DEV SOLUTIONS LTD <[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.21.5"
version = "1.22.0"
authors = ["TON DEV SOLUTIONS LTD <[email protected]>"]
edition = "2018"

Expand Down
4 changes: 2 additions & 2 deletions docs/mod_boc.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ BOC manipulation module.

[cache_unpin](#cache_unpin) – Unpin BOCs with specified pin.

[encode_boc](#encode_boc) – Encodes BOC from builder operations.
[encode_boc](#encode_boc) – Encodes bag of cells (BOC) with builder operations. This method provides the same functionality as Solidity TvmBuilder. Resulting BOC of this method can be passed into Solidity and C++ contracts as TvmCell type

## Types
[BocCacheType](#BocCacheType)
Expand Down Expand Up @@ -369,7 +369,7 @@ function cache_unpin(

## encode_boc

Encodes BOC from builder operations.
Encodes bag of cells (BOC) with builder operations. This method provides the same functionality as Solidity TvmBuilder. Resulting BOC of this method can be passed into Solidity and C++ contracts as TvmCell type

```ts
type ParamsOfEncodeBoc = {
Expand Down
2 changes: 1 addition & 1 deletion docs/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Where:

[cache_unpin](mod_boc.md#cache_unpin) – Unpin BOCs with specified pin.

[encode_boc](mod_boc.md#encode_boc) – Encodes BOC from builder operations.
[encode_boc](mod_boc.md#encode_boc) – Encodes bag of cells (BOC) with builder operations. This method provides the same functionality as Solidity TvmBuilder. Resulting BOC of this method can be passed into Solidity and C++ contracts as TvmCell type

## [processing](mod_processing.md) – Message processing module.

Expand Down
7 changes: 5 additions & 2 deletions ton_client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ton_client"
version = "1.21.5"
version = "1.22.0"
authors = ["TON DEV SOLUTIONS LTD <[email protected]>"]
edition = "2018"
license = "Apache-2.0"
Expand Down Expand Up @@ -59,10 +59,13 @@ scrypt = { version = "0.7.0", default-features = false }
serde = "1.0.91"
serde_derive = "1.0.91"
serde_json = "1.0.41"
serde_repr = "0.1.7"
sha2 = "0.9.5"
tiny-bip39 = "0.8.0"
tokio = { version = "0.2.13", features = ["sync", "stream"], default-features = false }
zstd = { version = "0.7.0", default-features = false }
# TODO: remove fixed versioning when tiny-bip39 compilation issue is resolved
tiny-bip39 = "=0.8.0"
zeroize_derive = "=1.1.0"

# optional for std
reqwest = { version = "0.10.4", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion ton_client/src/abi/decode_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ fn decode_body(
}
} else if let Ok(input) = abi.decode_input(body.clone(), is_internal) {
let (header, _, _) =
ton_abi::Function::decode_header(abi.version().major, body.clone(), abi.header(), is_internal)
ton_abi::Function::decode_header(abi.version(), body.clone(), abi.header(), is_internal)
.map_err(|err| {
Error::invalid_message_for_decode(format!(
"Can't decode function header: {}",
Expand Down
5 changes: 4 additions & 1 deletion ton_client/src/boc/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ pub struct ResultOfEncodeBoc {
pub boc: String,
}

/// Encodes BOC from builder operations.
/// Encodes bag of cells (BOC) with builder operations.
/// This method provides the same functionality as Solidity TvmBuilder.
/// Resulting BOC of this method can be passed into
/// Solidity and C++ contracts as TvmCell type
#[api_function]
pub async fn encode_boc(
context: std::sync::Arc<ClientContext>,
Expand Down
4 changes: 4 additions & 0 deletions ton_client/src/debot/dinterface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use super::base64_interface::Base64Interface;
use super::hex_interface::HexInterface;
use super::sdk_interface::SdkInterface;
use super::network_interface::NetworkInterface;
use super::query_interface::QueryInterface;
use crate::abi::{decode_message_body, Abi, ParamsOfDecodeMessageBody};
use crate::boc::{parse_message, ParamsOfParse};
use crate::debot::TonClient;
Expand Down Expand Up @@ -117,6 +118,9 @@ impl BuiltinInterfaces {
let iface: Arc<dyn DebotInterface + Send + Sync> = Arc::new(NetworkInterface::new(client.clone()));
interfaces.insert(iface.get_id(), iface);

let iface: Arc<dyn DebotInterface + Send + Sync> = Arc::new(QueryInterface::new(client.clone()));
interfaces.insert(iface.get_id(), iface);

let iface: Arc<dyn DebotInterface + Send + Sync> =
Arc::new(SdkInterface::new(client.clone()));
interfaces.insert(iface.get_id(), iface);
Expand Down
1 change: 1 addition & 0 deletions ton_client/src/debot/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ mod helpers;
mod info;
mod msg_interface;
mod network_interface;
mod query_interface;
mod routines;
mod run_output;
mod sdk_interface;
Expand Down
Loading

0 comments on commit bb009d2

Please sign in to comment.