Update to latest Polkadot/Kusama metadata (#5333)

* Update to latest Polkadot/Kusama metadata

* dispatchQueue compat
This commit is contained in:
Jaco
2022-11-12 15:18:15 +02:00
committed by GitHub
parent 71d3d10f0e
commit 225ae80b95
26 changed files with 32106 additions and 25350 deletions
+18 -12
View File
@@ -5,13 +5,7 @@
export default {
/**
* Lookup81: kusama_runtime::ProxyType
**/
KusamaRuntimeProxyType: {
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society']
},
/**
* Lookup265: kusama_runtime::SessionKeys
* Lookup107: kusama_runtime::SessionKeys
**/
KusamaRuntimeSessionKeys: {
grandpa: 'SpFinalityGrandpaAppPublic',
@@ -22,7 +16,7 @@ export default {
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
},
/**
* Lookup340: kusama_runtime::OriginCaller
* Lookup149: kusama_runtime::OriginCaller
**/
KusamaRuntimeOriginCaller: {
_enum: {
@@ -31,8 +25,8 @@ export default {
__Unused2: 'Null',
__Unused3: 'Null',
__Unused4: 'Null',
__Unused5: 'Null',
Void: 'SpCoreVoid',
__Unused6: 'Null',
__Unused7: 'Null',
__Unused8: 'Null',
__Unused9: 'Null',
@@ -69,7 +63,7 @@ export default {
__Unused40: 'Null',
__Unused41: 'Null',
__Unused42: 'Null',
__Unused43: 'Null',
Origins: 'KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin',
__Unused44: 'Null',
__Unused45: 'Null',
__Unused46: 'Null',
@@ -129,7 +123,19 @@ export default {
}
},
/**
* Lookup406: kusama_runtime::NposCompactSolution24
* Lookup153: kusama_runtime::governance::origins::pallet_custom_origins::Origin
**/
KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin: {
_enum: ['StakingAdmin', 'Treasurer', 'FellowshipAdmin', 'GeneralAdmin', 'AuctionAdmin', 'LeaseAdmin', 'ReferendumCanceller', 'ReferendumKiller', 'SmallTipper', 'BigTipper', 'SmallSpender', 'MediumSpender', 'BigSpender', 'WhitelistedCaller', 'FellowshipInitiates', 'Fellows', 'FellowshipExperts', 'FellowshipMasters', 'Fellowship1Dan', 'Fellowship2Dan', 'Fellowship3Dan', 'Fellowship4Dan', 'Fellowship5Dan', 'Fellowship6Dan', 'Fellowship7Dan', 'Fellowship8Dan', 'Fellowship9Dan']
},
/**
* Lookup230: kusama_runtime::ProxyType
**/
KusamaRuntimeProxyType: {
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society']
},
/**
* Lookup240: kusama_runtime::NposCompactSolution24
**/
KusamaRuntimeNposCompactSolution24: {
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
@@ -158,7 +164,7 @@ export default {
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
},
/**
* Lookup786: kusama_runtime::Runtime
* Lookup852: kusama_runtime::Runtime
**/
KusamaRuntimeRuntime: 'Null'
};
File diff suppressed because it is too large Load Diff
@@ -10,7 +10,67 @@ import type { ITuple } from '@polkadot/types-codec/types';
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
declare module '@polkadot/types/lookup' {
/** @name KusamaRuntimeProxyType (81) */
/** @name KusamaRuntimeSessionKeys (107) */
interface KusamaRuntimeSessionKeys extends Struct {
readonly grandpa: SpFinalityGrandpaAppPublic;
readonly babe: SpConsensusBabeAppPublic;
readonly imOnline: PalletImOnlineSr25519AppSr25519Public;
readonly paraValidator: PolkadotPrimitivesV2ValidatorAppPublic;
readonly paraAssignment: PolkadotPrimitivesV2AssignmentAppPublic;
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
}
/** @name KusamaRuntimeOriginCaller (149) */
interface KusamaRuntimeOriginCaller extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSupportDispatchRawOrigin;
readonly isVoid: boolean;
readonly isCouncil: boolean;
readonly asCouncil: PalletCollectiveRawOrigin;
readonly isTechnicalCommittee: boolean;
readonly asTechnicalCommittee: PalletCollectiveRawOrigin;
readonly isOrigins: boolean;
readonly asOrigins: KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin;
readonly isParachainsOrigin: boolean;
readonly asParachainsOrigin: PolkadotRuntimeParachainsOriginPalletOrigin;
readonly isXcmPallet: boolean;
readonly asXcmPallet: PalletXcmOrigin;
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'Origins' | 'ParachainsOrigin' | 'XcmPallet';
}
/** @name KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin (153) */
interface KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin extends Enum {
readonly isStakingAdmin: boolean;
readonly isTreasurer: boolean;
readonly isFellowshipAdmin: boolean;
readonly isGeneralAdmin: boolean;
readonly isAuctionAdmin: boolean;
readonly isLeaseAdmin: boolean;
readonly isReferendumCanceller: boolean;
readonly isReferendumKiller: boolean;
readonly isSmallTipper: boolean;
readonly isBigTipper: boolean;
readonly isSmallSpender: boolean;
readonly isMediumSpender: boolean;
readonly isBigSpender: boolean;
readonly isWhitelistedCaller: boolean;
readonly isFellowshipInitiates: boolean;
readonly isFellows: boolean;
readonly isFellowshipExperts: boolean;
readonly isFellowshipMasters: boolean;
readonly isFellowship1Dan: boolean;
readonly isFellowship2Dan: boolean;
readonly isFellowship3Dan: boolean;
readonly isFellowship4Dan: boolean;
readonly isFellowship5Dan: boolean;
readonly isFellowship6Dan: boolean;
readonly isFellowship7Dan: boolean;
readonly isFellowship8Dan: boolean;
readonly isFellowship9Dan: boolean;
readonly type: 'StakingAdmin' | 'Treasurer' | 'FellowshipAdmin' | 'GeneralAdmin' | 'AuctionAdmin' | 'LeaseAdmin' | 'ReferendumCanceller' | 'ReferendumKiller' | 'SmallTipper' | 'BigTipper' | 'SmallSpender' | 'MediumSpender' | 'BigSpender' | 'WhitelistedCaller' | 'FellowshipInitiates' | 'Fellows' | 'FellowshipExperts' | 'FellowshipMasters' | 'Fellowship1Dan' | 'Fellowship2Dan' | 'Fellowship3Dan' | 'Fellowship4Dan' | 'Fellowship5Dan' | 'Fellowship6Dan' | 'Fellowship7Dan' | 'Fellowship8Dan' | 'Fellowship9Dan';
}
/** @name KusamaRuntimeProxyType (230) */
interface KusamaRuntimeProxyType extends Enum {
readonly isAny: boolean;
readonly isNonTransfer: boolean;
@@ -23,33 +83,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society';
}
/** @name KusamaRuntimeSessionKeys (265) */
interface KusamaRuntimeSessionKeys extends Struct {
readonly grandpa: SpFinalityGrandpaAppPublic;
readonly babe: SpConsensusBabeAppPublic;
readonly imOnline: PalletImOnlineSr25519AppSr25519Public;
readonly paraValidator: PolkadotPrimitivesV2ValidatorAppPublic;
readonly paraAssignment: PolkadotPrimitivesV2AssignmentAppPublic;
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
}
/** @name KusamaRuntimeOriginCaller (340) */
interface KusamaRuntimeOriginCaller extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSupportDispatchRawOrigin;
readonly isVoid: boolean;
readonly isCouncil: boolean;
readonly asCouncil: PalletCollectiveRawOrigin;
readonly isTechnicalCommittee: boolean;
readonly asTechnicalCommittee: PalletCollectiveRawOrigin;
readonly isParachainsOrigin: boolean;
readonly asParachainsOrigin: PolkadotRuntimeParachainsOriginPalletOrigin;
readonly isXcmPallet: boolean;
readonly asXcmPallet: PalletXcmOrigin;
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet';
}
/** @name KusamaRuntimeNposCompactSolution24 (406) */
/** @name KusamaRuntimeNposCompactSolution24 (240) */
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>]>>;
@@ -77,7 +111,7 @@ declare module '@polkadot/types/lookup' {
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
}
/** @name KusamaRuntimeRuntime (786) */
/** @name KusamaRuntimeRuntime (852) */
type KusamaRuntimeRuntime = Null;
} // declare module
File diff suppressed because it is too large Load Diff
@@ -5,10 +5,11 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/types/types/registry';
import type { KusamaRuntimeNposCompactSolution24, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeRuntime, KusamaRuntimeSessionKeys } from '@polkadot/types/lookup';
import type { KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, KusamaRuntimeNposCompactSolution24, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeRuntime, KusamaRuntimeSessionKeys } from '@polkadot/types/lookup';
declare module '@polkadot/types/types/registry' {
interface InterfaceTypes {
KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin: KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin;
KusamaRuntimeNposCompactSolution24: KusamaRuntimeNposCompactSolution24;
KusamaRuntimeOriginCaller: KusamaRuntimeOriginCaller;
KusamaRuntimeProxyType: KusamaRuntimeProxyType;
File diff suppressed because one or more lines are too long