@polkadot/api-augment 9.2.3 → 9.3.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.
@@ -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: '9.2.3'
14
+ version: '9.3.2'
15
15
  };
16
16
  exports.packageInfo = packageInfo;
@@ -2,7 +2,7 @@ import '@polkadot/api-base/types/consts';
2
2
  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
- import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
5
+ import type { Perbill, Percent, Permill, Weight } from '@polkadot/types/interfaces/runtime';
6
6
  import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
7
7
  export declare type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
8
8
  declare module '@polkadot/api-base/types/consts' {
@@ -294,7 +294,7 @@ declare module '@polkadot/api-base/types/consts' {
294
294
  * this pallet), then [`MinerConfig::solution_weight`] is used to compare against
295
295
  * this value.
296
296
  **/
297
- signedMaxWeight: u64 & AugmentedConst<ApiType>;
297
+ signedMaxWeight: Weight & AugmentedConst<ApiType>;
298
298
  /**
299
299
  * Duration of the signed phase.
300
300
  **/
@@ -642,7 +642,7 @@ declare module '@polkadot/api-base/types/consts' {
642
642
  * The maximum weight that may be scheduled per block for any dispatchables of less
643
643
  * priority than `schedule::HARD_DEADLINE`.
644
644
  **/
645
- maximumWeight: u64 & AugmentedConst<ApiType>;
645
+ maximumWeight: Weight & AugmentedConst<ApiType>;
646
646
  /**
647
647
  * The maximum number of scheduled calls in the queue for a single block.
648
648
  * Not strictly enforced, but used for weight estimation.
@@ -766,7 +766,7 @@ declare module '@polkadot/api-base/types/consts' {
766
766
  **/
767
767
  dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
768
768
  /**
769
- * The designated SS85 prefix of this chain.
769
+ * The designated SS58 prefix of this chain.
770
770
  *
771
771
  * This replaces the "ss58Format" property declared in the chain spec. Reason is
772
772
  * that the runtime should know about the prefix in order to make use of it as
@@ -3,8 +3,8 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
3
3
  import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { ITuple } from '@polkadot/types-codec/types';
5
5
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
- import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, KusamaRuntimeProxyType, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
6
+ import type { AccountId32, H256, Weight } from '@polkadot/types/interfaces/runtime';
7
+ import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, 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> {
@@ -537,11 +537,17 @@ declare module '@polkadot/api-base/types/events' {
537
537
  };
538
538
  electionProviderMultiPhase: {
539
539
  /**
540
- * The election has been finalized, with `Some` of the given computation, or else if the
541
- * election failed, `None`.
540
+ * An election failed.
541
+ *
542
+ * Not much can be said about which computes failed in the process.
543
+ **/
544
+ ElectionFailed: AugmentedEvent<ApiType, []>;
545
+ /**
546
+ * The election has been finalized, with the given computation and score.
542
547
  **/
543
- ElectionFinalized: AugmentedEvent<ApiType, [electionCompute: Option<PalletElectionProviderMultiPhaseElectionCompute>], {
544
- electionCompute: Option<PalletElectionProviderMultiPhaseElectionCompute>;
548
+ ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], {
549
+ compute: PalletElectionProviderMultiPhaseElectionCompute;
550
+ score: SpNposElectionsElectionScore;
545
551
  }>;
546
552
  /**
547
553
  * An account has been rewarded for their signed submission being finalized.
@@ -571,8 +577,8 @@ declare module '@polkadot/api-base/types/events' {
571
577
  *
572
578
  * The `bool` is `true` when a previous solution was ejected to make room for this one.
573
579
  **/
574
- SolutionStored: AugmentedEvent<ApiType, [electionCompute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], {
575
- electionCompute: PalletElectionProviderMultiPhaseElectionCompute;
580
+ SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], {
581
+ compute: PalletElectionProviderMultiPhaseElectionCompute;
576
582
  prevEjected: bool;
577
583
  }>;
578
584
  /**
@@ -1760,14 +1766,14 @@ declare module '@polkadot/api-base/types/events' {
1760
1766
  *
1761
1767
  * \[ para, id, overweight_index, required \]
1762
1768
  **/
1763
- OverweightEnqueued: AugmentedEvent<ApiType, [u32, U8aFixed, u64, u64]>;
1769
+ OverweightEnqueued: AugmentedEvent<ApiType, [u32, U8aFixed, u64, Weight]>;
1764
1770
  /**
1765
1771
  * Upward message from the overweight queue was executed with the given actual weight
1766
1772
  * used.
1767
1773
  *
1768
1774
  * \[ overweight_index, used \]
1769
1775
  **/
1770
- OverweightServiced: AugmentedEvent<ApiType, [u64, u64]>;
1776
+ OverweightServiced: AugmentedEvent<ApiType, [u64, Weight]>;
1771
1777
  /**
1772
1778
  * Upward message is unsupported version of XCM.
1773
1779
  * \[ id \]
@@ -1782,7 +1788,7 @@ declare module '@polkadot/api-base/types/events' {
1782
1788
  * The weight limit for handling upward messages was reached.
1783
1789
  * \[ id, remaining, required \]
1784
1790
  **/
1785
- WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, u64, u64]>;
1791
+ WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, Weight, Weight]>;
1786
1792
  /**
1787
1793
  * Generic event
1788
1794
  **/
