@polkadot/api-augment 15.6.1 → 15.7.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/cjs/kusama/consts.d.ts +14 -0
- package/cjs/kusama/errors.d.ts +76 -10
- package/cjs/kusama/events.d.ts +60 -5
- package/cjs/kusama/query.d.ts +40 -13
- package/cjs/kusama/runtime.d.ts +54 -28
- package/cjs/kusama/tx.d.ts +97 -26
- package/cjs/packageInfo.js +1 -1
- package/cjs/polkadot/consts.d.ts +14 -0
- package/cjs/polkadot/errors.d.ts +76 -10
- package/cjs/polkadot/events.d.ts +60 -21
- package/cjs/polkadot/query.d.ts +38 -25
- package/cjs/polkadot/runtime.d.ts +54 -28
- package/cjs/polkadot/tx.d.ts +95 -41
- package/kusama/consts.d.ts +14 -0
- package/kusama/errors.d.ts +76 -10
- package/kusama/events.d.ts +60 -5
- package/kusama/query.d.ts +40 -13
- package/kusama/runtime.d.ts +54 -28
- package/kusama/tx.d.ts +97 -26
- package/package.json +6 -6
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +14 -0
- package/polkadot/errors.d.ts +76 -10
- package/polkadot/events.d.ts +60 -21
- package/polkadot/query.d.ts +38 -25
- package/polkadot/runtime.d.ts +54 -28
- package/polkadot/tx.d.ts +95 -41
|
@@ -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 { PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage,
|
|
10
|
+
import type { PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotPrimitivesV8ApprovalVotingParams, PolkadotPrimitivesV8AsyncBackingAsyncBackingParams, PolkadotPrimitivesV8AsyncBackingBackingState, PolkadotPrimitivesV8CandidateCommitments, PolkadotPrimitivesV8CandidateEvent, PolkadotPrimitivesV8CommittedCandidateReceipt, PolkadotPrimitivesV8CoreState, PolkadotPrimitivesV8DisputeState, PolkadotPrimitivesV8ExecutorParams, PolkadotPrimitivesV8GroupRotationInfo, PolkadotPrimitivesV8OccupiedCoreAssumption, PolkadotPrimitivesV8PersistedValidationData, PolkadotPrimitivesV8PvfCheckStatement, PolkadotPrimitivesV8ScrapedOnChainVotes, PolkadotPrimitivesV8SessionInfo, PolkadotPrimitivesV8SlashingDisputeProof, PolkadotPrimitivesV8SlashingPendingSlashes, PolkadotPrimitivesV8ValidatorAppPublic, PolkadotPrimitivesV8ValidatorAppSignature, PolkadotRuntimeOriginCaller, RelayCommonApisInflationInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyForkVotingProofOpaqueValue, SpConsensusBeefyFutureBlockVotingProof, 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';
|
|
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>;
|
|
@@ -77,17 +77,35 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
77
77
|
* Return the block number where BEEFY consensus is enabled/started
|
|
78
78
|
**/
|
|
79
79
|
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>>>;
|
|
80
84
|
/**
|
|
81
85
|
* 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.
|
|
82
86
|
**/
|
|
83
87
|
generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusBeefyEcdsaCryptoPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
|
84
88
|
/**
|
|
85
|
-
* Submits an unsigned extrinsic to report
|
|
89
|
+
* Submits an unsigned extrinsic to report a double voting equivocation. The caller, must provide the double voting 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.
|
|
86
90
|
**/
|
|
87
|
-
|
|
91
|
+
submitReportDoubleVotingUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusBeefyDoubleVotingProof | {
|
|
88
92
|
first?: any;
|
|
89
93
|
second?: any;
|
|
90
94
|
} | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
|
|
95
|
+
/**
|
|
96
|
+
* Submits an unsigned extrinsic to report a fork voting equivocation. The caller, must provide the fork voting proof (the ancestry proof should be obtained using, `generate_ancestry_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.
|
|
97
|
+
**/
|
|
98
|
+
submitReportForkVotingUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusBeefyForkVotingProofOpaqueValue | {
|
|
99
|
+
vote?: any;
|
|
100
|
+
ancestryProof?: any;
|
|
101
|
+
header?: any;
|
|
102
|
+
} | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
|
|
103
|
+
/**
|
|
104
|
+
* Submits an unsigned extrinsic to report a future block voting equivocation. The caller, must provide the future block voting 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.
|
|
105
|
+
**/
|
|
106
|
+
submitReportFutureBlockVotingUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusBeefyFutureBlockVotingProof | {
|
|
107
|
+
vote?: any;
|
|
108
|
+
} | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
|
|
91
109
|
/**
|
|
92
110
|
* Return the current active BEEFY validator set
|
|
93
111
|
**/
|
|
@@ -214,7 +232,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
214
232
|
**/
|
|
215
233
|
buildState: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<Null, Text>>>;
|
|
216
234
|
/**
|
|
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,
|
|
235
|
+
* 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, exist. 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.
|
|
218
236
|
**/
|
|
219
237
|
getPreset: AugmentedCall<ApiType, (id: Option<Text> | null | Uint8Array | Text | string) => Observable<Option<Bytes>>>;
|
|
220
238
|
/**
|
|
@@ -345,9 +363,13 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
345
363
|
**/
|
|
346
364
|
memberNeedsDelegateMigration: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<bool>>;
|
|
347
365
|
/**
|
|
348
|
-
* Returns the pending slash for a given pool member.
|
|
366
|
+
* Returns the pending slash for a given pool member.,, If pending slash of the member exceeds `ExistentialDeposit`, it can be reported on, chain.
|
|
349
367
|
**/
|
|
350
368
|
memberPendingSlash: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<u128>>;
|
|
369
|
+
/**
|
|
370
|
+
* Returns the total contribution of a pool member including any balance that is unbonding.
|
|
371
|
+
**/
|
|
372
|
+
memberTotalBalance: AugmentedCall<ApiType, (who: AccountId32 | string | Uint8Array) => Observable<u128>>;
|
|
351
373
|
/**
|
|
352
374
|
* Returns the pending rewards for the member that the AccountId was given for.
|
|
353
375
|
**/
|
|
@@ -356,6 +378,10 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
356
378
|
* Returns the equivalent balance of `points` for a given pool.
|
|
357
379
|
**/
|
|
358
380
|
pointsToBalance: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, points: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
|
|
381
|
+
/**
|
|
382
|
+
* Total balance contributed to the pool.
|
|
383
|
+
**/
|
|
384
|
+
poolBalance: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
|
|
359
385
|
/**
|
|
360
386
|
* 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
387
|
**/
|
|
@@ -391,35 +417,35 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
391
417
|
/**
|
|
392
418
|
* Approval voting configuration parameters
|
|
393
419
|
**/
|
|
394
|
-
approvalVotingParams: AugmentedCall<ApiType, () => Observable<
|
|
420
|
+
approvalVotingParams: AugmentedCall<ApiType, () => Observable<PolkadotPrimitivesV8ApprovalVotingParams>>;
|
|
395
421
|
/**
|
|
396
422
|
* 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.
|
|
397
423
|
**/
|
|
398
|
-
assumedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, expected_persisted_validation_data_hash: H256 | string | Uint8Array) => Observable<Option<ITuple<[
|
|
424
|
+
assumedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, expected_persisted_validation_data_hash: H256 | string | Uint8Array) => Observable<Option<ITuple<[PolkadotPrimitivesV8PersistedValidationData, H256]>>>>;
|
|
399
425
|
/**
|
|
400
426
|
* Returns candidate's acceptance limitations for asynchronous backing for a relay parent.
|
|
401
427
|
**/
|
|
402
|
-
asyncBackingParams: AugmentedCall<ApiType, () => Observable<
|
|
428
|
+
asyncBackingParams: AugmentedCall<ApiType, () => Observable<PolkadotPrimitivesV8AsyncBackingAsyncBackingParams>>;
|
|
403
429
|
/**
|
|
404
430
|
* 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.
|
|
405
431
|
**/
|
|
406
|
-
availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<
|
|
432
|
+
availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV8CoreState>>>;
|
|
407
433
|
/**
|
|
408
434
|
* Get a vector of events concerning candidates that occurred within a block.
|
|
409
435
|
**/
|
|
410
|
-
candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<
|
|
436
|
+
candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV8CandidateEvent>>>;
|
|
411
437
|
/**
|
|
412
438
|
* Get the receipt of a candidate pending availability. This returns `Some` for any paras, assigned to occupied cores in `availability_cores` and `None` otherwise.
|
|
413
439
|
**/
|
|
414
|
-
candidatePendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Option<
|
|
440
|
+
candidatePendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV8CommittedCandidateReceipt>>>;
|
|
415
441
|
/**
|
|
416
442
|
* Elastic scaling support
|
|
417
443
|
**/
|
|
418
|
-
candidatesPendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Vec<
|
|
444
|
+
candidatesPendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Vec<PolkadotPrimitivesV8CommittedCandidateReceipt>>>;
|
|
419
445
|
/**
|
|
420
446
|
* Checks if the given validation outputs pass the acceptance criteria.
|
|
421
447
|
**/
|
|
422
|
-
checkValidationOutputs: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, outputs:
|
|
448
|
+
checkValidationOutputs: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, outputs: PolkadotPrimitivesV8CandidateCommitments | {
|
|
423
449
|
upwardMessages?: any;
|
|
424
450
|
horizontalMessages?: any;
|
|
425
451
|
newValidationCode?: any;
|
|
@@ -438,7 +464,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
438
464
|
/**
|
|
439
465
|
* Returns all onchain disputes.
|
|
440
466
|
**/
|
|
441
|
-
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256,
|
|
467
|
+
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256, PolkadotPrimitivesV8DisputeState]>>>>;
|
|
442
468
|
/**
|
|
443
469
|
* Get all the pending inbound messages in the downward message queue for a para.
|
|
444
470
|
**/
|
|
@@ -450,7 +476,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
450
476
|
/**
|
|
451
477
|
* Returns a merkle proof of a validator session key., NOTE: This function is only available since parachain host version 5.
|
|
452
478
|
**/
|
|
453
|
-
keyOwnershipProof: AugmentedCall<ApiType, (validator_id:
|
|
479
|
+
keyOwnershipProof: AugmentedCall<ApiType, (validator_id: PolkadotPrimitivesV8ValidatorAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
|
454
480
|
/**
|
|
455
481
|
* Get the minimum number of backing votes for a parachain candidate., This is a staging method! Do not use on production runtimes!
|
|
456
482
|
**/
|
|
@@ -462,15 +488,15 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
462
488
|
/**
|
|
463
489
|
* Scrape dispute relevant from on-chain, backing votes and resolved disputes.
|
|
464
490
|
**/
|
|
465
|
-
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<
|
|
491
|
+
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<PolkadotPrimitivesV8ScrapedOnChainVotes>>>;
|
|
466
492
|
/**
|
|
467
493
|
* Returns the state of parachain backing for a given para.
|
|
468
494
|
**/
|
|
469
|
-
paraBackingState: AugmentedCall<ApiType, (_: ParaId | AnyNumber | Uint8Array) => Observable<Option<
|
|
495
|
+
paraBackingState: AugmentedCall<ApiType, (_: ParaId | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV8AsyncBackingBackingState>>>;
|
|
470
496
|
/**
|
|
471
497
|
* 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.
|
|
472
498
|
**/
|
|
473
|
-
persistedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption:
|
|
499
|
+
persistedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV8OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<PolkadotPrimitivesV8PersistedValidationData>>>;
|
|
474
500
|
/**
|
|
475
501
|
* 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.
|
|
476
502
|
**/
|
|
@@ -478,7 +504,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
478
504
|
/**
|
|
479
505
|
* Returns execution parameters for the session.
|
|
480
506
|
**/
|
|
481
|
-
sessionExecutorParams: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array) => Observable<Option<
|
|
507
|
+
sessionExecutorParams: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV8ExecutorParams>>>;
|
|
482
508
|
/**
|
|
483
509
|
* Returns the session index expected at a child of the block.,, This can be used to instantiate a `SigningContext`.
|
|
484
510
|
**/
|
|
@@ -486,20 +512,20 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
486
512
|
/**
|
|
487
513
|
* Get the session info for the given session, if stored.,, NOTE: This function is only available since parachain host version 2.
|
|
488
514
|
**/
|
|
489
|
-
sessionInfo: AugmentedCall<ApiType, (index: u32 | AnyNumber | Uint8Array) => Observable<Option<
|
|
515
|
+
sessionInfo: AugmentedCall<ApiType, (index: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV8SessionInfo>>>;
|
|
490
516
|
/**
|
|
491
517
|
* Submits a PVF pre-checking statement into the transaction pool.,, NOTE: This function is only available since parachain host version 2.
|
|
492
518
|
**/
|
|
493
|
-
submitPvfCheckStatement: AugmentedCall<ApiType, (stmt:
|
|
519
|
+
submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PolkadotPrimitivesV8PvfCheckStatement | {
|
|
494
520
|
accept?: any;
|
|
495
521
|
subject?: any;
|
|
496
522
|
sessionIndex?: any;
|
|
497
523
|
validatorIndex?: any;
|
|
498
|
-
} | string | Uint8Array, signature:
|
|
524
|
+
} | string | Uint8Array, signature: PolkadotPrimitivesV8ValidatorAppSignature | string | Uint8Array) => Observable<Null>>;
|
|
499
525
|
/**
|
|
500
526
|
* 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.
|
|
501
527
|
**/
|
|
502
|
-
submitReportDisputeLost: AugmentedCall<ApiType, (dispute_proof:
|
|
528
|
+
submitReportDisputeLost: AugmentedCall<ApiType, (dispute_proof: PolkadotPrimitivesV8SlashingDisputeProof | {
|
|
503
529
|
timeSlot?: any;
|
|
504
530
|
kind?: any;
|
|
505
531
|
validatorIndex?: any;
|
|
@@ -508,11 +534,11 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
508
534
|
/**
|
|
509
535
|
* 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.
|
|
510
536
|
**/
|
|
511
|
-
unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256,
|
|
537
|
+
unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256, PolkadotPrimitivesV8SlashingPendingSlashes]>>>>;
|
|
512
538
|
/**
|
|
513
539
|
* 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.
|
|
514
540
|
**/
|
|
515
|
-
validationCode: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption:
|
|
541
|
+
validationCode: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV8OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<Bytes>>>;
|
|
516
542
|
/**
|
|
517
543
|
* Get the validation code from its hash.
|
|
518
544
|
**/
|
|
@@ -520,15 +546,15 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
520
546
|
/**
|
|
521
547
|
* 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.
|
|
522
548
|
**/
|
|
523
|
-
validationCodeHash: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption:
|
|
549
|
+
validationCodeHash: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV8OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<H256>>>;
|
|
524
550
|
/**
|
|
525
551
|
* 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.
|
|
526
552
|
**/
|
|
527
|
-
validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<u32>>,
|
|
553
|
+
validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<u32>>, PolkadotPrimitivesV8GroupRotationInfo]>>>;
|
|
528
554
|
/**
|
|
529
555
|
* Get the current validators.
|
|
530
556
|
**/
|
|
531
|
-
validators: AugmentedCall<ApiType, () => Observable<Vec<
|
|
557
|
+
validators: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV8ValidatorAppPublic>>>;
|
|
532
558
|
/**
|
|
533
559
|
* Generic call
|
|
534
560
|
**/
|
package/cjs/polkadot/tx.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
|
|
|
4
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
6
6
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletBalancesAdjustmentDirection, PalletBrokerCoretimeInterfaceCoreAssignment, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletVestingVestingInfo, PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
|
|
7
|
+
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletBalancesAdjustmentDirection, PalletBrokerCoretimeInterfaceCoreAssignment, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletVestingVestingInfo, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV8ApprovalVotingParams, PolkadotPrimitivesV8AsyncBackingAsyncBackingParams, PolkadotPrimitivesV8ExecutorParams, PolkadotPrimitivesV8InherentData, PolkadotPrimitivesV8PvfCheckStatement, PolkadotPrimitivesV8SchedulerParams, PolkadotPrimitivesV8SlashingDisputeProof, PolkadotPrimitivesV8ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeOriginCaller, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyForkVotingProofAncestryProof, SpConsensusBeefyFutureBlockVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, StagingXcmExecutorAssetTransferTransferType, StagingXcmV4Location, XcmV3WeightLimit, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
8
8
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
9
9
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
10
10
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -305,7 +305,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
305
305
|
* against the extracted offender. If both are valid, the offence
|
|
306
306
|
* will be reported.
|
|
307
307
|
**/
|
|
308
|
-
|
|
308
|
+
reportDoubleVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | {
|
|
309
309
|
first?: any;
|
|
310
310
|
second?: any;
|
|
311
311
|
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
@@ -324,7 +324,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
324
324
|
* if the block author is defined it will be defined as the equivocation
|
|
325
325
|
* reporter.
|
|
326
326
|
**/
|
|
327
|
-
|
|
327
|
+
reportDoubleVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | {
|
|
328
328
|
first?: any;
|
|
329
329
|
second?: any;
|
|
330
330
|
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
@@ -332,6 +332,68 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
332
332
|
trieNodes?: any;
|
|
333
333
|
validatorCount?: any;
|
|
334
334
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyDoubleVotingProof, SpSessionMembershipProof]>;
|
|
335
|
+
/**
|
|
336
|
+
* Report fork voting equivocation. This method will verify the equivocation proof
|
|
337
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
338
|
+
* If both are valid, the offence will be reported.
|
|
339
|
+
**/
|
|
340
|
+
reportForkVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyForkVotingProofAncestryProof | {
|
|
341
|
+
vote?: any;
|
|
342
|
+
ancestryProof?: any;
|
|
343
|
+
header?: any;
|
|
344
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
345
|
+
session?: any;
|
|
346
|
+
trieNodes?: any;
|
|
347
|
+
validatorCount?: any;
|
|
348
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyForkVotingProofAncestryProof, SpSessionMembershipProof]>;
|
|
349
|
+
/**
|
|
350
|
+
* Report fork voting equivocation. This method will verify the equivocation proof
|
|
351
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
352
|
+
* If both are valid, the offence will be reported.
|
|
353
|
+
*
|
|
354
|
+
* This extrinsic must be called unsigned and it is expected that only
|
|
355
|
+
* block authors will call it (validated in `ValidateUnsigned`), as such
|
|
356
|
+
* if the block author is defined it will be defined as the equivocation
|
|
357
|
+
* reporter.
|
|
358
|
+
**/
|
|
359
|
+
reportForkVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyForkVotingProofAncestryProof | {
|
|
360
|
+
vote?: any;
|
|
361
|
+
ancestryProof?: any;
|
|
362
|
+
header?: any;
|
|
363
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
364
|
+
session?: any;
|
|
365
|
+
trieNodes?: any;
|
|
366
|
+
validatorCount?: any;
|
|
367
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyForkVotingProofAncestryProof, SpSessionMembershipProof]>;
|
|
368
|
+
/**
|
|
369
|
+
* Report future block voting equivocation. This method will verify the equivocation proof
|
|
370
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
371
|
+
* If both are valid, the offence will be reported.
|
|
372
|
+
**/
|
|
373
|
+
reportFutureBlockVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyFutureBlockVotingProof | {
|
|
374
|
+
vote?: any;
|
|
375
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
376
|
+
session?: any;
|
|
377
|
+
trieNodes?: any;
|
|
378
|
+
validatorCount?: any;
|
|
379
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyFutureBlockVotingProof, SpSessionMembershipProof]>;
|
|
380
|
+
/**
|
|
381
|
+
* Report future block voting equivocation. This method will verify the equivocation proof
|
|
382
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
383
|
+
* If both are valid, the offence will be reported.
|
|
384
|
+
*
|
|
385
|
+
* This extrinsic must be called unsigned and it is expected that only
|
|
386
|
+
* block authors will call it (validated in `ValidateUnsigned`), as such
|
|
387
|
+
* if the block author is defined it will be defined as the equivocation
|
|
388
|
+
* reporter.
|
|
389
|
+
**/
|
|
390
|
+
reportFutureBlockVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyFutureBlockVotingProof | {
|
|
391
|
+
vote?: any;
|
|
392
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
393
|
+
session?: any;
|
|
394
|
+
trieNodes?: any;
|
|
395
|
+
validatorCount?: any;
|
|
396
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyFutureBlockVotingProof, SpSessionMembershipProof]>;
|
|
335
397
|
/**
|
|
336
398
|
* Reset BEEFY consensus by setting a new BEEFY genesis at `delay_in_blocks` blocks in the
|
|
337
399
|
* future.
|
|
@@ -779,16 +841,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
779
841
|
/**
|
|
780
842
|
* Set approval-voting-params.
|
|
781
843
|
**/
|
|
782
|
-
setApprovalVotingParams: AugmentedSubmittable<(updated:
|
|
844
|
+
setApprovalVotingParams: AugmentedSubmittable<(updated: PolkadotPrimitivesV8ApprovalVotingParams | {
|
|
783
845
|
maxApprovalCoalesceCount?: any;
|
|
784
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
846
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV8ApprovalVotingParams]>;
|
|
785
847
|
/**
|
|
786
848
|
* Set the asynchronous backing parameters.
|
|
787
849
|
**/
|
|
788
|
-
setAsyncBackingParams: AugmentedSubmittable<(updated:
|
|
850
|
+
setAsyncBackingParams: AugmentedSubmittable<(updated: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams | {
|
|
789
851
|
maxCandidateDepth?: any;
|
|
790
852
|
allowedAncestryLen?: any;
|
|
791
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
853
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV8AsyncBackingAsyncBackingParams]>;
|
|
792
854
|
/**
|
|
793
855
|
* Setting this to true will disable consistency checks for the configuration setters.
|
|
794
856
|
* Use with caution.
|
|
@@ -816,7 +878,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
816
878
|
/**
|
|
817
879
|
* Set PVF executor parameters.
|
|
818
880
|
**/
|
|
819
|
-
setExecutorParams: AugmentedSubmittable<(updated:
|
|
881
|
+
setExecutorParams: AugmentedSubmittable<(updated: PolkadotPrimitivesV8ExecutorParams) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV8ExecutorParams]>;
|
|
820
882
|
/**
|
|
821
883
|
* Set the parachain validator-group rotation frequency
|
|
822
884
|
**/
|
|
@@ -966,7 +1028,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
966
1028
|
/**
|
|
967
1029
|
* Set scheduler-params.
|
|
968
1030
|
**/
|
|
969
|
-
setSchedulerParams: AugmentedSubmittable<(updated:
|
|
1031
|
+
setSchedulerParams: AugmentedSubmittable<(updated: PolkadotPrimitivesV8SchedulerParams | {
|
|
970
1032
|
groupRotationFrequency?: any;
|
|
971
1033
|
parasAvailabilityPeriod?: any;
|
|
972
1034
|
maxValidatorsPerCore?: any;
|
|
@@ -978,7 +1040,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
978
1040
|
onDemandFeeVariability?: any;
|
|
979
1041
|
onDemandBaseFee?: any;
|
|
980
1042
|
ttl?: any;
|
|
981
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1043
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV8SchedulerParams]>;
|
|
982
1044
|
/**
|
|
983
1045
|
* Set the scheduling lookahead, in expected number of blocks at peak throughput.
|
|
984
1046
|
**/
|
|
@@ -1932,8 +1994,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1932
1994
|
* Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
|
|
1933
1995
|
* [`adapter::StakeStrategyType::Delegate`].
|
|
1934
1996
|
*
|
|
1935
|
-
*
|
|
1936
|
-
*
|
|
1997
|
+
* The pending slash amount of the member must be equal or more than `ExistentialDeposit`.
|
|
1998
|
+
* This call can be dispatched permissionlessly (i.e. by any account). If the execution
|
|
1999
|
+
* is successful, fee is refunded and caller may be rewarded with a part of the slash
|
|
2000
|
+
* based on the [`crate::pallet::Config::StakeAdapter`] configuration.
|
|
1937
2001
|
**/
|
|
1938
2002
|
applySlash: AugmentedSubmittable<(memberAccount: MultiAddress | {
|
|
1939
2003
|
Id: any;
|
|
@@ -2121,8 +2185,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2121
2185
|
Address20: any;
|
|
2122
2186
|
} | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
|
2123
2187
|
/**
|
|
2124
|
-
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
|
2125
|
-
*
|
|
2188
|
+
* Stake funds with a pool. The amount to bond is transferred from the member to the pool
|
|
2189
|
+
* account and immediately increases the pools bond.
|
|
2190
|
+
*
|
|
2191
|
+
* The method of transferring the amount to the pool account is determined by
|
|
2192
|
+
* [`adapter::StakeStrategyType`]. If the pool is configured to use
|
|
2193
|
+
* [`adapter::StakeStrategyType::Delegate`], the funds remain in the account of
|
|
2194
|
+
* the `origin`, while the pool gains the right to use these funds for staking.
|
|
2126
2195
|
*
|
|
2127
2196
|
* # Note
|
|
2128
2197
|
*
|
|
@@ -2472,27 +2541,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2472
2541
|
/**
|
|
2473
2542
|
* Enter the paras inherent. This will process bitfields and backed candidates.
|
|
2474
2543
|
**/
|
|
2475
|
-
enter: AugmentedSubmittable<(data:
|
|
2544
|
+
enter: AugmentedSubmittable<(data: PolkadotPrimitivesV8InherentData | {
|
|
2476
2545
|
bitfields?: any;
|
|
2477
2546
|
backedCandidates?: any;
|
|
2478
2547
|
disputes?: any;
|
|
2479
2548
|
parentHeader?: any;
|
|
2480
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2481
|
-
/**
|
|
2482
|
-
* Generic tx
|
|
2483
|
-
**/
|
|
2484
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2485
|
-
};
|
|
2486
|
-
parameters: {
|
|
2487
|
-
/**
|
|
2488
|
-
* Set the value of a parameter.
|
|
2489
|
-
*
|
|
2490
|
-
* The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
|
|
2491
|
-
* deleted by setting them to `None`.
|
|
2492
|
-
**/
|
|
2493
|
-
setParameter: AugmentedSubmittable<(keyValue: PolkadotRuntimeRuntimeParameters | {
|
|
2494
|
-
Inflation: any;
|
|
2495
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeRuntimeParameters]>;
|
|
2549
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV8InherentData]>;
|
|
2496
2550
|
/**
|
|
2497
2551
|
* Generic tx
|
|
2498
2552
|
**/
|
|
@@ -2546,12 +2600,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2546
2600
|
* Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
|
|
2547
2601
|
* enacts the results if that was the last vote before achieving the supermajority.
|
|
2548
2602
|
**/
|
|
2549
|
-
includePvfCheckStatement: AugmentedSubmittable<(stmt:
|
|
2603
|
+
includePvfCheckStatement: AugmentedSubmittable<(stmt: PolkadotPrimitivesV8PvfCheckStatement | {
|
|
2550
2604
|
accept?: any;
|
|
2551
2605
|
subject?: any;
|
|
2552
2606
|
sessionIndex?: any;
|
|
2553
2607
|
validatorIndex?: any;
|
|
2554
|
-
} | string | Uint8Array, signature:
|
|
2608
|
+
} | string | Uint8Array, signature: PolkadotPrimitivesV8ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV8PvfCheckStatement, PolkadotPrimitivesV8ValidatorAppSignature]>;
|
|
2555
2609
|
/**
|
|
2556
2610
|
* Remove the validation code from the storage iff the reference count is 0.
|
|
2557
2611
|
*
|
|
@@ -2579,7 +2633,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2579
2633
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2580
2634
|
};
|
|
2581
2635
|
parasSlashing: {
|
|
2582
|
-
reportDisputeLostUnsigned: AugmentedSubmittable<(disputeProof:
|
|
2636
|
+
reportDisputeLostUnsigned: AugmentedSubmittable<(disputeProof: PolkadotPrimitivesV8SlashingDisputeProof | {
|
|
2583
2637
|
timeSlot?: any;
|
|
2584
2638
|
kind?: any;
|
|
2585
2639
|
validatorIndex?: any;
|
|
@@ -2588,7 +2642,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2588
2642
|
session?: any;
|
|
2589
2643
|
trieNodes?: any;
|
|
2590
2644
|
validatorCount?: any;
|
|
2591
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2645
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV8SlashingDisputeProof, SpSessionMembershipProof]>;
|
|
2592
2646
|
/**
|
|
2593
2647
|
* Generic tx
|
|
2594
2648
|
**/
|
|
@@ -2657,7 +2711,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2657
2711
|
Address32: any;
|
|
2658
2712
|
} | {
|
|
2659
2713
|
Address20: any;
|
|
2660
|
-
} | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
|
2714
|
+
} | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'NominationPools' | 'ParaRegistration' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
|
2661
2715
|
/**
|
|
2662
2716
|
* Publish the hash of a proxy-call that will be made in the future.
|
|
2663
2717
|
*
|
|
@@ -2706,7 +2760,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2706
2760
|
*
|
|
2707
2761
|
* Fails if there are insufficient funds to pay for deposit.
|
|
2708
2762
|
**/
|
|
2709
|
-
createPure: AugmentedSubmittable<(proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeProxyType, u32, u16]>;
|
|
2763
|
+
createPure: AugmentedSubmittable<(proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'NominationPools' | 'ParaRegistration' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeProxyType, u32, u16]>;
|
|
2710
2764
|
/**
|
|
2711
2765
|
* Removes a previously spawned pure proxy.
|
|
2712
2766
|
*
|
|
@@ -2735,7 +2789,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2735
2789
|
Address32: any;
|
|
2736
2790
|
} | {
|
|
2737
2791
|
Address20: any;
|
|
2738
|
-
} | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
|
2792
|
+
} | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'NominationPools' | 'ParaRegistration' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
|
2739
2793
|
/**
|
|
2740
2794
|
* Dispatch the given `call` from an account that the sender is authorised for through
|
|
2741
2795
|
* `add_proxy`.
|
|
@@ -2757,7 +2811,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2757
2811
|
Address32: any;
|
|
2758
2812
|
} | {
|
|
2759
2813
|
Address20: any;
|
|
2760
|
-
} | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
|
2814
|
+
} | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'NominationPools' | 'ParaRegistration' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
|
2761
2815
|
/**
|
|
2762
2816
|
* Dispatch the given `call` from an account that the sender is authorized for through
|
|
2763
2817
|
* `add_proxy`.
|
|
@@ -2791,7 +2845,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2791
2845
|
Address32: any;
|
|
2792
2846
|
} | {
|
|
2793
2847
|
Address20: any;
|
|
2794
|
-
} | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
|
2848
|
+
} | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'NominationPools' | 'ParaRegistration' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
|
2795
2849
|
/**
|
|
2796
2850
|
* Remove the given announcement of a delegate.
|
|
2797
2851
|
*
|
|
@@ -2866,7 +2920,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2866
2920
|
Address32: any;
|
|
2867
2921
|
} | {
|
|
2868
2922
|
Address20: any;
|
|
2869
|
-
} | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
|
2923
|
+
} | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'NominationPools' | 'ParaRegistration' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
|
2870
2924
|
/**
|
|
2871
2925
|
* Generic tx
|
|
2872
2926
|
**/
|
package/kusama/consts.d.ts
CHANGED
|
@@ -232,6 +232,20 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
232
232
|
**/
|
|
233
233
|
[key: string]: Codec;
|
|
234
234
|
};
|
|
235
|
+
delegatedStaking: {
|
|
236
|
+
/**
|
|
237
|
+
* Injected identifier for the pallet.
|
|
238
|
+
**/
|
|
239
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
240
|
+
/**
|
|
241
|
+
* Fraction of the slash that is rewarded to the caller of pending slash to the agent.
|
|
242
|
+
**/
|
|
243
|
+
slashRewardFraction: Perbill & AugmentedConst<ApiType>;
|
|
244
|
+
/**
|
|
245
|
+
* Generic const
|
|
246
|
+
**/
|
|
247
|
+
[key: string]: Codec;
|
|
248
|
+
};
|
|
235
249
|
electionProviderMultiPhase: {
|
|
236
250
|
/**
|
|
237
251
|
* The minimum amount of improvement to the solution score that defines a solution as
|