Expose keyring via @polkadot/api (#1385)
* Expose keyring via @polkadot/api * typo, not -> now
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user