Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supported merge of block and types repos #42

Merged
merged 7 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Release Notes

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

##
## Version 1.0.31

- Supported merge of block and types repos
7 changes: 3 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ authors = [ 'EverX Labs <[email protected]>' ]
edition = '2021'
license = 'Apache-2.0'
name = 'ever-struct'
repository = 'https://github.com/tonlabs/ever-struct'
repository = 'https://github.com/everx-labs/ever-struct'
rust-version = '1.65'
version = '1.0.30'
version = '1.0.31'

[dependencies]
anyhow = '1.0.70'
failure = '0.1.0'
hex-literal = '0.3.4'
ton_block = { git = 'https://github.com/tonlabs/ever-block.git', tag = '1.9.143' }
ton_types = { git = 'https://github.com/tonlabs/ever-types.git', tag = '2.0.40' }
ever_block = { git = 'https://github.com/everx-labs/ever-block.git', tag = '1.10.0' }

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## ever-struct

[![GitHub](https://img.shields.io/github/license/tonlabs/ever-struct)](./LICENSE) [![Rust Version](https://img.shields.io/badge/Rust-1.65+-orange.svg)](https://www.rust-lang.org/)
[![GitHub](https://img.shields.io/github/license/everx-labs/ever-struct)](./LICENSE) [![Rust Version](https://img.shields.io/badge/Rust-1.65+-orange.svg)](https://www.rust-lang.org/)

This repository contains an implementation of frequently used structures that aren't part of blocks and/or don't participate in the source code of the ever-node. The schemes are described in the [`src/scheme.tlb`](./src/scheme.tlb) file.
10 changes: 5 additions & 5 deletions src/scheme/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
limitations under the License.
*/

use ton_block::{Deserializable, Serializable};
use ton_types::{fail, BuilderData, Cell, IBitstring, Result, SliceData};
use ever_block::{
fail, BuilderData, Cell, Deserializable, IBitstring, Result, Serializable, SliceData,
};

#[derive(Debug, failure::Fail)]
pub enum DeserializationError {
Expand Down Expand Up @@ -98,7 +99,7 @@ pub fn slice_load_string_ref(slice: &mut SliceData) -> Result<String> {
}

impl Serializable for TVC {
fn write_to(&self, builder: &mut BuilderData) -> ton_types::Result<()> {
fn write_to(&self, builder: &mut BuilderData) -> Result<()> {
builder.append_u32(Self::TVC_TAG)?;

if let Some(c) = &self.code {
Expand All @@ -120,7 +121,7 @@ impl Serializable for TVC {
}

impl Deserializable for TVC {
fn read_from(&mut self, slice: &mut SliceData) -> ton_types::Result<()> {
fn read_from(&mut self, slice: &mut SliceData) -> Result<()> {
let tag = slice.get_next_u32()?;
if tag != Self::TVC_TAG {
return Err(DeserializationError::UnexpectedTLBTag.into());
Expand All @@ -137,4 +138,3 @@ impl Deserializable for TVC {
Ok(())
}
}

Loading