2.2.1 • Published 1 year ago

dot-vote-relayer v2.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.

2.2.1

1 year ago

2.2.0

1 year ago

2.1.0

1 year ago

0.1.3

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago