Expand description
Support for handling/identifying selectors.
StructsΒ§
- Artifact π
- Open
Chain Client - A client that can request API data from OpenChain.
- Parsed
Signatures - Possible
Sigs - RawSelector
Import Data - Selector
Import πEffect - Selector
Import πRequest - Selector
Import Response - Selector
Import πResult - Signature π
- Signature
Response π SELECTOR_LOOKUP_URL
response.- Signature
Result π
EnumsΒ§
- Selector
Import Data - Selector
Kind - The kind of selector to fetch from OpenChain.
- Selector
OrSig
ConstantsΒ§
- BASE_
URL π - MAX_
TIMEDOUT_ πREQ - How many request can time out before we decide this is a spurious connection.
- REQ_
TIMEOUT π - The standard request timeout for API requests.
- SELECTOR_
IMPORT_ πURL - SELECTOR_
LOOKUP_ πURL
FunctionsΒ§
- decode_
calldata - Fetches all possible signatures and attempts to abi decode the calldata using OpenChain.
- decode_
event_ topic - Fetches an event signature given the 32 byte topic using OpenChain.
- decode_
function_ selector - Fetches a function signature given the selector using OpenChain.
- decode_
selector - Decodes the given function or event selector using OpenChain.
- decode_
selectors - Decodes the given function or event selectors using OpenChain.
- import_
selectors - uploads selectors to OpenChain using the given data
- parse_
signatures - Parses a list of tokens into function, event, and error signatures. Also handles JSON artifact files Ignores invalid tokens
- pretty_
calldata - Pretty print calldata and if available, fetch possible function signatures.
Type AliasesΒ§
- Open
Chain Signatures - List of signatures for a given
SelectorKind
.