@dedot/chaintypes 0.149.0 → 0.151.0
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/basilisk/index.d.ts +1 -1
- package/kusama/consts.d.ts +41 -2
- package/kusama/errors.d.ts +38 -0
- package/kusama/events.d.ts +132 -0
- package/kusama/index.d.ts +1 -1
- package/kusama/query.d.ts +35 -0
- package/kusama/tx.d.ts +209 -15
- package/kusama/types.d.ts +465 -98
- package/kusama/view-functions.d.ts +80 -1
- package/kusama-asset-hub/consts.d.ts +48 -2
- package/kusama-asset-hub/errors.d.ts +52 -23
- package/kusama-asset-hub/events.d.ts +212 -36
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/query.d.ts +79 -26
- package/kusama-asset-hub/runtime.d.ts +180 -13
- package/kusama-asset-hub/tx.d.ts +347 -143
- package/kusama-asset-hub/types.d.ts +1613 -1188
- package/kusama-asset-hub/view-functions.d.ts +34 -1
- package/kusama-people/consts.d.ts +21 -0
- package/kusama-people/errors.d.ts +8 -0
- package/kusama-people/events.d.ts +22 -0
- package/kusama-people/index.d.ts +1 -1
- package/kusama-people/query.d.ts +25 -2
- package/kusama-people/runtime.d.ts +121 -0
- package/kusama-people/tx.d.ts +24 -12
- package/kusama-people/types.d.ts +1072 -954
- package/kusama-people/view-functions.d.ts +34 -1
- package/package.json +2 -2
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type { PeopleKusamaRuntimeRuntimeCallLike, PeopleKusamaRuntimeProxyType } from './types.js';
|
|
4
5
|
|
|
5
|
-
export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {
|
|
6
|
+
export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {
|
|
7
|
+
/**
|
|
8
|
+
* Pallet `Proxy`'s view functions
|
|
9
|
+
**/
|
|
10
|
+
proxy: {
|
|
11
|
+
/**
|
|
12
|
+
* Check if a `RuntimeCall` is allowed for a given `ProxyType`.
|
|
13
|
+
*
|
|
14
|
+
* @param {PeopleKusamaRuntimeRuntimeCallLike} call
|
|
15
|
+
* @param {PeopleKusamaRuntimeProxyType} proxyType
|
|
16
|
+
**/
|
|
17
|
+
checkPermissions: GenericViewFunction<
|
|
18
|
+
Rv,
|
|
19
|
+
(call: PeopleKusamaRuntimeRuntimeCallLike, proxyType: PeopleKusamaRuntimeProxyType) => Promise<boolean>
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Check if one `ProxyType` is a subset of another `ProxyType`.
|
|
24
|
+
*
|
|
25
|
+
* @param {PeopleKusamaRuntimeProxyType} toCheck
|
|
26
|
+
* @param {PeopleKusamaRuntimeProxyType} against
|
|
27
|
+
**/
|
|
28
|
+
isSuperset: GenericViewFunction<
|
|
29
|
+
Rv,
|
|
30
|
+
(toCheck: PeopleKusamaRuntimeProxyType, against: PeopleKusamaRuntimeProxyType) => Promise<boolean>
|
|
31
|
+
>;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Generic pallet view function
|
|
35
|
+
**/
|
|
36
|
+
[name: string]: GenericViewFunction<Rv>;
|
|
37
|
+
};
|
|
38
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.151.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@dedot.dev>",
|
|
6
6
|
"homepage": "https://dedot.dev",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"directory": "dist"
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "946e996c85ce11d09265b9fcb29f607942353ac2",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|