@dedot/chaintypes 0.174.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.
- package/package.json +2 -2
- package/paseo/index.d.ts +1 -1
- package/paseo-asset-hub/index.d.ts +1 -1
- package/paseo-hydration/consts.d.ts +46 -12
- package/paseo-hydration/errors.d.ts +103 -13
- package/paseo-hydration/events.d.ts +416 -0
- package/paseo-hydration/index.d.ts +1 -1
- package/paseo-hydration/query.d.ts +239 -15
- package/paseo-hydration/runtime.d.ts +121 -0
- package/paseo-hydration/tx.d.ts +353 -19
- package/paseo-hydration/types.d.ts +889 -42
- package/paseo-people/index.d.ts +1 -1
- package/polkadot/consts.d.ts +18 -0
- package/polkadot/errors.d.ts +113 -0
- package/polkadot/events.d.ts +364 -0
- package/polkadot/index.d.ts +1 -1
- package/polkadot/query.d.ts +329 -0
- package/polkadot/runtime.d.ts +26 -0
- package/polkadot/tx.d.ts +432 -0
- package/polkadot/types.d.ts +905 -4
- package/polkadot-asset-hub/consts.d.ts +658 -2
- package/polkadot-asset-hub/errors.d.ts +1294 -20
- package/polkadot-asset-hub/events.d.ts +1916 -15
- package/polkadot-asset-hub/index.d.ts +1 -1
- package/polkadot-asset-hub/query.d.ts +1801 -25
- package/polkadot-asset-hub/runtime.d.ts +168 -0
- package/polkadot-asset-hub/tx.d.ts +10212 -4748
- package/polkadot-asset-hub/types.d.ts +9243 -1313
- package/polkadot-asset-hub/view-functions.d.ts +44 -0
|
@@ -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
|
**/
|