Helper to enable the use of Jurischain with ReactRelayNetworkLayer written in TypeScript.
npm install --save jurischain-module
npm install --save jurischain-middleware
import Relay from 'react-relay';
import { RelayNetworkLayer } from 'react-relay-network-layer';
import { solve as JurischainSolver } from 'jurischain-module'
import JurischainMiddleware from 'jurischain-middleware'
Relay.injectNetworkLayer(new RelayNetworkLayer([
JurischainMiddleware({ solver: JurischainSolver })
]));