@polkadot/api-augment 7.12.2-3 → 7.12.2-6
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/consts.d.ts +28 -9
- package/kusama/errors.d.ts +19 -1
- package/kusama/events.d.ts +26 -4
- package/kusama/query.d.ts +36 -9
- package/kusama/tx.d.ts +195 -6
- package/package.json +6 -6
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +28 -9
- package/polkadot/errors.d.ts +19 -1
- package/polkadot/events.d.ts +26 -4
- package/polkadot/query.d.ts +36 -9
- package/polkadot/tx.d.ts +195 -6
- package/substrate/consts.d.ts +9 -9
- package/substrate/errors.d.ts +6 -2
- package/substrate/events.d.ts +4 -0
- package/substrate/query.d.ts +29 -6
- package/substrate/tx.d.ts +53 -40
package/polkadot/consts.d.ts
CHANGED
|
@@ -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
|
|
67
|
-
* thresholds separating the bags. An id's bag is the largest bag for which the id's
|
|
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
|
|
72
|
-
*
|
|
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 `
|
|
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
|
-
* `
|
|
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
|
|
101
|
-
* into bag 0, an id with
|
|
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
|
/**
|
package/polkadot/errors.d.ts
CHANGED
|
@@ -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
|
|
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.
|
package/polkadot/events.d.ts
CHANGED
|
@@ -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, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PolkadotParachainPrimitivesHrmpChannelId,
|
|
6
|
+
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, 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]`
|
|
@@ -513,15 +535,15 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
513
535
|
/**
|
|
514
536
|
* A candidate was backed. `[candidate, head_data]`
|
|
515
537
|
**/
|
|
516
|
-
CandidateBacked: AugmentedEvent<ApiType, [
|
|
538
|
+
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV2CandidateReceipt, Bytes, u32, u32]>;
|
|
517
539
|
/**
|
|
518
540
|
* A candidate was included. `[candidate, head_data]`
|
|
519
541
|
**/
|
|
520
|
-
CandidateIncluded: AugmentedEvent<ApiType, [
|
|
542
|
+
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV2CandidateReceipt, Bytes, u32, u32]>;
|
|
521
543
|
/**
|
|
522
544
|
* A candidate timed out. `[candidate, head_data]`
|
|
523
545
|
**/
|
|
524
|
-
CandidateTimedOut: AugmentedEvent<ApiType, [
|
|
546
|
+
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV2CandidateReceipt, Bytes, u32]>;
|
|
525
547
|
/**
|
|
526
548
|
* Generic event
|
|
527
549
|
**/
|
package/polkadot/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, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId,
|
|
7
|
+
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, 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, PolkadotRuntimeSessionKeys, 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
|
/**
|
|
@@ -810,7 +837,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
810
837
|
/**
|
|
811
838
|
* The commitments of candidates pending availability, by `ParaId`.
|
|
812
839
|
**/
|
|
813
|
-
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<
|
|
840
|
+
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
814
841
|
/**
|
|
815
842
|
* Generic query
|
|
816
843
|
**/
|
|
@@ -829,7 +856,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
829
856
|
/**
|
|
830
857
|
* Scraped on chain data for extracting resolved disputes as well as backing votes.
|
|
831
858
|
**/
|
|
832
|
-
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<
|
|
859
|
+
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV2ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
833
860
|
/**
|
|
834
861
|
* Generic query
|
|
835
862
|
**/
|
|
@@ -947,7 +974,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
947
974
|
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
|
948
975
|
* the format will require migration of parachains.
|
|
949
976
|
**/
|
|
950
|
-
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<
|
|
977
|
+
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
951
978
|
/**
|
|
952
979
|
* This is used by the relay-chain to communicate that there are restrictions for performing
|
|
953
980
|
* an upgrade for this parachain.
|
|
@@ -959,7 +986,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
959
986
|
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
|
960
987
|
* the format will require migration of parachains.
|
|
961
988
|
**/
|
|
962
|
-
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<
|
|
989
|
+
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
963
990
|
/**
|
|
964
991
|
* Generic query
|
|
965
992
|
**/
|
|
@@ -976,7 +1003,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
976
1003
|
* * The number of parachains and parathread multiplexers
|
|
977
1004
|
* * The number of validators divided by `configuration.max_validators_per_core`.
|
|
978
1005
|
**/
|
|
979
|
-
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<Option<
|
|
1006
|
+
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<Option<PolkadotPrimitivesV2CoreOccupied>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
980
1007
|
/**
|
|
981
1008
|
* An index used to ensure that only one claim on a parathread exists in the queue or is
|
|
982
1009
|
* currently being handled by an occupied core.
|
|
@@ -1027,7 +1054,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1027
1054
|
/**
|
|
1028
1055
|
* All ongoing or concluded disputes for the last several sessions.
|
|
1029
1056
|
**/
|
|
1030
|
-
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<
|
|
1057
|
+
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV2DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
|
1031
1058
|
/**
|
|
1032
1059
|
* Whether the chain is frozen. Starts as `None`. When this is `Some`,
|
|
1033
1060
|
* the chain will not accept any new parachain blocks for backing or inclusion,
|
|
@@ -1064,7 +1091,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1064
1091
|
* Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
|
|
1065
1092
|
* When in doubt, use `Sessions` API instead.
|
|
1066
1093
|
**/
|
|
1067
|
-
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<
|
|
1094
|
+
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV2AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1068
1095
|
/**
|
|
1069
1096
|
* The earliest session for which previous session info is stored.
|
|
1070
1097
|
**/
|
|
@@ -1090,7 +1117,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1090
1117
|
* The parachain attestation keys of the validators actively participating in parachain consensus.
|
|
1091
1118
|
* This should be the same length as `ActiveValidatorIndices`.
|
|
1092
1119
|
**/
|
|
1093
|
-
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<
|
|
1120
|
+
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV2ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1094
1121
|
/**
|
|
1095
1122
|
* The current session index.
|
|
1096
1123
|
**/
|
package/polkadot/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 } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportScheduleMaybeHashed, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId,
|
|
7
|
+
import type { FrameSupportScheduleMaybeHashed, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, 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 `
|
|
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
|
|
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.
|
|
@@ -2205,12 +2394,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2205
2394
|
/**
|
|
2206
2395
|
* Enter the paras inherent. This will process bitfields and backed candidates.
|
|
2207
2396
|
**/
|
|
2208
|
-
enter: AugmentedSubmittable<(data:
|
|
2397
|
+
enter: AugmentedSubmittable<(data: PolkadotPrimitivesV2InherentData | {
|
|
2209
2398
|
bitfields?: any;
|
|
2210
2399
|
backedCandidates?: any;
|
|
2211
2400
|
disputes?: any;
|
|
2212
2401
|
parentHeader?: any;
|
|
2213
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2402
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV2InherentData]>;
|
|
2214
2403
|
/**
|
|
2215
2404
|
* Generic tx
|
|
2216
2405
|
**/
|
|
@@ -2264,7 +2453,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2264
2453
|
subject?: any;
|
|
2265
2454
|
sessionIndex?: any;
|
|
2266
2455
|
validatorIndex?: any;
|
|
2267
|
-
} | string | Uint8Array, signature:
|
|
2456
|
+
} | string | Uint8Array, signature: PolkadotPrimitivesV2ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature]>;
|
|
2268
2457
|
/**
|
|
2269
2458
|
* Remove the validation code from the storage iff the reference count is 0.
|
|
2270
2459
|
*
|
package/substrate/consts.d.ts
CHANGED
|
@@ -77,23 +77,23 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
77
77
|
/**
|
|
78
78
|
* The list of thresholds separating the various bags.
|
|
79
79
|
*
|
|
80
|
-
* Ids are separated into unsorted bags according to their
|
|
81
|
-
* thresholds separating the bags. An id's bag is the largest bag for which the id's
|
|
80
|
+
* Ids are separated into unsorted bags according to their score. This specifies the
|
|
81
|
+
* thresholds separating the bags. An id's bag is the largest bag for which the id's score
|
|
82
82
|
* is less than or equal to its upper threshold.
|
|
83
83
|
*
|
|
84
84
|
* When ids are iterated, higher bags are iterated completely before lower bags. This means
|
|
85
|
-
* that iteration is _semi-sorted_: ids of higher
|
|
86
|
-
*
|
|
85
|
+
* that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
|
|
86
|
+
* score, but peer ids within a particular bag are sorted in insertion order.
|
|
87
87
|
*
|
|
88
88
|
* # Expressing the constant
|
|
89
89
|
*
|
|
90
90
|
* This constant must be sorted in strictly increasing order. Duplicate items are not
|
|
91
91
|
* permitted.
|
|
92
92
|
*
|
|
93
|
-
* There is an implied upper limit of `
|
|
93
|
+
* There is an implied upper limit of `Score::MAX`; that value does not need to be
|
|
94
94
|
* specified within the bag. For any two threshold lists, if one ends with
|
|
95
|
-
* `
|
|
96
|
-
* will behave identically.
|
|
95
|
+
* `Score::MAX`, the other one does not, and they are otherwise equal, the two
|
|
96
|
+
* lists will behave identically.
|
|
97
97
|
*
|
|
98
98
|
* # Calculation
|
|
99
99
|
*
|
|
@@ -111,8 +111,8 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
111
111
|
* the procedure given above, then the constant ratio is equal to 2.
|
|
112
112
|
* - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
|
|
113
113
|
* the procedure given above, then the constant ratio is approximately equal to 1.248.
|
|
114
|
-
* - If the threshold list begins `[1, 2, 3, ...]`, then an id with
|
|
115
|
-
* into bag 0, an id with
|
|
114
|
+
* - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
|
|
115
|
+
* into bag 0, an id with score 2 will fall into bag 1, etc.
|
|
116
116
|
*
|
|
117
117
|
* # Migration
|
|
118
118
|
*
|
package/substrate/errors.d.ts
CHANGED
|
@@ -127,7 +127,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
127
127
|
**/
|
|
128
128
|
IdNotFound: AugmentedError<ApiType>;
|
|
129
129
|
/**
|
|
130
|
-
* An Id does not have a greater
|
|
130
|
+
* An Id does not have a greater score than another Id.
|
|
131
131
|
**/
|
|
132
132
|
NotHeavier: AugmentedError<ApiType>;
|
|
133
133
|
/**
|
|
@@ -1168,7 +1168,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1168
1168
|
/**
|
|
1169
1169
|
* Referendum's decision deposit is already paid.
|
|
1170
1170
|
**/
|
|
1171
|
-
|
|
1171
|
+
HasDeposit: AugmentedError<ApiType>;
|
|
1172
1172
|
/**
|
|
1173
1173
|
* The deposit cannot be refunded since none was made.
|
|
1174
1174
|
**/
|
|
@@ -1691,6 +1691,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1691
1691
|
* The signing account has no permission to do the operation.
|
|
1692
1692
|
**/
|
|
1693
1693
|
NoPermission: AugmentedError<ApiType>;
|
|
1694
|
+
/**
|
|
1695
|
+
* The named owner has not signed ownership of the class is acceptable.
|
|
1696
|
+
**/
|
|
1697
|
+
Unaccepted: AugmentedError<ApiType>;
|
|
1694
1698
|
/**
|
|
1695
1699
|
* No approval exists that would allow the transfer.
|
|
1696
1700
|
**/
|
package/substrate/events.d.ts
CHANGED
|
@@ -1205,6 +1205,10 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1205
1205
|
* The owner changed.
|
|
1206
1206
|
**/
|
|
1207
1207
|
OwnerChanged: AugmentedEvent<ApiType, [u32, AccountId32]>;
|
|
1208
|
+
/**
|
|
1209
|
+
* Ownership acceptance has changed for an account.
|
|
1210
|
+
**/
|
|
1211
|
+
OwnershipAcceptanceChanged: AugmentedEvent<ApiType, [AccountId32, Option<u32>]>;
|
|
1208
1212
|
/**
|
|
1209
1213
|
* Metadata has been cleared for an asset instance.
|
|
1210
1214
|
**/
|