@polkadot/api-augment 9.3.3 → 9.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/packageInfo.js +1 -1
- package/kusama/consts.d.ts +27 -2
- package/kusama/errors.d.ts +8 -0
- package/kusama/events.d.ts +17 -17
- package/kusama/query.d.ts +2 -12
- package/kusama/tx.d.ts +15 -88
- package/package.json +8 -8
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +27 -2
- package/polkadot/errors.d.ts +8 -0
- package/polkadot/events.d.ts +17 -17
- package/polkadot/query.d.ts +2 -12
- package/polkadot/tx.d.ts +15 -88
- package/substrate/consts.d.ts +88 -55
- package/substrate/errors.d.ts +46 -10
- package/substrate/events.d.ts +110 -44
- package/substrate/query.d.ts +55 -35
- package/substrate/tx.d.ts +129 -156
package/cjs/packageInfo.js
CHANGED
package/kusama/consts.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
|
3
3
|
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { Codec } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { Perbill, Percent, Permill, Weight } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportPalletId,
|
|
6
|
+
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from '@polkadot/types/lookup';
|
|
7
7
|
export declare type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
|
8
8
|
declare module '@polkadot/api-base/types/consts' {
|
|
9
9
|
interface AugmentedConsts<ApiType extends ApiTypes> {
|
|
@@ -250,6 +250,9 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
250
250
|
* take place over multiple blocks.
|
|
251
251
|
**/
|
|
252
252
|
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
|
253
|
+
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
|
254
|
+
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
|
255
|
+
minerMaxWeight: Weight & AugmentedConst<ApiType>;
|
|
253
256
|
/**
|
|
254
257
|
* The priority of the unsigned transaction submitted in the unsigned-phase
|
|
255
258
|
**/
|
|
@@ -716,6 +719,28 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
716
719
|
* Number of eras that staked funds must remain bonded for.
|
|
717
720
|
**/
|
|
718
721
|
bondingDuration: u32 & AugmentedConst<ApiType>;
|
|
722
|
+
/**
|
|
723
|
+
* Number of eras to keep in history.
|
|
724
|
+
*
|
|
725
|
+
* Following information is kept for eras in `[current_era -
|
|
726
|
+
* HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
|
|
727
|
+
* `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
|
|
728
|
+
* `ErasTotalStake`, `ErasStartSessionIndex`,
|
|
729
|
+
* `StakingLedger.claimed_rewards`.
|
|
730
|
+
*
|
|
731
|
+
* Must be more than the number of eras delayed by session.
|
|
732
|
+
* I.e. active era must always be in history. I.e. `active_era >
|
|
733
|
+
* current_era - history_depth` must be guaranteed.
|
|
734
|
+
*
|
|
735
|
+
* If migrating an existing pallet from storage value to config value,
|
|
736
|
+
* this should be set to same value or greater as in storage.
|
|
737
|
+
*
|
|
738
|
+
* Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
|
|
739
|
+
* item `StakingLedger.claimed_rewards`. Setting this value lower than
|
|
740
|
+
* the existing value can lead to inconsistencies and will need to be
|
|
741
|
+
* handled properly in a migration.
|
|
742
|
+
**/
|
|
743
|
+
historyDepth: u32 & AugmentedConst<ApiType>;
|
|
719
744
|
/**
|
|
720
745
|
* Maximum number of nominations per nominator.
|
|
721
746
|
**/
|
|
@@ -764,7 +789,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
764
789
|
/**
|
|
765
790
|
* The weight of runtime database operations the runtime can invoke.
|
|
766
791
|
**/
|
|
767
|
-
dbWeight:
|
|
792
|
+
dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
|
|
768
793
|
/**
|
|
769
794
|
* The designated SS58 prefix of this chain.
|
|
770
795
|
*
|
package/kusama/errors.d.ts
CHANGED
|
@@ -744,6 +744,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
744
744
|
* The target is invalid.
|
|
745
745
|
**/
|
|
746
746
|
InvalidTarget: AugmentedError<ApiType>;
|
|
747
|
+
/**
|
|
748
|
+
* The provided judgement was for a different identity.
|
|
749
|
+
**/
|
|
750
|
+
JudgementForDifferentIdentity: AugmentedError<ApiType>;
|
|
747
751
|
/**
|
|
748
752
|
* Judgement given.
|
|
749
753
|
**/
|
|
@@ -1670,6 +1674,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1670
1674
|
* A nomination target was supplied that was blocked or otherwise not a validator.
|
|
1671
1675
|
**/
|
|
1672
1676
|
BadTarget: AugmentedError<ApiType>;
|
|
1677
|
+
/**
|
|
1678
|
+
* Some bound is not met.
|
|
1679
|
+
**/
|
|
1680
|
+
BoundNotMet: AugmentedError<ApiType>;
|
|
1673
1681
|
/**
|
|
1674
1682
|
* The user has enough bond and thus cannot be chilled forcefully by an external person.
|
|
1675
1683
|
**/
|
package/kusama/events.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
|
|
4
4
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
6
6
|
import type { AccountId32, H256, Weight } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus,
|
|
7
|
+
import type { FrameSupportDispatchDispatchInfo, FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
8
8
|
export declare type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
|
9
9
|
declare module '@polkadot/api-base/types/events' {
|
|
10
10
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
@@ -1143,16 +1143,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1143
1143
|
proxy: AccountId32;
|
|
1144
1144
|
callHash: H256;
|
|
1145
1145
|
}>;
|
|
1146
|
-
/**
|
|
1147
|
-
* Anonymous account has been created by new proxy with given
|
|
1148
|
-
* disambiguation index and proxy type.
|
|
1149
|
-
**/
|
|
1150
|
-
AnonymousCreated: AugmentedEvent<ApiType, [anonymous: AccountId32, who: AccountId32, proxyType: KusamaRuntimeProxyType, disambiguationIndex: u16], {
|
|
1151
|
-
anonymous: AccountId32;
|
|
1152
|
-
who: AccountId32;
|
|
1153
|
-
proxyType: KusamaRuntimeProxyType;
|
|
1154
|
-
disambiguationIndex: u16;
|
|
1155
|
-
}>;
|
|
1156
1146
|
/**
|
|
1157
1147
|
* A proxy was added.
|
|
1158
1148
|
**/
|
|
@@ -1177,6 +1167,16 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1177
1167
|
proxyType: KusamaRuntimeProxyType;
|
|
1178
1168
|
delay: u32;
|
|
1179
1169
|
}>;
|
|
1170
|
+
/**
|
|
1171
|
+
* A pure account has been created by new proxy with given
|
|
1172
|
+
* disambiguation index and proxy type.
|
|
1173
|
+
**/
|
|
1174
|
+
PureCreated: AugmentedEvent<ApiType, [pure: AccountId32, who: AccountId32, proxyType: KusamaRuntimeProxyType, disambiguationIndex: u16], {
|
|
1175
|
+
pure: AccountId32;
|
|
1176
|
+
who: AccountId32;
|
|
1177
|
+
proxyType: KusamaRuntimeProxyType;
|
|
1178
|
+
disambiguationIndex: u16;
|
|
1179
|
+
}>;
|
|
1180
1180
|
/**
|
|
1181
1181
|
* Generic event
|
|
1182
1182
|
**/
|
|
@@ -1470,8 +1470,8 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1470
1470
|
**/
|
|
1471
1471
|
Rewarded: AugmentedEvent<ApiType, [AccountId32, u128]>;
|
|
1472
1472
|
/**
|
|
1473
|
-
* One
|
|
1474
|
-
* \[
|
|
1473
|
+
* One staker (and potentially its nominators) has been slashed by the given amount.
|
|
1474
|
+
* \[staker, amount\]
|
|
1475
1475
|
**/
|
|
1476
1476
|
Slashed: AugmentedEvent<ApiType, [AccountId32, u128]>;
|
|
1477
1477
|
/**
|
|
@@ -1508,15 +1508,15 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1508
1508
|
/**
|
|
1509
1509
|
* An extrinsic failed.
|
|
1510
1510
|
**/
|
|
1511
|
-
ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo:
|
|
1511
|
+
ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportDispatchDispatchInfo], {
|
|
1512
1512
|
dispatchError: SpRuntimeDispatchError;
|
|
1513
|
-
dispatchInfo:
|
|
1513
|
+
dispatchInfo: FrameSupportDispatchDispatchInfo;
|
|
1514
1514
|
}>;
|
|
1515
1515
|
/**
|
|
1516
1516
|
* An extrinsic completed successfully.
|
|
1517
1517
|
**/
|
|
1518
|
-
ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo:
|
|
1519
|
-
dispatchInfo:
|
|
1518
|
+
ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSupportDispatchDispatchInfo], {
|
|
1519
|
+
dispatchInfo: FrameSupportDispatchDispatchInfo;
|
|
1520
1520
|
}>;
|
|
1521
1521
|
/**
|
|
1522
1522
|
* An account was reaped.
|
package/kusama/query.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, W
|
|
|
5
5
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
7
7
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
8
|
-
import type {
|
|
8
|
+
import type { FrameSupportDispatchPerDispatchClassWeight, 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';
|
|
9
9
|
import type { Observable } from '@polkadot/types/types';
|
|
10
10
|
export declare type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
11
11
|
export declare type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
@@ -1594,16 +1594,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1594
1594
|
* Mode of era forcing.
|
|
1595
1595
|
**/
|
|
1596
1596
|
forceEra: AugmentedQuery<ApiType, () => Observable<PalletStakingForcing>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1597
|
-
/**
|
|
1598
|
-
* Number of eras to keep in history.
|
|
1599
|
-
*
|
|
1600
|
-
* Information is kept for eras in `[current_era - history_depth; current_era]`.
|
|
1601
|
-
*
|
|
1602
|
-
* Must be more than the number of eras delayed by session otherwise. I.e. active era must
|
|
1603
|
-
* always be in history. I.e. `active_era > current_era - history_depth` must be
|
|
1604
|
-
* guaranteed.
|
|
1605
|
-
**/
|
|
1606
|
-
historyDepth: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1607
1597
|
/**
|
|
1608
1598
|
* Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
|
|
1609
1599
|
* easy to initialize and the performance hit is minimal (we expect no more than four
|
|
@@ -1743,7 +1733,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1743
1733
|
/**
|
|
1744
1734
|
* The current weight for the block.
|
|
1745
1735
|
**/
|
|
1746
|
-
blockWeight: AugmentedQuery<ApiType, () => Observable<
|
|
1736
|
+
blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportDispatchPerDispatchClassWeight>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1747
1737
|
/**
|
|
1748
1738
|
* Digest of the current block, also part of the block header.
|
|
1749
1739
|
**/
|
package/kusama/tx.d.ts
CHANGED
|
@@ -1936,6 +1936,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1936
1936
|
* - `target`: the account whose identity the judgement is upon. This must be an account
|
|
1937
1937
|
* with a registered identity.
|
|
1938
1938
|
* - `judgement`: the judgement of the registrar of index `reg_index` about `target`.
|
|
1939
|
+
* - `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided.
|
|
1939
1940
|
*
|
|
1940
1941
|
* Emits `JudgementGiven` if successful.
|
|
1941
1942
|
*
|
|
@@ -1971,7 +1972,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1971
1972
|
LowQuality: any;
|
|
1972
1973
|
} | {
|
|
1973
1974
|
Erroneous: any;
|
|
1974
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, PalletIdentityJudgement]>;
|
|
1975
|
+
} | string | Uint8Array, identity: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, PalletIdentityJudgement, H256]>;
|
|
1975
1976
|
/**
|
|
1976
1977
|
* Remove the sender as a sub-account.
|
|
1977
1978
|
*
|
|
@@ -3062,10 +3063,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3062
3063
|
* - `proxy_type`: The permissions allowed for this proxy account.
|
|
3063
3064
|
* - `delay`: The announcement period required of the initial proxy. Will generally be
|
|
3064
3065
|
* zero.
|
|
3065
|
-
*
|
|
3066
|
-
* # <weight>
|
|
3067
|
-
* Weight is a function of the number of proxies the user has (P).
|
|
3068
|
-
* # </weight>
|
|
3069
3066
|
**/
|
|
3070
3067
|
addProxy: AugmentedSubmittable<(delegate: MultiAddress | {
|
|
3071
3068
|
Id: any;
|
|
@@ -3094,12 +3091,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3094
3091
|
* Parameters:
|
|
3095
3092
|
* - `real`: The account that the proxy will make a call on behalf of.
|
|
3096
3093
|
* - `call_hash`: The hash of the call to be made by the `real` account.
|
|
3097
|
-
*
|
|
3098
|
-
* # <weight>
|
|
3099
|
-
* Weight is a function of:
|
|
3100
|
-
* - A: the number of announcements made.
|
|
3101
|
-
* - P: the number of proxies the user has.
|
|
3102
|
-
* # </weight>
|
|
3103
3094
|
**/
|
|
3104
3095
|
announce: AugmentedSubmittable<(real: MultiAddress | {
|
|
3105
3096
|
Id: any;
|
|
@@ -3131,36 +3122,27 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3131
3122
|
* same sender, with the same parameters.
|
|
3132
3123
|
*
|
|
3133
3124
|
* Fails if there are insufficient funds to pay for deposit.
|
|
3134
|
-
*
|
|
3135
|
-
* # <weight>
|
|
3136
|
-
* Weight is a function of the number of proxies the user has (P).
|
|
3137
|
-
* # </weight>
|
|
3138
|
-
* TODO: Might be over counting 1 read
|
|
3139
3125
|
**/
|
|
3140
|
-
|
|
3126
|
+
createPure: AugmentedSubmittable<(proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeProxyType, u32, u16]>;
|
|
3141
3127
|
/**
|
|
3142
|
-
* Removes a previously spawned
|
|
3128
|
+
* Removes a previously spawned pure proxy.
|
|
3143
3129
|
*
|
|
3144
3130
|
* WARNING: **All access to this account will be lost.** Any funds held in it will be
|
|
3145
3131
|
* inaccessible.
|
|
3146
3132
|
*
|
|
3147
3133
|
* Requires a `Signed` origin, and the sender account must have been created by a call to
|
|
3148
|
-
* `
|
|
3149
|
-
*
|
|
3150
|
-
* - `spawner`: The account that originally called `anonymous` to create this account.
|
|
3151
|
-
* - `index`: The disambiguation index originally passed to `anonymous`. Probably `0`.
|
|
3152
|
-
* - `proxy_type`: The proxy type originally passed to `anonymous`.
|
|
3153
|
-
* - `height`: The height of the chain when the call to `anonymous` was processed.
|
|
3154
|
-
* - `ext_index`: The extrinsic index in which the call to `anonymous` was processed.
|
|
3134
|
+
* `pure` with corresponding parameters.
|
|
3155
3135
|
*
|
|
3156
|
-
*
|
|
3157
|
-
*
|
|
3136
|
+
* - `spawner`: The account that originally called `pure` to create this account.
|
|
3137
|
+
* - `index`: The disambiguation index originally passed to `pure`. Probably `0`.
|
|
3138
|
+
* - `proxy_type`: The proxy type originally passed to `pure`.
|
|
3139
|
+
* - `height`: The height of the chain when the call to `pure` was processed.
|
|
3140
|
+
* - `ext_index`: The extrinsic index in which the call to `pure` was processed.
|
|
3158
3141
|
*
|
|
3159
|
-
*
|
|
3160
|
-
*
|
|
3161
|
-
* # </weight>
|
|
3142
|
+
* Fails with `NoPermission` in case the caller is not a previously created pure
|
|
3143
|
+
* account whose `pure` call has corresponding parameters.
|
|
3162
3144
|
**/
|
|
3163
|
-
|
|
3145
|
+
killPure: AugmentedSubmittable<(spawner: MultiAddress | {
|
|
3164
3146
|
Id: any;
|
|
3165
3147
|
} | {
|
|
3166
3148
|
Index: any;
|
|
@@ -3183,10 +3165,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3183
3165
|
* - `real`: The account that the proxy will make a call on behalf of.
|
|
3184
3166
|
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
|
3185
3167
|
* - `call`: The call to be made by the `real` account.
|
|
3186
|
-
*
|
|
3187
|
-
* # <weight>
|
|
3188
|
-
* Weight is a function of the number of proxies the user has (P).
|
|
3189
|
-
* # </weight>
|
|
3190
3168
|
**/
|
|
3191
3169
|
proxy: AugmentedSubmittable<(real: MultiAddress | {
|
|
3192
3170
|
Id: any;
|
|
@@ -3211,12 +3189,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3211
3189
|
* - `real`: The account that the proxy will make a call on behalf of.
|
|
3212
3190
|
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
|
3213
3191
|
* - `call`: The call to be made by the `real` account.
|
|
3214
|
-
*
|
|
3215
|
-
* # <weight>
|
|
3216
|
-
* Weight is a function of:
|
|
3217
|
-
* - A: the number of announcements made.
|
|
3218
|
-
* - P: the number of proxies the user has.
|
|
3219
|
-
* # </weight>
|
|
3220
3192
|
**/
|
|
3221
3193
|
proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | {
|
|
3222
3194
|
Id: any;
|
|
@@ -3250,12 +3222,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3250
3222
|
* Parameters:
|
|
3251
3223
|
* - `delegate`: The account that previously announced the call.
|
|
3252
3224
|
* - `call_hash`: The hash of the call to be made.
|
|
3253
|
-
*
|
|
3254
|
-
* # <weight>
|
|
3255
|
-
* Weight is a function of:
|
|
3256
|
-
* - A: the number of announcements made.
|
|
3257
|
-
* - P: the number of proxies the user has.
|
|
3258
|
-
* # </weight>
|
|
3259
3225
|
**/
|
|
3260
3226
|
rejectAnnouncement: AugmentedSubmittable<(delegate: MultiAddress | {
|
|
3261
3227
|
Id: any;
|
|
@@ -3279,12 +3245,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3279
3245
|
* Parameters:
|
|
3280
3246
|
* - `real`: The account that the proxy will make a call on behalf of.
|
|
3281
3247
|
* - `call_hash`: The hash of the call to be made by the `real` account.
|
|
3282
|
-
*
|
|
3283
|
-
* # <weight>
|
|
3284
|
-
* Weight is a function of:
|
|
3285
|
-
* - A: the number of announcements made.
|
|
3286
|
-
* - P: the number of proxies the user has.
|
|
3287
|
-
* # </weight>
|
|
3288
3248
|
**/
|
|
3289
3249
|
removeAnnouncement: AugmentedSubmittable<(real: MultiAddress | {
|
|
3290
3250
|
Id: any;
|
|
@@ -3302,12 +3262,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3302
3262
|
*
|
|
3303
3263
|
* The dispatch origin for this call must be _Signed_.
|
|
3304
3264
|
*
|
|
3305
|
-
* WARNING: This may be called on accounts created by `
|
|
3265
|
+
* WARNING: This may be called on accounts created by `pure`, however if done, then
|
|
3306
3266
|
* the unreserved fees will be inaccessible. **All access to this account will be lost.**
|
|
3307
|
-
*
|
|
3308
|
-
* # <weight>
|
|
3309
|
-
* Weight is a function of the number of proxies the user has (P).
|
|
3310
|
-
* # </weight>
|
|
3311
3267
|
**/
|
|
3312
3268
|
removeProxies: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3313
3269
|
/**
|
|
@@ -3318,10 +3274,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3318
3274
|
* Parameters:
|
|
3319
3275
|
* - `proxy`: The account that the `caller` would like to remove as a proxy.
|
|
3320
3276
|
* - `proxy_type`: The permissions currently enabled for the removed proxy account.
|
|
3321
|
-
*
|
|
3322
|
-
* # <weight>
|
|
3323
|
-
* Weight is a function of the number of proxies the user has (P).
|
|
3324
|
-
* # </weight>
|
|
3325
3277
|
**/
|
|
3326
3278
|
removeProxy: AugmentedSubmittable<(delegate: MultiAddress | {
|
|
3327
3279
|
Id: any;
|
|
@@ -4459,31 +4411,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4459
4411
|
} | {
|
|
4460
4412
|
Address20: any;
|
|
4461
4413
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
4462
|
-
/**
|
|
4463
|
-
* Set `HistoryDepth` value. This function will delete any history information
|
|
4464
|
-
* when `HistoryDepth` is reduced.
|
|
4465
|
-
*
|
|
4466
|
-
* Parameters:
|
|
4467
|
-
* - `new_history_depth`: The new history depth you would like to set.
|
|
4468
|
-
* - `era_items_deleted`: The number of items that will be deleted by this dispatch. This
|
|
4469
|
-
* should report all the storage items that will be deleted by clearing old era history.
|
|
4470
|
-
* Needed to report an accurate weight for the dispatch. Trusted by `Root` to report an
|
|
4471
|
-
* accurate number.
|
|
4472
|
-
*
|
|
4473
|
-
* Origin must be root.
|
|
4474
|
-
*
|
|
4475
|
-
* # <weight>
|
|
4476
|
-
* - E: Number of history depths removed, i.e. 10 -> 7 = 3
|
|
4477
|
-
* - Weight: O(E)
|
|
4478
|
-
* - DB Weight:
|
|
4479
|
-
* - Reads: Current Era, History Depth
|
|
4480
|
-
* - Writes: History Depth
|
|
4481
|
-
* - Clear Prefix Each: Era Stakers, EraStakersClipped, ErasValidatorPrefs
|
|
4482
|
-
* - Writes Each: ErasValidatorReward, ErasRewardPoints, ErasTotalStake,
|
|
4483
|
-
* ErasStartSessionIndex
|
|
4484
|
-
* # </weight>
|
|
4485
|
-
**/
|
|
4486
|
-
setHistoryDepth: AugmentedSubmittable<(newHistoryDepth: Compact<u32> | AnyNumber | Uint8Array, eraItemsDeleted: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
|
|
4487
4414
|
/**
|
|
4488
4415
|
* Set the validators who cannot be slashed (if any).
|
|
4489
4416
|
*
|
|
@@ -4533,7 +4460,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4533
4460
|
* * `min_commission`: The minimum amount of commission that each validators must maintain.
|
|
4534
4461
|
* This is checked only upon calling `validate`. Existing validators are not affected.
|
|
4535
4462
|
*
|
|
4536
|
-
*
|
|
4463
|
+
* RuntimeOrigin must be Root to call this function.
|
|
4537
4464
|
*
|
|
4538
4465
|
* NOTE: Existing nominators and validators will not be affected by this update.
|
|
4539
4466
|
* to kick people under the new limits, `chill_other` should be called.
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./cjs/detectPackage.js"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "9.
|
|
23
|
+
"version": "9.4.2",
|
|
24
24
|
"main": "./cjs/index.js",
|
|
25
25
|
"module": "./index.js",
|
|
26
26
|
"types": "./index.d.ts",
|
|
@@ -185,12 +185,12 @@
|
|
|
185
185
|
}
|
|
186
186
|
},
|
|
187
187
|
"dependencies": {
|
|
188
|
-
"@babel/runtime": "^7.
|
|
189
|
-
"@polkadot/api-base": "9.
|
|
190
|
-
"@polkadot/rpc-augment": "9.
|
|
191
|
-
"@polkadot/types": "9.
|
|
192
|
-
"@polkadot/types-augment": "9.
|
|
193
|
-
"@polkadot/types-codec": "9.
|
|
194
|
-
"@polkadot/util": "^10.1.
|
|
188
|
+
"@babel/runtime": "^7.19.0",
|
|
189
|
+
"@polkadot/api-base": "9.4.2",
|
|
190
|
+
"@polkadot/rpc-augment": "9.4.2",
|
|
191
|
+
"@polkadot/types": "9.4.2",
|
|
192
|
+
"@polkadot/types-augment": "9.4.2",
|
|
193
|
+
"@polkadot/types-codec": "9.4.2",
|
|
194
|
+
"@polkadot/util": "^10.1.9"
|
|
195
195
|
}
|
|
196
196
|
}
|
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: '9.
|
|
8
|
+
version: '9.4.2'
|
|
9
9
|
};
|
package/polkadot/consts.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
|
3
3
|
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { Codec } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { Perbill, Percent, Permill, Weight } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportPalletId,
|
|
6
|
+
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from '@polkadot/types/lookup';
|
|
7
7
|
export declare type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
|
8
8
|
declare module '@polkadot/api-base/types/consts' {
|
|
9
9
|
interface AugmentedConsts<ApiType extends ApiTypes> {
|
|
@@ -250,6 +250,9 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
250
250
|
* take place over multiple blocks.
|
|
251
251
|
**/
|
|
252
252
|
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
|
253
|
+
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
|
254
|
+
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
|
255
|
+
minerMaxWeight: Weight & AugmentedConst<ApiType>;
|
|
253
256
|
/**
|
|
254
257
|
* The priority of the unsigned transaction submitted in the unsigned-phase
|
|
255
258
|
**/
|
|
@@ -583,6 +586,28 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
583
586
|
* Number of eras that staked funds must remain bonded for.
|
|
584
587
|
**/
|
|
585
588
|
bondingDuration: u32 & AugmentedConst<ApiType>;
|
|
589
|
+
/**
|
|
590
|
+
* Number of eras to keep in history.
|
|
591
|
+
*
|
|
592
|
+
* Following information is kept for eras in `[current_era -
|
|
593
|
+
* HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
|
|
594
|
+
* `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
|
|
595
|
+
* `ErasTotalStake`, `ErasStartSessionIndex`,
|
|
596
|
+
* `StakingLedger.claimed_rewards`.
|
|
597
|
+
*
|
|
598
|
+
* Must be more than the number of eras delayed by session.
|
|
599
|
+
* I.e. active era must always be in history. I.e. `active_era >
|
|
600
|
+
* current_era - history_depth` must be guaranteed.
|
|
601
|
+
*
|
|
602
|
+
* If migrating an existing pallet from storage value to config value,
|
|
603
|
+
* this should be set to same value or greater as in storage.
|
|
604
|
+
*
|
|
605
|
+
* Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
|
|
606
|
+
* item `StakingLedger.claimed_rewards`. Setting this value lower than
|
|
607
|
+
* the existing value can lead to inconsistencies and will need to be
|
|
608
|
+
* handled properly in a migration.
|
|
609
|
+
**/
|
|
610
|
+
historyDepth: u32 & AugmentedConst<ApiType>;
|
|
586
611
|
/**
|
|
587
612
|
* Maximum number of nominations per nominator.
|
|
588
613
|
**/
|
|
@@ -631,7 +656,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
631
656
|
/**
|
|
632
657
|
* The weight of runtime database operations the runtime can invoke.
|
|
633
658
|
**/
|
|
634
|
-
dbWeight:
|
|
659
|
+
dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
|
|
635
660
|
/**
|
|
636
661
|
* The designated SS58 prefix of this chain.
|
|
637
662
|
*
|
package/polkadot/errors.d.ts
CHANGED
|
@@ -705,6 +705,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
705
705
|
* The target is invalid.
|
|
706
706
|
**/
|
|
707
707
|
InvalidTarget: AugmentedError<ApiType>;
|
|
708
|
+
/**
|
|
709
|
+
* The provided judgement was for a different identity.
|
|
710
|
+
**/
|
|
711
|
+
JudgementForDifferentIdentity: AugmentedError<ApiType>;
|
|
708
712
|
/**
|
|
709
713
|
* Judgement given.
|
|
710
714
|
**/
|
|
@@ -1483,6 +1487,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1483
1487
|
* A nomination target was supplied that was blocked or otherwise not a validator.
|
|
1484
1488
|
**/
|
|
1485
1489
|
BadTarget: AugmentedError<ApiType>;
|
|
1490
|
+
/**
|
|
1491
|
+
* Some bound is not met.
|
|
1492
|
+
**/
|
|
1493
|
+
BoundNotMet: AugmentedError<ApiType>;
|
|
1486
1494
|
/**
|
|
1487
1495
|
* The user has enough bond and thus cannot be chilled forcefully by an external person.
|
|
1488
1496
|
**/
|
package/polkadot/events.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
|
|
4
4
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
6
6
|
import type { AccountId32, H256, Weight } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus,
|
|
7
|
+
import type { FrameSupportDispatchDispatchInfo, FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
8
8
|
export declare type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
|
9
9
|
declare module '@polkadot/api-base/types/events' {
|
|
10
10
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
@@ -1103,16 +1103,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1103
1103
|
proxy: AccountId32;
|
|
1104
1104
|
callHash: H256;
|
|
1105
1105
|
}>;
|
|
1106
|
-
/**
|
|
1107
|
-
* Anonymous account has been created by new proxy with given
|
|
1108
|
-
* disambiguation index and proxy type.
|
|
1109
|
-
**/
|
|
1110
|
-
AnonymousCreated: AugmentedEvent<ApiType, [anonymous: AccountId32, who: AccountId32, proxyType: PolkadotRuntimeProxyType, disambiguationIndex: u16], {
|
|
1111
|
-
anonymous: AccountId32;
|
|
1112
|
-
who: AccountId32;
|
|
1113
|
-
proxyType: PolkadotRuntimeProxyType;
|
|
1114
|
-
disambiguationIndex: u16;
|
|
1115
|
-
}>;
|
|
1116
1106
|
/**
|
|
1117
1107
|
* A proxy was added.
|
|
1118
1108
|
**/
|
|
@@ -1137,6 +1127,16 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1137
1127
|
proxyType: PolkadotRuntimeProxyType;
|
|
1138
1128
|
delay: u32;
|
|
1139
1129
|
}>;
|
|
1130
|
+
/**
|
|
1131
|
+
* A pure account has been created by new proxy with given
|
|
1132
|
+
* disambiguation index and proxy type.
|
|
1133
|
+
**/
|
|
1134
|
+
PureCreated: AugmentedEvent<ApiType, [pure: AccountId32, who: AccountId32, proxyType: PolkadotRuntimeProxyType, disambiguationIndex: u16], {
|
|
1135
|
+
pure: AccountId32;
|
|
1136
|
+
who: AccountId32;
|
|
1137
|
+
proxyType: PolkadotRuntimeProxyType;
|
|
1138
|
+
disambiguationIndex: u16;
|
|
1139
|
+
}>;
|
|
1140
1140
|
/**
|
|
1141
1141
|
* Generic event
|
|
1142
1142
|
**/
|
|
@@ -1270,8 +1270,8 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1270
1270
|
**/
|
|
1271
1271
|
Rewarded: AugmentedEvent<ApiType, [AccountId32, u128]>;
|
|
1272
1272
|
/**
|
|
1273
|
-
* One
|
|
1274
|
-
* \[
|
|
1273
|
+
* One staker (and potentially its nominators) has been slashed by the given amount.
|
|
1274
|
+
* \[staker, amount\]
|
|
1275
1275
|
**/
|
|
1276
1276
|
Slashed: AugmentedEvent<ApiType, [AccountId32, u128]>;
|
|
1277
1277
|
/**
|
|
@@ -1308,15 +1308,15 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1308
1308
|
/**
|
|
1309
1309
|
* An extrinsic failed.
|
|
1310
1310
|
**/
|
|
1311
|
-
ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo:
|
|
1311
|
+
ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportDispatchDispatchInfo], {
|
|
1312
1312
|
dispatchError: SpRuntimeDispatchError;
|
|
1313
|
-
dispatchInfo:
|
|
1313
|
+
dispatchInfo: FrameSupportDispatchDispatchInfo;
|
|
1314
1314
|
}>;
|
|
1315
1315
|
/**
|
|
1316
1316
|
* An extrinsic completed successfully.
|
|
1317
1317
|
**/
|
|
1318
|
-
ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo:
|
|
1319
|
-
dispatchInfo:
|
|
1318
|
+
ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSupportDispatchDispatchInfo], {
|
|
1319
|
+
dispatchInfo: FrameSupportDispatchDispatchInfo;
|
|
1320
1320
|
}>;
|
|
1321
1321
|
/**
|
|
1322
1322
|
* An account was reaped.
|