@@ -1929,7 +1935,7 @@ declare module '@polkadot/api-base/types/events' {
1929
1935
  *
1930
1936
  * \[ id, pallet index, call index, actual weight, max budgeted weight \]
1931
1937
  **/
1932
- NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, u64, u64]>;
1938
+ NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, Weight, Weight]>;
1933
1939
  /**
1934
1940
  * A given location which had a version change subscription was dropped owing to an error
1935
1941
  * migrating the location to our new XCM format.
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 { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
8
+ import type { FrameSupportWeightsPerDispatchClassWeight, 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>;
@@ -1743,7 +1743,7 @@ declare module '@polkadot/api-base/types/storage' {
1743
1743
  /**
1744
1744
  * The current weight for the block.
1745
1745
  **/
1746
- blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportWeightsPerDispatchClassU64>, []> & QueryableStorageEntry<ApiType, []>;
1746
+ blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportWeightsPerDispatchClassWeight>, []> & QueryableStorageEntry<ApiType, []>;
1747
1747
  /**
1748
1748
  * Digest of the current block, also part of the block header.
1749
1749
  **/
@@ -11,7 +11,6 @@ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
11
11
  import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
12
12
  import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
13
13
  import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
14
- import type { NpApiError } from '@polkadot/types/interfaces/nompools';
15
14
  import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
16
15
  import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
17
16
  import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId } from '@polkadot/types/interfaces/runtime';
@@ -244,7 +243,7 @@ declare module '@polkadot/api-base/types/calls' {
244
243
  /**
245
244
  * Returns the pending rewards for the given member.
246
245
  **/
247
- pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Result<Balance, NpApiError>>>;
246
+ pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
248
247
  /**
249
248
  * Generic call
250
249
  **/
package/kusama/tx.d.ts CHANGED
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
4
4
  import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
5
5
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
7
- import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
7
+ import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill, Weight } from '@polkadot/types/interfaces/runtime';
8
8
  import type { FrameSupportScheduleMaybeHashed, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
9
9
  export declare type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
10
10
  export declare type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
@@ -882,11 +882,11 @@ declare module '@polkadot/api-base/types/submittable' {
882
882
  /**
883
883
  * Sets the maximum amount of weight any individual upward message may consume.
884
884
  **/
885
- setUmpMaxIndividualWeight: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
885
+ setUmpMaxIndividualWeight: AugmentedSubmittable<(updated: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Weight]>;
886
886
  /**
887
887
  * Sets the soft limit for the phase of dispatching dispatchable upward messages.
888
888
  **/
889
- setUmpServiceTotalWeight: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
889
+ setUmpServiceTotalWeight: AugmentedSubmittable<(updated: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Weight]>;
890
890
  /**
891
891
  * Set the validation upgrade cooldown.
892
892
  **/
@@ -939,7 +939,7 @@ declare module '@polkadot/api-base/types/submittable' {
939
939
  * - up to 3 events
940
940
  * # </weight>
941
941
  **/
942
- close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
942
+ close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
943
943
  /**
944
944
  * Disapprove a proposal, close, and remove it from the system, regardless of its current
945
945
  * state.
@@ -2404,7 +2404,7 @@ declare module '@polkadot/api-base/types/submittable' {
2404
2404
  approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
2405
2405
  height?: any;
2406
2406
  index?: any;
2407
- } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, u64]>;
2407
+ } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, Weight]>;
2408
2408
  /**
2409
2409
  * Register approval for a dispatch to be made from a deterministic composite account if
2410
2410
  * approved by a total of `threshold - 1` of `other_signatories`.
@@ -2455,7 +2455,7 @@ declare module '@polkadot/api-base/types/submittable' {
2455
2455
  asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
2456
2456
  height?: any;
2457
2457
  index?: any;
2458
- } | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, u64]>;
2458
+ } | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, Weight]>;
2459
2459
  /**
2460
2460
  * Immediately dispatch a multi-signature call using a single approval from the caller.
2461
2461
  *
@@ -4745,7 +4745,7 @@ declare module '@polkadot/api-base/types/submittable' {
4745
4745
  * - up to 3 events
4746
4746
  * # </weight>
4747
4747
  **/
4748
- close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
4748
+ close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
4749
4749
  /**
4750
4750
  * Disapprove a proposal, close, and remove it from the system, regardless of its current
4751
4751
  * state.
@@ -5266,7 +5266,7 @@ declare module '@polkadot/api-base/types/submittable' {
5266
5266
  * Events:
5267
5267
  * - `OverweightServiced`: On success.
5268
5268
  **/
5269
- serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64]>;
5269
+ serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, Weight]>;
5270
5270
  /**
5271
5271
  * Generic tx
5272
5272
  **/
@@ -5598,7 +5598,7 @@ declare module '@polkadot/api-base/types/submittable' {
5598
5598
  V1: any;
5599
5599
  } | {
5600
5600
  V2: any;
5601
- } | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, u64]>;
5601
+ } | string | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, Weight]>;
5602
5602
  /**
5603
5603
  * Set a safe XCM version (the version that XCM should be encoded with if the most recent
5604
5604
  * version a destination can accept is unknown).
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "9.2.3",
23
+ "version": "9.3.2",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
@@ -186,11 +186,11 @@
186
186
  },
187
187
  "dependencies": {
188
188
  "@babel/runtime": "^7.18.9",
189
- "@polkadot/api-base": "9.2.3",
190
- "@polkadot/rpc-augment": "9.2.3",
191
- "@polkadot/types": "9.2.3",
192
- "@polkadot/types-augment": "9.2.3",
193
- "@polkadot/types-codec": "9.2.3",
194
- "@polkadot/util": "^10.1.5"
189
+ "@polkadot/api-base": "9.3.2",
190
+ "@polkadot/rpc-augment": "9.3.2",
191
+ "@polkadot/types": "9.3.2",
192
+ "@polkadot/types-augment": "9.3.2",
193
+ "@polkadot/types-codec": "9.3.2",
194
+ "@polkadot/util": "^10.1.7"
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.2.3'
8
+ version: '9.3.2'
9
9
  };
@@ -2,7 +2,7 @@ import '@polkadot/api-base/types/consts';
2
2
  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
- import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
5
+ import type { Perbill, Percent, Permill, Weight } from '@polkadot/types/interfaces/runtime';
6
6
  import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
7
7
  export declare type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
8
8
  declare module '@polkadot/api-base/types/consts' {
@@ -294,7 +294,7 @@ declare module '@polkadot/api-base/types/consts' {
294
294
  * this pallet), then [`MinerConfig::solution_weight`] is used to compare against
295
295
  * this value.
296
296
  **/
