@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.
@@ -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.149.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": "e60cac12e8978f2cf32b176872b5e65a6e25ebb1",
28
+ "gitHead": "946e996c85ce11d09265b9fcb29f607942353ac2",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {