Inspector Facet - What methods is your EIP2535 Diamond proxy contract serving?
Project description
Inspector Facet
A tool that allows you to inspect deployed EIP-2535 Diamond proxy contracts from your command line.
Inspector Facet was inspired by Louper.dev (GitHub).
Inspector Facet uses side information about facet ABIs to match the selectors that a Diamond proxy is serving to human-understandable information about the facets and the functions.
We support side information obtained from:
We support Diamond introspection:
- Using the
DiamondLoupeFacet
interface - From
DiamondCut
events crawled from the blockchain (using the Moonstream API).
Installation
Inspector Facet is written in Python 3 and is distributed using PyPI: https://pypi.org/project/inspector-facet/
To install Inspector Facet, run:
pip install inspector-facet
Usage
inspector-facet --help
To use Inspector Facet with:
A brownie
project
The following command produces human-readable output:
inspector-facet \
--network <brownie network name for blockchain> \
--address <address of diamond contract> \
--project <path to brownie project (should contain build artifacts in build/contracts)> \
--format human
The following command produces JSON output and can be used to inspect a Diamond contract programatically (e.g. as part of a CI/CD pipeline):
inspector-facet \
--network <brownie network name for blockchain> \
--address <address of diamond contract> \
--project <path to brownie project (should contain build artifacts in build/contracts)> \
--format json
Support
You can get help in any of the following ways:
- File an issue
- Ask for help on Moonstream Discord
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for inspector_facet-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5483567bfa29e20913f972c00925bc2230227010e4fcfce1531c3f9bd6c092c9 |
|
MD5 | 0c1483fde95e5c6149e941923f41a907 |
|
BLAKE2b-256 | 94d7f49c9568191248b6139421a230c0a238ba39786d0d6bcb70e103d3ec462a |