dissolve util (#7460)
* ethereum-types refactor in progress * ethereum-types refactor in progress * ethereum-types refactor in progress * ethereum-types refactor in progress * ethereum-types refactor finished * removed obsolete util/src/lib.rs * removed commented out code
This commit is contained in:
parent
3a43846f76
commit
da9d4b7bc7
|
@ -10,7 +10,7 @@ elastic-array = "0.9"
|
|||
log = "0.3"
|
||||
rand = "0.3"
|
||||
ethcore-bytes = { version = "0.1.0", path = "../bytes" }
|
||||
ethcore-bigint = { version = "0.2.1", path = "../bigint" }
|
||||
ethereum-types = "0.1"
|
||||
keccak-hash = { version = "0.1.0", path = "../hash" }
|
||||
hashdb = { version = "0.1.1", path = "../hashdb" }
|
||||
rlp = { version = "0.2.1", path = "../rlp" }
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use bigint::hash::H256;
|
||||
use ethereum_types::H256;
|
||||
use keccak::keccak;
|
||||
use hashdb::HashDB;
|
||||
use super::{TrieDB, Trie, TrieDBIterator, TrieItem, TrieIterator, Query};
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use bigint::hash::H256;
|
||||
use ethereum_types::H256;
|
||||
use keccak::keccak;
|
||||
use hashdb::{HashDB, DBValue};
|
||||
use super::{TrieDBMut, TrieMut};
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
//! Trie interface and implementation.
|
||||
extern crate rand;
|
||||
extern crate ethcore_bigint as bigint;
|
||||
extern crate ethereum_types;
|
||||
extern crate keccak_hash as keccak;
|
||||
extern crate rlp;
|
||||
extern crate hashdb;
|
||||
|
@ -29,7 +29,7 @@ extern crate ethcore_logger;
|
|||
extern crate log;
|
||||
|
||||
use std::{fmt, error};
|
||||
use bigint::hash::H256;
|
||||
use ethereum_types::H256;
|
||||
use keccak::KECCAK_NULL_RLP;
|
||||
use hashdb::{HashDB, DBValue};
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
use hashdb::HashDB;
|
||||
use nibbleslice::NibbleSlice;
|
||||
use rlp::Rlp;
|
||||
use bigint::hash::H256;
|
||||
use ethereum_types::H256;
|
||||
|
||||
use super::{TrieError, Query};
|
||||
use super::node::Node;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
//! Trie query recorder.
|
||||
|
||||
use keccak::keccak;
|
||||
use bigint::hash::H256;
|
||||
use ethereum_types::H256;
|
||||
use bytes::Bytes;
|
||||
|
||||
/// A record of a visited node.
|
||||
|
@ -83,7 +83,7 @@ impl Recorder {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use bigint::hash::H256;
|
||||
use ethereum_types::H256;
|
||||
|
||||
#[test]
|
||||
fn basic_recorder() {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use bigint::hash::H256;
|
||||
use ethereum_types::H256;
|
||||
use keccak::keccak;
|
||||
use hashdb::HashDB;
|
||||
use super::triedb::TrieDB;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use bigint::hash::H256;
|
||||
use ethereum_types::H256;
|
||||
use keccak::keccak;
|
||||
use hashdb::{HashDB, DBValue};
|
||||
use super::triedbmut::TrieDBMut;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
//! Key-value datastore with a modified Merkle tree.
|
||||
use keccak::keccak;
|
||||
use bytes::*;
|
||||
use bigint::hash::*;
|
||||
use ethereum_types::H256;
|
||||
use rlp::encode;
|
||||
|
||||
/// Alphabet to use when creating words for insertion into tries.
|
||||
|
|
|
@ -21,7 +21,7 @@ use rlp::*;
|
|||
use super::node::{Node, OwnedNode};
|
||||
use super::lookup::Lookup;
|
||||
use super::{Trie, TrieItem, TrieError, TrieIterator, Query};
|
||||
use bigint::hash::H256;
|
||||
use ethereum_types::H256;
|
||||
use bytes::{ToPretty, Bytes};
|
||||
|
||||
/// A `Trie` implementation using a generic `HashDB` backing database.
|
||||
|
@ -34,12 +34,12 @@ use bytes::{ToPretty, Bytes};
|
|||
/// extern crate patricia_trie as trie;
|
||||
/// extern crate hashdb;
|
||||
/// extern crate memorydb;
|
||||
/// extern crate ethcore_bigint as bigint;
|
||||
/// extern crate ethereum_types;
|
||||
///
|
||||
/// use trie::*;
|
||||
/// use hashdb::*;
|
||||
/// use memorydb::*;
|
||||
/// use bigint::hash::*;
|
||||
/// use ethereum_types::H256;
|
||||
///
|
||||
/// fn main() {
|
||||
/// let mut memdb = MemoryDB::new();
|
||||
|
|
|
@ -30,7 +30,7 @@ use hashdb::DBValue;
|
|||
use std::collections::{HashSet, VecDeque};
|
||||
use std::mem;
|
||||
use std::ops::Index;
|
||||
use bigint::hash::H256;
|
||||
use ethereum_types::H256;
|
||||
use elastic_array::ElasticArray1024;
|
||||
use keccak::{KECCAK_NULL_RLP};
|
||||
|
||||
|
@ -265,13 +265,13 @@ impl<'a> Index<&'a StorageHandle> for NodeStorage {
|
|||
/// extern crate keccak_hash;
|
||||
/// extern crate hashdb;
|
||||
/// extern crate memorydb;
|
||||
/// extern crate ethcore_bigint as bigint;
|
||||
/// extern crate ethereum_types;
|
||||
///
|
||||
/// use keccak_hash::KECCAK_NULL_RLP;
|
||||
/// use trie::*;
|
||||
/// use hashdb::*;
|
||||
/// use memorydb::*;
|
||||
/// use bigint::hash::*;
|
||||
/// use ethereum_types::H256;
|
||||
///
|
||||
/// fn main() {
|
||||
/// let mut memdb = MemoryDB::new();
|
||||
|
|
Loading…
Reference in New Issue