UNPKG

@parity/light.js

Version:

A high-level reactive JS library optimized for light clients

31 lines (27 loc) 686 B
// Copyright 2015-2019 Parity Technologies (UK) Ltd. // This file is part of Parity. // // SPDX-License-Identifier: MIT import { setApi, setProvider } from './api'; import frequency from './frequency'; import { makeContract } from './rpc/other/makeContract'; import rpc from './rpc'; export * from './types'; export { frequency, makeContract }; // makeContract is a bit special, because it's not a RpcObservable export const { accounts$, accountsInfo$, balanceOf$, chainId$, transactionCountOf$, blockNumber$, chainName$, defaultAccount$, myBalance$, peerCount$, post$, postRaw$, syncStatus$, versionInfo$ } = rpc; export default { setApi, setProvider };