@polkadot/api-base 10.1.2 → 10.1.4

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 +1 @@
1
- export { packageInfo } from './packageInfo.js';
1
+ export { packageInfo } from './packageInfo.js';
package/cjs/bundle.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
4
  var packageInfo_js_1 = require("./packageInfo.js");
5
- Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return packageInfo_js_1.packageInfo; } });
5
+ Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return packageInfo_js_1.packageInfo; } });
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const packageInfo_1 = require("@polkadot/rpc-core/cjs/packageInfo");
4
4
  const packageInfo_2 = require("@polkadot/types/cjs/packageInfo");
5
- exports.default = [packageInfo_1.packageInfo, packageInfo_2.packageInfo];
5
+ exports.default = [packageInfo_1.packageInfo, packageInfo_2.packageInfo];
@@ -4,4 +4,4 @@ const tslib_1 = require("tslib");
4
4
  const util_1 = require("@polkadot/util");
5
5
  const detectOther_js_1 = tslib_1.__importDefault(require("./detectOther.js"));
6
6
  const packageInfo_js_1 = require("./packageInfo.js");
7
- (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, detectOther_js_1.default);
7
+ (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, detectOther_js_1.default);
package/cjs/index.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  require("./detectPackage.js");
5
- tslib_1.__exportStar(require("./bundle.js"), exports);
5
+ tslib_1.__exportStar(require("./bundle.js"), exports);
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@polkadot/api-base', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.1.2' };
4
+ exports.packageInfo = { name: '@polkadot/api-base', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.1.4' };
package/cjs/types/api.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/cjs/types/base.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,2 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,2 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,2 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,2 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,2 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,4 +10,4 @@ tslib_1.__exportStar(require("@polkadot/api-base/types/submittable"), exports);
10
10
  tslib_1.__exportStar(require("./api.js"), exports);
11
11
  tslib_1.__exportStar(require("./base.js"), exports);
12
12
  tslib_1.__exportStar(require("./derive.js"), exports);
13
- tslib_1.__exportStar(require("./rpc.js"), exports);
13
+ tslib_1.__exportStar(require("./rpc.js"), exports);
package/cjs/types/rpc.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,2 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,2 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/detectOther.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { packageInfo as rpcInfo } from '@polkadot/rpc-core/packageInfo';
2
2
  import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
3
- export default [rpcInfo, typesInfo];
3
+ export default [rpcInfo, typesInfo];
package/detectPackage.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { detectPackage } from '@polkadot/util';
2
2
  import others from './detectOther.js';
3
3
  import { packageInfo } from './packageInfo.js';
4
- detectPackage(packageInfo, null, others);
4
+ detectPackage(packageInfo, null, others);
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  import './detectPackage.js';
2
- export * from './bundle.js';
2
+ export * from './bundle.js';
package/package.json CHANGED
@@ -1,14 +1,12 @@
1
1
  {
2
2
  "author": "Jaco Greeff <jacogr@gmail.com>",
3
3
  "bugs": "https://github.com/polkadot-js/api/issues",
4
- "contributors": [],
5
4
  "description": "Interfaces for interacting with contracts and contract ABIs",
6
5
  "engines": {
7
- "node": ">=14.0.0"
6
+ "node": ">=14"
8
7
  },
9
8
  "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-base#readme",
10
9
  "license": "Apache-2.0",
11
- "maintainers": [],
12
10
  "name": "@polkadot/api-base",
13
11
  "repository": {
14
12
  "directory": "packages/api-base",
@@ -20,7 +18,7 @@
20
18
  "./cjs/detectPackage.js"
21
19
  ],
22
20
  "type": "module",
23
- "version": "10.1.2",
21
+ "version": "10.1.4",
24
22
  "main": "./cjs/index.js",
25
23
  "module": "./index.js",
26
24
  "types": "./index.d.ts",
@@ -118,9 +116,9 @@
118
116
  }
119
117
  },
