Socket
Book a DemoInstallSign in
Socket

dot-vote-relayer

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dot-vote-relayer

Dot-Vote-Relayer relays signatures created on a Dot-Vote website. To use Dot-Vote-Relayer, import the relayer to your file using `const { Relayer } = require("dot-vote-relayer");`.

latest
Source
npmnpm
Version
3.0.1
Version published
Maintainers
0
Created
Source

Dot-Vote-Relayer

Dot-Vote-Relayer relays signatures created on a Dot-Vote website. To use Dot-Vote-Relayer, import the relayer to your file using const { Relayer } = require("dot-vote-relayer");.

Create a config for your relayer which contains the following fields:

  • ethRpcUrl - String
  • mongoDbUrl - String
  • governorAddress - Address
  • tokenAddress - Address
  • governorVoteFunction - String
  • governorGetProposalFunction - String
  • governorGetReceiptFunction - String
  • relayerPk - String
  • notificationHook - String
  • relayAtBlocks - array of integers

There is also an optional notificationHook field which can be used to send telegram notifications.

The ABI for your governor and governance token must be placed in the root directory and be named governor.abi and token.abi.

Then start your relayer as follows:

const relayer = new Relayer(config);
relayer.start();

For an example integration, see dydx-relayer.

FAQs

Package last updated on 27 Feb 2025

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