dapphub / ds-note

Log function calls as events

Home Page:https://dapp.tools/dappsys/ds-note.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Log function calls as events

https://dapp.tools/dappsys/ds-note.html

License:GNU General Public License v3.0


Languages

Language:Solidity 94.3%Language:Nix 4.4%Language:Makefile 1.3%