@polkadot/api-augment 7.12.2-1 → 7.12.2-4

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.
@@ -63,23 +63,23 @@ declare module '@polkadot/api-base/types/consts' {
63
63
  /**
64
64
  * The list of thresholds separating the various bags.
65
65
  *
66
- * Ids are separated into unsorted bags according to their vote weight. This specifies the
67
- * thresholds separating the bags. An id's bag is the largest bag for which the id's weight
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
68
  * is less than or equal to its upper threshold.
69
69
  *
70
70
  * When ids are iterated, higher bags are iterated completely before lower bags. This means
71
- * that iteration is _semi-sorted_: ids of higher weight tend to come before ids of lower
72
- * weight, but peer ids within a particular bag are sorted in insertion order.
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
73
  *
74
74
  * # Expressing the constant
75
75
  *
76
76
  * This constant must be sorted in strictly increasing order. Duplicate items are not
77
77
  * permitted.
78
78
  *
79
- * There is an implied upper limit of `VoteWeight::MAX`; that value does not need to be
79
+ * There is an implied upper limit of `Score::MAX`; that value does not need to be
80
80
  * specified within the bag. For any two threshold lists, if one ends with
81
- * `VoteWeight::MAX`, the other one does not, and they are otherwise equal, the two lists
82
- * will behave identically.
81
+ * `Score::MAX`, the other one does not, and they are otherwise equal, the two
82
+ * lists will behave identically.
83
83
  *
84
84
  * # Calculation
85
85
  *
@@ -97,8 +97,8 @@ declare module '@polkadot/api-base/types/consts' {
97
97
  * the procedure given above, then the constant ratio is equal to 2.
98
98
  * - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
99
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 weight 0 or 1 will fall
101
- * into bag 0, an id with weight 2 will fall into bag 1, etc.
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
102
  *
103
103
  * # Migration
104
104
  *
@@ -167,6 +167,25 @@ declare module '@polkadot/api-base/types/consts' {
167
167
  **/
168
168
  [key: string]: Codec;
169
169
  };
170
+ childBounties: {
171
+ /**
172
+ * Percentage of child-bounty value to be reserved as curator deposit
173
+ * when curator fee is zero.
174
+ **/
175
+ childBountyCuratorDepositBase: Permill & AugmentedConst<ApiType>;
176
+ /**
177
+ * Minimum value for a child-bounty.
178
+ **/
179
+ childBountyValueMinimum: u128 & AugmentedConst<ApiType>;
180
+ /**
181
+ * Maximum number of child-bounties that can be added to a parent bounty.
182
+ **/
183
+ maxActiveChildBountyCount: u32 & AugmentedConst<ApiType>;
184
+ /**
185
+ * Generic const
186
+ **/
187
+ [key: string]: Codec;
188
+ };
170
189
  claims: {
171
190
  prefix: Bytes & AugmentedConst<ApiType>;
172
191
  /**
@@ -93,7 +93,7 @@ declare module '@polkadot/api-base/types/errors' {
93
93
  **/
94
94
  IdNotFound: AugmentedError<ApiType>;
95
95
  /**
96
- * An Id does not have a greater vote weight than another Id.
96
+ * An Id does not have a greater score than another Id.
97
97
  **/
98
98
  NotHeavier: AugmentedError<ApiType>;
99
99
  /**
@@ -194,6 +194,24 @@ declare module '@polkadot/api-base/types/errors' {
194
194
  **/
195
195
  [key: string]: AugmentedError<ApiType>;
196
196
  };
197
+ childBounties: {
198
+ /**
199
+ * The bounty balance is not enough to add new child-bounty.
200
+ **/
201
+ InsufficientBountyBalance: AugmentedError<ApiType>;
202
+ /**
203
+ * The parent bounty is not in active state.
204
+ **/
205
+ ParentBountyNotActive: AugmentedError<ApiType>;
206
+ /**
207
+ * Number of child-bounties exceeds limit `MaxActiveChildBountyCount`.
208
+ **/
209
+ TooManyChildBounties: AugmentedError<ApiType>;
210
+ /**
211
+ * Generic error
212
+ **/
213
+ [key: string]: AugmentedError<ApiType>;
214
+ };
197
215
  claims: {
198
216
  /**
199
217
  * Invalid Ethereum signature.
@@ -3,7 +3,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
3
3
  import type { ITuple } from '@polkadot/types-codec/types';
4
4
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
5
5
  import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
6
- import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, KusamaRuntimeProxyType, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV1CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
6
+ import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, KusamaRuntimeProxyType, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
7
7
  declare module '@polkadot/api-base/types/events' {
8
8
  interface AugmentedEvents<ApiType extends ApiTypes> {
9
9
  auctions: {
@@ -139,6 +139,28 @@ declare module '@polkadot/api-base/types/events' {
139
139
  **/
140
140
  [key: string]: AugmentedEvent<ApiType>;
141
141
  };
142
+ childBounties: {
143
+ /**
144
+ * A child-bounty is added.
145
+ **/
146
+ Added: AugmentedEvent<ApiType, [u32, u32]>;
147
+ /**
148
+ * A child-bounty is awarded to a beneficiary.
149
+ **/
150
+ Awarded: AugmentedEvent<ApiType, [u32, u32, AccountId32]>;
151
+ /**
152
+ * A child-bounty is cancelled.
153
+ **/
154
+ Canceled: AugmentedEvent<ApiType, [u32, u32]>;
155
+ /**
156
+ * A child-bounty is claimed by beneficiary.
157
+ **/
158
+ Claimed: AugmentedEvent<ApiType, [u32, u32, u128, AccountId32]>;
159
+ /**
160
+ * Generic event
161
+ **/
162
+ [key: string]: AugmentedEvent<ApiType>;
163
+ };
142
164
  claims: {
143
165
  /**
144
166
  * Someone claimed some DOTs. `[who, ethereum_address, amount]`
@@ -535,15 +557,15 @@ declare module '@polkadot/api-base/types/events' {
535
557
  /**
536
558
  * A candidate was backed. `[candidate, head_data]`
537
559
  **/
538
- CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV1CandidateReceipt, Bytes, u32, u32]>;
560
+ CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV2CandidateReceipt, Bytes, u32, u32]>;
539
561
  /**
540
562
  * A candidate was included. `[candidate, head_data]`
541
563
  **/
542
- CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV1CandidateReceipt, Bytes, u32, u32]>;
564
+ CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV2CandidateReceipt, Bytes, u32, u32]>;
543
565
  /**
544
566
  * A candidate timed out. `[candidate, head_data]`
545
567
  **/
546
- CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV1CandidateReceipt, Bytes, u32]>;
568
+ CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV2CandidateReceipt, Bytes, u32]>;
547
569
  /**
548
570
  * Generic event
549
571
  **/
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, 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, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1DisputeState, PolkadotPrimitivesV1ScrapedOnChainVotes, PolkadotPrimitivesV1UpgradeGoAhead, PolkadotPrimitivesV1UpgradeRestriction, PolkadotPrimitivesV2SessionInfo, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, 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, 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, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, 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> {
@@ -253,6 +253,33 @@ declare module '@polkadot/api-base/types/storage' {
253
253
  **/
254
254
  [key: string]: QueryableStorageEntry<ApiType>;
255
255
  };
256
+ childBounties: {
257
+ /**
258
+ * Child-bounties that have been added.
259
+ **/
260
+ childBounties: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletChildBountiesChildBounty>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
261
+ /**
262
+ * Number of total child bounties.
263
+ **/
264
+ childBountyCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
265
+ /**
266
+ * The description of each child-bounty.
267
+ **/
268
+ childBountyDescriptions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
269
+ /**
270
+ * The cumulative child-bounty curator fee for each parent bounty.
271
+ **/
272
+ childrenCuratorFees: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
273
+ /**
274
+ * Number of child-bounties per parent bounty.
275
+ * Map of parent bounty index to number of child bounties.
276
+ **/
277
+ parentChildBounties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
278
+ /**
279
+ * Generic query
280
+ **/
281
+ [key: string]: QueryableStorageEntry<ApiType>;
282
+ };
256
283
  claims: {
257
284
  claims: AugmentedQuery<ApiType, (arg: EthereumAddress | string | Uint8Array) => Observable<Option<u128>>, [EthereumAddress]> & QueryableStorageEntry<ApiType, [EthereumAddress]>;
258
285
  /**
@@ -836,7 +863,7 @@ declare module '@polkadot/api-base/types/storage' {
836
863
  /**
837
864
  * The commitments of candidates pending availability, by `ParaId`.
838
865
  **/
839
- pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV1CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
866
+ pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
840
867
  /**
841
868
  * Generic query
842
869
  **/
@@ -855,7 +882,7 @@ declare module '@polkadot/api-base/types/storage' {
855
882
  /**
856
883
  * Scraped on chain data for extracting resolved disputes as well as backing votes.
857
884
  **/
858
- onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV1ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
885
+ onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV2ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
859
886
  /**
860
887
  * Generic query
861
888
  **/
@@ -973,7 +1000,7 @@ declare module '@polkadot/api-base/types/storage' {
973
1000
  * NOTE that this field is used by parachains via merkle storage proofs, therefore changing
974
1001
  * the format will require migration of parachains.
975
1002
  **/
976
- upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV1UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1003
+ upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
977
1004
  /**
978
1005
  * This is used by the relay-chain to communicate that there are restrictions for performing
979
1006
  * an upgrade for this parachain.
@@ -985,7 +1012,7 @@ declare module '@polkadot/api-base/types/storage' {
985
1012
  * NOTE that this field is used by parachains via merkle storage proofs, therefore changing
986
1013
  * the format will require migration of parachains.
987
1014
  **/
988
- upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV1UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1015
+ upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
989
1016
  /**
990
1017
  * Generic query
991
1018
  **/
@@ -1002,7 +1029,7 @@ declare module '@polkadot/api-base/types/storage' {
1002
1029
  * * The number of parachains and parathread multiplexers
1003
1030
  * * The number of validators divided by `configuration.max_validators_per_core`.
1004
1031
  **/
1005
- availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<Option<PolkadotPrimitivesV1CoreOccupied>>>, []> & QueryableStorageEntry<ApiType, []>;
1032
+ availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<Option<PolkadotPrimitivesV2CoreOccupied>>>, []> & QueryableStorageEntry<ApiType, []>;
1006
1033
  /**
1007
1034
  * An index used to ensure that only one claim on a parathread exists in the queue or is
1008
1035
  * currently being handled by an occupied core.
@@ -1053,7 +1080,7 @@ declare module '@polkadot/api-base/types/storage' {
1053
1080
  /**
1054
1081
  * All ongoing or concluded disputes for the last several sessions.
1055
1082
  **/
1056
- disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV1DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
1083
+ disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV2DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
1057
1084
  /**
1058
1085
  * Whether the chain is frozen. Starts as `None`. When this is `Some`,
1059
1086
  * the chain will not accept any new parachain blocks for backing or inclusion,
@@ -1090,7 +1117,7 @@ declare module '@polkadot/api-base/types/storage' {
1090
1117
  * Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
1091
1118
  * When in doubt, use `Sessions` API instead.
1092
1119
  **/
1093
- assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV1AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
1120
+ assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV2AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
1094
1121
  /**
1095
1122
  * The earliest session for which previous session info is stored.
1096
1123
  **/
@@ -1116,7 +1143,7 @@ declare module '@polkadot/api-base/types/storage' {
1116
1143
  * The parachain attestation keys of the validators actively participating in parachain consensus.
1117
1144
  * This should be the same length as `ActiveValidatorIndices`.
1118
1145
  **/
1119
- activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV0ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
1146
+ activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV2ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
1120
1147
  /**
1121
1148
  * The current session index.
1122
1149
  **/
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, 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, PolkadotPrimitivesV0ValidatorAppSignature, PolkadotPrimitivesV1InherentData, PolkadotPrimitivesV2PvfCheckStatement, 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, 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: {
@@ -122,12 +122,12 @@ declare module '@polkadot/api-base/types/submittable' {
122
122
  *
123
123
  * Only works if
124
124
  * - both nodes are within the same bag,
125
- * - and `origin` has a greater `VoteWeight` than `lighter`.
125
+ * - and `origin` has a greater `Score` than `lighter`.
126
126
  **/
127
127
  putInFrontOf: AugmentedSubmittable<(lighter: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
128
128
  /**
129
129
  * Declare that some `dislocated` account has, through rewards or penalties, sufficiently
130
- * changed its weight that it should properly fall into a different bag than its current
130
+ * changed its score that it should properly fall into a different bag than its current
131
131
  * one.
132
132
  *
133
133
  * Anyone can call this function about any potentially dislocated account.
@@ -446,6 +446,195 @@ declare module '@polkadot/api-base/types/submittable' {
446
446
  **/
447
447
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
448
448
  };
449
+ childBounties: {
450
+ /**
451
+ * Accept the curator role for the child-bounty.
452
+ *
453
+ * The dispatch origin for this call must be the curator of this
454
+ * child-bounty.
455
+ *
456
+ * A deposit will be reserved from the curator and refund upon
457
+ * successful payout or cancellation.
458
+ *
459
+ * Fee for curator is deducted from curator fee of parent bounty.
460
+ *
461
+ * Parent bounty must be in active state, for this child-bounty call to
462
+ * work.
463
+ *
464
+ * Child-bounty must be in "CuratorProposed" state, for processing the
465
+ * call. And state of child-bounty is moved to "Active" on successful
466
+ * call completion.
467
+ *
468
+ * - `parent_bounty_id`: Index of parent bounty.
469
+ * - `child_bounty_id`: Index of child bounty.
470
+ **/
471
+ acceptCurator: AugmentedSubmittable<(parentBountyId: Compact<u32> | AnyNumber | Uint8Array, childBountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
472
+ /**
473
+ * Add a new child-bounty.
474
+ *
475
+ * The dispatch origin for this call must be the curator of parent
476
+ * bounty and the parent bounty must be in "active" state.
477
+ *
478
+ * Child-bounty gets added successfully & fund gets transferred from
479
+ * parent bounty to child-bounty account, if parent bounty has enough
480
+ * funds, else the call fails.
481
+ *
482
+ * Upper bound to maximum number of active child-bounties that can be
483
+ * added are managed via runtime trait config
484
+ * [`Config::MaxActiveChildBountyCount`].
485
+ *
486
+ * If the call is success, the status of child-bounty is updated to
487
+ * "Added".
488
+ *
489
+ * - `parent_bounty_id`: Index of parent bounty for which child-bounty is being added.
490
+ * - `value`: Value for executing the proposal.
491
+ * - `description`: Text description for the child-bounty.
492
+ **/
493
+ addChildBounty: AugmentedSubmittable<(parentBountyId: Compact<u32> | AnyNumber | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>, Bytes]>;
494
+ /**
495
+ * Award child-bounty to a beneficiary.
496
+ *
497
+ * The beneficiary will be able to claim the funds after a delay.
498
+ *
499
+ * The dispatch origin for this call must be the master curator or
500
+ * curator of this child-bounty.
501
+ *
502
+ * Parent bounty must be in active state, for this child-bounty call to
503
+ * work.
504
+ *
505
+ * Child-bounty must be in active state, for processing the call. And
506
+ * state of child-bounty is moved to "PendingPayout" on successful call
507
+ * completion.
508
+ *
509
+ * - `parent_bounty_id`: Index of parent bounty.
510
+ * - `child_bounty_id`: Index of child bounty.
511
+ * - `beneficiary`: Beneficiary account.
512
+ **/
513
+ awardChildBounty: AugmentedSubmittable<(parentBountyId: Compact<u32> | AnyNumber | Uint8Array, childBountyId: Compact<u32> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
514
+ Id: any;
515
+ } | {
516
+ Index: any;
517
+ } | {
518
+ Raw: any;
519
+ } | {
520
+ Address32: any;
521
+ } | {
522
+ Address20: any;
523
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>, MultiAddress]>;
524
+ /**
525
+ * Claim the payout from an awarded child-bounty after payout delay.
526
+ *
527
+ * The dispatch origin for this call may be any signed origin.
528
+ *
529
+ * Call works independent of parent bounty state, No need for parent
530
+ * bounty to be in active state.
531
+ *
532
+ * The Beneficiary is paid out with agreed bounty value. Curator fee is
533
+ * paid & curator deposit is unreserved.
534
+ *
535
+ * Child-bounty must be in "PendingPayout" state, for processing the
536
+ * call. And instance of child-bounty is removed from the state on
537
+ * successful call completion.
538
+ *
539
+ * - `parent_bounty_id`: Index of parent bounty.
540
+ * - `child_bounty_id`: Index of child bounty.
541
+ **/
542
+ claimChildBounty: AugmentedSubmittable<(parentBountyId: Compact<u32> | AnyNumber | Uint8Array, childBountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
543
+ /**
544
+ * Cancel a proposed or active child-bounty. Child-bounty account funds
545
+ * are transferred to parent bounty account. The child-bounty curator
546
+ * deposit may be unreserved if possible.
547
+ *
548
+ * The dispatch origin for this call must be either parent curator or
549
+ * `T::RejectOrigin`.
550
+ *
551
+ * If the state of child-bounty is `Active`, curator deposit is
552
+ * unreserved.
553
+ *
554
+ * If the state of child-bounty is `PendingPayout`, call fails &
555
+ * returns `PendingPayout` error.
556
+ *
557
+ * For the origin other than T::RejectOrigin, parent bounty must be in
558
+ * active state, for this child-bounty call to work. For origin
559
+ * T::RejectOrigin execution is forced.
560
+ *
561
+ * Instance of child-bounty is removed from the state on successful
562
+ * call completion.
563
+ *
564
+ * - `parent_bounty_id`: Index of parent bounty.
565
+ * - `child_bounty_id`: Index of child bounty.
566
+ **/
567
+ closeChildBounty: AugmentedSubmittable<(parentBountyId: Compact<u32> | AnyNumber | Uint8Array, childBountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
568
+ /**
569
+ * Propose curator for funded child-bounty.
570
+ *
571
+ * The dispatch origin for this call must be curator of parent bounty.
572
+ *
573
+ * Parent bounty must be in active state, for this child-bounty call to
574
+ * work.
575
+ *
576
+ * Child-bounty must be in "Added" state, for processing the call. And
577
+ * state of child-bounty is moved to "CuratorProposed" on successful
578
+ * call completion.
579
+ *
580
+ * - `parent_bounty_id`: Index of parent bounty.
581
+ * - `child_bounty_id`: Index of child bounty.
582
+ * - `curator`: Address of child-bounty curator.
583
+ * - `fee`: payment fee to child-bounty curator for execution.
584
+ **/
585
+ proposeCurator: AugmentedSubmittable<(parentBountyId: Compact<u32> | AnyNumber | Uint8Array, childBountyId: Compact<u32> | AnyNumber | Uint8Array, curator: MultiAddress | {
586
+ Id: any;
587
+ } | {
588
+ Index: any;
589
+ } | {
590
+ Raw: any;
591
+ } | {
592
+ Address32: any;
593
+ } | {
594
+ Address20: any;
595
+ } | string | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>, MultiAddress, Compact<u128>]>;
596
+ /**
597
+ * Unassign curator from a child-bounty.
598
+ *
599
+ * The dispatch origin for this call can be either `RejectOrigin`, or
600
+ * the curator of the parent bounty, or any signed origin.
601
+ *
602
+ * For the origin other than T::RejectOrigin and the child-bounty
603
+ * curator, parent-bounty must be in active state, for this call to
604
+ * work. We allow child-bounty curator and T::RejectOrigin to execute
605
+ * this call irrespective of the parent-bounty state.
606
+ *
607
+ * If this function is called by the `RejectOrigin` or the
608
+ * parent-bounty curator, we assume that the child-bounty curator is
609
+ * malicious or inactive. As a result, child-bounty curator deposit is
610
+ * slashed.
611
+ *
612
+ * If the origin is the child-bounty curator, we take this as a sign
613
+ * that they are unable to do their job, and are willingly giving up.
614
+ * We could slash the deposit, but for now we allow them to unreserve
615
+ * their deposit and exit without issue. (We may want to change this if
616
+ * it is abused.)
617
+ *
618
+ * Finally, the origin can be anyone iff the child-bounty curator is
619
+ * "inactive". Expiry update due of parent bounty is used to estimate
620
+ * inactive state of child-bounty curator.
621
+ *
622
+ * This allows anyone in the community to call out that a child-bounty
623
+ * curator is not doing their due diligence, and we should pick a new
624
+ * one. In this case the child-bounty curator deposit is slashed.
625
+ *
626
+ * State of child-bounty is moved to Added state on successful call
627
+ * completion.
628
+ *
629
+ * - `parent_bounty_id`: Index of parent bounty.
630
+ * - `child_bounty_id`: Index of child bounty.
631
+ **/
632
+ unassignCurator: AugmentedSubmittable<(parentBountyId: Compact<u32> | AnyNumber | Uint8Array, childBountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
633
+ /**
634
+ * Generic tx
635
+ **/
636
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
637
+ };
449
638
  claims: {
450
639
  /**
451
640
  * Attest to a statement, needed to finalize the claims process.
@@ -2256,12 +2445,12 @@ declare module '@polkadot/api-base/types/submittable' {
2256
2445
  /**
2257
2446
  * Enter the paras inherent. This will process bitfields and backed candidates.
2258
2447
  **/
2259
- enter: AugmentedSubmittable<(data: PolkadotPrimitivesV1InherentData | {
2448
+ enter: AugmentedSubmittable<(data: PolkadotPrimitivesV2InherentData | {
2260
2449
  bitfields?: any;
2261
2450
  backedCandidates?: any;
2262
2451
  disputes?: any;
2263
2452
  parentHeader?: any;
2264
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV1InherentData]>;
2453
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV2InherentData]>;
2265
2454
  /**
2266
2455
  * Generic tx
2267
2456
  **/
@@ -2315,7 +2504,7 @@ declare module '@polkadot/api-base/types/submittable' {
2315
2504
  subject?: any;
2316
2505
  sessionIndex?: any;
2317
2506
  validatorIndex?: any;
2318
- } | string | Uint8Array, signature: PolkadotPrimitivesV0ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV0ValidatorAppSignature]>;
2507
+ } | string | Uint8Array, signature: PolkadotPrimitivesV2ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature]>;
2319
2508
  /**
2320
2509
  * Remove the validation code from the storage iff the reference count is 0.
2321
2510
  *
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./detectPackage.cjs"
21
21
  ],
22
22
  "type": "module",
23
- "version": "7.12.2-1",
23
+ "version": "7.12.2-4",
24
24
  "main": "index.cjs",
25
25
  "module": "index.js",
26
26
  "types": "index.d.ts",
@@ -166,11 +166,11 @@
166
166
  },
167
167
  "dependencies": {
168
168
  "@babel/runtime": "^7.17.7",
169
- "@polkadot/api-base": "7.12.2-1",
170
- "@polkadot/rpc-augment": "7.12.2-1",
171
- "@polkadot/types": "7.12.2-1",
172
- "@polkadot/types-augment": "7.12.2-1",
173
- "@polkadot/types-codec": "7.12.2-1",
169
+ "@polkadot/api-base": "7.12.2-4",
170
+ "@polkadot/rpc-augment": "7.12.2-4",
171
+ "@polkadot/types": "7.12.2-4",
172
+ "@polkadot/types-augment": "7.12.2-4",
173
+ "@polkadot/types-codec": "7.12.2-4",
174
174
  "@polkadot/util": "^8.5.1"
175
175
  }
176
176
  }
package/packageInfo.cjs CHANGED
@@ -11,6 +11,6 @@ const packageInfo = {
11
11
  name: '@polkadot/api-augment',
12
12
  path: typeof __dirname === 'string' ? __dirname : 'auto',
13
13
  type: 'cjs',
14
- version: '7.12.2-1'
14
+ version: '7.12.2-4'
15
15
  };
16
16
  exports.packageInfo = packageInfo;
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 : 'auto',
7
7
  type: 'esm',
8
- version: '7.12.2-1'
8
+ version: '7.12.2-4'
9
9
  };