DSNote type is a way to generically log function calls as events. To do this, it provides a
LogNote event and a
note modifier. Functions that are decorated with the
note modifier, will log a
LogNote event that contains this list of data:
- The first parameter that the function is taking
- The second parameter that the function is taking
The first four items are indexed, making them queryable by blockchain clients. This covers most of the usecases for events, making this package useful to quickly add event logging functionality to your dapp.
Your contract should inherit from the
DSNote type if you want a simple repeatable way to log function calls as events.
This event will log information about functions that are decorated with the
note modifier. The parameters correspond to these data fields:
foois the first parameter that the function is taking
baris the second parameter that the function is taking
event LogNote( bytes4 indexed sig, address indexed guy, bytes32 indexed foo, bytes32 indexed bar, uint wad, bytes fax ) anonymous
Decorating functions with the
note modifier will cause useful information to be logged when they are called. See
LogNote above for the specific information that gets logged.