Skip to content

nodeJS validator instance between the bridge master process

Notifications You must be signed in to change notification settings

ajkagy/xls20-bridge-validator

Repository files navigation

xls-20-bridge-validator

NodeJS lightweight validator for the ERC721 to XLS-20 bridge

Requirements

Getting Started

  1. Create an Infura Account, Create a new project, then make note of the Rinkeby https endpoint.

Installation

Open a command prompt or Powershell prompt and issue the following commands

git clone https://github.com/ajkagy/xls20-bridge-validator
  1. in the root of the xls20-bridge-validator directory create a new .env file and add the following text:

       UPDATE_FREQUENCY=15
       MAIN_SERVER=wss://192.168.0.133:11500/
       VALIDATOR_WSS_KEY=
       VALIDATOR_NUMBER=1
       VALIDATOR_XRPL_ADDRESS=
       VALIDATOR_XRPL_SECRET=
       MULTI_SIG_WALLET_ADDRESS= 
       ETH_ENDPOINT=
       BRIDGE_CONTRACT=0xaA1c3f272f9709d2a6dB4A8FC3Ab0e31FFd30a92
       XRPL_RPC=wss://xls20-sandbox.rippletest.net:51233
    
  2. Replace the environement variables with your own set values.

    • MAIN_SERVER the websocket url for the Bridge Master Process example shown.
    • VALIDATOR_WSS_KEY the WS/WSS Key for the Bridge Master Process
    • VALIDATOR_NUMBER validator number (1,2 or 3)
    • VALIDATOR_XRPL_ADDRESS xrpl address for the validators setup in step 1 of the Bridge Instructions
    • VALIDATOR_XRPL_SECRET xrpl seed for the validators setup in step 1 of the Bridge Instructions
    • MULTI_SIG_WALLET_ADDRESS multisig issuer address setup in step 3 of the Bridge Instructions
    • ETH_ENDPOINT Infura Rinkeby Eth Endpoint
    • BRIDGE_CONTRACT Bridge contract address on Rinkeby
    • XRPL_RPC XLS-20 Dev Net RPC
  3. Install

     npm install
    
  4. Start the validator

     node validator.js
    

About

nodeJS validator instance between the bridge master process

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published