Bump static metadata (#5717)
* Bump static metadata * Adjust society candidate retrieval * Fix society member retrieval * Rebuild * Build runtime * Adjust types * Extract re-used types
This commit is contained in:
@@ -5,18 +5,69 @@
|
||||
|
||||
export default {
|
||||
/**
|
||||
* Lookup96: kusama_runtime::SessionKeys
|
||||
* Lookup94: pallet_beefy::pallet::Call<T>
|
||||
**/
|
||||
PalletBeefyCall: {
|
||||
_enum: {
|
||||
report_equivocation: {
|
||||
equivocationProof: 'SpConsensusBeefyEquivocationProof',
|
||||
keyOwnerProof: 'SpSessionMembershipProof',
|
||||
},
|
||||
report_equivocation_unsigned: {
|
||||
equivocationProof: 'SpConsensusBeefyEquivocationProof',
|
||||
keyOwnerProof: 'SpSessionMembershipProof'
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup95: sp_consensus_beefy::EquivocationProof<Number, sp_consensus_beefy::ecdsa_crypto::Public, sp_consensus_beefy::ecdsa_crypto::Signature>
|
||||
**/
|
||||
SpConsensusBeefyEquivocationProof: {
|
||||
first: 'SpConsensusBeefyVoteMessage',
|
||||
second: 'SpConsensusBeefyVoteMessage'
|
||||
},
|
||||
/**
|
||||
* Lookup96: sp_consensus_beefy::ecdsa_crypto::Public
|
||||
**/
|
||||
SpConsensusBeefyEcdsaCryptoPublic: 'SpCoreEcdsaPublic',
|
||||
/**
|
||||
* Lookup99: sp_consensus_beefy::ecdsa_crypto::Signature
|
||||
**/
|
||||
SpConsensusBeefyEcdsaCryptoSignature: 'SpCoreEcdsaSignature',
|
||||
/**
|
||||
* Lookup102: sp_consensus_beefy::VoteMessage<Number, sp_consensus_beefy::ecdsa_crypto::Public, sp_consensus_beefy::ecdsa_crypto::Signature>
|
||||
**/
|
||||
SpConsensusBeefyVoteMessage: {
|
||||
commitment: 'SpConsensusBeefyCommitment',
|
||||
id: 'SpConsensusBeefyEcdsaCryptoPublic',
|
||||
signature: 'SpConsensusBeefyEcdsaCryptoSignature'
|
||||
},
|
||||
/**
|
||||
* Lookup103: sp_consensus_beefy::commitment::Commitment<TBlockNumber>
|
||||
**/
|
||||
SpConsensusBeefyCommitment: {
|
||||
payload: 'SpConsensusBeefyPayload',
|
||||
blockNumber: 'u32',
|
||||
validatorSetId: 'u64'
|
||||
},
|
||||
/**
|
||||
* Lookup104: sp_consensus_beefy::payload::Payload
|
||||
**/
|
||||
SpConsensusBeefyPayload: 'Vec<([u8;2],Bytes)>',
|
||||
/**
|
||||
* Lookup109: kusama_runtime::SessionKeys
|
||||
**/
|
||||
KusamaRuntimeSessionKeys: {
|
||||
grandpa: 'SpConsensusGrandpaAppPublic',
|
||||
babe: 'SpConsensusBabeAppPublic',
|
||||
imOnline: 'PalletImOnlineSr25519AppSr25519Public',
|
||||
paraValidator: 'PolkadotPrimitivesV4ValidatorAppPublic',
|
||||
paraAssignment: 'PolkadotPrimitivesV4AssignmentAppPublic',
|
||||
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
|
||||
paraValidator: 'PolkadotPrimitivesV5ValidatorAppPublic',
|
||||
paraAssignment: 'PolkadotPrimitivesV5AssignmentAppPublic',
|
||||
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic',
|
||||
beefy: 'SpConsensusBeefyEcdsaCryptoPublic'
|
||||
},
|
||||
/**
|
||||
* Lookup127: kusama_runtime::OriginCaller
|
||||
* Lookup136: kusama_runtime::OriginCaller
|
||||
**/
|
||||
KusamaRuntimeOriginCaller: {
|
||||
_enum: {
|
||||
@@ -123,19 +174,19 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup129: kusama_runtime::governance::origins::pallet_custom_origins::Origin
|
||||
* Lookup138: 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']
|
||||
},
|
||||
/**
|
||||
* Lookup208: kusama_runtime::ProxyType
|
||||
* Lookup214: kusama_runtime::ProxyType
|
||||
**/
|
||||
KusamaRuntimeProxyType: {
|
||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society', 'NominationPools']
|
||||
},
|
||||
/**
|
||||
* Lookup217: kusama_runtime::NposCompactSolution24
|
||||
* Lookup223: kusama_runtime::NposCompactSolution24
|
||||
**/
|
||||
KusamaRuntimeNposCompactSolution24: {
|
||||
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
||||
@@ -164,7 +215,7 @@ export default {
|
||||
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
||||
},
|
||||
/**
|
||||
* Lookup543: kusama_runtime::RuntimeHoldReason
|
||||
* Lookup556: kusama_runtime::RuntimeHoldReason
|
||||
**/
|
||||
KusamaRuntimeRuntimeHoldReason: {
|
||||
_enum: {
|
||||
@@ -210,7 +261,21 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup869: kusama_runtime::Runtime
|
||||
* Lookup591: pallet_beefy::pallet::Error<T>
|
||||
**/
|
||||
PalletBeefyError: {
|
||||
_enum: ['InvalidKeyOwnershipProof', 'InvalidEquivocationProof', 'DuplicateOffenceReport']
|
||||
},
|
||||
/**
|
||||
* Lookup592: sp_consensus_beefy::mmr::BeefyAuthoritySet<primitive_types::H256>
|
||||
**/
|
||||
SpConsensusBeefyMmrBeefyAuthoritySet: {
|
||||
id: 'u64',
|
||||
len: 'u32',
|
||||
keysetCommitment: 'H256'
|
||||
},
|
||||
/**
|
||||
* Lookup891: kusama_runtime::Runtime
|
||||
**/
|
||||
KusamaRuntimeRuntime: 'Null'
|
||||
};
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -5,22 +5,67 @@
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/types/lookup';
|
||||
|
||||
import type { Compact, Enum, Null, Struct, Vec, u16, u32 } from '@polkadot/types-codec';
|
||||
import type { Bytes, Compact, Enum, Null, Struct, U8aFixed, Vec, u16, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { H256, PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
declare module '@polkadot/types/lookup' {
|
||||
/** @name KusamaRuntimeSessionKeys (96) */
|
||||
/** @name PalletBeefyCall (94) */
|
||||
interface PalletBeefyCall extends Enum {
|
||||
readonly isReportEquivocation: boolean;
|
||||
readonly asReportEquivocation: {
|
||||
readonly equivocationProof: SpConsensusBeefyEquivocationProof;
|
||||
readonly keyOwnerProof: SpSessionMembershipProof;
|
||||
} & Struct;
|
||||
readonly isReportEquivocationUnsigned: boolean;
|
||||
readonly asReportEquivocationUnsigned: {
|
||||
readonly equivocationProof: SpConsensusBeefyEquivocationProof;
|
||||
readonly keyOwnerProof: SpSessionMembershipProof;
|
||||
} & Struct;
|
||||
readonly type: 'ReportEquivocation' | 'ReportEquivocationUnsigned';
|
||||
}
|
||||
|
||||
/** @name SpConsensusBeefyEquivocationProof (95) */
|
||||
interface SpConsensusBeefyEquivocationProof extends Struct {
|
||||
readonly first: SpConsensusBeefyVoteMessage;
|
||||
readonly second: SpConsensusBeefyVoteMessage;
|
||||
}
|
||||
|
||||
/** @name SpConsensusBeefyEcdsaCryptoPublic (96) */
|
||||
interface SpConsensusBeefyEcdsaCryptoPublic extends SpCoreEcdsaPublic {}
|
||||
|
||||
/** @name SpConsensusBeefyEcdsaCryptoSignature (99) */
|
||||
interface SpConsensusBeefyEcdsaCryptoSignature extends SpCoreEcdsaSignature {}
|
||||
|
||||
/** @name SpConsensusBeefyVoteMessage (102) */
|
||||
interface SpConsensusBeefyVoteMessage extends Struct {
|
||||
readonly commitment: SpConsensusBeefyCommitment;
|
||||
readonly id: SpConsensusBeefyEcdsaCryptoPublic;
|
||||
readonly signature: SpConsensusBeefyEcdsaCryptoSignature;
|
||||
}
|
||||
|
||||
/** @name SpConsensusBeefyCommitment (103) */
|
||||
interface SpConsensusBeefyCommitment extends Struct {
|
||||
readonly payload: SpConsensusBeefyPayload;
|
||||
readonly blockNumber: u32;
|
||||
readonly validatorSetId: u64;
|
||||
}
|
||||
|
||||
/** @name SpConsensusBeefyPayload (104) */
|
||||
interface SpConsensusBeefyPayload extends Vec<ITuple<[U8aFixed, Bytes]>> {}
|
||||
|
||||
/** @name KusamaRuntimeSessionKeys (109) */
|
||||
interface KusamaRuntimeSessionKeys extends Struct {
|
||||
readonly grandpa: SpConsensusGrandpaAppPublic;
|
||||
readonly babe: SpConsensusBabeAppPublic;
|
||||
readonly imOnline: PalletImOnlineSr25519AppSr25519Public;
|
||||
readonly paraValidator: PolkadotPrimitivesV4ValidatorAppPublic;
|
||||
readonly paraAssignment: PolkadotPrimitivesV4AssignmentAppPublic;
|
||||
readonly paraValidator: PolkadotPrimitivesV5ValidatorAppPublic;
|
||||
readonly paraAssignment: PolkadotPrimitivesV5AssignmentAppPublic;
|
||||
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
||||
readonly beefy: SpConsensusBeefyEcdsaCryptoPublic;
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeOriginCaller (127) */
|
||||
/** @name KusamaRuntimeOriginCaller (136) */
|
||||
interface KusamaRuntimeOriginCaller extends Enum {
|
||||
readonly isSystem: boolean;
|
||||
readonly asSystem: FrameSupportDispatchRawOrigin;
|
||||
@@ -34,7 +79,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'System' | 'Void' | 'Origins' | 'ParachainsOrigin' | 'XcmPallet';
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin (129) */
|
||||
/** @name KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin (138) */
|
||||
interface KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin extends Enum {
|
||||
readonly isStakingAdmin: boolean;
|
||||
readonly isTreasurer: boolean;
|
||||
@@ -66,7 +111,7 @@ declare module '@polkadot/types/lookup' {
|
||||
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 (208) */
|
||||
/** @name KusamaRuntimeProxyType (214) */
|
||||
interface KusamaRuntimeProxyType extends Enum {
|
||||
readonly isAny: boolean;
|
||||
readonly isNonTransfer: boolean;
|
||||
@@ -80,7 +125,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools';
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeNposCompactSolution24 (217) */
|
||||
/** @name KusamaRuntimeNposCompactSolution24 (223) */
|
||||
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>]>>;
|
||||
@@ -108,14 +153,29 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeRuntimeHoldReason (543) */
|
||||
/** @name KusamaRuntimeRuntimeHoldReason (556) */
|
||||
interface KusamaRuntimeRuntimeHoldReason extends Enum {
|
||||
readonly isNis: boolean;
|
||||
readonly asNis: PalletNisHoldReason;
|
||||
readonly type: 'Nis';
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeRuntime (869) */
|
||||
/** @name PalletBeefyError (591) */
|
||||
interface PalletBeefyError extends Enum {
|
||||
readonly isInvalidKeyOwnershipProof: boolean;
|
||||
readonly isInvalidEquivocationProof: boolean;
|
||||
readonly isDuplicateOffenceReport: boolean;
|
||||
readonly type: 'InvalidKeyOwnershipProof' | 'InvalidEquivocationProof' | 'DuplicateOffenceReport';
|
||||
}
|
||||
|
||||
/** @name SpConsensusBeefyMmrBeefyAuthoritySet (592) */
|
||||
interface SpConsensusBeefyMmrBeefyAuthoritySet extends Struct {
|
||||
readonly id: u64;
|
||||
readonly len: u32;
|
||||
readonly keysetCommitment: H256;
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeRuntime (891) */
|
||||
type KusamaRuntimeRuntime = Null;
|
||||
|
||||
} // declare module
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -5,7 +5,7 @@
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/types/types/registry';
|
||||
|
||||
import type { KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, KusamaRuntimeNposCompactSolution24, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeRuntime, KusamaRuntimeRuntimeHoldReason, KusamaRuntimeSessionKeys } from '@polkadot/types/lookup';
|
||||
import type { KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, KusamaRuntimeNposCompactSolution24, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeRuntime, KusamaRuntimeRuntimeHoldReason, KusamaRuntimeSessionKeys, PalletBeefyCall, PalletBeefyError, SpConsensusBeefyCommitment, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyEcdsaCryptoSignature, SpConsensusBeefyEquivocationProof, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusBeefyPayload, SpConsensusBeefyVoteMessage } from '@polkadot/types/lookup';
|
||||
|
||||
declare module '@polkadot/types/types/registry' {
|
||||
interface InterfaceTypes {
|
||||
@@ -16,5 +16,14 @@ declare module '@polkadot/types/types/registry' {
|
||||
KusamaRuntimeRuntime: KusamaRuntimeRuntime;
|
||||
KusamaRuntimeRuntimeHoldReason: KusamaRuntimeRuntimeHoldReason;
|
||||
KusamaRuntimeSessionKeys: KusamaRuntimeSessionKeys;
|
||||
PalletBeefyCall: PalletBeefyCall;
|
||||
PalletBeefyError: PalletBeefyError;
|
||||
SpConsensusBeefyCommitment: SpConsensusBeefyCommitment;
|
||||
SpConsensusBeefyEcdsaCryptoPublic: SpConsensusBeefyEcdsaCryptoPublic;
|
||||
SpConsensusBeefyEcdsaCryptoSignature: SpConsensusBeefyEcdsaCryptoSignature;
|
||||
SpConsensusBeefyEquivocationProof: SpConsensusBeefyEquivocationProof;
|
||||
SpConsensusBeefyMmrBeefyAuthoritySet: SpConsensusBeefyMmrBeefyAuthoritySet;
|
||||
SpConsensusBeefyPayload: SpConsensusBeefyPayload;
|
||||
SpConsensusBeefyVoteMessage: SpConsensusBeefyVoteMessage;
|
||||
} // InterfaceTypes
|
||||
} // declare module
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user