Skip to content
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
2 changes: 1 addition & 1 deletion lib/examples
Submodule examples updated 124 files
53 changes: 53 additions & 0 deletions scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ SNIPPETS_PATH="./vocs/docs/snippets"
MDX_SNIPPETS_PATH="./vocs/docs/pages/examples"
# Templates path
MDX_TEMPLATES_PATH="./vocs/docs/pages/templates"
# Sidebar items TS file
SIDEBAR_ITEMS_PATH="./vocs/example-items.ts"

# This script will do the following:
#
# 1. Update the submodules.
Expand Down Expand Up @@ -132,6 +135,56 @@ EOF
# Duplicate specific examples that symlink to other examples
cp $MDX_SNIPPETS_PATH/contracts/deploy_from_contract.mdx $MDX_SNIPPETS_PATH/sol-macro/contract.mdx

# Generate sidebar items TS file
echo "Generating sidebar items at $SIDEBAR_ITEMS_PATH"

# Header of the TS file
cat << 'EOF' > "$SIDEBAR_ITEMS_PATH"
// DO NOT EDIT THIS FILE. ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN.

import { SidebarItem } from "vocs";

export const exampleItems: SidebarItem[] = [
EOF

# For each template directory (category)
for TEMPLATE_DIR in "$MDX_TEMPLATES_PATH"/*/; do
[ -d "$TEMPLATE_DIR" ] || continue
EXAMPLE_DIRNAME=$(basename "$TEMPLATE_DIR")
README_FILE="$TEMPLATE_DIR/README.mdx"

# Skip if there's no README template yet
[ -f "$README_FILE" ] || continue

# Generate section label
SECTION_LABEL=$(grep -m1 '^## ' "$README_FILE" | sed 's/^##[[:space:]]*//')

# Start section block
printf " { text: '%s', collapsed: true, link: '/examples/%s/README', items: [\n" \
"$SECTION_LABEL" "$EXAMPLE_DIRNAME" >> "$SIDEBAR_ITEMS_PATH"

# Parse bullet list lines: - [Title](/examples/.../file)
while IFS= read -r line; do
# Require lines that start with "- [" to avoid false positives
if [[ "$line" == "- ["* ]]; then
trimmed="${line#- }"
title_part="${trimmed#\[}"
TEXT="${title_part%%]*}"
link_part="${trimmed#*](/}"
LINK="/${link_part%%)*}"
ESCAPED_TEXT=${TEXT//\'/\\\'}
printf " { text: '%s', link: '%s' },\n" \
"$ESCAPED_TEXT" "$LINK" >> "$SIDEBAR_ITEMS_PATH"
fi
done < <(cat "$README_FILE"; echo)

# Close section block
echo " ]}," >> "$SIDEBAR_ITEMS_PATH"
done

# Footer of the TS file
echo "]" >> "$SIDEBAR_ITEMS_PATH"

# Match the current example files list with the updated example files list
# If there are differences, print them
UPDATED_EXAMPLE_FILES=$(find $SNIPPETS_PATH -type f)
Expand Down
Binary file modified vocs/bun.lockb
Binary file not shown.
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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## 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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/advanced/examples/any_network.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## 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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/advanced/examples/decoding_json_abi.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## 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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/advanced/examples/encoding_dyn_abi.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## 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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/advanced/examples/encoding_sol_static.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## 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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/advanced/examples/foundry_fork_db.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/examples/advanced/examples/foundry_fork_db.rs).
Original file line number Diff line number Diff line change
@@ -1,18 +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/advanced/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## Example: `reth_db_provider`
## Example: `uniswap_u256_alloy_profit`

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 reth_db_provider`
- Run: `cargo run --example uniswap_u256_alloy_profit`

```rust
// [!include ~/snippets/advanced/examples/reth_db_provider.rs]
// [!include ~/snippets/advanced/examples/uniswap_u256_alloy_profit.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/advanced/examples/reth_db_provider.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/examples/advanced/examples/uniswap_u256_alloy_profit.rs).
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/advanced/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## Example: `uniswap_u256_alloy_simulation`

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 uniswap_u256_alloy_simulation`

```rust
// [!include ~/snippets/advanced/examples/uniswap_u256_alloy_simulation.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/examples/advanced/examples/uniswap_u256_alloy_simulation.rs).
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/advanced/README.mdx
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## Example: `uniswap_u256_ethers_profit`

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 uniswap_u256_ethers_profit`

```rust
// [!include ~/snippets/advanced/examples/uniswap_u256_ethers_profit.rs]
```

Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/examples/advanced/examples/uniswap_u256_ethers_profit.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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## 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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/big-numbers/examples/comparison_equivalence.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## 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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/big-numbers/examples/conversion.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## 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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/big-numbers/examples/create_instances.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## 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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/big-numbers/examples/math_operations.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## 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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/big-numbers/examples/math_utilities.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## 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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/comparison/examples/compare_new_heads.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## 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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/comparison/examples/compare_pending_txs.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/examples/comparison/examples/compare_pending_txs.rs).
4 changes: 2 additions & 2 deletions vocs/docs/pages/examples/contracts/arb_profit_calc.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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## Example: `arb_profit_calc`
Expand All @@ -15,4 +15,4 @@ To run this example:
// [!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).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## 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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/contracts/examples/deploy_and_link_library.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## 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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/contracts/examples/deploy_from_artifact.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1
LATEST UPDATE: https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38
*/}

## 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/15c1d3e6e758d6a9dfe747200b5c8d12f5a027f1/examples/contracts/examples/deploy_from_bytecode.rs).
Find the source code on Github [here](https://github.com/alloy-rs/examples/tree/f223a201c72334216bef763331a8924636021e38/examples/contracts/examples/deploy_from_bytecode.rs).
Loading