Skip to main content

Module creation_code

Module creation_code 

Source

Structsยง

CreationCodeArgs
CLI arguments for cast creation-code.

Functionsยง

constructor_args_offset ๐Ÿ”’
Returns the offset in bytecode at which the ABI-encoded constructor arguments start.
constructor_with_args ๐Ÿ”’
Returns the constructor of abi, failing if there is none or it takes no arguments.
fetch_creation_code ๐Ÿ”’
Connects to the configured RPC, pins config.chain to it, and fetches the creation code of contract using its Etherscan creation transaction.
load_abi ๐Ÿ”’
Loads the ABI of contract from abi_path, or from Etherscan when no path is given.
parse_code_output ๐Ÿ”’
Parses the creation bytecode and returns one of the following: