@dedot/chaintypes 0.231.0 → 0.233.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,79 @@
1
1
  // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainViewFunctions, GenericViewFunction } from 'dedot/types';
4
+ import type { AccountId32Like } from 'dedot/codecs';
5
+ import type {
6
+ PaseoRuntimeRuntimeCallLike,
7
+ PaseoRuntimeConstantsProxyProxyType,
8
+ PolkadotParachainPrimitivesPrimitivesId,
9
+ } from './types.js';
4
10
 
5
- export interface ChainViewFunctions extends GenericChainViewFunctions {}
11
+ export interface ChainViewFunctions extends GenericChainViewFunctions {
12
+ /**
13
+ * Pallet `Proxy`'s view functions
14
+ **/
15
+ proxy: {
16
+ /**
17
+ * Check if a `RuntimeCall` is allowed for a given `ProxyType`.
18
+ *
19
+ * @param {PaseoRuntimeRuntimeCallLike} call
20
+ * @param {PaseoRuntimeConstantsProxyProxyType} proxyType
21
+ **/
22
+ checkPermissions: GenericViewFunction<
23
+ (call: PaseoRuntimeRuntimeCallLike, proxyType: PaseoRuntimeConstantsProxyProxyType) => Promise<boolean>
24
+ >;
25
+
26
+ /**
27
+ * Check if one `ProxyType` is a subset of another `ProxyType`.
28
+ *
29
+ * @param {PaseoRuntimeConstantsProxyProxyType} toCheck
30
+ * @param {PaseoRuntimeConstantsProxyProxyType} against
31
+ **/
32
+ isSuperset: GenericViewFunction<
33
+ (toCheck: PaseoRuntimeConstantsProxyProxyType, against: PaseoRuntimeConstantsProxyProxyType) => Promise<boolean>
34
+ >;
35
+
36
+ /**
37
+ * Generic pallet view function
38
+ **/
39
+ [name: string]: GenericViewFunction;
40
+ };
41
+ /**
42
+ * Pallet `VoterList`'s view functions
43
+ **/
44
+ voterList: {
45
+ /**
46
+ * Get the current `score` of a given account.
47
+ *
48
+ * Returns `(current, real_score)`, the former being the current score that this pallet is
49
+ * aware of, which may or may not be up to date, and the latter being the real score, as
50
+ * provided by
51
+ *
52
+ * If the two differ, it means this node is eligible for [`Call::rebag`].
53
+ *
54
+ * @param {AccountId32Like} who
55
+ **/
56
+ scores: GenericViewFunction<(who: AccountId32Like) => Promise<[bigint | undefined, bigint | undefined]>>;
57
+
58
+ /**
59
+ * Generic pallet view function
60
+ **/
61
+ [name: string]: GenericViewFunction;
62
+ };
63
+ /**
64
+ * Pallet `Paras`'s view functions
65
+ **/
66
+ paras: {
67
+ /**
68
+ * Returns the cost for removing an upgrade cooldown for the given `para`.
69
+ *
70
+ * @param {PolkadotParachainPrimitivesPrimitivesId} para
71
+ **/
72
+ removeUpgradeCooldownCost: GenericViewFunction<(para: PolkadotParachainPrimitivesPrimitivesId) => Promise<bigint>>;
73
+
74
+ /**
75
+ * Generic pallet view function
76
+ **/
77
+ [name: string]: GenericViewFunction;
78
+ };
79
+ }