1.0.0 • Published 2 years ago

jurischain-middleware v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Jurischain Middleware for ReactRelayNetworkLayer (Classic)

Helper to enable the use of Jurischain with ReactRelayNetworkLayer written in TypeScript.

TL-DR

Installation

npm install --save jurischain-module
npm install --save jurischain-middleware

Use

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 })
]));