diff --git a/packages/typegen/src/generate/lookup.ts b/packages/typegen/src/generate/lookup.ts index e02427497936..8a210f8c675a 100644 --- a/packages/typegen/src/generate/lookup.ts +++ b/packages/typegen/src/generate/lookup.ts @@ -14,6 +14,7 @@ import * as defaultDefinitions from '@polkadot/types/interfaces/definitions'; import staticKusama from '@polkadot/types-support/metadata/static-kusama'; import staticPolkadot from '@polkadot/types-support/metadata/static-polkadot'; import staticSubstrate from '@polkadot/types-support/metadata/static-substrate'; +import staticCollectives from '@polkadot/types-support/metadata/static-collectives'; import { isString, stringify } from '@polkadot/util'; import { createImports, exportInterface, initMeta, readTemplate, writeFile } from '../util/index.js'; @@ -271,7 +272,9 @@ export function generateDefaultLookup (destDir = 'packages/types-augment/src/loo : [ ['substrate', staticSubstrate], ['polkadot', staticPolkadot], - ['kusama', staticKusama] + ['kusama', staticKusama], + ['collectives', staticCollectives], + ] ); } diff --git a/packages/types-augment/src/lookup/collectives.ts b/packages/types-augment/src/lookup/collectives.ts new file mode 100644 index 000000000000..86c6808e4049 --- /dev/null +++ b/packages/types-augment/src/lookup/collectives.ts @@ -0,0 +1,651 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +/* eslint-disable sort-keys */ + +export default { + /** + * Lookup30: cumulus_pallet_parachain_system::pallet::Event + **/ + CumulusPalletParachainSystemEvent: { + _enum: { + ValidationFunctionStored: 'Null', + ValidationFunctionApplied: { + relayChainBlockNum: 'u32', + }, + ValidationFunctionDiscarded: 'Null', + UpgradeAuthorized: { + codeHash: 'H256', + }, + DownwardMessagesReceived: { + count: 'u32', + }, + DownwardMessagesProcessed: { + weightUsed: 'SpWeightsWeightV2Weight', + dmqHead: 'H256', + }, + UpwardMessageSent: { + messageHash: 'Option<[u8;32]>' + } + } + }, + /** + * Lookup35: pallet_collator_selection::pallet::Event + **/ + PalletCollatorSelectionEvent: { + _enum: { + NewInvulnerables: { + invulnerables: 'Vec', + }, + InvulnerableAdded: { + accountId: 'AccountId32', + }, + InvulnerableRemoved: { + accountId: 'AccountId32', + }, + NewDesiredCandidates: { + desiredCandidates: 'u32', + }, + NewCandidacyBond: { + bondAmount: 'u128', + }, + CandidateAdded: { + accountId: 'AccountId32', + deposit: 'u128', + }, + CandidateRemoved: { + accountId: 'AccountId32', + }, + InvalidInvulnerableSkipped: { + accountId: 'AccountId32' + } + } + }, + /** + * Lookup38: cumulus_pallet_xcmp_queue::pallet::Event + **/ + CumulusPalletXcmpQueueEvent: { + _enum: { + Success: { + messageHash: '[u8;32]', + messageId: '[u8;32]', + weight: 'SpWeightsWeightV2Weight', + }, + Fail: { + messageHash: '[u8;32]', + messageId: '[u8;32]', + error: 'XcmV3TraitsError', + weight: 'SpWeightsWeightV2Weight', + }, + BadVersion: { + messageHash: '[u8;32]', + }, + BadFormat: { + messageHash: '[u8;32]', + }, + XcmpMessageSent: { + messageHash: '[u8;32]', + }, + OverweightEnqueued: { + sender: 'u32', + sentAt: 'u32', + index: 'u64', + required: 'SpWeightsWeightV2Weight', + }, + OverweightServiced: { + index: 'u64', + used: 'SpWeightsWeightV2Weight' + } + } + }, + /** + * Lookup43: staging_xcm::v3::multilocation::MultiLocation + **/ + StagingXcmV3MultiLocation: { + parents: 'u8', + interior: 'XcmV3Junctions' + }, + /** + * Lookup97: cumulus_pallet_xcm::pallet::Event + **/ + CumulusPalletXcmEvent: { + _enum: { + InvalidFormat: '[u8;32]', + UnsupportedVersion: '[u8;32]', + ExecutedDownward: '([u8;32],XcmV3TraitsOutcome)' + } + }, + /** + * Lookup98: cumulus_pallet_dmp_queue::pallet::Event + **/ + CumulusPalletDmpQueueEvent: { + _enum: { + InvalidFormat: { + messageHash: '[u8;32]', + }, + UnsupportedVersion: { + messageHash: '[u8;32]', + }, + ExecutedDownward: { + messageHash: '[u8;32]', + messageId: '[u8;32]', + outcome: 'XcmV3TraitsOutcome', + }, + WeightExhausted: { + messageHash: '[u8;32]', + messageId: '[u8;32]', + remainingWeight: 'SpWeightsWeightV2Weight', + requiredWeight: 'SpWeightsWeightV2Weight', + }, + OverweightEnqueued: { + messageHash: '[u8;32]', + messageId: '[u8;32]', + overweightIndex: 'u64', + requiredWeight: 'SpWeightsWeightV2Weight', + }, + OverweightServiced: { + overweightIndex: 'u64', + weightUsed: 'SpWeightsWeightV2Weight', + }, + MaxMessagesExhausted: { + messageHash: '[u8;32]' + } + } + }, + /** + * Lookup105: collectives_polkadot_runtime::ProxyType + **/ + CollectivesPolkadotRuntimeProxyType: { + _enum: ['Any', 'NonTransfer', 'CancelProxy', 'Collator', 'Alliance', 'Fellowship'] + }, + /** + * Lookup111: polkadot_runtime_common::impls::VersionedLocatableAsset + **/ + PolkadotRuntimeCommonImplsVersionedLocatableAsset: { + _enum: { + __Unused0: 'Null', + __Unused1: 'Null', + __Unused2: 'Null', + V3: { + location: 'StagingXcmV3MultiLocation', + assetId: 'XcmV3MultiassetAssetId' + } + } + }, + /** + * Lookup134: cumulus_pallet_parachain_system::pallet::Call + **/ + CumulusPalletParachainSystemCall: { + _enum: { + set_validation_data: { + data: 'CumulusPrimitivesParachainInherentParachainInherentData', + }, + sudo_send_upward_message: { + message: 'Bytes', + }, + authorize_upgrade: { + codeHash: 'H256', + checkVersion: 'bool', + }, + enact_authorized_upgrade: { + code: 'Bytes' + } + } + }, + /** + * Lookup135: cumulus_primitives_parachain_inherent::ParachainInherentData + **/ + CumulusPrimitivesParachainInherentParachainInherentData: { + validationData: 'PolkadotPrimitivesV6PersistedValidationData', + relayChainState: 'SpTrieStorageProof', + downwardMessages: 'Vec', + horizontalMessages: 'BTreeMap>' + }, + /** + * Lookup136: polkadot_primitives::v6::PersistedValidationData + **/ + PolkadotPrimitivesV6PersistedValidationData: { + parentHead: 'Bytes', + relayParentNumber: 'u32', + relayParentStorageRoot: 'H256', + maxPovSize: 'u32' + }, + /** + * Lookup138: sp_trie::storage_proof::StorageProof + **/ + SpTrieStorageProof: { + trieNodes: 'BTreeSet' + }, + /** + * Lookup151: pallet_collator_selection::pallet::Call + **/ + PalletCollatorSelectionCall: { + _enum: { + set_invulnerables: { + _alias: { + new_: 'new', + }, + new_: 'Vec', + }, + set_desired_candidates: { + max: 'u32', + }, + set_candidacy_bond: { + bond: 'u128', + }, + register_as_candidate: 'Null', + leave_intent: 'Null', + add_invulnerable: { + who: 'AccountId32', + }, + remove_invulnerable: { + who: 'AccountId32' + } + } + }, + /** + * Lookup153: collectives_polkadot_runtime::SessionKeys + **/ + CollectivesPolkadotRuntimeSessionKeys: { + aura: 'SpConsensusAuraSr25519AppSr25519Public' + }, + /** + * Lookup154: sp_consensus_aura::sr25519::app_sr25519::Public + **/ + SpConsensusAuraSr25519AppSr25519Public: 'SpCoreSr25519Public', + /** + * Lookup156: cumulus_pallet_xcmp_queue::pallet::Call + **/ + CumulusPalletXcmpQueueCall: { + _enum: { + service_overweight: { + index: 'u64', + weightLimit: 'SpWeightsWeightV2Weight', + }, + suspend_xcm_execution: 'Null', + resume_xcm_execution: 'Null', + update_suspend_threshold: { + _alias: { + new_: 'new', + }, + new_: 'u32', + }, + update_drop_threshold: { + _alias: { + new_: 'new', + }, + new_: 'u32', + }, + update_resume_threshold: { + _alias: { + new_: 'new', + }, + new_: 'u32', + }, + update_threshold_weight: { + _alias: { + new_: 'new', + }, + new_: 'SpWeightsWeightV2Weight', + }, + update_weight_restrict_decay: { + _alias: { + new_: 'new', + }, + new_: 'SpWeightsWeightV2Weight', + }, + update_xcmp_max_individual_weight: { + _alias: { + new_: 'new', + }, + new_: 'SpWeightsWeightV2Weight' + } + } + }, + /** + * Lookup179: cumulus_pallet_dmp_queue::pallet::Call + **/ + CumulusPalletDmpQueueCall: { + _enum: { + service_overweight: { + index: 'u64', + weightLimit: 'SpWeightsWeightV2Weight' + } + } + }, + /** + * Lookup182: collectives_polkadot_runtime::OriginCaller + **/ + CollectivesPolkadotRuntimeOriginCaller: { + _enum: { + system: 'FrameSupportDispatchRawOrigin', + __Unused1: 'Null', + __Unused2: 'Null', + __Unused3: 'Null', + __Unused4: 'Null', + Void: 'SpCoreVoid', + __Unused6: 'Null', + __Unused7: 'Null', + __Unused8: 'Null', + __Unused9: 'Null', + __Unused10: 'Null', + __Unused11: 'Null', + __Unused12: 'Null', + __Unused13: 'Null', + __Unused14: 'Null', + __Unused15: 'Null', + __Unused16: 'Null', + __Unused17: 'Null', + __Unused18: 'Null', + __Unused19: 'Null', + __Unused20: 'Null', + __Unused21: 'Null', + __Unused22: 'Null', + __Unused23: 'Null', + __Unused24: 'Null', + __Unused25: 'Null', + __Unused26: 'Null', + __Unused27: 'Null', + __Unused28: 'Null', + __Unused29: 'Null', + __Unused30: 'Null', + PolkadotXcm: 'PalletXcmOrigin', + CumulusXcm: 'CumulusPalletXcmOrigin', + __Unused33: 'Null', + __Unused34: 'Null', + __Unused35: 'Null', + __Unused36: 'Null', + __Unused37: 'Null', + __Unused38: 'Null', + __Unused39: 'Null', + __Unused40: 'Null', + __Unused41: 'Null', + __Unused42: 'Null', + __Unused43: 'Null', + __Unused44: 'Null', + __Unused45: 'Null', + __Unused46: 'Null', + __Unused47: 'Null', + __Unused48: 'Null', + __Unused49: 'Null', + __Unused50: 'Null', + AllianceMotion: 'PalletCollectiveRawOrigin', + __Unused52: 'Null', + __Unused53: 'Null', + __Unused54: 'Null', + __Unused55: 'Null', + __Unused56: 'Null', + __Unused57: 'Null', + __Unused58: 'Null', + __Unused59: 'Null', + __Unused60: 'Null', + __Unused61: 'Null', + FellowshipOrigins: 'CollectivesPolkadotRuntimeFellowshipOriginsPalletOriginsOrigin' + } + }, + /** + * Lookup185: cumulus_pallet_xcm::pallet::Origin + **/ + CumulusPalletXcmOrigin: { + _enum: { + Relay: 'Null', + SiblingParachain: 'u32' + } + }, + /** + * Lookup187: collectives_polkadot_runtime::fellowship::origins::pallet_origins::Origin + **/ + CollectivesPolkadotRuntimeFellowshipOriginsPalletOriginsOrigin: { + _enum: ['Members', 'Fellowship2Dan', 'Fellows', 'Architects', 'Fellowship5Dan', 'Fellowship6Dan', 'Masters', 'Fellowship8Dan', 'Fellowship9Dan', 'RetainAt1Dan', 'RetainAt2Dan', 'RetainAt3Dan', 'RetainAt4Dan', 'RetainAt5Dan', 'RetainAt6Dan', 'PromoteTo1Dan', 'PromoteTo2Dan', 'PromoteTo3Dan', 'PromoteTo4Dan', 'PromoteTo5Dan', 'PromoteTo6Dan'] + }, + /** + * Lookup236: cumulus_pallet_parachain_system::unincluded_segment::Ancestor + **/ + CumulusPalletParachainSystemUnincludedSegmentAncestor: { + usedBandwidth: 'CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth', + paraHeadHash: 'Option', + consumedGoAheadSignal: 'Option' + }, + /** + * Lookup237: cumulus_pallet_parachain_system::unincluded_segment::UsedBandwidth + **/ + CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth: { + umpMsgCount: 'u32', + umpTotalBytes: 'u32', + hrmpOutgoing: 'BTreeMap' + }, + /** + * Lookup239: cumulus_pallet_parachain_system::unincluded_segment::HrmpChannelUpdate + **/ + CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate: { + msgCount: 'u32', + totalBytes: 'u32' + }, + /** + * Lookup243: polkadot_primitives::v6::UpgradeGoAhead + **/ + PolkadotPrimitivesV6UpgradeGoAhead: { + _enum: ['Abort', 'GoAhead'] + }, + /** + * Lookup244: cumulus_pallet_parachain_system::unincluded_segment::SegmentTracker + **/ + CumulusPalletParachainSystemUnincludedSegmentSegmentTracker: { + usedBandwidth: 'CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth', + hrmpWatermark: 'Option', + consumedGoAheadSignal: 'Option' + }, + /** + * Lookup246: polkadot_primitives::v6::UpgradeRestriction + **/ + PolkadotPrimitivesV6UpgradeRestriction: { + _enum: ['Present'] + }, + /** + * Lookup247: cumulus_pallet_parachain_system::relay_state_snapshot::MessagingStateSnapshot + **/ + CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: { + dmqMqcHead: 'H256', + relayDispatchQueueRemainingCapacity: 'CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity', + ingressChannels: 'Vec<(u32,PolkadotPrimitivesV6AbridgedHrmpChannel)>', + egressChannels: 'Vec<(u32,PolkadotPrimitivesV6AbridgedHrmpChannel)>' + }, + /** + * Lookup248: cumulus_pallet_parachain_system::relay_state_snapshot::RelayDispatchQueueRemainingCapacity + **/ + CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity: { + remainingCount: 'u32', + remainingSize: 'u32' + }, + /** + * Lookup251: polkadot_primitives::v6::AbridgedHrmpChannel + **/ + PolkadotPrimitivesV6AbridgedHrmpChannel: { + maxCapacity: 'u32', + maxTotalSize: 'u32', + maxMessageSize: 'u32', + msgCount: 'u32', + totalSize: 'u32', + mqcHead: 'Option' + }, + /** + * Lookup252: polkadot_primitives::v6::AbridgedHostConfiguration + **/ + PolkadotPrimitivesV6AbridgedHostConfiguration: { + maxCodeSize: 'u32', + maxHeadDataSize: 'u32', + maxUpwardQueueCount: 'u32', + maxUpwardQueueSize: 'u32', + maxUpwardMessageSize: 'u32', + maxUpwardMessageNumPerCandidate: 'u32', + hrmpMaxMessageNumPerCandidate: 'u32', + validationUpgradeCooldown: 'u32', + validationUpgradeDelay: 'u32', + asyncBackingParams: 'PolkadotPrimitivesV6AsyncBackingAsyncBackingParams' + }, + /** + * Lookup253: polkadot_primitives::v6::async_backing::AsyncBackingParams + **/ + PolkadotPrimitivesV6AsyncBackingAsyncBackingParams: { + maxCandidateDepth: 'u32', + allowedAncestryLen: 'u32' + }, + /** + * Lookup260: cumulus_pallet_parachain_system::CodeUpgradeAuthorization + **/ + CumulusPalletParachainSystemCodeUpgradeAuthorization: { + codeHash: 'H256', + checkVersion: 'bool' + }, + /** + * Lookup261: cumulus_pallet_parachain_system::pallet::Error + **/ + CumulusPalletParachainSystemError: { + _enum: ['OverlappingUpgrades', 'ProhibitedByPolkadot', 'TooBig', 'ValidationDataNotAvailable', 'HostConfigurationNotAvailable', 'NotScheduled', 'NothingAuthorized', 'Unauthorized'] + }, + /** + * Lookup271: collectives_polkadot_runtime::RuntimeHoldReason + **/ + CollectivesPolkadotRuntimeRuntimeHoldReason: { + _enum: { + __Unused0: 'Null', + __Unused1: 'Null', + __Unused2: 'Null', + __Unused3: 'Null', + __Unused4: 'Null', + __Unused5: 'Null', + __Unused6: 'Null', + __Unused7: 'Null', + __Unused8: 'Null', + __Unused9: 'Null', + __Unused10: 'Null', + __Unused11: 'Null', + __Unused12: 'Null', + __Unused13: 'Null', + __Unused14: 'Null', + __Unused15: 'Null', + __Unused16: 'Null', + __Unused17: 'Null', + __Unused18: 'Null', + __Unused19: 'Null', + __Unused20: 'Null', + __Unused21: 'Null', + __Unused22: 'Null', + __Unused23: 'Null', + __Unused24: 'Null', + __Unused25: 'Null', + __Unused26: 'Null', + __Unused27: 'Null', + __Unused28: 'Null', + __Unused29: 'Null', + __Unused30: 'Null', + __Unused31: 'Null', + __Unused32: 'Null', + __Unused33: 'Null', + __Unused34: 'Null', + __Unused35: 'Null', + __Unused36: 'Null', + __Unused37: 'Null', + __Unused38: 'Null', + __Unused39: 'Null', + __Unused40: 'Null', + __Unused41: 'Null', + __Unused42: 'Null', + Preimage: 'PalletPreimageHoldReason' + } + }, + /** + * Lookup281: pallet_collator_selection::pallet::CandidateInfo + **/ + PalletCollatorSelectionCandidateInfo: { + who: 'AccountId32', + deposit: 'u128' + }, + /** + * Lookup283: pallet_collator_selection::pallet::Error + **/ + PalletCollatorSelectionError: { + _enum: ['TooManyCandidates', 'TooFewEligibleCollators', 'AlreadyCandidate', 'NotCandidate', 'TooManyInvulnerables', 'AlreadyInvulnerable', 'NotInvulnerable', 'NoAssociatedValidatorId', 'ValidatorNotRegistered'] + }, + /** + * Lookup295: cumulus_pallet_xcmp_queue::InboundChannelDetails + **/ + CumulusPalletXcmpQueueInboundChannelDetails: { + sender: 'u32', + state: 'CumulusPalletXcmpQueueInboundState', + messageMetadata: 'Vec<(u32,PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat)>' + }, + /** + * Lookup296: cumulus_pallet_xcmp_queue::InboundState + **/ + CumulusPalletXcmpQueueInboundState: { + _enum: ['Ok', 'Suspended'] + }, + /** + * Lookup299: polkadot_parachain_primitives::primitives::XcmpMessageFormat + **/ + PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat: { + _enum: ['ConcatenatedVersionedXcm', 'ConcatenatedEncodedBlob', 'Signals'] + }, + /** + * Lookup302: cumulus_pallet_xcmp_queue::OutboundChannelDetails + **/ + CumulusPalletXcmpQueueOutboundChannelDetails: { + recipient: 'u32', + state: 'CumulusPalletXcmpQueueOutboundState', + signalsExist: 'bool', + firstIndex: 'u16', + lastIndex: 'u16' + }, + /** + * Lookup303: cumulus_pallet_xcmp_queue::OutboundState + **/ + CumulusPalletXcmpQueueOutboundState: { + _enum: ['Ok', 'Suspended'] + }, + /** + * Lookup305: cumulus_pallet_xcmp_queue::QueueConfigData + **/ + CumulusPalletXcmpQueueQueueConfigData: { + suspendThreshold: 'u32', + dropThreshold: 'u32', + resumeThreshold: 'u32', + thresholdWeight: 'SpWeightsWeightV2Weight', + weightRestrictDecay: 'SpWeightsWeightV2Weight', + xcmpMaxIndividualWeight: 'SpWeightsWeightV2Weight' + }, + /** + * Lookup307: cumulus_pallet_xcmp_queue::pallet::Error + **/ + CumulusPalletXcmpQueueError: { + _enum: ['FailedToSend', 'BadXcmOrigin', 'BadXcm', 'BadOverweightIndex', 'WeightOverLimit'] + }, + /** + * Lookup330: cumulus_pallet_xcm::pallet::Error + **/ + CumulusPalletXcmError: 'Null', + /** + * Lookup331: cumulus_pallet_dmp_queue::ConfigData + **/ + CumulusPalletDmpQueueConfigData: { + maxIndividual: 'SpWeightsWeightV2Weight' + }, + /** + * Lookup332: cumulus_pallet_dmp_queue::PageIndexData + **/ + CumulusPalletDmpQueuePageIndexData: { + beginUsed: 'u32', + endUsed: 'u32', + overweightCount: 'u64' + }, + /** + * Lookup335: cumulus_pallet_dmp_queue::pallet::Error + **/ + CumulusPalletDmpQueueError: { + _enum: ['Unknown', 'OverLimit'] + }, + /** + * Lookup428: collectives_polkadot_runtime::Runtime + **/ + CollectivesPolkadotRuntimeRuntime: 'Null' +}; diff --git a/packages/types-augment/src/lookup/types-collectives.ts b/packages/types-augment/src/lookup/types-collectives.ts new file mode 100644 index 000000000000..ea49dc5db2a9 --- /dev/null +++ b/packages/types-augment/src/lookup/types-collectives.ts @@ -0,0 +1,588 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/types/lookup'; + +import type { BTreeMap, BTreeSet, Bytes, Enum, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; +import type { ITuple } from '@polkadot/types-codec/types'; +import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime'; + +declare module '@polkadot/types/lookup' { + /** @name CumulusPalletParachainSystemEvent (30) */ + interface CumulusPalletParachainSystemEvent extends Enum { + readonly isValidationFunctionStored: boolean; + readonly isValidationFunctionApplied: boolean; + readonly asValidationFunctionApplied: { + readonly relayChainBlockNum: u32; + } & Struct; + readonly isValidationFunctionDiscarded: boolean; + readonly isUpgradeAuthorized: boolean; + readonly asUpgradeAuthorized: { + readonly codeHash: H256; + } & Struct; + readonly isDownwardMessagesReceived: boolean; + readonly asDownwardMessagesReceived: { + readonly count: u32; + } & Struct; + readonly isDownwardMessagesProcessed: boolean; + readonly asDownwardMessagesProcessed: { + readonly weightUsed: SpWeightsWeightV2Weight; + readonly dmqHead: H256; + } & Struct; + readonly isUpwardMessageSent: boolean; + readonly asUpwardMessageSent: { + readonly messageHash: Option; + } & Struct; + readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed' | 'UpwardMessageSent'; + } + + /** @name PalletCollatorSelectionEvent (35) */ + interface PalletCollatorSelectionEvent extends Enum { + readonly isNewInvulnerables: boolean; + readonly asNewInvulnerables: { + readonly invulnerables: Vec; + } & Struct; + readonly isInvulnerableAdded: boolean; + readonly asInvulnerableAdded: { + readonly accountId: AccountId32; + } & Struct; + readonly isInvulnerableRemoved: boolean; + readonly asInvulnerableRemoved: { + readonly accountId: AccountId32; + } & Struct; + readonly isNewDesiredCandidates: boolean; + readonly asNewDesiredCandidates: { + readonly desiredCandidates: u32; + } & Struct; + readonly isNewCandidacyBond: boolean; + readonly asNewCandidacyBond: { + readonly bondAmount: u128; + } & Struct; + readonly isCandidateAdded: boolean; + readonly asCandidateAdded: { + readonly accountId: AccountId32; + readonly deposit: u128; + } & Struct; + readonly isCandidateRemoved: boolean; + readonly asCandidateRemoved: { + readonly accountId: AccountId32; + } & Struct; + readonly isInvalidInvulnerableSkipped: boolean; + readonly asInvalidInvulnerableSkipped: { + readonly accountId: AccountId32; + } & Struct; + readonly type: 'NewInvulnerables' | 'InvulnerableAdded' | 'InvulnerableRemoved' | 'NewDesiredCandidates' | 'NewCandidacyBond' | 'CandidateAdded' | 'CandidateRemoved' | 'InvalidInvulnerableSkipped'; + } + + /** @name CumulusPalletXcmpQueueEvent (38) */ + interface CumulusPalletXcmpQueueEvent extends Enum { + readonly isSuccess: boolean; + readonly asSuccess: { + readonly messageHash: U8aFixed; + readonly messageId: U8aFixed; + readonly weight: SpWeightsWeightV2Weight; + } & Struct; + readonly isFail: boolean; + readonly asFail: { + readonly messageHash: U8aFixed; + readonly messageId: U8aFixed; + readonly error: XcmV3TraitsError; + readonly weight: SpWeightsWeightV2Weight; + } & Struct; + readonly isBadVersion: boolean; + readonly asBadVersion: { + readonly messageHash: U8aFixed; + } & Struct; + readonly isBadFormat: boolean; + readonly asBadFormat: { + readonly messageHash: U8aFixed; + } & Struct; + readonly isXcmpMessageSent: boolean; + readonly asXcmpMessageSent: { + readonly messageHash: U8aFixed; + } & Struct; + readonly isOverweightEnqueued: boolean; + readonly asOverweightEnqueued: { + readonly sender: u32; + readonly sentAt: u32; + readonly index: u64; + readonly required: SpWeightsWeightV2Weight; + } & Struct; + readonly isOverweightServiced: boolean; + readonly asOverweightServiced: { + readonly index: u64; + readonly used: SpWeightsWeightV2Weight; + } & Struct; + readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced'; + } + + /** @name StagingXcmV3MultiLocation (43) */ + interface StagingXcmV3MultiLocation extends Struct { + readonly parents: u8; + readonly interior: XcmV3Junctions; + } + + /** @name CumulusPalletXcmEvent (97) */ + interface CumulusPalletXcmEvent extends Enum { + readonly isInvalidFormat: boolean; + readonly asInvalidFormat: U8aFixed; + readonly isUnsupportedVersion: boolean; + readonly asUnsupportedVersion: U8aFixed; + readonly isExecutedDownward: boolean; + readonly asExecutedDownward: ITuple<[U8aFixed, XcmV3TraitsOutcome]>; + readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward'; + } + + /** @name CumulusPalletDmpQueueEvent (98) */ + interface CumulusPalletDmpQueueEvent extends Enum { + readonly isInvalidFormat: boolean; + readonly asInvalidFormat: { + readonly messageHash: U8aFixed; + } & Struct; + readonly isUnsupportedVersion: boolean; + readonly asUnsupportedVersion: { + readonly messageHash: U8aFixed; + } & Struct; + readonly isExecutedDownward: boolean; + readonly asExecutedDownward: { + readonly messageHash: U8aFixed; + readonly messageId: U8aFixed; + readonly outcome: XcmV3TraitsOutcome; + } & Struct; + readonly isWeightExhausted: boolean; + readonly asWeightExhausted: { + readonly messageHash: U8aFixed; + readonly messageId: U8aFixed; + readonly remainingWeight: SpWeightsWeightV2Weight; + readonly requiredWeight: SpWeightsWeightV2Weight; + } & Struct; + readonly isOverweightEnqueued: boolean; + readonly asOverweightEnqueued: { + readonly messageHash: U8aFixed; + readonly messageId: U8aFixed; + readonly overweightIndex: u64; + readonly requiredWeight: SpWeightsWeightV2Weight; + } & Struct; + readonly isOverweightServiced: boolean; + readonly asOverweightServiced: { + readonly overweightIndex: u64; + readonly weightUsed: SpWeightsWeightV2Weight; + } & Struct; + readonly isMaxMessagesExhausted: boolean; + readonly asMaxMessagesExhausted: { + readonly messageHash: U8aFixed; + } & Struct; + readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced' | 'MaxMessagesExhausted'; + } + + /** @name CollectivesPolkadotRuntimeProxyType (105) */ + interface CollectivesPolkadotRuntimeProxyType extends Enum { + readonly isAny: boolean; + readonly isNonTransfer: boolean; + readonly isCancelProxy: boolean; + readonly isCollator: boolean; + readonly isAlliance: boolean; + readonly isFellowship: boolean; + readonly type: 'Any' | 'NonTransfer' | 'CancelProxy' | 'Collator' | 'Alliance' | 'Fellowship'; + } + + /** @name PolkadotRuntimeCommonImplsVersionedLocatableAsset (111) */ + interface PolkadotRuntimeCommonImplsVersionedLocatableAsset extends Enum { + readonly isV3: boolean; + readonly asV3: { + readonly location: StagingXcmV3MultiLocation; + readonly assetId: XcmV3MultiassetAssetId; + } & Struct; + readonly type: 'V3'; + } + + /** @name CumulusPalletParachainSystemCall (134) */ + interface CumulusPalletParachainSystemCall extends Enum { + readonly isSetValidationData: boolean; + readonly asSetValidationData: { + readonly data: CumulusPrimitivesParachainInherentParachainInherentData; + } & Struct; + readonly isSudoSendUpwardMessage: boolean; + readonly asSudoSendUpwardMessage: { + readonly message: Bytes; + } & Struct; + readonly isAuthorizeUpgrade: boolean; + readonly asAuthorizeUpgrade: { + readonly codeHash: H256; + readonly checkVersion: bool; + } & Struct; + readonly isEnactAuthorizedUpgrade: boolean; + readonly asEnactAuthorizedUpgrade: { + readonly code: Bytes; + } & Struct; + readonly type: 'SetValidationData' | 'SudoSendUpwardMessage' | 'AuthorizeUpgrade' | 'EnactAuthorizedUpgrade'; + } + + /** @name CumulusPrimitivesParachainInherentParachainInherentData (135) */ + interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct { + readonly validationData: PolkadotPrimitivesV6PersistedValidationData; + readonly relayChainState: SpTrieStorageProof; + readonly downwardMessages: Vec; + readonly horizontalMessages: BTreeMap>; + } + + /** @name PolkadotPrimitivesV6PersistedValidationData (136) */ + interface PolkadotPrimitivesV6PersistedValidationData extends Struct { + readonly parentHead: Bytes; + readonly relayParentNumber: u32; + readonly relayParentStorageRoot: H256; + readonly maxPovSize: u32; + } + + /** @name SpTrieStorageProof (138) */ + interface SpTrieStorageProof extends Struct { + readonly trieNodes: BTreeSet; + } + + /** @name PalletCollatorSelectionCall (151) */ + interface PalletCollatorSelectionCall extends Enum { + readonly isSetInvulnerables: boolean; + readonly asSetInvulnerables: { + readonly new_: Vec; + } & Struct; + readonly isSetDesiredCandidates: boolean; + readonly asSetDesiredCandidates: { + readonly max: u32; + } & Struct; + readonly isSetCandidacyBond: boolean; + readonly asSetCandidacyBond: { + readonly bond: u128; + } & Struct; + readonly isRegisterAsCandidate: boolean; + readonly isLeaveIntent: boolean; + readonly isAddInvulnerable: boolean; + readonly asAddInvulnerable: { + readonly who: AccountId32; + } & Struct; + readonly isRemoveInvulnerable: boolean; + readonly asRemoveInvulnerable: { + readonly who: AccountId32; + } & Struct; + readonly type: 'SetInvulnerables' | 'SetDesiredCandidates' | 'SetCandidacyBond' | 'RegisterAsCandidate' | 'LeaveIntent' | 'AddInvulnerable' | 'RemoveInvulnerable'; + } + + /** @name CollectivesPolkadotRuntimeSessionKeys (153) */ + interface CollectivesPolkadotRuntimeSessionKeys extends Struct { + readonly aura: SpConsensusAuraSr25519AppSr25519Public; + } + + /** @name SpConsensusAuraSr25519AppSr25519Public (154) */ + interface SpConsensusAuraSr25519AppSr25519Public extends SpCoreSr25519Public {} + + /** @name CumulusPalletXcmpQueueCall (156) */ + interface CumulusPalletXcmpQueueCall extends Enum { + readonly isServiceOverweight: boolean; + readonly asServiceOverweight: { + readonly index: u64; + readonly weightLimit: SpWeightsWeightV2Weight; + } & Struct; + readonly isSuspendXcmExecution: boolean; + readonly isResumeXcmExecution: boolean; + readonly isUpdateSuspendThreshold: boolean; + readonly asUpdateSuspendThreshold: { + readonly new_: u32; + } & Struct; + readonly isUpdateDropThreshold: boolean; + readonly asUpdateDropThreshold: { + readonly new_: u32; + } & Struct; + readonly isUpdateResumeThreshold: boolean; + readonly asUpdateResumeThreshold: { + readonly new_: u32; + } & Struct; + readonly isUpdateThresholdWeight: boolean; + readonly asUpdateThresholdWeight: { + readonly new_: SpWeightsWeightV2Weight; + } & Struct; + readonly isUpdateWeightRestrictDecay: boolean; + readonly asUpdateWeightRestrictDecay: { + readonly new_: SpWeightsWeightV2Weight; + } & Struct; + readonly isUpdateXcmpMaxIndividualWeight: boolean; + readonly asUpdateXcmpMaxIndividualWeight: { + readonly new_: SpWeightsWeightV2Weight; + } & Struct; + readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight'; + } + + /** @name CumulusPalletDmpQueueCall (179) */ + interface CumulusPalletDmpQueueCall extends Enum { + readonly isServiceOverweight: boolean; + readonly asServiceOverweight: { + readonly index: u64; + readonly weightLimit: SpWeightsWeightV2Weight; + } & Struct; + readonly type: 'ServiceOverweight'; + } + + /** @name CollectivesPolkadotRuntimeOriginCaller (182) */ + interface CollectivesPolkadotRuntimeOriginCaller extends Enum { + readonly isSystem: boolean; + readonly asSystem: FrameSupportDispatchRawOrigin; + readonly isVoid: boolean; + readonly isPolkadotXcm: boolean; + readonly asPolkadotXcm: PalletXcmOrigin; + readonly isCumulusXcm: boolean; + readonly asCumulusXcm: CumulusPalletXcmOrigin; + readonly isAllianceMotion: boolean; + readonly asAllianceMotion: PalletCollectiveRawOrigin; + readonly isFellowshipOrigins: boolean; + readonly asFellowshipOrigins: CollectivesPolkadotRuntimeFellowshipOriginsPalletOriginsOrigin; + readonly type: 'System' | 'Void' | 'PolkadotXcm' | 'CumulusXcm' | 'AllianceMotion' | 'FellowshipOrigins'; + } + + /** @name CumulusPalletXcmOrigin (185) */ + interface CumulusPalletXcmOrigin extends Enum { + readonly isRelay: boolean; + readonly isSiblingParachain: boolean; + readonly asSiblingParachain: u32; + readonly type: 'Relay' | 'SiblingParachain'; + } + + /** @name CollectivesPolkadotRuntimeFellowshipOriginsPalletOriginsOrigin (187) */ + interface CollectivesPolkadotRuntimeFellowshipOriginsPalletOriginsOrigin extends Enum { + readonly isMembers: boolean; + readonly isFellowship2Dan: boolean; + readonly isFellows: boolean; + readonly isArchitects: boolean; + readonly isFellowship5Dan: boolean; + readonly isFellowship6Dan: boolean; + readonly isMasters: boolean; + readonly isFellowship8Dan: boolean; + readonly isFellowship9Dan: boolean; + readonly isRetainAt1Dan: boolean; + readonly isRetainAt2Dan: boolean; + readonly isRetainAt3Dan: boolean; + readonly isRetainAt4Dan: boolean; + readonly isRetainAt5Dan: boolean; + readonly isRetainAt6Dan: boolean; + readonly isPromoteTo1Dan: boolean; + readonly isPromoteTo2Dan: boolean; + readonly isPromoteTo3Dan: boolean; + readonly isPromoteTo4Dan: boolean; + readonly isPromoteTo5Dan: boolean; + readonly isPromoteTo6Dan: boolean; + readonly type: 'Members' | 'Fellowship2Dan' | 'Fellows' | 'Architects' | 'Fellowship5Dan' | 'Fellowship6Dan' | 'Masters' | 'Fellowship8Dan' | 'Fellowship9Dan' | 'RetainAt1Dan' | 'RetainAt2Dan' | 'RetainAt3Dan' | 'RetainAt4Dan' | 'RetainAt5Dan' | 'RetainAt6Dan' | 'PromoteTo1Dan' | 'PromoteTo2Dan' | 'PromoteTo3Dan' | 'PromoteTo4Dan' | 'PromoteTo5Dan' | 'PromoteTo6Dan'; + } + + /** @name CumulusPalletParachainSystemUnincludedSegmentAncestor (236) */ + interface CumulusPalletParachainSystemUnincludedSegmentAncestor extends Struct { + readonly usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; + readonly paraHeadHash: Option; + readonly consumedGoAheadSignal: Option; + } + + /** @name CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth (237) */ + interface CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth extends Struct { + readonly umpMsgCount: u32; + readonly umpTotalBytes: u32; + readonly hrmpOutgoing: BTreeMap; + } + + /** @name CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate (239) */ + interface CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate extends Struct { + readonly msgCount: u32; + readonly totalBytes: u32; + } + + /** @name PolkadotPrimitivesV6UpgradeGoAhead (243) */ + interface PolkadotPrimitivesV6UpgradeGoAhead extends Enum { + readonly isAbort: boolean; + readonly isGoAhead: boolean; + readonly type: 'Abort' | 'GoAhead'; + } + + /** @name CumulusPalletParachainSystemUnincludedSegmentSegmentTracker (244) */ + interface CumulusPalletParachainSystemUnincludedSegmentSegmentTracker extends Struct { + readonly usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; + readonly hrmpWatermark: Option; + readonly consumedGoAheadSignal: Option; + } + + /** @name PolkadotPrimitivesV6UpgradeRestriction (246) */ + interface PolkadotPrimitivesV6UpgradeRestriction extends Enum { + readonly isPresent: boolean; + readonly type: 'Present'; + } + + /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (247) */ + interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct { + readonly dmqMqcHead: H256; + readonly relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity; + readonly ingressChannels: Vec>; + readonly egressChannels: Vec>; + } + + /** @name CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity (248) */ + interface CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity extends Struct { + readonly remainingCount: u32; + readonly remainingSize: u32; + } + + /** @name PolkadotPrimitivesV6AbridgedHrmpChannel (251) */ + interface PolkadotPrimitivesV6AbridgedHrmpChannel extends Struct { + readonly maxCapacity: u32; + readonly maxTotalSize: u32; + readonly maxMessageSize: u32; + readonly msgCount: u32; + readonly totalSize: u32; + readonly mqcHead: Option; + } + + /** @name PolkadotPrimitivesV6AbridgedHostConfiguration (252) */ + interface PolkadotPrimitivesV6AbridgedHostConfiguration extends Struct { + readonly maxCodeSize: u32; + readonly maxHeadDataSize: u32; + readonly maxUpwardQueueCount: u32; + readonly maxUpwardQueueSize: u32; + readonly maxUpwardMessageSize: u32; + readonly maxUpwardMessageNumPerCandidate: u32; + readonly hrmpMaxMessageNumPerCandidate: u32; + readonly validationUpgradeCooldown: u32; + readonly validationUpgradeDelay: u32; + readonly asyncBackingParams: PolkadotPrimitivesV6AsyncBackingAsyncBackingParams; + } + + /** @name PolkadotPrimitivesV6AsyncBackingAsyncBackingParams (253) */ + interface PolkadotPrimitivesV6AsyncBackingAsyncBackingParams extends Struct { + readonly maxCandidateDepth: u32; + readonly allowedAncestryLen: u32; + } + + /** @name CumulusPalletParachainSystemCodeUpgradeAuthorization (260) */ + interface CumulusPalletParachainSystemCodeUpgradeAuthorization extends Struct { + readonly codeHash: H256; + readonly checkVersion: bool; + } + + /** @name CumulusPalletParachainSystemError (261) */ + interface CumulusPalletParachainSystemError extends Enum { + readonly isOverlappingUpgrades: boolean; + readonly isProhibitedByPolkadot: boolean; + readonly isTooBig: boolean; + readonly isValidationDataNotAvailable: boolean; + readonly isHostConfigurationNotAvailable: boolean; + readonly isNotScheduled: boolean; + readonly isNothingAuthorized: boolean; + readonly isUnauthorized: boolean; + readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized'; + } + + /** @name CollectivesPolkadotRuntimeRuntimeHoldReason (271) */ + interface CollectivesPolkadotRuntimeRuntimeHoldReason extends Enum { + readonly isPreimage: boolean; + readonly asPreimage: PalletPreimageHoldReason; + readonly type: 'Preimage'; + } + + /** @name PalletCollatorSelectionCandidateInfo (281) */ + interface PalletCollatorSelectionCandidateInfo extends Struct { + readonly who: AccountId32; + readonly deposit: u128; + } + + /** @name PalletCollatorSelectionError (283) */ + interface PalletCollatorSelectionError extends Enum { + readonly isTooManyCandidates: boolean; + readonly isTooFewEligibleCollators: boolean; + readonly isAlreadyCandidate: boolean; + readonly isNotCandidate: boolean; + readonly isTooManyInvulnerables: boolean; + readonly isAlreadyInvulnerable: boolean; + readonly isNotInvulnerable: boolean; + readonly isNoAssociatedValidatorId: boolean; + readonly isValidatorNotRegistered: boolean; + readonly type: 'TooManyCandidates' | 'TooFewEligibleCollators' | 'AlreadyCandidate' | 'NotCandidate' | 'TooManyInvulnerables' | 'AlreadyInvulnerable' | 'NotInvulnerable' | 'NoAssociatedValidatorId' | 'ValidatorNotRegistered'; + } + + /** @name CumulusPalletXcmpQueueInboundChannelDetails (295) */ + interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct { + readonly sender: u32; + readonly state: CumulusPalletXcmpQueueInboundState; + readonly messageMetadata: Vec>; + } + + /** @name CumulusPalletXcmpQueueInboundState (296) */ + interface CumulusPalletXcmpQueueInboundState extends Enum { + readonly isOk: boolean; + readonly isSuspended: boolean; + readonly type: 'Ok' | 'Suspended'; + } + + /** @name PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat (299) */ + interface PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat extends Enum { + readonly isConcatenatedVersionedXcm: boolean; + readonly isConcatenatedEncodedBlob: boolean; + readonly isSignals: boolean; + readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals'; + } + + /** @name CumulusPalletXcmpQueueOutboundChannelDetails (302) */ + interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct { + readonly recipient: u32; + readonly state: CumulusPalletXcmpQueueOutboundState; + readonly signalsExist: bool; + readonly firstIndex: u16; + readonly lastIndex: u16; + } + + /** @name CumulusPalletXcmpQueueOutboundState (303) */ + interface CumulusPalletXcmpQueueOutboundState extends Enum { + readonly isOk: boolean; + readonly isSuspended: boolean; + readonly type: 'Ok' | 'Suspended'; + } + + /** @name CumulusPalletXcmpQueueQueueConfigData (305) */ + interface CumulusPalletXcmpQueueQueueConfigData extends Struct { + readonly suspendThreshold: u32; + readonly dropThreshold: u32; + readonly resumeThreshold: u32; + readonly thresholdWeight: SpWeightsWeightV2Weight; + readonly weightRestrictDecay: SpWeightsWeightV2Weight; + readonly xcmpMaxIndividualWeight: SpWeightsWeightV2Weight; + } + + /** @name CumulusPalletXcmpQueueError (307) */ + interface CumulusPalletXcmpQueueError extends Enum { + readonly isFailedToSend: boolean; + readonly isBadXcmOrigin: boolean; + readonly isBadXcm: boolean; + readonly isBadOverweightIndex: boolean; + readonly isWeightOverLimit: boolean; + readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit'; + } + + /** @name CumulusPalletXcmError (330) */ + type CumulusPalletXcmError = Null; + + /** @name CumulusPalletDmpQueueConfigData (331) */ + interface CumulusPalletDmpQueueConfigData extends Struct { + readonly maxIndividual: SpWeightsWeightV2Weight; + } + + /** @name CumulusPalletDmpQueuePageIndexData (332) */ + interface CumulusPalletDmpQueuePageIndexData extends Struct { + readonly beginUsed: u32; + readonly endUsed: u32; + readonly overweightCount: u64; + } + + /** @name CumulusPalletDmpQueueError (335) */ + interface CumulusPalletDmpQueueError extends Enum { + readonly isUnknown: boolean; + readonly isOverLimit: boolean; + readonly type: 'Unknown' | 'OverLimit'; + } + + /** @name CollectivesPolkadotRuntimeRuntime (428) */ + type CollectivesPolkadotRuntimeRuntime = Null; + +} // declare module diff --git a/packages/types-augment/src/registry/collectives.ts b/packages/types-augment/src/registry/collectives.ts new file mode 100644 index 000000000000..101a133d4a40 --- /dev/null +++ b/packages/types-augment/src/registry/collectives.ts @@ -0,0 +1,61 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/types/types/registry'; + +import type { CollectivesPolkadotRuntimeFellowshipOriginsPalletOriginsOrigin, CollectivesPolkadotRuntimeOriginCaller, CollectivesPolkadotRuntimeProxyType, CollectivesPolkadotRuntimeRuntime, CollectivesPolkadotRuntimeRuntimeHoldReason, CollectivesPolkadotRuntimeSessionKeys, CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemCodeUpgradeAuthorization, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, PalletCollatorSelectionCall, PalletCollatorSelectionCandidateInfo, PalletCollatorSelectionError, PalletCollatorSelectionEvent, PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat, PolkadotPrimitivesV6AbridgedHostConfiguration, PolkadotPrimitivesV6AbridgedHrmpChannel, PolkadotPrimitivesV6AsyncBackingAsyncBackingParams, PolkadotPrimitivesV6PersistedValidationData, PolkadotPrimitivesV6UpgradeGoAhead, PolkadotPrimitivesV6UpgradeRestriction, PolkadotRuntimeCommonImplsVersionedLocatableAsset, SpConsensusAuraSr25519AppSr25519Public, SpTrieStorageProof, StagingXcmV3MultiLocation } from '@polkadot/types/lookup'; + +declare module '@polkadot/types/types/registry' { + interface InterfaceTypes { + CollectivesPolkadotRuntimeFellowshipOriginsPalletOriginsOrigin: CollectivesPolkadotRuntimeFellowshipOriginsPalletOriginsOrigin; + CollectivesPolkadotRuntimeOriginCaller: CollectivesPolkadotRuntimeOriginCaller; + CollectivesPolkadotRuntimeProxyType: CollectivesPolkadotRuntimeProxyType; + CollectivesPolkadotRuntimeRuntime: CollectivesPolkadotRuntimeRuntime; + CollectivesPolkadotRuntimeRuntimeHoldReason: CollectivesPolkadotRuntimeRuntimeHoldReason; + CollectivesPolkadotRuntimeSessionKeys: CollectivesPolkadotRuntimeSessionKeys; + CumulusPalletDmpQueueCall: CumulusPalletDmpQueueCall; + CumulusPalletDmpQueueConfigData: CumulusPalletDmpQueueConfigData; + CumulusPalletDmpQueueError: CumulusPalletDmpQueueError; + CumulusPalletDmpQueueEvent: CumulusPalletDmpQueueEvent; + CumulusPalletDmpQueuePageIndexData: CumulusPalletDmpQueuePageIndexData; + CumulusPalletParachainSystemCall: CumulusPalletParachainSystemCall; + CumulusPalletParachainSystemCodeUpgradeAuthorization: CumulusPalletParachainSystemCodeUpgradeAuthorization; + CumulusPalletParachainSystemError: CumulusPalletParachainSystemError; + CumulusPalletParachainSystemEvent: CumulusPalletParachainSystemEvent; + CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot; + CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity; + CumulusPalletParachainSystemUnincludedSegmentAncestor: CumulusPalletParachainSystemUnincludedSegmentAncestor; + CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate: CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate; + CumulusPalletParachainSystemUnincludedSegmentSegmentTracker: CumulusPalletParachainSystemUnincludedSegmentSegmentTracker; + CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; + CumulusPalletXcmError: CumulusPalletXcmError; + CumulusPalletXcmEvent: CumulusPalletXcmEvent; + CumulusPalletXcmOrigin: CumulusPalletXcmOrigin; + CumulusPalletXcmpQueueCall: CumulusPalletXcmpQueueCall; + CumulusPalletXcmpQueueError: CumulusPalletXcmpQueueError; + CumulusPalletXcmpQueueEvent: CumulusPalletXcmpQueueEvent; + CumulusPalletXcmpQueueInboundChannelDetails: CumulusPalletXcmpQueueInboundChannelDetails; + CumulusPalletXcmpQueueInboundState: CumulusPalletXcmpQueueInboundState; + CumulusPalletXcmpQueueOutboundChannelDetails: CumulusPalletXcmpQueueOutboundChannelDetails; + CumulusPalletXcmpQueueOutboundState: CumulusPalletXcmpQueueOutboundState; + CumulusPalletXcmpQueueQueueConfigData: CumulusPalletXcmpQueueQueueConfigData; + CumulusPrimitivesParachainInherentParachainInherentData: CumulusPrimitivesParachainInherentParachainInherentData; + PalletCollatorSelectionCall: PalletCollatorSelectionCall; + PalletCollatorSelectionCandidateInfo: PalletCollatorSelectionCandidateInfo; + PalletCollatorSelectionError: PalletCollatorSelectionError; + PalletCollatorSelectionEvent: PalletCollatorSelectionEvent; + PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat: PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat; + PolkadotPrimitivesV6AbridgedHostConfiguration: PolkadotPrimitivesV6AbridgedHostConfiguration; + PolkadotPrimitivesV6AbridgedHrmpChannel: PolkadotPrimitivesV6AbridgedHrmpChannel; + PolkadotPrimitivesV6AsyncBackingAsyncBackingParams: PolkadotPrimitivesV6AsyncBackingAsyncBackingParams; + PolkadotPrimitivesV6PersistedValidationData: PolkadotPrimitivesV6PersistedValidationData; + PolkadotPrimitivesV6UpgradeGoAhead: PolkadotPrimitivesV6UpgradeGoAhead; + PolkadotPrimitivesV6UpgradeRestriction: PolkadotPrimitivesV6UpgradeRestriction; + PolkadotRuntimeCommonImplsVersionedLocatableAsset: PolkadotRuntimeCommonImplsVersionedLocatableAsset; + SpConsensusAuraSr25519AppSr25519Public: SpConsensusAuraSr25519AppSr25519Public; + SpTrieStorageProof: SpTrieStorageProof; + StagingXcmV3MultiLocation: StagingXcmV3MultiLocation; + } // InterfaceTypes +} // declare module