Skip to content

Commit

Permalink
feat(quickstart): Simulate or execute in the quickstart
Browse files Browse the repository at this point in the history
--- don't change below this line ---
ENG-4225 Took 5 hours 33 minutes
  • Loading branch information
dianacarvalho1 committed Feb 25, 2025
1 parent bea756f commit ebca475
Show file tree
Hide file tree
Showing 5 changed files with 233 additions and 33 deletions.
5 changes: 4 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ alloy-primitives = { version = "0.8.9", features = [
"map-foldhash",
] }
alloy-sol-types = { version = "0.8.14" }
alloy = { version = "0.5.4", features = ["providers"] }
alloy = { version = "0.5.4", features = ["providers", "signer-local", "rpc-types-eth"] }
revm = { version = "17.1.0", features = ["ethersdb", "serde"], optional = true }
revm-inspectors = { version = "0.10", features = ["serde"], optional = true }
num-bigint = "0.4.6"
Expand Down
2 changes: 1 addition & 1 deletion examples/price_printer/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ quotes from each pool.
## How to run

```bash
export RPC_URL=<your-node-rpc-url>
export ETH_RPC_URL=<your-node-rpc-url>
cargo run --release --example price_printer -- --tvl-threshold 1000 --chain <ethereum | base>
```
4 changes: 2 additions & 2 deletions examples/quickstart/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ This quickstart guide enables you to:
## How to run

```bash
export RPC_URL=<your-eth-rpc-url>
export ETH_RPC_URL=<your-eth-rpc-url>
cargo run --release --example quickstart
```

By default, the example will trade 1 WETH -> USDC. If you want a different trade you can do:

```bash
cargo run --release --example quickstart -- --sell-token "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" --buy-token "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599" --sell-amount 10000
cargo run --release --example quickstart -- --sell-token "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" --buy-token "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" --sell-amount 10
```

for 10000 USDC -> WBTC.
Expand Down
Loading

0 comments on commit ebca475

Please sign in to comment.