2

Do we have some open source tools where we can get call graphs for solidity smart contracts execution ? For ex: Suppose Function A in contract C calls some other function B so the graph should contain an edge from A-> B with the parameters that passed from A to B. Also is there a way to get access the exact parameter values that are passed between function calls during smart contract execution in a remix browser or truffle ?

  • What kind of graphs are you looking for? – Lauri Peltonen Apr 18 '18 at 5:51
  • i want to make graphs showing which functions calls or can call other functions by doing a analysis of the smart contracts... – Utkarash Singh Apr 18 '18 at 6:19
0

There's a tool by ConsenSys called surya.

It has option ftrace to create a text represtation of the calls to a function. An example from their readme file:

surya ftrace APMRegistry::_newRepo all MyContract.sol

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.