watcher-ts/packages/util/src/graph
prathamesh0 bd73dae1b1
Implement consensus mechanism using mokka (#412)
* Add Consensus class with placeholders

* Implement Consensus constructor

* Move PubsubType to peer package

* Implement remaining methods in Consensus class

* Use existing consensus stream if it exists

* Setup send and receive pipes on consensus streams

* Refactor P2P and consensus setup in server command

* Add Nitro node initialization in server command

* Return objects from server initializations

* Use dynamic imports for ES modules in util package

* Fix util deps

* Change target to es6 to allow creating a Mokka instance

* Set moduleResolution to node16 in util for dynamic imports

* Upgrade @cerc-io/nitro-node package

* Implement retries while sending consensus messages

* Use bunyan for consensus logs and subscribe to state changes

* Use debug for logging state change events

* Handle empty watcher party file path

* Return object from initP2P

* Upgrade @cerc-io/nitro-node package

* Update package versions
2023-09-14 13:47:31 +05:30
..
database.ts Implement consensus mechanism using mokka (#412) 2023-09-14 13:47:31 +05:30
graph-decimal.ts Refactor graph-node database and move to util (#259) 2022-11-25 15:54:35 +05:30
state-utils.ts Implement CLI to create checkpoint state from existing GQL endpoint (#382) 2023-05-15 12:10:27 +05:30
types.ts Refactor graph-node database and move to util (#259) 2022-11-25 15:54:35 +05:30
utils.ts Implement consensus mechanism using mokka (#412) 2023-09-14 13:47:31 +05:30