raphaelzhou1-ds-note

2.0.0 • Public • Published

DSNote

Log function calls as events

Provides generic function call logging by way of a note modifier which triggers the capture of data as a LogNote event containing:

  • msg.sig (indexed)
  • msg.sender (indexed)
  • The first function parameter (indexed)
  • The second function parameter (indexed)
  • msg.value
  • msg.data

Functions decorated with the note modifier will log this information whenever they are called with the indexed fields being queryable by blockchain clients. This covers most usecases for events, making this an easy way to quickly add event logging to your dapp.

Readme

Keywords

none

Package Sidebar

Install

npm i raphaelzhou1-ds-note

Weekly Downloads

1

Version

2.0.0

License

ISC

Unpacked Size

38.9 kB

Total Files

5

Last publish

Collaborators

  • raphaelzhou1