UNPKG

@parity/light.js

Version:

A high-level reactive JS library optimized for light clients

26 lines (25 loc) 933 B
"use strict"; // Copyright 2015-2019 Parity Technologies (UK) Ltd. // This file is part of Parity. // // SPDX-License-Identifier: MIT Object.defineProperty(exports, "__esModule", { value: true }); var createPubsubObservable_1 = require("./utils/createPubsubObservable"); /** * Observable that emits each time the default account changes * * @param options - Options to pass to {@link FrequencyObservable}. */ function onAccountsChanged$(options) { return createPubsubObservable_1.default('eth_accounts', 'eth_accounts', options); } exports.onAccountsChanged$ = onAccountsChanged$; /** * Observable that emits each time the default account changes * * @param options - Options to pass to {@link FrequencyObservable}. */ function onAccountsInfoChanged$(options) { return createPubsubObservable_1.default('parity_accountsInfo', 'parity_accountsInfo', options); } exports.onAccountsInfoChanged$ = onAccountsInfoChanged$;