@polkadot/api-augment 6.12.2-20 → 6.12.2-21
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/augment.cjs +3 -0
- package/{tx.js → augment/augment.js} +1 -2
- package/augment/index.cjs +3 -5
- package/augment/index.js +2 -4
- package/bundle.cjs +1 -18
- package/bundle.js +1 -3
- package/detectPackage.cjs +1 -1
- package/detectPackage.js +2 -2
- package/package.json +8 -49
- 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/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,9 @@
|
|
|
1
1
|
// Copyright 2017-2021 @polkadot/api-augment authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import '@polkadot/rpc-augment';
|
|
3
4
|
import '@polkadot/types-augment';
|
|
4
5
|
import "./consts.js";
|
|
5
6
|
import "./errors.js";
|
|
6
7
|
import "./events.js";
|
|
7
8
|
import "./query.js";
|
|
8
|
-
import "./tx.js";
|
|
9
|
-
|
|
10
|
-
import "./api.js";
|
|
11
|
-
import "./rpc";
|
|
9
|
+
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
package/detectPackage.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
5
|
import { detectPackage } from '@polkadot/util';
|
|
6
6
|
import { packageInfo } from "./packageInfo.js";
|
|
7
|
-
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [
|
|
7
|
+
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [baseInfo, typesInfo]);
|
package/package.json
CHANGED
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"./detectPackage.cjs"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "6.12.2-
|
|
23
|
+
"version": "6.12.2-21",
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.16.5",
|
|
27
|
-
"@polkadot/api-base": "6.12.2-
|
|
28
|
-
"@polkadot/
|
|
29
|
-
"@polkadot/types": "6.12.2-
|
|
27
|
+
"@polkadot/api-base": "6.12.2-21",
|
|
28
|
+
"@polkadot/types": "6.12.2-21",
|
|
29
|
+
"@polkadot/types-codec": "6.12.2-21"
|
|
30
30
|
},
|
|
31
31
|
"exports": {
|
|
32
32
|
".": {
|
|
@@ -37,84 +37,43 @@
|
|
|
37
37
|
"require": "./augment/index.cjs",
|
|
38
38
|
"default": "./augment/index.js"
|
|
39
39
|
},
|
|
40
|
-
"./augment/
|
|
41
|
-
"require": "./augment/
|
|
42
|
-
"default": "./augment/
|
|
40
|
+
"./augment/augment": {
|
|
41
|
+
"require": "./augment/augment.cjs",
|
|
42
|
+
"default": "./augment/augment.js"
|
|
43
43
|
},
|
|
44
|
-
"./augment/api.d.ts": "./augment/api.d.ts",
|
|
45
44
|
"./augment/consts": {
|
|
46
45
|
"require": "./augment/consts.cjs",
|
|
47
46
|
"default": "./augment/consts.js"
|
|
48
47
|
},
|
|
49
|
-
"./augment/consts.d.ts": "./augment/consts.d.ts",
|
|
50
48
|
"./augment/errors": {
|
|
51
49
|
"require": "./augment/errors.cjs",
|
|
52
50
|
"default": "./augment/errors.js"
|
|
53
51
|
},
|
|
54
|
-
"./augment/errors.d.ts": "./augment/errors.d.ts",
|
|
55
52
|
"./augment/events": {
|
|
56
53
|
"require": "./augment/events.cjs",
|
|
57
54
|
"default": "./augment/events.js"
|
|
58
55
|
},
|
|
59
|
-
"./augment/events.d.ts": "./augment/events.d.ts",
|
|
60
|
-
"./augment/index.d.ts": "./augment/index.d.ts",
|
|
61
56
|
"./augment/query": {
|
|
62
57
|
"require": "./augment/query.cjs",
|
|
63
58
|
"default": "./augment/query.js"
|
|
64
59
|
},
|
|
65
|
-
"./augment/query.d.ts": "./augment/query.d.ts",
|
|
66
60
|
"./augment/tx": {
|
|
67
61
|
"require": "./augment/tx.cjs",
|
|
68
62
|
"default": "./augment/tx.js"
|
|
69
63
|
},
|
|
70
|
-
"./augment/tx.d.ts": "./augment/tx.d.ts",
|
|
71
64
|
"./bundle": {
|
|
72
65
|
"require": "./bundle.cjs",
|
|
73
66
|
"default": "./bundle.js"
|
|
74
67
|
},
|
|
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
68
|
"./detectPackage": {
|
|
82
69
|
"require": "./detectPackage.cjs",
|
|
83
70
|
"default": "./detectPackage.js"
|
|
84
71
|
},
|
|
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
72
|
"./package.json": "./package.json",
|
|
98
73
|
"./packageInfo": {
|
|
99
74
|
"require": "./packageInfo.cjs",
|
|
100
75
|
"default": "./packageInfo.js"
|
|
101
76
|
},
|
|
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"
|
|
77
|
+
"./README.md": "./README.md"
|
|
119
78
|
}
|
|
120
79
|
}
|
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 {};
|