Git Product home page Git Product logo

horus's People

Contributors

christoftorres avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

horus's Issues

Example transaction yields no results with Reth

Hi, the example from the README does not yield any results to me.

I guess, the problem is that the tracer does not find all the CALLs that it should find. See the attached trace.json for what it found in my case, using the node Reth hosted on merkle.io.

To debug, it would likely be best if you can check if the expected traces look different with your provider. I've attached a script to make the RPC call with the JS tracer for simple use.

Steps I've performed:

# use --network=host to access the local proxy
docker run --network=host -it christoftorres/horus
cd horus

# merkle RPC does not accept GET apparently, so I replaced it with POST
grep -rl "'GET'" . | xargs sed -i 's/'GET'/'POST'/g'

python3 horus.py -e -tx 0x0ec3f2488a93839524add10ea229e773f6bc891b4eb4794c3337d4495263790b --host localhost --port 8080
python3 horus.py -a

This results in following outputs (note the many 0-byte files):

# ls -l results/
total 4
-rw-r--r-- 1 root root  0 Jun  7 08:54 IntegerOverflow.csv
-rw-r--r-- 1 root root  0 Jun  7 08:54 ParityWalletHack1.csv
-rw-r--r-- 1 root root  0 Jun  7 08:54 ParityWalletHack2.csv
-rw-r--r-- 1 root root  0 Jun  7 08:54 Reentrancy.csv
-rw-r--r-- 1 root root  0 Jun  7 08:54 ReentrancyToken.csv
-rw-r--r-- 1 root root  0 Jun  7 08:54 ShortAddress.csv
-rw-r--r-- 1 root root  0 Jun  7 08:54 UnhandledException.csv
-rw-r--r-- 1 root root 20 Jun  7 08:54 stats.json

# ls -l facts/
total 12
-rw-r--r-- 1 root root   0 Jun  7 08:53 arithmetic.facts
-rw-r--r-- 1 root root  36 Jun  7 08:53 block.facts
-rw-r--r-- 1 root root   0 Jun  7 08:53 call.facts
-rw-r--r-- 1 root root   0 Jun  7 08:53 condition.facts
-rw-r--r-- 1 root root   0 Jun  7 08:53 def.facts
-rw-r--r-- 1 root root   0 Jun  7 08:53 error.facts
-rw-r--r-- 1 root root   0 Jun  7 08:53 selfdestruct.facts
-rw-r--r-- 1 root root 176 Jun  7 08:53 stats.json
-rw-r--r-- 1 root root   0 Jun  7 08:53 storage.facts
-rw-r--r-- 1 root root   0 Jun  7 08:53 throw.facts
-rw-r--r-- 1 root root 509 Jun  7 08:53 transaction.facts
-rw-r--r-- 1 root root   0 Jun  7 08:53 transfer.facts
-rw-r--r-- 1 root root   0 Jun  7 08:53 use.facts

Apart from the souffle version 2.0.2 warning, it does not show any errors/warnings.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.