@polkadot/api-augment 14.0.1 → 14.1.1

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 (40) hide show
  1. package/cjs/base.d.ts +2 -0
  2. package/cjs/bundle.d.ts +2 -0
  3. package/cjs/index.d.ts +2 -0
  4. package/cjs/kusama/consts.d.ts +1044 -0
  5. package/cjs/kusama/errors.d.ts +2355 -0
  6. package/cjs/kusama/events.d.ts +2543 -0
  7. package/cjs/kusama/index.d.ts +8 -0
  8. package/cjs/kusama/query.d.ts +2378 -0
  9. package/cjs/kusama/registry.d.ts +3 -0
  10. package/cjs/kusama/runtime.d.ts +683 -0
  11. package/cjs/kusama/tx.d.ts +5778 -0
  12. package/cjs/packageDetect.d.ts +1 -0
  13. package/cjs/packageInfo.d.ts +6 -0
  14. package/cjs/packageInfo.js +1 -1
  15. package/cjs/polkadot/consts.d.ts +864 -0
  16. package/cjs/polkadot/errors.d.ts +1954 -0
  17. package/cjs/polkadot/events.d.ts +2024 -0
  18. package/cjs/polkadot/index.d.ts +8 -0
  19. package/cjs/polkadot/query.d.ts +2133 -0
  20. package/cjs/polkadot/registry.d.ts +2 -0
  21. package/cjs/polkadot/runtime.d.ts +683 -0
  22. package/cjs/polkadot/tx.d.ts +4932 -0
  23. package/cjs/substrate/consts.d.ts +1763 -0
  24. package/cjs/substrate/errors.d.ts +3409 -0
  25. package/cjs/substrate/events.d.ts +4300 -0
  26. package/cjs/substrate/index.d.ts +8 -0
  27. package/cjs/substrate/query.d.ts +2582 -0
  28. package/cjs/substrate/registry.d.ts +1 -0
  29. package/cjs/substrate/runtime.d.ts +577 -0
  30. package/cjs/substrate/tx.d.ts +10200 -0
  31. package/kusama/runtime.d.ts +253 -212
  32. package/package.json +368 -128
  33. package/packageInfo.js +1 -1
  34. package/polkadot/consts.d.ts +50 -66
  35. package/polkadot/errors.d.ts +114 -183
  36. package/polkadot/events.d.ts +83 -144
  37. package/polkadot/query.d.ts +159 -100
  38. package/polkadot/runtime.d.ts +315 -179
  39. package/polkadot/tx.d.ts +2770 -636
  40. package/substrate/runtime.d.ts +217 -175
@@ -1,241 +1,297 @@
1
1
  import '@polkadot/api-base/types/calls';
2
2
  import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