297
- signedMaxWeight: u64 & AugmentedConst<ApiType>;
297
+ signedMaxWeight: Weight & AugmentedConst<ApiType>;
298
298
  /**
299
299
  * Duration of the signed phase.
300
300
  **/
@@ -553,7 +553,7 @@ declare module '@polkadot/api-base/types/consts' {
553
553
  * The maximum weight that may be scheduled per block for any dispatchables of less
554
554
  * priority than `schedule::HARD_DEADLINE`.
555
555
  **/
556
- maximumWeight: u64 & AugmentedConst<ApiType>;
556
+ maximumWeight: Weight & AugmentedConst<ApiType>;
557
557
  /**
558
558
  * The maximum number of scheduled calls in the queue for a single block.
559
559
  * Not strictly enforced, but used for weight estimation.
@@ -633,7 +633,7 @@ declare module '@polkadot/api-base/types/consts' {
633
633
  **/
634
634
  dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
635
635
  /**
636
- * The designated SS85 prefix of this chain.
636
+ * The designated SS58 prefix of this chain.
637
637
  *
638
638
  * This replaces the "ss58Format" property declared in the chain spec. Reason is
639
639
  * that the runtime should know about the prefix in order to make use of it as
@@ -3,8 +3,8 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
3
3
  import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { ITuple } from '@polkadot/types-codec/types';
5
5
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
- import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
6
+ import type { AccountId32, H256, Weight } from '@polkadot/types/interfaces/runtime';
7
+ import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, 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> {
@@ -537,11 +537,17 @@ declare module '@polkadot/api-base/types/events' {
537
537
  };
538
538
  electionProviderMultiPhase: {
539
539
  /**
540
- * The election has been finalized, with `Some` of the given computation, or else if the
541
- * election failed, `None`.
540
+ * An election failed.
541
+ *
542
+ * Not much can be said about which computes failed in the process.
543
+ **/
544
+ ElectionFailed: AugmentedEvent<ApiType, []>;
545
+ /**
546
+ * The election has been finalized, with the given computation and score.
542
547
  **/
543
- ElectionFinalized: AugmentedEvent<ApiType, [electionCompute: Option<PalletElectionProviderMultiPhaseElectionCompute>], {
544
- electionCompute: Option<PalletElectionProviderMultiPhaseElectionCompute>;
548
+ ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], {
549
+ compute: PalletElectionProviderMultiPhaseElectionCompute;
550
+ score: SpNposElectionsElectionScore;
545
551
  }>;
546
552
  /**
547
553
  * An account has been rewarded for their signed submission being finalized.
@@ -571,8 +577,8 @@ declare module '@polkadot/api-base/types/events' {
571
577
  *
572
578
  * The `bool` is `true` when a previous solution was ejected to make room for this one.
573
579
  **/
574
- SolutionStored: AugmentedEvent<ApiType, [electionCompute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], {
575
- electionCompute: PalletElectionProviderMultiPhaseElectionCompute;
580
+ SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], {
581
+ compute: PalletElectionProviderMultiPhaseElectionCompute;
576
582
  prevEjected: bool;
577
583
  }>;
578
584
  /**
@@ -1560,14 +1566,14 @@ declare module '@polkadot/api-base/types/events' {
1560
1566
  *
1561
1567
  * \[ para, id, overweight_index, required \]
1562
1568
  **/
1563
- OverweightEnqueued: AugmentedEvent<ApiType, [u32, U8aFixed, u64, u64]>;
1569
+ OverweightEnqueued: AugmentedEvent<ApiType, [u32, U8aFixed, u64, Weight]>;
1564
1570
  /**
1565
1571
  * Upward message from the overweight queue was executed with the given actual weight
1566
1572
  * used.
1567
1573
  *
1568
1574
  * \[ overweight_index, used \]
1569
1575
  **/
1570
- OverweightServiced: AugmentedEvent<ApiType, [u64, u64]>;
1576
+ OverweightServiced: AugmentedEvent<ApiType, [u64, Weight]>;
1571
1577
  /**
1572
1578
  * Upward message is unsupported version of XCM.
1573
1579
  * \[ id \]
@@ -1582,7 +1588,7 @@ declare module '@polkadot/api-base/types/events' {
1582
1588
  * The weight limit for handling upward messages was reached.
1583
1589
  * \[ id, remaining, required \]
1584
1590
  **/
1585
- WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, u64, u64]>;
1591
+ WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, Weight, Weight]>;
1586
1592
  /**
1587
1593
  * Generic event
1588
1594
  **/
