Skip to content
Open
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
4 changes: 2 additions & 2 deletions vocs/docs/pages/contract-interactions/using-sol!.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ let decoded = swapExactTokensForTokensCall::abi_decode(&input);

When working with large solidity projects it can be cumbersome to input your solidity code or ABI files into the `sol!` macro.

You can use the `forge bind` command from [foundry](https://book.getfoundry.sh/reference/forge/forge-bind) to generate alloy compatible rust bindings for your entire project or a selection of files.
You can use the `forge bind` command from [foundry](https://getfoundry.sh/reference/forge/bind) to generate alloy compatible rust bindings for your entire project or a selection of files.

You can learn more about the command and its various options [here](https://book.getfoundry.sh/reference/forge/forge-bind).
You can learn more about the command and its various options [here](https://getfoundry.sh/reference/forge/bind).

## Attributes

Expand Down
2 changes: 1 addition & 1 deletion vocs/docs/pages/guides/layers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl Service<String> for MyService {

Running this example outputs _"Hello Alice!"_ after a 5-second delay.

Layers might sound similar to the fillers, but there's a crucial difference. Fillers can be used to modify the `TransactionRequest` object before it is submitted. Layers work within the `Request/Response` scope, allowing us to customize logic before and after sending the RPC request. If you're familiar with the Alloy predecessor Ethers.rs, you've probably noticed that it used [middleware](https://www.gakonst.com/ethers-rs/middleware/middleware.html) to achieve the same result.
Layers might sound similar to the fillers, but there's a crucial difference. Fillers can be used to modify the `TransactionRequest` object before it is submitted. Layers work within the `Request/Response` scope, allowing us to customize logic before and after sending the RPC request. If you're familiar with the Alloy predecessor Ethers.rs, you've probably noticed that it used [middleware](https://github.com/gakonst/ethers-rs/tree/master/ethers-middleware) to achieve the same result.

## How to use layers in Alloy

Expand Down
4 changes: 2 additions & 2 deletions vocs/docs/pages/guides/static-dynamic-abi-in-alloy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ let calldata = setStructCall {
}.abi_encode();
```

We've just imported a Solidity struct straight into the Rust code. You can use [`cast interface`](https://book.getfoundry.sh/reference/cast/cast-interface) CLI to generate Solidity snippets for any verified contract:
We've just imported a Solidity struct straight into the Rust code. You can use [`cast interface`](https://getfoundry.sh/reference/cast/interface) CLI to generate Solidity snippets for any verified contract:

:::code-group

Expand Down Expand Up @@ -170,7 +170,7 @@ sol!(

### Deploying Smart Contract with `sol!` macro

To deploy a smart contract, you must use its _"build artifact file"_. It's a JSON file you can generate by running the [`forge build` command](https://book.getfoundry.sh/reference/forge/forge-build):
To deploy a smart contract, you must use its _"build artifact file"_. It's a JSON file you can generate by running the [`forge build` command](https://getfoundry.sh/reference/forge/build):

```shell
forge build contracts/FlashBotsMultiCall.sol
Expand Down
2 changes: 1 addition & 1 deletion vocs/docs/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ async fn main() -> Result<(), Box<dyn Error>> {

Alloy supports the following out of the box for a best-in-class developer experience:

- Fully [Ethereum JSON-RPC](https://ethereum.github.io/execution-apis/docs/reference/json-rpc-api) compliant along with support for `trace`, `debug` and `anvil` endpoints
- Fully [Ethereum JSON-RPC](https://ethereum.github.io/execution-apis/) compliant along with support for `trace`, `debug` and `anvil` endpoints
- Seamless contract interactions using the [`sol!`](/contract-interactions/using-sol!) macro
- Highly performant [core primitives](https://github.com/alloy-rs/core) such as `U256` Operations and ABI encoding
- Override / extend provider and transport behavior using [layers](/examples/layers/README) and [fillers](/rpc-providers/understanding-fillers) akin to [Tower](https://docs.rs/tower/latest/tower/)'s [layers](https://docs.rs/tower/latest/tower/trait.Layer.html)
Expand Down
2 changes: 1 addition & 1 deletion vocs/docs/pages/introduction/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Feature flags decide which re-exports and implementations are compiled.
### Core values and ABI

[`alloy-core`](https://docs.rs/alloy-core/latest/alloy_core/) supplies addresses, byte strings,
fixed-width integers, hashes, ABI codecs, JSON ABI types, and the [`sol!` macro](https://docs.rs/alloy/latest/alloy/macro.sol.html).
fixed-width integers, hashes, ABI codecs, JSON ABI types, and the [`sol!` macro](https://docs.rs/alloy-sol-macro/latest/alloy_sol_macro/macro.sol.html).
These pieces can be used without a provider.

### Consensus and networks
Expand Down
2 changes: 1 addition & 1 deletion vocs/docs/pages/introduction/why-alloy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Understand Alloy's modular architecture, performance goals, provide

# Why Alloy?

Alloy is the next-generation Rust toolkit for Ethereum development and a complete rewrite of [ethers-rs](https://www.gakonst.com/ethers-rs/getting-started/intro.html). Alloy offers a modular, high-performance, and developer-friendly experience for building on EVM-compatible chains.
Alloy is the next-generation Rust toolkit for Ethereum development and a complete rewrite of [ethers-rs](https://github.com/gakonst/ethers-rs). Alloy offers a modular, high-performance, and developer-friendly experience for building on EVM-compatible chains.
It addresses pain points in existing Rust Ethereum tooling, such as performance bottlenecks,
cumbersome APIs, and feature flags that bloat applications.

Expand Down
2 changes: 1 addition & 1 deletion vocs/docs/pages/migrating-from-ethers/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ let x: U256 = b256.into();
let x = U256::from_be_bytes(b256.into())
```

Due to [Rust issue #50133](https://github.com/rust-lang/rust/issues/50133), the native `TryFrom` trait is not supported for `Uint`s. Instead, use [`UintTryFrom`](https://docs.rs/alloy/latest/alloy/primitives/ruint/trait.UintTryFrom.html) as follows:
Due to [Rust issue #50133](https://github.com/rust-lang/rust/issues/50133), the native `TryFrom` trait is not supported for `Uint`s. Instead, use [`UintTryFrom`](https://docs.rs/alloy-primitives/latest/alloy_primitives/ruint/trait.UintTryFrom.html) as follows:

```rust
use alloy_primitives::ruint::UintTryFrom;
Expand Down