src/blockchain/watcher.js
/**
   * subscribe to SetApp events for traces & lpp-campaign
   */
subscribe to SetApp events for traces & lpp-campaign
subscribe to SetApp events for traces & lpp - campaign
async function subscribeApps() {
    subscriptions.push(
      kernel.$contract.events
        .SetApp({
          filter: {
            namespace: keccak256('base'),
            name: [
              keccak256('lpp-capped-milestone'),
              keccak256('lpp-lp-milestone'),
              keccak256('lpp-bridged-milestone'),
              keccak256('lpp-campaign'),
            ],
          },
        })
        .on('data', newPendingEvent)
        .on('changed', e => e.removed && removeEvent(e))
        .on('error', err => {
          Sentry.captureException(
            new Error(`Error blockchain connection subscribeApp: ${err.message}`),
          );
          logger.error('SUBSCRIPTION ERROR: ', err);
        }),
    );
  }
async function subscribeApps ( ) { subscriptions . push ( kernel . $contract . events . SetApp ( { filter : { namespace : keccak256 ( 'base' ) , name : [ keccak256 ( 'lpp-capped-milestone' ) , keccak256 ( 'lpp-lp-milestone' ) , keccak256 ( 'lpp-bridged-milestone' ) , keccak256 ( 'lpp-campaign' ) , ] , } , } ) . on ( 'data' , newPendingEvent ) . on ( 'changed' , e => e . removed && removeEvent ( e ) ) . on ( 'error' , err => { Sentry . captureException ( new Error ( ` ${ err . message } ` ) , ) ; logger . error ( 'SUBSCRIPTION ERROR: ' , err ) ; } ) , ) ; }
subscribe to SetApp events for traces & lpp-campaign
subscribe to SetApp events for traces & lpp - campaign