@@ -1729,7 +1735,7 @@ declare module '@polkadot/api-base/types/events' {
1729
1735
  *
1730
1736
  * \[ id, pallet index, call index, actual weight, max budgeted weight \]
1731
1737
  **/
1732
- NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, u64, u64]>;
1738
+ NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, Weight, Weight]>;
1733
1739
  /**
1734
1740
  * A given location which had a version change subscription was dropped owing to an error
1735
1741
  * migrating the location to our new XCM format.
@@ -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 { 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, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, 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, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
8
+ import type { FrameSupportWeightsPerDispatchClassWeight, 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, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, 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, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, 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>;
@@ -1623,7 +1623,7 @@ declare module '@polkadot/api-base/types/storage' {
1623
1623
  /**
1624
1624
  * The current weight for the block.
1625
1625
  **/
1626
- blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportWeightsPerDispatchClassU64>, []> & QueryableStorageEntry<ApiType, []>;
1626
+ blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportWeightsPerDispatchClassWeight>, []> & QueryableStorageEntry<ApiType, []>;
1627
1627
  /**
1628
1628
  * Digest of the current block, also part of the block header.
1629
1629
  **/
@@ -13,7 +13,7 @@ import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
13
13
  import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
14
14
  import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
15
15
  import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
16
- import type { AccountId, Block, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId } from '@polkadot/types/interfaces/runtime';
16
+ import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId } from '@polkadot/types/interfaces/runtime';
17
17
  import type { SessionIndex } from '@polkadot/types/interfaces/session';
18
18
  import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
19
19
  import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
@@ -238,6 +238,17 @@ declare module '@polkadot/api-base/types/calls' {
238
238
  **/
239
239
  [key: string]: DecoratedCallBase<ApiType>;
240
240
  };
241
+ /** 0x17a6bc0d0062aeb3/1 */
242
+ nominationPoolsApi: {
243
+ /**
244
+ * Returns the pending rewards for the given member.
245
+ **/
246
+ pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
247
+ /**
248
+ * Generic call
249
+ **/
250
+ [key: string]: DecoratedCallBase<ApiType>;
251
+ };
241
252
  /** 0xf78b278be53f454c/2 */
242
253
  offchainWorkerApi: {
243
254
  /**
package/polkadot/tx.d.ts CHANGED
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
4
4
  import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
5
5
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
7
- import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
7
+ import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Weight } from '@polkadot/types/interfaces/runtime';
8
8
  import type { FrameSupportScheduleMaybeHashed, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, 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';
9
9
  export declare type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
10
10
  export declare type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
@@ -882,11 +882,11 @@ declare module '@polkadot/api-base/types/submittable' {
882
882
  /**
883
883
  * Sets the maximum amount of weight any individual upward message may consume.
884
884
  **/
885
- setUmpMaxIndividualWeight: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
885
+ setUmpMaxIndividualWeight: AugmentedSubmittable<(updated: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Weight]>;
886
886
  /**
887
887
  * Sets the soft limit for the phase of dispatching dispatchable upward messages.
888
888
  **/
889
- setUmpServiceTotalWeight: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
889
+ setUmpServiceTotalWeight: AugmentedSubmittable<(updated: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Weight]>;
890
890
  /**
891
891
  * Set the validation upgrade cooldown.
892
892
  **/
@@ -939,7 +939,7 @@ declare module '@polkadot/api-base/types/submittable' {
939
939
  * - up to 3 events
940
940
  * # </weight>
941
941
  **/
942
- close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
942
+ close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
943
943
  /**
944
944
  * Disapprove a proposal, close, and remove it from the system, regardless of its current
945
945
  * state.
@@ -2353,7 +2353,7 @@ declare module '@polkadot/api-base/types/submittable' {
2353
2353
  approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
2354
2354
  height?: any;
2355
2355
  index?: any;
2356
- } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, u64]>;
2356
+ } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, Weight]>;
2357
2357
  /**
2358
2358
  * Register approval for a dispatch to be made from a deterministic composite account if
2359
2359
  * approved by a total of `threshold - 1` of `other_signatories`.
@@ -2404,7 +2404,7 @@ declare module '@polkadot/api-base/types/submittable' {
2404
2404
  asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
2405
2405
  height?: any;
2406
2406
  index?: any;
2407
- } | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, u64]>;
2407
+ } | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, Weight]>;
2408
2408
  /**
2409
2409
  * Immediately dispatch a multi-signature call using a single approval from the caller.
2410
2410
  *
@@ -4101,7 +4101,7 @@ declare module '@polkadot/api-base/types/submittable' {
4101
4101
  * - up to 3 events
4102
4102
  * # </weight>
4103
4103
  **/
4104
- close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
4104
+ close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
4105
4105
  /**
4106
4106
  * Disapprove a proposal, close, and remove it from the system, regardless of its current
4107
4107
  * state.
@@ -4622,7 +4622,7 @@ declare module '@polkadot/api-base/types/submittable' {
4622
4622
  * Events:
4623
4623
  * - `OverweightServiced`: On success.
4624
4624
  **/
4625
- serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64]>;
4625
+ serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, Weight]>;
4626
4626
  /**
4627
4627
  * Generic tx
4628
4628
  **/
