Skip to content

Commit 23ea2fe

Browse files
committed
Update tycho-types and bump tycho-vm
1 parent 472d42e commit 23ea2fe

24 files changed

+107
-153
lines changed

Cargo.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace.package]
2-
version = "0.0.1"
2+
version = "0.0.2"
33
edition = "2021"
44
authors = ["Broxus Team"]
55
rust-version = "1.80.0"
@@ -20,7 +20,7 @@ members = [
2020
anyhow = "1.0"
2121
async-trait = "0.1"
2222
ed25519-dalek = "2.1"
23-
everscale-types = { git = "https://github.com/broxus/everscale-types.git", features = ["tycho", "abi"] }
23+
tycho-types = { version = "0.2", features = ["tycho", "abi"] }
2424
futures-util = "0.3"
2525
hex = { version = "0.4" }
2626
num-bigint = "0.4.6"
@@ -33,22 +33,21 @@ serde = "1.0"
3333
serde_json = "1.0"
3434
thiserror = "2.0"
3535
tokio = { version = "1", features = ["sync", "time"] }
36-
tl-proto = "0.5.3"
3736

3837
case = "1.0.0"
3938
proc-macro2 = "1.0"
4039
quote = "1.0"
4140
syn = { version = "2.0", features = ["visit", "parsing"] }
4241

43-
tycho-executor = { git = "https://github.com/broxus/tycho-vm.git"}
44-
tycho-vm = { git = "https://github.com/broxus/tycho-vm.git" }
42+
tycho-executor = "0.2"
43+
tycho-vm = "0.2"
4544

4645
# local deps
4746
nekoton-core = { path = "./core" }
4847
nekoton-transport = { path = "./transport" }
4948
nekoton-utils = { path = "./utils" }
5049
nekoton-proc = { path = "./proc" }
5150

52-
[patch.crates-io]
53-
everscale-types = { git = "https://github.com/broxus/everscale-types.git" }
51+
#[patch.crates-io]
52+
#everscale-types = { git = "https://github.com/broxus/everscale-types.git" }
5453

core/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ license.workspace = true
1111
[dependencies]
1212
anyhow = { workspace = true }
1313
async-trait = { workspace = true }
14-
ed25519-dalek = { workspace = true }
15-
everscale-types = { workspace = true }
14+
tycho-types = { workspace = true }
1615
futures-util = { workspace = true }
1716
num-bigint = {workspace = true}
1817
num-traits = {workspace = true}
@@ -21,7 +20,7 @@ serde = { workspace = true }
2120
tokio = { workspace = true }
2221
thiserror = {workspace = true}
2322
tycho-executor = {workspace = true}
24-
tycho-vm = {workspace = true, features = ["tracing"]}
23+
tycho-vm = { workspace = true, features = ["tracing"]}
2524

2625

2726
# local deps

core/src/contracts/blockchain_context.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ use std::sync::Arc;
33
use crate::error::ExecutionError;
44
use crate::models::{ContractState, GenTimings};
55
use crate::transport::Transport;
6-
use everscale_types::abi::{Function, NamedAbiValue};
7-
use everscale_types::crc::crc_16;
8-
use everscale_types::models::{
9-
Account, BlockchainConfig, ExtInMsgInfo, IntAddr, IntMsgInfo, MsgInfo, OwnedMessage, StdAddr,
10-
Transaction,
11-
};
12-
use everscale_types::prelude::{Cell, CellBuilder, CellFamily, DynCell};
136
use nekoton_utils::time::{Clock, SimpleClock};
147
use num_bigint::BigInt;
158
use tycho_executor::ExecutorParams;
9+
use tycho_types::abi::{Function, NamedAbiValue};
10+
use tycho_types::crc::crc_16;
11+
use tycho_types::models::{
12+
Account, BlockchainConfig, ExtInMsgInfo, IntAddr, IntMsgInfo, MsgInfo, OwnedMessage, StdAddr,
13+
Transaction,
14+
};
15+
use tycho_types::prelude::{Cell, CellBuilder, CellFamily, DynCell};
1616
use tycho_vm::{BehaviourModifiers, OwnedCellSlice, RcStackValue, SafeRc};
1717

1818
use super::function_ext::{ExecutionOutput, FunctionExt};

core/src/contracts/function_ext.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
use everscale_types::abi::{AbiType, AbiValue, Function, NamedAbiValue};
2-
use everscale_types::models::{Account, RelaxedMsgInfo};
3-
use everscale_types::num::Tokens;
41
use num_traits::cast::ToPrimitive;
52
use tycho_executor::ParsedConfig;
3+
use tycho_types::abi::{AbiType, AbiValue, Function, NamedAbiValue};
4+
use tycho_types::models::{Account, RelaxedMsgInfo};
5+
use tycho_types::num::Tokens;
66
use tycho_vm::OwnedCellSlice;
77

88
use super::blockchain_context::{BlockchainContext, MessageBuilder};

core/src/contracts/local_executor.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
use everscale_types::cell::{Cell, CellBuilder};
2-
use everscale_types::models::{
1+
use tycho_types::cell::{Cell, CellBuilder};
2+
use tycho_types::models::{
33
Account, ComputePhase, IntAddr, MsgType, OutAction, OutActionsRevIter, OwnedMessage,
44
OwnedRelaxedMessage, ShardAccount, Transaction,
55
};
6-
use everscale_types::prelude::{CellFamily, Store};
6+
use tycho_types::prelude::{CellFamily, Store};
77

8-
use everscale_types::num::Tokens;
98
use tycho_executor::phase::{ComputePhaseContext, TransactionInput};
109
use tycho_executor::{ExecutorParams, ParsedConfig};
10+
use tycho_types::num::Tokens;
1111
use tycho_vm::OwnedCellSlice;
1212

1313
use crate::error::ExecutionError;
@@ -85,6 +85,6 @@ pub fn execute_ordinary_transaction(
8585

8686
let executor = tycho_executor::Executor::new(executor_params, config);
8787
let uncommited = executor.begin_ordinary(address, is_external, message, shard_account)?;
88-
let tx = uncommited.build_uncommited()?;
88+
let tx = uncommited.build_uncommitted()?;
8989
Ok(tx)
9090
}

core/src/contracts/local_vm.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use anyhow::Result;
2-
use everscale_types::cell::HashBytes;
3-
use everscale_types::models::{Account, AccountState, BlockchainConfig, LibDescr};
4-
use everscale_types::prelude::Dict;
2+
use tycho_types::cell::HashBytes;
3+
use tycho_types::models::{Account, AccountState, BlockchainConfig, LibDescr};
4+
use tycho_types::prelude::Dict;
55
use tycho_vm::{
66
BehaviourModifiers, GasParams, RcStackValue, SmcInfoBase, SmcInfoTonV6, UnpackedConfig,
77
VmStateBuilder,
@@ -89,7 +89,7 @@ impl LocalVm {
8989
.require_ton_v4()
9090
.require_ton_v6()
9191
.with_unpacked_config(self.config.clone().into_tuple())
92-
.require_ton_v9();
92+
.require_ton_v11();
9393

9494
let data = state.clone().data.unwrap_or_default();
9595

core/src/contracts/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ pub mod utils;
88
pub mod tests {
99
use crate::contracts::blockchain_context::BlockchainContextBuilder;
1010
use crate::transport::SimpleTransport;
11-
use everscale_types::abi::{AbiHeaderType, AbiType, AbiValue, AbiVersion, Function};
12-
use everscale_types::boc::Boc;
13-
use everscale_types::models::{
14-
BlockchainConfig, IntAddr, SizeLimitsConfig, StdAddr, StdAddrFormat,
15-
};
16-
use everscale_types::prelude::{CellBuilder, Load};
1711
use num_bigint::BigUint;
1812
use num_traits::Zero;
1913
use std::sync::Arc;
14+
use tycho_types::abi::{AbiHeaderType, AbiType, AbiValue, AbiVersion, Function};
15+
use tycho_types::boc::Boc;
16+
use tycho_types::models::{
17+
BlockchainConfig, IntAddr, SizeLimitsConfig, StdAddr, StdAddrFormat,
18+
};
19+
use tycho_types::prelude::{CellBuilder, Load};
2020
use tycho_vm::{tuple, OwnedCellSlice, SafeRc};
2121

2222
#[test]

core/src/contracts/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::models::GenTimings;
2-
use everscale_types::abi::{AbiValue, NamedAbiValue};
32
use nekoton_utils::time::Clock;
43
use num_bigint::BigUint;
4+
use tycho_types::abi::{AbiValue, NamedAbiValue};
55

66
const ANSWER_ID: &str = "_answer_id";
77
pub fn answer_id() -> NamedAbiValue {

core/src/error.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use everscale_types::abi::AbiType;
2-
use everscale_types::models::{ComputePhaseSkipReason, IntAddr};
1+
use tycho_types::abi::AbiType;
2+
use tycho_types::models::{ComputePhaseSkipReason, IntAddr};
33

44
#[derive(thiserror::Error, Debug)]
55
pub enum ExecutionError {
@@ -23,7 +23,7 @@ pub enum ExecutionError {
2323
TransactionError(#[from] tycho_executor::TxError),
2424

2525
#[error("Cell error: {0}")]
26-
CellError(#[from] everscale_types::error::Error),
26+
CellError(#[from] tycho_types::error::Error),
2727
#[error("Error: {0}")]
2828
Other(#[from] anyhow::Error),
2929
}

core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ mod error;
33
pub mod models;
44
pub mod transactions;
55
pub mod transport;
6-
mod message;

0 commit comments

Comments
 (0)