From 5e9cf106e24ed8dd26be8359924a9f9f86c04a8e Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Fri, 12 Jul 2019 16:49:47 +0200 Subject: [PATCH] Update README.md --- packages/extension-dapp/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/extension-dapp/README.md b/packages/extension-dapp/README.md index a07bfd96..c4fc4814 100644 --- a/packages/extension-dapp/README.md +++ b/packages/extension-dapp/README.md @@ -2,13 +2,13 @@ A basic extractor that manipulates the `window.injectedWeb3` to retrieve all the providers added to the page. It has a number of utilities - -- `web3Enable(dappName: string): Promise>` - to be called before anything else, retrieves the list of all injected extensions/providers -- `web3Accounts(): Promise>` - returns a list of all the injected accounts, accross all extensions (source in meta) -- `web3AccountsSubscribe(cb: (accounts: Array) => any): Promise` - subscribes to the accounts accross all extensions, returning a full list as changes are made +- `web3Enable(dappName: string): Promise` - to be called before anything else, retrieves the list of all injected extensions/providers +- `web3Accounts(): Promise` - returns a list of all the injected accounts, accross all extensions (source in meta) +- `web3AccountsSubscribe(cb: (accounts: InjectedAccountWithMeta[]) => any): Promise` - subscribes to the accounts accross all extensions, returning a full list as changes are made - `web3FromAddress(address: string): Promise` - Retrieves a provider for a specific address - `web3FromSource(name: string): Promise` - Retrieves a provider identified by the name - `isWeb3Injected: boolean` - boolean to indicate if `injectedWeb3` was found on the page -- `web3EnablePromise: Promise> | null` - `null` or the promise as a result of the last call to `web3Enable` +- `web3EnablePromise: Promise | null` - `null` or the promise as a result of the last call to `web3Enable` ## Usage