@dedot/chaintypes 0.175.0 → 0.176.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,6 +1,7 @@
1
1
  // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
4
+ import type { AccountId32Like } from 'dedot/codecs';
4
5
  import type { AssetHubPolkadotRuntimeRuntimeCallLike, AssetHubPolkadotRuntimeProxyType } from './types.js';
5
6
 
6
7
  export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {
@@ -30,6 +31,49 @@ export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainV
30
31
  (toCheck: AssetHubPolkadotRuntimeProxyType, against: AssetHubPolkadotRuntimeProxyType) => Promise<boolean>
31
32
  >;
32
33
 
34
+ /**
35
+ * Generic pallet view function
36
+ **/
37
+ [name: string]: GenericViewFunction<Rv>;
38
+ };
39
+ /**
40
+ * Pallet `VoterList`'s view functions
41
+ **/
42
+ voterList: {
43
+ /**
44
+ * Get the current `score` of a given account.
45
+ *
46
+ * Returns `(current, real_score)`, the former being the current score that this pallet is
47
+ * aware of, which may or may not be up to date, and the latter being the real score, as
48
+ * provided by
49
+ *
50
+ * If the two differ, it means this node is eligible for [`Call::rebag`].
51
+ *
52
+ * @param {AccountId32Like} who
53
+ **/
54
+ scores: GenericViewFunction<Rv, (who: AccountId32Like) => Promise<[bigint | undefined, bigint | undefined]>>;
55
+
56
+ /**
57
+ * Generic pallet view function
58
+ **/
59
+ [name: string]: GenericViewFunction<Rv>;
60
+ };
61
+ /**
62
+ * Pallet `MultiBlockElectionSigned`'s view functions
63
+ **/
64
+ multiBlockElectionSigned: {
65
+ /**
66
+ * Get the deposit amount that will be held for a solution of `pages`.
67
+ *
68
+ * This allows an offchain application to know what [`Config::DepositPerPage`] and
69
+ * [`Config::DepositBase`] are doing under the hood. It also takes into account if `who` is
70
+ * [`Invulnerables`] or not.
71
+ *
72
+ * @param {AccountId32Like} who
73
+ * @param {number} pages
74
+ **/
75
+ depositFor: GenericViewFunction<Rv, (who: AccountId32Like, pages: number) => Promise<bigint>>;
76
+
33
77
  /**
34
78
  * Generic pallet view function
35
79
  **/