hi, can any one tell me how to convert ABI back to solidity code?

Oct 31, 2019, 6:18 PM
You can't reverse engineer the algorithm with just the ABI, but you can read the function names and make an interface for calling the contract from other contracts
By hand is probably best, but I did try to search for an automated tool once
Also finished in the hackathon, if you use devpost would love a vote if you liked my project!🔥 https://devpost.com/software/rollo
Oct 31, 2019, 11:00 PM
Use https://www.npmjs.com/package/abi2solidity
Also I voted for you
You can convert abi to interface but can't get whole source code back
Well if you have bytecode you can decompile but you have to know specifics of evm for further exploration.
Oct 31, 2019, 11:30 PM
https://ethereum.stackexchange.com/a/76493/54659
Oct 31, 2019, 11:31 PM
The automated tools are listed in the pinned message
Nov 1, 2019, 1:12 AM
Not quite into solidity code but interactable, assuming their abi matches their actual function signatures. You can do some fun things with abi editing
We have a start on an ML reverse engineer based on mapping bytecode to verified code but in most instances you're better off just launching the bytecode on a sidechain and brute force analyzing the behaviour with a cli suite like bw
Nov 1, 2019, 10:47 AM
Try this: https://github.com/ethereumjs/ethereumjs-abi
It works most of the time 😉
Nov 1, 2019, 4:32 PM

© 2024 Draquery.com All rights reserved.