Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
bump ethers version to add Windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
TimvanScherpenzeel authored and onbjerg committed Oct 18, 2021
1 parent 22d3245 commit 09b67ac
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

- Upgraded Ethers to 0.5.2 and disabled default features to allow for building on Windows (which lacks IPC support, see https://github.com/gakonst/ethers-rs/issues/393)

## [0.5.0]

### Added
Expand Down
6 changes: 2 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ futures-core = "0.3"
pin-project = "1"

# Ethers
ethers-core = "0.5.1"
ethers-signers = "0.5.1"
ethers-providers = "0.5.1"
ethers = {version = "0.5.2", default-features = false }

[dev-dependencies]
tokio = { version = "1.7.1", features = ["macros", "rt-multi-thread"] }
ethers = "0.5.1"
ethers = {version = "0.5.2", default-features = false }
anyhow = "1.0"
2 changes: 1 addition & 1 deletion src/bundle.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::utils::{deserialize_optional_h160, deserialize_u256, deserialize_u64};
use chrono::{DateTime, Utc};
use ethers_core::{
use ethers::core::{
types::{transaction::response::Transaction, Address, Bytes, TxHash, H256, U256, U64},
utils::keccak256,
};
Expand Down
2 changes: 1 addition & 1 deletion src/jsonrpc.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Code adapted from: https://github.com/althea-net/guac_rs/tree/master/web3/src/jsonrpc
// NOTE: This module only exists since there is no way to use the data structures
// in the `ethers-providers/src/transports/common.rs` from another crate.
use ethers_core::types::U256;
use ethers::core::types::U256;
use serde::{Deserialize, Serialize};
use serde_json::Value;
use std::fmt;
Expand Down
6 changes: 3 additions & 3 deletions src/middleware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ use crate::{
UserStats,
};
use async_trait::async_trait;
use ethers_core::{
use ethers::core::{
types::{BlockNumber, Bytes, U64},
utils::keccak256,
};
use ethers_providers::{FromErr, Middleware, PendingTransaction};
use ethers_signers::Signer;
use ethers::providers::{FromErr, Middleware, PendingTransaction};
use ethers::signers::Signer;
use thiserror::Error;
use url::Url;

Expand Down
4 changes: 2 additions & 2 deletions src/pending_bundle.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::bundle::BundleHash;
use ethers_core::types::{Block, TxHash, U64};
use ethers_providers::{
use ethers::core::types::{Block, TxHash, U64};
use ethers::providers::{
interval, JsonRpcClient, Middleware, Provider, ProviderError, DEFAULT_POLL_INTERVAL,
};
use futures_core::stream::Stream;
Expand Down
4 changes: 2 additions & 2 deletions src/relay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ use crate::{
bundle::BundleHash,
jsonrpc::{JsonRpcError, Request, Response},
};
use ethers_core::{
use ethers::core::{
types::{H256, U64},
utils::keccak256,
};
use ethers_signers::Signer;
use ethers::signers::Signer;
use reqwest::{Client, Error as ReqwestError};
use serde::{de::DeserializeOwned, Deserialize, Serialize};
use std::sync::atomic::{AtomicU64, Ordering};
Expand Down
2 changes: 1 addition & 1 deletion src/user.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::utils::deserialize_u256;
use ethers_core::types::U256;
use ethers::core::types::U256;
use serde::Deserialize;

/// Represents stats for a searcher.
Expand Down
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use ethers_core::types::{H160, U256, U64};
use ethers::core::types::{H160, U256, U64};
use serde::{de, Deserialize};
use serde_json::Value;
use std::str::FromStr;
Expand Down

0 comments on commit 09b67ac

Please sign in to comment.