Skip to content

Commit

Permalink
Bump Kusama metadata (polkadot-js#4868)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr authored May 29, 2022
1 parent 3628a1b commit dc0a5f3
Show file tree
Hide file tree
Showing 8 changed files with 1,495 additions and 1,597 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Changes:
- Use `compactFromU8aLim` & `u8aConcatStrict` variants
- Adjust `.inspect()` for `ExtrinsicPayload`
- Adjust Kusama `StakingLedger` for runtime 1051
- Update to latest Substrate & Polkadot static metadata
- Update to latest Substrate, Kusama & Polkadot static metadata


## 8.5.1 May 22, 2022
Expand Down
10 changes: 1 addition & 9 deletions packages/api-augment/src/kusama/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { ApiTypes } from '@polkadot/api-base/types';
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Codec } from '@polkadot/types-codec/types';
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';

declare module '@polkadot/api-base/types/consts' {
export interface AugmentedConsts<ApiType extends ApiTypes> {
Expand Down Expand Up @@ -804,10 +804,6 @@ declare module '@polkadot/api-base/types/consts' {
[key: string]: Codec;
};
transactionPayment: {
/**
* The polynomial that is applied in order to derive fee from length.
**/
lengthToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;
/**
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
* `priority`
Expand All @@ -832,10 +828,6 @@ declare module '@polkadot/api-base/types/consts' {
* transactions.
**/
operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
/**
* The polynomial that is applied in order to derive fee from weight.
**/
weightToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;
/**
* Generic const
**/
Expand Down
17 changes: 4 additions & 13 deletions packages/types-augment/src/lookup/kusama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,7 @@ export default {
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society']
},
/**
* Lookup219: frame_support::weights::WeightToFeeCoefficient<Balance>
**/
FrameSupportWeightsWeightToFeeCoefficient: {
coeffInteger: 'u128',
coeffFrac: 'Perbill',
negative: 'bool',
degree: 'u8'
},
/**
* Lookup260: kusama_runtime::SessionKeys
* Lookup258: kusama_runtime::SessionKeys
**/
KusamaRuntimeSessionKeys: {
grandpa: 'SpFinalityGrandpaAppPublic',
Expand All @@ -31,7 +22,7 @@ export default {
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
},
/**
* Lookup334: kusama_runtime::OriginCaller
* Lookup332: kusama_runtime::OriginCaller
**/
KusamaRuntimeOriginCaller: {
_enum: {
Expand Down Expand Up @@ -138,7 +129,7 @@ export default {
}
},
/**
* Lookup400: kusama_runtime::NposCompactSolution24
* Lookup398: kusama_runtime::NposCompactSolution24
**/
KusamaRuntimeNposCompactSolution24: {
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
Expand Down Expand Up @@ -167,7 +158,7 @@ export default {
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
},
/**
* Lookup776: kusama_runtime::Runtime
* Lookup774: kusama_runtime::Runtime
**/
KusamaRuntimeRuntime: 'Null'
};
20 changes: 6 additions & 14 deletions packages/types-augment/src/lookup/types-kusama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/* eslint-disable */

declare module '@polkadot/types/lookup' {
import type { Compact, Enum, Null, Struct, Vec, bool, u128, u16, u32, u8 } from '@polkadot/types-codec';
import type { Compact, Enum, Null, Struct, Vec, u16, u32 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { PerU16, Perbill } from '@polkadot/types/interfaces/runtime';
import type { PerU16 } from '@polkadot/types/interfaces/runtime';

/** @name KusamaRuntimeProxyType (79) */
export interface KusamaRuntimeProxyType extends Enum {
Expand All @@ -19,15 +19,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society';
}

/** @name FrameSupportWeightsWeightToFeeCoefficient (219) */
export interface FrameSupportWeightsWeightToFeeCoefficient extends Struct {
readonly coeffInteger: u128;
readonly coeffFrac: Perbill;
readonly negative: bool;
readonly degree: u8;
}

/** @name KusamaRuntimeSessionKeys (260) */
/** @name KusamaRuntimeSessionKeys (258) */
export interface KusamaRuntimeSessionKeys extends Struct {
readonly grandpa: SpFinalityGrandpaAppPublic;
readonly babe: SpConsensusBabeAppPublic;
Expand All @@ -37,7 +29,7 @@ declare module '@polkadot/types/lookup' {
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
}

/** @name KusamaRuntimeOriginCaller (334) */
/** @name KusamaRuntimeOriginCaller (332) */
export interface KusamaRuntimeOriginCaller extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSupportDispatchRawOrigin;
Expand All @@ -53,7 +45,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet';
}

/** @name KusamaRuntimeNposCompactSolution24 (400) */
/** @name KusamaRuntimeNposCompactSolution24 (398) */
export interface KusamaRuntimeNposCompactSolution24 extends Struct {
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
Expand Down Expand Up @@ -81,7 +73,7 @@ declare module '@polkadot/types/lookup' {
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
}

/** @name KusamaRuntimeRuntime (776) */
/** @name KusamaRuntimeRuntime (774) */
export type KusamaRuntimeRuntime = Null;

} // declare module
3 changes: 1 addition & 2 deletions packages/types-augment/src/registry/kusama.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */

import type { FrameSupportWeightsWeightToFeeCoefficient, KusamaRuntimeNposCompactSolution24, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeRuntime, KusamaRuntimeSessionKeys } from '@polkadot/types/lookup';
import type { KusamaRuntimeNposCompactSolution24, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeRuntime, KusamaRuntimeSessionKeys } from '@polkadot/types/lookup';

declare module '@polkadot/types/types/registry' {
export interface InterfaceTypes {
FrameSupportWeightsWeightToFeeCoefficient: FrameSupportWeightsWeightToFeeCoefficient;
KusamaRuntimeNposCompactSolution24: KusamaRuntimeNposCompactSolution24;
KusamaRuntimeOriginCaller: KusamaRuntimeOriginCaller;
KusamaRuntimeProxyType: KusamaRuntimeProxyType;
Expand Down
2 changes: 1 addition & 1 deletion packages/types-support/src/metadata/v14/kusama-hex.ts

Large diffs are not rendered by default.

Loading

0 comments on commit dc0a5f3

Please sign in to comment.