Bump to latest Substrate metadata (#5807)
* Bump to latest substrate metadata * Bump to latest Substrate metadata * Update type-support docs for metadata * Update docs again * fix compat issues * adjust types
This commit is contained in:
@@ -4,56 +4,6 @@
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
export default {
|
||||
/**
|
||||
* 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
|
||||
**/
|
||||
@@ -260,20 +210,6 @@ export default {
|
||||
Nis: 'PalletNisHoldReason'
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 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
|
||||
**/
|
||||
|
||||
@@ -1132,10 +1132,6 @@ export default {
|
||||
Ecdsa: 'SpCoreEcdsaPublic'
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup344: sp_core::ecdsa::Public
|
||||
**/
|
||||
SpCoreEcdsaPublic: '[u8;33]',
|
||||
/**
|
||||
* Lookup349: pallet_xcm::pallet::Call<T>
|
||||
**/
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -5,55 +5,11 @@
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/types/lookup';
|
||||
|
||||
import type { Bytes, Compact, Enum, Null, Struct, U8aFixed, Vec, u16, u32, u64 } 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 { H256, PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
declare module '@polkadot/types/lookup' {
|
||||
/** @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;
|
||||
@@ -160,21 +116,6 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Nis';
|
||||
}
|
||||
|
||||
/** @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;
|
||||
|
||||
|
||||
@@ -991,9 +991,6 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
|
||||
}
|
||||
|
||||
/** @name SpCoreEcdsaPublic (344) */
|
||||
interface SpCoreEcdsaPublic extends U8aFixed {}
|
||||
|
||||
/** @name PalletXcmCall (349) */
|
||||
interface PalletXcmCall extends Enum {
|
||||
readonly isSend: boolean;
|
||||
|
||||
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, PalletBeefyCall, PalletBeefyError, SpConsensusBeefyCommitment, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyEcdsaCryptoSignature, SpConsensusBeefyEquivocationProof, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusBeefyPayload, SpConsensusBeefyVoteMessage } from '@polkadot/types/lookup';
|
||||
import type { KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, KusamaRuntimeNposCompactSolution24, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeRuntime, KusamaRuntimeRuntimeHoldReason, KusamaRuntimeSessionKeys } from '@polkadot/types/lookup';
|
||||
|
||||
declare module '@polkadot/types/types/registry' {
|
||||
interface InterfaceTypes {
|
||||
@@ -16,14 +16,5 @@ 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