Open Pabl0cks opened 3 months ago
anyabi.xyz doesn't return enough data for this - Sourcify API would return userdoc and devdoc fields. For sourcify you might be able to use some code from @ethereum-sourcify/contract-call-decoder for it (tho it might get deprecated https://github.com/ethereum/sourcify/issues/1388#issuecomment-2107538816)
anyabi.xyz doesn't return enough data for this - Sourcify API would return userdoc and devdoc fields. For sourcify you might be able to use some code from @ethereum-sourcify/contract-call-decoder for it (tho it might get deprecated ethereum/sourcify#1388 (comment))
Thanks a lot for the deep insights! 🙌
I think we could get source code from Etherscan API changing action
parameter to getsourcecode
instead of getabi
, but then we'd need to always do the Etherscan API call, and change the parsing logic.
I feel downsides might be greater than the UX benefits 😥
Just realized Etherscan had this feature and I think it would be nice to have it too. Maybe is only possible for verified contracts?
The only thing that scares me is it could be exploitable by bad actors, giving a secure feeling to the user, and doing different malicious stuff in the code.
Example: