@polkadot/api-augment 8.4.3-5 → 8.5.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/kusama/query.d.ts CHANGED
@@ -4,7 +4,7 @@ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, W
4
4
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
6
  import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, 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, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
7
+ import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, 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, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
8
8
  import type { Observable } from '@polkadot/types/types';
9
9
  declare module '@polkadot/api-base/types/storage' {
10
10
  interface AugmentedQueries<ApiType extends ApiTypes> {
@@ -157,28 +157,6 @@ declare module '@polkadot/api-base/types/storage' {
157
157
  **/
158
158
  [key: string]: QueryableStorageEntry<ApiType>;
159
159
  };
160
- bagsList: {
161
- /**
162
- * Counter for the related counted storage map
163
- **/
164
- counterForListNodes: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
165
- /**
166
- * A bag stored in storage.
167
- *
168
- * Stores a `Bag` struct, which stores head and tail pointers to itself.
169
- **/
170
- listBags: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBagsListListBag>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
171
- /**
172
- * A single node, within some bag.
173
- *
174
- * Nodes store links forward and back within their respective bags.
175
- **/
176
- listNodes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletBagsListListNode>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
177
- /**
178
- * Generic query
179
- **/
180
- [key: string]: QueryableStorageEntry<ApiType>;
181
- };
182
160
  balances: {
183
161
  /**
184
162
  * The Balances pallet example of storing the balance of an account.
@@ -822,6 +800,95 @@ declare module '@polkadot/api-base/types/storage' {
822
800
  **/
823
801
  [key: string]: QueryableStorageEntry<ApiType>;
824
802
  };
803
+ nominationPools: {
804
+ /**
805
+ * Storage for bonded pools.
806
+ **/
807
+ bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
808
+ /**
809
+ * Counter for the related counted storage map
810
+ **/
811
+ counterForBondedPools: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
812
+ /**
813
+ * Counter for the related counted storage map
814
+ **/
815
+ counterForMetadata: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
816
+ /**
817
+ * Counter for the related counted storage map
818
+ **/
819
+ counterForPoolMembers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
820
+ /**
821
+ * Counter for the related counted storage map
822
+ **/
823
+ counterForReversePoolIdLookup: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
824
+ /**
825
+ * Counter for the related counted storage map
826
+ **/
827
+ counterForRewardPools: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
828
+ /**
829
+ * Counter for the related counted storage map
830
+ **/
831
+ counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
832
+ /**
833
+ * Ever increasing number of all pools created so far.
834
+ **/
835
+ lastPoolId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
836
+ /**
837
+ * Maximum number of members that can exist in the system. If `None`, then the count
838
+ * members are not bound on a system wide basis.
839
+ **/
840
+ maxPoolMembers: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
841
+ /**
842
+ * Maximum number of members that may belong to pool. If `None`, then the count of
843
+ * members is not bound on a per pool basis.
844
+ **/
845
+ maxPoolMembersPerPool: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
846
+ /**
847
+ * Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
848
+ * pools can exist.
849
+ **/
850
+ maxPools: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
851
+ /**
852
+ * Metadata for the pool.
853
+ **/
854
+ metadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
855
+ /**
856
+ * Minimum bond required to create a pool.
857
+ *
858
+ * This is the amount that the depositor must put as their initial stake in the pool, as an
859
+ * indication of "skin in the game".
860
+ **/
861
+ minCreateBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
862
+ /**
863
+ * Minimum amount to bond to join a pool.
864
+ **/
865
+ minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
866
+ /**
867
+ * Active members.
868
+ **/
869
+ poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
870
+ /**
871
+ * A reverse lookup from the pool's account id to its id.
872
+ *
873
+ * This is only used for slashing. In all other instances, the pool id is used, and the
874
+ * accounts are deterministically derived from it.
875
+ **/
876
+ reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
877
+ /**
878
+ * Reward pools. This is where there rewards for each pool accumulate. When a members payout
879
+ * is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
880
+ **/
881
+ rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
882
+ /**
883
+ * Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,
884
+ * hence the name sub-pools. Keyed by the bonded pools account.
885
+ **/
886
+ subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
887
+ /**
888
+ * Generic query
889
+ **/
890
+ [key: string]: QueryableStorageEntry<ApiType>;
891
+ };
825
892
  offences: {
826
893
  /**
827
894
  * A vector of reports of the same kind that happened at the same time slot.
@@ -1106,6 +1173,10 @@ declare module '@polkadot/api-base/types/storage' {
1106
1173
  [key: string]: QueryableStorageEntry<ApiType>;
1107
1174
  };
1108
1175
  paraSessionInfo: {
1176
+ /**
1177
+ * The validator account keys of the validators actively participating in parachain consensus.
1178
+ **/
1179
+ accountKeys: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<AccountId32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1109
1180
  /**
1110
1181
  * Assignment keys for the current session.
1111
1182
  * Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
@@ -1913,6 +1984,28 @@ declare module '@polkadot/api-base/types/storage' {
1913
1984
  **/
1914
1985
  [key: string]: QueryableStorageEntry<ApiType>;
1915
1986
  };
1987
+ voterList: {
1988
+ /**
1989
+ * Counter for the related counted storage map
1990
+ **/
1991
+ counterForListNodes: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1992
+ /**
1993
+ * A bag stored in storage.
1994
+ *
1995
+ * Stores a `Bag` struct, which stores head and tail pointers to itself.
1996
+ **/
1997
+ listBags: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBagsListListBag>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
1998
+ /**
1999
+ * A single node, within some bag.
2000
+ *
2001
+ * Nodes store links forward and back within their respective bags.
2002
+ **/
2003
+ listNodes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletBagsListListNode>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
2004
+ /**
2005
+ * Generic query
2006
+ **/
2007
+ [key: string]: QueryableStorageEntry<ApiType>;
2008
+ };
1916
2009
  xcmPallet: {
1917
2010
  /**
1918
2011
  * The existing asset traps.
package/kusama/tx.d.ts CHANGED
@@ -4,7 +4,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u1
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, Perquintill } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportScheduleMaybeHashed, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
7
+ import type { FrameSupportScheduleMaybeHashed, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, 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, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
8
8
  declare module '@polkadot/api-base/types/submittable' {
9
9
  interface AugmentedSubmittables<ApiType extends ApiTypes> {
10
10
  auctions: {
@@ -113,34 +113,6 @@ declare module '@polkadot/api-base/types/submittable' {
113
113
  **/
114
114
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
115
115
  };
116
- bagsList: {
117
- /**
118
- * Move the caller's Id directly in front of `lighter`.
119
- *
120
- * The dispatch origin for this call must be _Signed_ and can only be called by the Id of
121
- * the account going in front of `lighter`.
122
- *
123
- * Only works if
124
- * - both nodes are within the same bag,
125
- * - and `origin` has a greater `Score` than `lighter`.
126
- **/
127
- putInFrontOf: AugmentedSubmittable<(lighter: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
128
- /**
129
- * Declare that some `dislocated` account has, through rewards or penalties, sufficiently
130
- * changed its score that it should properly fall into a different bag than its current
131
- * one.
132
- *
133
- * Anyone can call this function about any potentially dislocated account.
134
- *
135
- * Will never return an error; if `dislocated` does not exist or doesn't need a rebag, then
136
- * it is a noop and fees are still collected from `origin`.
137
- **/
138
- rebag: AugmentedSubmittable<(dislocated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
139
- /**
140
- * Generic tx
141
- **/
142
- [key: string]: SubmittableExtrinsicFunction<ApiType>;
143
- };
144
116
  balances: {
145
117
  /**
146
118
  * Exactly as `transfer`, except the origin must be root and the source account may be
@@ -2426,6 +2398,201 @@ declare module '@polkadot/api-base/types/submittable' {
2426
2398
  **/
2427
2399
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
2428
2400
  };
2401
+ nominationPools: {
2402
+ /**
2403
+ * Bond `extra` more funds from `origin` into the pool to which they already belong.
2404
+ *
2405
+ * Additional funds can come from either the free balance of the account, of from the
2406
+ * accumulated rewards, see [`BondExtra`].
2407
+ **/
2408
+ bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | {
2409
+ FreeBalance: any;
2410
+ } | {
2411
+ Rewards: any;
2412
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
2413
+ /**
2414
+ * A bonded member can use this to claim their payout based on the rewards that the pool
2415
+ * has accumulated since their last claimed payout (OR since joining if this is there first
2416
+ * time claiming rewards). The payout will be transferred to the member's account.
2417
+ *
2418
+ * The member will earn rewards pro rata based on the members stake vs the sum of the
2419
+ * members in the pools stake. Rewards do not "expire".
2420
+ **/
2421
+ claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2422
+ /**
2423
+ * Create a new delegation pool.
2424
+ *
2425
+ * # Arguments
2426
+ *
2427
+ * * `amount` - The amount of funds to delegate to the pool. This also acts of a sort of
2428
+ * deposit since the pools creator cannot fully unbond funds until the pool is being
2429
+ * destroyed.
2430
+ * * `index` - A disambiguation index for creating the account. Likely only useful when
2431
+ * creating multiple pools in the same extrinsic.
2432
+ * * `root` - The account to set as [`PoolRoles::root`].
2433
+ * * `nominator` - The account to set as the [`PoolRoles::nominator`].
2434
+ * * `state_toggler` - The account to set as the [`PoolRoles::state_toggler`].
2435
+ *
2436
+ * # Note
2437
+ *
2438
+ * In addition to `amount`, the caller will transfer the existential deposit; so the caller
2439
+ * needs at have at least `amount + existential_deposit` transferrable.
2440
+ **/
2441
+ create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: AccountId32 | string | Uint8Array, nominator: AccountId32 | string | Uint8Array, stateToggler: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId32, AccountId32, AccountId32]>;
2442
+ /**
2443
+ * Stake funds with a pool. The amount to bond is transferred from the member to the
2444
+ * pools account and immediately increases the pools bond.
2445
+ *
2446
+ * # Note
2447
+ *
2448
+ * * An account can only be a member of a single pool.
2449
+ * * An account cannot join the same pool multiple times.
2450
+ * * This call will *not* dust the member account, so the member must have at least
2451
+ * `existential deposit + amount` in their account.
2452
+ * * Only a pool with [`PoolState::Open`] can be joined
2453
+ **/
2454
+ join: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
2455
+ nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
2456
+ /**
2457
+ * Call `withdraw_unbonded` for the pools account. This call can be made by any account.
2458
+ *
2459
+ * This is useful if their are too many unlocking chunks to call `unbond`, and some
2460
+ * can be cleared by withdrawing. In the case there are too many unlocking chunks, the user
2461
+ * would probably see an error like `NoMoreChunks` emitted from the staking system when
2462
+ * they attempt to unbond.
2463
+ **/
2464
+ poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
2465
+ /**
2466
+ * Update configurations for the nomination pools. The origin for this call must be
2467
+ * Root.
2468
+ *
2469
+ * # Arguments
2470
+ *
2471
+ * * `min_join_bond` - Set [`MinJoinBond`].
2472
+ * * `min_create_bond` - Set [`MinCreateBond`].
2473
+ * * `max_pools` - Set [`MaxPools`].
2474
+ * * `max_members` - Set [`MaxPoolMembers`].
2475
+ * * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`].
2476
+ **/
2477
+ setConfigs: AugmentedSubmittable<(minJoinBond: PalletNominationPoolsConfigOpU128 | {
2478
+ Noop: any;
2479
+ } | {
2480
+ Set: any;
2481
+ } | {
2482
+ Remove: any;
2483
+ } | string | Uint8Array, minCreateBond: PalletNominationPoolsConfigOpU128 | {
2484
+ Noop: any;
2485
+ } | {
2486
+ Set: any;
2487
+ } | {
2488
+ Remove: any;
2489
+ } | string | Uint8Array, maxPools: PalletNominationPoolsConfigOpU32 | {
2490
+ Noop: any;
2491
+ } | {
2492
+ Set: any;
2493
+ } | {
2494
+ Remove: any;
2495
+ } | string | Uint8Array, maxMembers: PalletNominationPoolsConfigOpU32 | {
2496
+ Noop: any;
2497
+ } | {
2498
+ Set: any;
2499
+ } | {
2500
+ Remove: any;
2501
+ } | string | Uint8Array, maxMembersPerPool: PalletNominationPoolsConfigOpU32 | {
2502
+ Noop: any;
2503
+ } | {
2504
+ Set: any;
2505
+ } | {
2506
+ Remove: any;
2507
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32]>;
2508
+ setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
2509
+ setState: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, state: PalletNominationPoolsPoolState | 'Open' | 'Blocked' | 'Destroying' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsPoolState]>;
2510
+ /**
2511
+ * Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It
2512
+ * implicitly collects the rewards one last time, since not doing so would mean some
2513
+ * rewards would go forfeited.
2514
+ *
2515
+ * Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
2516
+ * account).
2517
+ *
2518
+ * # Conditions for a permissionless dispatch.
2519
+ *
2520
+ * * The pool is blocked and the caller is either the root or state-toggler. This is
2521
+ * refereed to as a kick.
2522
+ * * The pool is destroying and the member is not the depositor.
2523
+ * * The pool is destroying, the member is the depositor and no other members are in the
2524
+ * pool.
2525
+ *
2526
+ * ## Conditions for permissioned dispatch (i.e. the caller is also the
2527
+ * `member_account`):
2528
+ *
2529
+ * * The caller is not the depositor.
2530
+ * * The caller is the depositor, the pool is destroying and no other members are in the
2531
+ * pool.
2532
+ *
2533
+ * # Note
2534
+ *
2535
+ * If there are too many unlocking chunks to unbond with the pool account,
2536
+ * [`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks. If
2537
+ * there are too many unlocking chunks, the result of this call will likely be the
2538
+ * `NoMoreChunks` error from the staking system.
2539
+ **/
2540
+ unbond: AugmentedSubmittable<(memberAccount: AccountId32 | string | Uint8Array, unbondingPoints: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Compact<u128>]>;
2541
+ /**
2542
+ * Update the roles of the pool.
2543
+ *
2544
+ * The root is the only entity that can change any of the roles, including itself,
2545
+ * excluding the depositor, who can never change.
2546
+ *
2547
+ * It emits an event, notifying UIs of the role change. This event is quite relevant to
2548
+ * most pool members and they should be informed of changes to pool roles.
2549
+ **/
2550
+ updateRoles: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newRoot: PalletNominationPoolsConfigOpAccountId32 | {
2551
+ Noop: any;
2552
+ } | {
2553
+ Set: any;
2554
+ } | {
2555
+ Remove: any;
2556
+ } | string | Uint8Array, newNominator: PalletNominationPoolsConfigOpAccountId32 | {
2557
+ Noop: any;
2558
+ } | {
2559
+ Set: any;
2560
+ } | {
2561
+ Remove: any;
2562
+ } | string | Uint8Array, newStateToggler: PalletNominationPoolsConfigOpAccountId32 | {
2563
+ Noop: any;
2564
+ } | {
2565
+ Set: any;
2566
+ } | {
2567
+ Remove: any;
2568
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32]>;
2569
+ /**
2570
+ * Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an
2571
+ * error is returned.
2572
+ *
2573
+ * Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
2574
+ * account).
2575
+ *
2576
+ * # Conditions for a permissionless dispatch
2577
+ *
2578
+ * * The pool is in destroy mode and the target is not the depositor.
2579
+ * * The target is the depositor and they are the only member in the sub pools.
2580
+ * * The pool is blocked and the caller is either the root or state-toggler.
2581
+ *
2582
+ * # Conditions for permissioned dispatch
2583
+ *
2584
+ * * The caller is the target and they are not the depositor.
2585
+ *
2586
+ * # Note
2587
+ *
2588
+ * If the target is the depositor, the pool will be destroyed.
2589
+ **/
2590
+ withdrawUnbonded: AugmentedSubmittable<(memberAccount: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
2591
+ /**
2592
+ * Generic tx
2593
+ **/
2594
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2595
+ };
2429
2596
  paraInclusion: {
2430
2597
  /**
2431
2598
  * Generic tx
@@ -4833,6 +5000,36 @@ declare module '@polkadot/api-base/types/submittable' {
4833
5000
  **/
4834
5001
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
4835
5002
  };
5003
+ voterList: {
5004
+ /**
5005
+ * Move the caller's Id directly in front of `lighter`.
5006
+ *
5007
+ * The dispatch origin for this call must be _Signed_ and can only be called by the Id of
5008
+ * the account going in front of `lighter`.
5009
+ *
5010
+ * Only works if
5011
+ * - both nodes are within the same bag,
5012
+ * - and `origin` has a greater `Score` than `lighter`.
5013
+ **/
5014
+ putInFrontOf: AugmentedSubmittable<(lighter: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
5015
+ /**
5016
+ * Declare that some `dislocated` account has, through rewards or penalties, sufficiently
5017
+ * changed its score that it should properly fall into a different bag than its current
5018
+ * one.
5019
+ *
5020
+ * Anyone can call this function about any potentially dislocated account.
5021
+ *
5022
+ * Will always update the stored score of `dislocated` to the correct score, based on
5023
+ * `ScoreProvider`.
5024
+ *
5025
+ * If `dislocated` does not exists, it returns an error.
5026
+ **/
5027
+ rebag: AugmentedSubmittable<(dislocated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
5028
+ /**
5029
+ * Generic tx
5030
+ **/
5031
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
5032
+ };
4836
5033
  xcmPallet: {
4837
5034
  /**
4838
5035
  * Execute an XCM message from a local, signed, origin.
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "8.4.3-5",
23
+ "version": "8.5.1",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
@@ -170,12 +170,12 @@
170
170
  }
171
171
  },
172
172
  "dependencies": {
173
- "@babel/runtime": "^7.17.9",
174
- "@polkadot/api-base": "8.4.3-5",
175
- "@polkadot/rpc-augment": "8.4.3-5",
176
- "@polkadot/types": "8.4.3-5",
177
- "@polkadot/types-augment": "8.4.3-5",
178
- "@polkadot/types-codec": "8.4.3-5",
173
+ "@babel/runtime": "^7.18.0",
174
+ "@polkadot/api-base": "8.5.1",
175
+ "@polkadot/rpc-augment": "8.5.1",
176
+ "@polkadot/types": "8.5.1",
177
+ "@polkadot/types-augment": "8.5.1",
178
+ "@polkadot/types-codec": "8.5.1",
179
179
  "@polkadot/util": "^9.2.1"
180
180
  }
181
181
  }
package/packageInfo.js CHANGED
@@ -5,5 +5,5 @@ export const packageInfo = {
5
5
  name: '@polkadot/api-augment',
6
6
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
7
7
  type: 'esm',
8
- version: '8.4.3-5'
8
+ version: '8.5.1'
9
9
  };
@@ -59,58 +59,6 @@ declare module '@polkadot/api-base/types/consts' {
59
59
  **/
60
60
  [key: string]: Codec;
61
61
  };
62
- bagsList: {
63
- /**
64
- * The list of thresholds separating the various bags.
65
- *
66
- * Ids are separated into unsorted bags according to their score. This specifies the
67
- * thresholds separating the bags. An id's bag is the largest bag for which the id's score
68
- * is less than or equal to its upper threshold.
69
- *
70
- * When ids are iterated, higher bags are iterated completely before lower bags. This means
71
- * that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
72
- * score, but peer ids within a particular bag are sorted in insertion order.
73
- *
74
- * # Expressing the constant
75
- *
76
- * This constant must be sorted in strictly increasing order. Duplicate items are not
77
- * permitted.
78
- *
79
- * There is an implied upper limit of `Score::MAX`; that value does not need to be
80
- * specified within the bag. For any two threshold lists, if one ends with
81
- * `Score::MAX`, the other one does not, and they are otherwise equal, the two
82
- * lists will behave identically.
83
- *
84
- * # Calculation
85
- *
86
- * It is recommended to generate the set of thresholds in a geometric series, such that
87
- * there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
88
- * constant_ratio).max(threshold[k] + 1)` for all `k`.
89
- *
90
- * The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
91
- *
92
- * # Examples
93
- *
94
- * - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
95
- * iteration is strictly in insertion order.
96
- * - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
97
- * the procedure given above, then the constant ratio is equal to 2.
98
- * - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
99
- * the procedure given above, then the constant ratio is approximately equal to 1.248.
100
- * - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
101
- * into bag 0, an id with score 2 will fall into bag 1, etc.
102
- *
103
- * # Migration
104
- *
105
- * In the event that this list ever changes, a copy of the old bags list must be retained.
106
- * With that `List::migrate` can be called, which will perform the appropriate migration.
107
- **/
108
- bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
109
- /**
110
- * Generic const
111
- **/
112
- [key: string]: Codec;
113
- };
114
62
  balances: {
115
63
  /**
116
64
  * The minimum amount required to keep an account open.
@@ -300,20 +248,6 @@ declare module '@polkadot/api-base/types/consts' {
300
248
  * take place over multiple blocks.
301
249
  **/
302
250
  maxElectingVoters: u32 & AugmentedConst<ApiType>;
303
- /**
304
- * Maximum length (bytes) that the mined solution should consume.
305
- *
306
- * The miner will ensure that the total length of the unsigned solution will not exceed
307
- * this value.
308
- **/
309
- minerMaxLength: u32 & AugmentedConst<ApiType>;
310
- /**
311
- * Maximum weight that the miner should consume.
312
- *
313
- * The miner will ensure that the total weight of the unsigned solution will not exceed
314
- * this value, based on [`WeightInfo::submit_unsigned`].
315
- **/
316
- minerMaxWeight: u64 & AugmentedConst<ApiType>;
317
251
  /**
318
252
  * The priority of the unsigned transaction submitted in the unsigned-phase
319
253
  **/
@@ -354,7 +288,9 @@ declare module '@polkadot/api-base/types/consts' {
354
288
  /**
355
289
  * Maximum weight of a signed solution.
356
290
  *
357
- * This should probably be similar to [`Config::MinerMaxWeight`].
291
+ * If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of
292
+ * this pallet), then [`MinerConfig::solution_weight`] is used to compare against
293
+ * this value.
358
294
  **/
359
295
  signedMaxWeight: u64 & AugmentedConst<ApiType>;
360
296
  /**
@@ -808,5 +744,57 @@ declare module '@polkadot/api-base/types/consts' {
808
744
  **/
809
745
  [key: string]: Codec;
810
746
  };
747
+ voterList: {
748
+ /**
749
+ * The list of thresholds separating the various bags.
750
+ *
751
+ * Ids are separated into unsorted bags according to their score. This specifies the
752
+ * thresholds separating the bags. An id's bag is the largest bag for which the id's score
753
+ * is less than or equal to its upper threshold.
754
+ *
755
+ * When ids are iterated, higher bags are iterated completely before lower bags. This means
756
+ * that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
757
+ * score, but peer ids within a particular bag are sorted in insertion order.
758
+ *
759
+ * # Expressing the constant
760
+ *
761
+ * This constant must be sorted in strictly increasing order. Duplicate items are not
762
+ * permitted.
763
+ *
764
+ * There is an implied upper limit of `Score::MAX`; that value does not need to be
765
+ * specified within the bag. For any two threshold lists, if one ends with
766
+ * `Score::MAX`, the other one does not, and they are otherwise equal, the two
767
+ * lists will behave identically.
768
+ *
769
+ * # Calculation
770
+ *
771
+ * It is recommended to generate the set of thresholds in a geometric series, such that
772
+ * there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
773
+ * constant_ratio).max(threshold[k] + 1)` for all `k`.
774
+ *
775
+ * The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
776
+ *
777
+ * # Examples
778
+ *
779
+ * - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
780
+ * iteration is strictly in insertion order.
781
+ * - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
782
+ * the procedure given above, then the constant ratio is equal to 2.
783
+ * - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
784
+ * the procedure given above, then the constant ratio is approximately equal to 1.248.
785
+ * - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
786
+ * into bag 0, an id with score 2 will fall into bag 1, etc.
787
+ *
788
+ * # Migration
789
+ *
790
+ * In the event that this list ever changes, a copy of the old bags list must be retained.
791
+ * With that `List::migrate` can be called, which will perform the appropriate migration.
792
+ **/
793
+ bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
794
+ /**
795
+ * Generic const
796
+ **/
797
+ [key: string]: Codec;
798
+ };
811
799
  }
812
800
  }