resultsvur.blogg.se

0x06012c8cf97bead5deae237070f9587f8e7a266d download
0x06012c8cf97bead5deae237070f9587f8e7a266d download






0x06012c8cf97bead5deae237070f9587f8e7a266d download

See the source code comments, starting with panoramix.py. Tilde replaces '~' pattern matching operator with a series of ':=' operators underneath.īelieve me, I spent a lot of time looking for some other way to make pattern matching readable.īut if you manage to figure out a way to do it without Tilde (and maintain readability), I'll gladly accept a PR :) How Panoramix works There are some pattern-matching libraries for older python versions, but none of them seemed good enough.īecause of that, I built Tilde, which is a language extension adding a new operator. Panoramix uses a ton of pattern matching operations, and python doesn't support those as a language.

0x06012c8cf97bead5deae237070f9587f8e7a266d download

Utilitiesīulk_decompile.py - batch-decompiles contracts, with multi-processing supportīulk_compare.py - decompiles a set of test contracts, fetches the current decompiled from Eveem, and prepares two files, so you can diff them and see what changes were made Why python3.8 and Tilde Of cached contracts (important when running bulk_decompile on all 2.2M contracts on the chain)Īll of the above generated after the first run. supp2.db - a lightweight variant o the aboveĬache directories are split into subdirectories, so the filesystem doesn't break down with large amounts.

0x06012c8cf97bead5deae237070f9587f8e7a266d download

supplement.db - sqlite3 database of function definitions.cache_pabi - cached auto-generated p-abi files.cache_pan - cached decompilation outputs.tilde - the library for handling pattern matching in python3.8.core - modules for doing abstract/symbolic operations.See panoramix.py for the list of shortcuts, feel free to add your own. 'python panoramix.py kitties' instead of 'python3 panoramix.py 0x06012c8cf97bead5deae237070f9587f8e7a266d'. Some contract addresses, which are good for testing, have shortcuts, e.g. You can find what they do in panoramix.py. verbose - prints out the assembly and stack as well as regular functions, a good way to try it out isīy running 'python panoramix.py kitties pause -verbose' - it's a simple function

0x06012c8cf97bead5deae237070f9587f8e7a266d download

Python3.8 panoramix.py kitties tokenMetadata -explainįunc_name - name of the function to decompile (note: storage names won't be discovered in this mode) Python3.8 panoramix.py kitties pause -explain Python3.8 panoramix.py kitties paused -explain








0x06012c8cf97bead5deae237070f9587f8e7a266d download