Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@p2pmodels/eth-manager

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@p2pmodels/eth-manager

Node.js service responsible of listening Round Robin contract events and creating transactions to reallocate tasks

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Ether Manager

Node.js scripts for setting up event listeners for Round Robin prototype. It creates cron jobs for reallocxation assignments among Amara linguists.

Installation

Ether Manager uses Infura to connect to Etherum. To run the manager it is required to set up an Infura project, see here

  1. Install Node.js and npm, see here
  2. Clone the repository git clone https://github.com/P2PModels/ether-manager.git
  3. Get into the directory ether-manager
  4. Run npm install to install dependencies
  5. Rename the file .env.example to .env
  6. Set Infura keys and project endpoint in .env
  7. Run npm run start

Docker

  1. Rename the file .env.example to .env
  2. Set Infura keys and project endpoint in .env
  3. Create container image docker image -t ether-manager .
  4. Execute container (in background) docker run -d ether-manager

After starting Ether Manager listens for events emitted into the Ethereum rinkedby network.

Restart contract

From time to time, it might be required to "reset" the state of the contract (i.e., remove tasks, allocations, and users). To do, execute npm run restart-contract. After contract restarted, it might be needed to generate mock data, to do so run npm run create-mock-data.

Troubleshooting

Error 126, Permission denied

It happens when trying to run a script that does not have executable right. Solution assign execution permission to the script. In UNIX-based operating systems run the command chmod +x <script_name>. For more information see here

Keywords

FAQs

Package last updated on 08 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc