Skip to content

fix(guides): redo ABI encoding guide #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 17, 2025
Merged
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/examples/advanced/any_network.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/advanced/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `any_network`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/advanced/examples/any_network.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/advanced/examples/any_network.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/advanced/examples/any_network.rs).
4 changes: 2 additions & 2 deletions vocs/docs/pages/examples/advanced/decoding_json_abi.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/advanced/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `decoding_json_abi`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/advanced/examples/decoding_json_abi.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/advanced/examples/decoding_json_abi.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/advanced/examples/decoding_json_abi.rs).
4 changes: 2 additions & 2 deletions vocs/docs/pages/examples/advanced/encoding_dyn_abi.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/advanced/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `encoding_dyn_abi`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/advanced/examples/encoding_dyn_abi.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/advanced/examples/encoding_dyn_abi.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/advanced/examples/encoding_dyn_abi.rs).
4 changes: 2 additions & 2 deletions vocs/docs/pages/examples/advanced/encoding_sol_static.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/advanced/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `encoding_sol_static`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/advanced/examples/encoding_sol_static.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/advanced/examples/encoding_sol_static.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/advanced/examples/encoding_sol_static.rs).
4 changes: 2 additions & 2 deletions vocs/docs/pages/examples/advanced/foundry_fork_db.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/advanced/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `foundry_fork_db`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/advanced/examples/foundry_fork_db.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/advanced/examples/foundry_fork_db.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/advanced/examples/foundry_fork_db.rs).
4 changes: 2 additions & 2 deletions vocs/docs/pages/examples/advanced/reth_db_layer.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/advanced/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `reth_db_layer`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/advanced/examples/reth_db_layer.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/advanced/examples/reth_db_layer.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/advanced/examples/reth_db_layer.rs).
4 changes: 2 additions & 2 deletions vocs/docs/pages/examples/advanced/reth_db_provider.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/advanced/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `reth_db_provider`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/advanced/examples/reth_db_provider.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/advanced/examples/reth_db_provider.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/advanced/examples/reth_db_provider.rs).
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/big-numbers/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `comparison_equivalence`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/big-numbers/examples/comparison_equivalence.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/big-numbers/examples/comparison_equivalence.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/big-numbers/examples/comparison_equivalence.rs).
4 changes: 2 additions & 2 deletions vocs/docs/pages/examples/big-numbers/conversion.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/big-numbers/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `conversion`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/big-numbers/examples/conversion.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/big-numbers/examples/conversion.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/big-numbers/examples/conversion.rs).
4 changes: 2 additions & 2 deletions vocs/docs/pages/examples/big-numbers/create_instances.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/big-numbers/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `create_instances`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/big-numbers/examples/create_instances.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/big-numbers/examples/create_instances.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/big-numbers/examples/create_instances.rs).
4 changes: 2 additions & 2 deletions vocs/docs/pages/examples/big-numbers/math_operations.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/big-numbers/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `math_operations`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/big-numbers/examples/math_operations.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/big-numbers/examples/math_operations.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/big-numbers/examples/math_operations.rs).
4 changes: 2 additions & 2 deletions vocs/docs/pages/examples/big-numbers/math_utilities.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/big-numbers/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `math_utilities`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/big-numbers/examples/math_utilities.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/big-numbers/examples/math_utilities.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/big-numbers/examples/math_utilities.rs).
4 changes: 2 additions & 2 deletions vocs/docs/pages/examples/comparison/compare_new_heads.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/comparison/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `compare_new_heads`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/comparison/examples/compare_new_heads.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/comparison/examples/compare_new_heads.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/comparison/examples/compare_new_heads.rs).
4 changes: 2 additions & 2 deletions vocs/docs/pages/examples/comparison/compare_pending_txs.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/comparison/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `compare_pending_txs`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/comparison/examples/compare_pending_txs.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/comparison/examples/compare_pending_txs.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/comparison/examples/compare_pending_txs.rs).
18 changes: 18 additions & 0 deletions vocs/docs/pages/examples/contracts/arb_profit_calc.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/contracts/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `arb_profit_calc`

To run this example:

- Clone the [examples](https://github.com/alloy-rs/examples) repository: `git clone [email protected]:alloy-rs/examples.git`
- Run: `cargo run --example arb_profit_calc`

```rust
// [!include ~/snippets/contracts/examples/arb_profit_calc.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/contracts/examples/arb_profit_calc.rs).
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/contracts/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `deploy_and_link_library`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/contracts/examples/deploy_and_link_library.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/contracts/examples/deploy_and_link_library.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/contracts/examples/deploy_and_link_library.rs).
4 changes: 2 additions & 2 deletions vocs/docs/pages/examples/contracts/deploy_from_artifact.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/contracts/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `deploy_from_artifact`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/contracts/examples/deploy_from_artifact.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/contracts/examples/deploy_from_artifact.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/contracts/examples/deploy_from_artifact.rs).
4 changes: 2 additions & 2 deletions vocs/docs/pages/examples/contracts/deploy_from_bytecode.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/contracts/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `deploy_from_bytecode`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/contracts/examples/deploy_from_bytecode.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/contracts/examples/deploy_from_bytecode.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/contracts/examples/deploy_from_bytecode.rs).
4 changes: 2 additions & 2 deletions vocs/docs/pages/examples/contracts/deploy_from_contract.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/contracts/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `deploy_from_contract`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/contracts/examples/deploy_from_contract.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/contracts/examples/deploy_from_contract.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/contracts/examples/deploy_from_contract.rs).
18 changes: 18 additions & 0 deletions vocs/docs/pages/examples/contracts/helpers.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/contracts/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `helpers`

To run this example:

- Clone the [examples](https://github.com/alloy-rs/examples) repository: `git clone [email protected]:alloy-rs/examples.git`
- Run: `cargo run --example helpers`

```rust
// [!include ~/snippets/contracts/examples/helpers.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/contracts/examples/helpers.rs).
4 changes: 2 additions & 2 deletions vocs/docs/pages/examples/contracts/interact_with_abi.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/contracts/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `interact_with_abi`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/contracts/examples/interact_with_abi.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/contracts/examples/interact_with_abi.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/contracts/examples/interact_with_abi.rs).
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{/*DO NOT EDIT THIS FILE. IT IS GENERATED BY RUNNING `./scripts/update.sh`
ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN
EDIT OR CREATE THIS TEMPLATE INSTEAD: ./vocs/docs/pages/templates/contracts/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
*/}

## Example: `interact_with_contract_instance`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!include ~/snippets/contracts/examples/interact_with_contract_instance.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/ec8facae17e62cf6136df46c0f07cc5f963db889/examples/contracts/examples/interact_with_contract_instance.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/contracts/examples/interact_with_contract_instance.rs).
Loading