Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
crates/json-rpc @prestwich
crates/transports @evalir @prestwich
crates/networks @prestwich
crates/providers @evalir @prestwich
crates/provider @evalir @prestwich
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/BUG-FORM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ body:
- consensus, eips, genesis
- network, json-rpc
- nodes
- providers, pubsub
- provider, pubsub
- rpc
- signers
- transports
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/FEATURE-FORM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ body:
- consensus, eips, genesis
- network, json-rpc
- nodes
- providers, pubsub
- provider, pubsub
- rpc
- signers
- transports
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
strategy:
fail-fast: false
matrix:
rust: ["stable", "nightly", "1.75"] # MSRV
flags: ["--no-default-features", "", "--all-features"]
rust: ['stable', 'nightly', '1.75'] # MSRV
flags: ['--no-default-features', '', '--all-features']
exclude:
# Some features have higher MSRV.
- rust: "1.75" # MSRV
flags: "--all-features"
- rust: '1.75' # MSRV
flags: '--all-features'
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
cargo hack check --workspace --target wasm32-unknown-unknown \
--exclude alloy-contract \
--exclude alloy-node-bindings \
--exclude alloy-providers \
--exclude alloy-provider \
--exclude alloy-signer \
--exclude alloy-signer-aws \
--exclude alloy-signer-gcp \
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ alloy-genesis = { version = "0.1.0", default-features = false, path = "crates/ge
alloy-json-rpc = { version = "0.1.0", default-features = false, path = "crates/json-rpc" }
alloy-network = { version = "0.1.0", default-features = false, path = "crates/network" }
alloy-node-bindings = { version = "0.1.0", default-features = false, path = "crates/node-bindings" }
alloy-providers = { version = "0.1.0", default-features = false, path = "crates/providers" }
alloy-provider = { version = "0.1.0", default-features = false, path = "crates/provider" }
alloy-pubsub = { version = "0.1.0", default-features = false, path = "crates/pubsub" }
alloy-rpc-client = { version = "0.1.0", default-features = false, path = "crates/rpc-client" }
alloy-rpc-engine-types = { version = "0.1.0", default-features = false, path = "crates/rpc-engine-types" }
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This repository contains the following crates:
- [`alloy-json-rpc`] - Core data types for JSON-RPC 2.0 clients
- [`alloy-network`] - Network abstraction for RPC types
- [`alloy-node-bindings`] - Ethereum execution-layer client bindings
- [`alloy-providers`] - Interface with an Ethereum blockchain
- [`alloy-provider`] - Interface with an Ethereum blockchain
- [`alloy-pubsub`] - Ethereum JSON-RPC [publish-subscribe] tower service and type definitions
- [`alloy-rpc-client`] - Low-level Ethereum JSON-RPC client implementation
- [`alloy-rpc-types`] - Ethereum JSON-RPC types
Expand All @@ -50,7 +50,7 @@ This repository contains the following crates:
[`alloy-json-rpc`]: crates/json-rpc
[`alloy-network`]: crates/network
[`alloy-node-bindings`]: crates/node-bindings
[`alloy-providers`]: crates/providers
[`alloy-provider`]: crates/provider
[`alloy-pubsub`]: crates/pubsub
[`alloy-rpc-client`]: crates/rpc-client
[`alloy-rpc-engine-types`]: crates/rpc-engine-types
Expand All @@ -65,7 +65,6 @@ This repository contains the following crates:
[`alloy-transport-http`]: crates/transport-http
[`alloy-transport-ipc`]: crates/transport-ipc
[`alloy-transport-ws`]: crates/transport-ws

[`alloy-core`]: https://docs.rs/alloy-core
[publish-subscribe]: https://en.wikipedia.org/wiki/Publish%E2%80%93subscribe_pattern
[AWS KMS]: https://aws.amazon.com/kms
Expand Down
4 changes: 2 additions & 2 deletions crates/alloy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ alloy-eips = { workspace = true, default-features = false, optional = true }
alloy-genesis = { workspace = true, default-features = false, optional = true }
alloy-network = { workspace = true, default-features = false, optional = true }
alloy-node-bindings = { workspace = true, default-features = false, optional = true }
alloy-providers = { workspace = true, default-features = false, optional = true }
alloy-provider = { workspace = true, default-features = false, optional = true }
alloy-pubsub = { workspace = true, default-features = false, optional = true }

# rpc
Expand Down Expand Up @@ -92,7 +92,7 @@ node-bindings = ["dep:alloy-node-bindings"]
contract = ["dep:alloy-contract", "dyn-abi", "json-abi", "json", "sol-types"]

## providers
providers = ["dep:alloy-providers"]
providers = ["dep:alloy-provider"]
provider-http = ["providers", "transport-http"]
provider-ws = ["providers", "transport-ws"]
provider-ipc = ["providers", "transport-ipc"]
Expand Down
4 changes: 2 additions & 2 deletions crates/alloy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ pub use alloy_node_bindings as node_bindings;

/// Interface with an Ethereum blockchain.
///
/// See [`alloy_providers`] for more details.
/// See [`alloy_provider`] for more details.
#[cfg(feature = "providers")]
pub mod providers {
#[doc(inline)]
pub use alloy_providers::*;
pub use alloy_provider::*;

// TODO: provider type aliases
// #[cfg(feature = "provider-http")]
Expand Down
2 changes: 1 addition & 1 deletion crates/contract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repository.workspace = true
exclude.workspace = true

[dependencies]
alloy-providers.workspace = true
alloy-provider.workspace = true
alloy-rpc-types.workspace = true
alloy-transport.workspace = true

Expand Down
4 changes: 2 additions & 2 deletions crates/contract/src/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::{Error, Result};
use alloy_dyn_abi::{DynSolValue, FunctionExt, JsonAbiExt};
use alloy_json_abi::Function;
use alloy_primitives::{Address, Bytes, U256, U64};
use alloy_providers::tmp::TempProvider;
use alloy_provider::tmp::TempProvider;
use alloy_rpc_types::{
request::{TransactionInput, TransactionRequest},
state::StateOverride,
Expand Down Expand Up @@ -456,7 +456,7 @@ mod tests {
use super::*;
use alloy_node_bindings::{Anvil, AnvilInstance};
use alloy_primitives::{address, b256, bytes, hex};
use alloy_providers::tmp::{HttpProvider, Provider};
use alloy_provider::tmp::{HttpProvider, Provider};
use alloy_sol_types::sol;

#[test]
Expand Down
2 changes: 1 addition & 1 deletion crates/contract/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::{CallBuilder, Interface, Result};
use alloy_dyn_abi::DynSolValue;
use alloy_json_abi::{Function, JsonAbi};
use alloy_primitives::{Address, Selector};
use alloy_providers::tmp::TempProvider;
use alloy_provider::tmp::TempProvider;

/// A handle to an Ethereum contract at a specific address.
///
Expand Down
2 changes: 1 addition & 1 deletion crates/contract/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ pub use call::*;
// NOTE: please avoid changing the API of this module due to its use in the `sol!` macro.
#[doc(hidden)]
pub mod private {
pub use alloy_providers::tmp::TempProvider as Provider;
pub use alloy_provider::tmp::TempProvider as Provider;
}
4 changes: 2 additions & 2 deletions crates/network/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ networking. The core model is as follows:
## Usage

This crate is not intended to be used directly. It is used by the
[alloy-providers] library and reth to modify the input and output types of the
[alloy-provider] library and reth to modify the input and output types of the
RPC methods.

This crate will primarily be used by blockchain maintainers to add bespoke RPC
Expand Down Expand Up @@ -61,4 +61,4 @@ trait FooProviderExt: Provider<Foo> {
}
```

[alloy-providers]: ../providers
[alloy-provider]: ../provider
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "alloy-providers"
name = "alloy-provider"
description = "Interface with an Ethereum blockchain"

version.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/providers/README.md → crates/provider/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# alloy-providers
# alloy-provider

<!-- TODO: links, docs, examples, etc -->

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading