Giter Club home page Giter Club logo

inspector-facet's People

Contributors

zomglings avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

inspector-facet's Issues

Inspector Facet docker image

Have heard from people that they would like to use it but setting up a Python environment is too difficult. It's a reasonable criticism and one that we could mitigate by packaging up Inspector Facet in a docker image and releasing on Docker Hub or GitHub's artifact repository.

Audit log of diamond operations

It should be possible for users to build an audit log of all cut operations that were performed on a Diamond contract. This will require crawling of DiamondCut events from the blockchain.

As such, this issue is related to #2 .

Add support for Diamond contracts which do not mount the DiamondLoupeFacet

If a diamond contract does not mount the DiamondLoupeFacet (which allows for on-chain inspection of attached functionality), then we need to crawl blockchain events to understand what functionality is mounted on that contract.

It should be possible for a user to provide us with a file of diamond-related events for a diamond contract and get all the benefits of Inspector Facet for the inspection of those events.

Add Hardhat support

Hardhat build artifacts differ from Brownie build artifacts as follows:

  1. Build artifacts are put into the artifacts/ directory instead of the build/ directory. artifacts/contracts/ contains the contract ABIs.
  2. Brownie build/contracts/ has a flat structure. Hardhat artifacts/contracts/ reflects the directory structure of the contracts/ directory containing solidity files.
  3. Hardhat contract JSON files have a contractName field that defines the name of the contract in question. They also have a sourceName question that contains the path to the source (solidity) file from the hardhat project root.

Inspector Facet should support getting ABI side-information from hardhat project directories in addition to brownie project directories.

TODO:

  • Implement hardhat support.
  • Open question: Should there be a flag on inspector-facet that the invoker uses to specify whether they want to get ABI information from a brownie project vs. a hardhat project? Or should it be auto-detected?
  • README should be updated explaining how to use inspector-facet with Hardhat projects. One potential area of confusion is that inspector-facet uses brownie to pull smart contract information and so requires brownie networks setup correctly. This has no bearing on whether it gets side information from a brownie project vs. a hardhat project. We should clarify this in README.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.