diff --git a/CHANGELOG.md b/CHANGELOG.md index 5cb944391a..2ecc08a8d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/packages/api/package.json b/packages/api/package.json index a36f800a51..6302ce7778 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -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", diff --git a/packages/api/src/index.ts b/packages/api/src/index.ts index 5c3108855b..bd0d0f911d 100644 --- a/packages/api/src/index.ts +++ b/packages/api/src/index.ts @@ -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';