4.0.1 • Published 4 years ago
demux-eos v4.0.1
demux-js-eos
Installation
# Using yarn
yarn add demux-eos
# Using npm
npm install demux-eos --save
Usage
MongoDB Plugin
const { BaseActionWatcher } = require("demux")
const { MongoActionReader } = require("demux-eos")
const actionHandler = ... // see https://github.com/EOSIO/demux-js-postgres for a supported ActionHandler
const actionReader = new MongoActionReader(
mongodbHost, // the url of the mongodb instance (mongodb://localhost:27017)
2, // the mongodb plugin starts at block 2
false, // whether or not to only process irreversible blocks
600, // the maximum history length
mongoDbName, // name of the database
)
const actionWatcher = new BaseActionWatcher(actionReader, actionHander, 500)
await actionReader.initialize() // This must be done before calling watch so the MongoDB connection can be made
actionWatcher.watch()
5.0.4-441
4 years ago
5.0.4-433
4 years ago
5.0.4-422
5 years ago
5.0.4-419
5 years ago
5.0.4-416
5 years ago
5.0.4-413
5 years ago
5.0.4-409
5 years ago
5.0.4-405
5 years ago
5.0.4-402
5 years ago
5.0.4-399
5 years ago
5.0.4-396
5 years ago
5.0.4-393
5 years ago
5.0.4-383
5 years ago
5.0.4-374
5 years ago
5.0.4-352
5 years ago
5.0.4-346
5 years ago
5.0.4-336
5 years ago
5.0.4-333
5 years ago
5.0.4-327
5 years ago
5.0.3-d5fb199.0
5 years ago
4.0.2-fa029d0.0
5 years ago
4.0.2-3036101.0
5 years ago
4.0.2-93c5a58.0
5 years ago
4.0.2-b1374c4.0
5 years ago
4.0.2-6f8b25d.0
5 years ago
4.0.2-7cb1f28.0
5 years ago
4.0.2-24b10b4.0
5 years ago
4.0.2-e691036.0
5 years ago
4.0.2-8e33de5.0
5 years ago
4.0.2-ed84df6.0
5 years ago
4.0.1
5 years ago
4.0.2-3d89ed2.0
5 years ago
4.0.1-7efc1cb.0
5 years ago
4.0.1-5742004.0
5 years ago
4.0.1-d61a4ab.0
5 years ago
4.0.1-35dc32a.0
5 years ago
4.0.0
5 years ago
4.0.1-05121d6.0
5 years ago
3.1.1-5824ad0.0
5 years ago
3.1.1-a7b7673.0
5 years ago
3.1.1-adb53a9.0
5 years ago
3.1.1-d654f6f.0
5 years ago
3.1.1-f145f6e.0
5 years ago
3.1.1-68e2338.0
5 years ago
3.1.1-21dbab3.0
5 years ago
3.1.1-3fa5c41.0
5 years ago
3.1.1-26f09da.0
5 years ago
3.1.0
5 years ago
3.1.1-b0985ff.0
5 years ago
3.0.1
5 years ago
3.0.2-40a514c.0
5 years ago
3.0.0
5 years ago
3.0.1-8794fc1.0
5 years ago
2.0.1-0a3742e.0
5 years ago
2.0.1-f387e03.0
5 years ago
2.0.0
6 years ago
1.1.0
6 years ago
1.0.1
6 years ago
0.0.1-hotfix
6 years ago
0.0.1
6 years ago