@energyweb/node-red-contrib-energywebx
v0.4.0
Published
Turn your flows to become SmartFlows in-order to be able to have your node-red flows being installed and executed on thousands of decentralised worker nodes around the world (Powered by Energy Web X)
Downloads
3,258
Readme
node-red-contrib-energywebx
Have your node-red flows to become SmartFlows by being installed, executed and reach consensus across thousands of decentralised worker nodes around the world.
Screenshot:
Nodes
Submit Results
- Sends the computation result to EWX Marketplace App with configured solution namespace and network (REX, EWX)
Consensus Event
- Verifies submitted solution results to check for consensus (majority of votes on the same solution result hash, 50% + 1 required to reach consensus), output consensus result (REACHED, NOT_ENOUGH_VOTES, UNABLE_TO_REACH_CONSENSUS, FAILED) and leader address (if any action needs to be taken after reaching consensus by single entity, algorithm will select leader)
- Upsert State (WIP)
- Worker node casts a vote(request) to update state of a partucular object attached to a solution on EWX
Query State (WIP)
- Worker node makes a call to a particular solution object store in order to retrieve the current value
Send XCM (WIP)
- Sends a request XCM message publishing, upon majority votes by all worker nodes, this will be trigered on EWX to a target parachain and pallet
Listen XCM (WIP)
- Listens to particular XCM events recieved on EWX from a source parachain pallet
Eth Interaction (WIP)
- Request for an interaction with a particular SmartContract on main-net Ethereum
Eth Events (WIP)
- Listens to a particular event raised from a target SmartContract on main-net Ethereum
EWC Interaction (WIP)
- Request for an interaction with a particular SmartContract on Energy Web Chain
EWC Events (WIP)
- Listens to a particular event raised from a target SmartContract on Energy Web Chain
Local development
$ yarn dev
$ cd ~/.node-red
$ npm install <absolute-path-repository>