Expose keyring via @polkadot/api (#1385)

* Expose keyring via @polkadot/api

* typo, not -> now
This commit is contained in:
Jaco Greeff
2019-09-12 10:03:25 +02:00
committed by GitHub
parent 8accd2945e
commit 8b80ce7132
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -2,6 +2,7 @@
- The API now correctly sets the ss58 prefix as retrieved from the chain properties vis `ss58Format`
- Bump to `@polkadot/util` 1.3.1, removing use of `ExtError`
- the `Keyring` from `@polkadot/keyring` is now exposed on the API as well. You can do `import { Keyring } from '@polkadot/api'` - this alleviates the need for extra dependencies (apart from `@polkadot/api`), and since the keyring is critical for signing operations, aligns everything in one bundle
# 0.91.1
+1
View File
@@ -29,6 +29,7 @@
"@babel/runtime": "^7.6.0",
"@polkadot/api-derive": "^0.92.0-beta.6",
"@polkadot/api-metadata": "^0.92.0-beta.6",
"@polkadot/keyring": "^1.4.0-beta.0",
"@polkadot/rpc-core": "^0.92.0-beta.6",
"@polkadot/rpc-provider": "^0.92.0-beta.6",
"@polkadot/types": "^0.92.0-beta.6",
+1
View File
@@ -6,6 +6,7 @@ import { assertSingletonPackage } from '@polkadot/util';
assertSingletonPackage('@polkadot/api');
export { Keyring } from '@polkadot/keyring';
export { WsProvider } from '@polkadot/rpc-provider';
export { default as ApiPromise } from './promise';