From f74acfae62cda1475d984ebe71962d45b210c23d Mon Sep 17 00:00:00 2001 From: Maxim Andreev Date: Mon, 26 Feb 2024 10:18:50 +0300 Subject: [PATCH] README: add foundry --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 1f04e13..3b6e353 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,25 @@ print( function_arguments(code, '2125b65b') ) # Output(str): 'uint32,address,uint224' ``` +### Foundry +Foundy's cast uses the Rust implementation of EVMole +```sh + +$ cast selectors $(cast code 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2) +0x06fdde03 +0x095ea7b3 address,uint256 +0x18160ddd +0x23b872dd address,address,uint256 +... + +$ cast selectors --resolve $(cast code 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2) +0x06fdde03 name() +0x095ea7b3 address,uint256 approve(address,uint256) +0x18160ddd totalSupply() +0x23b872dd address,address,uint256 transferFrom(address,address,uint256) +... +``` + See [examples](./examples) for more ## Benchmark