@polkadot/api-base 10.3.1 → 10.3.3
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/cjs/packageInfo.js +1 -1
- package/package.json +3 -3
- package/packageInfo.js +1 -1
- package/types/api.d.ts +2 -2
- package/types/submittable.d.ts +4 -4
package/cjs/packageInfo.js
CHANGED
|
@@ -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.3.
|
|
4
|
+
exports.packageInfo = { name: '@polkadot/api-base', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.3.3' };
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"./cjs/detectPackage.js"
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
|
-
"version": "10.3.
|
|
21
|
+
"version": "10.3.3",
|
|
22
22
|
"main": "./cjs/index.js",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts",
|
|
@@ -116,8 +116,8 @@
|
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
118
|
"dependencies": {
|
|
119
|
-
"@polkadot/rpc-core": "10.3.
|
|
120
|
-
"@polkadot/types": "10.3.
|
|
119
|
+
"@polkadot/rpc-core": "10.3.3",
|
|
120
|
+
"@polkadot/types": "10.3.3",
|
|
121
121
|
"@polkadot/util": "^11.1.3",
|
|
122
122
|
"rxjs": "^7.8.0",
|
|
123
123
|
"tslib": "^2.5.0"
|
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.3.
|
|
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.3.3' };
|
package/types/api.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface ApiInterfaceRx {
|
|
|
8
8
|
call: QueryableCalls<'rxjs'>;
|
|
9
9
|
consts: QueryableConsts<'rxjs'>;
|
|
10
10
|
extrinsicType: number;
|
|
11
|
-
genesisHash?: Hash;
|
|
11
|
+
genesisHash?: Hash | undefined;
|
|
12
12
|
hasSubscriptions: boolean;
|
|
13
13
|
registry: Registry;
|
|
14
14
|
runtimeMetadata: Metadata;
|
|
@@ -17,7 +17,7 @@ export interface ApiInterfaceRx {
|
|
|
17
17
|
queryMulti: QueryableStorageMulti<'rxjs'>;
|
|
18
18
|
rpc: DecoratedRpc<'rxjs', RpcInterface>;
|
|
19
19
|
tx: SubmittableExtrinsics<'rxjs'>;
|
|
20
|
-
signer?: Signer;
|
|
20
|
+
signer?: Signer | undefined;
|
|
21
21
|
callAt: (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) => Observable<QueryableCalls<'rxjs'>>;
|
|
22
22
|
queryAt: (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) => Observable<QueryableStorage<'rxjs'>>;
|
|
23
23
|
}
|
package/types/submittable.d.ts
CHANGED
|
@@ -17,13 +17,13 @@ export type SubmittableResultResult<ApiType extends ApiTypes, R extends ISubmitt
|
|
|
17
17
|
export type SubmittableResultSubscription<ApiType extends ApiTypes, R extends ISubmittableResult = ISubmittableResult> = ApiType extends 'rxjs' ? Observable<R> : Promise<() => void>;
|
|
18
18
|
export type SubmittablePaymentResult<ApiType extends ApiTypes> = ApiType extends 'rxjs' ? Observable<RuntimeDispatchInfo> : Promise<RuntimeDispatchInfo>;
|
|
19
19
|
export interface SubmittableResultValue {
|
|
20
|
-
dispatchError?: DispatchError;
|
|
21
|
-
dispatchInfo?: DispatchInfo;
|
|
20
|
+
dispatchError?: DispatchError | undefined;
|
|
21
|
+
dispatchInfo?: DispatchInfo | undefined;
|
|
22
22
|
events?: EventRecord[];
|
|
23
|
-
internalError?: Error;
|
|
23
|
+
internalError?: Error | undefined;
|
|
24
24
|
status: ExtrinsicStatus;
|
|
25
25
|
txHash: Hash;
|
|
26
|
-
txIndex?: number;
|
|
26
|
+
txIndex?: number | undefined;
|
|
27
27
|
blockNumber?: BlockNumber;
|
|
28
28
|
}
|
|
29
29
|
export interface SubmittableExtrinsic<ApiType extends ApiTypes, R extends ISubmittableResult = ISubmittableResult> extends Extrinsic {
|