Skip to content

Commit 264cc93

Browse files
authored
Bump metadata (#4806)
1 parent 6e23a27 commit 264cc93

File tree

30 files changed

+4323
-3227
lines changed

30 files changed

+4323
-3227
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Changes:
88
- Add explicit support for `Call` typegen (inclusive of non-defaults)
99
- Deupe `wss://` handling in `polkadot-types-from-{chain, defs}`
1010
- Allow for optional `definitions.ts` in typegen (only use chain)
11+
- Update to latest Substrate, Kusama & Polkadot static metadata
1112

1213

1314
## 8.3.2 May 8, 2022

packages/api-augment/src/kusama/errors.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,9 @@ declare module '@polkadot/api-base/types/errors' {
9393
};
9494
bagsList: {
9595
/**
96-
* Id not found in list.
96+
* A error in the list interface implementation.
9797
**/
98-
IdNotFound: AugmentedError<ApiType>;
99-
/**
100-
* An Id does not have a greater score than another Id.
101-
**/
102-
NotHeavier: AugmentedError<ApiType>;
103-
/**
104-
* Attempted to place node in front of a node in another bag.
105-
**/
106-
NotInSameBag: AugmentedError<ApiType>;
98+
List: AugmentedError<ApiType>;
10799
/**
108100
* Generic error
109101
**/

packages/api-augment/src/kusama/events.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,10 @@ declare module '@polkadot/api-base/types/events' {
11681168
* Batch of dispatches completed fully with no error.
11691169
**/
11701170
BatchCompleted: AugmentedEvent<ApiType, []>;
1171+
/**
1172+
* Batch of dispatches completed but has errors.
1173+
**/
1174+
BatchCompletedWithErrors: AugmentedEvent<ApiType, []>;
11711175
/**
11721176
* Batch of dispatches did not complete fully. Index of first failing dispatch given, as
11731177
* well as the error.
@@ -1181,6 +1185,10 @@ declare module '@polkadot/api-base/types/events' {
11811185
* A single item within a Batch of dispatches has completed with no error.
11821186
**/
11831187
ItemCompleted: AugmentedEvent<ApiType, []>;
1188+
/**
1189+
* A single item within a Batch of dispatches has completed with error.
1190+
**/
1191+
ItemFailed: AugmentedEvent<ApiType, [SpRuntimeDispatchError]>;
11841192
/**
11851193
* Generic event
11861194
**/

packages/api-augment/src/kusama/query.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, W
77
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
88
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
99
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
10-
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
10+
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
1111
import type { Observable } from '@polkadot/types/types';
1212

1313
declare module '@polkadot/api-base/types/storage' {
@@ -68,7 +68,7 @@ declare module '@polkadot/api-base/types/storage' {
6868
* This field should always be populated during block processing unless
6969
* secondary plain slots are enabled (which don't contain a VRF output).
7070
*
71-
* It is set in `on_initialize`, before it will contain the value from the last block.
71+
* It is set in `on_finalize`, before it will contain the value from the last block.
7272
**/
7373
authorVrfRandomness: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []> & QueryableStorageEntry<ApiType, []>;
7474
/**
@@ -101,7 +101,7 @@ declare module '@polkadot/api-base/types/storage' {
101101
* Temporary value (cleared at block finalization) which is `Some`
102102
* if per-block initialization has already been called for current block.
103103
**/
104-
initialized: AugmentedQuery<ApiType, () => Observable<Option<Option<U8aFixed>>>, []> & QueryableStorageEntry<ApiType, []>;
104+
initialized: AugmentedQuery<ApiType, () => Observable<Option<Option<SpConsensusBabeDigestsPreDigest>>>, []> & QueryableStorageEntry<ApiType, []>;
105105
/**
106106
* How late the current block is compared to its parent.
107107
*

packages/api-augment/src/kusama/tx.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4189,6 +4189,23 @@ declare module '@polkadot/api-base/types/submittable' {
41894189
* # </weight>
41904190
**/
41914191
dispatchAs: AugmentedSubmittable<(asOrigin: KusamaRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeOriginCaller, Call]>;
4192+
/**
4193+
* Send a batch of dispatch calls.
4194+
* Unlike `batch`, it allows errors and won't interrupt.
4195+
*
4196+
* May be called from any origin.
4197+
*
4198+
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
4199+
* exceed the constant: `batched_calls_limit` (available in constant metadata).
4200+
*
4201+
* If origin is root then call are dispatch without checking origin filter. (This includes
4202+
* bypassing `frame_system::Config::BaseCallFilter`).
4203+
*
4204+
* # <weight>
4205+
* - Complexity: O(C) where C is the number of calls to be batched.
4206+
* # </weight>
4207+
**/
4208+
forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
41924209
/**
41934210
* Generic tx
41944211
**/

packages/api-augment/src/polkadot/errors.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,9 @@ declare module '@polkadot/api-base/types/errors' {
9393
};
9494
bagsList: {
9595
/**
96-
* Id not found in list.
96+
* A error in the list interface implementation.
9797
**/
98-
IdNotFound: AugmentedError<ApiType>;
99-
/**
100-
* An Id does not have a greater score than another Id.
101-
**/
102-
NotHeavier: AugmentedError<ApiType>;
103-
/**
104-
* Attempted to place node in front of a node in another bag.
105-
**/
106-
NotInSameBag: AugmentedError<ApiType>;
98+
List: AugmentedError<ApiType>;
10799
/**
108100
* Generic error
109101
**/

packages/api-augment/src/polkadot/events.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,10 @@ declare module '@polkadot/api-base/types/events' {
10431043
* Batch of dispatches completed fully with no error.
10441044
**/
10451045
BatchCompleted: AugmentedEvent<ApiType, []>;
1046+
/**
1047+
* Batch of dispatches completed but has errors.
1048+
**/
1049+
BatchCompletedWithErrors: AugmentedEvent<ApiType, []>;
10461050
/**
10471051
* Batch of dispatches did not complete fully. Index of first failing dispatch given, as
10481052
* well as the error.
@@ -1056,6 +1060,10 @@ declare module '@polkadot/api-base/types/events' {
10561060
* A single item within a Batch of dispatches has completed with no error.
10571061
**/
10581062
ItemCompleted: AugmentedEvent<ApiType, []>;
1063+
/**
1064+
* A single item within a Batch of dispatches has completed with error.
1065+
**/
1066+
ItemFailed: AugmentedEvent<ApiType, [SpRuntimeDispatchError]>;
10591067
/**
10601068
* Generic event
10611069
**/

0 commit comments

Comments
 (0)