Bump Substrate metadata (#5329)
This commit is contained in:
@@ -350,6 +350,13 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* take place over multiple blocks.
|
* take place over multiple blocks.
|
||||||
**/
|
**/
|
||||||
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of winners that can be elected by this `ElectionProvider`
|
||||||
|
* implementation.
|
||||||
|
*
|
||||||
|
* Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
|
||||||
|
**/
|
||||||
|
maxWinners: u32 & AugmentedConst<ApiType>;
|
||||||
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
||||||
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
||||||
minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||||
|
|||||||
@@ -306,7 +306,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
ExistingVestingSchedule: AugmentedError<ApiType>;
|
ExistingVestingSchedule: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Balance too low to send value
|
* Balance too low to send value.
|
||||||
**/
|
**/
|
||||||
InsufficientBalance: AugmentedError<ApiType>;
|
InsufficientBalance: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -743,6 +743,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
electionProviderMultiPhase: {
|
electionProviderMultiPhase: {
|
||||||
|
/**
|
||||||
|
* Some bound not met
|
||||||
|
**/
|
||||||
|
BoundNotMet: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The call is not allowed at this point.
|
* The call is not allowed at this point.
|
||||||
**/
|
**/
|
||||||
@@ -791,6 +795,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The signed submission consumes too much weight
|
* The signed submission consumes too much weight
|
||||||
**/
|
**/
|
||||||
SignedTooMuchWeight: AugmentedError<ApiType>;
|
SignedTooMuchWeight: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Submitted solution has too many winners
|
||||||
|
**/
|
||||||
|
TooManyWinners: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
@@ -1822,8 +1830,8 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
TooManyTargets: AugmentedError<ApiType>;
|
TooManyTargets: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* There are too many validators in the system. Governance needs to adjust the staking
|
* There are too many validator candidates in the system. Governance needs to adjust the
|
||||||
* settings to keep things safe for the runtime.
|
* staking settings to keep things safe for the runtime.
|
||||||
**/
|
**/
|
||||||
TooManyValidators: AugmentedError<ApiType>;
|
TooManyValidators: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -552,9 +552,16 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
};
|
};
|
||||||
fastUnstake: {
|
fastUnstake: {
|
||||||
/**
|
/**
|
||||||
* A staker was partially checked for the given eras, but the process did not finish.
|
* A batch was partially checked for the given eras, but the process did not finish.
|
||||||
**/
|
**/
|
||||||
Checking: AugmentedEvent<ApiType, [stash: AccountId32, eras: Vec<u32>], { stash: AccountId32, eras: Vec<u32> }>;
|
BatchChecked: AugmentedEvent<ApiType, [eras: Vec<u32>], { eras: Vec<u32> }>;
|
||||||
|
/**
|
||||||
|
* A batch was terminated.
|
||||||
|
*
|
||||||
|
* This is always follows by a number of `Unstaked` or `Slashed` events, marking the end
|
||||||
|
* of the batch. A new batch will be created upon next block.
|
||||||
|
**/
|
||||||
|
BatchFinished: AugmentedEvent<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Some internal error happened while migrating stash. They are removed as head as a
|
* Some internal error happened while migrating stash. They are removed as head as a
|
||||||
* consequence.
|
* consequence.
|
||||||
|
|||||||
@@ -6,13 +6,12 @@
|
|||||||
import '@polkadot/api-base/types/calls';
|
import '@polkadot/api-base/types/calls';
|
||||||
|
|
||||||
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
||||||
import type { Bytes, Null, Option, Result, Vec, u32, u64 } from '@polkadot/types-codec';
|
import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||||
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
||||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||||
import type { CodeSource, CodeUploadResult, ContractExecResult, ContractInstantiateResult } from '@polkadot/types/interfaces/contracts';
|
|
||||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||||
@@ -105,29 +104,6 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x68b66ba122c93fa7/1 */
|
|
||||||
contractsApi: {
|
|
||||||
/**
|
|
||||||
* Perform a call from a specified account to a given contract.
|
|
||||||
**/
|
|
||||||
call: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, dest: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, inputData: Bytes | string | Uint8Array) => Observable<ContractExecResult>>;
|
|
||||||
/**
|
|
||||||
* Query a given storage key in a given contract.
|
|
||||||
**/
|
|
||||||
getStorage: AugmentedCall<ApiType, (address: AccountId | string | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
|
||||||
/**
|
|
||||||
* Instantiate a new contract.
|
|
||||||
**/
|
|
||||||
instantiate: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, code: CodeSource | { Upload: any } | { Existing: any } | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => Observable<ContractInstantiateResult>>;
|
|
||||||
/**
|
|
||||||
* Upload new code without instantiating a contract from it.
|
|
||||||
**/
|
|
||||||
uploadCode: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, code: Bytes | string | Uint8Array, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber) => Observable<CodeUploadResult>>;
|
|
||||||
/**
|
|
||||||
* Generic call
|
|
||||||
**/
|
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
|
||||||
};
|
|
||||||
/** 0xdf6acb689907609b/4 */
|
/** 0xdf6acb689907609b/4 */
|
||||||
core: {
|
core: {
|
||||||
/**
|
/**
|
||||||
@@ -264,7 +240,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x37c8bb1350a9a2a8/1 */
|
/** 0x37c8bb1350a9a2a8/2 */
|
||||||
transactionPaymentApi: {
|
transactionPaymentApi: {
|
||||||
/**
|
/**
|
||||||
* The transaction fee details
|
* The transaction fee details
|
||||||
@@ -279,7 +255,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0xf3ff14d5ab527059/1 */
|
/** 0xf3ff14d5ab527059/2 */
|
||||||
transactionPaymentCallApi: {
|
transactionPaymentCallApi: {
|
||||||
/**
|
/**
|
||||||
* The call fee details
|
* The call fee details
|
||||||
|
|||||||
@@ -383,7 +383,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* This new asset class has no assets initially and its owner is the origin.
|
* This new asset class has no assets initially and its owner is the origin.
|
||||||
*
|
*
|
||||||
* The origin must be Signed and the sender must have sufficient funds free.
|
* The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
|
||||||
*
|
*
|
||||||
* Funds of sender are reserved by `AssetDeposit`.
|
* Funds of sender are reserved by `AssetDeposit`.
|
||||||
*
|
*
|
||||||
@@ -4047,7 +4047,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
||||||
/**
|
/**
|
||||||
* Increments the ideal number of validators.
|
* Increments the ideal number of validators upto maximum of
|
||||||
|
* `ElectionProviderBase::MaxWinners`.
|
||||||
*
|
*
|
||||||
* The dispatch origin must be Root.
|
* The dispatch origin must be Root.
|
||||||
*
|
*
|
||||||
@@ -4136,7 +4137,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
||||||
/**
|
/**
|
||||||
* Scale up the ideal number of validators by a factor.
|
* Scale up the ideal number of validators by a factor upto maximum of
|
||||||
|
* `ElectionProviderBase::MaxWinners`.
|
||||||
*
|
*
|
||||||
* The dispatch origin must be Root.
|
* The dispatch origin must be Root.
|
||||||
*
|
*
|
||||||
@@ -5098,7 +5100,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* This new collection has no items initially and its owner is the origin.
|
* This new collection has no items initially and its owner is the origin.
|
||||||
*
|
*
|
||||||
* The origin must be Signed and the sender must have sufficient funds free.
|
* The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
|
||||||
*
|
*
|
||||||
* `ItemDeposit` funds of sender are reserved.
|
* `ItemDeposit` funds of sender are reserved.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1902,6 +1902,10 @@ export default {
|
|||||||
PolkadotRuntimeCommonClaimsPalletError: {
|
PolkadotRuntimeCommonClaimsPalletError: {
|
||||||
_enum: ['InvalidEthereumSignature', 'SignerHasNoClaim', 'SenderHasNoClaim', 'PotUnderflow', 'InvalidStatement', 'VestedBalanceExists']
|
_enum: ['InvalidEthereumSignature', 'SignerHasNoClaim', 'SenderHasNoClaim', 'PotUnderflow', 'InvalidStatement', 'VestedBalanceExists']
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* Lookup634: pallet_fast_unstake::pallet::MaxChecking<T>
|
||||||
|
**/
|
||||||
|
PalletFastUnstakeMaxChecking: 'Null',
|
||||||
/**
|
/**
|
||||||
* Lookup637: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
|
* Lookup637: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
|
||||||
**/
|
**/
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1870,6 +1870,9 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'InvalidEthereumSignature' | 'SignerHasNoClaim' | 'SenderHasNoClaim' | 'PotUnderflow' | 'InvalidStatement' | 'VestedBalanceExists';
|
readonly type: 'InvalidEthereumSignature' | 'SignerHasNoClaim' | 'SenderHasNoClaim' | 'PotUnderflow' | 'InvalidStatement' | 'VestedBalanceExists';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @name PalletFastUnstakeMaxChecking (634) */
|
||||||
|
type PalletFastUnstakeMaxChecking = Null;
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (637) */
|
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (637) */
|
||||||
interface PolkadotRuntimeParachainsConfigurationHostConfiguration extends Struct {
|
interface PolkadotRuntimeParachainsConfigurationHostConfiguration extends Struct {
|
||||||
readonly maxCodeSize: u32;
|
readonly maxCodeSize: u32;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -4,6 +4,5 @@
|
|||||||
import { isFunction } from '@polkadot/util';
|
import { isFunction } from '@polkadot/util';
|
||||||
|
|
||||||
export function hasEq (o: unknown): o is { eq: (other: unknown) => boolean } {
|
export function hasEq (o: unknown): o is { eq: (other: unknown) => boolean } {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
return isFunction((o as { eq: unknown }).eq);
|
||||||
return isFunction((o as any).eq);
|
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user