diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fb619b57f..d23eab71af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # CHANGELOG +## master + +Changes: + +- Adjust augmentation interface consistency with top-level declarations + + ## 6.10.1 Nov 29, 2021 Upgrade priority: Low. Recommended for users of `HttpProvider` and for chains generating types using TS augmentation. diff --git a/packages/api/src/augment/consts.ts b/packages/api/src/augment/consts.ts index 0abe9c5887..b6d5584adc 100644 --- a/packages/api/src/augment/consts.ts +++ b/packages/api/src/augment/consts.ts @@ -1,14 +1,14 @@ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit /* eslint-disable */ -import type { ApiTypes } from '@polkadot/api/types'; -import type { U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types'; -import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime'; -import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, SpVersionRuntimeVersion } from '@polkadot/types/lookup'; -import type { Codec } from '@polkadot/types/types'; - declare module '@polkadot/api/types/consts' { - export interface AugmentedConsts { + import type { ApiTypes, AugmentedConst, QueryableModuleConsts } from '@polkadot/api/types'; + import type { U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types'; + import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime'; + import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, SpVersionRuntimeVersion } from '@polkadot/types/lookup'; + import type { Codec } from '@polkadot/types/types'; + + export interface AugmentedConsts { assets: { /** * The amount of funds that must be reserved when creating a new approval. @@ -919,9 +919,10 @@ declare module '@polkadot/api/types/consts' { **/ [key: string]: Codec; }; - } + } // AugmentedConsts export interface QueryableConsts extends AugmentedConsts { [key: string]: QueryableModuleConsts; - } -} + } // QueryableConsts + +} // declare module diff --git a/packages/api/src/augment/errors.ts b/packages/api/src/augment/errors.ts index 50fe371627..527681dbe1 100644 --- a/packages/api/src/augment/errors.ts +++ b/packages/api/src/augment/errors.ts @@ -1,10 +1,10 @@ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit /* eslint-disable */ -import type { ApiTypes } from '@polkadot/api/types'; - declare module '@polkadot/api/types/errors' { - export interface AugmentedErrors { + import type { ApiTypes, AugmentedError, ModuleErrors } from '@polkadot/api/types'; + + export interface AugmentedErrors { assets: { /** * Invalid metadata given. @@ -1521,9 +1521,10 @@ declare module '@polkadot/api/types/errors' { **/ [key: string]: AugmentedError; }; - } + } // AugmentedErrors export interface DecoratedErrors extends AugmentedErrors { [key: string]: ModuleErrors; - } -} + } // DecoratedErrors + +} // declare module diff --git a/packages/api/src/augment/events.ts b/packages/api/src/augment/events.ts index 2905a49f8b..e47b542e75 100644 --- a/packages/api/src/augment/events.ts +++ b/packages/api/src/augment/events.ts @@ -1,14 +1,14 @@ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit /* eslint-disable */ -import type { ApiTypes } from '@polkadot/api/types'; -import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types'; -import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime'; -import type { FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, NodeRuntimeProxyType, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup'; -import type { ITuple } from '@polkadot/types/types'; - declare module '@polkadot/api/types/events' { - export interface AugmentedEvents { + import type { ApiTypes, AugmentedEvent, ModuleEvents } from '@polkadot/api/types'; + import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types'; + import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime'; + import type { FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, NodeRuntimeProxyType, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup'; + import type { ITuple } from '@polkadot/types/types'; + + export interface AugmentedEvents { assets: { /** * An approval for account `delegate` was cancelled by `owner`. @@ -1131,9 +1131,10 @@ declare module '@polkadot/api/types/events' { **/ [key: string]: AugmentedEvent; }; - } + } // AugmentedEvents export interface DecoratedEvents extends AugmentedEvents { [key: string]: ModuleEvents; - } -} + } // DecoratedEvents + +} // declare module diff --git a/packages/api/src/augment/query.ts b/packages/api/src/augment/query.ts index 6129421ff9..f3885d822e 100644 --- a/packages/api/src/augment/query.ts +++ b/packages/api/src/augment/query.ts @@ -1,14 +1,14 @@ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit /* eslint-disable */ -import type { ApiTypes } from '@polkadot/api/types'; -import type { BTreeMap, Bytes, Data, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64, u8 } from '@polkadot/types'; -import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime'; -import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetBalance, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmPrefabWasmModule, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerReleases, PalletSchedulerScheduledV2, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup'; -import type { AnyNumber, ITuple, Observable } from '@polkadot/types/types'; - declare module '@polkadot/api/types/storage' { - export interface AugmentedQueries { + import type { ApiTypes, AugmentedQuery, QueryableModuleStorage, QueryableStorageEntry } from '@polkadot/api/types'; + import type { BTreeMap, Bytes, Data, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64, u8 } from '@polkadot/types'; + import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime'; + import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetBalance, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmPrefabWasmModule, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerReleases, PalletSchedulerScheduledV2, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup'; + import type { AnyNumber, ITuple, Observable } from '@polkadot/types/types'; + + export interface AugmentedQueries { assets: { /** * The number of units of assets held by any given account. @@ -1414,9 +1414,10 @@ declare module '@polkadot/api/types/storage' { **/ [key: string]: QueryableStorageEntry; }; - } + } // AugmentedQueries export interface QueryableStorage extends AugmentedQueries { [key: string]: QueryableModuleStorage; - } -} + } // QueryableStorage + +} // declare module diff --git a/packages/api/src/augment/rpc.ts b/packages/api/src/augment/rpc.ts index f07f52bbe7..7b6d7e6734 100644 --- a/packages/api/src/augment/rpc.ts +++ b/packages/api/src/augment/rpc.ts @@ -1,28 +1,29 @@ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit /* eslint-disable */ -import type { Bytes, HashMap, Json, Metadata, Null, Option, StorageKey, Text, U256, U64, Vec, bool, u32, u64 } from '@polkadot/types'; -import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author'; -import type { EpochAuthorship } from '@polkadot/types/interfaces/babe'; -import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy'; -import type { BlockHash } from '@polkadot/types/interfaces/chain'; -import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate'; -import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; -import type { ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from '@polkadot/types/interfaces/contracts'; -import type { CreatedBlock } from '@polkadot/types/interfaces/engine'; -import type { EthAccount, EthCallRequest, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth'; -import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics'; -import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa'; -import type { MmrLeafProof } from '@polkadot/types/interfaces/mmr'; -import type { StorageKind } from '@polkadot/types/interfaces/offchain'; -import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment'; -import type { RpcMethods } from '@polkadot/types/interfaces/rpc'; -import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from '@polkadot/types/interfaces/runtime'; -import type { ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/types/interfaces/state'; -import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from '@polkadot/types/interfaces/system'; -import type { AnyNumber, Codec, IExtrinsic, Observable } from '@polkadot/types/types'; - declare module '@polkadot/rpc-core/types.jsonrpc' { + import type { AugmentedRpc } from '@polkadot/api/types'; + import type { Bytes, HashMap, Json, Metadata, Null, Option, StorageKey, Text, U256, U64, Vec, bool, u32, u64 } from '@polkadot/types'; + import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author'; + import type { EpochAuthorship } from '@polkadot/types/interfaces/babe'; + import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy'; + import type { BlockHash } from '@polkadot/types/interfaces/chain'; + import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate'; + import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; + import type { ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from '@polkadot/types/interfaces/contracts'; + import type { CreatedBlock } from '@polkadot/types/interfaces/engine'; + import type { EthAccount, EthCallRequest, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth'; + import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics'; + import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa'; + import type { MmrLeafProof } from '@polkadot/types/interfaces/mmr'; + import type { StorageKind } from '@polkadot/types/interfaces/offchain'; + import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment'; + import type { RpcMethods } from '@polkadot/types/interfaces/rpc'; + import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from '@polkadot/types/interfaces/runtime'; + import type { ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/types/interfaces/state'; + import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from '@polkadot/types/interfaces/system'; + import type { AnyNumber, Codec, IExtrinsic, Observable } from '@polkadot/types/types'; + export interface RpcInterface { author: { /** @@ -556,5 +557,6 @@ declare module '@polkadot/rpc-core/types.jsonrpc' { **/ sha3: AugmentedRpc<(data: Bytes | string | Uint8Array) => Observable>; }; - } -} + } // RpcInterface + +} // declare module diff --git a/packages/api/src/augment/tx.ts b/packages/api/src/augment/tx.ts index fb12dc47ba..dc6e137611 100644 --- a/packages/api/src/augment/tx.ts +++ b/packages/api/src/augment/tx.ts @@ -1,15 +1,15 @@ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit /* eslint-disable */ -import type { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; -import type { Bytes, Compact, Data, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types'; -import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics'; -import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime'; -import type { NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup'; -import type { AnyNumber, ITuple } from '@polkadot/types/types'; - declare module '@polkadot/api/types/submittable' { - export interface AugmentedSubmittables { + import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction, SubmittableModuleExtrinsics } from '@polkadot/api/types'; + import type { Bytes, Compact, Data, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types'; + import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics'; + import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime'; + import type { NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup'; + import type { AnyNumber, ITuple } from '@polkadot/types/types'; + + export interface AugmentedSubmittables { assets: { /** * Approve an amount of asset for transfer by a delegated third-party account. @@ -4512,10 +4512,11 @@ declare module '@polkadot/api/types/submittable' { **/ [key: string]: SubmittableExtrinsicFunction; }; - } + } // AugmentedSubmittables export interface SubmittableExtrinsics extends AugmentedSubmittables { (extrinsic: Call | Extrinsic | Uint8Array | string): SubmittableExtrinsic; [key: string]: SubmittableModuleExtrinsics; - } -} + } // SubmittableExtrinsics + +} // declare module diff --git a/packages/api/src/types/consts.ts b/packages/api/src/types/consts.ts index 7bdff6db8c..2a3285d3cb 100644 --- a/packages/api/src/types/consts.ts +++ b/packages/api/src/types/consts.ts @@ -5,9 +5,6 @@ import type { PalletConstantMetadataLatest } from '@polkadot/types/interfaces'; import type { Codec } from '@polkadot/types/types'; import type { ApiTypes } from './base'; -// eslint-disable-next-line @typescript-eslint/no-empty-interface,@typescript-eslint/no-unused-vars -export interface AugmentedConsts { } - // eslint-disable-next-line @typescript-eslint/no-unused-vars export interface AugmentedConst { meta: PalletConstantMetadataLatest; diff --git a/packages/api/src/types/errors.ts b/packages/api/src/types/errors.ts index 6ff13e6bf1..054efed486 100644 --- a/packages/api/src/types/errors.ts +++ b/packages/api/src/types/errors.ts @@ -4,10 +4,6 @@ import type { IsError } from '@polkadot/types/metadata/decorate/types'; import type { ApiTypes } from './base'; -// In errors we don't need the ApiType, however add it for consistency -// eslint-disable-next-line @typescript-eslint/no-empty-interface,@typescript-eslint/no-unused-vars -export interface AugmentedErrors { } - // eslint-disable-next-line @typescript-eslint/no-unused-vars export type AugmentedError = IsError; diff --git a/packages/api/src/types/events.ts b/packages/api/src/types/events.ts index 6ca124da66..8d5f2faf8c 100644 --- a/packages/api/src/types/events.ts +++ b/packages/api/src/types/events.ts @@ -5,10 +5,6 @@ import type { IsEvent } from '@polkadot/types/metadata/decorate/types'; import type { AnyTuple } from '@polkadot/types/types'; import type { ApiTypes } from './base'; -// In events we don't need the ApiType, however add it for consistency -// eslint-disable-next-line @typescript-eslint/no-empty-interface,@typescript-eslint/no-unused-vars -export interface AugmentedEvents { } - // eslint-disable-next-line @typescript-eslint/no-unused-vars export type AugmentedEvent = IsEvent; diff --git a/packages/api/src/types/index.ts b/packages/api/src/types/index.ts index c4b360f84e..73b84e002d 100644 --- a/packages/api/src/types/index.ts +++ b/packages/api/src/types/index.ts @@ -1,10 +1,14 @@ // Copyright 2017-2021 @polkadot/api authors & contributors // SPDX-License-Identifier: Apache-2.0 -// Augment the modules import '@polkadot/api/augment'; import type { Observable } from 'rxjs'; +import type { QueryableConsts } from '@polkadot/api/types/consts'; +import type { DecoratedErrors } from '@polkadot/api/types/errors'; +import type { DecoratedEvents } from '@polkadot/api/types/events'; +import type { QueryableStorage } from '@polkadot/api/types/storage'; +import type { SubmittableExtrinsics } from '@polkadot/api/types/submittable'; import type { DeriveCustom, ExactDerive } from '@polkadot/api-derive'; import type { RpcInterface } from '@polkadot/rpc-core/types'; import type { ProviderInterface, ProviderInterfaceEmitted } from '@polkadot/rpc-provider/types'; @@ -16,14 +20,17 @@ import type { BN } from '@polkadot/util'; import type { ApiBase } from '../base'; import type { DeriveAllSections } from '../util/decorate'; import type { ApiTypes } from './base'; -import type { QueryableConsts } from './consts'; -import type { DecoratedErrors } from './errors'; -import type { DecoratedEvents } from './events'; import type { DecoratedRpc } from './rpc'; -import type { QueryableStorage, QueryableStorageMulti } from './storage'; -import type { SubmittableExtrinsics } from './submittable'; +import type { QueryableStorageMulti } from './storage'; +export * from '@polkadot/api/types/consts'; +export * from '@polkadot/api/types/errors'; +export * from '@polkadot/api/types/events'; +export * from '@polkadot/api/types/storage'; +export * from '@polkadot/api/types/submittable'; +export * from '@polkadot/api/types/rpc'; export { Signer, SignerResult } from '@polkadot/types/types'; + export { ApiBase } from '../base'; export * from '../submittable/types'; export * from './base'; diff --git a/packages/api/src/types/rpc.ts b/packages/api/src/types/rpc.ts index c5720017ec..6400a65f97 100644 --- a/packages/api/src/types/rpc.ts +++ b/packages/api/src/types/rpc.ts @@ -4,7 +4,6 @@ import type { Observable } from 'rxjs'; import type { AnyFunction, Callback, DefinitionRpc } from '@polkadot/types/types'; -// eslint-disable-next-line @typescript-eslint/no-unused-vars import { ApiTypes, PromiseResult, Push, RxResult, UnsubscribePromise } from './base'; export interface RpcRxResult extends RxResult { @@ -31,3 +30,8 @@ export type DecoratedRpcSection = { export type DecoratedRpc = { [Section in keyof AllSections]: DecoratedRpcSection } + +export type AugmentedRpc = F & { + raw: (...params: Parameters) => Observable; + meta: DefinitionRpc; +}; diff --git a/packages/api/src/types/storage.ts b/packages/api/src/types/storage.ts index 04cbd51f66..213816adff 100644 --- a/packages/api/src/types/storage.ts +++ b/packages/api/src/types/storage.ts @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 import type { Observable } from 'rxjs'; +import type { AugmentedQueries } from '@polkadot/api/types/storage'; import type { StorageKey, u64 } from '@polkadot/types'; import type { Hash } from '@polkadot/types/interfaces'; import type { StorageEntry } from '@polkadot/types/primitive/types'; @@ -123,9 +124,6 @@ export type QueryableStorageMulti = ? QueryableStorageMultiBase : QueryableStorageMultiPromise; -// eslint-disable-next-line @typescript-eslint/no-empty-interface,@typescript-eslint/no-unused-vars -export interface AugmentedQueries { } - export type AugmentedQuery = MethodResult & StorageEntryBase; export type AugmentedQueryAt = MethodResult & StorageEntryBaseAt; diff --git a/packages/api/src/types/submittable.ts b/packages/api/src/types/submittable.ts index 295b5c7436..d3fe5b83ff 100644 --- a/packages/api/src/types/submittable.ts +++ b/packages/api/src/types/submittable.ts @@ -5,9 +5,6 @@ import type { AnyFunction, AnyTuple, CallBase } from '@polkadot/types/types'; import type { SubmittableExtrinsic } from '../submittable/types'; import type { ApiTypes } from './base'; -// eslint-disable-next-line @typescript-eslint/no-empty-interface,@typescript-eslint/no-unused-vars -export interface AugmentedSubmittables { } - export type AugmentedSubmittable = T & CallBase; export interface SubmittableExtrinsicFunction extends CallBase { diff --git a/packages/rpc-core/src/types.jsonrpc.ts b/packages/rpc-core/src/types.jsonrpc.ts index 4e72887f26..68a627164f 100644 --- a/packages/rpc-core/src/types.jsonrpc.ts +++ b/packages/rpc-core/src/types.jsonrpc.ts @@ -1,15 +1,4 @@ // Copyright 2017-2021 @polkadot/rpc-core authors & contributors // SPDX-License-Identifier: Apache-2.0 -// FIXME, this whole file needs to move to API - -import type { Observable } from 'rxjs'; -import type { AnyFunction, DefinitionRpc } from '@polkadot/types/types'; - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface RpcInterface {} - -export type AugmentedRpc = F & { - raw: (...params: Parameters) => Observable; - meta: DefinitionRpc; -}; +export const __PHANTOM_RPC = 'phantom-rpc'; diff --git a/packages/rpc-core/src/types.ts b/packages/rpc-core/src/types.ts index 75048b8e26..9c703bce8a 100644 --- a/packages/rpc-core/src/types.ts +++ b/packages/rpc-core/src/types.ts @@ -4,7 +4,7 @@ import type { Observable } from 'rxjs'; import type { Codec, DefinitionRpc } from '@polkadot/types/types'; -export * from './types.jsonrpc'; +export * from '@polkadot/rpc-core/types.jsonrpc'; export interface RpcInterfaceMethod { (...params: unknown[]): Observable; diff --git a/packages/typegen/src/generate/consts.ts b/packages/typegen/src/generate/consts.ts index 9d5e24e53f..8e89ca48e5 100644 --- a/packages/typegen/src/generate/consts.ts +++ b/packages/typegen/src/generate/consts.ts @@ -76,7 +76,7 @@ function generateForMeta (meta: Metadata, dest: string, extraTypes: ExtraTypes, })), { file: '@polkadot/api/types', - types: ['ApiTypes'] + types: ['ApiTypes', 'AugmentedConst', 'QueryableModuleConsts'] } ] }); diff --git a/packages/typegen/src/generate/errors.ts b/packages/typegen/src/generate/errors.ts index 0740545eac..fdccb6a460 100644 --- a/packages/typegen/src/generate/errors.ts +++ b/packages/typegen/src/generate/errors.ts @@ -39,7 +39,7 @@ function generateForMeta (meta: Metadata, dest: string, isStrict: boolean): void types: [ { file: '@polkadot/api/types', - types: ['ApiTypes'] + types: ['ApiTypes', 'AugmentedError', 'ModuleErrors'] } ] }); diff --git a/packages/typegen/src/generate/events.ts b/packages/typegen/src/generate/events.ts index fe4d69cc63..53ab77db5b 100644 --- a/packages/typegen/src/generate/events.ts +++ b/packages/typegen/src/generate/events.ts @@ -68,7 +68,7 @@ function generateForMeta (meta: Metadata, dest: string, extraTypes: ExtraTypes, })), { file: '@polkadot/api/types', - types: ['ApiTypes'] + types: ['ApiTypes', 'AugmentedEvent', 'ModuleEvents'] } ] }); diff --git a/packages/typegen/src/generate/query.ts b/packages/typegen/src/generate/query.ts index d1f576aada..81b4d5aa77 100644 --- a/packages/typegen/src/generate/query.ts +++ b/packages/typegen/src/generate/query.ts @@ -125,7 +125,7 @@ function generateForMeta (registry: Registry, meta: Metadata, dest: string, extr })), { file: '@polkadot/api/types', - types: ['ApiTypes'] + types: ['ApiTypes', 'AugmentedQuery', 'QueryableStorageEntry', 'QueryableModuleStorage'] } ] }); diff --git a/packages/typegen/src/generate/rpc.ts b/packages/typegen/src/generate/rpc.ts index ebfe1fcca1..496f0a2fdb 100644 --- a/packages/typegen/src/generate/rpc.ts +++ b/packages/typegen/src/generate/rpc.ts @@ -134,7 +134,11 @@ export function generateRpcTypes (registry: TypeRegistry, importDefinitions: Rec ...Object.keys(imports.localTypes).sort().map((packagePath): { file: string; types: string[] } => ({ file: packagePath.replace('@polkadot/types/augment', '@polkadot/types'), types: Object.keys(imports.localTypes[packagePath]) - })) + })), + { + file: '@polkadot/api/types', + types: ['AugmentedRpc'] + } ] }); }); diff --git a/packages/typegen/src/generate/tx.ts b/packages/typegen/src/generate/tx.ts index a74263d75c..36282bb1ec 100644 --- a/packages/typegen/src/generate/tx.ts +++ b/packages/typegen/src/generate/tx.ts @@ -110,7 +110,7 @@ function generateForMeta (registry: Registry, meta: Metadata, dest: string, extr })), { file: '@polkadot/api/types', - types: ['ApiTypes', 'SubmittableExtrinsic'] + types: ['ApiTypes', 'AugmentedSubmittable', 'SubmittableExtrinsic', 'SubmittableExtrinsicFunction', 'SubmittableModuleExtrinsics'] } ] }); diff --git a/packages/typegen/src/templates/consts.hbs b/packages/typegen/src/templates/consts.hbs index 2a045e62a2..baee185bd7 100644 --- a/packages/typegen/src/templates/consts.hbs +++ b/packages/typegen/src/templates/consts.hbs @@ -1,9 +1,9 @@ {{> header }} -{{{ imports }}} - declare module '@polkadot/api/types/consts' { - export interface AugmentedConsts { + {{{ imports }}} + + export interface AugmentedConsts { {{#each modules}} {{{name}}}: { {{#each items}} @@ -18,12 +18,12 @@ declare module '@polkadot/api/types/consts' { {{/unless}} }; {{/each}} - } + } // AugmentedConsts export interface QueryableConsts extends AugmentedConsts { {{#unless isStrict}} [key: string]: QueryableModuleConsts; {{/unless}} - } -} -{{> footer }} + } // QueryableConsts + +} // declare module diff --git a/packages/typegen/src/templates/errors.hbs b/packages/typegen/src/templates/errors.hbs index 531d0249f5..c7cd082a5a 100644 --- a/packages/typegen/src/templates/errors.hbs +++ b/packages/typegen/src/templates/errors.hbs @@ -1,9 +1,9 @@ {{> header }} -{{{ imports }}} - declare module '@polkadot/api/types/errors' { - export interface AugmentedErrors { + {{{ imports }}} + + export interface AugmentedErrors { {{#each modules}} {{{name}}}: { {{#each items}} @@ -18,12 +18,12 @@ declare module '@polkadot/api/types/errors' { {{/unless}} }; {{/each}} - } + } // AugmentedErrors export interface DecoratedErrors extends AugmentedErrors { {{#unless isStrict}} [key: string]: ModuleErrors; {{/unless}} - } -} -{{> footer }} + } // DecoratedErrors + +} // declare module diff --git a/packages/typegen/src/templates/events.hbs b/packages/typegen/src/templates/events.hbs index 68329811bc..a3f3914558 100644 --- a/packages/typegen/src/templates/events.hbs +++ b/packages/typegen/src/templates/events.hbs @@ -1,9 +1,9 @@ {{> header }} -{{{ imports }}} - declare module '@polkadot/api/types/events' { - export interface AugmentedEvents { + {{{ imports }}} + + export interface AugmentedEvents { {{#each modules}} {{{name}}}: { {{#each items}} @@ -18,12 +18,12 @@ declare module '@polkadot/api/types/events' { {{/unless}} }; {{/each}} - } + } // AugmentedEvents export interface DecoratedEvents extends AugmentedEvents { {{#unless isStrict}} [key: string]: ModuleEvents; {{/unless}} - } -} -{{> footer }} + } // DecoratedEvents + +} // declare module diff --git a/packages/typegen/src/templates/footer.hbs b/packages/typegen/src/templates/footer.hbs deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packages/typegen/src/templates/interfaceRegistry.hbs b/packages/typegen/src/templates/interfaceRegistry.hbs index e29280cbe9..7184c7062e 100644 --- a/packages/typegen/src/templates/interfaceRegistry.hbs +++ b/packages/typegen/src/templates/interfaceRegistry.hbs @@ -1,12 +1,11 @@ {{> header }} -{{{ imports }}} - declare module '@polkadot/types/types/registry' { + {{{ imports }}} + export interface InterfaceTypes { {{#each items}} {{{this}}}: {{{this}}}; {{/each}} - } -} -{{> footer }} + } // InterfaceTypes +} // declare module diff --git a/packages/typegen/src/templates/lookup/defs-named.hbs b/packages/typegen/src/templates/lookup/defs-named.hbs index 281c680099..d371c1c1bd 100644 --- a/packages/typegen/src/templates/lookup/defs-named.hbs +++ b/packages/typegen/src/templates/lookup/defs-named.hbs @@ -10,4 +10,3 @@ export default { {{/each}} {{/each}} }; -{{> footer }} diff --git a/packages/typegen/src/templates/lookup/defs.hbs b/packages/typegen/src/templates/lookup/defs.hbs index 3fa2592ae1..4f5e0564bf 100644 --- a/packages/typegen/src/templates/lookup/defs.hbs +++ b/packages/typegen/src/templates/lookup/defs.hbs @@ -13,4 +13,3 @@ export default { {{/each}} } }; -{{> footer }} diff --git a/packages/typegen/src/templates/lookup/index.hbs b/packages/typegen/src/templates/lookup/index.hbs index 610253d7a3..8438e643bd 100644 --- a/packages/typegen/src/templates/lookup/index.hbs +++ b/packages/typegen/src/templates/lookup/index.hbs @@ -1,4 +1,3 @@ {{> header }} export * from './types'; -{{> footer }} diff --git a/packages/typegen/src/templates/lookup/types.hbs b/packages/typegen/src/templates/lookup/types.hbs index df1802ba7c..aed522d1ae 100644 --- a/packages/typegen/src/templates/lookup/types.hbs +++ b/packages/typegen/src/templates/lookup/types.hbs @@ -1,12 +1,10 @@ {{> header }} declare module '@polkadot/types/lookup' { + {{{ imports }}} -{{{ imports }}} - -{{#each items}} + {{#each items}} {{{this}}} -{{/each}} -} -{{> footer }} + {{/each}} +} // declare module diff --git a/packages/typegen/src/templates/query.hbs b/packages/typegen/src/templates/query.hbs index c67cdd9636..d6ba70d2d3 100644 --- a/packages/typegen/src/templates/query.hbs +++ b/packages/typegen/src/templates/query.hbs @@ -1,9 +1,9 @@ {{> header }} -{{{ imports }}} - declare module '@polkadot/api/types/storage' { - export interface AugmentedQueries { + {{{ imports }}} + + export interface AugmentedQueries { {{#each modules}} {{{name}}}: { {{#each items}} @@ -18,12 +18,12 @@ declare module '@polkadot/api/types/storage' { {{/unless}} }; {{/each}} - } + } // AugmentedQueries export interface QueryableStorage extends AugmentedQueries { {{#unless isStrict}} [key: string]: QueryableModuleStorage; {{/unless}} - } -} -{{> footer }} + } // QueryableStorage + +} // declare module diff --git a/packages/typegen/src/templates/rpc.hbs b/packages/typegen/src/templates/rpc.hbs index cf606eb4c4..69c7594b64 100644 --- a/packages/typegen/src/templates/rpc.hbs +++ b/packages/typegen/src/templates/rpc.hbs @@ -1,8 +1,8 @@ {{> header }} -{{{ imports }}} - declare module '@polkadot/rpc-core/types.jsonrpc' { + {{{ imports }}} + export interface RpcInterface { {{#each modules}} {{{name}}}: { @@ -12,6 +12,6 @@ declare module '@polkadot/rpc-core/types.jsonrpc' { {{/each}} }; {{/each}} - } -} -{{> footer }} + } // RpcInterface + +} // declare module diff --git a/packages/typegen/src/templates/tsDef/index.hbs b/packages/typegen/src/templates/tsDef/index.hbs index 610253d7a3..8438e643bd 100644 --- a/packages/typegen/src/templates/tsDef/index.hbs +++ b/packages/typegen/src/templates/tsDef/index.hbs @@ -1,4 +1,3 @@ {{> header }} export * from './types'; -{{> footer }} diff --git a/packages/typegen/src/templates/tsDef/moduleTypes.hbs b/packages/typegen/src/templates/tsDef/moduleTypes.hbs index 66736104d8..b2b5816ff6 100644 --- a/packages/typegen/src/templates/tsDef/moduleTypes.hbs +++ b/packages/typegen/src/templates/tsDef/moduleTypes.hbs @@ -8,4 +8,3 @@ {{/each}} export type PHANTOM_{{#upper}}{{{name}}}{{/upper}} = '{{{name}}}'; -{{> footer }} diff --git a/packages/typegen/src/templates/tsDef/types.hbs b/packages/typegen/src/templates/tsDef/types.hbs index 1fc94d735a..132268d059 100644 --- a/packages/typegen/src/templates/tsDef/types.hbs +++ b/packages/typegen/src/templates/tsDef/types.hbs @@ -3,4 +3,3 @@ {{#each items}} export * from './{{{this}}}/types'; {{/each}} -{{> footer }} diff --git a/packages/typegen/src/templates/tx.hbs b/packages/typegen/src/templates/tx.hbs index c033b4ce35..c0d597b0d3 100644 --- a/packages/typegen/src/templates/tx.hbs +++ b/packages/typegen/src/templates/tx.hbs @@ -1,9 +1,9 @@ {{> header }} -{{{ imports }}} - declare module '@polkadot/api/types/submittable' { - export interface AugmentedSubmittables { + {{{ imports }}} + + export interface AugmentedSubmittables { {{#each modules}} {{{name}}}: { {{#each items}} @@ -18,13 +18,13 @@ declare module '@polkadot/api/types/submittable' { {{/unless}} }; {{/each}} - } + } // AugmentedSubmittables export interface SubmittableExtrinsics extends AugmentedSubmittables { (extrinsic: Call | Extrinsic | Uint8Array | string): SubmittableExtrinsic; {{#unless isStrict}} [key: string]: SubmittableModuleExtrinsics; {{/unless}} - } -} -{{> footer }} + } // SubmittableExtrinsics + +} // declare module diff --git a/packages/typegen/src/util/formatting.ts b/packages/typegen/src/util/formatting.ts index e50cd53ad2..d4af544e4b 100644 --- a/packages/typegen/src/util/formatting.ts +++ b/packages/typegen/src/util/formatting.ts @@ -30,7 +30,6 @@ const NO_CODEC = ['Tuple', 'VecFixed']; export const HEADER = (type: 'chain' | 'defs'): string => `// Auto-generated via \`yarn polkadot-types-from-${type}\`, do not edit\n/* eslint-disable */\n\n`; Handlebars.registerPartial({ - footer: Handlebars.compile(readTemplate('footer')), header: Handlebars.compile(readTemplate('header')) }); @@ -57,7 +56,7 @@ Handlebars.registerHelper({ return [...defs].sort((a, b) => a.file.localeCompare(b.file)).reduce((result, { file, types }): string => { return types.length - ? `${result}import type { ${types.sort().join(', ')} } from '${file}';\n` + ? `${result}${result.length ? ' ' : ''}import type { ${types.sort().join(', ')} } from '${file}';\n` : result; }, ''); }, diff --git a/packages/types/src/augment/lookup/types-kusama.ts b/packages/types/src/augment/lookup/types-kusama.ts index 6bb6782c16..b0416aae80 100644 --- a/packages/types/src/augment/lookup/types-kusama.ts +++ b/packages/types/src/augment/lookup/types-kusama.ts @@ -2,10 +2,9 @@ /* eslint-disable */ declare module '@polkadot/types/lookup' { - -import type { Bytes, Compact, Enum, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types'; -import type { H256, PerU16 } from '@polkadot/types/interfaces/runtime'; -import type { ITuple } from '@polkadot/types/types'; + import type { Bytes, Compact, Enum, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types'; + import type { H256, PerU16 } from '@polkadot/types/interfaces/runtime'; + import type { ITuple } from '@polkadot/types/types'; /** @name KusamaRuntimeProxyType (71) */ export interface KusamaRuntimeProxyType extends Enum { @@ -925,4 +924,4 @@ import type { ITuple } from '@polkadot/types/types'; /** @name KusamaRuntimeRuntime (708) */ export type KusamaRuntimeRuntime = Null; -} +} // declare module diff --git a/packages/types/src/augment/lookup/types-polkadot.ts b/packages/types/src/augment/lookup/types-polkadot.ts index bd62a5efde..dd88e891d2 100644 --- a/packages/types/src/augment/lookup/types-polkadot.ts +++ b/packages/types/src/augment/lookup/types-polkadot.ts @@ -2,11 +2,10 @@ /* eslint-disable */ declare module '@polkadot/types/lookup' { - -import type { BitVec, Bytes, Compact, Enum, Null, Option, Result, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types'; -import type { EthereumAddress } from '@polkadot/types/interfaces/eth'; -import type { AccountId32, H256, PerU16 } from '@polkadot/types/interfaces/runtime'; -import type { ITuple } from '@polkadot/types/types'; + import type { BitVec, Bytes, Compact, Enum, Null, Option, Result, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types'; + import type { EthereumAddress } from '@polkadot/types/interfaces/eth'; + import type { AccountId32, H256, PerU16 } from '@polkadot/types/interfaces/runtime'; + import type { ITuple } from '@polkadot/types/types'; /** @name PolkadotRuntimeCommonClaimsPalletEvent (62) */ export interface PolkadotRuntimeCommonClaimsPalletEvent extends Enum { @@ -1183,4 +1182,4 @@ import type { ITuple } from '@polkadot/types/types'; /** @name PolkadotRuntimeRuntime (589) */ export type PolkadotRuntimeRuntime = Null; -} +} // declare module diff --git a/packages/types/src/augment/lookup/types-substrate.ts b/packages/types/src/augment/lookup/types-substrate.ts index 6bc5c3333f..f20f3db509 100644 --- a/packages/types/src/augment/lookup/types-substrate.ts +++ b/packages/types/src/augment/lookup/types-substrate.ts @@ -2,12 +2,11 @@ /* eslint-disable */ declare module '@polkadot/types/lookup' { - -import type { BTreeMap, Bytes, Compact, Data, Enum, Null, Option, Result, Set, Struct, Text, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types'; -import type { Vote } from '@polkadot/types/interfaces/elections'; -import type { AccountId32, Call, H256, MultiAddress, PerU16, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime'; -import type { Event } from '@polkadot/types/interfaces/system'; -import type { ITuple } from '@polkadot/types/types'; + import type { BTreeMap, Bytes, Compact, Data, Enum, Null, Option, Result, Set, Struct, Text, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types'; + import type { Vote } from '@polkadot/types/interfaces/elections'; + import type { AccountId32, Call, H256, MultiAddress, PerU16, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime'; + import type { Event } from '@polkadot/types/interfaces/system'; + import type { ITuple } from '@polkadot/types/types'; /** @name FrameSystemAccountInfo (3) */ export interface FrameSystemAccountInfo extends Struct { @@ -4101,4 +4100,4 @@ import type { ITuple } from '@polkadot/types/types'; /** @name NodeRuntimeRuntime (524) */ export type NodeRuntimeRuntime = Null; -} +} // declare module diff --git a/packages/types/src/augment/registry.ts b/packages/types/src/augment/registry.ts index 8e1af8c337..6e447f8862 100644 --- a/packages/types/src/augment/registry.ts +++ b/packages/types/src/augment/registry.ts @@ -1,65 +1,65 @@ // Auto-generated via `yarn polkadot-types-from-defs`, do not edit /* eslint-disable */ -import type { BitVec, Bool, Bytes, Data, I128, I16, I256, I32, I64, I8, Json, Null, Raw, StorageKey, Text, Type, U128, U16, U256, U32, U64, U8, USize, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types'; -import type { AssetApproval, AssetApprovalKey, AssetBalance, AssetDestroyWitness, AssetDetails, AssetMetadata, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets'; -import type { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations'; -import type { RawAuraPreDigest } from '@polkadot/types/interfaces/aura'; -import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author'; -import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship'; -import type { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeWeight, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe'; -import type { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, ReserveData, ReserveIdentifier, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances'; -import type { BeefyCommitment, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefySignedCommitment, MmrRootHash, ValidatorSetId } from '@polkadot/types/interfaces/beefy'; -import type { BridgeMessageId, BridgedBlockHash, BridgedBlockNumber, BridgedHeader, CallOrigin, ChainId, DeliveredMessages, DispatchFeePayment, InboundLaneData, InboundRelayer, InitializationData, LaneId, MessageData, MessageKey, MessageNonce, MessagesDeliveryProofOf, MessagesProofOf, OperatingMode, OutboundLaneData, OutboundMessageFee, OutboundPayload, Parameter, RelayerId, UnrewardedRelayer, UnrewardedRelayersState } from '@polkadot/types/interfaces/bridges'; -import type { BlockHash } from '@polkadot/types/interfaces/chain'; -import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate'; -import type { StatementKind } from '@polkadot/types/interfaces/claims'; -import type { CollectiveOrigin, MemberCount, ProposalIndex, Votes, VotesTo230 } from '@polkadot/types/interfaces/collective'; -import type { AuthorityId, RawVRFOutput } from '@polkadot/types/interfaces/consensus'; -import type { AliveContractInfo, CodeHash, ContractCallRequest, ContractExecResult, ContractExecResultErr, ContractExecResultErrModule, ContractExecResultOk, ContractExecResultResult, ContractExecResultSuccessTo255, ContractExecResultSuccessTo260, ContractExecResultTo255, ContractExecResultTo260, ContractExecResultTo267, ContractInfo, ContractInstantiateResult, ContractInstantiateResultTo267, ContractStorageKey, DeletedContract, ExecReturnValue, Gas, HostFnWeights, HostFnWeightsTo264, InstantiateRequest, InstantiateReturnValue, InstantiateReturnValueTo267, InstructionWeights, Limits, LimitsTo264, PrefabWasmModule, RentProjection, Schedule, ScheduleTo212, ScheduleTo258, ScheduleTo264, SeedOf, TombstoneContractInfo, TrieId } from '@polkadot/types/interfaces/contracts'; -import type { ContractConstructorSpec, ContractContractSpec, ContractCryptoHasher, ContractDiscriminant, ContractDisplayName, ContractEventParamSpec, ContractEventSpec, ContractLayoutArray, ContractLayoutCell, ContractLayoutEnum, ContractLayoutHash, ContractLayoutHashingStrategy, ContractLayoutKey, ContractLayoutStruct, ContractLayoutStructField, ContractMessageParamSpec, ContractMessageSpec, ContractMetadata, ContractMetadataLatest, ContractMetadataV0, ContractMetadataV1, ContractProject, ContractProjectContract, ContractProjectInfo, ContractProjectSource, ContractProjectV0, ContractSelector, ContractStorageLayout, ContractTypeSpec } from '@polkadot/types/interfaces/contractsAbi'; -import type { FundIndex, FundInfo, LastContribution, TrieIndex } from '@polkadot/types/interfaces/crowdloan'; -import type { ConfigData, MessageId, OverweightIndex, PageCounter, PageIndexData } from '@polkadot/types/interfaces/cumulus'; -import type { AccountVote, AccountVoteSplit, AccountVoteStandard, Conviction, Delegations, PreimageStatus, PreimageStatusAvailable, PriorLock, PropIndex, Proposal, ProxyState, ReferendumIndex, ReferendumInfo, ReferendumInfoFinished, ReferendumInfoTo239, ReferendumStatus, Tally, Voting, VotingDelegating, VotingDirect, VotingDirectVote } from '@polkadot/types/interfaces/democracy'; -import type { ApprovalFlag, DefunctVoter, Renouncing, SetIndex, Vote, VoteIndex, VoteThreshold, VoterInfo } from '@polkadot/types/interfaces/elections'; -import type { CreatedBlock, ImportedAux } from '@polkadot/types/interfaces/engine'; -import type { BlockV0, BlockV1, BlockV2, EIP1559Transaction, EIP2930Transaction, EthAccessList, EthAccessListItem, EthAccount, EthAddress, EthBlock, EthBloom, EthCallRequest, EthFilter, EthFilterAddress, EthFilterChanges, EthFilterTopic, EthFilterTopicEntry, EthFilterTopicInner, EthHeader, EthLog, EthReceipt, EthRichBlock, EthRichHeader, EthStorageProof, EthSubKind, EthSubParams, EthSubResult, EthSyncInfo, EthSyncStatus, EthTransaction, EthTransactionAction, EthTransactionCondition, EthTransactionRequest, EthTransactionSignature, EthTransactionStatus, EthWork, EthereumAccountId, EthereumAddress, EthereumLookupSource, EthereumSignature, LegacyTransaction, TransactionV0, TransactionV1, TransactionV2 } from '@polkadot/types/interfaces/eth'; -import type { EvmAccount, EvmLog, EvmVicinity, ExitError, ExitFatal, ExitReason, ExitRevert, ExitSucceed } from '@polkadot/types/interfaces/evm'; -import type { AnySignature, EcdsaSignature, Ed25519Signature, Era, Extrinsic, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV4, ExtrinsicSignature, ExtrinsicSignatureV4, ExtrinsicUnknown, ExtrinsicV4, ImmortalEra, MortalEra, MultiSignature, Signature, SignerPayload, Sr25519Signature } from '@polkadot/types/interfaces/extrinsics'; -import type { AssetOptions, Owner, PermissionLatest, PermissionVersions, PermissionsV1 } from '@polkadot/types/interfaces/genericAsset'; -import type { ActiveGilt, ActiveGiltsTotal, ActiveIndex, GiltBid } from '@polkadot/types/interfaces/gilt'; -import type { AuthorityIndex, AuthorityList, AuthoritySet, AuthoritySetChange, AuthoritySetChanges, AuthorityWeight, DelayKind, DelayKindBest, EncodedFinalityProofs, ForkTreePendingChange, ForkTreePendingChangeNode, GrandpaCommit, GrandpaEquivocation, GrandpaEquivocationProof, GrandpaEquivocationValue, GrandpaJustification, GrandpaPrecommit, GrandpaPrevote, GrandpaSignedPrecommit, JustificationNotification, KeyOwnerProof, NextAuthority, PendingChange, PendingPause, PendingResume, Precommits, Prevotes, ReportedRoundStates, RoundState, SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa'; -import type { IdentityFields, IdentityInfo, IdentityInfoAdditional, IdentityInfoTo198, IdentityJudgement, RegistrarIndex, RegistrarInfo, Registration, RegistrationJudgement, RegistrationTo198 } from '@polkadot/types/interfaces/identity'; -import type { AuthIndex, AuthoritySignature, Heartbeat, HeartbeatTo244, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from '@polkadot/types/interfaces/imOnline'; -import type { CallIndex, LotteryConfig } from '@polkadot/types/interfaces/lottery'; -import type { ErrorMetadataLatest, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV12, ErrorMetadataV13, ErrorMetadataV14, ErrorMetadataV9, EventMetadataLatest, EventMetadataV10, EventMetadataV11, EventMetadataV12, EventMetadataV13, EventMetadataV14, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, ExtrinsicMetadataV12, ExtrinsicMetadataV13, ExtrinsicMetadataV14, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV12, FunctionArgumentMetadataV13, FunctionArgumentMetadataV14, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV12, FunctionMetadataV13, FunctionMetadataV14, FunctionMetadataV9, MetadataAll, MetadataLatest, MetadataV10, MetadataV11, MetadataV12, MetadataV13, MetadataV14, MetadataV9, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV12, ModuleConstantMetadataV13, ModuleConstantMetadataV9, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV12, ModuleMetadataV13, ModuleMetadataV9, PalletCallMetadataLatest, PalletCallMetadataV14, PalletConstantMetadataLatest, PalletConstantMetadataV14, PalletErrorMetadataLatest, PalletErrorMetadataV14, PalletEventMetadataLatest, PalletEventMetadataV14, PalletMetadataLatest, PalletMetadataV14, PalletStorageMetadataLatest, PalletStorageMetadataV14, PortableType, PortableTypeV14, SignedExtensionMetadataLatest, SignedExtensionMetadataV14, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV12, StorageEntryMetadataV13, StorageEntryMetadataV14, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV12, StorageEntryModifierV13, StorageEntryModifierV14, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV12, StorageEntryTypeV13, StorageEntryTypeV14, StorageEntryTypeV9, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV12, StorageHasherV13, StorageHasherV14, StorageHasherV9, StorageMetadataV10, StorageMetadataV11, StorageMetadataV12, StorageMetadataV13, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata'; -import type { MmrLeafProof } from '@polkadot/types/interfaces/mmr'; -import type { StorageKind } from '@polkadot/types/interfaces/offchain'; -import type { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences'; -import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, AssignmentId, AssignmentKind, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateHash, CandidateInfo, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, CoreAssignment, CoreIndex, CoreOccupied, DisputeLocation, DisputeResult, DisputeState, DisputeStatement, DisputeStatementSet, DoubleVoteReport, DownwardMessage, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, GroupIndex, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InvalidDisputeStatementKind, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiDisputeStatementSet, NewBidder, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParachainsInherentData, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PersistedValidationData, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, RelayChainBlockNumber, RelayChainHash, RelayHash, Remark, ReplacementTimes, Retriable, Scheduling, ServiceQuality, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlotRange, Statement, SubId, SystemInherentData, TransientValidationData, UpgradeGoAhead, UpgradeRestriction, UpwardMessage, ValidDisputeStatementKind, ValidationCode, ValidationCodeHash, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, WinnersData, WinnersDataTuple, WinningData, WinningDataEntry } from '@polkadot/types/interfaces/parachains'; -import type { FeeDetails, InclusionFee, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment'; -import type { Approvals } from '@polkadot/types/interfaces/poll'; -import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/types/interfaces/proxy'; -import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase'; -import type { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery'; -import type { RpcMethods } from '@polkadot/types/interfaces/rpc'; -import type { AccountId, AccountId20, AccountId32, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, BlockNumberFor, BlockNumberOf, Call, CallHash, CallHashOf, ChangesTrieConfiguration, ChangesTrieSignal, CodecHash, Consensus, ConsensusEngineId, CrateVersion, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H32, H512, H64, Hash, Header, HeaderPartial, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, StorageData, StorageProof, TransactionInfo, TransactionPriority, TransactionStorageProof, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime'; -import type { Si0Field, Si0LookupTypeId, Si0Path, Si0Type, Si0TypeDef, Si0TypeDefArray, Si0TypeDefBitSequence, Si0TypeDefCompact, Si0TypeDefComposite, Si0TypeDefPhantom, Si0TypeDefPrimitive, Si0TypeDefSequence, Si0TypeDefTuple, Si0TypeDefVariant, Si0TypeParameter, Si0Variant, Si1Field, Si1LookupTypeId, Si1Path, Si1Type, Si1TypeDef, Si1TypeDefArray, Si1TypeDefBitSequence, Si1TypeDefCompact, Si1TypeDefComposite, Si1TypeDefPrimitive, Si1TypeDefSequence, Si1TypeDefTuple, Si1TypeDefVariant, Si1TypeParameter, Si1Variant, SiField, SiLookupTypeId, SiPath, SiType, SiTypeDef, SiTypeDefArray, SiTypeDefBitSequence, SiTypeDefCompact, SiTypeDefComposite, SiTypeDefPrimitive, SiTypeDefSequence, SiTypeDefTuple, SiTypeDefVariant, SiTypeParameter, SiVariant } from '@polkadot/types/interfaces/scaleInfo'; -import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler'; -import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session'; -import type { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society'; -import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactAssignmentsTo265, CompactAssignmentsWith16, CompactAssignmentsWith24, CompactScore, CompactScoreCompact, ElectionCompute, ElectionPhase, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, RawSolutionTo265, RawSolutionWith16, RawSolutionWith24, ReadySolution, RewardDestination, RewardPoint, RoundSnapshot, SeatHolder, SignedSubmission, SignedSubmissionOf, SignedSubmissionTo276, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, SubmissionIndicesOf, Supports, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking'; -import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, SpecVersion, StorageChangeSet, TraceBlockResponse, TraceError } from '@polkadot/types/interfaces/state'; -import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support'; -import type { AccountInfo, AccountInfoWithDualRefCount, AccountInfoWithProviders, AccountInfoWithRefCount, AccountInfoWithRefCountU8, AccountInfoWithTripleRefCount, ApplyExtrinsicResult, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, Health, InvalidTransaction, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, PerDispatchClassU32, PerDispatchClassWeight, PerDispatchClassWeightsPerClass, Phase, RawOrigin, RefCount, RefCountTo259, SyncState, SystemOrigin, TokenError, TransactionValidityError, UnknownTransaction, WeightPerClass } from '@polkadot/types/interfaces/system'; -import type { Bounty, BountyIndex, BountyStatus, BountyStatusActive, BountyStatusCuratorProposed, BountyStatusPendingPayout, OpenTip, OpenTipFinderTo225, OpenTipTip, OpenTipTo225, TreasuryProposal } from '@polkadot/types/interfaces/treasury'; -import type { Multiplier } from '@polkadot/types/interfaces/txpayment'; -import type { ClassDetails, ClassId, ClassMetadata, DepositBalance, DepositBalanceOf, DestroyWitness, InstanceDetails, InstanceId, InstanceMetadata } from '@polkadot/types/interfaces/uniques'; -import type { Multisig, Timepoint } from '@polkadot/types/interfaces/utility'; -import type { VestingInfo } from '@polkadot/types/interfaces/vesting'; -import type { AssetInstance, AssetInstanceV0, AssetInstanceV1, AssetInstanceV2, BodyId, BodyPart, DoubleEncodedCall, Fungibility, FungibilityV0, FungibilityV1, FungibilityV2, InboundStatus, InstructionV2, InteriorMultiLocation, Junction, JunctionV0, JunctionV1, JunctionV2, Junctions, JunctionsV1, JunctionsV2, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetFilterV2, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, NetworkId, OriginKindV0, OriginKindV1, OriginKindV2, OutboundStatus, Outcome, QueryId, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV2Result, VersionMigrationStage, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WeightLimitV2, WildFungibility, WildFungibilityV0, WildFungibilityV1, WildFungibilityV2, WildMultiAsset, WildMultiAssetV1, WildMultiAssetV2, Xcm, XcmAssetId, XcmError, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmOrder, XcmOrderV0, XcmOrderV1, XcmOrderV2, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmV2, XcmVersion, XcmpMessageFormat } from '@polkadot/types/interfaces/xcm'; - declare module '@polkadot/types/types/registry' { + import type { BitVec, Bool, Bytes, Data, I128, I16, I256, I32, I64, I8, Json, Null, Raw, StorageKey, Text, Type, U128, U16, U256, U32, U64, U8, USize, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types'; + import type { AssetApproval, AssetApprovalKey, AssetBalance, AssetDestroyWitness, AssetDetails, AssetMetadata, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets'; + import type { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations'; + import type { RawAuraPreDigest } from '@polkadot/types/interfaces/aura'; + import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author'; + import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship'; + import type { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeWeight, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe'; + import type { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, ReserveData, ReserveIdentifier, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances'; + import type { BeefyCommitment, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefySignedCommitment, MmrRootHash, ValidatorSetId } from '@polkadot/types/interfaces/beefy'; + import type { BridgeMessageId, BridgedBlockHash, BridgedBlockNumber, BridgedHeader, CallOrigin, ChainId, DeliveredMessages, DispatchFeePayment, InboundLaneData, InboundRelayer, InitializationData, LaneId, MessageData, MessageKey, MessageNonce, MessagesDeliveryProofOf, MessagesProofOf, OperatingMode, OutboundLaneData, OutboundMessageFee, OutboundPayload, Parameter, RelayerId, UnrewardedRelayer, UnrewardedRelayersState } from '@polkadot/types/interfaces/bridges'; + import type { BlockHash } from '@polkadot/types/interfaces/chain'; + import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate'; + import type { StatementKind } from '@polkadot/types/interfaces/claims'; + import type { CollectiveOrigin, MemberCount, ProposalIndex, Votes, VotesTo230 } from '@polkadot/types/interfaces/collective'; + import type { AuthorityId, RawVRFOutput } from '@polkadot/types/interfaces/consensus'; + import type { AliveContractInfo, CodeHash, ContractCallRequest, ContractExecResult, ContractExecResultErr, ContractExecResultErrModule, ContractExecResultOk, ContractExecResultResult, ContractExecResultSuccessTo255, ContractExecResultSuccessTo260, ContractExecResultTo255, ContractExecResultTo260, ContractExecResultTo267, ContractInfo, ContractInstantiateResult, ContractInstantiateResultTo267, ContractStorageKey, DeletedContract, ExecReturnValue, Gas, HostFnWeights, HostFnWeightsTo264, InstantiateRequest, InstantiateReturnValue, InstantiateReturnValueTo267, InstructionWeights, Limits, LimitsTo264, PrefabWasmModule, RentProjection, Schedule, ScheduleTo212, ScheduleTo258, ScheduleTo264, SeedOf, TombstoneContractInfo, TrieId } from '@polkadot/types/interfaces/contracts'; + import type { ContractConstructorSpec, ContractContractSpec, ContractCryptoHasher, ContractDiscriminant, ContractDisplayName, ContractEventParamSpec, ContractEventSpec, ContractLayoutArray, ContractLayoutCell, ContractLayoutEnum, ContractLayoutHash, ContractLayoutHashingStrategy, ContractLayoutKey, ContractLayoutStruct, ContractLayoutStructField, ContractMessageParamSpec, ContractMessageSpec, ContractMetadata, ContractMetadataLatest, ContractMetadataV0, ContractMetadataV1, ContractProject, ContractProjectContract, ContractProjectInfo, ContractProjectSource, ContractProjectV0, ContractSelector, ContractStorageLayout, ContractTypeSpec } from '@polkadot/types/interfaces/contractsAbi'; + import type { FundIndex, FundInfo, LastContribution, TrieIndex } from '@polkadot/types/interfaces/crowdloan'; + import type { ConfigData, MessageId, OverweightIndex, PageCounter, PageIndexData } from '@polkadot/types/interfaces/cumulus'; + import type { AccountVote, AccountVoteSplit, AccountVoteStandard, Conviction, Delegations, PreimageStatus, PreimageStatusAvailable, PriorLock, PropIndex, Proposal, ProxyState, ReferendumIndex, ReferendumInfo, ReferendumInfoFinished, ReferendumInfoTo239, ReferendumStatus, Tally, Voting, VotingDelegating, VotingDirect, VotingDirectVote } from '@polkadot/types/interfaces/democracy'; + import type { ApprovalFlag, DefunctVoter, Renouncing, SetIndex, Vote, VoteIndex, VoteThreshold, VoterInfo } from '@polkadot/types/interfaces/elections'; + import type { CreatedBlock, ImportedAux } from '@polkadot/types/interfaces/engine'; + import type { BlockV0, BlockV1, BlockV2, EIP1559Transaction, EIP2930Transaction, EthAccessList, EthAccessListItem, EthAccount, EthAddress, EthBlock, EthBloom, EthCallRequest, EthFilter, EthFilterAddress, EthFilterChanges, EthFilterTopic, EthFilterTopicEntry, EthFilterTopicInner, EthHeader, EthLog, EthReceipt, EthRichBlock, EthRichHeader, EthStorageProof, EthSubKind, EthSubParams, EthSubResult, EthSyncInfo, EthSyncStatus, EthTransaction, EthTransactionAction, EthTransactionCondition, EthTransactionRequest, EthTransactionSignature, EthTransactionStatus, EthWork, EthereumAccountId, EthereumAddress, EthereumLookupSource, EthereumSignature, LegacyTransaction, TransactionV0, TransactionV1, TransactionV2 } from '@polkadot/types/interfaces/eth'; + import type { EvmAccount, EvmLog, EvmVicinity, ExitError, ExitFatal, ExitReason, ExitRevert, ExitSucceed } from '@polkadot/types/interfaces/evm'; + import type { AnySignature, EcdsaSignature, Ed25519Signature, Era, Extrinsic, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV4, ExtrinsicSignature, ExtrinsicSignatureV4, ExtrinsicUnknown, ExtrinsicV4, ImmortalEra, MortalEra, MultiSignature, Signature, SignerPayload, Sr25519Signature } from '@polkadot/types/interfaces/extrinsics'; + import type { AssetOptions, Owner, PermissionLatest, PermissionVersions, PermissionsV1 } from '@polkadot/types/interfaces/genericAsset'; + import type { ActiveGilt, ActiveGiltsTotal, ActiveIndex, GiltBid } from '@polkadot/types/interfaces/gilt'; + import type { AuthorityIndex, AuthorityList, AuthoritySet, AuthoritySetChange, AuthoritySetChanges, AuthorityWeight, DelayKind, DelayKindBest, EncodedFinalityProofs, ForkTreePendingChange, ForkTreePendingChangeNode, GrandpaCommit, GrandpaEquivocation, GrandpaEquivocationProof, GrandpaEquivocationValue, GrandpaJustification, GrandpaPrecommit, GrandpaPrevote, GrandpaSignedPrecommit, JustificationNotification, KeyOwnerProof, NextAuthority, PendingChange, PendingPause, PendingResume, Precommits, Prevotes, ReportedRoundStates, RoundState, SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa'; + import type { IdentityFields, IdentityInfo, IdentityInfoAdditional, IdentityInfoTo198, IdentityJudgement, RegistrarIndex, RegistrarInfo, Registration, RegistrationJudgement, RegistrationTo198 } from '@polkadot/types/interfaces/identity'; + import type { AuthIndex, AuthoritySignature, Heartbeat, HeartbeatTo244, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from '@polkadot/types/interfaces/imOnline'; + import type { CallIndex, LotteryConfig } from '@polkadot/types/interfaces/lottery'; + import type { ErrorMetadataLatest, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV12, ErrorMetadataV13, ErrorMetadataV14, ErrorMetadataV9, EventMetadataLatest, EventMetadataV10, EventMetadataV11, EventMetadataV12, EventMetadataV13, EventMetadataV14, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, ExtrinsicMetadataV12, ExtrinsicMetadataV13, ExtrinsicMetadataV14, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV12, FunctionArgumentMetadataV13, FunctionArgumentMetadataV14, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV12, FunctionMetadataV13, FunctionMetadataV14, FunctionMetadataV9, MetadataAll, MetadataLatest, MetadataV10, MetadataV11, MetadataV12, MetadataV13, MetadataV14, MetadataV9, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV12, ModuleConstantMetadataV13, ModuleConstantMetadataV9, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV12, ModuleMetadataV13, ModuleMetadataV9, PalletCallMetadataLatest, PalletCallMetadataV14, PalletConstantMetadataLatest, PalletConstantMetadataV14, PalletErrorMetadataLatest, PalletErrorMetadataV14, PalletEventMetadataLatest, PalletEventMetadataV14, PalletMetadataLatest, PalletMetadataV14, PalletStorageMetadataLatest, PalletStorageMetadataV14, PortableType, PortableTypeV14, SignedExtensionMetadataLatest, SignedExtensionMetadataV14, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV12, StorageEntryMetadataV13, StorageEntryMetadataV14, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV12, StorageEntryModifierV13, StorageEntryModifierV14, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV12, StorageEntryTypeV13, StorageEntryTypeV14, StorageEntryTypeV9, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV12, StorageHasherV13, StorageHasherV14, StorageHasherV9, StorageMetadataV10, StorageMetadataV11, StorageMetadataV12, StorageMetadataV13, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata'; + import type { MmrLeafProof } from '@polkadot/types/interfaces/mmr'; + import type { StorageKind } from '@polkadot/types/interfaces/offchain'; + import type { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences'; + import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, AssignmentId, AssignmentKind, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateHash, CandidateInfo, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, CoreAssignment, CoreIndex, CoreOccupied, DisputeLocation, DisputeResult, DisputeState, DisputeStatement, DisputeStatementSet, DoubleVoteReport, DownwardMessage, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, GroupIndex, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InvalidDisputeStatementKind, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiDisputeStatementSet, NewBidder, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParachainsInherentData, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PersistedValidationData, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, RelayChainBlockNumber, RelayChainHash, RelayHash, Remark, ReplacementTimes, Retriable, Scheduling, ServiceQuality, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlotRange, Statement, SubId, SystemInherentData, TransientValidationData, UpgradeGoAhead, UpgradeRestriction, UpwardMessage, ValidDisputeStatementKind, ValidationCode, ValidationCodeHash, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, WinnersData, WinnersDataTuple, WinningData, WinningDataEntry } from '@polkadot/types/interfaces/parachains'; + import type { FeeDetails, InclusionFee, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment'; + import type { Approvals } from '@polkadot/types/interfaces/poll'; + import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/types/interfaces/proxy'; + import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase'; + import type { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery'; + import type { RpcMethods } from '@polkadot/types/interfaces/rpc'; + import type { AccountId, AccountId20, AccountId32, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, BlockNumberFor, BlockNumberOf, Call, CallHash, CallHashOf, ChangesTrieConfiguration, ChangesTrieSignal, CodecHash, Consensus, ConsensusEngineId, CrateVersion, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H32, H512, H64, Hash, Header, HeaderPartial, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, StorageData, StorageProof, TransactionInfo, TransactionPriority, TransactionStorageProof, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime'; + import type { Si0Field, Si0LookupTypeId, Si0Path, Si0Type, Si0TypeDef, Si0TypeDefArray, Si0TypeDefBitSequence, Si0TypeDefCompact, Si0TypeDefComposite, Si0TypeDefPhantom, Si0TypeDefPrimitive, Si0TypeDefSequence, Si0TypeDefTuple, Si0TypeDefVariant, Si0TypeParameter, Si0Variant, Si1Field, Si1LookupTypeId, Si1Path, Si1Type, Si1TypeDef, Si1TypeDefArray, Si1TypeDefBitSequence, Si1TypeDefCompact, Si1TypeDefComposite, Si1TypeDefPrimitive, Si1TypeDefSequence, Si1TypeDefTuple, Si1TypeDefVariant, Si1TypeParameter, Si1Variant, SiField, SiLookupTypeId, SiPath, SiType, SiTypeDef, SiTypeDefArray, SiTypeDefBitSequence, SiTypeDefCompact, SiTypeDefComposite, SiTypeDefPrimitive, SiTypeDefSequence, SiTypeDefTuple, SiTypeDefVariant, SiTypeParameter, SiVariant } from '@polkadot/types/interfaces/scaleInfo'; + import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler'; + import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session'; + import type { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society'; + import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactAssignmentsTo265, CompactAssignmentsWith16, CompactAssignmentsWith24, CompactScore, CompactScoreCompact, ElectionCompute, ElectionPhase, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, RawSolutionTo265, RawSolutionWith16, RawSolutionWith24, ReadySolution, RewardDestination, RewardPoint, RoundSnapshot, SeatHolder, SignedSubmission, SignedSubmissionOf, SignedSubmissionTo276, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, SubmissionIndicesOf, Supports, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking'; + import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, SpecVersion, StorageChangeSet, TraceBlockResponse, TraceError } from '@polkadot/types/interfaces/state'; + import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support'; + import type { AccountInfo, AccountInfoWithDualRefCount, AccountInfoWithProviders, AccountInfoWithRefCount, AccountInfoWithRefCountU8, AccountInfoWithTripleRefCount, ApplyExtrinsicResult, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, Health, InvalidTransaction, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, PerDispatchClassU32, PerDispatchClassWeight, PerDispatchClassWeightsPerClass, Phase, RawOrigin, RefCount, RefCountTo259, SyncState, SystemOrigin, TokenError, TransactionValidityError, UnknownTransaction, WeightPerClass } from '@polkadot/types/interfaces/system'; + import type { Bounty, BountyIndex, BountyStatus, BountyStatusActive, BountyStatusCuratorProposed, BountyStatusPendingPayout, OpenTip, OpenTipFinderTo225, OpenTipTip, OpenTipTo225, TreasuryProposal } from '@polkadot/types/interfaces/treasury'; + import type { Multiplier } from '@polkadot/types/interfaces/txpayment'; + import type { ClassDetails, ClassId, ClassMetadata, DepositBalance, DepositBalanceOf, DestroyWitness, InstanceDetails, InstanceId, InstanceMetadata } from '@polkadot/types/interfaces/uniques'; + import type { Multisig, Timepoint } from '@polkadot/types/interfaces/utility'; + import type { VestingInfo } from '@polkadot/types/interfaces/vesting'; + import type { AssetInstance, AssetInstanceV0, AssetInstanceV1, AssetInstanceV2, BodyId, BodyPart, DoubleEncodedCall, Fungibility, FungibilityV0, FungibilityV1, FungibilityV2, InboundStatus, InstructionV2, InteriorMultiLocation, Junction, JunctionV0, JunctionV1, JunctionV2, Junctions, JunctionsV1, JunctionsV2, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetFilterV2, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, NetworkId, OriginKindV0, OriginKindV1, OriginKindV2, OutboundStatus, Outcome, QueryId, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV2Result, VersionMigrationStage, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WeightLimitV2, WildFungibility, WildFungibilityV0, WildFungibilityV1, WildFungibilityV2, WildMultiAsset, WildMultiAssetV1, WildMultiAssetV2, Xcm, XcmAssetId, XcmError, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmOrder, XcmOrderV0, XcmOrderV1, XcmOrderV2, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmV2, XcmVersion, XcmpMessageFormat } from '@polkadot/types/interfaces/xcm'; + export interface InterfaceTypes { AbridgedCandidateReceipt: AbridgedCandidateReceipt; AbridgedHostConfiguration: AbridgedHostConfiguration; @@ -1071,5 +1071,5 @@ declare module '@polkadot/types/types/registry' { XcmV1: XcmV1; XcmV2: XcmV2; XcmVersion: XcmVersion; - } -} + } // InterfaceTypes +} // declare module diff --git a/packages/types/src/interfaces/assets/types.ts b/packages/types/src/interfaces/assets/types.ts index 106bdac0f1..24dac42ec3 100644 --- a/packages/types/src/interfaces/assets/types.ts +++ b/packages/types/src/interfaces/assets/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Bytes, Compact, Struct, bool, u32, u64, u8 } from '@polkadot/types'; -import type { AccountId, BalanceOf } from '@polkadot/types/interfaces/runtime'; + import type { AccountId, BalanceOf } from '@polkadot/types/interfaces/runtime'; /** @name AssetApproval */ export interface AssetApproval extends Struct { diff --git a/packages/types/src/interfaces/attestations/types.ts b/packages/types/src/interfaces/attestations/types.ts index a849c1dee4..4b30034404 100644 --- a/packages/types/src/interfaces/attestations/types.ts +++ b/packages/types/src/interfaces/attestations/types.ts @@ -2,9 +2,9 @@ /* eslint-disable */ import type { Struct, Vec } from '@polkadot/types'; -import type { CandidateReceipt, ParaId } from '@polkadot/types/interfaces/parachains'; -import type { AccountId, BlockNumber, H256, Hash } from '@polkadot/types/interfaces/runtime'; -import type { SessionIndex } from '@polkadot/types/interfaces/session'; + import type { CandidateReceipt, ParaId } from '@polkadot/types/interfaces/parachains'; + import type { AccountId, BlockNumber, H256, Hash } from '@polkadot/types/interfaces/runtime'; + import type { SessionIndex } from '@polkadot/types/interfaces/session'; /** @name BlockAttestations */ export interface BlockAttestations extends Struct { diff --git a/packages/types/src/interfaces/author/types.ts b/packages/types/src/interfaces/author/types.ts index 537a3c4c2b..1409aa358a 100644 --- a/packages/types/src/interfaces/author/types.ts +++ b/packages/types/src/interfaces/author/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Bytes, Enum, Text, Vec } from '@polkadot/types'; -import type { Hash } from '@polkadot/types/interfaces/runtime'; + import type { Hash } from '@polkadot/types/interfaces/runtime'; /** @name ExtrinsicOrHash */ export interface ExtrinsicOrHash extends Enum { diff --git a/packages/types/src/interfaces/authorship/types.ts b/packages/types/src/interfaces/authorship/types.ts index 6410aa69aa..dcf9e0184c 100644 --- a/packages/types/src/interfaces/authorship/types.ts +++ b/packages/types/src/interfaces/authorship/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Enum, Option } from '@polkadot/types'; -import type { AccountId, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime'; -import type { ITuple } from '@polkadot/types/types'; + import type { AccountId, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime'; + import type { ITuple } from '@polkadot/types/types'; /** @name UncleEntryItem */ export interface UncleEntryItem extends Enum { diff --git a/packages/types/src/interfaces/babe/types.ts b/packages/types/src/interfaces/babe/types.ts index 529de2b8a5..baa59f089c 100644 --- a/packages/types/src/interfaces/babe/types.ts +++ b/packages/types/src/interfaces/babe/types.ts @@ -2,9 +2,9 @@ /* eslint-disable */ import type { Enum, Option, Struct, U8aFixed, Vec, u32, u64 } from '@polkadot/types'; -import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; -import type { Hash, Header } from '@polkadot/types/interfaces/runtime'; -import type { ITuple } from '@polkadot/types/types'; + import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; + import type { Hash, Header } from '@polkadot/types/interfaces/runtime'; + import type { ITuple } from '@polkadot/types/types'; /** @name AllowedSlots */ export interface AllowedSlots extends Enum { diff --git a/packages/types/src/interfaces/balances/types.ts b/packages/types/src/interfaces/balances/types.ts index 67315a029f..cc54cdc3ec 100644 --- a/packages/types/src/interfaces/balances/types.ts +++ b/packages/types/src/interfaces/balances/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Enum, Set, Struct, U8aFixed } from '@polkadot/types'; -import type { Balance, BlockNumber, LockIdentifier } from '@polkadot/types/interfaces/runtime'; + import type { Balance, BlockNumber, LockIdentifier } from '@polkadot/types/interfaces/runtime'; /** @name AccountData */ export interface AccountData extends Struct { diff --git a/packages/types/src/interfaces/beefy/types.ts b/packages/types/src/interfaces/beefy/types.ts index 950db0a8f0..6572bbae36 100644 --- a/packages/types/src/interfaces/beefy/types.ts +++ b/packages/types/src/interfaces/beefy/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Option, Struct, U8aFixed, Vec, u32, u64 } from '@polkadot/types'; -import type { EcdsaSignature } from '@polkadot/types/interfaces/extrinsics'; -import type { BlockNumber, H256 } from '@polkadot/types/interfaces/runtime'; + import type { EcdsaSignature } from '@polkadot/types/interfaces/extrinsics'; + import type { BlockNumber, H256 } from '@polkadot/types/interfaces/runtime'; /** @name BeefyCommitment */ export interface BeefyCommitment extends Struct { diff --git a/packages/types/src/interfaces/bridges/types.ts b/packages/types/src/interfaces/bridges/types.ts index 3d85dcc187..e069356841 100644 --- a/packages/types/src/interfaces/bridges/types.ts +++ b/packages/types/src/interfaces/bridges/types.ts @@ -2,11 +2,11 @@ /* eslint-disable */ import type { BitVec, Bytes, Enum, Null, Struct, U8aFixed, Vec, bool, u32, u64 } from '@polkadot/types'; -import type { BlockHash } from '@polkadot/types/interfaces/chain'; -import type { MultiSignature } from '@polkadot/types/interfaces/extrinsics'; -import type { AuthorityList, SetId } from '@polkadot/types/interfaces/grandpa'; -import type { AccountId, Balance, BlockNumber, H256, Header, MultiSigner, Weight } from '@polkadot/types/interfaces/runtime'; -import type { ITuple } from '@polkadot/types/types'; + import type { BlockHash } from '@polkadot/types/interfaces/chain'; + import type { MultiSignature } from '@polkadot/types/interfaces/extrinsics'; + import type { AuthorityList, SetId } from '@polkadot/types/interfaces/grandpa'; + import type { AccountId, Balance, BlockNumber, H256, Header, MultiSigner, Weight } from '@polkadot/types/interfaces/runtime'; + import type { ITuple } from '@polkadot/types/types'; /** @name BridgedBlockHash */ export interface BridgedBlockHash extends H256 {} diff --git a/packages/types/src/interfaces/collective/types.ts b/packages/types/src/interfaces/collective/types.ts index 18cae58e28..7647e08179 100644 --- a/packages/types/src/interfaces/collective/types.ts +++ b/packages/types/src/interfaces/collective/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Enum, Struct, Vec, u32 } from '@polkadot/types'; -import type { AccountId, BlockNumber } from '@polkadot/types/interfaces/runtime'; -import type { ITuple } from '@polkadot/types/types'; + import type { AccountId, BlockNumber } from '@polkadot/types/interfaces/runtime'; + import type { ITuple } from '@polkadot/types/types'; /** @name CollectiveOrigin */ export interface CollectiveOrigin extends Enum { diff --git a/packages/types/src/interfaces/consensus/types.ts b/packages/types/src/interfaces/consensus/types.ts index ffee2d2c5f..fe966a5b3c 100644 --- a/packages/types/src/interfaces/consensus/types.ts +++ b/packages/types/src/interfaces/consensus/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { U8aFixed } from '@polkadot/types'; -import type { AccountId } from '@polkadot/types/interfaces/runtime'; + import type { AccountId } from '@polkadot/types/interfaces/runtime'; /** @name AuthorityId */ export interface AuthorityId extends AccountId {} diff --git a/packages/types/src/interfaces/contracts/types.ts b/packages/types/src/interfaces/contracts/types.ts index ec8caf9873..2d42fa27d7 100644 --- a/packages/types/src/interfaces/contracts/types.ts +++ b/packages/types/src/interfaces/contracts/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Bytes, Compact, Enum, Null, Option, Raw, Struct, Text, U8aFixed, bool, u32, u64, u8 } from '@polkadot/types'; -import type { AccountId, Balance, BlockNumber, Hash, Weight } from '@polkadot/types/interfaces/runtime'; + import type { AccountId, Balance, BlockNumber, Hash, Weight } from '@polkadot/types/interfaces/runtime'; /** @name AliveContractInfo */ export interface AliveContractInfo extends Struct { diff --git a/packages/types/src/interfaces/contractsAbi/types.ts b/packages/types/src/interfaces/contractsAbi/types.ts index c7b480f890..ddc2e74614 100644 --- a/packages/types/src/interfaces/contractsAbi/types.ts +++ b/packages/types/src/interfaces/contractsAbi/types.ts @@ -2,9 +2,9 @@ /* eslint-disable */ import type { BTreeMap, Bytes, Enum, Option, Raw, Struct, Text, U8aFixed, Vec, bool, u32, u64 } from '@polkadot/types'; -import type { PortableType } from '@polkadot/types/interfaces/metadata'; -import type { Si0Type, SiLookupTypeId, SiPath } from '@polkadot/types/interfaces/scaleInfo'; -import type { ITuple } from '@polkadot/types/types'; + import type { PortableType } from '@polkadot/types/interfaces/metadata'; + import type { Si0Type, SiLookupTypeId, SiPath } from '@polkadot/types/interfaces/scaleInfo'; + import type { ITuple } from '@polkadot/types/types'; /** @name ContractConstructorSpec */ export interface ContractConstructorSpec extends Struct { diff --git a/packages/types/src/interfaces/crowdloan/types.ts b/packages/types/src/interfaces/crowdloan/types.ts index 6889ea3eab..4d7ec3428c 100644 --- a/packages/types/src/interfaces/crowdloan/types.ts +++ b/packages/types/src/interfaces/crowdloan/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Enum, Option, Struct, u32 } from '@polkadot/types'; -import type { LeasePeriod } from '@polkadot/types/interfaces/parachains'; -import type { AccountId, Balance, BlockNumber, MultiSigner } from '@polkadot/types/interfaces/runtime'; + import type { LeasePeriod } from '@polkadot/types/interfaces/parachains'; + import type { AccountId, Balance, BlockNumber, MultiSigner } from '@polkadot/types/interfaces/runtime'; /** @name FundIndex */ export interface FundIndex extends u32 {} diff --git a/packages/types/src/interfaces/cumulus/types.ts b/packages/types/src/interfaces/cumulus/types.ts index ec1c6cd87f..175ba99ced 100644 --- a/packages/types/src/interfaces/cumulus/types.ts +++ b/packages/types/src/interfaces/cumulus/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Struct, U8aFixed, u32, u64 } from '@polkadot/types'; -import type { Weight } from '@polkadot/types/interfaces/runtime'; + import type { Weight } from '@polkadot/types/interfaces/runtime'; /** @name ConfigData */ export interface ConfigData extends Struct { diff --git a/packages/types/src/interfaces/democracy/types.ts b/packages/types/src/interfaces/democracy/types.ts index bde84b4701..c8a34dcad3 100644 --- a/packages/types/src/interfaces/democracy/types.ts +++ b/packages/types/src/interfaces/democracy/types.ts @@ -2,9 +2,9 @@ /* eslint-disable */ import type { Bytes, Enum, Option, Struct, Vec, bool, u32 } from '@polkadot/types'; -import type { Vote, VoteThreshold } from '@polkadot/types/interfaces/elections'; -import type { AccountId, Balance, BlockNumber, Call, Hash } from '@polkadot/types/interfaces/runtime'; -import type { ITuple } from '@polkadot/types/types'; + import type { Vote, VoteThreshold } from '@polkadot/types/interfaces/elections'; + import type { AccountId, Balance, BlockNumber, Call, Hash } from '@polkadot/types/interfaces/runtime'; + import type { ITuple } from '@polkadot/types/types'; /** @name AccountVote */ export interface AccountVote extends Enum { diff --git a/packages/types/src/interfaces/elections/types.ts b/packages/types/src/interfaces/elections/types.ts index 4761400801..425ea3f235 100644 --- a/packages/types/src/interfaces/elections/types.ts +++ b/packages/types/src/interfaces/elections/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Compact, Enum, GenericVote, Struct, u32 } from '@polkadot/types'; -import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime'; + import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime'; /** @name ApprovalFlag */ export interface ApprovalFlag extends u32 {} diff --git a/packages/types/src/interfaces/engine/types.ts b/packages/types/src/interfaces/engine/types.ts index fd93ca49d0..b6896fd3ca 100644 --- a/packages/types/src/interfaces/engine/types.ts +++ b/packages/types/src/interfaces/engine/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Struct, bool } from '@polkadot/types'; -import type { BlockHash } from '@polkadot/types/interfaces/chain'; + import type { BlockHash } from '@polkadot/types/interfaces/chain'; /** @name CreatedBlock */ export interface CreatedBlock extends Struct { diff --git a/packages/types/src/interfaces/eth/types.ts b/packages/types/src/interfaces/eth/types.ts index 909227eb60..3cbbad0157 100644 --- a/packages/types/src/interfaces/eth/types.ts +++ b/packages/types/src/interfaces/eth/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Bytes, Enum, GenericEthereumAccountId, GenericEthereumLookupSource, Option, Struct, U256, U64, U8aFixed, Vec, bool, u32, u64 } from '@polkadot/types'; -import type { BlockNumber, H160, H2048, H256, H64 } from '@polkadot/types/interfaces/runtime'; + import type { BlockNumber, H160, H2048, H256, H64 } from '@polkadot/types/interfaces/runtime'; /** @name BlockV0 */ export interface BlockV0 extends Struct { diff --git a/packages/types/src/interfaces/evm/types.ts b/packages/types/src/interfaces/evm/types.ts index 0f7a1f20e9..4d0f0fd95a 100644 --- a/packages/types/src/interfaces/evm/types.ts +++ b/packages/types/src/interfaces/evm/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Bytes, Enum, Struct, Text, Vec, u256 } from '@polkadot/types'; -import type { H160, H256 } from '@polkadot/types/interfaces/runtime'; + import type { H160, H256 } from '@polkadot/types/interfaces/runtime'; /** @name EvmAccount */ export interface EvmAccount extends Struct { diff --git a/packages/types/src/interfaces/extrinsics/types.ts b/packages/types/src/interfaces/extrinsics/types.ts index 01ba381449..b998b58936 100644 --- a/packages/types/src/interfaces/extrinsics/types.ts +++ b/packages/types/src/interfaces/extrinsics/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Enum, GenericExtrinsic, GenericExtrinsicEra, GenericExtrinsicPayload, GenericExtrinsicPayloadUnknown, GenericExtrinsicPayloadV4, GenericExtrinsicSignatureV4, GenericExtrinsicUnknown, GenericExtrinsicV4, GenericImmortalEra, GenericMortalEra, GenericSignerPayload, U8aFixed } from '@polkadot/types'; -import type { H512 } from '@polkadot/types/interfaces/runtime'; + import type { H512 } from '@polkadot/types/interfaces/runtime'; /** @name AnySignature */ export interface AnySignature extends H512 {} diff --git a/packages/types/src/interfaces/genericAsset/types.ts b/packages/types/src/interfaces/genericAsset/types.ts index 575b317a57..ce5d3a9d11 100644 --- a/packages/types/src/interfaces/genericAsset/types.ts +++ b/packages/types/src/interfaces/genericAsset/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Compact, Enum, Struct } from '@polkadot/types'; -import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime'; + import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime'; /** @name AssetOptions */ export interface AssetOptions extends Struct { diff --git a/packages/types/src/interfaces/gilt/types.ts b/packages/types/src/interfaces/gilt/types.ts index 68e230263d..3e46d8897a 100644 --- a/packages/types/src/interfaces/gilt/types.ts +++ b/packages/types/src/interfaces/gilt/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Struct, u32 } from '@polkadot/types'; -import type { AccountId, Balance, BlockNumber, Perquintill } from '@polkadot/types/interfaces/runtime'; + import type { AccountId, Balance, BlockNumber, Perquintill } from '@polkadot/types/interfaces/runtime'; /** @name ActiveGilt */ export interface ActiveGilt extends Struct { diff --git a/packages/types/src/interfaces/grandpa/types.ts b/packages/types/src/interfaces/grandpa/types.ts index 56687e719c..78b966707c 100644 --- a/packages/types/src/interfaces/grandpa/types.ts +++ b/packages/types/src/interfaces/grandpa/types.ts @@ -2,12 +2,12 @@ /* eslint-disable */ import type { BTreeSet, Bytes, Enum, Option, Struct, U64, Vec, u32, u64 } from '@polkadot/types'; -import type { BlockHash } from '@polkadot/types/interfaces/chain'; -import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; -import type { AuthoritySignature } from '@polkadot/types/interfaces/imOnline'; -import type { BlockNumber, Hash, Header } from '@polkadot/types/interfaces/runtime'; -import type { MembershipProof } from '@polkadot/types/interfaces/session'; -import type { ITuple } from '@polkadot/types/types'; + import type { BlockHash } from '@polkadot/types/interfaces/chain'; + import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; + import type { AuthoritySignature } from '@polkadot/types/interfaces/imOnline'; + import type { BlockNumber, Hash, Header } from '@polkadot/types/interfaces/runtime'; + import type { MembershipProof } from '@polkadot/types/interfaces/session'; + import type { ITuple } from '@polkadot/types/types'; /** @name AuthorityIndex */ export interface AuthorityIndex extends u64 {} diff --git a/packages/types/src/interfaces/identity/types.ts b/packages/types/src/interfaces/identity/types.ts index 71558abc75..0a0cb992b7 100644 --- a/packages/types/src/interfaces/identity/types.ts +++ b/packages/types/src/interfaces/identity/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Data, Enum, Option, Set, Struct, Vec, u32 } from '@polkadot/types'; -import type { AccountId, Balance, H160 } from '@polkadot/types/interfaces/runtime'; -import type { ITuple } from '@polkadot/types/types'; + import type { AccountId, Balance, H160 } from '@polkadot/types/interfaces/runtime'; + import type { ITuple } from '@polkadot/types/types'; /** @name IdentityFields */ export interface IdentityFields extends Set { diff --git a/packages/types/src/interfaces/imOnline/types.ts b/packages/types/src/interfaces/imOnline/types.ts index c1dffb58b2..c6df02f172 100644 --- a/packages/types/src/interfaces/imOnline/types.ts +++ b/packages/types/src/interfaces/imOnline/types.ts @@ -2,9 +2,9 @@ /* eslint-disable */ import type { Bytes, Struct, Vec, u32 } from '@polkadot/types'; -import type { Signature } from '@polkadot/types/interfaces/extrinsics'; -import type { BlockNumber } from '@polkadot/types/interfaces/runtime'; -import type { SessionIndex } from '@polkadot/types/interfaces/session'; + import type { Signature } from '@polkadot/types/interfaces/extrinsics'; + import type { BlockNumber } from '@polkadot/types/interfaces/runtime'; + import type { SessionIndex } from '@polkadot/types/interfaces/session'; /** @name AuthIndex */ export interface AuthIndex extends u32 {} diff --git a/packages/types/src/interfaces/lottery/types.ts b/packages/types/src/interfaces/lottery/types.ts index 853d16f16d..5078f6fcdd 100644 --- a/packages/types/src/interfaces/lottery/types.ts +++ b/packages/types/src/interfaces/lottery/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Struct, bool, u8 } from '@polkadot/types'; -import type { Balance, BlockNumber } from '@polkadot/types/interfaces/runtime'; -import type { ITuple } from '@polkadot/types/types'; + import type { Balance, BlockNumber } from '@polkadot/types/interfaces/runtime'; + import type { ITuple } from '@polkadot/types/types'; /** @name CallIndex */ export interface CallIndex extends ITuple<[u8, u8]> {} diff --git a/packages/types/src/interfaces/metadata/types.ts b/packages/types/src/interfaces/metadata/types.ts index 156e1f1c93..9cff8508db 100644 --- a/packages/types/src/interfaces/metadata/types.ts +++ b/packages/types/src/interfaces/metadata/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Bytes, Enum, Option, PortableRegistry, Struct, Text, Type, Vec, bool, u8 } from '@polkadot/types'; -import type { Si1Field, Si1LookupTypeId, Si1Type, SiLookupTypeId } from '@polkadot/types/interfaces/scaleInfo'; + import type { Si1Field, Si1LookupTypeId, Si1Type, SiLookupTypeId } from '@polkadot/types/interfaces/scaleInfo'; /** @name ErrorMetadataLatest */ export interface ErrorMetadataLatest extends ErrorMetadataV14 {} diff --git a/packages/types/src/interfaces/mmr/types.ts b/packages/types/src/interfaces/mmr/types.ts index 64a395477a..9f619acd3c 100644 --- a/packages/types/src/interfaces/mmr/types.ts +++ b/packages/types/src/interfaces/mmr/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Bytes, Struct } from '@polkadot/types'; -import type { BlockHash } from '@polkadot/types/interfaces/chain'; + import type { BlockHash } from '@polkadot/types/interfaces/chain'; /** @name MmrLeafProof */ export interface MmrLeafProof extends Struct { diff --git a/packages/types/src/interfaces/offences/types.ts b/packages/types/src/interfaces/offences/types.ts index dd04c26db5..61dc391bac 100644 --- a/packages/types/src/interfaces/offences/types.ts +++ b/packages/types/src/interfaces/offences/types.ts @@ -2,9 +2,9 @@ /* eslint-disable */ import type { Bytes, Struct, U8aFixed, Vec } from '@polkadot/types'; -import type { AccountId, Hash, Perbill } from '@polkadot/types/interfaces/runtime'; -import type { IdentificationTuple, SessionIndex } from '@polkadot/types/interfaces/session'; -import type { ITuple } from '@polkadot/types/types'; + import type { AccountId, Hash, Perbill } from '@polkadot/types/interfaces/runtime'; + import type { IdentificationTuple, SessionIndex } from '@polkadot/types/interfaces/session'; + import type { ITuple } from '@polkadot/types/types'; /** @name DeferredOffenceOf */ export interface DeferredOffenceOf extends ITuple<[Vec, Vec, SessionIndex]> {} diff --git a/packages/types/src/interfaces/parachains/types.ts b/packages/types/src/interfaces/parachains/types.ts index 74f5133d12..1d5e43d069 100644 --- a/packages/types/src/interfaces/parachains/types.ts +++ b/packages/types/src/interfaces/parachains/types.ts @@ -2,10 +2,10 @@ /* eslint-disable */ import type { BTreeMap, BitVec, Bytes, Enum, Option, Struct, U8aFixed, Vec, bool, u32 } from '@polkadot/types'; -import type { Signature } from '@polkadot/types/interfaces/extrinsics'; -import type { AccountId, Balance, BalanceOf, BlockNumber, H256, Hash, Header, StorageProof, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime'; -import type { MembershipProof, SessionIndex } from '@polkadot/types/interfaces/session'; -import type { ITuple } from '@polkadot/types/types'; + import type { Signature } from '@polkadot/types/interfaces/extrinsics'; + import type { AccountId, Balance, BalanceOf, BlockNumber, H256, Hash, Header, StorageProof, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime'; + import type { MembershipProof, SessionIndex } from '@polkadot/types/interfaces/session'; + import type { ITuple } from '@polkadot/types/types'; /** @name AbridgedCandidateReceipt */ export interface AbridgedCandidateReceipt extends Struct { diff --git a/packages/types/src/interfaces/payment/types.ts b/packages/types/src/interfaces/payment/types.ts index 2bf63be570..b4bf977443 100644 --- a/packages/types/src/interfaces/payment/types.ts +++ b/packages/types/src/interfaces/payment/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Option, Struct } from '@polkadot/types'; -import type { Balance, Weight } from '@polkadot/types/interfaces/runtime'; -import type { DispatchClass } from '@polkadot/types/interfaces/system'; + import type { Balance, Weight } from '@polkadot/types/interfaces/runtime'; + import type { DispatchClass } from '@polkadot/types/interfaces/system'; /** @name FeeDetails */ export interface FeeDetails extends Struct { diff --git a/packages/types/src/interfaces/proxy/types.ts b/packages/types/src/interfaces/proxy/types.ts index 39c9f04f7c..c5aebef204 100644 --- a/packages/types/src/interfaces/proxy/types.ts +++ b/packages/types/src/interfaces/proxy/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Enum, Struct } from '@polkadot/types'; -import type { AccountId, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime'; + import type { AccountId, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime'; /** @name ProxyAnnouncement */ export interface ProxyAnnouncement extends Struct { diff --git a/packages/types/src/interfaces/purchase/types.ts b/packages/types/src/interfaces/purchase/types.ts index f0f41f1e37..e15e0a6b29 100644 --- a/packages/types/src/interfaces/purchase/types.ts +++ b/packages/types/src/interfaces/purchase/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Bytes, Enum, Struct } from '@polkadot/types'; -import type { Balance, Permill } from '@polkadot/types/interfaces/runtime'; + import type { Balance, Permill } from '@polkadot/types/interfaces/runtime'; /** @name AccountStatus */ export interface AccountStatus extends Struct { diff --git a/packages/types/src/interfaces/recovery/types.ts b/packages/types/src/interfaces/recovery/types.ts index 8cbbb6f851..8d358a4dbc 100644 --- a/packages/types/src/interfaces/recovery/types.ts +++ b/packages/types/src/interfaces/recovery/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Struct, Vec, u16 } from '@polkadot/types'; -import type { AccountId, Balance, BlockNumber } from '@polkadot/types/interfaces/runtime'; + import type { AccountId, Balance, BlockNumber } from '@polkadot/types/interfaces/runtime'; /** @name ActiveRecovery */ export interface ActiveRecovery extends Struct { diff --git a/packages/types/src/interfaces/runtime/types.ts b/packages/types/src/interfaces/runtime/types.ts index 9e12976334..8526e3c771 100644 --- a/packages/types/src/interfaces/runtime/types.ts +++ b/packages/types/src/interfaces/runtime/types.ts @@ -2,10 +2,10 @@ /* eslint-disable */ import type { Bytes, Compact, DoNotConstruct, Enum, GenericAccountId, GenericAccountIndex, GenericBlock, GenericCall, GenericConsensusEngineId, GenericEthereumAccountId, GenericLookupSource, GenericMultiAddress, Int, Null, Option, StorageKey, Struct, U8aFixed, UInt, Vec, u16, u32, u64, u8 } from '@polkadot/types'; -import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; -import type { Signature } from '@polkadot/types/interfaces/extrinsics'; -import type { SystemOrigin } from '@polkadot/types/interfaces/system'; -import type { ITuple } from '@polkadot/types/types'; + import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; + import type { Signature } from '@polkadot/types/interfaces/extrinsics'; + import type { SystemOrigin } from '@polkadot/types/interfaces/system'; + import type { ITuple } from '@polkadot/types/types'; /** @name AccountId */ export interface AccountId extends AccountId32 {} diff --git a/packages/types/src/interfaces/scheduler/types.ts b/packages/types/src/interfaces/scheduler/types.ts index 2744b055af..7ee9447cd1 100644 --- a/packages/types/src/interfaces/scheduler/types.ts +++ b/packages/types/src/interfaces/scheduler/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Bytes, Option, Struct, u32, u8 } from '@polkadot/types'; -import type { BlockNumber, Call, PalletsOrigin } from '@polkadot/types/interfaces/runtime'; -import type { ITuple } from '@polkadot/types/types'; + import type { BlockNumber, Call, PalletsOrigin } from '@polkadot/types/interfaces/runtime'; + import type { ITuple } from '@polkadot/types/types'; /** @name Period */ export interface Period extends ITuple<[BlockNumber, u32]> {} diff --git a/packages/types/src/interfaces/session/types.ts b/packages/types/src/interfaces/session/types.ts index d4ae8f26de..b3a6d71c12 100644 --- a/packages/types/src/interfaces/session/types.ts +++ b/packages/types/src/interfaces/session/types.ts @@ -2,9 +2,9 @@ /* eslint-disable */ import type { Bytes, Struct, U8aFixed, Vec, u32 } from '@polkadot/types'; -import type { AccountId, ValidatorId } from '@polkadot/types/interfaces/runtime'; -import type { Exposure } from '@polkadot/types/interfaces/staking'; -import type { ITuple } from '@polkadot/types/types'; + import type { AccountId, ValidatorId } from '@polkadot/types/interfaces/runtime'; + import type { Exposure } from '@polkadot/types/interfaces/staking'; + import type { ITuple } from '@polkadot/types/types'; /** @name BeefyKey */ export interface BeefyKey extends U8aFixed {} diff --git a/packages/types/src/interfaces/society/types.ts b/packages/types/src/interfaces/society/types.ts index 85c190567c..1406a04f80 100644 --- a/packages/types/src/interfaces/society/types.ts +++ b/packages/types/src/interfaces/society/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Enum, Struct, u32 } from '@polkadot/types'; -import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime'; -import type { ITuple } from '@polkadot/types/types'; + import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime'; + import type { ITuple } from '@polkadot/types/types'; /** @name Bid */ export interface Bid extends Struct { diff --git a/packages/types/src/interfaces/staking/types.ts b/packages/types/src/interfaces/staking/types.ts index 9f798c352b..6a33452a6a 100644 --- a/packages/types/src/interfaces/staking/types.ts +++ b/packages/types/src/interfaces/staking/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { BTreeMap, Compact, Enum, Option, Struct, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types'; -import type { AccountId, Balance, BlockNumber, Moment, PerU16, Perbill } from '@polkadot/types/interfaces/runtime'; -import type { ITuple } from '@polkadot/types/types'; + import type { AccountId, Balance, BlockNumber, Moment, PerU16, Perbill } from '@polkadot/types/interfaces/runtime'; + import type { ITuple } from '@polkadot/types/types'; /** @name ActiveEraInfo */ export interface ActiveEraInfo extends Struct { diff --git a/packages/types/src/interfaces/state/types.ts b/packages/types/src/interfaces/state/types.ts index 956a511fa5..db185a5bef 100644 --- a/packages/types/src/interfaces/state/types.ts +++ b/packages/types/src/interfaces/state/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Bytes, Enum, HashMap, Option, StorageKey, Struct, Text, U8aFixed, Vec, bool, u32, u64 } from '@polkadot/types'; -import type { Hash, StorageData } from '@polkadot/types/interfaces/runtime'; -import type { ITuple } from '@polkadot/types/types'; + import type { Hash, StorageData } from '@polkadot/types/interfaces/runtime'; + import type { ITuple } from '@polkadot/types/types'; /** @name ApiId */ export interface ApiId extends U8aFixed {} diff --git a/packages/types/src/interfaces/support/types.ts b/packages/types/src/interfaces/support/types.ts index 40b7af6c4a..64926e635b 100644 --- a/packages/types/src/interfaces/support/types.ts +++ b/packages/types/src/interfaces/support/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Struct, bool, u8 } from '@polkadot/types'; -import type { Balance, Perbill } from '@polkadot/types/interfaces/runtime'; + import type { Balance, Perbill } from '@polkadot/types/interfaces/runtime'; /** @name WeightToFeeCoefficient */ export interface WeightToFeeCoefficient extends Struct { diff --git a/packages/types/src/interfaces/system/types.ts b/packages/types/src/interfaces/system/types.ts index 93f2f54f63..c074d0d6a4 100644 --- a/packages/types/src/interfaces/system/types.ts +++ b/packages/types/src/interfaces/system/types.ts @@ -2,9 +2,9 @@ /* eslint-disable */ import type { Bytes, Compact, Enum, GenericChainProperties, GenericEvent, HashMap, Option, Result, Struct, Text, U8aFixed, Vec, bool, i32, u32, u64, u8 } from '@polkadot/types'; -import type { AccountData } from '@polkadot/types/interfaces/balances'; -import type { AccountId, BlockNumber, Digest, Hash, Index, Pays, Weight } from '@polkadot/types/interfaces/runtime'; -import type { ITuple } from '@polkadot/types/types'; + import type { AccountData } from '@polkadot/types/interfaces/balances'; + import type { AccountId, BlockNumber, Digest, Hash, Index, Pays, Weight } from '@polkadot/types/interfaces/runtime'; + import type { ITuple } from '@polkadot/types/types'; /** @name AccountInfo */ export interface AccountInfo extends AccountInfoWithTripleRefCount {} diff --git a/packages/types/src/interfaces/treasury/types.ts b/packages/types/src/interfaces/treasury/types.ts index 210358b48c..39c2896fc2 100644 --- a/packages/types/src/interfaces/treasury/types.ts +++ b/packages/types/src/interfaces/treasury/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Enum, Option, Struct, Vec, bool, u32 } from '@polkadot/types'; -import type { AccountId, Balance, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime'; -import type { ITuple } from '@polkadot/types/types'; + import type { AccountId, Balance, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime'; + import type { ITuple } from '@polkadot/types/types'; /** @name Bounty */ export interface Bounty extends Struct { diff --git a/packages/types/src/interfaces/uniques/types.ts b/packages/types/src/interfaces/uniques/types.ts index 862b5d0077..2aabe3f651 100644 --- a/packages/types/src/interfaces/uniques/types.ts +++ b/packages/types/src/interfaces/uniques/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Bytes, Compact, Option, Struct, bool, u32 } from '@polkadot/types'; -import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime'; + import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime'; /** @name ClassDetails */ export interface ClassDetails extends Struct { diff --git a/packages/types/src/interfaces/utility/types.ts b/packages/types/src/interfaces/utility/types.ts index 21350f05af..20e036bc37 100644 --- a/packages/types/src/interfaces/utility/types.ts +++ b/packages/types/src/interfaces/utility/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Struct, Vec, u32 } from '@polkadot/types'; -import type { AccountId, Balance, BlockNumber } from '@polkadot/types/interfaces/runtime'; + import type { AccountId, Balance, BlockNumber } from '@polkadot/types/interfaces/runtime'; /** @name Multisig */ export interface Multisig extends Struct { diff --git a/packages/types/src/interfaces/vesting/types.ts b/packages/types/src/interfaces/vesting/types.ts index 9892d21ae9..090be1e5b9 100644 --- a/packages/types/src/interfaces/vesting/types.ts +++ b/packages/types/src/interfaces/vesting/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { Struct } from '@polkadot/types'; -import type { Balance, BlockNumber } from '@polkadot/types/interfaces/runtime'; + import type { Balance, BlockNumber } from '@polkadot/types/interfaces/runtime'; /** @name VestingInfo */ export interface VestingInfo extends Struct { diff --git a/packages/types/src/interfaces/xcm/types.ts b/packages/types/src/interfaces/xcm/types.ts index 45db3e33ff..1cb99b3a21 100644 --- a/packages/types/src/interfaces/xcm/types.ts +++ b/packages/types/src/interfaces/xcm/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Bytes, Compact, Enum, Null, Option, Result, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types'; -import type { AccountId, BlockNumber, Weight } from '@polkadot/types/interfaces/runtime'; -import type { ITuple } from '@polkadot/types/types'; + import type { AccountId, BlockNumber, Weight } from '@polkadot/types/interfaces/runtime'; + import type { ITuple } from '@polkadot/types/types'; /** @name AssetInstance */ export interface AssetInstance extends AssetInstanceV2 {} diff --git a/packages/types/src/types/codec.ts b/packages/types/src/types/codec.ts index 51a8e3a4ff..84d8dd309d 100644 --- a/packages/types/src/types/codec.ts +++ b/packages/types/src/types/codec.ts @@ -1,10 +1,11 @@ // Copyright 2017-2021 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 +import type { InterfaceTypes } from '@polkadot/types/types'; import type { BN } from '@polkadot/util'; import type { HexString } from '@polkadot/util/types'; import type { Hash } from '../interfaces/runtime'; -import type { InterfaceTypes, Registry } from './registry'; +import type { Registry } from './registry'; export type AnyJson = string | number | boolean | null | undefined | AnyJson[] | { [index: string]: AnyJson }; diff --git a/packages/types/src/types/detect.ts b/packages/types/src/types/detect.ts index 3057b1381c..2bb8876170 100644 --- a/packages/types/src/types/detect.ts +++ b/packages/types/src/types/detect.ts @@ -1,11 +1,11 @@ // Copyright 2017-2021 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 +import type { InterfaceTypes } from '@polkadot/types/types'; import type { BTreeMap, BTreeSet, CodecSet, Compact, Enum, HashMap, Linkage, Option, Range, RangeInclusive, Result, Struct, U8aFixed, Vec, VecFixed } from '../codec'; import type { Bytes, Null, u8 } from '../primitive'; import type { Codec, Constructor } from './codec'; import type { ICompact, IEnum, IMap, IMethod, INumber, IOption, IResult, ISet, IStruct, ITuple, IU8a, IVec } from './interfaces'; -import type { InterfaceTypes } from './registry'; export type DetectCodec = // This is weird - it looks the wrong way around (i.e. T check should be done first), however diff --git a/packages/types/src/types/index.ts b/packages/types/src/types/index.ts index 9739e20788..5852b5614f 100644 --- a/packages/types/src/types/index.ts +++ b/packages/types/src/types/index.ts @@ -4,6 +4,10 @@ // augment the registry import '@polkadot/types/augment'; +// used inside augmented definitions +export type { Observable } from 'rxjs'; +export * from '@polkadot/types/types/registry'; + export * from '../create/types'; export * from './calls'; export * from './codec'; @@ -13,6 +17,3 @@ export * from './events'; export * from './extrinsic'; export * from './interfaces'; export * from './registry'; - -// used inside augmented definitions -export type { Observable } from 'rxjs'; diff --git a/packages/types/src/types/registry.ts b/packages/types/src/types/registry.ts index 88e26c9326..fb92471e3c 100644 --- a/packages/types/src/types/registry.ts +++ b/packages/types/src/types/registry.ts @@ -15,9 +15,6 @@ import type { Codec, Constructor } from './codec'; import type { DefinitionRpc, DefinitionRpcSub } from './definitions'; import type { DetectCodec, DetectConstructor } from './detect'; -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface InterfaceTypes { } - export type CodecHasher = (data: Uint8Array) => Uint8Array; export interface ChainUpgradeVersion {