Skip to content

A handful of node.js processes that integrate dogecoin deposits and withdrawals with ripple gatewayd.

Notifications You must be signed in to change notification settings

rubythonode/blockchain-gatewayd-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockchain Gatewayd Plugin

Installation

npm install --save blockchain-gatewayd-plugin

Usage

In the Gatewaydfile.js of your gatewayd installation

  const BlockchainPlugin = require('blockchain-gatewayd-plugin');
  const BlockchainClient = require('blockchain-monitor').Client;

  const blockchainPlugin = new BlockchainPlugin({
    gatewayd: gatewayd,
    blockchainClient: new BlockchainClient({
      host: '127.0.0.1',
      port: 22555,
      https: false,
      user: 'rpcUser',
      pass: 'rpcPassword',
      type: 'dogecoin'
    })
  }); 

  // will mount blockchainPlugin.router at '/blockchain-bridge' in gatewayd.server
  // will also start each process listed in processes 
  gatewayd.plugins.register({
    plugin: blockchainPlugin,
    name: 'blockchain',
    route: '/blockchain-bridge',
    processes: blockchainPlugin.processes
  });

blockchainPlugin.processes is an object containg names processes of and paths to their file to be executed by pm2.

For instance, in blockchain-gatewayd-plugin/processes/new_addresses.js

  const gatewayd = require(process.env.GATEWAYD_PATH);

  gatewayd.plugins.blockchain.workers.newAddresses.start();

About

A handful of node.js processes that integrate dogecoin deposits and withdrawals with ripple gatewayd.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 68.6%
  • CoffeeScript 31.4%