bigint upgraded to version 3.0 (#5986)

* bigint upgraded to version 3.0

* fixed missing FromHex import in ethcore tests

* fixed missing FromHex import in rpc tests
This commit is contained in:
Marek Kotewicz
2017-07-06 11:26:14 +02:00
committed by Tomasz Drwięga
parent a78a89b13a
commit 46183b1cdd
86 changed files with 139 additions and 235 deletions

View File

@@ -15,7 +15,7 @@ multihash ="0.6"
order-stat = "0.1"
rand = "0.3"
rust-crypto = "0.2"
rustc-serialize = "0.3"
rustc-hex = "1.0"
semver = "0.6"
serde = "0.9"
serde_derive = "0.9"

View File

@@ -26,7 +26,7 @@ extern crate futures;
extern crate multihash;
extern crate order_stat;
extern crate rand;
extern crate rustc_serialize;
extern crate rustc_hex;
extern crate semver;
extern crate serde;
extern crate serde_json;

View File

@@ -99,7 +99,7 @@ fn decrypt_with_shadow_coefficients(mut decrypted_shadow: Public, mut common_sha
#[cfg(test)]
mod tests {
use util::Bytes;
use rustc_serialize::hex::FromHex;
use rustc_hex::FromHex;
use super::{encrypt_document, decrypt_document, decrypt_document_with_shadow};
#[test]

View File

@@ -18,7 +18,7 @@ use std::str::FromStr;
use std::collections::HashMap;
use std::sync::Arc;
use std::time::{Instant, Duration};
use rustc_serialize::hex::{FromHex, ToHex};
use rustc_hex::{FromHex, ToHex};
use time::get_time;
use rlp;
@@ -536,7 +536,7 @@ fn rpc_eth_transaction_count_by_number_pending() {
#[test]
fn rpc_eth_pending_transaction_by_hash() {
use util::{H256, FromHex};
use util::H256;
use rlp;
use ethcore::transaction::SignedTransaction;

View File

@@ -16,7 +16,7 @@
use std::sync::Arc;
use std::str::FromStr;
use rustc_serialize::hex::FromHex;
use rustc_hex::FromHex;
use util::{U256, Address};
use ethcore::miner::MinerService;

View File

@@ -17,10 +17,9 @@
//! Serializable wrapper around vector of bytes
use std::fmt;
use rustc_serialize::hex::ToHex;
use rustc_hex::{ToHex, FromHex};
use serde::{Serialize, Serializer, Deserialize, Deserializer};
use serde::de::{Error, Visitor};
use util::common::FromHex;
/// Wrapper structure around vector of bytes.
#[derive(Debug, PartialEq, Eq, Default, Hash, Clone)]
@@ -98,7 +97,7 @@ impl Visitor for BytesVisitor {
mod tests {
use super::*;
use serde_json;
use rustc_serialize::hex::FromHex;
use rustc_hex::FromHex;
#[test]
fn test_bytes_serialize() {

View File

@@ -55,7 +55,7 @@ impl Into<Request> for CallRequest {
#[cfg(test)]
mod tests {
use std::str::FromStr;
use rustc_serialize::hex::FromHex;
use rustc_hex::FromHex;
use serde_json;
use v1::types::{U256, H160};
use super::CallRequest;

View File

@@ -19,7 +19,7 @@ use std::str::FromStr;
use std::cmp::Ordering;
use std::hash::{Hash, Hasher};
use serde;
use rustc_serialize::hex::{ToHex, FromHex};
use rustc_hex::{ToHex, FromHex};
use util::{H64 as Eth64, H160 as Eth160, H256 as Eth256, H520 as Eth520, H512 as Eth512, H2048 as Eth2048};
macro_rules! impl_hash {

View File

@@ -131,7 +131,7 @@ impl Into<helpers::TransactionRequest> for TransactionRequest {
#[cfg(test)]
mod tests {
use std::str::FromStr;
use rustc_serialize::hex::FromHex;
use rustc_hex::FromHex;
use serde_json;
use v1::types::{U256, H160, TransactionCondition};
use super::*;