11/*
2- * Copyright (C) 2019-2023 EverX. All Rights Reserved.
2+ * Copyright (C) 2019-2024 EverX. All Rights Reserved.
33*
44* Licensed under the SOFTWARE EVALUATION License (the "License"); you may not use
55* this file except in compliance with the License.
66*
77* Unless required by applicable law or agreed to in writing, software
88* distributed under the License is distributed on an "AS IS" BASIS,
99* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10- * See the License for the specific TON DEV software governing permissions and
10+ * See the License for the specific EVERX DEV software governing permissions and
1111* limitations under the License.
1212*/
1313
1414use adnl:: {
1515 common:: TaggedTlObject , client:: { AdnlClient , AdnlClientConfig , AdnlClientConfigJson }
1616} ;
17+ use ever_abi:: { Contract , Token , TokenValue , Uint } ;
18+ use ever_block:: {
19+ error, fail, AccountStatus , base64_decode, base64_encode, BlockIdExt , BuilderData ,
20+ Deserializable , Ed25519KeyOption , Result , Serializable , ShardAccount , SliceData ,
21+ UInt256 , write_boc
22+ } ;
23+ use ever_block_json:: parse_state;
1724use std:: { collections:: HashMap , convert:: TryInto , env, str:: FromStr , time:: Duration } ;
18- use ton_abi:: { Contract , Token , TokenValue , Uint } ;
1925use ton_api:: {
2026 serialize_boxed,
2127 ton:: {
@@ -26,13 +32,6 @@ use ton_api::{
2632} ;
2733#[ cfg( feature = "telemetry" ) ]
2834use ton_api:: tag_from_bare_object;
29- use ton_block:: {
30- AccountStatus , Deserializable , BlockIdExt , Serializable , ShardAccount
31- } ;
32- use ton_types:: {
33- error, fail, base64_decode, base64_encode, BuilderData , Ed25519KeyOption , Result ,
34- SliceData , UInt256 , write_boc
35- } ;
3635
3736include ! ( "../common/src/test.rs" ) ;
3837
@@ -626,7 +625,7 @@ impl ControlClient {
626625 let body = BuilderData :: with_raw ( data, len) ?;
627626 let body = body. into_cell ( ) ?;
628627 log:: trace!( "message body {}" , body) ;
629- let data = ton_types :: write_boc ( & body) ?;
628+ let data = write_boc ( & body) ?;
630629 let path = params. next ( ) . map (
631630 |path| path. to_string ( ) ) . unwrap_or ( "recover-query.boc" . to_string ( )
632631 ) ;
@@ -780,7 +779,7 @@ impl ControlClient {
780779 body
781780 } ;
782781 log:: trace!( "message body {}" , body) ;
783- let data = ton_types :: write_boc ( & body) ?;
782+ let data = write_boc ( & body) ?;
784783 let path = params. next ( ) . map (
785784 |path| path. to_string ( ) ) . unwrap_or ( "validator-query.boc" . to_string ( )
786785 ) ;
@@ -808,7 +807,7 @@ impl ControlClient {
808807 let zerostate =
809808 serde_json:: from_str :: < serde_json:: Map < String , serde_json:: Value > > ( & zerostate)
810809 . map_err ( |err| error ! ( "Can't parse read zerostate json file: {}" , err) ) ?;
811- let zerostate = ton_block_json :: parse_state ( & zerostate)
810+ let zerostate = parse_state ( & zerostate)
812811 . map_err ( |err| error ! ( "Can't parse read zerostate json file: {}" , err) ) ?;
813812
814813 let key = SliceData :: load_builder ( index. write_to_new_cell ( ) ?) ?;
@@ -941,12 +940,12 @@ mod test {
941940 use serde_json:: json;
942941 use storage:: block_handle_db:: BlockHandle ;
943942 use ton_api:: deserialize_boxed;
944- use ton_block :: {
943+ use ever_block :: {
945944 generate_test_account_by_init_code_hash,
946945 BlockLimits , ConfigParam0 , ConfigParam34 , ConfigParamEnum , McStateExtra , ParamLimits ,
947946 ShardIdent , ShardStateUnsplit , ValidatorDescr , ValidatorSet
948947 } ;
949- use ton_node :: {
948+ use ever_node :: {
950949 collator_test_bundle:: { create_engine_telemetry, create_engine_allocated} ,
951950 config:: TonNodeConfig , engine_traits:: { EngineAlloc , EngineOperations } ,
952951 internal_db:: { InternalDbConfig , InternalDb , state_gc_resolver:: AllowStateGcSmartResolver } ,
@@ -955,7 +954,7 @@ mod test {
955954 validator:: validator_manager:: ValidationStatus , shard_states_keeper:: PinnedShardStateGuard ,
956955 } ;
957956 #[ cfg( feature = "telemetry" ) ]
958- use ton_node :: engine_traits:: EngineTelemetry ;
957+ use ever_node :: engine_traits:: EngineTelemetry ;
959958
960959 const CFG_DIR : & str = "./target" ;
961960 const CFG_NODE_FILE : & str = "light_node.json" ;
@@ -987,7 +986,7 @@ mod test {
987986 & ShardAccount :: with_params ( & account, UInt256 :: default ( ) , 0 ) . unwrap ( )
988987 ) . unwrap ( ) ;
989988 let cell = ss. serialize ( ) . unwrap ( ) ;
990- let bytes = ton_types :: write_boc ( & cell) . unwrap ( ) ;
989+ let bytes = write_boc ( & cell) . unwrap ( ) ;
991990 let shard_state_id = BlockIdExt :: with_params (
992991 ShardIdent :: full ( 0 ) ,
993992 0 ,
@@ -1025,7 +1024,7 @@ mod test {
10251024 ss. write_custom ( Some ( & ms) ) . unwrap ( ) ;
10261025
10271026 let cell = ss. serialize ( ) . unwrap ( ) ;
1028- let bytes = ton_types :: write_boc ( & cell) . unwrap ( ) ;
1027+ let bytes = write_boc ( & cell) . unwrap ( ) ;
10291028 let master_state_id = BlockIdExt :: with_params (
10301029 ShardIdent :: masterchain ( ) ,
10311030 0 ,
0 commit comments