@polkadot/api-augment 9.13.6 → 9.14.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/packageInfo.js +1 -1
- package/kusama/consts.d.ts +23 -16
- package/kusama/errors.d.ts +21 -35
- package/kusama/events.d.ts +57 -1
- package/kusama/query.d.ts +46 -10
- package/kusama/tx.d.ts +45 -23
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +23 -16
- package/polkadot/errors.d.ts +13 -35
- package/polkadot/events.d.ts +23 -1
- package/polkadot/query.d.ts +28 -10
- package/polkadot/tx.d.ts +25 -23
- package/substrate/consts.d.ts +23 -16
- package/substrate/errors.d.ts +12 -34
- package/substrate/events.d.ts +57 -1
- package/substrate/query.d.ts +40 -9
- package/substrate/tx.d.ts +48 -26
package/cjs/packageInfo.js
CHANGED
package/kusama/consts.d.ts
CHANGED
|
@@ -25,18 +25,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
25
25
|
**/
|
|
26
26
|
[key: string]: Codec;
|
|
27
27
|
};
|
|
28
|
-
authorship: {
|
|
29
|
-
/**
|
|
30
|
-
* The number of blocks back we should accept uncles.
|
|
31
|
-
* This means that we will deal with uncle-parents that are
|
|
32
|
-
* `UncleGenerations + 1` before `now`.
|
|
33
|
-
**/
|
|
34
|
-
uncleGenerations: u32 & AugmentedConst<ApiType>;
|
|
35
|
-
/**
|
|
36
|
-
* Generic const
|
|
37
|
-
**/
|
|
38
|
-
[key: string]: Codec;
|
|
39
|
-
};
|
|
40
28
|
babe: {
|
|
41
29
|
/**
|
|
42
30
|
* The amount of time, in slots, that each epoch should last.
|
|
@@ -391,6 +379,15 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
391
379
|
* Max Authorities in use
|
|
392
380
|
**/
|
|
393
381
|
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
382
|
+
/**
|
|
383
|
+
* The maximum number of entries to keep in the set id to session index mapping.
|
|
384
|
+
*
|
|
385
|
+
* Since the `SetIdSession` map is only used for validating equivocations this
|
|
386
|
+
* value should relate to the bonding duration of whatever staking system is
|
|
387
|
+
* being used (if any). If equivocation handling is not enabled then this value
|
|
388
|
+
* can be zero.
|
|
389
|
+
**/
|
|
390
|
+
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
|
|
394
391
|
/**
|
|
395
392
|
* Generic const
|
|
396
393
|
**/
|
|
@@ -612,18 +609,28 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
612
609
|
/**
|
|
613
610
|
* The maximum number of candidates in a phragmen election.
|
|
614
611
|
*
|
|
615
|
-
* Warning:
|
|
616
|
-
*
|
|
617
|
-
*
|
|
612
|
+
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
613
|
+
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
614
|
+
*
|
|
615
|
+
* When this limit is reached no more candidates are accepted in the election.
|
|
618
616
|
**/
|
|
619
617
|
maxCandidates: u32 & AugmentedConst<ApiType>;
|
|
620
618
|
/**
|
|
621
619
|
* The maximum number of voters to allow in a phragmen election.
|
|
622
620
|
*
|
|
623
|
-
* Warning: This impacts the size of the election which is run onchain.
|
|
621
|
+
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
622
|
+
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
623
|
+
*
|
|
624
624
|
* When the limit is reached the new voters are ignored.
|
|
625
625
|
**/
|
|
626
626
|
maxVoters: u32 & AugmentedConst<ApiType>;
|
|
627
|
+
/**
|
|
628
|
+
* Maximum numbers of votes per voter.
|
|
629
|
+
*
|
|
630
|
+
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
631
|
+
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
632
|
+
**/
|
|
633
|
+
maxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
|
627
634
|
/**
|
|
628
635
|
* Identifier for the elections-phragmen pallet's lock
|
|
629
636
|
**/
|
package/kusama/errors.d.ts
CHANGED
|
@@ -37,40 +37,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
37
37
|
**/
|
|
38
38
|
[key: string]: AugmentedError<ApiType>;
|
|
39
39
|
};
|
|
40
|
-
authorship: {
|
|
41
|
-
/**
|
|
42
|
-
* The uncle is genesis.
|
|
43
|
-
**/
|
|
44
|
-
GenesisUncle: AugmentedError<ApiType>;
|
|
45
|
-
/**
|
|
46
|
-
* The uncle parent not in the chain.
|
|
47
|
-
**/
|
|
48
|
-
InvalidUncleParent: AugmentedError<ApiType>;
|
|
49
|
-
/**
|
|
50
|
-
* The uncle isn't recent enough to be included.
|
|
51
|
-
**/
|
|
52
|
-
OldUncle: AugmentedError<ApiType>;
|
|
53
|
-
/**
|
|
54
|
-
* The uncle is too high in chain.
|
|
55
|
-
**/
|
|
56
|
-
TooHighUncle: AugmentedError<ApiType>;
|
|
57
|
-
/**
|
|
58
|
-
* Too many uncles.
|
|
59
|
-
**/
|
|
60
|
-
TooManyUncles: AugmentedError<ApiType>;
|
|
61
|
-
/**
|
|
62
|
-
* The uncle is already included.
|
|
63
|
-
**/
|
|
64
|
-
UncleAlreadyIncluded: AugmentedError<ApiType>;
|
|
65
|
-
/**
|
|
66
|
-
* Uncles already set in the block.
|
|
67
|
-
**/
|
|
68
|
-
UnclesAlreadySet: AugmentedError<ApiType>;
|
|
69
|
-
/**
|
|
70
|
-
* Generic error
|
|
71
|
-
**/
|
|
72
|
-
[key: string]: AugmentedError<ApiType>;
|
|
73
|
-
};
|
|
74
40
|
babe: {
|
|
75
41
|
/**
|
|
76
42
|
* A given equivocation report is valid but already previously reported.
|
|
@@ -501,6 +467,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
501
467
|
* The given account did not vote on the referendum.
|
|
502
468
|
**/
|
|
503
469
|
NotVoter: AugmentedError<ApiType>;
|
|
470
|
+
/**
|
|
471
|
+
* The preimage does not exist.
|
|
472
|
+
**/
|
|
473
|
+
PreimageNotExist: AugmentedError<ApiType>;
|
|
504
474
|
/**
|
|
505
475
|
* Proposal still blacklisted
|
|
506
476
|
**/
|
|
@@ -716,6 +686,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
716
686
|
* No track exists for the proposal origin.
|
|
717
687
|
**/
|
|
718
688
|
NoTrack: AugmentedError<ApiType>;
|
|
689
|
+
/**
|
|
690
|
+
* The preimage does not exist.
|
|
691
|
+
**/
|
|
692
|
+
PreimageNotExist: AugmentedError<ApiType>;
|
|
719
693
|
/**
|
|
720
694
|
* The queue of the track is empty.
|
|
721
695
|
**/
|
|
@@ -1470,12 +1444,20 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1470
1444
|
* Invalid signature on statement.
|
|
1471
1445
|
**/
|
|
1472
1446
|
InvalidSignature: AugmentedError<ApiType>;
|
|
1447
|
+
/**
|
|
1448
|
+
* A dispute vote from a malicious backer.
|
|
1449
|
+
**/
|
|
1450
|
+
MaliciousBacker: AugmentedError<ApiType>;
|
|
1451
|
+
/**
|
|
1452
|
+
* No backing votes were provides along dispute statements.
|
|
1453
|
+
**/
|
|
1454
|
+
MissingBackingVotes: AugmentedError<ApiType>;
|
|
1473
1455
|
/**
|
|
1474
1456
|
* A dispute where there are only votes on one side.
|
|
1475
1457
|
**/
|
|
1476
1458
|
SingleSidedDispute: AugmentedError<ApiType>;
|
|
1477
1459
|
/**
|
|
1478
|
-
* Unconfirmed dispute statement sets provided
|
|
1460
|
+
* Unconfirmed dispute statement sets provided.
|
|
1479
1461
|
**/
|
|
1480
1462
|
UnconfirmedDispute: AugmentedError<ApiType>;
|
|
1481
1463
|
/**
|
|
@@ -1740,6 +1722,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1740
1722
|
* No track exists for the proposal origin.
|
|
1741
1723
|
**/
|
|
1742
1724
|
NoTrack: AugmentedError<ApiType>;
|
|
1725
|
+
/**
|
|
1726
|
+
* The preimage does not exist.
|
|
1727
|
+
**/
|
|
1728
|
+
PreimageNotExist: AugmentedError<ApiType>;
|
|
1743
1729
|
/**
|
|
1744
1730
|
* The queue of the track is empty.
|
|
1745
1731
|
**/
|
package/kusama/events.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
|
|
4
4
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
6
6
|
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
7
|
+
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
8
8
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
|
9
9
|
declare module '@polkadot/api-base/types/events' {
|
|
10
10
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
@@ -429,6 +429,28 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
429
429
|
* An external proposal has been tabled.
|
|
430
430
|
**/
|
|
431
431
|
ExternalTabled: AugmentedEvent<ApiType, []>;
|
|
432
|
+
/**
|
|
433
|
+
* Metadata for a proposal or a referendum has been cleared.
|
|
434
|
+
**/
|
|
435
|
+
MetadataCleared: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], {
|
|
436
|
+
owner: PalletDemocracyMetadataOwner;
|
|
437
|
+
hash_: H256;
|
|
438
|
+
}>;
|
|
439
|
+
/**
|
|
440
|
+
* Metadata for a proposal or a referendum has been set.
|
|
441
|
+
**/
|
|
442
|
+
MetadataSet: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], {
|
|
443
|
+
owner: PalletDemocracyMetadataOwner;
|
|
444
|
+
hash_: H256;
|
|
445
|
+
}>;
|
|
446
|
+
/**
|
|
447
|
+
* Metadata has been transferred to new owner.
|
|
448
|
+
**/
|
|
449
|
+
MetadataTransferred: AugmentedEvent<ApiType, [prevOwner: PalletDemocracyMetadataOwner, owner: PalletDemocracyMetadataOwner, hash_: H256], {
|
|
450
|
+
prevOwner: PalletDemocracyMetadataOwner;
|
|
451
|
+
owner: PalletDemocracyMetadataOwner;
|
|
452
|
+
hash_: H256;
|
|
453
|
+
}>;
|
|
432
454
|
/**
|
|
433
455
|
* A proposal has been rejected by referendum.
|
|
434
456
|
**/
|
|
@@ -698,6 +720,20 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
698
720
|
index: u32;
|
|
699
721
|
tally: PalletRankedCollectiveTally;
|
|
700
722
|
}>;
|
|
723
|
+
/**
|
|
724
|
+
* Metadata for a referendum has been cleared.
|
|
725
|
+
**/
|
|
726
|
+
MetadataCleared: AugmentedEvent<ApiType, [index: u32, hash_: H256], {
|
|
727
|
+
index: u32;
|
|
728
|
+
hash_: H256;
|
|
729
|
+
}>;
|
|
730
|
+
/**
|
|
731
|
+
* Metadata for a referendum has been set.
|
|
732
|
+
**/
|
|
733
|
+
MetadataSet: AugmentedEvent<ApiType, [index: u32, hash_: H256], {
|
|
734
|
+
index: u32;
|
|
735
|
+
hash_: H256;
|
|
736
|
+
}>;
|
|
701
737
|
/**
|
|
702
738
|
* A proposal has been rejected by referendum.
|
|
703
739
|
**/
|
|
@@ -1547,6 +1583,20 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1547
1583
|
index: u32;
|
|
1548
1584
|
tally: PalletConvictionVotingTally;
|
|
1549
1585
|
}>;
|
|
1586
|
+
/**
|
|
1587
|
+
* Metadata for a referendum has been cleared.
|
|
1588
|
+
**/
|
|
1589
|
+
MetadataCleared: AugmentedEvent<ApiType, [index: u32, hash_: H256], {
|
|
1590
|
+
index: u32;
|
|
1591
|
+
hash_: H256;
|
|
1592
|
+
}>;
|
|
1593
|
+
/**
|
|
1594
|
+
* Metadata for a referendum has been set.
|
|
1595
|
+
**/
|
|
1596
|
+
MetadataSet: AugmentedEvent<ApiType, [index: u32, hash_: H256], {
|
|
1597
|
+
index: u32;
|
|
1598
|
+
hash_: H256;
|
|
1599
|
+
}>;
|
|
1550
1600
|
/**
|
|
1551
1601
|
* A proposal has been rejected by referendum.
|
|
1552
1602
|
**/
|
|
@@ -1752,6 +1802,12 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1752
1802
|
NewMaxMembers: AugmentedEvent<ApiType, [max: u32], {
|
|
1753
1803
|
max: u32;
|
|
1754
1804
|
}>;
|
|
1805
|
+
/**
|
|
1806
|
+
* A group of members has been choosen as Skeptics
|
|
1807
|
+
**/
|
|
1808
|
+
SkepticsChosen: AugmentedEvent<ApiType, [skeptics: Vec<AccountId32>], {
|
|
1809
|
+
skeptics: Vec<AccountId32>;
|
|
1810
|
+
}>;
|
|
1755
1811
|
/**
|
|
1756
1812
|
* A suspended member has been judged.
|
|
1757
1813
|
**/
|
package/kusama/query.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/storage';
|
|
2
2
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
|
3
3
|
import type { Data } from '@polkadot/types';
|
|
4
|
-
import type { Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
|
4
|
+
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
7
7
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
8
|
-
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys,
|
|
8
|
+
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
9
9
|
import type { Observable } from '@polkadot/types/types';
|
|
10
10
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
11
11
|
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
@@ -45,14 +45,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
45
45
|
* Author of current block.
|
|
46
46
|
**/
|
|
47
47
|
author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
48
|
-
/**
|
|
49
|
-
* Whether uncles were already set in this block.
|
|
50
|
-
**/
|
|
51
|
-
didSetUncles: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
52
|
-
/**
|
|
53
|
-
* Uncles
|
|
54
|
-
**/
|
|
55
|
-
uncles: AugmentedQuery<ApiType, () => Observable<Vec<PalletAuthorshipUncleEntryItem>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
56
48
|
/**
|
|
57
49
|
* Generic query
|
|
58
50
|
**/
|
|
@@ -403,6 +395,21 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
403
395
|
* `ReferendumCount` if there isn't a unbaked referendum.
|
|
404
396
|
**/
|
|
405
397
|
lowestUnbaked: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
398
|
+
/**
|
|
399
|
+
* General information concerning any proposal or referendum.
|
|
400
|
+
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
|
401
|
+
* dump or IPFS hash of a JSON file.
|
|
402
|
+
*
|
|
403
|
+
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
|
404
|
+
* large preimages.
|
|
405
|
+
**/
|
|
406
|
+
metadataOf: AugmentedQuery<ApiType, (arg: PalletDemocracyMetadataOwner | {
|
|
407
|
+
External: any;
|
|
408
|
+
} | {
|
|
409
|
+
Proposal: any;
|
|
410
|
+
} | {
|
|
411
|
+
Referendum: any;
|
|
412
|
+
} | string | Uint8Array) => Observable<Option<H256>>, [PalletDemocracyMetadataOwner]> & QueryableStorageEntry<ApiType, [PalletDemocracyMetadataOwner]>;
|
|
406
413
|
/**
|
|
407
414
|
* The referendum to be tabled whenever it would be valid to table an external proposal.
|
|
408
415
|
* This happens when a referendum needs to be tabled and one of two conditions are met:
|
|
@@ -604,6 +611,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
604
611
|
* The number of referenda being decided currently.
|
|
605
612
|
**/
|
|
606
613
|
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
|
614
|
+
/**
|
|
615
|
+
* The metadata is a general information concerning the referendum.
|
|
616
|
+
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
|
617
|
+
* dump or IPFS hash of a JSON file.
|
|
618
|
+
*
|
|
619
|
+
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
|
620
|
+
* large preimages.
|
|
621
|
+
**/
|
|
622
|
+
metadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
607
623
|
/**
|
|
608
624
|
* The next free referendum index, aka the number of referenda started so far.
|
|
609
625
|
**/
|
|
@@ -642,6 +658,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
642
658
|
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
|
643
659
|
* members were responsible.
|
|
644
660
|
*
|
|
661
|
+
* This is only used for validating equivocation proofs. An equivocation proof must
|
|
662
|
+
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
|
663
|
+
* together sessions and GRANDPA set ids, i.e. we need to validate that a validator
|
|
664
|
+
* was the owner of a given key on a given session, and what the active set ID was
|
|
665
|
+
* during that session.
|
|
666
|
+
*
|
|
645
667
|
* TWOX-NOTE: `SetId` is not under user control.
|
|
646
668
|
**/
|
|
647
669
|
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
|
@@ -1284,6 +1306,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1284
1306
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1285
1307
|
};
|
|
1286
1308
|
parasDisputes: {
|
|
1309
|
+
/**
|
|
1310
|
+
* Backing votes stored for each dispute.
|
|
1311
|
+
* This storage is used for slashing.
|
|
1312
|
+
**/
|
|
1313
|
+
backersOnDisputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<BTreeSet<u32>>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
|
1287
1314
|
/**
|
|
1288
1315
|
* All ongoing or concluded disputes for the last several sessions.
|
|
1289
1316
|
**/
|
|
@@ -1448,6 +1475,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1448
1475
|
* The number of referenda being decided currently.
|
|
1449
1476
|
**/
|
|
1450
1477
|
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
|
1478
|
+
/**
|
|
1479
|
+
* The metadata is a general information concerning the referendum.
|
|
1480
|
+
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
|
1481
|
+
* dump or IPFS hash of a JSON file.
|
|
1482
|
+
*
|
|
1483
|
+
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
|
1484
|
+
* large preimages.
|
|
1485
|
+
**/
|
|
1486
|
+
metadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1451
1487
|
/**
|
|
1452
1488
|
* The next free referendum index, aka the number of referenda started so far.
|
|
1453
1489
|
**/
|
package/kusama/tx.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
|
|
|
5
5
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
7
7
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
8
|
-
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport,
|
|
8
|
+
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
9
9
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
10
10
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
11
11
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -50,22 +50,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
50
50
|
**/
|
|
51
51
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
52
52
|
};
|
|
53
|
-
authorship: {
|
|
54
|
-
/**
|
|
55
|
-
* Provide a set of uncles.
|
|
56
|
-
**/
|
|
57
|
-
setUncles: AugmentedSubmittable<(newUncles: Vec<SpRuntimeHeader> | (SpRuntimeHeader | {
|
|
58
|
-
parentHash?: any;
|
|
59
|
-
number?: any;
|
|
60
|
-
stateRoot?: any;
|
|
61
|
-
extrinsicsRoot?: any;
|
|
62
|
-
digest?: any;
|
|
63
|
-
} | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<SpRuntimeHeader>]>;
|
|
64
|
-
/**
|
|
65
|
-
* Generic tx
|
|
66
|
-
**/
|
|
67
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
68
|
-
};
|
|
69
53
|
babe: {
|
|
70
54
|
/**
|
|
71
55
|
* Plan an epoch config change. The epoch config change is recorded and will be enacted on
|
|
@@ -1606,6 +1590,30 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1606
1590
|
* - `proposal`: The index of the proposal to second.
|
|
1607
1591
|
**/
|
|
1608
1592
|
second: AugmentedSubmittable<(proposal: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
1593
|
+
/**
|
|
1594
|
+
* Set or clear a metadata of a proposal or a referendum.
|
|
1595
|
+
*
|
|
1596
|
+
* Parameters:
|
|
1597
|
+
* - `origin`: Must correspond to the `MetadataOwner`.
|
|
1598
|
+
* - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove`
|
|
1599
|
+
* threshold.
|
|
1600
|
+
* - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst`
|
|
1601
|
+
* threshold.
|
|
1602
|
+
* - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority`
|
|
1603
|
+
* threshold.
|
|
1604
|
+
* - `Signed` by a creator for a public proposal.
|
|
1605
|
+
* - `Signed` to clear a metadata for a finished referendum.
|
|
1606
|
+
* - `Root` to set a metadata for an ongoing referendum.
|
|
1607
|
+
* - `owner`: an identifier of a metadata owner.
|
|
1608
|
+
* - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
|
|
1609
|
+
**/
|
|
1610
|
+
setMetadata: AugmentedSubmittable<(owner: PalletDemocracyMetadataOwner | {
|
|
1611
|
+
External: any;
|
|
1612
|
+
} | {
|
|
1613
|
+
Proposal: any;
|
|
1614
|
+
} | {
|
|
1615
|
+
Referendum: any;
|
|
1616
|
+
} | string | Uint8Array, maybeHash: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [PalletDemocracyMetadataOwner, Option<H256>]>;
|
|
1609
1617
|
/**
|
|
1610
1618
|
* Undelegate the voting power of the sending account.
|
|
1611
1619
|
*
|
|
@@ -1981,6 +1989,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1981
1989
|
* Emits `SubmissionDepositRefunded`.
|
|
1982
1990
|
**/
|
|
1983
1991
|
refundSubmissionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1992
|
+
/**
|
|
1993
|
+
* Set or clear metadata of a referendum.
|
|
1994
|
+
*
|
|
1995
|
+
* Parameters:
|
|
1996
|
+
* - `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a
|
|
1997
|
+
* metadata of a finished referendum.
|
|
1998
|
+
* - `index`: The index of a referendum to set or clear metadata for.
|
|
1999
|
+
* - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
|
|
2000
|
+
**/
|
|
2001
|
+
setMetadata: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array, maybeHash: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [u32, Option<H256>]>;
|
|
1984
2002
|
/**
|
|
1985
2003
|
* Propose a referendum on a privileged action.
|
|
1986
2004
|
*
|
|
@@ -3650,10 +3668,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3650
3668
|
*
|
|
3651
3669
|
* It is the responsibility of the caller to **NOT** place all of their balance into the
|
|
3652
3670
|
* lock and keep some for further operations.
|
|
3653
|
-
*
|
|
3654
|
-
* # <weight>
|
|
3655
|
-
* We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less.
|
|
3656
|
-
* # </weight>
|
|
3657
3671
|
**/
|
|
3658
3672
|
vote: AugmentedSubmittable<(votes: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Compact<u128>]>;
|
|
3659
3673
|
/**
|
|
@@ -3801,8 +3815,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3801
3815
|
* Dispatch the given `call` from an account that the sender is authorised for through
|
|
3802
3816
|
* `add_proxy`.
|
|
3803
3817
|
*
|
|
3804
|
-
* Removes any corresponding announcement(s).
|
|
3805
|
-
*
|
|
3806
3818
|
* The dispatch origin for this call must be _Signed_.
|
|
3807
3819
|
*
|
|
3808
3820
|
* Parameters:
|
|
@@ -4220,6 +4232,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4220
4232
|
* Emits `SubmissionDepositRefunded`.
|
|
4221
4233
|
**/
|
|
4222
4234
|
refundSubmissionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
4235
|
+
/**
|
|
4236
|
+
* Set or clear metadata of a referendum.
|
|
4237
|
+
*
|
|
4238
|
+
* Parameters:
|
|
4239
|
+
* - `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a
|
|
4240
|
+
* metadata of a finished referendum.
|
|
4241
|
+
* - `index`: The index of a referendum to set or clear metadata for.
|
|
4242
|
+
* - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
|
|
4243
|
+
**/
|
|
4244
|
+
setMetadata: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array, maybeHash: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [u32, Option<H256>]>;
|
|
4223
4245
|
/**
|
|
4224
4246
|
* Propose a referendum on a privileged action.
|
|
4225
4247
|
*
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./cjs/detectPackage.js"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "9.
|
|
23
|
+
"version": "9.14.1",
|
|
24
24
|
"main": "./cjs/index.js",
|
|
25
25
|
"module": "./index.js",
|
|
26
26
|
"types": "./index.d.ts",
|
|
@@ -186,11 +186,11 @@
|
|
|
186
186
|
},
|
|
187
187
|
"dependencies": {
|
|
188
188
|
"@babel/runtime": "^7.20.13",
|
|
189
|
-
"@polkadot/api-base": "9.
|
|
190
|
-
"@polkadot/rpc-augment": "9.
|
|
191
|
-
"@polkadot/types": "9.
|
|
192
|
-
"@polkadot/types-augment": "9.
|
|
193
|
-
"@polkadot/types-codec": "9.
|
|
194
|
-
"@polkadot/util": "^10.
|
|
189
|
+
"@polkadot/api-base": "9.14.1",
|
|
190
|
+
"@polkadot/rpc-augment": "9.14.1",
|
|
191
|
+
"@polkadot/types": "9.14.1",
|
|
192
|
+
"@polkadot/types-augment": "9.14.1",
|
|
193
|
+
"@polkadot/types-codec": "9.14.1",
|
|
194
|
+
"@polkadot/util": "^10.4.1"
|
|
195
195
|
}
|
|
196
196
|
}
|
package/packageInfo.js
CHANGED
|
@@ -7,5 +7,5 @@ export const packageInfo = {
|
|
|
7
7
|
name: '@polkadot/api-augment',
|
|
8
8
|
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
9
9
|
type: 'esm',
|
|
10
|
-
version: '9.
|
|
10
|
+
version: '9.14.1'
|
|
11
11
|
};
|
package/polkadot/consts.d.ts
CHANGED
|
@@ -25,18 +25,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
25
25
|
**/
|
|
26
26
|
[key: string]: Codec;
|
|
27
27
|
};
|
|
28
|
-
authorship: {
|
|
29
|
-
/**
|
|
30
|
-
* The number of blocks back we should accept uncles.
|
|
31
|
-
* This means that we will deal with uncle-parents that are
|
|
32
|
-
* `UncleGenerations + 1` before `now`.
|
|
33
|
-
**/
|
|
34
|
-
uncleGenerations: u32 & AugmentedConst<ApiType>;
|
|
35
|
-
/**
|
|
36
|
-
* Generic const
|
|
37
|
-
**/
|
|
38
|
-
[key: string]: Codec;
|
|
39
|
-
};
|
|
40
28
|
babe: {
|
|
41
29
|
/**
|
|
42
30
|
* The amount of time, in slots, that each epoch should last.
|
|
@@ -342,6 +330,15 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
342
330
|
* Max Authorities in use
|
|
343
331
|
**/
|
|
344
332
|
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
333
|
+
/**
|
|
334
|
+
* The maximum number of entries to keep in the set id to session index mapping.
|
|
335
|
+
*
|
|
336
|
+
* Since the `SetIdSession` map is only used for validating equivocations this
|
|
337
|
+
* value should relate to the bonding duration of whatever staking system is
|
|
338
|
+
* being used (if any). If equivocation handling is not enabled then this value
|
|
339
|
+
* can be zero.
|
|
340
|
+
**/
|
|
341
|
+
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
|
|
345
342
|
/**
|
|
346
343
|
* Generic const
|
|
347
344
|
**/
|
|
@@ -477,18 +474,28 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
477
474
|
/**
|
|
478
475
|
* The maximum number of candidates in a phragmen election.
|
|
479
476
|
*
|
|
480
|
-
* Warning:
|
|
481
|
-
*
|
|
482
|
-
*
|
|
477
|
+
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
478
|
+
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
479
|
+
*
|
|
480
|
+
* When this limit is reached no more candidates are accepted in the election.
|
|
483
481
|
**/
|
|
484
482
|
maxCandidates: u32 & AugmentedConst<ApiType>;
|
|
485
483
|
/**
|
|
486
484
|
* The maximum number of voters to allow in a phragmen election.
|
|
487
485
|
*
|
|
488
|
-
* Warning: This impacts the size of the election which is run onchain.
|
|
486
|
+
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
487
|
+
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
488
|
+
*
|
|
489
489
|
* When the limit is reached the new voters are ignored.
|
|
490
490
|
**/
|
|
491
491
|
maxVoters: u32 & AugmentedConst<ApiType>;
|
|
492
|
+
/**
|
|
493
|
+
* Maximum numbers of votes per voter.
|
|
494
|
+
*
|
|
495
|
+
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
496
|
+
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
497
|
+
**/
|
|
498
|
+
maxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
|
492
499
|
/**
|
|
493
500
|
* Identifier for the elections-phragmen pallet's lock
|
|
494
501
|
**/
|