8.0.2 • Published 3 months ago

@rosen-bridge/watcher-data-extractor v8.0.2

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
3 months ago

Watcher Data Extractor

Table of Contents

Description

Data extractors are modules that are integrated within a scanner. They drive the required information from the scanned blocks and store them in their own database. The watcher data extractor is responsible for tracking all watcher-related data in the network. These data includes permit, commitment and event trigger boxes; all these boxes are created in the network by the watchers. The watchers use their permits to create new commitments, and need to track created commitments and triggers to continue their procedures. On the other side, guards need to track event trigger boxes to verify the related user payment and start an agreement on the exchange transaction.

Related Projects

This module is used within the Scanner project. As stated above, this module is used in the Watcher service to drive the related boxes. It also used in the Guard to track the created event triggers.

How to Use the Watcher Data Extractor

Install

This project is written in node-js using Esnext module and typeorm database. Extractors are not standalone projects and should be used as scanner modules. You can easily install it using npm with the command:

npm install @rosen-bridge/watcher-data-extractor

Alternatively, you can build and use it manually by cloning the project and running:

npm install
npm run build

Usage

In the first step, you need to create a scanner instance; follow the steps here to create a running instance of the scanner. Then, you need to instantiate your desired extractors and register them to your ergo scanner:

const commitmentExtractor = new CommitmentExtractor(
    <extractor_name>,
    <Array<commitment_address>>,
    <rwt_id>,
    dataSource
)
const permitExtractor = new PermitExtractor(
    <extractor_name>,
    dataSource,
    <permit_address>,
    <rwt_id>
)
const eventTriggerExtractor = new EventTriggerExtractor(
    <extractor_name>,
    dataSource,
    <event_trigger_address>,
    <rwt_id>
)
ergoScanner.registerExtractor(commitmentExtractor)
ergoScanner.registerExtractor(permitExtractor)
ergoScanner.registerExtractor(eventTriggerExtractor)

Contributing

TBD

License

TBD

8.0.2

3 months ago

7.0.0

4 months ago

7.0.3

3 months ago

7.0.2

4 months ago

7.0.1

4 months ago

6.0.1

5 months ago

6.0.3

5 months ago

6.0.2

5 months ago

6.0.5

5 months ago

6.0.4

5 months ago

8.0.1

3 months ago

8.0.0

3 months ago

6.0.1-daa95510

5 months ago

6.0.0

6 months ago

6.0.0-2afdd7

6 months ago

5.1.3

7 months ago

5.1.2

7 months ago

5.1.1

7 months ago

5.1.0

9 months ago

5.0.1

9 months ago

5.1.0-ca8db39e

9 months ago

5.0.0

9 months ago

4.2.7

9 months ago

4.2.6

10 months ago

4.2.6-65ea22

10 months ago

4.2.5

10 months ago

5.0.0-ef7d76f

10 months ago

5.0.0-7ef8b706

10 months ago

4.2.4

11 months ago

4.2.3

11 months ago

4.2.2

11 months ago

4.2.1

11 months ago

4.2.0

11 months ago

4.2.0-012952ff

11 months ago

4.1.0

11 months ago

4.1.0-459c1ff4

11 months ago

4.1.0-0764b18e

11 months ago

4.0.0

12 months ago

3.0.0-9e200255

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.2.2

1 year ago

2.0.0

1 year ago

3.0.0

1 year ago

2.1.2

1 year ago

2.1.4

1 year ago

2.1.3

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.0

1 year ago

3.1.1

12 months ago

3.1.0

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

2 years ago

0.2.16

2 years ago

0.2.15

2 years ago

0.2.14

2 years ago

0.2.11-73fc7dc7

2 years ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.10

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.0-5bbac016

2 years ago

0.2.0-2af6e475

2 years ago

0.2.4-a6181aa9

2 years ago

0.2.4-1e103e26

2 years ago

0.2.4-9da49dfb

2 years ago

0.2.0

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.2.4-99994a56

2 years ago

0.2.4-d67f5af7

2 years ago

0.2.3

2 years ago

0.1.4

2 years ago

0.2.2

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.2.4

2 years ago

0.1.5

2 years ago

0.1.2-alpha

2 years ago

0.1.0-alpha-5

2 years ago

0.1.0-alpha-4

2 years ago

0.1.0-alpha-3

2 years ago

0.1.0-alpha-2

2 years ago

0.1.0-alpha

2 years ago