3
- import type { Bytes, Null, Option, Result, U64, Vec, bool, u32 } from '@polkadot/types-codec';
3
+ import type { BTreeMap, BitVec, Bytes, Null, Option, Result, Text, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
5
- import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
6
- import type { BeefyAuthoritySet, BeefyEquivocationProof, BeefyNextAuthoritySet, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
7
- import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
8
- import type { BlockHash } from '@polkadot/types/interfaces/chain';
9
- import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
5
+ import type { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
10
6
  import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
11
- import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
12
- import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
13
7
  import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
14
- import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
15
- import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
16
- import type { ApprovalVotingParams, AsyncBackingParams, BackingState, CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, NodeFeatures, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
17
- import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
18
- import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
19
- import type { SessionIndex } from '@polkadot/types/interfaces/session';
20
- import type { ValidatorIndex } from '@polkadot/types/interfaces/staking';
21
- import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
22
- import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
23
- import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
8
+ import type { ParaId, ValidationCodeHash } from '@polkadot/types/interfaces/parachains';
9
+ import type { AccountId32, H256, RuntimeCall, Slot } from '@polkadot/types/interfaces/runtime';
10
+ import type { PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotPrimitivesV7ApprovalVotingParams, PolkadotPrimitivesV7AsyncBackingAsyncBackingParams, PolkadotPrimitivesV7AsyncBackingBackingState, PolkadotPrimitivesV7CandidateCommitments, PolkadotPrimitivesV7CandidateEvent, PolkadotPrimitivesV7CommittedCandidateReceipt, PolkadotPrimitivesV7CoreState, PolkadotPrimitivesV7DisputeState, PolkadotPrimitivesV7ExecutorParams, PolkadotPrimitivesV7GroupRotationInfo, PolkadotPrimitivesV7OccupiedCoreAssumption, PolkadotPrimitivesV7PersistedValidationData, PolkadotPrimitivesV7PvfCheckStatement, PolkadotPrimitivesV7ScrapedOnChainVotes, PolkadotPrimitivesV7SessionInfo, PolkadotPrimitivesV7SlashingDisputeProof, PolkadotPrimitivesV7SlashingPendingSlashes, PolkadotPrimitivesV7ValidatorAppPublic, PolkadotPrimitivesV7ValidatorAppSignature, PolkadotRuntimeOriginCaller, RelayCommonApisInflationInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpVersionRuntimeVersion, SpWeightsWeightV2Weight, XcmRuntimeApisConversionsError, XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError, XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisFeesError, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
24
11
  import type { IExtrinsic, Observable } from '@polkadot/types/types';
25
12
  export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
26
13
  export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
27
14
  declare module '@polkadot/api-base/types/calls' {
28
15
  interface AugmentedCalls<ApiType extends ApiTypes> {
29
- /** 0xbc9d89904f5b923f/1 */
16
+ /** 0xbc9d89904f5b923f/ */
30
17
  accountNonceApi: {
31
18
  /**
32
- * The API to query account nonce (aka transaction index)
19
+ * Get current account nonce of given `AccountId`.
33
20
  **/
34
- accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;
21
+ accountNonce: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array) => Observable<u32>>;
35
22
  /**
36
23
  * Generic call
37
24
  **/
38
25
  [key: string]: DecoratedCallBase<ApiType>;
39
26
  };
40
- /** 0x687ad44ad37f03c2/1 */
27
+ /** 0x687ad44ad37f03c2/ */
41
28
  authorityDiscoveryApi: {
42
29
  /**
43
30
  * Retrieve authority identifiers of the current and next authority set.
44
31
  **/
45
- authorities: AugmentedCall<ApiType, () => Observable<Vec<AuthorityId>>>;
32
+ authorities: AugmentedCall<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>>;
46
33
  /**
47
34
  * Generic call
48
35
  **/
49
36
  [key: string]: DecoratedCallBase<ApiType>;
50
37
  };
51
- /** 0xcbca25e39f142387/2 */
38
+ /** 0xcbca25e39f142387/ */
52
39
  babeApi: {
53
40
  /**
54
- * Return the genesis configuration for BABE. The configuration is only read on genesis.
41
+ * Return the configuration for BABE.
55
42
  **/
56
- configuration: AugmentedCall<ApiType, () => Observable<BabeGenesisConfiguration>>;
43
+ configuration: AugmentedCall<ApiType, () => Observable<SpConsensusBabeBabeConfiguration>>;
57
44
  /**
58
45
  * Returns information regarding the current epoch.
59
46
  **/
60
- currentEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
47
+ currentEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
61
48
  /**
62
49
  * Returns the slot that started the current epoch.
63
50
  **/
64
51
  currentEpochStart: AugmentedCall<ApiType, () => Observable<Slot>>;
65
52
  /**
66
- * Generates a proof of key ownership for the given authority in the current epoch.
53
+ * Generates a proof of key ownership for the given authority in the, current epoch. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `slot` as parameter the current, implementations ignores this parameter and instead relies on this, method being called at the correct block height, i.e. any point at, which the epoch for the given slot is live on-chain. Future, implementations will instead use indexed data through an offchain, worker, not requiring older states to be available.
67
54
  **/
68
- generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
55
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authority_id: SpConsensusBabeAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
69
56
  /**
70
- * Returns information regarding the next epoch (which was already previously announced).
57
+ * Returns information regarding the next epoch (which was already, previously announced).
71
58
  **/
72
- nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
59
+ nextEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
73
60
  /**
74
- * Submits an unsigned extrinsic to report an equivocation.
61
+ * Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
75
62
  **/
76
- submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BabeEquivocationProof | {
63
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusSlotsEquivocationProof | {
77
64
  offender?: any;
78
- slotNumber?: any;
65
+ slot?: any;
79
66
  firstHeader?: any;
80
67
  secondHeader?: any;
81
- } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
68
+ } | string | Uint8Array, key_owner_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
82
69
  /**
83
70
  * Generic call
84
71
  **/
85
72
  [key: string]: DecoratedCallBase<ApiType>;
86
73
  };
87
- /** 0x49eaaf1b548a0cb0/3 */
74
+ /** 0x49eaaf1b548a0cb0/ */
88
75
  beefyApi: {
89
76
  /**
90
77
  * Return the block number where BEEFY consensus is enabled/started
91
78
  **/
92
- beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
79
+ beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<u32>>>;
93
80
  /**
94
- * Generates a proof of key ownership for the given authority in the given set.
81
+ * Generates a proof of key ownership for the given authority in the, given set. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `set_id` as parameter the current, implementations ignores this parameter and instead relies on this, method being called at the correct block height, i.e. any point at, which the given set id is live on-chain. Future implementations will, instead use indexed data through an offchain worker, not requiring, older states to be available.
95
82
  **/
96
- generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
83
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusBeefyEcdsaCryptoPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
97
84
  /**
98
- * Submits an unsigned extrinsic to report an equivocation.
85
+ * Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
99
86
  **/
100
- submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | {
87
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusBeefyDoubleVotingProof | {
101
88
  first?: any;
102
89
  second?: any;
103
- } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
90
+ } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
104
91
  /**
105
92
  * Return the current active BEEFY validator set
106
93
  **/
107
- validatorSet: AugmentedCall<ApiType, () => Observable<Option<ValidatorSet>>>;
94
+ validatorSet: AugmentedCall<ApiType, () => Observable<Option<SpConsensusBeefyValidatorSet>>>;
108
95
  /**
109
96
  * Generic call
110
97
  **/
111
98
  [key: string]: DecoratedCallBase<ApiType>;
112
99
  };
113
- /** 0x2a5e924655399e60/1 */
100
+ /** 0x2a5e924655399e60/ */
114
101
  beefyMmrApi: {
115
102
  /**
116
103
  * Return the currently active BEEFY authority set proof.
117
104
  **/
118
- authoritySetProof: AugmentedCall<ApiType, () => Observable<BeefyAuthoritySet>>;
105
+ authoritySetProof: AugmentedCall<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>>;
119
106
  /**
120
107
  * Return the next/queued BEEFY authority set proof.
121
108
  **/
122
- nextAuthoritySetProof: AugmentedCall<ApiType, () => Observable<BeefyNextAuthoritySet>>;
109
+ nextAuthoritySetProof: AugmentedCall<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>>;
123
110
  /**
124
111
  * Generic call
125
112
  **/
126
113
  [key: string]: DecoratedCallBase<ApiType>;
127
114
  };
128
- /** 0x40fe3ad401f8959a/6 */
115
+ /** 0x40fe3ad401f8959a/ */
129
116
  blockBuilder: {
130
117
  /**
131
- * Apply the given extrinsic.
118
+ * Apply the given extrinsic.,, Returns an inclusion outcome which specifies if this extrinsic is included in, this block or not.
132
119
  **/
133
- applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
120
+ applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>>;
134
121
  /**
135
- * Check that the inherents are valid.
122
+ * Check that the inherents are valid. The inherent data will vary from chain to chain.
136
123
  **/
137
- checkInherents: AugmentedCall<ApiType, (block: Block | {
124
+ checkInherents: AugmentedCall<ApiType, (block: SpRuntimeBlock | {
138
125
  header?: any;
139
126
  extrinsics?: any;
140
- } | string | Uint8Array, data: InherentData | {
127
+ } | string | Uint8Array, data: SpInherentsInherentData | {
141
128
  data?: any;
142
- } | string | Uint8Array) => Observable<CheckInherentsResult>>;
129
+ } | string | Uint8Array) => Observable<SpInherentsCheckInherentsResult>>;
143
130
  /**
144
131
  * Finish the current block.
145
132
  **/
146
- finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
133
+ finalizeBlock: AugmentedCall<ApiType, () => Observable<SpRuntimeHeader>>;
147
134
  /**
148
- * Generate inherent extrinsics.
135
+ * Generate inherent extrinsics. The inherent data will vary from chain to chain.
149
136
  **/
150
- inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | {
137
+ inherentExtrinsics: AugmentedCall<ApiType, (inherent: SpInherentsInherentData | {
151
138
  data?: any;
152
- } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
139
+ } | string | Uint8Array) => Observable<Vec<Bytes>>>;
153
140
  /**
154
141
  * Generic call
155
142
  **/
156
143
  [key: string]: DecoratedCallBase<ApiType>;
157
144
  };
158
- /** 0xdf6acb689907609b/4 */
145
+ /** 0xdf6acb689907609b/ */
159
146
  core: {
160
147
  /**
161
148
  * Execute the given block.
162
149
  **/
163
- executeBlock: AugmentedCall<ApiType, (block: Block | {
150
+ executeBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | {
164
151
  header?: any;
165
152
  extrinsics?: any;
166
153
  } | string | Uint8Array) => Observable<Null>>;
167
154
  /**
168
- * Initialize a block with the given header.
155
+ * Initialize a block with the given header and return the runtime executive mode.
169
156
  **/
170
- initializeBlock: AugmentedCall<ApiType, (header: Header | {
157
+ initializeBlock: AugmentedCall<ApiType, (header: SpRuntimeHeader | {
171
158
  parentHash?: any;
172
159
  number?: any;
173
160
  stateRoot?: any;
174
161
  extrinsicsRoot?: any;
175
162
  digest?: any;
176
- } | string | Uint8Array) => Observable<Null>>;
163
+ } | string | Uint8Array) => Observable<SpRuntimeExtrinsicInclusionMode>>;
177
164
  /**
178
165
  * Returns the version of the runtime.
179
166
  **/
180
- version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
167
+ version: AugmentedCall<ApiType, () => Observable<SpVersionRuntimeVersion>>;
181
168
  /**
182
169
  * Generic call
183
170
  **/
184
171
  [key: string]: DecoratedCallBase<ApiType>;
185
172
  };
186
- /** 0xfbc577b9d747efd6/1 */
173
+ /** 0x91b1c8b16328eb92/ */
174
+ dryRunApi: {
175
+ /**
176
+ * Dry run call.
177
+ **/
178
+ dryRunCall: AugmentedCall<ApiType, (origin: PolkadotRuntimeOriginCaller | {
179
+ system: any;
180
+ } | {
181
+ Void: any;
182
+ } | {
183
+ Origins: any;
184
+ } | {
185
+ ParachainsOrigin: any;
186
+ } | {
187
+ XcmPallet: any;
188
+ } | string | Uint8Array, call: RuntimeCall | IMethod | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>>;
189
+ /**
190
+ * Dry run XCM program
191
+ **/
192
+ dryRunXcm: AugmentedCall<ApiType, (origin_location: XcmVersionedLocation | {
193
+ V2: any;
194
+ } | {
195
+ V3: any;
196
+ } | {
197
+ V4: any;
198
+ } | string | Uint8Array, xcm: XcmVersionedXcm | {
199
+ V2: any;
200
+ } | {
201
+ V3: any;
202
+ } | {
203
+ V4: any;
204
+ } | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>>;
205
+ /**
206
+ * Generic call
207
+ **/
208
+ [key: string]: DecoratedCallBase<ApiType>;
209
+ };
210
+ /** 0xfbc577b9d747efd6/ */
187
211
  genesisBuilder: {
188
212
  /**
189
- * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
213
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the, storage.,, In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and, puts it into the storage. If the provided JSON blob is incorrect or incomplete or the, deserialization fails, an error is returned.,, Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no, defaults will be used.
190
214
  **/
191
- buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
215
+ buildState: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<Null, Text>>>;
192
216
  /**
193
- * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
217
+ * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by, `id`.,, If `id` is `None` the function returns JSON blob representation of the default, `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default, `RuntimeGenesisConfig`.,, Otherwise function returns a JSON representation of the built-in, named, `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not, exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of, (potentially nested) key-value pairs that are intended for customizing the default, runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation, of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can, be used in `build_state` method.
194
218
  **/
195
- createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
219
+ getPreset: AugmentedCall<ApiType, (id: Option<Text> | null | Uint8Array | Text | string) => Observable<Option<Bytes>>>;
220
+ /**
221
+ * Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.,, The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If, no named presets are provided by the runtime the list is empty.
222
+ **/
223
+ presetNames: AugmentedCall<ApiType, () => Observable<Vec<Text>>>;
196
224
  /**
197
225
  * Generic call
198
226
  **/
199
227
  [key: string]: DecoratedCallBase<ApiType>;
200
228
  };
201
- /** 0xed99c5acb25eedf5/3 */
229
+ /** 0xed99c5acb25eedf5/ */
202
230
  grandpaApi: {
203
231
  /**
204
232
  * Get current GRANDPA authority set id.
205
233
  **/
206
- currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
234
+ currentSetId: AugmentedCall<ApiType, () => Observable<u64>>;
207
235
  /**
208
- * Generates a proof of key ownership for the given authority in the given set.
236
+ * Generates a proof of key ownership for the given authority in the, given set. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `set_id` as parameter the current, implementations ignore this parameter and instead rely on this, method being called at the correct block height, i.e. any point at, which the given set id is live on-chain. Future implementations will, instead use indexed data through an offchain worker, not requiring, older states to be available.
209
237
  **/
210
- generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
238
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusGrandpaAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
211
239
  /**
212
- * Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
240
+ * Get the current GRANDPA authorities and weights. This should not change except, for when changes are scheduled and the corresponding delay has passed.,, When called at block B, it will return the set of authorities that should be, used to finalize descendants of this block (B+1, B+2, ...). The block B itself, is finalized by the authorities from block B-1.
213
241
  **/
214
- grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
242
+ grandpaAuthorities: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>>;
215
243
  /**
216
- * Submits an unsigned extrinsic to report an equivocation.
244
+ * Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
217
245
  **/
218
- submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | {
246
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusGrandpaEquivocationProof | {
219
247
  setId?: any;
220
248
  equivocation?: any;
221
- } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
249
+ } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
250
+ /**
251
+ * Generic call
252
+ **/
253
+ [key: string]: DecoratedCallBase<ApiType>;
254
+ };
255
+ /** 0xc51ff1fa3f5d0cca/ */
256
+ inflation: {
257
+ /**
258
+ * Return the current estimates of the inflation amount.,, This is marked as experimental in light of RFC#89. Nonetheless, its usage is highly, recommended over trying to read-storage, or re-create the onchain logic.
259
+ **/
260
+ experimentalInflationPredictionInfo: AugmentedCall<ApiType, () => Observable<RelayCommonApisInflationInfo>>;
222
261
  /**
223
262
  * Generic call
224
263
  **/
225
264
  [key: string]: DecoratedCallBase<ApiType>;
226
265
  };
227
- /** 0x37e397fc7c91f5e4/2 */
266
+ /** 0x9ffb505aa738d69c/ */
267
+ locationToAccountApi: {
268
+ /**
269
+ * Converts `Location` to `AccountId`.
270
+ **/
271
+ convertLocation: AugmentedCall<ApiType, (location: XcmVersionedLocation | {
272
+ V2: any;
273
+ } | {
274
+ V3: any;
275
+ } | {
276
+ V4: any;
277
+ } | string | Uint8Array) => Observable<Result<AccountId32, XcmRuntimeApisConversionsError>>>;
278
+ /**
279
+ * Generic call
280
+ **/
281
+ [key: string]: DecoratedCallBase<ApiType>;
282
+ };
283
+ /** 0x37e397fc7c91f5e4/ */
228
284
  metadata: {
229
285
  /**
230
- * Returns the metadata of a runtime
286
+ * Returns the metadata of a runtime.
231
287
  **/
232
288
  metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
233
289
  /**
234
- * Returns the metadata at a given version.
290
+ * Returns the metadata at a given version.,, If the given `version` isn't supported, this will return `None`., Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
235
291
  **/
236
292
  metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
237
293
  /**
238
- * Returns the supported metadata versions.
294
+ * Returns the supported metadata versions.,, This can be used to call `metadata_at_version`.
239
295
  **/
240
296
  metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
241
297
  /**
@@ -243,66 +299,82 @@ declare module '@polkadot/api-base/types/calls' {
243
299
  **/
244
300
  [key: string]: DecoratedCallBase<ApiType>;
245
301
  };
246
- /** 0x91d5df18b0d2cf58/2 */
302
+ /** 0x91d5df18b0d2cf58/ */
247
303
  mmrApi: {
248
304
  /**
249
- * Generate MMR proof for the given block numbers.
305
+ * Generate MMR proof for a series of block numbers. If `best_known_block_number = Some(n)`,, use historical MMR state at given block height `n`. Else, use current MMR state.
250
306
  **/
251
- generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
307
+ generateProof: AugmentedCall<ApiType, (block_numbers: Vec<u32> | (u32 | AnyNumber | Uint8Array)[], best_known_block_number: Option<u32> | null | Uint8Array | u32 | AnyNumber) => Observable<Result<ITuple<[Vec<Bytes>, SpMmrPrimitivesLeafProof]>, SpMmrPrimitivesError>>>;
252
308
  /**
253
309
  * Return the number of MMR blocks in the chain.
254
310
  **/
255
- mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
311
+ mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<u64, SpMmrPrimitivesError>>>;
256
312
  /**
257
313
  * Return the on-chain MMR root hash.
258
314
  **/
259
- mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
315
+ mmrRoot: AugmentedCall<ApiType, () => Observable<Result<H256, SpMmrPrimitivesError>>>;
260
316
  /**
261
- * Verify MMR proof against on-chain MMR.
317
+ * Verify MMR proof against on-chain MMR for a batch of leaves.,, Note this function will use on-chain MMR root hash and check if the proof matches the hash., Note, the leaves should be sorted such that corresponding leaves and leaf indices have the, same position in both the `leaves` vector and the `leaf_indices` vector contained in the [LeafProof]
262
318
  **/
263
- verifyProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | {
319
+ verifyProof: AugmentedCall<ApiType, (leaves: Vec<Bytes> | (Bytes | string | Uint8Array)[], proof: SpMmrPrimitivesLeafProof | {
264
320
  leafIndices?: any;
265
321
  leafCount?: any;
266
322
  items?: any;
267
- } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
323
+ } | string | Uint8Array) => Observable<Result<Null, SpMmrPrimitivesError>>>;
268
324
  /**
269
- * Verify MMR proof against given root hash.
325
+ * Verify MMR proof against given root hash for a batch of leaves.,, Note this function does not require any on-chain storage - the, proof is verified against given MMR root hash.,, Note, the leaves should be sorted such that corresponding leaves and leaf indices have the, same position in both the `leaves` vector and the `leaf_indices` vector contained in the [LeafProof]
270
326
  **/
271
- verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | {
327
+ verifyProofStateless: AugmentedCall<ApiType, (root: H256 | string | Uint8Array, leaves: Vec<Bytes> | (Bytes | string | Uint8Array)[], proof: SpMmrPrimitivesLeafProof | {
272
328
  leafIndices?: any;
273
329
  leafCount?: any;
274
330
  items?: any;
275
- } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
331
+ } | string | Uint8Array) => Observable<Result<Null, SpMmrPrimitivesError>>>;
276
332
  /**
277
333
  * Generic call
278
334
  **/
279
335
  [key: string]: DecoratedCallBase<ApiType>;
280
336
  };
281
- /** 0x17a6bc0d0062aeb3/1 */
337
+ /** 0x17a6bc0d0062aeb3/ */
282
338
  nominationPoolsApi: {
283
339
  /**
284
340
  * Returns the equivalent points of `new_funds` for a given pool.
285
341
  **/
286
- balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
342
+ balanceToPoints: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, new_funds: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
343
+ /**
344
+ * Returns true if the delegated funds of the pool `member` needs migration.,, Once a pool has successfully migrated to the strategy, [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake), the funds of the, member can be migrated from pool account to the member's account. Use, [`migrate_delegation`](pallet_nomination_pools::Call::migrate_delegation), to migrate the funds of the pool member.
345
+ **/
346
+ memberNeedsDelegateMigration: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<bool>>;
347
+ /**
348
+ * Returns the pending slash for a given pool member.
349
+ **/
350
+ memberPendingSlash: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<u128>>;
287
351
  /**
288
- * Returns the pending rewards for the given member.
352
+ * Returns the pending rewards for the member that the AccountId was given for.
289
353
  **/
290
- pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
354
+ pendingRewards: AugmentedCall<ApiType, (who: AccountId32 | string | Uint8Array) => Observable<u128>>;
291
355
  /**
292
356
  * Returns the equivalent balance of `points` for a given pool.
293
357
  **/
294
- pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
358
+ pointsToBalance: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, points: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
359
+ /**
360
+ * Returns true if the pool with `pool_id` needs migration.,, This can happen when the `pallet-nomination-pools` has switched to using strategy, [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake) but the pool, still has funds that were staked using the older strategy, [TransferStake](pallet_nomination_pools::adapter::TransferStake). Use, [`migrate_pool_to_delegate_stake`](pallet_nomination_pools::Call::migrate_pool_to_delegate_stake), to migrate the pool.
361
+ **/
362
+ poolNeedsDelegateMigration: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<bool>>;
363
+ /**
364
+ * Returns the pending slash for a given pool.
365
+ **/
366
+ poolPendingSlash: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
295
367
  /**
296
368
  * Generic call
297
369
  **/
298
370
  [key: string]: DecoratedCallBase<ApiType>;
299
371
  };
300
- /** 0xf78b278be53f454c/2 */
372
+ /** 0xf78b278be53f454c/ */
301
373
  offchainWorkerApi: {
302
374
  /**
303
375
  * Starts the off-chain task for given block header.
304
376
  **/
305
- offchainWorker: AugmentedCall<ApiType, (header: Header | {
377
+ offchainWorker: AugmentedCall<ApiType, (header: SpRuntimeHeader | {
306
378
  parentHash?: any;
307
379
  number?: any;
308
380
  stateRoot?: any;
@@ -314,36 +386,40 @@ declare module '@polkadot/api-base/types/calls' {
314
386
  **/
315
387
  [key: string]: DecoratedCallBase<ApiType>;
316
388
  };
317
- /** 0xaf2c0297a23e6d3d/10 */
389
+ /** 0xaf2c0297a23e6d3d/ */
318
390
  parachainHost: {
319
391
  /**
320
392
  * Approval voting configuration parameters
321
393
  **/
322
- approvalVotingParams: AugmentedCall<ApiType, () => Observable<ApprovalVotingParams>>;
394
+ approvalVotingParams: AugmentedCall<ApiType, () => Observable<PolkadotPrimitivesV7ApprovalVotingParams>>;
323
395
  /**
324
- * Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
396
+ * Returns the persisted validation data for the given `ParaId` along with the corresponding, validation code hash. Instead of accepting assumption about the para, matches the validation, data hash against an expected one and yields `None` if they're not equal.
325
397
  **/
326
- assumedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, hash: Hash | string | Uint8Array) => Observable<Option<ITuple<[PersistedValidationData, ValidationCodeHash]>>>>;
398
+ assumedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, expected_persisted_validation_data_hash: H256 | string | Uint8Array) => Observable<Option<ITuple<[PolkadotPrimitivesV7PersistedValidationData, H256]>>>>;
327
399
  /**
328
- * Returns candidate's acceptance limitations for asynchronous backing for a relay parent
400
+ * Returns candidate's acceptance limitations for asynchronous backing for a relay parent.
329
401
  **/
330
- asyncBackingParams: AugmentedCall<ApiType, () => Observable<AsyncBackingParams>>;
402
+ asyncBackingParams: AugmentedCall<ApiType, () => Observable<PolkadotPrimitivesV7AsyncBackingAsyncBackingParams>>;
331
403
  /**
332
- * Yields information on all availability cores as relevant to the child block.
404
+ * Yields information on all availability cores as relevant to the child block., Cores are either free or occupied. Free cores can have paras assigned to them.
333
405
  **/
334
- availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<CoreState>>>;
406
+ availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV7CoreState>>>;
335
407
  /**
336
408
  * Get a vector of events concerning candidates that occurred within a block.
337
409
  **/
338
- candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<CandidateEvent>>>;
410
+ candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV7CandidateEvent>>>;
339
411
  /**
340
- * Get the receipt of a candidate pending availability.
412
+ * Get the receipt of a candidate pending availability. This returns `Some` for any paras, assigned to occupied cores in `availability_cores` and `None` otherwise.
341
413
  **/
342
- candidatePendingAvailability: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<CommittedCandidateReceipt>>>;
414
+ candidatePendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7CommittedCandidateReceipt>>>;
415
+ /**
416
+ * Elastic scaling support
417
+ **/
418
+ candidatesPendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Vec<PolkadotPrimitivesV7CommittedCandidateReceipt>>>;
343
419
  /**
344
420
  * Checks if the given validation outputs pass the acceptance criteria.
345
421
  **/
346
- checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | {
422
+ checkValidationOutputs: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, outputs: PolkadotPrimitivesV7CandidateCommitments | {
347
423
  upwardMessages?: any;
348
424
  horizontalMessages?: any;
349
425
  newValidationCode?: any;
@@ -352,116 +428,120 @@ declare module '@polkadot/api-base/types/calls' {
352
428
  hrmpWatermark?: any;
353
429
  } | string | Uint8Array) => Observable<bool>>;
354
430
  /**
355
- * Returns a list of all disabled validators at the given block
431
+ * Claim queue
356
432
  **/
357
- disabledValidators: AugmentedCall<ApiType, () => Observable<ValidatorIndex>>;
433
+ claimQueue: AugmentedCall<ApiType, () => Observable<BTreeMap<u32, Vec<u32>>>>;
434
+ /**
435
+ * Returns a list of all disabled validators at the given block.
436
+ **/
437
+ disabledValidators: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
358
438
  /**
359
439
  * Returns all onchain disputes.
360
440
  **/
361
- disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, DisputeState]>>>>;
441
+ disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256, PolkadotPrimitivesV7DisputeState]>>>>;
362
442
  /**
363
443
  * Get all the pending inbound messages in the downward message queue for a para.
364
444
  **/
365
- dmqContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundDownwardMessage>>>;
445
+ dmqContents: AugmentedCall<ApiType, (recipient: ParaId | AnyNumber | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundDownwardMessage>>>;
366
446
  /**
367
- * Get the contents of all channels addressed to the given recipient.
447
+ * Get the contents of all channels addressed to the given recipient. Channels that have no, messages in them are also included.
368
448
  **/
369
- inboundHrmpChannelsContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundHrmpMessage>>>;
449
+ inboundHrmpChannelsContents: AugmentedCall<ApiType, (recipient: ParaId | AnyNumber | Uint8Array) => Observable<BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>>>;
370
450
  /**
371
- * Returns a merkle proof of a validator session key
451
+ * Returns a merkle proof of a validator session key., NOTE: This function is only available since parachain host version 5.
372
452
  **/
373
- keyOwnershipProof: AugmentedCall<ApiType, (validatorId: ValidatorId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
453
+ keyOwnershipProof: AugmentedCall<ApiType, (validator_id: PolkadotPrimitivesV7ValidatorAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
374
454
  /**
375
- * Get the minimum number of backing votes for a parachain candidate. This is a staging method! Do not use on production runtimes!
455
+ * Get the minimum number of backing votes for a parachain candidate., This is a staging method! Do not use on production runtimes!
376
456
  **/
377
457
  minimumBackingVotes: AugmentedCall<ApiType, () => Observable<u32>>;
378
458
  /**
379
- * Get node features. This is a staging method! Do not use on production runtimes!
459
+ * Get node features., This is a staging method! Do not use on production runtimes!
380
460
  **/
381
- nodeFeatures: AugmentedCall<ApiType, () => Observable<NodeFeatures>>;
461
+ nodeFeatures: AugmentedCall<ApiType, () => Observable<BitVec>>;
382
462
  /**
383
463
  * Scrape dispute relevant from on-chain, backing votes and resolved disputes.
384
464
  **/
385
- onChainVotes: AugmentedCall<ApiType, () => Observable<Option<ScrapedOnChainVotes>>>;
465
+ onChainVotes: AugmentedCall<ApiType, () => Observable<Option<PolkadotPrimitivesV7ScrapedOnChainVotes>>>;
386
466
  /**
387
- * Returns the state of parachain backing for a given para
467
+ * Returns the state of parachain backing for a given para.
388
468
  **/
389
- paraBackingState: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<BackingState>>>;
469
+ paraBackingState: AugmentedCall<ApiType, (_: ParaId | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7AsyncBackingBackingState>>>;
390
470
  /**
391
- * Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core.
471
+ * Yields the persisted validation data for the given `ParaId` along with an assumption that, should be used if the para currently occupies a core.,, Returns `None` if either the para is not registered or the assumption is `Freed`, and the para already occupies a core.
392
472
  **/
393
- persistedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<PersistedValidationData>>>;
473
+ persistedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV7OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<PolkadotPrimitivesV7PersistedValidationData>>>;
394
474
  /**
395
- * Returns code hashes of PVFs that require pre-checking by validators in the active set.
475
+ * Returns code hashes of PVFs that require pre-checking by validators in the active set.,, NOTE: This function is only available since parachain host version 2.
396
476
  **/
397
- pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<ValidationCodeHash>>>;
477
+ pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<H256>>>;
398
478
  /**
399
479
  * Returns execution parameters for the session.
400
480
  **/
401
- sessionExecutorParams: AugmentedCall<ApiType, (sessionIndex: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<ExecutorParams>>>;
481
+ sessionExecutorParams: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7ExecutorParams>>>;
402
482
  /**
403
- * Returns the session index expected at a child of the block.
483
+ * Returns the session index expected at a child of the block.,, This can be used to instantiate a `SigningContext`.
404
484
  **/
405
- sessionIndexForChild: AugmentedCall<ApiType, () => Observable<SessionIndex>>;
485
+ sessionIndexForChild: AugmentedCall<ApiType, () => Observable<u32>>;
406
486
  /**
407
- * Get the session info for the given session, if stored.
487
+ * Get the session info for the given session, if stored.,, NOTE: This function is only available since parachain host version 2.
408
488
  **/
409
- sessionInfo: AugmentedCall<ApiType, (index: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<SessionInfo>>>;
489
+ sessionInfo: AugmentedCall<ApiType, (index: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7SessionInfo>>>;
410
490
  /**
411
- * Submits a PVF pre-checking statement into the transaction pool.
491
+ * Submits a PVF pre-checking statement into the transaction pool.,, NOTE: This function is only available since parachain host version 2.
412
492
  **/
413
- submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PvfCheckStatement | {
493
+ submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PolkadotPrimitivesV7PvfCheckStatement | {
414
494
  accept?: any;
415
495
  subject?: any;
416
496
  sessionIndex?: any;
417
497
  validatorIndex?: any;
418
- } | string | Uint8Array, signature: ValidatorSignature | string | Uint8Array) => Observable<Null>>;
498
+ } | string | Uint8Array, signature: PolkadotPrimitivesV7ValidatorAppSignature | string | Uint8Array) => Observable<Null>>;
419
499
  /**
420
- * Submit an unsigned extrinsic to slash validators who lost a dispute about a candidate of a past session
500
+ * Submit an unsigned extrinsic to slash validators who lost a dispute about, a candidate of a past session., NOTE: This function is only available since parachain host version 5.
421
501
  **/
422
- submitReportDisputeLost: AugmentedCall<ApiType, (disputeProof: DisputeProof | {
502
+ submitReportDisputeLost: AugmentedCall<ApiType, (dispute_proof: PolkadotPrimitivesV7SlashingDisputeProof | {
423
503
  timeSlot?: any;
424
504
  kind?: any;
425
505
  validatorIndex?: any;
426
506
  validatorId?: any;
427
- } | string | Uint8Array, keyOwnershipProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
507
+ } | string | Uint8Array, key_ownership_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
428
508
  /**
429
- * Returns a list of validators that lost a past session dispute and need to be slashed
509
+ * Returns a list of validators that lost a past session dispute and need to be slashed., NOTE: This function is only available since parachain host version 5.
430
510
  **/
431
- unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, PendingSlashes]>>>>;
511
+ unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256, PolkadotPrimitivesV7SlashingPendingSlashes]>>>>;
432
512
  /**
433
- * Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
513
+ * Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.,, Returns `None` if either the para is not registered or the assumption is `Freed`, and the para already occupies a core.
434
514
  **/
435
- validationCode: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCode>>>;
515
+ validationCode: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV7OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<Bytes>>>;
436
516
  /**
437
517
  * Get the validation code from its hash.
438
518
  **/
439
- validationCodeByHash: AugmentedCall<ApiType, (hash: ValidationCodeHash | string | Uint8Array) => Observable<Option<ValidationCode>>>;
519
+ validationCodeByHash: AugmentedCall<ApiType, (hash: ValidationCodeHash | string | Uint8Array) => Observable<Option<Bytes>>>;
440
520
  /**
441
- * Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.
521
+ * Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.,, NOTE: This function is only available since parachain host version 2.
442
522
  **/
443
- validationCodeHash: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCodeHash>>>;
523
+ validationCodeHash: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV7OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<H256>>>;
444
524
  /**
445
- * Returns the validator groups and rotation info localized based on the hypothetical child of a block whose state this is invoked on
525
+ * Returns the validator groups and rotation info localized based on the hypothetical child, of a block whose state this is invoked on. Note that `now` in the `GroupRotationInfo`, should be the successor of the number of the block.
446
526
  **/
447
- validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<ParaValidatorIndex>>, GroupRotationInfo]>>>;
527
+ validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<u32>>, PolkadotPrimitivesV7GroupRotationInfo]>>>;
448
528
  /**
449
529
  * Get the current validators.
450
530
  **/
451
- validators: AugmentedCall<ApiType, () => Observable<Vec<ValidatorId>>>;
531
+ validators: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV7ValidatorAppPublic>>>;
452
532
  /**
453
533
  * Generic call
454
534
  **/
455
535
  [key: string]: DecoratedCallBase<ApiType>;
456
536
  };
457
- /** 0xab3c0572291feb8b/1 */
537
+ /** 0xab3c0572291feb8b/ */
458
538
  sessionKeys: {
459
539
  /**
460
- * Decode the given public session keys.
540
+ * Decode the given public session keys.,, Returns the list of public raw public keys + key type.
461
541
  **/
462
- decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;
542
+ decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, SpCoreCryptoKeyTypeId]>>>>>;
463
543
  /**
464
- * Generate a set of session keys with optionally using the given seed.
544
+ * Generate a set of session keys with optionally using the given seed., The keys should be stored within the keystore exposed via runtime, externalities.,, The seed needs to be a valid `utf8` string.,, Returns the concatenated SCALE encoded public keys.
465
545
  **/
466
546
  generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
467
547
  /**
@@ -469,75 +549,131 @@ declare module '@polkadot/api-base/types/calls' {
469
549
  **/
470
550
  [key: string]: DecoratedCallBase<ApiType>;
471
551
  };
472
- /** 0x18ef58a3b67ba770/1 */
552
+ /** 0x18ef58a3b67ba770/ */
473
553
  stakingApi: {
554
+ /**
555
+ * Returns the page count of exposures for a validator `account` in a given era.
556
+ **/
557
+ erasStakersPageCount: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<u32>>;
474
558
  /**
475
559
  * Returns the nominations quota for a nominator with a given balance.
476
560
  **/
477
- nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
561
+ nominationsQuota: AugmentedCall<ApiType, (balance: u128 | AnyNumber | Uint8Array) => Observable<u32>>;
562
+ /**
563
+ * Returns true if validator `account` has pages to be claimed for the given era.
564
+ **/
565
+ pendingRewards: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<bool>>;
478
566
  /**
479
567
  * Generic call
480
568
  **/
481
569
  [key: string]: DecoratedCallBase<ApiType>;
482
570
  };
483
- /** 0xd2bc9897eed08f15/3 */
571
+ /** 0xd2bc9897eed08f15/ */
484
572
  taggedTransactionQueue: {
485
573
  /**
486
- * Validate the transaction.
574
+ * Validate the transaction.,, This method is invoked by the transaction pool to learn details about given transaction., The implementation should make sure to verify the correctness of the transaction, against current state. The given `block_hash` corresponds to the hash of the block, that is used as current state.,, Note that this call may be performed by the pool multiple times and transactions, might be verified in any possible order.
487
575
  **/
488
- validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
576
+ validateTransaction: AugmentedCall<ApiType, (source: SpRuntimeTransactionValidityTransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, block_hash: H256 | string | Uint8Array) => Observable<Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>>>;
489
577
  /**
490
578
  * Generic call
491
579
  **/
492
580
  [key: string]: DecoratedCallBase<ApiType>;
493
581
  };
494
- /** 0x37c8bb1350a9a2a8/4 */
582
+ /** 0x37c8bb1350a9a2a8/ */
495
583
  transactionPaymentApi: {
496
584
  /**
497
- * The transaction fee details
585
+ *
498
586
  **/
499
- queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
587
+ queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
500
588
  /**
501
- * The transaction info
589
+ *
502
590
  **/
503
- queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
591
+ queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
504
592
  /**
505
- * Query the output of the current LengthToFee given some input
593
+ *
506
594
  **/
507
- queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
595
+ queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
508
596
  /**
509
- * Query the output of the current WeightToFee given some input
597
+ *
510
598
  **/
511
- queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | {
599
+ queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | {
512
600
  refTime?: any;
513
601
  proofSize?: any;
514
- } | string | Uint8Array) => Observable<Balance>>;
602
+ } | string | Uint8Array) => Observable<u128>>;
515
603
  /**
516
604
  * Generic call
517
605
  **/
518
606
  [key: string]: DecoratedCallBase<ApiType>;
519
607
  };
520
- /** 0xf3ff14d5ab527059/3 */
608
+ /** 0xf3ff14d5ab527059/ */
521
609
  transactionPaymentCallApi: {
522
610
  /**
523
- * The call fee details
611
+ * Query fee details of a given encoded `Call`.
524
612
  **/
525
- queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
613
+ queryCallFeeDetails: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
614
+ /**
615
+ * Query information of a dispatch class, weight, and fee of a given encoded `Call`.
616
+ **/
617
+ queryCallInfo: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
618
+ /**
619
+ * Query the output of the current `LengthToFee` given some input.
620
+ **/
621
+ queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
622
+ /**
623
+ * Query the output of the current `WeightToFee` given some input.
624
+ **/
625
+ queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | {
626
+ refTime?: any;
627
+ proofSize?: any;
628
+ } | string | Uint8Array) => Observable<u128>>;
629
+ /**
630
+ * Generic call
631
+ **/
632
+ [key: string]: DecoratedCallBase<ApiType>;
633
+ };
634
+ /** 0x6ff52ee858e6c5bd/ */
635
+ xcmPaymentApi: {
526
636
  /**
527
- * The call info
637
+ * Returns a list of acceptable payment assets.,, # Arguments,, * `xcm_version`: Version.
528
638
  **/
529
- queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
639
+ queryAcceptablePaymentAssets: AugmentedCall<ApiType, (xcm_version: u32 | AnyNumber | Uint8Array) => Observable<Result<Vec<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>>;
530
640
  /**
531
- * Query the output of the current LengthToFee given some input
641
+ * Get delivery fees for sending a specific `message` to a `destination`., These always come in a specific asset, defined by the chain.,, # Arguments, * `message`: The message that'll be sent, necessary because most delivery fees are based on the, size of the message., * `destination`: The destination to send the message to. Different destinations may use, different senders that charge different fees.
532
642
  **/
533
- queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
643
+ queryDeliveryFees: AugmentedCall<ApiType, (destination: XcmVersionedLocation | {
644
+ V2: any;
645
+ } | {
646
+ V3: any;
647
+ } | {
648
+ V4: any;
649
+ } | string | Uint8Array, message: XcmVersionedXcm | {
650
+ V2: any;
651
+ } | {
652
+ V3: any;
653
+ } | {
654
+ V4: any;
655
+ } | string | Uint8Array) => Observable<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>>;
534
656
  /**
535
- * Query the output of the current WeightToFee given some input
657
+ * Converts a weight into a fee for the specified `AssetId`.,, # Arguments,, * `weight`: convertible `Weight`., * `asset`: `VersionedAssetId`.
536
658
  **/
537
- queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | {
659
+ queryWeightToAssetFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | {
538
660
  refTime?: any;
539
661
  proofSize?: any;
540
- } | string | Uint8Array) => Observable<Balance>>;
662
+ } | string | Uint8Array, asset: XcmVersionedAssetId | {
663
+ V3: any;
664
+ } | {
665
+ V4: any;
666
+ } | string | Uint8Array) => Observable<Result<u128, XcmRuntimeApisFeesError>>>;
667
+ /**
668
+ * Returns a weight needed to execute a XCM.,, # Arguments,, * `message`: `VersionedXcm`.
669
+ **/
670
+ queryXcmWeight: AugmentedCall<ApiType, (message: XcmVersionedXcm | {
671
+ V2: any;
672
+ } | {
673
+ V3: any;
674
+ } | {
675
+ V4: any;
676
+ } | string | Uint8Array) => Observable<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>>;
541
677
  /**
542
678
  * Generic call
543
679
  **/