@@ -4954,7 +4954,7 @@ declare module '@polkadot/api-base/types/submittable' {
4954
4954
  V1: any;
4955
4955
  } | {
4956
4956
  V2: any;
4957
- } | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, u64]>;
4957
+ } | string | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, Weight]>;
4958
4958
  /**
4959
4959
  * Set a safe XCM version (the version that XCM should be encoded with if the most recent
4960
4960
  * version a destination can accept is unknown).
@@ -2,7 +2,7 @@ import '@polkadot/api-base/types/consts';
2
2
  import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
3
3
  import type { Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { Codec } from '@polkadot/types-codec/types';
5
- import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
5
+ import type { Perbill, Percent, Permill, Weight } from '@polkadot/types/interfaces/runtime';
6
6
  import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
7
7
  export declare type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
8
8
  declare module '@polkadot/api-base/types/consts' {
@@ -255,7 +255,7 @@ declare module '@polkadot/api-base/types/consts' {
255
255
  *
256
256
  * This is only relevant for parachains. Set to zero in case of a standalone chain.
257
257
  **/
258
- contractAccessWeight: u64 & AugmentedConst<ApiType>;
258
+ contractAccessWeight: Weight & AugmentedConst<ApiType>;
259
259
  /**
260
260
  * The maximum number of contracts that can be pending for deletion.
261
261
  *
@@ -282,7 +282,7 @@ declare module '@polkadot/api-base/types/consts' {
282
282
  * weight that is left for transactions. See [`Self::DeletionQueueDepth`] for more
283
283
  * information about the deletion queue.
284
284
  **/
285
- deletionWeightLimit: u64 & AugmentedConst<ApiType>;
285
+ deletionWeightLimit: Weight & AugmentedConst<ApiType>;
286
286
  /**
287
287
  * The amount of balance a caller has to pay for each byte of storage.
288
288
  *
@@ -455,7 +455,7 @@ declare module '@polkadot/api-base/types/consts' {
455
455
  * this pallet), then [`MinerConfig::solution_weight`] is used to compare against
456
456
  * this value.
457
457
  **/
458
- signedMaxWeight: u64 & AugmentedConst<ApiType>;
458
+ signedMaxWeight: Weight & AugmentedConst<ApiType>;
459
459
  /**
460
460
  * Duration of the signed phase.
461
461
  **/
