@polkadot/api-base 9.7.1 → 9.8.2

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.
package/bundle.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2022 @polkadot/api-contract authors & contributors
1
+ // Copyright 2017-2022 @polkadot/api-base authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  export { packageInfo } from "./packageInfo.js";
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _packageInfo = require("@polkadot/rpc-core/cjs/packageInfo");
8
8
  var _packageInfo2 = require("@polkadot/types/cjs/packageInfo");
9
- // Copyright 2017-2022 @polkadot/api-contract authors & contributors
9
+ // Copyright 2017-2022 @polkadot/api-base authors & contributors
10
10
  // SPDX-License-Identifier: Apache-2.0
11
11
  var _default = [_packageInfo.packageInfo, _packageInfo2.packageInfo];
12
12
  exports.default = _default;
@@ -13,6 +13,6 @@ const packageInfo = {
13
13
  name: '@polkadot/api-base',
14
14
  path: typeof __dirname === 'string' ? __dirname : 'auto',
15
15
  type: 'cjs',
16
- version: '9.7.1'
16
+ version: '9.8.2'
17
17
  };
18
18
  exports.packageInfo = packageInfo;
package/detectOther.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2022 @polkadot/api-contract authors & contributors
1
+ // Copyright 2017-2022 @polkadot/api-base authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  import { packageInfo as rpcInfo } from '@polkadot/rpc-core/packageInfo';
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2022 @polkadot/api-contract authors & contributors
1
+ // Copyright 2017-2022 @polkadot/api-base authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  import "./detectPackage.js";
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "9.7.1",
23
+ "version": "9.8.2",
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.20.1",
119
- "@polkadot/rpc-core": "9.7.1",
120
- "@polkadot/types": "9.7.1",
121
- "@polkadot/util": "^10.1.11",
119
+ "@polkadot/rpc-core": "9.8.2",
120
+ "@polkadot/types": "9.8.2",
121
+ "@polkadot/util": "^10.1.12",
122
122
  "rxjs": "^7.5.7"
123
123
  }
124
124
  }
package/packageInfo.js CHANGED
@@ -7,5 +7,5 @@ export const packageInfo = {
7
7
  name: '@polkadot/api-base',
8
8
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
9
9
  type: 'esm',
10
- version: '9.7.1'
10
+ version: '9.8.2'
11
11
  };
package/types/calls.d.ts CHANGED
@@ -3,6 +3,7 @@ import type { AnyFunction, Codec, DefinitionCallNamed } from '@polkadot/types/ty
3
3
  import type { ApiTypes, ReturnCodec } from './base';
4
4
  export declare type DecoratedCallBase<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> = ApiType extends 'rxjs' ? <T extends Codec | any = ReturnCodec<F>>(...args: Parameters<F>) => Observable<T> : <T extends Codec | any = ReturnCodec<F>>(...args: Parameters<F>) => Promise<T>;
5
5
  export declare type AugmentedCall<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> = DecoratedCallBase<ApiType, F> & {
6
+ /** The metadata/description/definition for this method */
6
7
  meta: DefinitionCallNamed;
7
8
  };
8
9
  export interface AugmentedCalls<ApiType extends ApiTypes> {
@@ -26,6 +26,10 @@ export interface SubmittableResultValue {
26
26
  txIndex?: number;
27
27
  }
28
28
  export interface SubmittableExtrinsic<ApiType extends ApiTypes, R extends ISubmittableResult = ISubmittableResult> extends Extrinsic {
29
+ /** true if api.rpc.system.dryRun is available, enabling dryRun(...) */
30
+ hasDryRun: boolean;
31
+ /** true if api.call.transactionPaymentApi.queryInfo is available, enabling paymentInfo(...) */
32
+ hasPaymentInfo: boolean;
29
33
  dryRun(account: AddressOrPair, options?: Partial<SignerOptions>): SubmittableDryRunResult<ApiType>;
30
34
  paymentInfo(account: AddressOrPair, options?: Partial<SignerOptions>): SubmittablePaymentResult<ApiType>;
31
35
  send(): SubmittableResultResult<ApiType>;