iotex-core icon indicating copy to clipboard operation
iotex-core copied to clipboard

Evm logger plugin

Open envestcc opened this issue 1 year ago • 1 comments

Description

The background is that currently cannot sense the contracts created through contracts. We hope to use a VM tracer to catch events similar to contract create2.

Here, a plugin has been added to the program, which can be used to set up a VM tracer and retain the tracer in the receipt to retrieve relevant events. With the plugin, off-chain indexers (e.g. AV2) can set up custom tracers.

Type of change

Please delete options that are not relevant.

  • [] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [] Code refactor or improvement
  • [] Breaking change (fix or feature that would cause a new or changed behavior of existing functionality)
  • [] This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • [] make test
  • [] fullsync
  • [] Other test (please specify)

Test Configuration:

  • Firmware version:
  • Hardware:
  • Toolchain:
  • SDK:

Checklist:

  • [] My code follows the style guidelines of this project
  • [] I have performed a self-review of my code
  • [] I have commented my code, particularly in hard-to-understand areas
  • [] I have made corresponding changes to the documentation
  • [] My changes generate no new warnings
  • [] I have added tests that prove my fix is effective or that my feature works
  • [] New and existing unit tests pass locally with my changes
  • [] Any dependent changes have been merged and published in downstream modules

envestcc avatar Nov 27 '24 10:11 envestcc