This PR does a few things:
1) Adds knowledge of deviceData to PoolAgent
2) Adds public read-only properties to PoolAgent, since we will now be exposing it to pool owners. Properties are: deviceId, deviceLabel, mode, isRegistered
3) Added eventHandlers.sample.js and support for eventHandlers.js which allows pool owners to easily add handlers for events. I started with onRegister and beforeRegister but this can be expanded on.
@mar-v-in Based on our conversation around https://github.com/nimiq-network/developer-reference/pull/24
This PR does a few things: 1) Adds knowledge of
deviceData
toPoolAgent
2) Adds public read-only properties toPoolAgent
, since we will now be exposing it to pool owners. Properties are:deviceId
,deviceLabel
,mode
,isRegistered
3) AddedeventHandlers.sample.js
and support foreventHandlers.js
which allows pool owners to easily add handlers for events. I started withonRegister
andbeforeRegister
but this can be expanded on.