https://github.com/interledgerjs/ilp-pluginproxy
A proxy for ILP plugins to bridge between different plugins
https://github.com/interledgerjs/ilp-pluginproxy
Last synced: 6 months ago
JSON representation
A proxy for ILP plugins to bridge between different plugins
- Host: GitHub
- URL: https://github.com/interledgerjs/ilp-pluginproxy
- Owner: interledgerjs
- License: apache-2.0
- Created: 2018-03-05T12:06:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-19T14:24:57.000Z (about 7 years ago)
- Last Synced: 2025-02-25T14:56:18.492Z (10 months ago)
- Language: TypeScript
- Size: 39.1 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ILP Plugin Proxy
> Javascript wrapper for plugins that expose the Ledger Plugin Interface v2.
[](https://circleci.com/gh/interledgerjs/ilp-pluginproxy)
[](https://codecov.io/gh/interledgerjs/ilp-pluginproxy)
[](https://standardjs.com)
The Plugin Proxy can be run as a stand-alone service. It is configured with two ILP plugins and provides a bridge between them registering the sendData and sendMoney functions on each as the handleMoney and handleData handlers on the other.
The package also provides a basic implementation of the BTP plugin which will:
- handle BTP Transfer messages and pass the amount to the sendMoney of the other plugin.
- handle calls to sendMoney by sending a BTP Transfer message
By using BTP as a standard messaging interface ILP implementations that are not written in JavaScript can use the proxy to get functionality provided by the various JS plugins already written.
## Installation
```shell
npm install ilp-pluginproxy
```
## API Documentation
See https://interledgerjs.github.io/ilp-pluginproxy
## Usage
### Creating a Proxy
```js
//TODO
```
Try it out by running the [example script](./example.js).