Skip to content

Destiner/modulescan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

modulescan

ERC-7579 smart account module activity

Uses Envio as the data layer.

  • Uses HyperIndex to index module installations and uninstallations, as well as tracking the currently installed modules for each account.
  • Uses HyperSync to fetch traces to get the installation data (Ethereum only).

Problem

ERC-7579 presents an interoperable plugin system for smart accounts. Smart accounts can install the compatible plugins with out vendor lock, enjoying interopera

Yet, there is a lack of data tooling around the standard. It's quite challenging to get the module installations, especially as the number of chains increases.

Solution

Envio offers exactly what we need to solve this. First, we create multi-chain indexer using HyperIndex, tracking not only the accounts themselves, but all the current and historical module installations for each of them. Then, we enrich that data further using HyperSync, fetching historical traces to get the module installation data.

Architecture

Indexer

Package

Link: https://envio.dev/app/destiner/modulescan/3e770dc

Indexing a two-step process:

  1. Index AccountDeployed event from the EntryPoint contract to track accounts
  • Uses factory field to filter out non ERC7579-compatible accounts
  • Adds each compatible account to the indexer
  1. Indexes ModuleInstalled and ModuleUninstalled events for each tracked account to track module activity
  • Creates ModuleInstallation and ModuleUninstallation entities for each new indexed event
  • Maintains the list of InstalledModule entites for each account
  • modules list of the Account entity is updated automatically using the @derivedFrom property

UI

Package

Link: https://modulescan-ui.vercel.app/

Example account with module data: https://modulescan-ui.vercel.app/account/1/0xfeb4037cd7c43f59666066a19b385b7fbaaf8d37

Screenshots

Home page: latest activity

Screenshot 2024-10-27 at 08 25 48

Account page

Screenshot 2024-10-27 at 08 26 02

Module page

Screenshot 2024-10-27 at 08 26 11

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors