Skip to content

Commit 79694d8

Browse files
authored
9.14.1 (#5481)
* 9.14.1 * Rebuild metadata
1 parent 95be64c commit 79694d8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+10714
-9733
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# CHANGELOG
22

3-
## master
3+
## 9.14.1 Feb 12, 2023
44

55
Changes:
66

77
- Extract aliases for `*_runtime::Runtime{Call, Event}` from metadata
8+
- Update to latest Polkadot, Kusama & Substrate metadata
89

910

1011
## 9.13.6 Feb 5, 2023

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"sideEffects": false,
1313
"type": "module",
14-
"version": "9.13.7-1-x",
14+
"version": "9.14.0",
1515
"versions": {
1616
"git": "9.13.7-1-x",
1717
"npm": "9.13.6"
@@ -39,7 +39,7 @@
3939
"@babel/core": "^7.20.12",
4040
"@babel/register": "^7.18.9",
4141
"@babel/runtime": "^7.20.13",
42-
"@polkadot/dev": "^0.68.6",
42+
"@polkadot/dev": "^0.68.20",
4343
"@polkadot/typegen": "workspace:packages/typegen",
4444
"@types/jest": "^29.4.0",
4545
"copyfiles": "^2.4.1"

packages/api-augment/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
"./detectPackage.cjs"
2121
],
2222
"type": "module",
23-
"version": "9.13.7-1-x",
23+
"version": "9.14.0",
2424
"main": "index.js",
2525
"dependencies": {
2626
"@babel/runtime": "^7.20.13",
27-
"@polkadot/api-base": "9.13.7-1-x",
28-
"@polkadot/rpc-augment": "9.13.7-1-x",
29-
"@polkadot/types": "9.13.7-1-x",
30-
"@polkadot/types-augment": "9.13.7-1-x",
31-
"@polkadot/types-codec": "9.13.7-1-x",
32-
"@polkadot/util": "^10.3.1"
27+
"@polkadot/api-base": "9.14.0",
28+
"@polkadot/rpc-augment": "9.14.0",
29+
"@polkadot/types": "9.14.0",
30+
"@polkadot/types-augment": "9.14.0",
31+
"@polkadot/types-codec": "9.14.0",
32+
"@polkadot/util": "^10.4.1"
3333
}
3434
}

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

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,6 @@ declare module '@polkadot/api-base/types/consts' {
3333
**/
3434
[key: string]: Codec;
3535
};
36-
authorship: {
37-
/**
38-
* The number of blocks back we should accept uncles.
39-
* This means that we will deal with uncle-parents that are
40-
* `UncleGenerations + 1` before `now`.
41-
**/
42-
uncleGenerations: u32 & AugmentedConst<ApiType>;
43-
/**
44-
* Generic const
45-
**/
46-
[key: string]: Codec;
47-
};
4836
babe: {
4937
/**
5038
* The amount of time, in slots, that each epoch should last.
@@ -399,6 +387,15 @@ declare module '@polkadot/api-base/types/consts' {
399387
* Max Authorities in use
400388
**/
401389
maxAuthorities: u32 & AugmentedConst<ApiType>;
390+
/**
391+
* The maximum number of entries to keep in the set id to session index mapping.
392+
*
393+
* Since the `SetIdSession` map is only used for validating equivocations this
394+
* value should relate to the bonding duration of whatever staking system is
395+
* being used (if any). If equivocation handling is not enabled then this value
396+
* can be zero.
397+
**/
398+
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
402399
/**
403400
* Generic const
404401
**/
@@ -620,18 +617,28 @@ declare module '@polkadot/api-base/types/consts' {
620617
/**
621618
* The maximum number of candidates in a phragmen election.
622619
*
623-
* Warning: The election happens onchain, and this value will determine
624-
* the size of the election. When this limit is reached no more
625-
* candidates are accepted in the election.
620+
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
621+
* consider how it will impact `T::WeightInfo::election_phragmen`.
622+
*
623+
* When this limit is reached no more candidates are accepted in the election.
626624
**/
627625
maxCandidates: u32 & AugmentedConst<ApiType>;
628626
/**
629627
* The maximum number of voters to allow in a phragmen election.
630628
*
631-
* Warning: This impacts the size of the election which is run onchain.
629+
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
630+
* consider how it will impact `T::WeightInfo::election_phragmen`.
631+
*
632632
* When the limit is reached the new voters are ignored.
633633
**/
634634
maxVoters: u32 & AugmentedConst<ApiType>;
635+
/**
636+
* Maximum numbers of votes per voter.
637+
*
638+
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
639+
* consider how it will impact `T::WeightInfo::election_phragmen`.
640+
**/
641+
maxVotesPerVoter: u32 & AugmentedConst<ApiType>;
635642
/**
636643
* Identifier for the elections-phragmen pallet's lock
637644
**/

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

Lines changed: 21 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -45,40 +45,6 @@ declare module '@polkadot/api-base/types/errors' {
4545
**/
4646
[key: string]: AugmentedError<ApiType>;
4747
};
48-
authorship: {
49-
/**
50-
* The uncle is genesis.
51-
**/
52-
GenesisUncle: AugmentedError<ApiType>;
53-
/**
54-
* The uncle parent not in the chain.
55-
**/
56-
InvalidUncleParent: AugmentedError<ApiType>;
57-
/**
58-
* The uncle isn't recent enough to be included.
59-
**/
60-
OldUncle: AugmentedError<ApiType>;
61-
/**
62-
* The uncle is too high in chain.
63-
**/
64-
TooHighUncle: AugmentedError<ApiType>;
65-
/**
66-
* Too many uncles.
67-
**/
68-
TooManyUncles: AugmentedError<ApiType>;
69-
/**
70-
* The uncle is already included.
71-
**/
72-
UncleAlreadyIncluded: AugmentedError<ApiType>;
73-
/**
74-
* Uncles already set in the block.
75-
**/
76-
UnclesAlreadySet: AugmentedError<ApiType>;
77-
/**
78-
* Generic error
79-
**/
80-
[key: string]: AugmentedError<ApiType>;
81-
};
8248
babe: {
8349
/**
8450
* A given equivocation report is valid but already previously reported.
@@ -509,6 +475,10 @@ declare module '@polkadot/api-base/types/errors' {
509475
* The given account did not vote on the referendum.
510476
**/
511477
NotVoter: AugmentedError<ApiType>;
478+
/**
479+
* The preimage does not exist.
480+
**/
481+
PreimageNotExist: AugmentedError<ApiType>;
512482
/**
513483
* Proposal still blacklisted
514484
**/
@@ -724,6 +694,10 @@ declare module '@polkadot/api-base/types/errors' {
724694
* No track exists for the proposal origin.
725695
**/
726696
NoTrack: AugmentedError<ApiType>;
697+
/**
698+
* The preimage does not exist.
699+
**/
700+
PreimageNotExist: AugmentedError<ApiType>;
727701
/**
728702
* The queue of the track is empty.
729703
**/
@@ -1478,12 +1452,20 @@ declare module '@polkadot/api-base/types/errors' {
14781452
* Invalid signature on statement.
14791453
**/
14801454
InvalidSignature: AugmentedError<ApiType>;
1455+
/**
1456+
* A dispute vote from a malicious backer.
1457+
**/
1458+
MaliciousBacker: AugmentedError<ApiType>;
1459+
/**
1460+
* No backing votes were provides along dispute statements.
1461+
**/
1462+
MissingBackingVotes: AugmentedError<ApiType>;
14811463
/**
14821464
* A dispute where there are only votes on one side.
14831465
**/
14841466
SingleSidedDispute: AugmentedError<ApiType>;
14851467
/**
1486-
* Unconfirmed dispute statement sets provided
1468+
* Unconfirmed dispute statement sets provided.
14871469
**/
14881470
UnconfirmedDispute: AugmentedError<ApiType>;
14891471
/**
@@ -1748,6 +1730,10 @@ declare module '@polkadot/api-base/types/errors' {
17481730
* No track exists for the proposal origin.
17491731
**/
17501732
NoTrack: AugmentedError<ApiType>;
1733+
/**
1734+
* The preimage does not exist.
1735+
**/
1736+
PreimageNotExist: AugmentedError<ApiType>;
17511737
/**
17521738
* The queue of the track is empty.
17531739
**/

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

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
1010
import type { ITuple } from '@polkadot/types-codec/types';
1111
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
1212
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
13-
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
13+
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
1414

1515
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
1616

@@ -281,6 +281,18 @@ declare module '@polkadot/api-base/types/events' {
281281
* An external proposal has been tabled.
282282
**/
283283
ExternalTabled: AugmentedEvent<ApiType, []>;
284+
/**
285+
* Metadata for a proposal or a referendum has been cleared.
286+
**/
287+
MetadataCleared: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], { owner: PalletDemocracyMetadataOwner, hash_: H256 }>;
288+
/**
289+
* Metadata for a proposal or a referendum has been set.
290+
**/
291+
MetadataSet: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], { owner: PalletDemocracyMetadataOwner, hash_: H256 }>;
292+
/**
293+
* Metadata has been transferred to new owner.
294+
**/
295+
MetadataTransferred: AugmentedEvent<ApiType, [prevOwner: PalletDemocracyMetadataOwner, owner: PalletDemocracyMetadataOwner, hash_: H256], { prevOwner: PalletDemocracyMetadataOwner, owner: PalletDemocracyMetadataOwner, hash_: H256 }>;
284296
/**
285297
* A proposal has been rejected by referendum.
286298
**/
@@ -451,6 +463,14 @@ declare module '@polkadot/api-base/types/events' {
451463
* A referendum has been killed.
452464
**/
453465
Killed: AugmentedEvent<ApiType, [index: u32, tally: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
466+
/**
467+
* Metadata for a referendum has been cleared.
468+
**/
469+
MetadataCleared: AugmentedEvent<ApiType, [index: u32, hash_: H256], { index: u32, hash_: H256 }>;
470+
/**
471+
* Metadata for a referendum has been set.
472+
**/
473+
MetadataSet: AugmentedEvent<ApiType, [index: u32, hash_: H256], { index: u32, hash_: H256 }>;
454474
/**
455475
* A proposal has been rejected by referendum.
456476
**/
@@ -1025,6 +1045,14 @@ declare module '@polkadot/api-base/types/events' {
10251045
* A referendum has been killed.
10261046
**/
10271047
Killed: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
1048+
/**
1049+
* Metadata for a referendum has been cleared.
1050+
**/
1051+
MetadataCleared: AugmentedEvent<ApiType, [index: u32, hash_: H256], { index: u32, hash_: H256 }>;
1052+
/**
1053+
* Metadata for a referendum has been set.
1054+
**/
1055+
MetadataSet: AugmentedEvent<ApiType, [index: u32, hash_: H256], { index: u32, hash_: H256 }>;
10281056
/**
10291057
* A proposal has been rejected by referendum.
10301058
**/
@@ -1155,6 +1183,10 @@ declare module '@polkadot/api-base/types/events' {
11551183
* A new \[max\] member count has been set
11561184
**/
11571185
NewMaxMembers: AugmentedEvent<ApiType, [max: u32], { max: u32 }>;
1186+
/**
1187+
* A group of members has been choosen as Skeptics
1188+
**/
1189+
SkepticsChosen: AugmentedEvent<ApiType, [skeptics: Vec<AccountId32>], { skeptics: Vec<AccountId32> }>;
11581190
/**
11591191
* A suspended member has been judged.
11601192
**/

0 commit comments

Comments
 (0)