@dedot/chaintypes 0.131.0 → 0.133.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.
Files changed (58) hide show
  1. package/aleph/index.d.ts +2 -0
  2. package/aleph/view-functions.d.ts +5 -0
  3. package/astar/index.d.ts +2 -0
  4. package/astar/view-functions.d.ts +5 -0
  5. package/basilisk/index.d.ts +2 -0
  6. package/basilisk/view-functions.d.ts +5 -0
  7. package/hydration/index.d.ts +2 -0
  8. package/hydration/view-functions.d.ts +5 -0
  9. package/kusama/index.d.ts +2 -0
  10. package/kusama/view-functions.d.ts +5 -0
  11. package/kusama-asset-hub/index.d.ts +2 -0
  12. package/kusama-asset-hub/view-functions.d.ts +5 -0
  13. package/kusama-people/index.d.ts +2 -0
  14. package/kusama-people/view-functions.d.ts +5 -0
  15. package/moonbeam/index.d.ts +2 -0
  16. package/moonbeam/view-functions.d.ts +5 -0
  17. package/package.json +3 -3
  18. package/paseo/index.d.ts +2 -0
  19. package/paseo/view-functions.d.ts +5 -0
  20. package/paseo-asset-hub/index.d.ts +2 -0
  21. package/paseo-asset-hub/view-functions.d.ts +5 -0
  22. package/paseo-hydration/consts.d.ts +49 -133
  23. package/paseo-hydration/errors.d.ts +209 -212
  24. package/paseo-hydration/events.d.ts +141 -158
  25. package/paseo-hydration/index.d.ts +3 -1
  26. package/paseo-hydration/query.d.ts +101 -143
  27. package/paseo-hydration/runtime.d.ts +25 -0
  28. package/paseo-hydration/tx.d.ts +596 -682
  29. package/paseo-hydration/types.d.ts +945 -683
  30. package/paseo-hydration/view-functions.d.ts +5 -0
  31. package/paseo-people/index.d.ts +2 -0
  32. package/paseo-people/view-functions.d.ts +5 -0
  33. package/polkadot/index.d.ts +2 -0
  34. package/polkadot/view-functions.d.ts +5 -0
  35. package/polkadot-asset-hub/index.d.ts +2 -0
  36. package/polkadot-asset-hub/view-functions.d.ts +5 -0
  37. package/polkadot-people/index.d.ts +2 -0
  38. package/polkadot-people/view-functions.d.ts +5 -0
  39. package/substrate/index.d.ts +2 -0
  40. package/substrate/runtime.d.ts +11 -11
  41. package/substrate/types.d.ts +8 -1
  42. package/substrate/view-functions.d.ts +5 -0
  43. package/vara/index.d.ts +2 -0
  44. package/vara/view-functions.d.ts +5 -0
  45. package/westend/errors.d.ts +2 -0
  46. package/westend/index.d.ts +2 -0
  47. package/westend/query.d.ts +2 -0
  48. package/westend/tx.d.ts +12 -0
  49. package/westend/types.d.ts +11 -11
  50. package/westend/view-functions.d.ts +84 -0
  51. package/westend-asset-hub/errors.d.ts +2 -0
  52. package/westend-asset-hub/index.d.ts +2 -0
  53. package/westend-asset-hub/query.d.ts +2 -0
  54. package/westend-asset-hub/tx.d.ts +8 -0
  55. package/westend-asset-hub/types.d.ts +42 -44
  56. package/westend-asset-hub/view-functions.d.ts +82 -0
  57. package/westend-people/index.d.ts +2 -0
  58. package/westend-people/view-functions.d.ts +5 -0
@@ -0,0 +1,82 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
4
+ import type { AccountId32Like } from 'dedot/codecs';
5
+ import type { AssetHubWestendRuntimeRuntimeCallLike, AssetHubWestendRuntimeProxyType } from './types.js';
6
+
7
+ export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {
8
+ /**
9
+ * Pallet `Proxy`'s view functions
10
+ **/
11
+ proxy: {
12
+ /**
13
+ * Check if a `RuntimeCall` is allowed for a given `ProxyType`.
14
+ *
15
+ * @param {AssetHubWestendRuntimeRuntimeCallLike} call
16
+ * @param {AssetHubWestendRuntimeProxyType} proxyType
17
+ **/
18
+ checkPermissions: GenericViewFunction<
19
+ Rv,
20
+ (call: AssetHubWestendRuntimeRuntimeCallLike, proxyType: AssetHubWestendRuntimeProxyType) => Promise<boolean>
21
+ >;
22
+
23
+ /**
24
+ * Check if one `ProxyType` is a subset of another `ProxyType`.
25
+ *
26
+ * @param {AssetHubWestendRuntimeProxyType} toCheck
27
+ * @param {AssetHubWestendRuntimeProxyType} against
28
+ **/
29
+ isSuperset: GenericViewFunction<
30
+ Rv,
31
+ (toCheck: AssetHubWestendRuntimeProxyType, against: AssetHubWestendRuntimeProxyType) => Promise<boolean>
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
+
77
+ /**
78
+ * Generic pallet view function
79
+ **/
80
+ [name: string]: GenericViewFunction<Rv>;
81
+ };
82
+ }
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
7
7
  import { ChainErrors } from './errors.js';
8
8
  import { ChainEvents } from './events.js';
9
9
  import { RuntimeApis } from './runtime.js';
10
+ import { ChainViewFunctions } from './view-functions.js';
10
11
  import { ChainTx } from './tx.js';
11
12
 
12
13
  export * from './types.js';
@@ -18,6 +19,7 @@ export interface VersionedWestendPeopleApi<Rv extends RpcVersion> extends Generi
18
19
  errors: ChainErrors<Rv>;
19
20
  events: ChainEvents<Rv>;
20
21
  call: RuntimeApis<Rv>;
22
+ view: ChainViewFunctions<Rv>;
21
23
  tx: ChainTx<Rv>;
22
24
  }
23
25
 
@@ -0,0 +1,5 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
4
+
5
+ export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {}