package
Convert a Ledger Plugin Interface (LPI) version 1 plugin to LPIv2
npm install ilp-compat-pluginGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
ILP plugin compatibility layer
Turns any LPI1 plugin into an LPI2 plugin.
const compat = require('ilp-compat-plugin')
const Plugin = require('some-old-plugin')
const plugin = compat(new Plugin({ ... }))
console.log(plugin.constructor.version) // => 2
// Use LPI2
const { fulfillment, data } = await plugin.sendTransfer({ ... })
Note that it's safe to pass LPI2 plugins to compat, it will simply become a no-op.
bosbaber
dabatla@gmail.com
Estimated unpacked size across 8 packages.
422.0 kB
Includes dependencies.
4 direct · 4 outdated
^3.1.0
14.0.3
^3.1.0
4.4.3
^1.3.4
5.1.3-alpha.2
^2.1.0
3.1.4-alpha.2