@@ -851,7 +851,7 @@ declare module '@polkadot/api-base/types/consts' {
851
851
  * The maximum weight that may be scheduled per block for any dispatchables of less
852
852
  * priority than `schedule::HARD_DEADLINE`.
853
853
  **/
854
- maximumWeight: u64 & AugmentedConst<ApiType>;
854
+ maximumWeight: Weight & AugmentedConst<ApiType>;
855
855
  /**
856
856
  * The maximum number of scheduled calls in the queue for a single block.
857
857
  * Not strictly enforced, but used for weight estimation.
@@ -991,7 +991,7 @@ declare module '@polkadot/api-base/types/consts' {
991
991
  **/
992
992
  dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
993
993
  /**
994
- * The designated SS85 prefix of this chain.
994
+ * The designated SS58 prefix of this chain.
995
995
  *
996
996
  * This replaces the "ss58Format" property declared in the chain spec. Reason is
997
997
  * that the runtime should know about the prefix in order to make use of it as
@@ -10,7 +10,7 @@ declare module '@polkadot/api-base/types/errors' {
10
10
  **/
11
11
  AccountNonGrata: AugmentedError<ApiType>;
12
12
  /**
13
- * The founders/fellows/allies have already been initialized.
13
+ * The Alliance has been initialized, therefore cannot be initialized again.
14
14
  **/
15
15
  AllianceAlreadyInitialized: AugmentedError<ApiType>;
16
16
  /**
@@ -25,10 +25,22 @@ declare module '@polkadot/api-base/types/errors' {
25
25
  * Account is already a member.
26
26
  **/
27
27
  AlreadyMember: AugmentedError<ApiType>;
28
+ /**
29
+ * Account already gave retirement notice
30
+ **/
31
+ AlreadyRetiring: AugmentedError<ApiType>;
28
32
  /**
29
33
  * Item is already listed as unscrupulous.
30
34
  **/
31
35
  AlreadyUnscrupulous: AugmentedError<ApiType>;
36
+ /**
37
+ * Invalid witness data given.
38
+ **/
39
+ BadWitness: AugmentedError<ApiType>;
40
+ /**
41
+ * Founders must be provided to initialize the Alliance.
42
+ **/
43
+ FoundersMissing: AugmentedError<ApiType>;
32
44
  /**
33
45
  * Balance is insufficient for the required deposit.
34
46
  **/
@@ -65,6 +77,14 @@ declare module '@polkadot/api-base/types/errors' {
65
77
  * Account does not have voting rights.
66
78
  **/
67
79
  NoVotingRights: AugmentedError<ApiType>;
80
+ /**
81
+ * Account did not give a retirement notice required to retire.
82
+ **/
83
+ RetirementNoticeNotGiven: AugmentedError<ApiType>;
84
+ /**
85
+ * Retirement period has not passed.
86
+ **/
87
+ RetirementPeriodNotPassed: AugmentedError<ApiType>;
68
88
  /**
69
89
  * Length of website URL exceeds `MaxWebsiteUrlLength`.
70
90
  **/
@@ -81,10 +101,6 @@ declare module '@polkadot/api-base/types/errors' {
81
101
  * The number of unscrupulous items exceeds `MaxUnscrupulousItems`.
82
102
  **/
83
103
  TooManyUnscrupulousItems: AugmentedError<ApiType>;
84
- /**
85
- * This member is up for being kicked from the Alliance and cannot perform this operation.
86
- **/
87
- UpForKicking: AugmentedError<ApiType>;
88
104
  /**
89
105
  * The account's identity has no good judgement.
90
106
  **/
@@ -3,11 +3,18 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
3
3
  import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { ITuple } from '@polkadot/types-codec/types';
5
5
  import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
6
- import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
6
+ import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
7
7
  export declare type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
8
8
  declare module '@polkadot/api-base/types/events' {
9
9
  interface AugmentedEvents<ApiType extends ApiTypes> {
10
10
  alliance: {
11
+ /**
12
+ * Alliance disbanded.
13
+ **/
14
+ AllianceDisbanded: AugmentedEvent<ApiType, [members: Vec<AccountId32>, proposals: Vec<H256>], {
15
+ members: Vec<AccountId32>;
16
+ proposals: Vec<H256>;
17
+ }>;
11
18
  /**
12
19
  * An ally has been elevated to Fellow.
13
20
  **/
@@ -40,6 +47,12 @@ declare module '@polkadot/api-base/types/events' {
40
47
  member: AccountId32;
41
48
  unreserved: Option<u128>;
42
49
  }>;
50
+ /**
51
+ * A member gave retirement notice and their retirement period started.
52
+ **/
53
+ MemberRetirementPeriodStarted: AugmentedEvent<ApiType, [member: AccountId32], {
54
+ member: AccountId32;
55
+ }>;
43
56
  /**
44
57
  * Some accounts have been initialized as members (founders/fellows/allies).
45
58
  **/
@@ -765,11 +778,17 @@ declare module '@polkadot/api-base/types/events' {
765
778
  };
766
779
  electionProviderMultiPhase: {
767
780
  /**
768
- * The election has been finalized, with `Some` of the given computation, or else if the
769
- * election failed, `None`.
781
+ * An election failed.
782
+ *
783
+ * Not much can be said about which computes failed in the process.
784
+ **/
785
+ ElectionFailed: AugmentedEvent<ApiType, []>;
786
+ /**
787
+ * The election has been finalized, with the given computation and score.
770
788
  **/
771
- ElectionFinalized: AugmentedEvent<ApiType, [electionCompute: Option<PalletElectionProviderMultiPhaseElectionCompute>], {
772
- electionCompute: Option<PalletElectionProviderMultiPhaseElectionCompute>;
789
+ ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], {
790
+ compute: PalletElectionProviderMultiPhaseElectionCompute;
791
+ score: SpNposElectionsElectionScore;
773
792
  }>;
774
793
  /**
775
794
  * An account has been rewarded for their signed submission being finalized.
@@ -799,8 +818,8 @@ declare module '@polkadot/api-base/types/events' {
799
818
  *
800
819
  * The `bool` is `true` when a previous solution was ejected to make room for this one.
801
820
  **/
802
- SolutionStored: AugmentedEvent<ApiType, [electionCompute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], {
803
- electionCompute: PalletElectionProviderMultiPhaseElectionCompute;
821
+ SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], {
822
+ compute: PalletElectionProviderMultiPhaseElectionCompute;
804
823
  prevEjected: bool;
805
824
  }>;
806
825
  /**
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
4
4
  import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
5
5
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
7
+ import type { FrameSupportWeightsPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
8
8
  import type { Observable } from '@polkadot/types/types';
9
9
  export declare type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
10
10
  export declare type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
@@ -22,7 +22,12 @@ declare module '@polkadot/api-base/types/storage' {
22
22
  /**
23
23
  * Maps member type to members of each type.
24
24
  **/
25
- members: AugmentedQuery<ApiType, (arg: PalletAllianceMemberRole | 'Founder' | 'Fellow' | 'Ally' | number | Uint8Array) => Observable<Vec<AccountId32>>, [PalletAllianceMemberRole]> & QueryableStorageEntry<ApiType, [PalletAllianceMemberRole]>;
25
+ members: AugmentedQuery<ApiType, (arg: PalletAllianceMemberRole | 'Founder' | 'Fellow' | 'Ally' | 'Retiring' | number | Uint8Array) => Observable<Vec<AccountId32>>, [PalletAllianceMemberRole]> & QueryableStorageEntry<ApiType, [PalletAllianceMemberRole]>;
26
+ /**
27
+ * A set of members who gave a retirement notice. They can retire after the end of retirement
28
+ * period stored as a future block number.
29
+ **/
30
+ retiringMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
26
31
  /**
27
32
  * The IPFS CID of the alliance rule.
28
33
  * Founders and fellows can propose a new rule with a super-majority.
@@ -39,11 +44,6 @@ declare module '@polkadot/api-base/types/storage' {
39
44
  * The current list of websites deemed unscrupulous.
40
45
  **/
41
46
  unscrupulousWebsites: AugmentedQuery<ApiType, () => Observable<Vec<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
42
- /**
43
- * A set of members that are (potentially) being kicked out. They cannot retire until the
44
- * motion is settled.
45
- **/
46
- upForKicking: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<bool>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
47
47
  /**
48
48
  * Generic query
49
49
  **/
@@ -1529,7 +1529,7 @@ declare module '@polkadot/api-base/types/storage' {
1529
1529
  /**
1530
1530
  * The current weight for the block.
1531
1531
  **/
1532
- blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportWeightsPerDispatchClassU64>, []> & QueryableStorageEntry<ApiType, []>;
1532
+ blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportWeightsPerDispatchClassWeight>, []> & QueryableStorageEntry<ApiType, []>;
1533
1533
  /**
1534
1534
  * Digest of the current block, also part of the block header.
1535
1535
  **/
@@ -11,7 +11,6 @@ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
11
11
  import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
12
12
  import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
13
13
  import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
14
- import type { NpApiError } from '@polkadot/types/interfaces/nompools';
15
14
  import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
16
15
  import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot } from '@polkadot/types/interfaces/runtime';
17
16
  import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
@@ -254,7 +253,7 @@ declare module '@polkadot/api-base/types/calls' {
254
253
  /**
255
254
  * Returns the pending rewards for the given member.
256
255
  **/
257
- pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Result<Balance, NpApiError>>>;
256
+ pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
258
257
  /**
259
258
  * Generic call
260
259
  **/
package/substrate/tx.d.ts CHANGED
@@ -3,8 +3,8 @@ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableE
3
3
  import type { Data } from '@polkadot/types';
4
4
  import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
5
5
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
6
- import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
6
+ import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill, Weight } from '@polkadot/types/interfaces/runtime';
7
+ import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceForceSetWitness, PalletAllianceUnscrupulousItem, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
8
8
  export declare type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
9
9
  export declare type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
10
10
  export declare type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
@@ -32,7 +32,7 @@ declare module '@polkadot/api-base/types/submittable' {
32
32
  *
33
33
  * Requires the sender to be a founder or fellow.
34
34
  **/
35
- close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
35
+ close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
36
36
  /**
37
37
  * Elevate an ally to fellow.
38
38
  **/
@@ -49,10 +49,25 @@ declare module '@polkadot/api-base/types/submittable' {
49
49
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
50
50
  /**
51
51
  * Initialize the founders, fellows, and allies.
52
+ * Founders must be provided to initialize the Alliance.
52
53
  *
53
- * This should only be called once, and must be called by the Root origin.
54
+ * Provide witness data to disband current Alliance before initializing new.
55
+ * Alliance must be empty or disband first to initialize new.
56
+ *
57
+ * Alliance is only disbanded if new member set is not provided.
58
+ *
59
+ * Must be called by the Root origin.
54
60
  **/
55
- initMembers: AugmentedSubmittable<(founders: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], fellows: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], allies: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Vec<AccountId32>, Vec<AccountId32>]>;
61
+ forceSetMembers: AugmentedSubmittable<(founders: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], fellows: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], allies: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], witness: PalletAllianceForceSetWitness | {
62
+ proposals?: any;
63
+ votingMembers?: any;
64
+ allyMembers?: any;
65
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Vec<AccountId32>, Vec<AccountId32>, PalletAllianceForceSetWitness]>;
66
+ /**
67
+ * As a member, give a retirement notice and start a retirement period required to pass in
68
+ * order to retire.
69
+ **/
70
+ giveRetirementNotice: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
56
71
  /**
57
72
  * Submit oneself for candidacy. A fixed deposit is reserved.
58
73
  **/
@@ -110,6 +125,7 @@ declare module '@polkadot/api-base/types/submittable' {
110
125
  } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<PalletAllianceUnscrupulousItem>]>;
111
126
  /**
112
127
  * As a member, retire from the alliance and unreserve the deposit.
128
+ * This can only be done once you have `give_retirement_notice` and it has expired.
113
129
  **/
114
130
  retire: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
115
131
  /**
@@ -173,7 +189,7 @@ declare module '@polkadot/api-base/types/submittable' {
173
189
  * - up to 3 events
174
190
  * # </weight>
175
191
  **/
176
- close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
192
+ close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
177
193
  /**
178
194
  * Disapprove a proposal, close, and remove it from the system, regardless of its current
179
195
  * state.
@@ -1611,7 +1627,7 @@ declare module '@polkadot/api-base/types/submittable' {
1611
1627
  Address32: any;
1612
1628
  } | {
1613
1629
  Address20: any;
1614
- } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u64>, Option<Compact<u128>>, Bytes]>;
1630
+ } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<Weight> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<Weight>, Option<Compact<u128>>, Bytes]>;
1615
1631
  /**
1616
1632
  * Instantiates a contract from a previously deployed wasm binary.
1617
1633
  *
@@ -1619,7 +1635,7 @@ declare module '@polkadot/api-base/types/submittable' {
1619
1635
  * code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
1620
1636
  * must be supplied.
1621
1637
  **/
1622
- instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Compact<u64>, Option<Compact<u128>>, H256, Bytes, Bytes]>;
1638
+ instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<Weight> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Compact<Weight>, Option<Compact<u128>>, H256, Bytes, Bytes]>;
1623
1639
  /**
1624
1640
  * Instantiates a new contract from the supplied `code` optionally transferring
1625
1641
  * some balance.
@@ -1648,7 +1664,7 @@ declare module '@polkadot/api-base/types/submittable' {
1648
1664
  * - The `value` is transferred to the new account.
1649
1665
  * - The `deploy` function is executed in the context of the newly-created account.
1650
1666
  **/
1651
- instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Compact<u64>, Option<Compact<u128>>, Bytes, Bytes, Bytes]>;
1667
+ instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<Weight> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Compact<Weight>, Option<Compact<u128>>, Bytes, Bytes, Bytes]>;
1652
1668
  /**
1653
1669
  * Remove the code stored under `code_hash` and refund the deposit to its owner.
1654
1670
  *
@@ -1896,7 +1912,7 @@ declare module '@polkadot/api-base/types/submittable' {
1896
1912
  * - up to 3 events
1897
1913
  * # </weight>
1898
1914
  **/
