Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: legacy cow amm safe indexer (#81)
## Description This PR adds a rust utility that indexes all legacy CoW AMMs that have been created using the Safe module, to be used for statically populating the `ConstantProductHelper.sol` contract in a forthcoming PR. ## Testing 1. Ensure you have a running `rust` environment (the devcontainer has been updated to include one). 2. Change into the `utils` directory and: `RPC_URL=cargo run --bin cow-amm-indexer` **NOTE**: As this indexer looks back over previous blocks, the RPC being used must have `receipts` available for the respective contracts that are being analysed. For example, if you want to test this for mainnet, `https://eth.merkle.io` is suitable. --------- Co-authored-by: Federico Giacon <[email protected]>
- Loading branch information