Skip to content

Commit ab90f8b

Browse files
authored
Bump metadata (#4286)
* Bump metadata * Kusama & Polkadot * Build interfaces * Build json
1 parent 2217127 commit ab90f8b

File tree

21 files changed

+25088
-17353
lines changed

21 files changed

+25088
-17353
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Changes:
66

77
- Align `state_traceBlock` RPC with Substrate
8+
- Bump static metadata for latest Substrate, Polkadot & Kusama
89

910

1011
## 6.10.3 Nov 30, 2021

packages/api/src/augment/consts.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ declare module '@polkadot/api/types/consts' {
171171
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
172172
/**
173173
* Maximum acceptable reason length.
174+
*
175+
* Benchmarks depend on this value, be sure to update weights file when changing this value
174176
**/
175177
maximumReasonLength: u32 & AugmentedConst<ApiType>;
176178
/**
@@ -181,7 +183,7 @@ declare module '@polkadot/api/types/consts' {
181183
contracts: {
182184
/**
183185
* The deposit that must be placed into the contract's account to instantiate it.
184-
* This is in **addition** to the [`pallet_balances::Pallet::ExistenialDeposit`].
186+
* This is in **addition** to the [`Currency::minimum_balance`].
185187
* The minimum balance for a contract's account can be queried using
186188
* [`Pallet::subsistence_threshold`].
187189
**/
@@ -771,6 +773,8 @@ declare module '@polkadot/api/types/consts' {
771773
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
772774
/**
773775
* Maximum acceptable reason length.
776+
*
777+
* Benchmarks depend on this value, be sure to update weights file when changing this value
774778
**/
775779
maximumReasonLength: u32 & AugmentedConst<ApiType>;
776780
/**

packages/api/src/augment/errors.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,10 @@ declare module '@polkadot/api/types/errors' {
11511151
* The user has enough bond and thus cannot be chilled forcefully by an external person.
11521152
**/
11531153
CannotChillOther: AugmentedError<ApiType>;
1154+
/**
1155+
* Commission is too low. Must be at least `MinCommission`.
1156+
**/
1157+
CommissionTooLow: AugmentedError<ApiType>;
11541158
/**
11551159
* Duplicate index.
11561160
**/

packages/api/src/augment/events.ts

Lines changed: 39 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ declare module '@polkadot/api/types/events' {
55
import type { ApiTypes, AugmentedEvent, ModuleEvents } from '@polkadot/api/types';
66
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types';
77
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
8-
import type { FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, NodeRuntimeProxyType, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup';
8+
import type { FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, NodeRuntimeProxyType, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup';
99
import type { ITuple } from '@polkadot/types/types';
1010

1111
export interface AugmentedEvents<ApiType extends ApiTypes> {
@@ -306,6 +306,10 @@ declare module '@polkadot/api/types/events' {
306306
* A motion has been proposed by a public account.
307307
**/
308308
Proposed: AugmentedEvent<ApiType, [u32, u128]>;
309+
/**
310+
* An account has secconded a proposal
311+
**/
312+
Seconded: AugmentedEvent<ApiType, [AccountId32, u32]>;
309313
/**
310314
* A referendum has begun.
311315
**/
@@ -322,6 +326,10 @@ declare module '@polkadot/api/types/events' {
322326
* An external proposal has been vetoed.
323327
**/
324328
Vetoed: AugmentedEvent<ApiType, [AccountId32, H256, u32]>;
329+
/**
330+
* An account has voted in a referendum
331+
**/
332+
Voted: AugmentedEvent<ApiType, [AccountId32, u32, PalletDemocracyVoteAccountVote]>;
325333
/**
326334
* Generic event
327335
**/
@@ -640,15 +648,15 @@ declare module '@polkadot/api/types/events' {
640648
};
641649
scheduler: {
642650
/**
643-
* Canceled some task. \[when, index\]
651+
* Canceled some task.
644652
**/
645653
Canceled: AugmentedEvent<ApiType, [u32, u32]>;
646654
/**
647-
* Dispatched some task. \[task, id, result\]
655+
* Dispatched some task.
648656
**/
649657
Dispatched: AugmentedEvent<ApiType, [ITuple<[u32, u32]>, Option<Bytes>, Result<Null, SpRuntimeDispatchError>]>;
650658
/**
651-
* Scheduled some task. \[when, index\]
659+
* Scheduled some task.
652660
**/
653661
Scheduled: AugmentedEvent<ApiType, [u32, u32]>;
654662
/**
@@ -669,71 +677,70 @@ declare module '@polkadot/api/types/events' {
669677
};
670678
society: {
671679
/**
672-
* A \[candidate\] was dropped (due to an excess of bids in the system).
680+
* A candidate was dropped (due to an excess of bids in the system).
673681
**/
674682
AutoUnbid: AugmentedEvent<ApiType, [AccountId32]>;
675683
/**
676684
* A membership bid just happened. The given account is the candidate's ID and their offer
677-
* is the second. \[candidate_id, offer\]
685+
* is the second.
678686
**/
679687
Bid: AugmentedEvent<ApiType, [AccountId32, u128]>;
680688
/**
681-
* A \[candidate\] has been suspended
689+
* A candidate has been suspended
682690
**/
683691
CandidateSuspended: AugmentedEvent<ApiType, [AccountId32]>;
684692
/**
685-
* A \[member\] has been challenged
693+
* A member has been challenged
686694
**/
687695
Challenged: AugmentedEvent<ApiType, [AccountId32]>;
688696
/**
689-
* A vote has been placed for a defending member \[voter, vote\]
697+
* A vote has been placed for a defending member
690698
**/
691699
DefenderVote: AugmentedEvent<ApiType, [AccountId32, bool]>;
692700
/**
693-
* Some funds were deposited into the society account. \[value\]
701+
* Some funds were deposited into the society account.
694702
**/
695703
Deposit: AugmentedEvent<ApiType, [u128]>;
696704
/**
697-
* The society is founded by the given identity. \[founder\]
705+
* The society is founded by the given identity.
698706
**/
699707
Founded: AugmentedEvent<ApiType, [AccountId32]>;
700708
/**
701709
* A group of candidates have been inducted. The batch's primary is the first value, the
702-
* batch in full is the second. \[primary, candidates\]
710+
* batch in full is the second.
703711
**/
704712
Inducted: AugmentedEvent<ApiType, [AccountId32, Vec<AccountId32>]>;
705713
/**
706-
* A \[member\] has been suspended
714+
* A member has been suspended
707715
**/
708716
MemberSuspended: AugmentedEvent<ApiType, [AccountId32]>;
709717
/**
710718
* A new \[max\] member count has been set
711719
**/
712720
NewMaxMembers: AugmentedEvent<ApiType, [u32]>;
713721
/**
714-
* A suspended member has been judged. \[who, judged\]
722+
* A suspended member has been judged.
715723
**/
716724
SuspendedMemberJudgement: AugmentedEvent<ApiType, [AccountId32, bool]>;
717725
/**
718-
* A \[candidate\] was dropped (by their request).
726+
* A candidate was dropped (by their request).
719727
**/
720728
Unbid: AugmentedEvent<ApiType, [AccountId32]>;
721729
/**
722-
* Society is unfounded. \[founder\]
730+
* Society is unfounded.
723731
**/
724732
Unfounded: AugmentedEvent<ApiType, [AccountId32]>;
725733
/**
726-
* A \[candidate\] was dropped (by request of who vouched for them).
734+
* A candidate was dropped (by request of who vouched for them).
727735
**/
728736
Unvouch: AugmentedEvent<ApiType, [AccountId32]>;
729737
/**
730-
* A vote has been placed \[candidate, voter, vote\]
738+
* A vote has been placed
731739
**/
732740
Vote: AugmentedEvent<ApiType, [AccountId32, AccountId32, bool]>;
733741
/**
734742
* A membership bid just happened by vouching. The given account is the candidate's ID and
735-
* their offer is the second. The vouching party is the third. \[candidate_id, offer,
736-
* vouching\]
743+
* their offer is the second. The vouching party is the third.
737744
**/
738745
Vouch: AugmentedEvent<ApiType, [AccountId32, u128, AccountId32]>;
739746
/**
@@ -828,23 +835,23 @@ declare module '@polkadot/api/types/events' {
828835
**/
829836
CodeUpdated: AugmentedEvent<ApiType, []>;
830837
/**
831-
* An extrinsic failed. \[error, info\]
838+
* An extrinsic failed.
832839
**/
833840
ExtrinsicFailed: AugmentedEvent<ApiType, [SpRuntimeDispatchError, FrameSupportWeightsDispatchInfo]>;
834841
/**
835-
* An extrinsic completed successfully. \[info\]
842+
* An extrinsic completed successfully.
836843
**/
837844
ExtrinsicSuccess: AugmentedEvent<ApiType, [FrameSupportWeightsDispatchInfo]>;
838845
/**
839-
* An \[account\] was reaped.
846+
* An account was reaped.
840847
**/
841848
KilledAccount: AugmentedEvent<ApiType, [AccountId32]>;
842849
/**
843-
* A new \[account\] was created.
850+
* A new account was created.
844851
**/
845852
NewAccount: AugmentedEvent<ApiType, [AccountId32]>;
846853
/**
847-
* On on-chain remark happened. \[origin, remark_hash\]
854+
* On on-chain remark happened.
848855
**/
849856
Remarked: AugmentedEvent<ApiType, [AccountId32, H256]>;
850857
/**
@@ -964,32 +971,31 @@ declare module '@polkadot/api/types/events' {
964971
};
965972
treasury: {
966973
/**
967-
* Some funds have been allocated. \[proposal_index, award, beneficiary\]
974+
* Some funds have been allocated.
968975
**/
969976
Awarded: AugmentedEvent<ApiType, [u32, u128, AccountId32]>;
970977
/**
971-
* Some of our funds have been burnt. \[burn\]
978+
* Some of our funds have been burnt.
972979
**/
973980
Burnt: AugmentedEvent<ApiType, [u128]>;
974981
/**
975-
* Some funds have been deposited. \[deposit\]
982+
* Some funds have been deposited.
976983
**/
977984
Deposit: AugmentedEvent<ApiType, [u128]>;
978985
/**
979-
* New proposal. \[proposal_index\]
986+
* New proposal.
980987
**/
981988
Proposed: AugmentedEvent<ApiType, [u32]>;
982989
/**
983-
* A proposal was rejected; funds were slashed. \[proposal_index, slashed\]
990+
* A proposal was rejected; funds were slashed.
984991
**/
985992
Rejected: AugmentedEvent<ApiType, [u32, u128]>;
986993
/**
987994
* Spending has finished; this is the amount that rolls over until next spend.
988-
* \[budget_remaining\]
989995
**/
990996
Rollover: AugmentedEvent<ApiType, [u128]>;
991997
/**
992-
* We have ended a spend period and will now allocate funds. \[budget_remaining\]
998+
* We have ended a spend period and will now allocate funds.
993999
**/
9941000
Spending: AugmentedEvent<ApiType, [u128]>;
9951001
/**
@@ -1104,7 +1110,7 @@ declare module '@polkadot/api/types/events' {
11041110
**/
11051111
BatchInterrupted: AugmentedEvent<ApiType, [u32, SpRuntimeDispatchError]>;
11061112
/**
1107-
* A call was dispatched. \[result\]
1113+
* A call was dispatched.
11081114
**/
11091115
DispatchedAs: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;
11101116
/**

packages/api/src/augment/query.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,12 @@ declare module '@polkadot/api/types/storage' {
10491049
* When this value is not set, no limits are enforced.
10501050
**/
10511051
maxValidatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1052+
/**
1053+
* The minimum amount of commission that validators can set.
1054+
*
1055+
* If set to `0`, no limit exists.
1056+
**/
1057+
minCommission: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
10521058
/**
10531059
* Minimum number of staking participants before emergency conditions are imposed.
10541060
**/

0 commit comments

Comments
 (0)