1899
- close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
1915
+ close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
1900
1916
  /**
1901
1917
  * Disapprove a proposal, close, and remove it from the system, regardless of its current
1902
1918
  * state.
@@ -3347,7 +3363,7 @@ declare module '@polkadot/api-base/types/submittable' {
3347
3363
  approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
3348
3364
  height?: any;
3349
3365
  index?: any;
3350
- } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, u64]>;
3366
+ } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, Weight]>;
3351
3367
  /**
3352
3368
  * Register approval for a dispatch to be made from a deterministic composite account if
3353
3369
  * approved by a total of `threshold - 1` of `other_signatories`.
@@ -3398,7 +3414,7 @@ declare module '@polkadot/api-base/types/submittable' {
3398
3414
  asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
3399
3415
  height?: any;
3400
3416
  index?: any;
3401
- } | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, u64]>;
3417
+ } | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, Weight]>;
3402
3418
  /**
3403
3419
  * Immediately dispatch a multi-signature call using a single approval from the caller.
3404
3420
  *
@@ -5723,7 +5739,7 @@ declare module '@polkadot/api-base/types/submittable' {
5723
5739
  * - The weight of this call is defined by the caller.
5724
5740
  * # </weight>
5725
5741
  **/
5726
- sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, u64]>;
5742
+ sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Weight]>;
5727
5743
  /**
5728
5744
  * Generic tx
5729
5745
  **/
