@polkadot/api-augment 6.12.2-18 → 6.12.2-22
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/augment/index.cjs +3 -5
- package/augment/index.js +5 -5
- package/bundle.cjs +1 -18
- package/bundle.js +1 -3
- package/detectPackage.cjs +5 -3
- package/detectPackage.js +3 -2
- package/package.json +7 -50
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
- package/augment/api.cjs +0 -1
- package/augment/api.d.ts +0 -26
- package/augment/api.js +0 -1
- package/augment/consts.d.ts +0 -953
- package/augment/errors.d.ts +0 -1561
- package/augment/events.d.ts +0 -1156
- package/augment/index.d.ts +0 -8
- package/augment/query.d.ts +0 -1455
- package/augment/tx.d.ts +0 -5579
- package/bundle.d.ts +0 -3
- package/consts.cjs +0 -11
- package/consts.d.ts +0 -1
- package/consts.js +0 -4
- package/detectPackage.d.ts +0 -1
- package/errors.cjs +0 -11
- package/errors.d.ts +0 -1
- package/errors.js +0 -4
- package/events.cjs +0 -11
- package/events.d.ts +0 -1
- package/events.js +0 -4
- package/index.d.ts +0 -2
- package/packageInfo.d.ts +0 -4
- package/query.cjs +0 -11
- package/query.d.ts +0 -1
- package/query.js +0 -4
- package/tx.cjs +0 -11
- package/tx.d.ts +0 -1
- package/tx.js +0 -4
- package/types.cjs +0 -72
- package/types.d.ts +0 -6
- package/types.js +0 -10
package/augment/index.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("@polkadot/rpc-augment");
|
|
4
|
+
|
|
3
5
|
require("@polkadot/types-augment");
|
|
4
6
|
|
|
5
7
|
require("./consts.cjs");
|
|
@@ -10,8 +12,4 @@ require("./events.cjs");
|
|
|
10
12
|
|
|
11
13
|
require("./query.cjs");
|
|
12
14
|
|
|
13
|
-
require("./tx.cjs");
|
|
14
|
-
|
|
15
|
-
require("./api.cjs");
|
|
16
|
-
|
|
17
|
-
require("./rpc");
|
|
15
|
+
require("./tx.cjs");
|
package/augment/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Copyright 2017-2021 @polkadot/api-augment authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
3
|
+
// for the API, we decorate not only the endpoints, but all types
|
|
4
|
+
import '@polkadot/rpc-augment';
|
|
5
|
+
import '@polkadot/types-augment'; // the augmentated types (on top of @polkadot/api-base)
|
|
6
|
+
|
|
4
7
|
import "./consts.js";
|
|
5
8
|
import "./errors.js";
|
|
6
9
|
import "./events.js";
|
|
7
10
|
import "./query.js";
|
|
8
|
-
import "./tx.js";
|
|
9
|
-
|
|
10
|
-
import "./api.js";
|
|
11
|
-
import "./rpc";
|
|
11
|
+
import "./tx.js";
|
package/bundle.cjs
CHANGED
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var _exportNames = {
|
|
7
|
-
packageInfo: true
|
|
8
|
-
};
|
|
9
6
|
Object.defineProperty(exports, "packageInfo", {
|
|
10
7
|
enumerable: true,
|
|
11
8
|
get: function () {
|
|
@@ -15,18 +12,4 @@ Object.defineProperty(exports, "packageInfo", {
|
|
|
15
12
|
|
|
16
13
|
require("./augment/index.cjs");
|
|
17
14
|
|
|
18
|
-
var _packageInfo = require("./packageInfo.cjs");
|
|
19
|
-
|
|
20
|
-
var _types = require("./types.cjs");
|
|
21
|
-
|
|
22
|
-
Object.keys(_types).forEach(function (key) {
|
|
23
|
-
if (key === "default" || key === "__esModule") return;
|
|
24
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
25
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
26
|
-
Object.defineProperty(exports, key, {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
get: function () {
|
|
29
|
-
return _types[key];
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
});
|
|
15
|
+
var _packageInfo = require("./packageInfo.cjs");
|
package/bundle.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
// Copyright 2017-2021 @polkadot/api-augment authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
// trigger in the same way as we do externally
|
|
4
3
|
import "./augment/index.js";
|
|
5
|
-
export { packageInfo } from "./packageInfo.js";
|
|
6
|
-
export * from "./types.js";
|
|
4
|
+
export { packageInfo } from "./packageInfo.js";
|
package/detectPackage.cjs
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _packageInfo = require("@polkadot/
|
|
3
|
+
var _packageInfo = require("@polkadot/api-base/packageInfo");
|
|
4
4
|
|
|
5
5
|
var _packageInfo2 = require("@polkadot/types/packageInfo");
|
|
6
6
|
|
|
7
|
+
var _packageInfo3 = require("@polkadot/types-codec/packageInfo");
|
|
8
|
+
|
|
7
9
|
var _util = require("@polkadot/util");
|
|
8
10
|
|
|
9
|
-
var
|
|
11
|
+
var _packageInfo4 = require("./packageInfo.cjs");
|
|
10
12
|
|
|
11
13
|
// Copyright 2017-2021 @polkadot/api-augment authors & contributors
|
|
12
14
|
// SPDX-License-Identifier: Apache-2.0
|
|
13
|
-
(0, _util.detectPackage)(
|
|
15
|
+
(0, _util.detectPackage)(_packageInfo4.packageInfo, typeof __dirname !== 'undefined' && __dirname, [_packageInfo.packageInfo, _packageInfo2.packageInfo, _packageInfo3.packageInfo]);
|
package/detectPackage.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// Copyright 2017-2021 @polkadot/api-augment authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import { packageInfo as
|
|
3
|
+
import { packageInfo as baseInfo } from '@polkadot/api-base/packageInfo';
|
|
4
4
|
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
|
|
5
|
+
import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo';
|
|
5
6
|
import { detectPackage } from '@polkadot/util';
|
|
6
7
|
import { packageInfo } from "./packageInfo.js";
|
|
7
|
-
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [
|
|
8
|
+
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [baseInfo, typesInfo, codecInfo]);
|
package/package.json
CHANGED
|
@@ -20,13 +20,15 @@
|
|
|
20
20
|
"./detectPackage.cjs"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "6.12.2-
|
|
23
|
+
"version": "6.12.2-22",
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.16.5",
|
|
27
|
-
"@polkadot/api-base": "6.12.2-
|
|
28
|
-
"@polkadot/rpc-
|
|
29
|
-
"@polkadot/types": "6.12.2-
|
|
27
|
+
"@polkadot/api-base": "6.12.2-22",
|
|
28
|
+
"@polkadot/rpc-augment": "6.12.2-22",
|
|
29
|
+
"@polkadot/types": "6.12.2-22",
|
|
30
|
+
"@polkadot/types-augment": "6.12.2-22",
|
|
31
|
+
"@polkadot/types-codec": "6.12.2-22"
|
|
30
32
|
},
|
|
31
33
|
"exports": {
|
|
32
34
|
".": {
|
|
@@ -37,84 +39,39 @@
|
|
|
37
39
|
"require": "./augment/index.cjs",
|
|
38
40
|
"default": "./augment/index.js"
|
|
39
41
|
},
|
|
40
|
-
"./augment/api": {
|
|
41
|
-
"require": "./augment/api.cjs",
|
|
42
|
-
"default": "./augment/api.js"
|
|
43
|
-
},
|
|
44
|
-
"./augment/api.d.ts": "./augment/api.d.ts",
|
|
45
42
|
"./augment/consts": {
|
|
46
43
|
"require": "./augment/consts.cjs",
|
|
47
44
|
"default": "./augment/consts.js"
|
|
48
45
|
},
|
|
49
|
-
"./augment/consts.d.ts": "./augment/consts.d.ts",
|
|
50
46
|
"./augment/errors": {
|
|
51
47
|
"require": "./augment/errors.cjs",
|
|
52
48
|
"default": "./augment/errors.js"
|
|
53
49
|
},
|
|
54
|
-
"./augment/errors.d.ts": "./augment/errors.d.ts",
|
|
55
50
|
"./augment/events": {
|
|
56
51
|
"require": "./augment/events.cjs",
|
|
57
52
|
"default": "./augment/events.js"
|
|
58
53
|
},
|
|
59
|
-
"./augment/events.d.ts": "./augment/events.d.ts",
|
|
60
|
-
"./augment/index.d.ts": "./augment/index.d.ts",
|
|
61
54
|
"./augment/query": {
|
|
62
55
|
"require": "./augment/query.cjs",
|
|
63
56
|
"default": "./augment/query.js"
|
|
64
57
|
},
|
|
65
|
-
"./augment/query.d.ts": "./augment/query.d.ts",
|
|
66
58
|
"./augment/tx": {
|
|
67
59
|
"require": "./augment/tx.cjs",
|
|
68
60
|
"default": "./augment/tx.js"
|
|
69
61
|
},
|
|
70
|
-
"./augment/tx.d.ts": "./augment/tx.d.ts",
|
|
71
62
|
"./bundle": {
|
|
72
63
|
"require": "./bundle.cjs",
|
|
73
64
|
"default": "./bundle.js"
|
|
74
65
|
},
|
|
75
|
-
"./bundle.d.ts": "./bundle.d.ts",
|
|
76
|
-
"./consts": {
|
|
77
|
-
"require": "./consts.cjs",
|
|
78
|
-
"default": "./consts.js"
|
|
79
|
-
},
|
|
80
|
-
"./consts.d.ts": "./consts.d.ts",
|
|
81
66
|
"./detectPackage": {
|
|
82
67
|
"require": "./detectPackage.cjs",
|
|
83
68
|
"default": "./detectPackage.js"
|
|
84
69
|
},
|
|
85
|
-
"./detectPackage.d.ts": "./detectPackage.d.ts",
|
|
86
|
-
"./errors": {
|
|
87
|
-
"require": "./errors.cjs",
|
|
88
|
-
"default": "./errors.js"
|
|
89
|
-
},
|
|
90
|
-
"./errors.d.ts": "./errors.d.ts",
|
|
91
|
-
"./events": {
|
|
92
|
-
"require": "./events.cjs",
|
|
93
|
-
"default": "./events.js"
|
|
94
|
-
},
|
|
95
|
-
"./events.d.ts": "./events.d.ts",
|
|
96
|
-
"./index.d.ts": "./index.d.ts",
|
|
97
70
|
"./package.json": "./package.json",
|
|
98
71
|
"./packageInfo": {
|
|
99
72
|
"require": "./packageInfo.cjs",
|
|
100
73
|
"default": "./packageInfo.js"
|
|
101
74
|
},
|
|
102
|
-
"./
|
|
103
|
-
"./query": {
|
|
104
|
-
"require": "./query.cjs",
|
|
105
|
-
"default": "./query.js"
|
|
106
|
-
},
|
|
107
|
-
"./query.d.ts": "./query.d.ts",
|
|
108
|
-
"./README.md": "./README.md",
|
|
109
|
-
"./tx": {
|
|
110
|
-
"require": "./tx.cjs",
|
|
111
|
-
"default": "./tx.js"
|
|
112
|
-
},
|
|
113
|
-
"./tx.d.ts": "./tx.d.ts",
|
|
114
|
-
"./types": {
|
|
115
|
-
"require": "./types.cjs",
|
|
116
|
-
"default": "./types.js"
|
|
117
|
-
},
|
|
118
|
-
"./types.d.ts": "./types.d.ts"
|
|
75
|
+
"./README.md": "./README.md"
|
|
119
76
|
}
|
|
120
77
|
}
|
package/packageInfo.cjs
CHANGED
package/packageInfo.js
CHANGED
package/augment/api.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/augment/api.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Observable } from 'rxjs';
|
|
2
|
-
import type { QueryableConsts } from '@polkadot/api-augment/consts';
|
|
3
|
-
import type { QueryableStorage } from '@polkadot/api-augment/query';
|
|
4
|
-
import type { SubmittableExtrinsics } from '@polkadot/api-augment/tx';
|
|
5
|
-
import type { DecoratedRpc, QueryableStorageMulti } from '@polkadot/api-base/types';
|
|
6
|
-
import type { RpcInterface } from '@polkadot/rpc-core/types';
|
|
7
|
-
import type { Metadata } from '@polkadot/types';
|
|
8
|
-
import type { Hash, RuntimeVersion } from '@polkadot/types/interfaces';
|
|
9
|
-
import type { Registry, Signer } from '@polkadot/types/types';
|
|
10
|
-
declare module '@polkadot/api-base/types/api' {
|
|
11
|
-
interface ApiInterfaceRx {
|
|
12
|
-
consts: QueryableConsts<'rxjs'>;
|
|
13
|
-
extrinsicType: number;
|
|
14
|
-
genesisHash?: Hash;
|
|
15
|
-
hasSubscriptions: boolean;
|
|
16
|
-
registry: Registry;
|
|
17
|
-
runtimeMetadata: Metadata;
|
|
18
|
-
runtimeVersion: RuntimeVersion;
|
|
19
|
-
query: QueryableStorage<'rxjs'>;
|
|
20
|
-
queryAt: (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) => Observable<QueryableStorage<'rxjs'>>;
|
|
21
|
-
queryMulti: QueryableStorageMulti<'rxjs'>;
|
|
22
|
-
rpc: DecoratedRpc<'rxjs', RpcInterface>;
|
|
23
|
-
tx: SubmittableExtrinsics<'rxjs'>;
|
|
24
|
-
signer?: Signer;
|
|
25
|
-
}
|
|
26
|
-
}
|
package/augment/api.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|