diff --git a/lib/examples b/lib/examples index cb2cd94..5637573 160000 --- a/lib/examples +++ b/lib/examples @@ -1 +1 @@ -Subproject commit cb2cd9483cfdb8e54744131b34451c996dcc240c +Subproject commit 563757390a7575f52ef0ca2e6b2640d3d930a945 diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 84db54f..a5b6ef5 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -55,16 +55,19 @@ - [Deploy from artifact](./examples/contracts/deploy_from_artifact.md) - [Deploy from bytecode](./examples/contracts/deploy_from_bytecode.md) - [Deploy from contract](./examples/contracts/deploy_from_contract.md) + - [Deploy and link library](./examples/contracts/deploy_and_link_library.md) - [Interact with ABI](./examples/contracts/interact_with_abi.md) - [Interact with contract instance](./examples/contracts/interact_with_contract_instance.md) - [JSON-RPC error decoding](./examples/contracts/jsonrpc_error_decoding.md) - [Handling unknown return types](./examples/contracts/unknown_return_types.md) + - [Decode revert](./examples/contracts/revert_decoding.md) - [Fillers](./examples/fillers/README.md) - [Gas estimation filler](./examples/fillers/gas_filler.md) - [Nonce management filler](./examples/fillers/nonce_filler.md) - [Recommended fillers](./examples/fillers/recommended_fillers.md) - [Wallet management filler](./examples/fillers/wallet_filler.md) - [Layers](./examples/layers/README.md) + - [Fallback layer](./examples/layers/fallback_layer.md) - [Hyper transport layer](./examples/layers/hyper_http_layer.md) - [Request / response logging layer](./examples/layers/logging_layer.md) - [Retry-backoff layer](./examples/layers/retry_layer.md) @@ -91,6 +94,7 @@ - [WS with authentication](./examples/providers/ws_with_auth.md) - [Multicall Builder](./examples/providers/multicall.md) - [JSON-RPC Batch Request](./examples/providers/batch_rpc.md) + - [DynProvider](./examples/providers/dyn_provider.md) - [Queries](./examples/queries/README.md) - [Query contract storage](./examples/queries/query_contract_storage.md) - [Query contract deployed bytecode](./examples/queries/query_deployed_bytecode.md) @@ -112,6 +116,7 @@ - [Decode input](./examples/transactions/decode_input.md) - [Encode and decode EIP-1559 transaction](./examples/transactions/encode_decode_eip1559.md) - [Get gas price in USD](./examples/transactions/gas_price_usd.md) + - [Decode logs from transaction receipt](./examples/transactions/decode_receipt_log.md) - [Sign and send a raw transaction](./examples/transactions/send_raw_transaction.md) - [Send transaction with access list](./examples/transactions/with_access_list.md) - [Send EIP-1559 transaction](./examples/transactions/send_eip1559_transaction.md) @@ -125,6 +130,7 @@ - [Trace transaction](./examples/transactions/trace_transaction.md) - [Transfer ERC20 token](./examples/transactions/transfer_erc20.md) - [Transfer ETH](./examples/transactions/transfer_eth.md) + - [Transfer ERC20 token using a signed permit](./examples/transactions/permit2_signature_transfer.md) - [Wallets](./examples/wallets/README.md) - [AWS signer](./examples/wallets/aws_signer.md) - [GCP signer](./examples/wallets/gcp_signer.md) diff --git a/src/examples/advanced/any_network.md b/src/examples/advanced/any_network.md index b368bd9..00c6e00 100644 --- a/src/examples/advanced/any_network.md +++ b/src/examples/advanced/any_network.md @@ -1,7 +1,7 @@ - + ## Example: `any_network` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/advanced/examples/any_network.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/advanced/examples/any_network.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/advanced/examples/any_network.rs). diff --git a/src/examples/advanced/decoding_json_abi.md b/src/examples/advanced/decoding_json_abi.md index 3ec8b5b..c75d7ec 100644 --- a/src/examples/advanced/decoding_json_abi.md +++ b/src/examples/advanced/decoding_json_abi.md @@ -1,7 +1,7 @@ - + ## Example: `decoding_json_abi` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/advanced/examples/decoding_json_abi.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/advanced/examples/decoding_json_abi.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/advanced/examples/decoding_json_abi.rs). diff --git a/src/examples/advanced/encoding_dyn_abi.md b/src/examples/advanced/encoding_dyn_abi.md index 6816fa6..513425b 100644 --- a/src/examples/advanced/encoding_dyn_abi.md +++ b/src/examples/advanced/encoding_dyn_abi.md @@ -1,7 +1,7 @@ - + ## Example: `encoding_dyn_abi` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/advanced/examples/encoding_dyn_abi.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/advanced/examples/encoding_dyn_abi.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/advanced/examples/encoding_dyn_abi.rs). diff --git a/src/examples/advanced/encoding_sol_static.md b/src/examples/advanced/encoding_sol_static.md index d7bbe0c..313f28b 100644 --- a/src/examples/advanced/encoding_sol_static.md +++ b/src/examples/advanced/encoding_sol_static.md @@ -1,7 +1,7 @@ - + ## Example: `encoding_sol_static` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/advanced/examples/encoding_sol_static.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/advanced/examples/encoding_sol_static.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/advanced/examples/encoding_sol_static.rs). diff --git a/src/examples/advanced/foundry_fork_db.md b/src/examples/advanced/foundry_fork_db.md index 8695dff..1bfee6c 100644 --- a/src/examples/advanced/foundry_fork_db.md +++ b/src/examples/advanced/foundry_fork_db.md @@ -1,7 +1,7 @@ - + ## Example: `foundry_fork_db` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/advanced/examples/foundry_fork_db.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/advanced/examples/foundry_fork_db.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/advanced/examples/foundry_fork_db.rs). diff --git a/src/examples/advanced/reth_db_layer.md b/src/examples/advanced/reth_db_layer.md index 38f2d99..1c0d72f 100644 --- a/src/examples/advanced/reth_db_layer.md +++ b/src/examples/advanced/reth_db_layer.md @@ -1,7 +1,7 @@ - + ## Example: `reth_db_layer` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/advanced/examples/reth_db_layer.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/advanced/examples/reth_db_layer.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/advanced/examples/reth_db_layer.rs). diff --git a/src/examples/advanced/reth_db_provider.md b/src/examples/advanced/reth_db_provider.md index 468038a..190c107 100644 --- a/src/examples/advanced/reth_db_provider.md +++ b/src/examples/advanced/reth_db_provider.md @@ -1,7 +1,7 @@ - + ## Example: `reth_db_provider` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/advanced/examples/reth_db_provider.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/advanced/examples/reth_db_provider.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/advanced/examples/reth_db_provider.rs). diff --git a/src/examples/big-numbers/comparison_equivalence.md b/src/examples/big-numbers/comparison_equivalence.md index cabdb5a..474cedd 100644 --- a/src/examples/big-numbers/comparison_equivalence.md +++ b/src/examples/big-numbers/comparison_equivalence.md @@ -1,7 +1,7 @@ - + ## Example: `comparison_equivalence` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/big-numbers/examples/comparison_equivalence.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/big-numbers/examples/comparison_equivalence.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/big-numbers/examples/comparison_equivalence.rs). diff --git a/src/examples/big-numbers/conversion.md b/src/examples/big-numbers/conversion.md index ae8af30..798ca5a 100644 --- a/src/examples/big-numbers/conversion.md +++ b/src/examples/big-numbers/conversion.md @@ -1,7 +1,7 @@ - + ## Example: `conversion` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/big-numbers/examples/conversion.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/big-numbers/examples/conversion.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/big-numbers/examples/conversion.rs). diff --git a/src/examples/big-numbers/create_instances.md b/src/examples/big-numbers/create_instances.md index fd63834..77d9944 100644 --- a/src/examples/big-numbers/create_instances.md +++ b/src/examples/big-numbers/create_instances.md @@ -1,7 +1,7 @@ - + ## Example: `create_instances` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/big-numbers/examples/create_instances.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/big-numbers/examples/create_instances.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/big-numbers/examples/create_instances.rs). diff --git a/src/examples/big-numbers/math_operations.md b/src/examples/big-numbers/math_operations.md index f14742e..42267b9 100644 --- a/src/examples/big-numbers/math_operations.md +++ b/src/examples/big-numbers/math_operations.md @@ -1,7 +1,7 @@ - + ## Example: `math_operations` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/big-numbers/examples/math_operations.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/big-numbers/examples/math_operations.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/big-numbers/examples/math_operations.rs). diff --git a/src/examples/big-numbers/math_utilities.md b/src/examples/big-numbers/math_utilities.md index 91b8cf4..b5b9bc7 100644 --- a/src/examples/big-numbers/math_utilities.md +++ b/src/examples/big-numbers/math_utilities.md @@ -1,7 +1,7 @@ - + ## Example: `math_utilities` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/big-numbers/examples/math_utilities.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/big-numbers/examples/math_utilities.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/big-numbers/examples/math_utilities.rs). diff --git a/src/examples/comparison/compare_new_heads.md b/src/examples/comparison/compare_new_heads.md index ade4d0b..f3a9e31 100644 --- a/src/examples/comparison/compare_new_heads.md +++ b/src/examples/comparison/compare_new_heads.md @@ -1,7 +1,7 @@ - + ## Example: `compare_new_heads` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/comparison/examples/compare_new_heads.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/comparison/examples/compare_new_heads.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/comparison/examples/compare_new_heads.rs). diff --git a/src/examples/comparison/compare_pending_txs.md b/src/examples/comparison/compare_pending_txs.md index 85dc429..30920b7 100644 --- a/src/examples/comparison/compare_pending_txs.md +++ b/src/examples/comparison/compare_pending_txs.md @@ -1,7 +1,7 @@ - + ## Example: `compare_pending_txs` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/comparison/examples/compare_pending_txs.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/comparison/examples/compare_pending_txs.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/comparison/examples/compare_pending_txs.rs). diff --git a/src/examples/contracts/README.md b/src/examples/contracts/README.md index 0fe54e0..c0e5de5 100644 --- a/src/examples/contracts/README.md +++ b/src/examples/contracts/README.md @@ -3,6 +3,8 @@ - [Deploy from artifact](deploy_from_artifact.md) - [Deploy from bytecode](deploy_from_bytecode.md) - [Deploy from contract](deploy_from_contract.md) +- [Deploy and link library](deploy_and_link_library.md) - [Interact with ABI](interact_with_abi.md) - [Interact with contract instance](interact_with_contract_instance.md) -- [Handling unknown return types](unknown_return_types.md) \ No newline at end of file +- [Handling unknown return types](unknown_return_types.md) +- [Decode revert](revert_decoding.md) diff --git a/src/examples/contracts/deploy_and_link_library.md b/src/examples/contracts/deploy_and_link_library.md new file mode 100644 index 0000000..85ec540 --- /dev/null +++ b/src/examples/contracts/deploy_and_link_library.md @@ -0,0 +1,19 @@ + + + + + +## Example: `deploy_and_link_library` + +### Example + +To run this example: + +- Clone the [examples](https://github.com/alloy-rs/examples) repository: `git clone git@github.com:alloy-rs/examples.git` +- Run: `cargo run --example deploy_and_link_library` + +```rust,ignore +{{#include ../../../lib/examples/examples/contracts/examples/deploy_and_link_library.rs}} +``` + +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/contracts/examples/deploy_and_link_library.rs). diff --git a/src/examples/contracts/deploy_from_artifact.md b/src/examples/contracts/deploy_from_artifact.md index 2a4feb3..0a3a793 100644 --- a/src/examples/contracts/deploy_from_artifact.md +++ b/src/examples/contracts/deploy_from_artifact.md @@ -1,7 +1,7 @@ - + ## Example: `deploy_from_artifact` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/contracts/examples/deploy_from_artifact.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/contracts/examples/deploy_from_artifact.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/contracts/examples/deploy_from_artifact.rs). diff --git a/src/examples/contracts/deploy_from_bytecode.md b/src/examples/contracts/deploy_from_bytecode.md index 7aba7f2..8518b65 100644 --- a/src/examples/contracts/deploy_from_bytecode.md +++ b/src/examples/contracts/deploy_from_bytecode.md @@ -1,7 +1,7 @@ - + ## Example: `deploy_from_bytecode` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/contracts/examples/deploy_from_bytecode.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/contracts/examples/deploy_from_bytecode.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/contracts/examples/deploy_from_bytecode.rs). diff --git a/src/examples/contracts/deploy_from_contract.md b/src/examples/contracts/deploy_from_contract.md index e9fffae..916f918 100644 --- a/src/examples/contracts/deploy_from_contract.md +++ b/src/examples/contracts/deploy_from_contract.md @@ -1,7 +1,7 @@ - + ## Example: `deploy_from_contract` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/contracts/examples/deploy_from_contract.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/contracts/examples/deploy_from_contract.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/contracts/examples/deploy_from_contract.rs). diff --git a/src/examples/contracts/interact_with_abi.md b/src/examples/contracts/interact_with_abi.md index 94d16c8..cf9e340 100644 --- a/src/examples/contracts/interact_with_abi.md +++ b/src/examples/contracts/interact_with_abi.md @@ -1,7 +1,7 @@ - + ## Example: `interact_with_abi` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/contracts/examples/interact_with_abi.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/contracts/examples/interact_with_abi.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/contracts/examples/interact_with_abi.rs). diff --git a/src/examples/contracts/interact_with_contract_instance.md b/src/examples/contracts/interact_with_contract_instance.md index d0cd82a..b4b18f3 100644 --- a/src/examples/contracts/interact_with_contract_instance.md +++ b/src/examples/contracts/interact_with_contract_instance.md @@ -1,7 +1,7 @@ - + ## Example: `interact_with_contract_instance` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/contracts/examples/interact_with_contract_instance.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/contracts/examples/interact_with_contract_instance.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/contracts/examples/interact_with_contract_instance.rs). diff --git a/src/examples/contracts/jsonrpc_error_decoding.md b/src/examples/contracts/jsonrpc_error_decoding.md index 6f9f6ef..f0b7c0d 100644 --- a/src/examples/contracts/jsonrpc_error_decoding.md +++ b/src/examples/contracts/jsonrpc_error_decoding.md @@ -1,7 +1,7 @@ - + ## Example: `jsonrpc_error_decoding` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/contracts/examples/jsonrpc_error_decoding.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/contracts/examples/jsonrpc_error_decoding.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/contracts/examples/jsonrpc_error_decoding.rs). diff --git a/src/examples/contracts/revert_decoding.md b/src/examples/contracts/revert_decoding.md new file mode 100644 index 0000000..4b8c3ea --- /dev/null +++ b/src/examples/contracts/revert_decoding.md @@ -0,0 +1,19 @@ + + + + + +## Example: `revert_decoding` + +### Example + +To run this example: + +- Clone the [examples](https://github.com/alloy-rs/examples) repository: `git clone git@github.com:alloy-rs/examples.git` +- Run: `cargo run --example revert_decoding` + +```rust,ignore +{{#include ../../../lib/examples/examples/contracts/examples/revert_decoding.rs}} +``` + +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/contracts/examples/revert_decoding.rs). diff --git a/src/examples/contracts/unknown_return_types.md b/src/examples/contracts/unknown_return_types.md index 7125f31..219d15f 100644 --- a/src/examples/contracts/unknown_return_types.md +++ b/src/examples/contracts/unknown_return_types.md @@ -1,7 +1,7 @@ - + ## Example: `unknown_return_types` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/contracts/examples/unknown_return_types.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/contracts/examples/unknown_return_types.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/contracts/examples/unknown_return_types.rs). diff --git a/src/examples/fillers/gas_filler.md b/src/examples/fillers/gas_filler.md index 48dbabd..f4baeaf 100644 --- a/src/examples/fillers/gas_filler.md +++ b/src/examples/fillers/gas_filler.md @@ -1,7 +1,7 @@ - + ## Example: `gas_filler` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/fillers/examples/gas_filler.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/fillers/examples/gas_filler.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/fillers/examples/gas_filler.rs). diff --git a/src/examples/fillers/nonce_filler.md b/src/examples/fillers/nonce_filler.md index 70c0b76..d00f8d6 100644 --- a/src/examples/fillers/nonce_filler.md +++ b/src/examples/fillers/nonce_filler.md @@ -1,7 +1,7 @@ - + ## Example: `nonce_filler` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/fillers/examples/nonce_filler.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/fillers/examples/nonce_filler.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/fillers/examples/nonce_filler.rs). diff --git a/src/examples/fillers/recommended_fillers.md b/src/examples/fillers/recommended_fillers.md index 33bea57..8595099 100644 --- a/src/examples/fillers/recommended_fillers.md +++ b/src/examples/fillers/recommended_fillers.md @@ -1,7 +1,7 @@ - + ## Example: `recommended_fillers` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/fillers/examples/recommended_fillers.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/fillers/examples/recommended_fillers.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/fillers/examples/recommended_fillers.rs). diff --git a/src/examples/fillers/wallet_filler.md b/src/examples/fillers/wallet_filler.md index e208adf..54bebcb 100644 --- a/src/examples/fillers/wallet_filler.md +++ b/src/examples/fillers/wallet_filler.md @@ -1,7 +1,7 @@ - + ## Example: `wallet_filler` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/fillers/examples/wallet_filler.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/fillers/examples/wallet_filler.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/fillers/examples/wallet_filler.rs). diff --git a/src/examples/layers/README.md b/src/examples/layers/README.md index 27307f2..721f0c1 100644 --- a/src/examples/layers/README.md +++ b/src/examples/layers/README.md @@ -1,5 +1,6 @@ ## Layers +- [Fallback layer](fallback_layer.md) - [Hyper layer transport](hyper_http_layer.md) - [Request / response logging layer](logging_layer.md) - [Retry-backoff layer](retry_layer.md) diff --git a/src/examples/layers/fallback_layer.md b/src/examples/layers/fallback_layer.md new file mode 100644 index 0000000..5d70314 --- /dev/null +++ b/src/examples/layers/fallback_layer.md @@ -0,0 +1,19 @@ + + + + + +## Example: `fallback_layer` + +### Example + +To run this example: + +- Clone the [examples](https://github.com/alloy-rs/examples) repository: `git clone git@github.com:alloy-rs/examples.git` +- Run: `cargo run --example fallback_layer` + +```rust,ignore +{{#include ../../../lib/examples/examples/layers/examples/fallback_layer.rs}} +``` + +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/layers/examples/fallback_layer.rs). diff --git a/src/examples/layers/hyper_http_layer.md b/src/examples/layers/hyper_http_layer.md index cd79de3..327cf9e 100644 --- a/src/examples/layers/hyper_http_layer.md +++ b/src/examples/layers/hyper_http_layer.md @@ -1,7 +1,7 @@ - + ## Example: `hyper_http_layer` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/layers/examples/hyper_http_layer.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/layers/examples/hyper_http_layer.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/layers/examples/hyper_http_layer.rs). diff --git a/src/examples/layers/logging_layer.md b/src/examples/layers/logging_layer.md index d4a3721..b11d27e 100644 --- a/src/examples/layers/logging_layer.md +++ b/src/examples/layers/logging_layer.md @@ -1,7 +1,7 @@ - + ## Example: `logging_layer` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/layers/examples/logging_layer.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/layers/examples/logging_layer.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/layers/examples/logging_layer.rs). diff --git a/src/examples/layers/retry_layer.md b/src/examples/layers/retry_layer.md index 2b71d58..034d367 100644 --- a/src/examples/layers/retry_layer.md +++ b/src/examples/layers/retry_layer.md @@ -1,7 +1,7 @@ - + ## Example: `retry_layer` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/layers/examples/retry_layer.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/layers/examples/retry_layer.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/layers/examples/retry_layer.rs). diff --git a/src/examples/node-bindings/anvil_deploy_contract.md b/src/examples/node-bindings/anvil_deploy_contract.md index 1cc4da7..67c137f 100644 --- a/src/examples/node-bindings/anvil_deploy_contract.md +++ b/src/examples/node-bindings/anvil_deploy_contract.md @@ -1,7 +1,7 @@ - + ## Example: `anvil_deploy_contract` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/node-bindings/examples/anvil_deploy_contract.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/node-bindings/examples/anvil_deploy_contract.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/node-bindings/examples/anvil_deploy_contract.rs). diff --git a/src/examples/node-bindings/anvil_fork_instance.md b/src/examples/node-bindings/anvil_fork_instance.md index ec0bd27..9fc8eb4 100644 --- a/src/examples/node-bindings/anvil_fork_instance.md +++ b/src/examples/node-bindings/anvil_fork_instance.md @@ -1,7 +1,7 @@ - + ## Example: `anvil_fork_instance` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/node-bindings/examples/anvil_fork_instance.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/node-bindings/examples/anvil_fork_instance.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/node-bindings/examples/anvil_fork_instance.rs). diff --git a/src/examples/node-bindings/anvil_fork_provider.md b/src/examples/node-bindings/anvil_fork_provider.md index 7a161f9..7ba2aed 100644 --- a/src/examples/node-bindings/anvil_fork_provider.md +++ b/src/examples/node-bindings/anvil_fork_provider.md @@ -1,7 +1,7 @@ - + ## Example: `anvil_fork_provider` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/node-bindings/examples/anvil_fork_provider.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/node-bindings/examples/anvil_fork_provider.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/node-bindings/examples/anvil_fork_provider.rs). diff --git a/src/examples/node-bindings/anvil_local_instance.md b/src/examples/node-bindings/anvil_local_instance.md index 74248fe..868c585 100644 --- a/src/examples/node-bindings/anvil_local_instance.md +++ b/src/examples/node-bindings/anvil_local_instance.md @@ -1,7 +1,7 @@ - + ## Example: `anvil_local_instance` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/node-bindings/examples/anvil_local_instance.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/node-bindings/examples/anvil_local_instance.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/node-bindings/examples/anvil_local_instance.rs). diff --git a/src/examples/node-bindings/anvil_local_provider.md b/src/examples/node-bindings/anvil_local_provider.md index 95dd901..5a2657a 100644 --- a/src/examples/node-bindings/anvil_local_provider.md +++ b/src/examples/node-bindings/anvil_local_provider.md @@ -1,7 +1,7 @@ - + ## Example: `anvil_local_provider` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/node-bindings/examples/anvil_local_provider.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/node-bindings/examples/anvil_local_provider.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/node-bindings/examples/anvil_local_provider.rs). diff --git a/src/examples/node-bindings/anvil_set_storage_at.md b/src/examples/node-bindings/anvil_set_storage_at.md index dc79cf1..d47a5a8 100644 --- a/src/examples/node-bindings/anvil_set_storage_at.md +++ b/src/examples/node-bindings/anvil_set_storage_at.md @@ -1,7 +1,7 @@ - + ## Example: `anvil_set_storage_at` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/node-bindings/examples/anvil_set_storage_at.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/node-bindings/examples/anvil_set_storage_at.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/node-bindings/examples/anvil_set_storage_at.rs). diff --git a/src/examples/node-bindings/geth_local_instance.md b/src/examples/node-bindings/geth_local_instance.md index 14ea328..b28c4ec 100644 --- a/src/examples/node-bindings/geth_local_instance.md +++ b/src/examples/node-bindings/geth_local_instance.md @@ -1,7 +1,7 @@ - + ## Example: `geth_local_instance` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/node-bindings/examples/geth_local_instance.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/node-bindings/examples/geth_local_instance.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/node-bindings/examples/geth_local_instance.rs). diff --git a/src/examples/node-bindings/reth_local_instance.md b/src/examples/node-bindings/reth_local_instance.md index 4d50d3d..9ce4a1e 100644 --- a/src/examples/node-bindings/reth_local_instance.md +++ b/src/examples/node-bindings/reth_local_instance.md @@ -1,7 +1,7 @@ - + ## Example: `reth_local_instance` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/node-bindings/examples/reth_local_instance.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/node-bindings/examples/reth_local_instance.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/node-bindings/examples/reth_local_instance.rs). diff --git a/src/examples/primitives/bytes_and_address_types.md b/src/examples/primitives/bytes_and_address_types.md index e997f55..156b305 100644 --- a/src/examples/primitives/bytes_and_address_types.md +++ b/src/examples/primitives/bytes_and_address_types.md @@ -1,7 +1,7 @@ - + ## Example: `bytes_and_address_types` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/primitives/examples/bytes_and_address_types.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/primitives/examples/bytes_and_address_types.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/primitives/examples/bytes_and_address_types.rs). diff --git a/src/examples/primitives/hashing_functions.md b/src/examples/primitives/hashing_functions.md index dcc2693..63bdd69 100644 --- a/src/examples/primitives/hashing_functions.md +++ b/src/examples/primitives/hashing_functions.md @@ -1,7 +1,7 @@ - + ## Example: `hashing_functions` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/primitives/examples/hashing_functions.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/primitives/examples/hashing_functions.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/primitives/examples/hashing_functions.rs). diff --git a/src/examples/providers/README.md b/src/examples/providers/README.md index bcc8ef2..6421516 100644 --- a/src/examples/providers/README.md +++ b/src/examples/providers/README.md @@ -10,3 +10,4 @@ - [Multicall Builder](multicall.md) - [WS with authentication](ws_with_auth.md) - [JSON-RPC Batch Request](batch_rpc.md) +- [DynProvider](dyn_provider.md) diff --git a/src/examples/providers/batch_rpc.md b/src/examples/providers/batch_rpc.md index 366e9c5..6a8b908 100644 --- a/src/examples/providers/batch_rpc.md +++ b/src/examples/providers/batch_rpc.md @@ -1,7 +1,7 @@ - + ## Example: `batch_rpc` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/providers/examples/batch_rpc.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/providers/examples/batch_rpc.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/providers/examples/batch_rpc.rs). diff --git a/src/examples/providers/builder.md b/src/examples/providers/builder.md index e0d5512..6b11f4a 100644 --- a/src/examples/providers/builder.md +++ b/src/examples/providers/builder.md @@ -1,7 +1,7 @@ - + ## Example: `builder` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/providers/examples/builder.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/providers/examples/builder.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/providers/examples/builder.rs). diff --git a/src/examples/providers/builtin.md b/src/examples/providers/builtin.md index 1662114..130e7d7 100644 --- a/src/examples/providers/builtin.md +++ b/src/examples/providers/builtin.md @@ -1,7 +1,7 @@ - + ## Example: `builtin` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/providers/examples/builtin.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/providers/examples/builtin.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/providers/examples/builtin.rs). diff --git a/src/examples/providers/dyn_provider.md b/src/examples/providers/dyn_provider.md new file mode 100644 index 0000000..7e4f120 --- /dev/null +++ b/src/examples/providers/dyn_provider.md @@ -0,0 +1,19 @@ + + + + + +## Example: `dyn_provider` + +### Example + +To run this example: + +- Clone the [examples](https://github.com/alloy-rs/examples) repository: `git clone git@github.com:alloy-rs/examples.git` +- Run: `cargo run --example dyn_provider` + +```rust,ignore +{{#include ../../../lib/examples/examples/providers/examples/dyn_provider.rs}} +``` + +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/providers/examples/dyn_provider.rs). diff --git a/src/examples/providers/http.md b/src/examples/providers/http.md index 41f1338..95d5f4d 100644 --- a/src/examples/providers/http.md +++ b/src/examples/providers/http.md @@ -1,7 +1,7 @@ - + ## Example: `http` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/providers/examples/http.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/providers/examples/http.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/providers/examples/http.rs). diff --git a/src/examples/providers/http_with_auth.md b/src/examples/providers/http_with_auth.md index bba28ea..8123ca6 100644 --- a/src/examples/providers/http_with_auth.md +++ b/src/examples/providers/http_with_auth.md @@ -1,7 +1,7 @@ - + ## Example: `http_with_auth` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/providers/examples/http_with_auth.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/providers/examples/http_with_auth.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/providers/examples/http_with_auth.rs). diff --git a/src/examples/providers/ipc.md b/src/examples/providers/ipc.md index bc63dbe..49f316a 100644 --- a/src/examples/providers/ipc.md +++ b/src/examples/providers/ipc.md @@ -1,7 +1,7 @@ - + ## Example: `ipc` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/providers/examples/ipc.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/providers/examples/ipc.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/providers/examples/ipc.rs). diff --git a/src/examples/providers/multicall.md b/src/examples/providers/multicall.md index 87a12b4..5e04dad 100644 --- a/src/examples/providers/multicall.md +++ b/src/examples/providers/multicall.md @@ -1,7 +1,7 @@ - + ## Example: `multicall` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/providers/examples/multicall.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/providers/examples/multicall.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/providers/examples/multicall.rs). diff --git a/src/examples/providers/wrapped_provider.md b/src/examples/providers/wrapped_provider.md index 7569994..b2a9d13 100644 --- a/src/examples/providers/wrapped_provider.md +++ b/src/examples/providers/wrapped_provider.md @@ -1,7 +1,7 @@ - + ## Example: `wrapped_provider` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/providers/examples/wrapped_provider.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/providers/examples/wrapped_provider.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/providers/examples/wrapped_provider.rs). diff --git a/src/examples/providers/ws.md b/src/examples/providers/ws.md index 5372690..5d6525c 100644 --- a/src/examples/providers/ws.md +++ b/src/examples/providers/ws.md @@ -1,7 +1,7 @@ - + ## Example: `ws` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/providers/examples/ws.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/providers/examples/ws.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/providers/examples/ws.rs). diff --git a/src/examples/providers/ws_with_auth.md b/src/examples/providers/ws_with_auth.md index a830a02..bfe2388 100644 --- a/src/examples/providers/ws_with_auth.md +++ b/src/examples/providers/ws_with_auth.md @@ -1,7 +1,7 @@ - + ## Example: `ws_with_auth` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/providers/examples/ws_with_auth.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/providers/examples/ws_with_auth.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/providers/examples/ws_with_auth.rs). diff --git a/src/examples/queries/query_contract_storage.md b/src/examples/queries/query_contract_storage.md index 4cbce52..abd607e 100644 --- a/src/examples/queries/query_contract_storage.md +++ b/src/examples/queries/query_contract_storage.md @@ -1,7 +1,7 @@ - + ## Example: `query_contract_storage` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/queries/examples/query_contract_storage.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/queries/examples/query_contract_storage.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/queries/examples/query_contract_storage.rs). diff --git a/src/examples/queries/query_deployed_bytecode.md b/src/examples/queries/query_deployed_bytecode.md index 4caf199..2b42f98 100644 --- a/src/examples/queries/query_deployed_bytecode.md +++ b/src/examples/queries/query_deployed_bytecode.md @@ -1,7 +1,7 @@ - + ## Example: `query_deployed_bytecode` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/queries/examples/query_deployed_bytecode.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/queries/examples/query_deployed_bytecode.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/queries/examples/query_deployed_bytecode.rs). diff --git a/src/examples/queries/query_logs.md b/src/examples/queries/query_logs.md index 3d1ab84..37a17b9 100644 --- a/src/examples/queries/query_logs.md +++ b/src/examples/queries/query_logs.md @@ -1,7 +1,7 @@ - + ## Example: `query_logs` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/queries/examples/query_logs.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/queries/examples/query_logs.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/queries/examples/query_logs.rs). diff --git a/src/examples/sol-macro/contract.md b/src/examples/sol-macro/contract.md index e9fffae..916f918 100644 --- a/src/examples/sol-macro/contract.md +++ b/src/examples/sol-macro/contract.md @@ -1,7 +1,7 @@ - + ## Example: `deploy_from_contract` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/contracts/examples/deploy_from_contract.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/contracts/examples/deploy_from_contract.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/contracts/examples/deploy_from_contract.rs). diff --git a/src/examples/sol-macro/decode_returns.md b/src/examples/sol-macro/decode_returns.md index 8b8210b..b064d86 100644 --- a/src/examples/sol-macro/decode_returns.md +++ b/src/examples/sol-macro/decode_returns.md @@ -1,7 +1,7 @@ - + ## Example: `decode_returns` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/sol-macro/examples/decode_returns.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/sol-macro/examples/decode_returns.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/sol-macro/examples/decode_returns.rs). diff --git a/src/examples/sol-macro/events_errors.md b/src/examples/sol-macro/events_errors.md index ac8b560..9152400 100644 --- a/src/examples/sol-macro/events_errors.md +++ b/src/examples/sol-macro/events_errors.md @@ -1,7 +1,7 @@ - + ## Example: `events_errors` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/sol-macro/examples/events_errors.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/sol-macro/examples/events_errors.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/sol-macro/examples/events_errors.rs). diff --git a/src/examples/sol-macro/structs_enums.md b/src/examples/sol-macro/structs_enums.md index 4ce46b0..22f2506 100644 --- a/src/examples/sol-macro/structs_enums.md +++ b/src/examples/sol-macro/structs_enums.md @@ -1,7 +1,7 @@ - + ## Example: `structs_enums` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/sol-macro/examples/structs_enums.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/sol-macro/examples/structs_enums.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/sol-macro/examples/structs_enums.rs). diff --git a/src/examples/sol-macro/user_defined_types.md b/src/examples/sol-macro/user_defined_types.md index 2f5e134..f7e4bae 100644 --- a/src/examples/sol-macro/user_defined_types.md +++ b/src/examples/sol-macro/user_defined_types.md @@ -1,7 +1,7 @@ - + ## Example: `user_defined_types` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/sol-macro/examples/user_defined_types.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/sol-macro/examples/user_defined_types.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/sol-macro/examples/user_defined_types.rs). diff --git a/src/examples/subscriptions/event_multiplexer.md b/src/examples/subscriptions/event_multiplexer.md index e8a2c2a..0a17258 100644 --- a/src/examples/subscriptions/event_multiplexer.md +++ b/src/examples/subscriptions/event_multiplexer.md @@ -1,7 +1,7 @@ - + ## Example: `event_multiplexer` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/subscriptions/examples/event_multiplexer.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/subscriptions/examples/event_multiplexer.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/subscriptions/examples/event_multiplexer.rs). diff --git a/src/examples/subscriptions/poll_logs.md b/src/examples/subscriptions/poll_logs.md index d3c4e20..c510eb5 100644 --- a/src/examples/subscriptions/poll_logs.md +++ b/src/examples/subscriptions/poll_logs.md @@ -1,7 +1,7 @@ - + ## Example: `poll_logs` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/subscriptions/examples/poll_logs.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/subscriptions/examples/poll_logs.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/subscriptions/examples/poll_logs.rs). diff --git a/src/examples/subscriptions/subscribe_all_logs.md b/src/examples/subscriptions/subscribe_all_logs.md index b4b41b5..bdd2ada 100644 --- a/src/examples/subscriptions/subscribe_all_logs.md +++ b/src/examples/subscriptions/subscribe_all_logs.md @@ -1,7 +1,7 @@ - + ## Example: `subscribe_all_logs` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/subscriptions/examples/subscribe_all_logs.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/subscriptions/examples/subscribe_all_logs.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/subscriptions/examples/subscribe_all_logs.rs). diff --git a/src/examples/subscriptions/subscribe_blocks.md b/src/examples/subscriptions/subscribe_blocks.md index 6f47038..7296639 100644 --- a/src/examples/subscriptions/subscribe_blocks.md +++ b/src/examples/subscriptions/subscribe_blocks.md @@ -1,7 +1,7 @@ - + ## Example: `subscribe_blocks` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/subscriptions/examples/subscribe_blocks.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/subscriptions/examples/subscribe_blocks.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/subscriptions/examples/subscribe_blocks.rs). diff --git a/src/examples/subscriptions/subscribe_logs.md b/src/examples/subscriptions/subscribe_logs.md index d19cca8..ca26a4c 100644 --- a/src/examples/subscriptions/subscribe_logs.md +++ b/src/examples/subscriptions/subscribe_logs.md @@ -1,7 +1,7 @@ - + ## Example: `subscribe_logs` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/subscriptions/examples/subscribe_logs.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/subscriptions/examples/subscribe_logs.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/subscriptions/examples/subscribe_logs.rs). diff --git a/src/examples/subscriptions/subscribe_pending_transactions.md b/src/examples/subscriptions/subscribe_pending_transactions.md index e951331..2597ae6 100644 --- a/src/examples/subscriptions/subscribe_pending_transactions.md +++ b/src/examples/subscriptions/subscribe_pending_transactions.md @@ -1,7 +1,7 @@ - + ## Example: `subscribe_pending_transactions` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/subscriptions/examples/subscribe_pending_transactions.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/subscriptions/examples/subscribe_pending_transactions.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/subscriptions/examples/subscribe_pending_transactions.rs). diff --git a/src/examples/transactions/README.md b/src/examples/transactions/README.md index 08a6a67..0ed3596 100644 --- a/src/examples/transactions/README.md +++ b/src/examples/transactions/README.md @@ -3,6 +3,7 @@ - [Decode input](decode_input.md) - [Encode and decode EIP-1559 transaction](encode_decode_eip1559.md) - [Get gas price in USD](gas_price_usd.md) +- [Decode logs from transaction receipt](decode_receipt_log.md) - [Send EIP-1559 transaction](send_eip1559_transaction.md) - [Send EIP-4844 transaction](send_eip4844_transaction.md) - [Send EIP-7702 transaction](send_eip7702_transaction.md) @@ -16,3 +17,4 @@ - [Transfer ERC20 token](transfer_erc20.md) - [Transfer ETH](transfer_eth.md) - [Send transaction with access list](with_access_list.md) +- [Transfer ERC20 token using a signed permit](permit2_signature_transfer.md) diff --git a/src/examples/transactions/debug_trace_call_many.md b/src/examples/transactions/debug_trace_call_many.md index af8dc7c..1bf327a 100644 --- a/src/examples/transactions/debug_trace_call_many.md +++ b/src/examples/transactions/debug_trace_call_many.md @@ -1,7 +1,7 @@ - + ## Example: `debug_trace_call_many` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/transactions/examples/debug_trace_call_many.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/transactions/examples/debug_trace_call_many.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/transactions/examples/debug_trace_call_many.rs). diff --git a/src/examples/transactions/decode_input.md b/src/examples/transactions/decode_input.md index f7cecfe..0eb6cb2 100644 --- a/src/examples/transactions/decode_input.md +++ b/src/examples/transactions/decode_input.md @@ -1,7 +1,7 @@ - + ## Example: `decode_input` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/transactions/examples/decode_input.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/transactions/examples/decode_input.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/transactions/examples/decode_input.rs). diff --git a/src/examples/transactions/decode_receipt_log.md b/src/examples/transactions/decode_receipt_log.md new file mode 100644 index 0000000..1784328 --- /dev/null +++ b/src/examples/transactions/decode_receipt_log.md @@ -0,0 +1,19 @@ + + + + + +## Example: `decode_receipt_log` + +### Example + +To run this example: + +- Clone the [examples](https://github.com/alloy-rs/examples) repository: `git clone git@github.com:alloy-rs/examples.git` +- Run: `cargo run --example decode_receipt_log` + +```rust,ignore +{{#include ../../../lib/examples/examples/transactions/examples/decode_receipt_log.rs}} +``` + +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/transactions/examples/decode_receipt_log.rs). diff --git a/src/examples/transactions/encode_decode_eip1559.md b/src/examples/transactions/encode_decode_eip1559.md index 4fb87e7..65cfdfd 100644 --- a/src/examples/transactions/encode_decode_eip1559.md +++ b/src/examples/transactions/encode_decode_eip1559.md @@ -1,7 +1,7 @@ - + ## Example: `encode_decode_eip1559` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/transactions/examples/encode_decode_eip1559.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/transactions/examples/encode_decode_eip1559.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/transactions/examples/encode_decode_eip1559.rs). diff --git a/src/examples/transactions/gas_price_usd.md b/src/examples/transactions/gas_price_usd.md index 473f78d..d5cba53 100644 --- a/src/examples/transactions/gas_price_usd.md +++ b/src/examples/transactions/gas_price_usd.md @@ -1,7 +1,7 @@ - + ## Example: `gas_price_usd` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/transactions/examples/gas_price_usd.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/transactions/examples/gas_price_usd.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/transactions/examples/gas_price_usd.rs). diff --git a/src/examples/transactions/permit2_signature_transfer.md b/src/examples/transactions/permit2_signature_transfer.md new file mode 100644 index 0000000..3f1aaf2 --- /dev/null +++ b/src/examples/transactions/permit2_signature_transfer.md @@ -0,0 +1,19 @@ + + + + + +## Example: `permit2_signature_transfer` + +### Example + +To run this example: + +- Clone the [examples](https://github.com/alloy-rs/examples) repository: `git clone git@github.com:alloy-rs/examples.git` +- Run: `cargo run --example permit2_signature_transfer` + +```rust,ignore +{{#include ../../../lib/examples/examples/transactions/examples/permit2_signature_transfer.rs}} +``` + +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/transactions/examples/permit2_signature_transfer.rs). diff --git a/src/examples/transactions/send_eip1559_transaction.md b/src/examples/transactions/send_eip1559_transaction.md index f502b53..fb52b80 100644 --- a/src/examples/transactions/send_eip1559_transaction.md +++ b/src/examples/transactions/send_eip1559_transaction.md @@ -1,7 +1,7 @@ - + ## Example: `send_eip1559_transaction` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/transactions/examples/send_eip1559_transaction.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/transactions/examples/send_eip1559_transaction.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/transactions/examples/send_eip1559_transaction.rs). diff --git a/src/examples/transactions/send_eip4844_transaction.md b/src/examples/transactions/send_eip4844_transaction.md index dd6cecc..1443b59 100644 --- a/src/examples/transactions/send_eip4844_transaction.md +++ b/src/examples/transactions/send_eip4844_transaction.md @@ -1,7 +1,7 @@ - + ## Example: `send_eip4844_transaction` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/transactions/examples/send_eip4844_transaction.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/transactions/examples/send_eip4844_transaction.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/transactions/examples/send_eip4844_transaction.rs). diff --git a/src/examples/transactions/send_eip7702_transaction.md b/src/examples/transactions/send_eip7702_transaction.md index 86a0edc..73cb7c9 100644 --- a/src/examples/transactions/send_eip7702_transaction.md +++ b/src/examples/transactions/send_eip7702_transaction.md @@ -1,7 +1,7 @@ - + ## Example: `send_eip7702_transaction` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/transactions/examples/send_eip7702_transaction.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/transactions/examples/send_eip7702_transaction.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/transactions/examples/send_eip7702_transaction.rs). diff --git a/src/examples/transactions/send_legacy_transaction.md b/src/examples/transactions/send_legacy_transaction.md index 1975e63..193c87b 100644 --- a/src/examples/transactions/send_legacy_transaction.md +++ b/src/examples/transactions/send_legacy_transaction.md @@ -1,7 +1,7 @@ - + ## Example: `send_legacy_transaction` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/transactions/examples/send_legacy_transaction.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/transactions/examples/send_legacy_transaction.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/transactions/examples/send_legacy_transaction.rs). diff --git a/src/examples/transactions/send_private_transaction.md b/src/examples/transactions/send_private_transaction.md index b48930e..686e277 100644 --- a/src/examples/transactions/send_private_transaction.md +++ b/src/examples/transactions/send_private_transaction.md @@ -1,7 +1,7 @@ - + ## Example: `send_private_transaction` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/transactions/examples/send_private_transaction.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/transactions/examples/send_private_transaction.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/transactions/examples/send_private_transaction.rs). diff --git a/src/examples/transactions/send_raw_transaction.md b/src/examples/transactions/send_raw_transaction.md index 1ffff55..bdcb8e0 100644 --- a/src/examples/transactions/send_raw_transaction.md +++ b/src/examples/transactions/send_raw_transaction.md @@ -1,7 +1,7 @@ - + ## Example: `send_raw_transaction` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/transactions/examples/send_raw_transaction.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/transactions/examples/send_raw_transaction.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/transactions/examples/send_raw_transaction.rs). diff --git a/src/examples/transactions/trace_call.md b/src/examples/transactions/trace_call.md index c747cdc..be3727f 100644 --- a/src/examples/transactions/trace_call.md +++ b/src/examples/transactions/trace_call.md @@ -1,7 +1,7 @@ - + ## Example: `trace_call` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/transactions/examples/trace_call.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/transactions/examples/trace_call.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/transactions/examples/trace_call.rs). diff --git a/src/examples/transactions/trace_call_many.md b/src/examples/transactions/trace_call_many.md index e70ddfc..d7a2859 100644 --- a/src/examples/transactions/trace_call_many.md +++ b/src/examples/transactions/trace_call_many.md @@ -1,7 +1,7 @@ - + ## Example: `trace_call_many` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/transactions/examples/trace_call_many.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/transactions/examples/trace_call_many.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/transactions/examples/trace_call_many.rs). diff --git a/src/examples/transactions/trace_transaction.md b/src/examples/transactions/trace_transaction.md index e46915e..d09eba6 100644 --- a/src/examples/transactions/trace_transaction.md +++ b/src/examples/transactions/trace_transaction.md @@ -1,7 +1,7 @@ - + ## Example: `trace_transaction` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/transactions/examples/trace_transaction.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/transactions/examples/trace_transaction.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/transactions/examples/trace_transaction.rs). diff --git a/src/examples/transactions/transfer_erc20.md b/src/examples/transactions/transfer_erc20.md index 59c8794..cc8dab5 100644 --- a/src/examples/transactions/transfer_erc20.md +++ b/src/examples/transactions/transfer_erc20.md @@ -1,7 +1,7 @@ - + ## Example: `transfer_erc20` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/transactions/examples/transfer_erc20.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/transactions/examples/transfer_erc20.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/transactions/examples/transfer_erc20.rs). diff --git a/src/examples/transactions/transfer_eth.md b/src/examples/transactions/transfer_eth.md index b3bb88a..2254325 100644 --- a/src/examples/transactions/transfer_eth.md +++ b/src/examples/transactions/transfer_eth.md @@ -1,7 +1,7 @@ - + ## Example: `transfer_eth` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/transactions/examples/transfer_eth.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/transactions/examples/transfer_eth.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/transactions/examples/transfer_eth.rs). diff --git a/src/examples/transactions/with_access_list.md b/src/examples/transactions/with_access_list.md index 179875f..63520b7 100644 --- a/src/examples/transactions/with_access_list.md +++ b/src/examples/transactions/with_access_list.md @@ -1,7 +1,7 @@ - + ## Example: `with_access_list` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/transactions/examples/with_access_list.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/transactions/examples/with_access_list.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/transactions/examples/with_access_list.rs). diff --git a/src/examples/wallets/aws_signer.md b/src/examples/wallets/aws_signer.md index fa72ab6..dfe7ebb 100644 --- a/src/examples/wallets/aws_signer.md +++ b/src/examples/wallets/aws_signer.md @@ -1,7 +1,7 @@ - + ## Example: `aws_signer` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/wallets/examples/aws_signer.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/wallets/examples/aws_signer.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/wallets/examples/aws_signer.rs). diff --git a/src/examples/wallets/create_keystore.md b/src/examples/wallets/create_keystore.md index 52547d3..abf8454 100644 --- a/src/examples/wallets/create_keystore.md +++ b/src/examples/wallets/create_keystore.md @@ -1,7 +1,7 @@ - + ## Example: `create_keystore` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/wallets/examples/create_keystore.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/wallets/examples/create_keystore.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/wallets/examples/create_keystore.rs). diff --git a/src/examples/wallets/gcp_signer.md b/src/examples/wallets/gcp_signer.md index d5e69c0..462a44f 100644 --- a/src/examples/wallets/gcp_signer.md +++ b/src/examples/wallets/gcp_signer.md @@ -1,7 +1,7 @@ - + ## Example: `gcp_signer` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/wallets/examples/gcp_signer.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/wallets/examples/gcp_signer.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/wallets/examples/gcp_signer.rs). diff --git a/src/examples/wallets/keystore_signer.md b/src/examples/wallets/keystore_signer.md index 213a05d..a52a54d 100644 --- a/src/examples/wallets/keystore_signer.md +++ b/src/examples/wallets/keystore_signer.md @@ -1,7 +1,7 @@ - + ## Example: `keystore_signer` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/wallets/examples/keystore_signer.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/wallets/examples/keystore_signer.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/wallets/examples/keystore_signer.rs). diff --git a/src/examples/wallets/ledger_signer.md b/src/examples/wallets/ledger_signer.md index 7057455..39952be 100644 --- a/src/examples/wallets/ledger_signer.md +++ b/src/examples/wallets/ledger_signer.md @@ -1,7 +1,7 @@ - + ## Example: `ledger_signer` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/wallets/examples/ledger_signer.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/wallets/examples/ledger_signer.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/wallets/examples/ledger_signer.rs). diff --git a/src/examples/wallets/mnemonic_signer.md b/src/examples/wallets/mnemonic_signer.md index ce61f09..9376547 100644 --- a/src/examples/wallets/mnemonic_signer.md +++ b/src/examples/wallets/mnemonic_signer.md @@ -1,7 +1,7 @@ - + ## Example: `mnemonic_signer` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/wallets/examples/mnemonic_signer.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/wallets/examples/mnemonic_signer.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/wallets/examples/mnemonic_signer.rs). diff --git a/src/examples/wallets/private_key_signer.md b/src/examples/wallets/private_key_signer.md index 61467de..470c1d8 100644 --- a/src/examples/wallets/private_key_signer.md +++ b/src/examples/wallets/private_key_signer.md @@ -1,7 +1,7 @@ - + ## Example: `private_key_signer` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/wallets/examples/private_key_signer.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/wallets/examples/private_key_signer.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/wallets/examples/private_key_signer.rs). diff --git a/src/examples/wallets/sign_message.md b/src/examples/wallets/sign_message.md index 2337141..9c88883 100644 --- a/src/examples/wallets/sign_message.md +++ b/src/examples/wallets/sign_message.md @@ -1,7 +1,7 @@ - + ## Example: `sign_message` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/wallets/examples/sign_message.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/wallets/examples/sign_message.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/wallets/examples/sign_message.rs). diff --git a/src/examples/wallets/sign_permit_hash.md b/src/examples/wallets/sign_permit_hash.md index 7f3e7ca..06fd5db 100644 --- a/src/examples/wallets/sign_permit_hash.md +++ b/src/examples/wallets/sign_permit_hash.md @@ -1,7 +1,7 @@ - + ## Example: `sign_permit_hash` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/wallets/examples/sign_permit_hash.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/wallets/examples/sign_permit_hash.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/wallets/examples/sign_permit_hash.rs). diff --git a/src/examples/wallets/trezor_signer.md b/src/examples/wallets/trezor_signer.md index e8567f4..0ad9d5c 100644 --- a/src/examples/wallets/trezor_signer.md +++ b/src/examples/wallets/trezor_signer.md @@ -1,7 +1,7 @@ - + ## Example: `trezor_signer` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/wallets/examples/trezor_signer.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/wallets/examples/trezor_signer.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/wallets/examples/trezor_signer.rs). diff --git a/src/examples/wallets/verify_message.md b/src/examples/wallets/verify_message.md index 51f8086..142c8d5 100644 --- a/src/examples/wallets/verify_message.md +++ b/src/examples/wallets/verify_message.md @@ -1,7 +1,7 @@ - + ## Example: `verify_message` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/wallets/examples/verify_message.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/wallets/examples/verify_message.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/wallets/examples/verify_message.rs). diff --git a/src/examples/wallets/yubi_signer.md b/src/examples/wallets/yubi_signer.md index 4cae484..42d7d41 100644 --- a/src/examples/wallets/yubi_signer.md +++ b/src/examples/wallets/yubi_signer.md @@ -1,7 +1,7 @@ - + ## Example: `yubi_signer` @@ -16,4 +16,4 @@ To run this example: {{#include ../../../lib/examples/examples/wallets/examples/yubi_signer.rs}} ``` -Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/cb2cd9483cfdb8e54744131b34451c996dcc240c/examples/wallets/examples/yubi_signer.rs). +Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/563757390a7575f52ef0ca2e6b2640d3d930a945/examples/wallets/examples/yubi_signer.rs). diff --git a/src/templates/contracts/README.md b/src/templates/contracts/README.md index 0fe54e0..c0e5de5 100644 --- a/src/templates/contracts/README.md +++ b/src/templates/contracts/README.md @@ -3,6 +3,8 @@ - [Deploy from artifact](deploy_from_artifact.md) - [Deploy from bytecode](deploy_from_bytecode.md) - [Deploy from contract](deploy_from_contract.md) +- [Deploy and link library](deploy_and_link_library.md) - [Interact with ABI](interact_with_abi.md) - [Interact with contract instance](interact_with_contract_instance.md) -- [Handling unknown return types](unknown_return_types.md) \ No newline at end of file +- [Handling unknown return types](unknown_return_types.md) +- [Decode revert](revert_decoding.md) diff --git a/src/templates/layers/README.md b/src/templates/layers/README.md index 27307f2..721f0c1 100644 --- a/src/templates/layers/README.md +++ b/src/templates/layers/README.md @@ -1,5 +1,6 @@ ## Layers +- [Fallback layer](fallback_layer.md) - [Hyper layer transport](hyper_http_layer.md) - [Request / response logging layer](logging_layer.md) - [Retry-backoff layer](retry_layer.md) diff --git a/src/templates/providers/README.md b/src/templates/providers/README.md index bcc8ef2..6421516 100644 --- a/src/templates/providers/README.md +++ b/src/templates/providers/README.md @@ -10,3 +10,4 @@ - [Multicall Builder](multicall.md) - [WS with authentication](ws_with_auth.md) - [JSON-RPC Batch Request](batch_rpc.md) +- [DynProvider](dyn_provider.md) diff --git a/src/templates/transactions/README.md b/src/templates/transactions/README.md index 08a6a67..0ed3596 100644 --- a/src/templates/transactions/README.md +++ b/src/templates/transactions/README.md @@ -3,6 +3,7 @@ - [Decode input](decode_input.md) - [Encode and decode EIP-1559 transaction](encode_decode_eip1559.md) - [Get gas price in USD](gas_price_usd.md) +- [Decode logs from transaction receipt](decode_receipt_log.md) - [Send EIP-1559 transaction](send_eip1559_transaction.md) - [Send EIP-4844 transaction](send_eip4844_transaction.md) - [Send EIP-7702 transaction](send_eip7702_transaction.md) @@ -16,3 +17,4 @@ - [Transfer ERC20 token](transfer_erc20.md) - [Transfer ETH](transfer_eth.md) - [Send transaction with access list](with_access_list.md) +- [Transfer ERC20 token using a signed permit](permit2_signature_transfer.md)