@@ -5832,7 +5848,7 @@ declare module '@polkadot/api-base/types/submittable' {
5832
5848
  * - up to 3 events
5833
5849
  * # </weight>
5834
5850
  **/
5835
- close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
5851
+ close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
5836
5852
  /**
5837
5853
  * Disapprove a proposal, close, and remove it from the system, regardless of its current
5838
5854
  * state.
@@ -6387,6 +6403,8 @@ declare module '@polkadot/api-base/types/submittable' {
6387
6403
  * - `item`: The item of the item to be approved for delegated transfer.
6388
6404
  * - `delegate`: The account to delegate permission to transfer the item.
6389
6405
  *
6406
+ * Important NOTE: The `approved` account gets reset after each transfer.
6407
+ *
6390
6408
  * Emits `ApprovedTransfer` on success.
6391
6409
  *
6392
6410
  * Weight: `O(1)`
@@ -6909,6 +6927,8 @@ declare module '@polkadot/api-base/types/submittable' {
6909
6927
  /**
6910
6928
  * Move an item from the sender account to another.
6911
6929
  *
6930
+ * This resets the approved account of the item.
6931
+ *
6912
6932
  * Origin must be Signed and the signing account must be either:
6913
6933
  * - the Admin of the `collection`;
6914
6934
  * - the Owner of the `item`;
@@ -7218,7 +7238,7 @@ declare module '@polkadot/api-base/types/submittable' {
7218
7238
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
7219
7239
  };
7220
7240
  whitelist: {
7221
- dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callWeightWitness: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u64]>;
7241
+ dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callWeightWitness: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Weight]>;
7222
7242
  dispatchWhitelistedCallWithPreimage: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
7223
7243
  removeWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
7224
7244
  whitelistCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;