Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Changes:

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


## 6.10.3 Nov 30, 2021
Expand Down
6 changes: 5 additions & 1 deletion packages/api/src/augment/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ declare module '@polkadot/api/types/consts' {
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
/**
* Maximum acceptable reason length.
*
* Benchmarks depend on this value, be sure to update weights file when changing this value
**/
maximumReasonLength: u32 & AugmentedConst<ApiType>;
/**
Expand All @@ -181,7 +183,7 @@ declare module '@polkadot/api/types/consts' {
contracts: {
/**
* The deposit that must be placed into the contract's account to instantiate it.
* This is in **addition** to the [`pallet_balances::Pallet::ExistenialDeposit`].
* This is in **addition** to the [`Currency::minimum_balance`].
* The minimum balance for a contract's account can be queried using
* [`Pallet::subsistence_threshold`].
**/
Expand Down Expand Up @@ -771,6 +773,8 @@ declare module '@polkadot/api/types/consts' {
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
/**
* Maximum acceptable reason length.
*
* Benchmarks depend on this value, be sure to update weights file when changing this value
**/
maximumReasonLength: u32 & AugmentedConst<ApiType>;
/**
Expand Down
4 changes: 4 additions & 0 deletions packages/api/src/augment/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,10 @@ declare module '@polkadot/api/types/errors' {
* The user has enough bond and thus cannot be chilled forcefully by an external person.
**/
CannotChillOther: AugmentedError<ApiType>;
/**
* Commission is too low. Must be at least `MinCommission`.
**/
CommissionTooLow: AugmentedError<ApiType>;
/**
* Duplicate index.
**/
Expand Down
72 changes: 39 additions & 33 deletions packages/api/src/augment/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ declare module '@polkadot/api/types/events' {
import type { ApiTypes, AugmentedEvent, ModuleEvents } from '@polkadot/api/types';
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types';
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, NodeRuntimeProxyType, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup';
import type { FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, NodeRuntimeProxyType, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup';
import type { ITuple } from '@polkadot/types/types';

export interface AugmentedEvents<ApiType extends ApiTypes> {
Expand Down Expand Up @@ -306,6 +306,10 @@ declare module '@polkadot/api/types/events' {
* A motion has been proposed by a public account.
**/
Proposed: AugmentedEvent<ApiType, [u32, u128]>;
/**
* An account has secconded a proposal
**/
Seconded: AugmentedEvent<ApiType, [AccountId32, u32]>;
/**
* A referendum has begun.
**/
Expand All @@ -322,6 +326,10 @@ declare module '@polkadot/api/types/events' {
* An external proposal has been vetoed.
**/
Vetoed: AugmentedEvent<ApiType, [AccountId32, H256, u32]>;
/**
* An account has voted in a referendum
**/
Voted: AugmentedEvent<ApiType, [AccountId32, u32, PalletDemocracyVoteAccountVote]>;
/**
* Generic event
**/
Expand Down Expand Up @@ -640,15 +648,15 @@ declare module '@polkadot/api/types/events' {
};
scheduler: {
/**
* Canceled some task. \[when, index\]
* Canceled some task.
**/
Canceled: AugmentedEvent<ApiType, [u32, u32]>;
/**
* Dispatched some task. \[task, id, result\]
* Dispatched some task.
**/
Dispatched: AugmentedEvent<ApiType, [ITuple<[u32, u32]>, Option<Bytes>, Result<Null, SpRuntimeDispatchError>]>;
/**
* Scheduled some task. \[when, index\]
* Scheduled some task.
**/
Scheduled: AugmentedEvent<ApiType, [u32, u32]>;
/**
Expand All @@ -669,71 +677,70 @@ declare module '@polkadot/api/types/events' {
};
society: {
/**
* A \[candidate\] was dropped (due to an excess of bids in the system).
* A candidate was dropped (due to an excess of bids in the system).
**/
AutoUnbid: AugmentedEvent<ApiType, [AccountId32]>;
/**
* A membership bid just happened. The given account is the candidate's ID and their offer
* is the second. \[candidate_id, offer\]
* is the second.
**/
Bid: AugmentedEvent<ApiType, [AccountId32, u128]>;
/**
* A \[candidate\] has been suspended
* A candidate has been suspended
**/
CandidateSuspended: AugmentedEvent<ApiType, [AccountId32]>;
/**
* A \[member\] has been challenged
* A member has been challenged
**/
Challenged: AugmentedEvent<ApiType, [AccountId32]>;
/**
* A vote has been placed for a defending member \[voter, vote\]
* A vote has been placed for a defending member
**/
DefenderVote: AugmentedEvent<ApiType, [AccountId32, bool]>;
/**
* Some funds were deposited into the society account. \[value\]
* Some funds were deposited into the society account.
**/
Deposit: AugmentedEvent<ApiType, [u128]>;
/**
* The society is founded by the given identity. \[founder\]
* The society is founded by the given identity.
**/
Founded: AugmentedEvent<ApiType, [AccountId32]>;
/**
* A group of candidates have been inducted. The batch's primary is the first value, the
* batch in full is the second. \[primary, candidates\]
* batch in full is the second.
**/
Inducted: AugmentedEvent<ApiType, [AccountId32, Vec<AccountId32>]>;
/**
* A \[member\] has been suspended
* A member has been suspended
**/
MemberSuspended: AugmentedEvent<ApiType, [AccountId32]>;
/**
* A new \[max\] member count has been set
**/
NewMaxMembers: AugmentedEvent<ApiType, [u32]>;
/**
* A suspended member has been judged. \[who, judged\]
* A suspended member has been judged.
**/
SuspendedMemberJudgement: AugmentedEvent<ApiType, [AccountId32, bool]>;
/**
* A \[candidate\] was dropped (by their request).
* A candidate was dropped (by their request).
**/
Unbid: AugmentedEvent<ApiType, [AccountId32]>;
/**
* Society is unfounded. \[founder\]
* Society is unfounded.
**/
Unfounded: AugmentedEvent<ApiType, [AccountId32]>;
/**
* A \[candidate\] was dropped (by request of who vouched for them).
* A candidate was dropped (by request of who vouched for them).
**/
Unvouch: AugmentedEvent<ApiType, [AccountId32]>;
/**
* A vote has been placed \[candidate, voter, vote\]
* A vote has been placed
**/
Vote: AugmentedEvent<ApiType, [AccountId32, AccountId32, bool]>;
/**
* A membership bid just happened by vouching. The given account is the candidate's ID and
* their offer is the second. The vouching party is the third. \[candidate_id, offer,
* vouching\]
* their offer is the second. The vouching party is the third.
**/
Vouch: AugmentedEvent<ApiType, [AccountId32, u128, AccountId32]>;
/**
Expand Down Expand Up @@ -828,23 +835,23 @@ declare module '@polkadot/api/types/events' {
**/
CodeUpdated: AugmentedEvent<ApiType, []>;
/**
* An extrinsic failed. \[error, info\]
* An extrinsic failed.
**/
ExtrinsicFailed: AugmentedEvent<ApiType, [SpRuntimeDispatchError, FrameSupportWeightsDispatchInfo]>;
/**
* An extrinsic completed successfully. \[info\]
* An extrinsic completed successfully.
**/
ExtrinsicSuccess: AugmentedEvent<ApiType, [FrameSupportWeightsDispatchInfo]>;
/**
* An \[account\] was reaped.
* An account was reaped.
**/
KilledAccount: AugmentedEvent<ApiType, [AccountId32]>;
/**
* A new \[account\] was created.
* A new account was created.
**/
NewAccount: AugmentedEvent<ApiType, [AccountId32]>;
/**
* On on-chain remark happened. \[origin, remark_hash\]
* On on-chain remark happened.
**/
Remarked: AugmentedEvent<ApiType, [AccountId32, H256]>;
/**
Expand Down Expand Up @@ -964,32 +971,31 @@ declare module '@polkadot/api/types/events' {
};
treasury: {
/**
* Some funds have been allocated. \[proposal_index, award, beneficiary\]
* Some funds have been allocated.
**/
Awarded: AugmentedEvent<ApiType, [u32, u128, AccountId32]>;
/**
* Some of our funds have been burnt. \[burn\]
* Some of our funds have been burnt.
**/
Burnt: AugmentedEvent<ApiType, [u128]>;
/**
* Some funds have been deposited. \[deposit\]
* Some funds have been deposited.
**/
Deposit: AugmentedEvent<ApiType, [u128]>;
/**
* New proposal. \[proposal_index\]
* New proposal.
**/
Proposed: AugmentedEvent<ApiType, [u32]>;
/**
* A proposal was rejected; funds were slashed. \[proposal_index, slashed\]
* A proposal was rejected; funds were slashed.
**/
Rejected: AugmentedEvent<ApiType, [u32, u128]>;
/**
* Spending has finished; this is the amount that rolls over until next spend.
* \[budget_remaining\]
**/
Rollover: AugmentedEvent<ApiType, [u128]>;
/**
* We have ended a spend period and will now allocate funds. \[budget_remaining\]
* We have ended a spend period and will now allocate funds.
**/
Spending: AugmentedEvent<ApiType, [u128]>;
/**
Expand Down Expand Up @@ -1104,7 +1110,7 @@ declare module '@polkadot/api/types/events' {
**/
BatchInterrupted: AugmentedEvent<ApiType, [u32, SpRuntimeDispatchError]>;
/**
* A call was dispatched. \[result\]
* A call was dispatched.
**/
DispatchedAs: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;
/**
Expand Down
6 changes: 6 additions & 0 deletions packages/api/src/augment/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,12 @@ declare module '@polkadot/api/types/storage' {
* When this value is not set, no limits are enforced.
**/
maxValidatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The minimum amount of commission that validators can set.
*
* If set to `0`, no limit exists.
**/
minCommission: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Minimum number of staking participants before emergency conditions are imposed.
**/
Expand Down
Loading