120
118
  "dependencies": {
121
- "@polkadot/rpc-core": "10.1.2",
122
- "@polkadot/types": "10.1.2",
123
- "@polkadot/util": "^11.0.2",
119
+ "@polkadot/rpc-core": "10.1.4",
120
+ "@polkadot/types": "10.1.4",
121
+ "@polkadot/util": "^11.1.1",
124
122
  "rxjs": "^7.8.0",
125
123
  "tslib": "^2.5.0"
126
124
  }
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/api-base', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.1.2' };
1
+ export const packageInfo = { name: '@polkadot/api-base', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.1.4' };
package/types/api.js CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/types/base.d.ts CHANGED
@@ -28,7 +28,9 @@ export interface PaginationOptions<A = unknown> {
28
28
  pageSize: number;
29
29
  startKey?: string;
30
30
  }
31
- export type DecorateMethod<ApiType extends ApiTypes, T = any> = <M extends (...args: any[]) => Observable<any>>(method: M, options?: DecorateMethodOptions) => T;
31
+ export type DecorateMethod<_ApiType extends ApiTypes, T = any> = <M extends (...args: any[]) => Observable<any>>(method: M, options?: DecorateMethodOptions) => T;
32
32
  type AsCodec<R extends Codec | any> = R extends Codec ? R : Codec;
33
33
  export type ReturnCodec<F extends AnyFunction> = AsCodec<ObsInnerType<ReturnType<F>>>;
34
+ export interface EmptyBase<_> {
35
+ }
34
36
  export {};
package/types/base.js CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/types/calls.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import type { Observable } from 'rxjs';
2
2
  import type { AnyFunction, Codec, DefinitionCallNamed } from '@polkadot/types/types';
3
- import type { ApiTypes, ReturnCodec } from './base.js';
3
+ import type { ApiTypes, EmptyBase, ReturnCodec } from './base.js';
4
4
  export 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 type AugmentedCall<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> = DecoratedCallBase<ApiType, F> & {
6
6
  /** The metadata/description/definition for this method */
7
7
  meta: DefinitionCallNamed;
8
8
  };
9
- export interface AugmentedCalls<ApiType extends ApiTypes> {
9
+ export interface AugmentedCalls<ApiType extends ApiTypes> extends EmptyBase<ApiType> {
10
10
  }
11
11
  export interface QueryableCalls<ApiType extends ApiTypes> extends AugmentedCalls<ApiType> {
12
12
  [key: string]: QueryableModuleCalls<ApiType>;
package/types/calls.js CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/types/consts.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import type { PalletConstantMetadataLatest } from '@polkadot/types/interfaces';
2
2
  import type { Codec } from '@polkadot/types/types';
3
- import type { ApiTypes } from './base.js';
4
- export interface AugmentedConst<ApiType extends ApiTypes> {
3
+ import type { ApiTypes, EmptyBase } from './base.js';
4
+ export interface AugmentedConst<_ extends ApiTypes> {
5
5
  meta: PalletConstantMetadataLatest;
6
6
  }
7
- export interface AugmentedConsts<ApiType extends ApiTypes> {
7
+ export interface AugmentedConsts<ApiType extends ApiTypes> extends EmptyBase<ApiType> {
8
8
  }
9
9
  export interface QueryableConsts<ApiType extends ApiTypes> extends AugmentedConsts<ApiType> {
10
10
  [key: string]: QueryableModuleConsts;
package/types/consts.js CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/types/derive.js CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/types/errors.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { IsError } from '@polkadot/types/metadata/decorate/types';
2
- import type { ApiTypes } from './base.js';
3
- export type AugmentedError<ApiType extends ApiTypes> = IsError;
4
- export interface AugmentedErrors<ApiType extends ApiTypes> {
2
+ import type { ApiTypes, EmptyBase } from './base.js';
3
+ export type AugmentedError<_ extends ApiTypes> = IsError;
4
+ export interface AugmentedErrors<ApiType extends ApiTypes> extends EmptyBase<ApiType> {
5
5
  }
6
6
  export interface DecoratedErrors<ApiType extends ApiTypes> extends AugmentedErrors<ApiType> {
7
7
  [key: string]: ModuleErrors<ApiType>;
package/types/errors.js CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/types/events.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import type { IsEvent } from '@polkadot/types/metadata/decorate/types';
2
2
  import type { AnyTuple } from '@polkadot/types/types';
3
- import type { ApiTypes } from './base.js';
4
- export type AugmentedEvent<ApiType extends ApiTypes, T extends AnyTuple = AnyTuple, N = unknown> = IsEvent<T, N>;
5
- export interface AugmentedEvents<ApiType extends ApiTypes> {
3
+ import type { ApiTypes, EmptyBase } from './base.js';
4
+ export type AugmentedEvent<_ extends ApiTypes, T extends AnyTuple = AnyTuple, N = unknown> = IsEvent<T, N>;
5
+ export interface AugmentedEvents<ApiType extends ApiTypes> extends EmptyBase<ApiType> {
6
6
  }
7
7
  export interface DecoratedEvents<ApiType extends ApiTypes> extends AugmentedEvents<ApiType> {
8
8
  [key: string]: ModuleEvents<ApiType>;
package/types/events.js CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/types/index.js CHANGED
@@ -7,4 +7,4 @@ export * from '@polkadot/api-base/types/submittable';
7
7
  export * from './api.js';
8
8
  export * from './base.js';
9
9
  export * from './derive.js';
10
- export * from './rpc.js';
10
+ export * from './rpc.js';
package/types/rpc.js CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -3,7 +3,7 @@ import type { StorageKey, u64 } from '@polkadot/types';
3
3
  import type { Hash } from '@polkadot/types/interfaces';
4
4
  import type { StorageEntry } from '@polkadot/types/primitive/types';
5
5
  import type { AnyFunction, AnyTuple, Callback, Codec, IStorageKey } from '@polkadot/types/types';
6
- import type { ApiTypes, DropLast, MethodResult, PaginationOptions, PromiseOrObs, ReturnCodec, UnsubscribePromise } from './base.js';
6
+ import type { ApiTypes, DropLast, EmptyBase, MethodResult, PaginationOptions, PromiseOrObs, ReturnCodec, UnsubscribePromise } from './base.js';
7
7
  interface StorageEntryObservableMulti<R extends Codec = Codec> {
8
8
  <T extends Codec = R>(args: (unknown[] | unknown)[]): Observable<T[]>;
9
9
  }
@@ -78,7 +78,7 @@ export type QueryableStorageMulti<ApiType extends ApiTypes> = ApiType extends 'r
78
78
  export type AugmentedQuery<ApiType extends ApiTypes, F extends AnyFunction, A extends AnyTuple = AnyTuple> = MethodResult<ApiType, F> & StorageEntryBase<ApiType, F, A>;
79
79
  export type AugmentedQueryAt<ApiType extends ApiTypes, F extends AnyFunction, A extends AnyTuple = AnyTuple> = MethodResult<ApiType, F> & StorageEntryBaseAt<ApiType, F, A>;
80
80
  export type AugmentedQueryDoubleMap<ApiType extends ApiTypes, F extends AnyFunction, A extends AnyTuple = AnyTuple> = AugmentedQuery<ApiType, F, A>;
81
- export interface AugmentedQueries<ApiType extends ApiTypes> {
81
+ export interface AugmentedQueries<ApiType extends ApiTypes> extends EmptyBase<ApiType> {
82
82
  }
83
83
  export interface QueryableStorage<ApiType extends ApiTypes> extends AugmentedQueries<ApiType> {
84
84
  [key: string]: QueryableModuleStorage<ApiType>;
package/types/storage.js CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,7 +1,7 @@
1
1
  import type { Observable } from 'rxjs';
2
2
  import type { AccountId, Address, ApplyExtrinsicResult, BlockNumber, Call, DispatchError, DispatchInfo, EventRecord, Extrinsic, ExtrinsicStatus, Hash, RuntimeDispatchInfo } from '@polkadot/types/interfaces';
3
3
  import type { AnyFunction, AnyNumber, AnyTuple, Callback, CallBase, Codec, IExtrinsicEra, IKeyringPair, ISubmittableResult, Signer } from '@polkadot/types/types';
4
- import type { ApiTypes, PromiseOrObs } from './base.js';
4
+ import type { ApiTypes, EmptyBase, PromiseOrObs } from './base.js';
5
5
  export type AugmentedSubmittable<T extends AnyFunction, A extends AnyTuple = AnyTuple> = T & CallBase<A>;
6
6
  export type AddressOrPair = IKeyringPair | string | AccountId | Address;
7
7
  export interface SignerOptions {
@@ -44,7 +44,7 @@ export interface SubmittableExtrinsic<ApiType extends ApiTypes, R extends ISubmi
44
44
  export interface SubmittableExtrinsicFunction<ApiType extends ApiTypes, A extends AnyTuple = AnyTuple> extends CallBase<A> {
45
45
  (...params: any[]): SubmittableExtrinsic<ApiType>;
46
46
  }
47
- export interface AugmentedSubmittables<ApiType extends ApiTypes> {
47
+ export interface AugmentedSubmittables<ApiType extends ApiTypes> extends EmptyBase<ApiType> {
48
48
  }
49
49
  export interface SubmittableExtrinsics<ApiType extends ApiTypes> extends AugmentedSubmittables<ApiType> {
50
50
  (extrinsic: Call | Extrinsic | Uint8Array | string): SubmittableExtrinsic<ApiType>;
@@ -1 +1 @@
1
- export {};
1
+ export {};