Skip to content

Commit dc0a5f3

Browse files
authored
Bump Kusama metadata (#4868)
1 parent 3628a1b commit dc0a5f3

File tree

8 files changed

+1495
-1597
lines changed

8 files changed

+1495
-1597
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Changes:
1111
- Use `compactFromU8aLim` & `u8aConcatStrict` variants
1212
- Adjust `.inspect()` for `ExtrinsicPayload`
1313
- Adjust Kusama `StakingLedger` for runtime 1051
14-
- Update to latest Substrate & Polkadot static metadata
14+
- Update to latest Substrate, Kusama & Polkadot static metadata
1515

1616

1717
## 8.5.1 May 22, 2022

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { ApiTypes } from '@polkadot/api-base/types';
55
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
66
import type { Codec } from '@polkadot/types-codec/types';
77
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
8-
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
8+
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
99

1010
declare module '@polkadot/api-base/types/consts' {
1111
export interface AugmentedConsts<ApiType extends ApiTypes> {
@@ -804,10 +804,6 @@ declare module '@polkadot/api-base/types/consts' {
804804
[key: string]: Codec;
805805
};
806806
transactionPayment: {
807-
/**
808-
* The polynomial that is applied in order to derive fee from length.
809-
**/
810-
lengthToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;
811807
/**
812808
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
813809
* `priority`
@@ -832,10 +828,6 @@ declare module '@polkadot/api-base/types/consts' {
832828
* transactions.
833829
**/
834830
operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
835-
/**
836-
* The polynomial that is applied in order to derive fee from weight.
837-
**/
838-
weightToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;
839831
/**
840832
* Generic const
841833
**/

packages/types-augment/src/lookup/kusama.ts

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,7 @@ export default {
1111
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society']
1212
},
1313
/**
14-
* Lookup219: frame_support::weights::WeightToFeeCoefficient<Balance>
15-
**/
16-
FrameSupportWeightsWeightToFeeCoefficient: {
17-
coeffInteger: 'u128',
18-
coeffFrac: 'Perbill',
19-
negative: 'bool',
20-
degree: 'u8'
21-
},
22-
/**
23-
* Lookup260: kusama_runtime::SessionKeys
14+
* Lookup258: kusama_runtime::SessionKeys
2415
**/
2516
KusamaRuntimeSessionKeys: {
2617
grandpa: 'SpFinalityGrandpaAppPublic',
@@ -31,7 +22,7 @@ export default {
3122
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
3223
},
3324
/**
34-
* Lookup334: kusama_runtime::OriginCaller
25+
* Lookup332: kusama_runtime::OriginCaller
3526
**/
3627
KusamaRuntimeOriginCaller: {
3728
_enum: {
@@ -138,7 +129,7 @@ export default {
138129
}
139130
},
140131
/**
141-
* Lookup400: kusama_runtime::NposCompactSolution24
132+
* Lookup398: kusama_runtime::NposCompactSolution24
142133
**/
143134
KusamaRuntimeNposCompactSolution24: {
144135
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
@@ -167,7 +158,7 @@ export default {
167158
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
168159
},
169160
/**
170-
* Lookup776: kusama_runtime::Runtime
161+
* Lookup774: kusama_runtime::Runtime
171162
**/
172163
KusamaRuntimeRuntime: 'Null'
173164
};

packages/types-augment/src/lookup/types-kusama.ts

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
/* eslint-disable */
33

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

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

22-
/** @name FrameSupportWeightsWeightToFeeCoefficient (219) */
23-
export interface FrameSupportWeightsWeightToFeeCoefficient extends Struct {
24-
readonly coeffInteger: u128;
25-
readonly coeffFrac: Perbill;
26-
readonly negative: bool;
27-
readonly degree: u8;
28-
}
29-
30-
/** @name KusamaRuntimeSessionKeys (260) */
22+
/** @name KusamaRuntimeSessionKeys (258) */
3123
export interface KusamaRuntimeSessionKeys extends Struct {
3224
readonly grandpa: SpFinalityGrandpaAppPublic;
3325
readonly babe: SpConsensusBabeAppPublic;
@@ -37,7 +29,7 @@ declare module '@polkadot/types/lookup' {
3729
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
3830
}
3931

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

56-
/** @name KusamaRuntimeNposCompactSolution24 (400) */
48+
/** @name KusamaRuntimeNposCompactSolution24 (398) */
5749
export interface KusamaRuntimeNposCompactSolution24 extends Struct {
5850
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
5951
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
@@ -81,7 +73,7 @@ declare module '@polkadot/types/lookup' {
8173
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
8274
}
8375

84-
/** @name KusamaRuntimeRuntime (776) */
76+
/** @name KusamaRuntimeRuntime (774) */
8577
export type KusamaRuntimeRuntime = Null;
8678

8779
} // declare module

packages/types-augment/src/registry/kusama.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
22
/* eslint-disable */
33

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

66
declare module '@polkadot/types/types/registry' {
77
export interface InterfaceTypes {
8-
FrameSupportWeightsWeightToFeeCoefficient: FrameSupportWeightsWeightToFeeCoefficient;
98
KusamaRuntimeNposCompactSolution24: KusamaRuntimeNposCompactSolution24;
109
KusamaRuntimeOriginCaller: KusamaRuntimeOriginCaller;
1110
KusamaRuntimeProxyType: KusamaRuntimeProxyType;

packages/types-support/src/metadata/v14/kusama-hex.ts

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)