Replies: 4 comments 2 replies
-
@technophile-04 @portdeveloper what do you think about this? |
Beta Was this translation helpful? Give feedback.
-
All EVM chains, because evmole doesn't interact with the chain, only the
evm bytecode required
…On Thu, Dec 19, 2024, 11:22 port ***@***.***> wrote:
Hey I think it looks great but how many chains does EVMole support right
now?
—
Reply to this email directly, view it on GitHub
<#102 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADNWXYBIFZTRBTG6WG2OLT2GKM7JAVCNFSM6AAAAABI4DBS7OVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRRGU2TQNY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Alright just checked how it works and it definitely is really cool! I have some questions: |
Beta Was this translation helpful? Give feedback.
-
const info = contractInfo(code, { selectors: false, arguments: true, stateMutability: true });
const abi = info.functions.map((fn) => ({
type: 'function',
name: `func_${fn.selector}`,
stateMutability: fn.stateMutability,
outputs: [], // or undefined - not extracted by evmole
inputs: [], // need to parse arguments string with some library or code
})); I can't recommend any particular JS library for converting arguments into inputs, but I can say that this arguments string is constructed using the same rules as those used in function signature hashes. So, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, abi.ninja is trying to use heimdall-rs for ABI extraction from unverified contracts.
I propose to add (or replace) it with EVMole, which has the following advantages:
It already has an online demo. You can see an example usage in the source code of that page (right inside the
<script>
tag).My proposed logic for unverified contracts:
eth_getCode
; 1rpc is used in the EVMole demo)evmole.functionSelectors
JS function (offline)evmole.functionArguments
(offline)What do you think about this?
Beta Was this translation helpful? Give feedback.
All reactions