Shaping Aderyn's dependency on end user's environment #252
Replies: 14 comments 20 replies
-
Something that I found - (might be valuable in making decisions) So here, in the foundry-compilers backend we see that it shells out The question then is, what might we gain from adding forge as a rust dependency if it relies on UPDATE My guess is that you'll be able to build json from solidity files in project where there is no framework used? (maybe) |
Beta Was this translation helpful? Give feedback.
-
For the case when no framework is used, the first challenge is the generation of the AST! And one solution is to assume (doesn't even support solidity 0.6) |
Beta Was this translation helpful? Give feedback.
-
For Hardhat support, I was toying with the idea of requesting users to specify 2 things explicitly to aderyn (in cases where sources is not
Rationale behind this: So when these 2 environment vars are present the understanding is, compilation has already been done and aderyn just has to run the detectors. |
Beta Was this translation helpful? Give feedback.
-
The ideal scenario of what
This removes any need for ANY local framework. It can be run on a folder of solidity files only. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
Could it be that there is a plain yul file in the solidity codebase that needs to be compiled along with the other files? |
Beta Was this translation helpful? Give feedback.
-
Do we know if zksync solidity projects can be scanned with just solc instead of zksooc for aderyn.... (Because we are okay with just the first step i.e AST).... We don't necessarily have to get to the binary ?? Am i thinking correctly? 🤔 |
Beta Was this translation helpful? Give feedback.
-
Second thoughts regarding supporting reading @alexroan I know I said although we're not relying on Also, hardhat is hard to integrate because all the config is in a So here's a solution that I am proposing:
How do you feel about all this? |
Beta Was this translation helpful? Give feedback.
-
Here's the consequences to existing users: Users running aderyn CLI would have to change their way of running the command to On the flip side, aderyn
|
Beta Was this translation helpful? Give feedback.
-
Like this @alexroan |
Beta Was this translation helpful? Give feedback.
-
Exploring |
Beta Was this translation helpful? Give feedback.
-
I am starting to think we don't have to literally merge
We should more or less have what we have in dev. But hey I could be wrong :P Going through the process will only reveal ! |
Beta Was this translation helpful? Give feedback.
-
I think we can merge #333 to dev 🚀 . Existing PRs to ICF can be made to dev. |
Beta Was this translation helpful? Give feedback.
-
Thanks for participating 🙏 I am closing this in favor of a new one focusing on how Aderyn can be designed to help VSCode. We have more or less solved the user environment dependency problem in 0.1.0 :) |
Beta Was this translation helpful? Give feedback.
-
This is in regards to helping build the VSCode extension - we want to make it easy not just for maintaining the official one, but also for other devs in the community to build their extension using this Aderyn as the backend
The challenge is to support as many situations (foundry, hardhat, no framework) as possible without asking for too much from the end users (apart from installing Aderyn in their CLI)
Maybe we don't have a solution yet, but I'd like for us to list out here -
a) problems (in detail) with the current system
b) approaches (in detail) we may have to mitigate them
c) pros and cons of each approach
d) How the proposed solution might break the existing guarantees (if any)
Beta Was this translation helpful? Give feedback.
All reactions