Skip to main content

Module dispatcher

Module dispatcher 

Source
Expand description

Dispatcher

This module contains the ChiselDispatcher struct, which handles the dispatching of both builtin commands and Solidity snippets.

Macros§

format_param 🔒
Used to format ABI parameters into valid solidity function / error / event param syntax TODO: Smarter resolution of storage location, defaults to “memory” for all types that cannot be stored on the stack.

Structs§

ChiselDispatcher
Chisel input dispatcher
EtherscanABIResponse
A response from the Etherscan API’s getabi action

Enums§

DispatchResult
Chisel dispatch result variants

Constants§

CHISEL_CHAR
Chisel character
COMMAND_LEADER
Command leader character
DEFAULT_PROMPT 🔒
PROMPT_ARROW
Prompt arrow character.
PROMPT_ARROW_STR
Prompt arrow string.

Statics§

ADDRESS_RE 🔒
Matches Ethereum addresses that are not strings
COMMENT_RE 🔒
Matches Solidity comments

Functions§

format_source
Helper function that formats solidity source with the given FormatterConfig