@polkadot/api-augment 16.5.6 → 17.0.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.
- package/assetHubKusama/consts.d.ts +140 -53
- package/assetHubKusama/errors.d.ts +310 -111
- package/assetHubKusama/events.d.ts +420 -149
- package/assetHubKusama/query.d.ts +370 -92
- package/assetHubKusama/runtime.d.ts +157 -8
- package/assetHubKusama/tx.d.ts +690 -600
- package/cjs/assetHubKusama/consts.d.ts +140 -53
- package/cjs/assetHubKusama/errors.d.ts +310 -111
- package/cjs/assetHubKusama/events.d.ts +420 -149
- package/cjs/assetHubKusama/query.d.ts +370 -92
- package/cjs/assetHubKusama/runtime.d.ts +157 -8
- package/cjs/assetHubKusama/tx.d.ts +690 -600
- package/cjs/kusama/consts.d.ts +0 -40
- package/cjs/kusama/errors.d.ts +25 -151
- package/cjs/kusama/events.d.ts +93 -208
- package/cjs/kusama/query.d.ts +98 -177
- package/cjs/kusama/runtime.d.ts +86 -46
- package/cjs/kusama/tx.d.ts +108 -608
- package/cjs/packageInfo.js +1 -1
- package/cjs/polkadot/consts.d.ts +1 -1
- package/cjs/polkadot/errors.d.ts +25 -85
- package/cjs/polkadot/events.d.ts +103 -159
- package/cjs/polkadot/query.d.ts +108 -172
- package/cjs/polkadot/runtime.d.ts +72 -46
- package/cjs/polkadot/tx.d.ts +101 -351
- package/cjs/substrate/consts.d.ts +12 -3
- package/cjs/substrate/errors.d.ts +28 -14
- package/cjs/substrate/events.d.ts +66 -1
- package/cjs/substrate/query.d.ts +9 -0
- package/cjs/substrate/runtime.d.ts +5 -1
- package/cjs/substrate/tx.d.ts +81 -2
- package/kusama/consts.d.ts +0 -40
- package/kusama/errors.d.ts +25 -151
- package/kusama/events.d.ts +93 -208
- package/kusama/query.d.ts +98 -177
- package/kusama/runtime.d.ts +86 -46
- package/kusama/tx.d.ts +108 -608
- package/package.json +6 -6
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +1 -1
- package/polkadot/errors.d.ts +25 -85
- package/polkadot/events.d.ts +103 -159
- package/polkadot/query.d.ts +108 -172
- package/polkadot/runtime.d.ts +72 -46
- package/polkadot/tx.d.ts +101 -351
- package/substrate/consts.d.ts +12 -3
- package/substrate/errors.d.ts +28 -14
- package/substrate/events.d.ts +66 -1
- package/substrate/query.d.ts +9 -0
- package/substrate/runtime.d.ts +5 -1
- package/substrate/tx.d.ts +81 -2
package/polkadot/runtime.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
|
|
7
7
|
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
|
8
8
|
import type { ParaId, ValidationCodeHash } from '@polkadot/types/interfaces/parachains';
|
|
9
9
|
import type { AccountId32, H256, RuntimeCall, Slot } from '@polkadot/types/interfaces/runtime';
|
|
10
|
-
import type { FrameSupportViewFunctionsViewFunctionDispatchError, FrameSupportViewFunctionsViewFunctionId, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage,
|
|
10
|
+
import type { FrameSupportViewFunctionsViewFunctionDispatchError, FrameSupportViewFunctionsViewFunctionId, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotPrimitivesV9ApprovalVotingParams, PolkadotPrimitivesV9AsyncBackingAsyncBackingParams, PolkadotPrimitivesV9AsyncBackingBackingState, PolkadotPrimitivesV9AsyncBackingConstraints, PolkadotPrimitivesV9CandidateCommitments, PolkadotPrimitivesV9CandidateEvent, PolkadotPrimitivesV9CommittedCandidateReceiptV2, PolkadotPrimitivesV9CoreState, PolkadotPrimitivesV9DisputeState, PolkadotPrimitivesV9ExecutorParams, PolkadotPrimitivesV9GroupRotationInfo, PolkadotPrimitivesV9OccupiedCoreAssumption, PolkadotPrimitivesV9PersistedValidationData, PolkadotPrimitivesV9PvfCheckStatement, PolkadotPrimitivesV9ScrapedOnChainVotes, PolkadotPrimitivesV9SessionInfo, PolkadotPrimitivesV9SlashingDisputeProof, PolkadotPrimitivesV9SlashingLegacyPendingSlashes, PolkadotPrimitivesV9SlashingPendingSlashes, PolkadotPrimitivesV9ValidatorAppPublic, PolkadotPrimitivesV9ValidatorAppSignature, PolkadotPrimitivesVstagingRelayParentInfo, PolkadotRuntimeOriginCaller, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyForkVotingProofOpaqueValue, SpConsensusBeefyFutureBlockVotingProof, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMmrPrimitivesAncestryProof, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlockLazyBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpSessionRuntimeApiOpaqueGeneratedSessionKeys, SpVersionRuntimeVersion, SpWeightsWeightV2Weight, XcmRuntimeApisConversionsError, XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError, XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisFeesError, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
11
11
|
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
|
12
12
|
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
|
13
13
|
export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
|
|
@@ -24,6 +24,21 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
24
24
|
**/
|
|
25
25
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
26
26
|
};
|
|
27
|
+
/** 0xc1b8f0c037f97de8/ */
|
|
28
|
+
assetHubMigrationApi: {
|
|
29
|
+
/**
|
|
30
|
+
* Returns the block number when the migration ended.
|
|
31
|
+
**/
|
|
32
|
+
migrationEndBlock: AugmentedCall<ApiType, () => Observable<u32>>;
|
|
33
|
+
/**
|
|
34
|
+
* Returns the block number when the migration started.
|
|
35
|
+
**/
|
|
36
|
+
migrationStartBlock: AugmentedCall<ApiType, () => Observable<u32>>;
|
|
37
|
+
/**
|
|
38
|
+
* Generic call
|
|
39
|
+
**/
|
|
40
|
+
[key: string]: DecoratedCallBase<ApiType>;
|
|
41
|
+
};
|
|
27
42
|
/** 0x687ad44ad37f03c2/ */
|
|
28
43
|
authorityDiscoveryApi: {
|
|
29
44
|
/**
|
|
@@ -77,10 +92,6 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
77
92
|
* Return the block number where BEEFY consensus is enabled/started
|
|
78
93
|
**/
|
|
79
94
|
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<u32>>>;
|
|
80
|
-
/**
|
|
81
|
-
* Generates a proof that the `prev_block_number` is part of the canonical chain at, `best_known_block_number`.
|
|
82
|
-
**/
|
|
83
|
-
generateAncestryProof: AugmentedCall<ApiType, (prev_block_number: u32 | AnyNumber | Uint8Array, best_known_block_number: Option<u32> | null | Uint8Array | u32 | AnyNumber) => Observable<Option<Bytes>>>;
|
|
84
95
|
/**
|
|
85
96
|
* 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.
|
|
86
97
|
**/
|
|
@@ -139,7 +150,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
139
150
|
/**
|
|
140
151
|
* Check that the inherents are valid. The inherent data will vary from chain to chain.
|
|
141
152
|
**/
|
|
142
|
-
checkInherents: AugmentedCall<ApiType, (block:
|
|
153
|
+
checkInherents: AugmentedCall<ApiType, (block: SpRuntimeBlockLazyBlock | {
|
|
143
154
|
header?: any;
|
|
144
155
|
extrinsics?: any;
|
|
145
156
|
} | string | Uint8Array, data: SpInherentsInherentData | {
|
|
@@ -165,7 +176,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
165
176
|
/**
|
|
166
177
|
* Execute the given block.
|
|
167
178
|
**/
|
|
168
|
-
executeBlock: AugmentedCall<ApiType, (block:
|
|
179
|
+
executeBlock: AugmentedCall<ApiType, (block: SpRuntimeBlockLazyBlock | {
|
|
169
180
|
header?: any;
|
|
170
181
|
extrinsics?: any;
|
|
171
182
|
} | string | Uint8Array) => Observable<Null>>;
|
|
@@ -268,17 +279,6 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
268
279
|
**/
|
|
269
280
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
270
281
|
};
|
|
271
|
-
/** 0xc51ff1fa3f5d0cca/ */
|
|
272
|
-
inflation: {
|
|
273
|
-
/**
|
|
274
|
-
* 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.
|
|
275
|
-
**/
|
|
276
|
-
experimentalInflationPredictionInfo: AugmentedCall<ApiType, () => Observable<RelayCommonApisInflationInfo>>;
|
|
277
|
-
/**
|
|
278
|
-
* Generic call
|
|
279
|
-
**/
|
|
280
|
-
[key: string]: DecoratedCallBase<ApiType>;
|
|
281
|
-
};
|
|
282
282
|
/** 0x9ffb505aa738d69c/ */
|
|
283
283
|
locationToAccountApi: {
|
|
284
284
|
/**
|
|
@@ -317,6 +317,10 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
317
317
|
};
|
|
318
318
|
/** 0x91d5df18b0d2cf58/ */
|
|
319
319
|
mmrApi: {
|
|
320
|
+
/**
|
|
321
|
+
* Generates a proof that the `prev_block_number` is part of the canonical chain at, `best_known_block_number`.
|
|
322
|
+
**/
|
|
323
|
+
generateAncestryProof: AugmentedCall<ApiType, (prev_block_number: u32 | AnyNumber | Uint8Array, best_known_block_number: Option<u32> | null | Uint8Array | u32 | AnyNumber) => Observable<Result<SpMmrPrimitivesAncestryProof, SpMmrPrimitivesError>>>;
|
|
320
324
|
/**
|
|
321
325
|
* 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.
|
|
322
326
|
**/
|
|
@@ -416,42 +420,46 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
416
420
|
};
|
|
417
421
|
/** 0xaf2c0297a23e6d3d/ */
|
|
418
422
|
parachainHost: {
|
|
423
|
+
/**
|
|
424
|
+
* Look up relay parent info for a block that is an **ancestor** of the block, this API is called at. Returns `None` if the relay parent is not found, in the allowed relay parents for the given session.,, NOTE: A block is not in its own `AllowedRelayParents` storage (it gets, added during the next block's inherent). Querying a block about itself, will always return `None`. Use the node-side `check_relay_parent_session`, utility for a general-purpose check that handles both the self and, ancestor cases.
|
|
425
|
+
**/
|
|
426
|
+
ancestorRelayParentInfo: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array, relay_parent: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesVstagingRelayParentInfo>>>;
|
|
419
427
|
/**
|
|
420
428
|
* Approval voting configuration parameters
|
|
421
429
|
**/
|
|
422
|
-
approvalVotingParams: AugmentedCall<ApiType, () => Observable<
|
|
430
|
+
approvalVotingParams: AugmentedCall<ApiType, () => Observable<PolkadotPrimitivesV9ApprovalVotingParams>>;
|
|
423
431
|
/**
|
|
424
432
|
* 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.
|
|
425
433
|
**/
|
|
426
|
-
assumedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, expected_persisted_validation_data_hash: H256 | string | Uint8Array) => Observable<Option<ITuple<[
|
|
434
|
+
assumedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, expected_persisted_validation_data_hash: H256 | string | Uint8Array) => Observable<Option<ITuple<[PolkadotPrimitivesV9PersistedValidationData, H256]>>>>;
|
|
427
435
|
/**
|
|
428
436
|
* Returns candidate's acceptance limitations for asynchronous backing for a relay parent.
|
|
429
437
|
**/
|
|
430
|
-
asyncBackingParams: AugmentedCall<ApiType, () => Observable<
|
|
438
|
+
asyncBackingParams: AugmentedCall<ApiType, () => Observable<PolkadotPrimitivesV9AsyncBackingAsyncBackingParams>>;
|
|
431
439
|
/**
|
|
432
440
|
* 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.
|
|
433
441
|
**/
|
|
434
|
-
availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<
|
|
442
|
+
availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV9CoreState>>>;
|
|
435
443
|
/**
|
|
436
444
|
* Returns the constraints on the actions that can be taken by a new parachain, block.
|
|
437
445
|
**/
|
|
438
|
-
backingConstraints: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Option<
|
|
446
|
+
backingConstraints: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV9AsyncBackingConstraints>>>;
|
|
439
447
|
/**
|
|
440
448
|
* Get a vector of events concerning candidates that occurred within a block.
|
|
441
449
|
**/
|
|
442
|
-
candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<
|
|
450
|
+
candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV9CandidateEvent>>>;
|
|
443
451
|
/**
|
|
444
452
|
* Get the receipt of a candidate pending availability. This returns `Some` for any paras, assigned to occupied cores in `availability_cores` and `None` otherwise.
|
|
445
453
|
**/
|
|
446
|
-
candidatePendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Option<
|
|
454
|
+
candidatePendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV9CommittedCandidateReceiptV2>>>;
|
|
447
455
|
/**
|
|
448
456
|
* Elastic scaling support
|
|
449
457
|
**/
|
|
450
|
-
candidatesPendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Vec<
|
|
458
|
+
candidatesPendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Vec<PolkadotPrimitivesV9CommittedCandidateReceiptV2>>>;
|
|
451
459
|
/**
|
|
452
460
|
* Checks if the given validation outputs pass the acceptance criteria.
|
|
453
461
|
**/
|
|
454
|
-
checkValidationOutputs: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, outputs:
|
|
462
|
+
checkValidationOutputs: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, outputs: PolkadotPrimitivesV9CandidateCommitments | {
|
|
455
463
|
upwardMessages?: any;
|
|
456
464
|
horizontalMessages?: any;
|
|
457
465
|
newValidationCode?: any;
|
|
@@ -470,7 +478,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
470
478
|
/**
|
|
471
479
|
* Returns all onchain disputes.
|
|
472
480
|
**/
|
|
473
|
-
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256,
|
|
481
|
+
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256, PolkadotPrimitivesV9DisputeState]>>>>;
|
|
474
482
|
/**
|
|
475
483
|
* Get all the pending inbound messages in the downward message queue for a para.
|
|
476
484
|
**/
|
|
@@ -482,7 +490,11 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
482
490
|
/**
|
|
483
491
|
* Returns a merkle proof of a validator session key., NOTE: This function is only available since parachain host version 5.
|
|
484
492
|
**/
|
|
485
|
-
keyOwnershipProof: AugmentedCall<ApiType, (validator_id:
|
|
493
|
+
keyOwnershipProof: AugmentedCall<ApiType, (validator_id: PolkadotPrimitivesV9ValidatorAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
|
494
|
+
/**
|
|
495
|
+
* Retrieve the maximum relay parent session age allowed for parachain blocks.
|
|
496
|
+
**/
|
|
497
|
+
maxRelayParentSessionAge: AugmentedCall<ApiType, () => Observable<u32>>;
|
|
486
498
|
/**
|
|
487
499
|
* Get the minimum number of backing votes for a parachain candidate., This is a staging method! Do not use on production runtimes!
|
|
488
500
|
**/
|
|
@@ -494,15 +506,19 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
494
506
|
/**
|
|
495
507
|
* Scrape dispute relevant from on-chain, backing votes and resolved disputes.
|
|
496
508
|
**/
|
|
497
|
-
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<
|
|
509
|
+
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<PolkadotPrimitivesV9ScrapedOnChainVotes>>>;
|
|
498
510
|
/**
|
|
499
511
|
* Returns the state of parachain backing for a given para.
|
|
500
512
|
**/
|
|
501
|
-
paraBackingState: AugmentedCall<ApiType, (__runtime_api_generated_name_0__: ParaId | AnyNumber | Uint8Array) => Observable<Option<
|
|
513
|
+
paraBackingState: AugmentedCall<ApiType, (__runtime_api_generated_name_0__: ParaId | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV9AsyncBackingBackingState>>>;
|
|
514
|
+
/**
|
|
515
|
+
* Retrieve paraids at relay parent
|
|
516
|
+
**/
|
|
517
|
+
paraIds: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
|
|
502
518
|
/**
|
|
503
519
|
* 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.
|
|
504
520
|
**/
|
|
505
|
-
persistedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption:
|
|
521
|
+
persistedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV9OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<PolkadotPrimitivesV9PersistedValidationData>>>;
|
|
506
522
|
/**
|
|
507
523
|
* 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.
|
|
508
524
|
**/
|
|
@@ -514,7 +530,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
514
530
|
/**
|
|
515
531
|
* Returns execution parameters for the session.
|
|
516
532
|
**/
|
|
517
|
-
sessionExecutorParams: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array) => Observable<Option<
|
|
533
|
+
sessionExecutorParams: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV9ExecutorParams>>>;
|
|
518
534
|
/**
|
|
519
535
|
* Returns the session index expected at a child of the block.,, This can be used to instantiate a `SigningContext`.
|
|
520
536
|
**/
|
|
@@ -522,33 +538,37 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
522
538
|
/**
|
|
523
539
|
* Get the session info for the given session, if stored.,, NOTE: This function is only available since parachain host version 2.
|
|
524
540
|
**/
|
|
525
|
-
sessionInfo: AugmentedCall<ApiType, (index: u32 | AnyNumber | Uint8Array) => Observable<Option<
|
|
541
|
+
sessionInfo: AugmentedCall<ApiType, (index: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV9SessionInfo>>>;
|
|
526
542
|
/**
|
|
527
543
|
* Submits a PVF pre-checking statement into the transaction pool.,, NOTE: This function is only available since parachain host version 2.
|
|
528
544
|
**/
|
|
529
|
-
submitPvfCheckStatement: AugmentedCall<ApiType, (stmt:
|
|
545
|
+
submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PolkadotPrimitivesV9PvfCheckStatement | {
|
|
530
546
|
accept?: any;
|
|
531
547
|
subject?: any;
|
|
532
548
|
sessionIndex?: any;
|
|
533
549
|
validatorIndex?: any;
|
|
534
|
-
} | string | Uint8Array, signature:
|
|
550
|
+
} | string | Uint8Array, signature: PolkadotPrimitivesV9ValidatorAppSignature | string | Uint8Array) => Observable<Null>>;
|
|
535
551
|
/**
|
|
536
552
|
* 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.
|
|
537
553
|
**/
|
|
538
|
-
submitReportDisputeLost: AugmentedCall<ApiType, (dispute_proof:
|
|
554
|
+
submitReportDisputeLost: AugmentedCall<ApiType, (dispute_proof: PolkadotPrimitivesV9SlashingDisputeProof | {
|
|
539
555
|
timeSlot?: any;
|
|
540
556
|
kind?: any;
|
|
541
557
|
validatorIndex?: any;
|
|
542
558
|
validatorId?: any;
|
|
543
559
|
} | string | Uint8Array, key_ownership_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
|
544
560
|
/**
|
|
545
|
-
* Returns a list of validators that lost a past session dispute and need to be slashed
|
|
561
|
+
* Returns a list of validators that lost a past session dispute and need to be slashed.,, Deprecated. Use `unapplied_slashes_v2` instead.
|
|
562
|
+
**/
|
|
563
|
+
unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256, PolkadotPrimitivesV9SlashingLegacyPendingSlashes]>>>>;
|
|
564
|
+
/**
|
|
565
|
+
* Returns a list of validators that lost a past session dispute and need to be slashed.
|
|
546
566
|
**/
|
|
547
|
-
|
|
567
|
+
unappliedSlashesV2: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256, PolkadotPrimitivesV9SlashingPendingSlashes]>>>>;
|
|
548
568
|
/**
|
|
549
569
|
* 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.
|
|
550
570
|
**/
|
|
551
|
-
validationCode: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption:
|
|
571
|
+
validationCode: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV9OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<Bytes>>>;
|
|
552
572
|
/**
|
|
553
573
|
* Retrieve the maximum uncompressed code size.
|
|
554
574
|
**/
|
|
@@ -560,15 +580,15 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
560
580
|
/**
|
|
561
581
|
* 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.
|
|
562
582
|
**/
|
|
563
|
-
validationCodeHash: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption:
|
|
583
|
+
validationCodeHash: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV9OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<H256>>>;
|
|
564
584
|
/**
|
|
565
585
|
* 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.
|
|
566
586
|
**/
|
|
567
|
-
validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<u32>>,
|
|
587
|
+
validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<u32>>, PolkadotPrimitivesV9GroupRotationInfo]>>>;
|
|
568
588
|
/**
|
|
569
589
|
* Get the current validators.
|
|
570
590
|
**/
|
|
571
|
-
validators: AugmentedCall<ApiType, () => Observable<Vec<
|
|
591
|
+
validators: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV9ValidatorAppPublic>>>;
|
|
572
592
|
/**
|
|
573
593
|
* Generic call
|
|
574
594
|
**/
|
|
@@ -597,7 +617,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
597
617
|
/**
|
|
598
618
|
* 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.
|
|
599
619
|
**/
|
|
600
|
-
generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<
|
|
620
|
+
generateSessionKeys: AugmentedCall<ApiType, (owner: Bytes | string | Uint8Array, seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<SpSessionRuntimeApiOpaqueGeneratedSessionKeys>>;
|
|
601
621
|
/**
|
|
602
622
|
* Generic call
|
|
603
623
|
**/
|
|
@@ -614,7 +634,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
614
634
|
**/
|
|
615
635
|
nominationsQuota: AugmentedCall<ApiType, (balance: u128 | AnyNumber | Uint8Array) => Observable<u32>>;
|
|
616
636
|
/**
|
|
617
|
-
* Returns true if validator `account` has pages to be claimed for the given era.
|
|
637
|
+
* Returns true if a validator `account` has pages to be claimed for the given era.
|
|
618
638
|
**/
|
|
619
639
|
pendingRewards: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<bool>>;
|
|
620
640
|
/**
|
|
@@ -692,7 +712,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
692
712
|
**/
|
|
693
713
|
queryAcceptablePaymentAssets: AugmentedCall<ApiType, (xcm_version: u32 | AnyNumber | Uint8Array) => Observable<Result<Vec<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>>;
|
|
694
714
|
/**
|
|
695
|
-
* 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.
|
|
715
|
+
* Query delivery fees V2.,, 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.
|
|
696
716
|
**/
|
|
697
717
|
queryDeliveryFees: AugmentedCall<ApiType, (destination: XcmVersionedLocation | {
|
|
698
718
|
V3: any;
|
|
@@ -706,6 +726,12 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
706
726
|
V4: any;
|
|
707
727
|
} | {
|
|
708
728
|
V5: any;
|
|
729
|
+
} | string | Uint8Array, asset_id: XcmVersionedAssetId | {
|
|
730
|
+
V3: any;
|
|
731
|
+
} | {
|
|
732
|
+
V4: any;
|
|
733
|
+
} | {
|
|
734
|
+
V5: any;
|
|
709
735
|
} | string | Uint8Array) => Observable<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>>;
|
|
710
736
|
/**
|
|
711
737
|
* Converts a weight into a fee for the specified `AssetId`.,, # Arguments,, * `weight`: convertible `Weight`., * `asset`: `VersionedAssetId`.
|