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

Commit

Permalink
docs: add deprecation notices
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Nov 7, 2023
1 parent 4f7b354 commit aae3c7a
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
[crates-badge]: https://img.shields.io/crates/v/ethers.svg
[crates-url]: https://crates.io/crates/ethers

> [!WARNING]
> This library is in the process of being deprecated. Consider using instead:
> - ~~`ethers::{abi, core, contract, types}`~~ -> [alloy-rs/core](https://github.com/alloy-rs/core)
> - ~~`ethers::{middleware, providers, signers}`~~ -> [alloy-rs/alloy](https://github.com/alloy-rs/alloy)
> - ~~`ethers::etherscan`~~ -> [foundry-rs/block-explorers](https://github.com/foundry-rs/block-explorers)
> - ~~`ethers::solc`~~ -> [foundry-rs/compilers](https://github.com/foundry-rs/compilers)
## Quickstart

Add this to your Cargo.toml:
Expand Down
4 changes: 4 additions & 0 deletions ethers-addressbook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ A collection of commonly used smart contract addresses.

For more information, please refer to the [book](https://gakonst.com/ethers-rs).

> **Warning**
>
> This crate is in the process of being deprecated. Please see the [repository README](https://github.com/gakonst/ethers-rs) for more information.
## Examples

```rust
Expand Down
4 changes: 4 additions & 0 deletions ethers-contract/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Type-safe abstractions for interacting with Ethereum smart contracts.

> **Warning**
>
> This crate is in the process of being deprecated. Please see the [repository README](https://github.com/gakonst/ethers-rs) for more information.
Interacting with a smart contract requires broadcasting carefully crafted
[transactions](ethers_core::types::TransactionRequest) where the `data` field
contains the
Expand Down
4 changes: 4 additions & 0 deletions ethers-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Ethereum data types, cryptography and utilities.

> **Warning**
>
> This crate is in the process of being deprecated. Please see the [repository README](https://github.com/gakonst/ethers-rs) for more information.
It is recommended to use the `utils`, `types` and `abi` re-exports instead of
the `core` module to simplify your imports.

Expand Down
4 changes: 4 additions & 0 deletions ethers-etherscan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Bindings for the [etherscan.io web API](https://docs.etherscan.io).

For more information, please refer to the [book](https://gakonst.com/ethers-rs).

> **Warning**
>
> This crate is deprecated in favor of [foundry-block-explorers](https://crates.io/foundry-block-explorers) ([github](https://github.com/foundry-rs/block-explorers)).
## Examples

```rust,no_run
Expand Down
4 changes: 4 additions & 0 deletions ethers-middleware/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Your ethers application interacts with the blockchain through a [`Provider`](eth

For more information, please refer to the [book](https://gakonst.com/ethers-rs).

> **Warning**
>
> This crate is in the process of being deprecated. Please see the [repository README](https://github.com/gakonst/ethers-rs) for more information.
## Available Middleware

- [`Signer`](./signer/struct.SignerMiddleware.html): Signs transactions locally, with a private key or a hardware wallet.
Expand Down
4 changes: 4 additions & 0 deletions ethers-providers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ clients.

For more information, please refer to the [book](https://gakonst.com/ethers-rs).

> **Warning**
>
> This crate is in the process of being deprecated. Please see the [repository README](https://github.com/gakonst/ethers-rs) for more information.
## Websockets

This crate supports for WebSockets via `tokio-tungstenite`.
Expand Down
4 changes: 4 additions & 0 deletions ethers-signers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

A unified interface for locally signing Ethereum transactions.

> **Warning**
>
> This crate is in the process of being deprecated. Please see the [repository README](https://github.com/gakonst/ethers-rs) for more information.
You can implement the `Signer` trait to extend functionality to other signers
such as Hardware Security Modules, KMS etc.

Expand Down
4 changes: 4 additions & 0 deletions ethers-solc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Utilities for working with native `solc` and compiling projects.

> **Warning**
>
> This crate is deprecated in favor of [foundry-compilers](https://crates.io/foundry-compilers) ([github](https://github.com/foundry-rs/compilers)).
To also compile contracts during `cargo build` (so that ethers `abigen!` can pull in updated abi automatically) you can configure a `ethers_solc::Project` in your `build.rs` file

First add `ethers-solc` to your cargo build-dependencies.
Expand Down
5 changes: 5 additions & 0 deletions ethers/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
//! # ethers-rs
//!
//! A complete Ethereum and Celo Rust library.
//!
//! <div class="warning">
//! This crate is in the process of being deprecated. Please see the
//! <a href="https://github.com/gakonst/ethers-rs">repository README</a> for more information.
//! </div>
//!
//! ## Quickstart: `prelude`
//!
Expand Down

0 comments on commit aae3c7a

Please sign in to comment.