@polkadot/api-base 8.14.1 → 9.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,6 +11,6 @@ const packageInfo = {
11
11
  name: '@polkadot/api-base',
12
12
  path: typeof __dirname === 'string' ? __dirname : 'auto',
13
13
  type: 'cjs',
14
- version: '8.14.1'
14
+ version: '9.0.1'
15
15
  };
16
16
  exports.packageInfo = packageInfo;
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "8.14.1",
23
+ "version": "9.0.1",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
@@ -116,9 +116,9 @@
116
116
  },
117
117
  "dependencies": {
118
118
  "@babel/runtime": "^7.18.9",
119
- "@polkadot/rpc-core": "8.14.1",
120
- "@polkadot/types": "8.14.1",
121
- "@polkadot/util": "^10.1.1",
119
+ "@polkadot/rpc-core": "9.0.1",
120
+ "@polkadot/types": "9.0.1",
121
+ "@polkadot/util": "^10.1.2",
122
122
  "rxjs": "^7.5.6"
123
123
  }
124
124
  }
package/packageInfo.js CHANGED
@@ -5,5 +5,5 @@ export const packageInfo = {
5
5
  name: '@polkadot/api-base',
6
6
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
7
7
  type: 'esm',
8
- version: '8.14.1'
8
+ version: '9.0.1'
9
9
  };
package/types/api.d.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  import type { Observable } from 'rxjs';
2
- import type { DecoratedRpc, QueryableConsts, QueryableStorage, QueryableStorageMulti, SubmittableExtrinsics } from '@polkadot/api-base/types';
2
+ import type { DecoratedRpc, QueryableCalls, QueryableConsts, QueryableStorage, QueryableStorageMulti, SubmittableExtrinsics } from '@polkadot/api-base/types';
3
3
  import type { RpcInterface } from '@polkadot/rpc-core/types';
4
4
  import type { Metadata } from '@polkadot/types';
5
5
  import type { Hash, RuntimeVersion } from '@polkadot/types/interfaces';
6
6
  import type { Registry, Signer } from '@polkadot/types/types';
7
7
  export interface ApiInterfaceRx {
8
+ call: QueryableCalls<'rxjs'>;
8
9
  consts: QueryableConsts<'rxjs'>;
9
10
  extrinsicType: number;
10
11
  genesisHash?: Hash;
@@ -40,10 +40,6 @@ export interface StorageEntryBase<ApiType extends ApiTypes, F extends AnyFunctio
40
40
  * @deprecated Use api.at(<blockHash>)
41
41
  */
42
42
  keysAt: <K extends AnyTuple = A>(hash: Hash | Uint8Array | string, ...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, StorageKey<K>[]>;
43
- /**
44
- * @deprecated The underlying RPC this been marked unsafe and is generally not exposed
45
- */
46
- range: <T extends Codec | any = ReturnCodec<F>>([from, to]: [Hash | Uint8Array | string, Hash | Uint8Array | string | undefined] | [Hash | Uint8Array | string], ...args: Parameters<F>) => PromiseOrObs<ApiType, [Hash, T][]>;
47
43
  /**
48
44
  * @deprecated Use api.at(<blockHash>)
49
45
  */
@@ -30,10 +30,6 @@ export interface SubmittableExtrinsic<ApiType extends ApiTypes, R extends ISubmi
30
30
  paymentInfo(account: AddressOrPair, options?: Partial<SignerOptions>): SubmittablePaymentResult<ApiType>;
31
31
  send(): SubmittableResultResult<ApiType>;
32
32
  send(statusCb: Callback<R>): SubmittableResultSubscription<ApiType, R>;
33
- /**
34
- * @deprecated
35
- */
36
- sign(account: IKeyringPair, _options?: Partial<SignerOptions>): this;
37
33
  signAsync(account: AddressOrPair, _options?: Partial<SignerOptions>): PromiseOrObs<ApiType, this>;
38
34
  signAndSend(account: AddressOrPair, options?: Partial<SignerOptions>): SubmittableResultResult<ApiType, R>;
39
35
  signAndSend(account: AddressOrPair, statusCb: Callback<R>): SubmittableResultSubscription<ApiType>;