@paraspell/descriptors 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ declare const binMeta: string;
2
+ export default binMeta;
@@ -0,0 +1,239 @@
1
+ import { StorageDescriptor, PlainDescriptor, Enum, ApisFromDef, QueryFromPalletsDef, TxFromPalletsDef, EventsFromPalletsDef, ErrorsFromPalletsDef, ConstFromPalletsDef, ViewFnsFromPalletsDef, FixedSizeArray } from "polkadot-api";
2
+ import type { Ibqjcgmcid3dll, I88k319klqj4fv } from "./common-types";
3
+ type AnonymousEnum<T extends {}> = T & {
4
+ __anonymous: true;
5
+ };
6
+ type MyTuple<T> = [T, ...T[]];
7
+ type SeparateUndefined<T> = undefined extends T ? undefined | Exclude<T, undefined> : T;
8
+ type Anonymize<T> = SeparateUndefined<T extends string | number | bigint | boolean | void | undefined | null | symbol | Uint8Array | Enum<any> ? T : T extends AnonymousEnum<infer V> ? Enum<V> : T extends MyTuple<any> ? {
9
+ [K in keyof T]: T[K];
10
+ } : T extends [] ? [] : T extends FixedSizeArray<infer L, infer T> ? number extends L ? Array<T> : FixedSizeArray<L, T> : {
11
+ [K in keyof T & string]: T[K];
12
+ }>;
13
+ type IStorage = {
14
+ EthereumOutboundQueue: {
15
+ /**
16
+ * The current operating mode of the pallet.
17
+ */
18
+ OperatingMode: StorageDescriptor<[], Anonymize<Ibqjcgmcid3dll>, false, never>;
19
+ };
20
+ };
21
+ type ICalls = {};
22
+ type IEvent = {};
23
+ type IError = {};
24
+ type IConstants = {};
25
+ type IViewFns = {};
26
+ type IRuntimeCalls = {};
27
+ export type BridgeHubDispatchError = unknown;
28
+ type IAsset = PlainDescriptor<void>;
29
+ export type BridgeHubExtensions = {};
30
+ type PalletsTypedef = {
31
+ __storage: IStorage;
32
+ __tx: ICalls;
33
+ __event: IEvent;
34
+ __error: IError;
35
+ __const: IConstants;
36
+ __view: IViewFns;
37
+ };
38
+ export type BridgeHub = {
39
+ descriptors: {
40
+ pallets: PalletsTypedef;
41
+ apis: IRuntimeCalls;
42
+ } & Promise<any>;
43
+ metadataTypes: Promise<Uint8Array>;
44
+ asset: IAsset;
45
+ extensions: BridgeHubExtensions;
46
+ getMetadata: () => Promise<Uint8Array>;
47
+ genesis: string | undefined;
48
+ };
49
+ declare const _allDescriptors: BridgeHub;
50
+ export default _allDescriptors;
51
+ export type BridgeHubApis = ApisFromDef<IRuntimeCalls>;
52
+ export type BridgeHubQueries = QueryFromPalletsDef<PalletsTypedef>;
53
+ export type BridgeHubCalls = TxFromPalletsDef<PalletsTypedef>;
54
+ export type BridgeHubEvents = EventsFromPalletsDef<PalletsTypedef>;
55
+ export type BridgeHubErrors = ErrorsFromPalletsDef<PalletsTypedef>;
56
+ export type BridgeHubConstants = ConstFromPalletsDef<PalletsTypedef>;
57
+ export type BridgeHubViewFns = ViewFnsFromPalletsDef<PalletsTypedef>;
58
+ export type BridgeHubCallData = Anonymize<I88k319klqj4fv> & {
59
+ value: {
60
+ type: string;
61
+ };
62
+ };
63
+ type AllInteractions = {
64
+ storage: {
65
+ System: ['Account', 'ExtrinsicCount', 'InherentsApplied', 'BlockWeight', 'BlockSize', 'BlockHash', 'ExtrinsicData', 'Number', 'ParentHash', 'Digest', 'Events', 'EventCount', 'EventTopics', 'LastRuntimeUpgrade', 'BlocksTillUpgrade', 'UpgradedToU32RefCount', 'UpgradedToTripleRefCount', 'ExecutionPhase', 'AuthorizedUpgrade', 'ExtrinsicWeightReclaimed'];
66
+ ParachainSystem: ['BlockWeightMode', 'PreviousCoreCount', 'UnincludedSegment', 'AggregatedUnincludedSegment', 'PendingValidationCode', 'NewValidationCode', 'ValidationData', 'DidSetValidationCode', 'LastRelayChainBlockNumber', 'UpgradeRestrictionSignal', 'UpgradeGoAhead', 'RelayStateProof', 'RelevantMessagingState', 'HostConfiguration', 'LastDmqMqcHead', 'LastHrmpMqcHeads', 'ProcessedDownwardMessages', 'LastProcessedDownwardMessage', 'HrmpWatermark', 'LastProcessedHrmpMessage', 'HrmpOutboundMessages', 'UpwardMessages', 'PendingUpwardMessages', 'PendingUpwardSignals', 'PendingApprovedPeer', 'UpwardDeliveryFeeFactor', 'AnnouncedHrmpMessagesPerCandidate', 'ReservedXcmpWeightOverride', 'ReservedDmpWeightOverride', 'CustomValidationHeadData', 'PoVMessagesTracker'];
67
+ Timestamp: ['Now', 'DidUpdate'];
68
+ ParachainInfo: ['ParachainId'];
69
+ Balances: ['TotalIssuance', 'InactiveIssuance', 'Account', 'Locks', 'Reserves', 'Holds', 'Freezes'];
70
+ TransactionPayment: ['NextFeeMultiplier', 'StorageVersion', 'TxPaymentCredit'];
71
+ Authorship: ['Author'];
72
+ CollatorSelection: ['Invulnerables', 'CandidateList', 'LastAuthoredBlock', 'DesiredCandidates', 'CandidacyBond'];
73
+ Session: ['Validators', 'CurrentIndex', 'QueuedChanged', 'QueuedKeys', 'DisabledValidators', 'NextKeys', 'KeyOwner', 'ExternallySetKeys'];
74
+ Aura: ['Authorities', 'CurrentSlot'];
75
+ AuraExt: ['Authorities', 'RelaySlotInfo'];
76
+ XcmpQueue: ['InboundXcmpSuspended', 'OutboundXcmpStatus', 'OutboundXcmpMessages', 'SignalMessages', 'QueueConfig', 'QueueSuspended', 'DeliveryFeeFactor'];
77
+ PolkadotXcm: ['QueryCounter', 'Queries', 'AssetTraps', 'SafeXcmVersion', 'SupportedVersion', 'VersionNotifiers', 'VersionNotifyTargets', 'VersionDiscoveryQueue', 'CurrentMigration', 'RemoteLockedFungibles', 'LockedFungibles', 'XcmExecutionSuspended', 'ShouldRecordXcm', 'RecordedXcm', 'AuthorizedAliases'];
78
+ Multisig: ['Multisigs'];
79
+ Proxy: ['Proxies', 'Announcements'];
80
+ BridgeRelayers: ['RelayerRewards', 'RegisteredRelayers'];
81
+ BridgeKusamaGrandpa: ['FreeHeadersRemaining', 'InitialHash', 'BestFinalized', 'ImportedHashes', 'ImportedHashesPointer', 'ImportedHeaders', 'CurrentAuthoritySet', 'PalletOwner', 'PalletOperatingMode'];
82
+ BridgeKusamaParachains: ['PalletOwner', 'PalletOperatingMode', 'ParasInfo', 'ImportedParaHeads', 'ImportedParaHashes'];
83
+ BridgeKusamaMessages: ['PalletOwner', 'PalletOperatingMode', 'InboundLanes', 'OutboundLanes', 'OutboundMessages'];
84
+ XcmOverBridgeHubKusama: ['Bridges', 'LaneToBridge'];
85
+ EthereumInboundQueue: ['Nonce', 'OperatingMode'];
86
+ EthereumOutboundQueue: ['Messages', 'MessageLeaves', 'Nonce', 'OperatingMode'];
87
+ EthereumBeaconClient: ['InitialCheckpointRoot', 'LatestFinalizedBlockRoot', 'FinalizedBeaconState', 'FinalizedBeaconStateIndex', 'FinalizedBeaconStateMapping', 'ValidatorsRoot', 'CurrentSyncCommittee', 'NextSyncCommittee', 'LatestSyncCommitteeUpdatePeriod', 'OperatingMode'];
88
+ EthereumSystem: ['Agents', 'Channels', 'PricingParameters', 'ForeignToNativeId'];
89
+ EthereumSystemV2: ['LostTips'];
90
+ EthereumInboundQueueV2: ['NonceBitmap', 'OperatingMode', 'Tips'];
91
+ EthereumOutboundQueueV2: ['Messages', 'MessageLeaves', 'Nonce', 'PendingOrders'];
92
+ MessageQueue: ['BookStateFor', 'ServiceHead', 'Pages'];
93
+ };
94
+ tx: {
95
+ System: ['remark', 'set_heap_pages', 'set_code', 'set_code_without_checks', 'set_storage', 'kill_storage', 'kill_prefix', 'remark_with_event', 'authorize_upgrade', 'authorize_upgrade_without_checks', 'apply_authorized_upgrade'];
96
+ ParachainSystem: ['set_validation_data', 'sudo_send_upward_message'];
97
+ Timestamp: ['set'];
98
+ Balances: ['transfer_allow_death', 'force_transfer', 'transfer_keep_alive', 'transfer_all', 'force_unreserve', 'upgrade_accounts', 'force_set_balance', 'force_adjust_total_issuance', 'burn'];
99
+ CollatorSelection: ['set_invulnerables', 'set_desired_candidates', 'set_candidacy_bond', 'register_as_candidate', 'leave_intent', 'add_invulnerable', 'remove_invulnerable', 'update_bond', 'take_candidate_slot'];
100
+ Session: ['set_keys', 'purge_keys'];
101
+ XcmpQueue: ['suspend_xcm_execution', 'resume_xcm_execution', 'update_suspend_threshold', 'update_drop_threshold', 'update_resume_threshold'];
102
+ PolkadotXcm: ['send', 'teleport_assets', 'reserve_transfer_assets', 'execute', 'force_xcm_version', 'force_default_xcm_version', 'force_subscribe_version_notify', 'force_unsubscribe_version_notify', 'limited_reserve_transfer_assets', 'limited_teleport_assets', 'force_suspension', 'transfer_assets', 'claim_assets', 'transfer_assets_using_type_and_then', 'add_authorized_alias', 'remove_authorized_alias', 'remove_all_authorized_aliases'];
103
+ Utility: ['batch', 'as_derivative', 'batch_all', 'dispatch_as', 'force_batch', 'with_weight', 'if_else', 'dispatch_as_fallible'];
104
+ Multisig: ['as_multi_threshold_1', 'as_multi', 'approve_as_multi', 'cancel_as_multi', 'poke_deposit'];
105
+ Proxy: ['proxy', 'add_proxy', 'remove_proxy', 'remove_proxies', 'create_pure', 'kill_pure', 'announce', 'remove_announcement', 'reject_announcement', 'proxy_announced', 'poke_deposit'];
106
+ BridgeRelayers: ['claim_rewards', 'register', 'deregister', 'claim_rewards_to'];
107
+ BridgeKusamaGrandpa: ['submit_finality_proof', 'initialize', 'set_owner', 'set_operating_mode', 'submit_finality_proof_ex', 'force_set_pallet_state'];
108
+ BridgeKusamaParachains: ['submit_parachain_heads', 'set_owner', 'set_operating_mode', 'submit_parachain_heads_ex'];
109
+ BridgeKusamaMessages: ['set_owner', 'set_operating_mode', 'receive_messages_proof', 'receive_messages_delivery_proof'];
110
+ XcmOverBridgeHubKusama: ['open_bridge', 'close_bridge'];
111
+ EthereumInboundQueue: ['submit', 'set_operating_mode'];
112
+ EthereumOutboundQueue: ['set_operating_mode'];
113
+ EthereumBeaconClient: ['force_checkpoint', 'submit', 'set_operating_mode'];
114
+ EthereumSystem: ['upgrade', 'set_operating_mode', 'set_pricing_parameters', 'set_token_transfer_fees', 'register_token'];
115
+ EthereumSystemV2: ['upgrade', 'set_operating_mode', 'register_token', 'add_tip'];
116
+ EthereumInboundQueueV2: ['submit', 'set_operating_mode'];
117
+ EthereumOutboundQueueV2: ['submit_delivery_receipt'];
118
+ MessageQueue: ['reap_page', 'execute_overweight'];
119
+ };
120
+ events: {
121
+ System: ['ExtrinsicSuccess', 'ExtrinsicFailed', 'CodeUpdated', 'NewAccount', 'KilledAccount', 'Remarked', 'UpgradeAuthorized', 'RejectedInvalidAuthorizedUpgrade'];
122
+ ParachainSystem: ['ValidationFunctionStored', 'ValidationFunctionApplied', 'ValidationFunctionDiscarded', 'DownwardMessagesReceived', 'DownwardMessagesProcessed', 'UpwardMessageSent'];
123
+ Balances: ['Endowed', 'DustLost', 'Transfer', 'BalanceSet', 'Reserved', 'Unreserved', 'ReserveRepatriated', 'Deposit', 'Withdraw', 'Slashed', 'Minted', 'MintedCredit', 'Burned', 'BurnedDebt', 'Suspended', 'Restored', 'Upgraded', 'Issued', 'Rescinded', 'Locked', 'Unlocked', 'Frozen', 'Thawed', 'TotalIssuanceForced', 'Held', 'BurnedHeld', 'TransferOnHold', 'TransferAndHold', 'Released', 'Unexpected'];
124
+ TransactionPayment: ['TransactionFeePaid'];
125
+ CollatorSelection: ['NewInvulnerables', 'InvulnerableAdded', 'InvulnerableRemoved', 'NewDesiredCandidates', 'NewCandidacyBond', 'CandidateAdded', 'CandidateBondUpdated', 'CandidateRemoved', 'CandidateReplaced', 'InvalidInvulnerableSkipped'];
126
+ Session: ['NewSession', 'NewQueued', 'ValidatorDisabled', 'ValidatorReenabled'];
127
+ XcmpQueue: ['XcmpMessageSent'];
128
+ PolkadotXcm: ['Attempted', 'Sent', 'SendFailed', 'ProcessXcmError', 'UnexpectedResponse', 'ResponseReady', 'Notified', 'NotifyOverweight', 'NotifyDispatchError', 'NotifyDecodeFailed', 'InvalidResponder', 'InvalidResponderVersion', 'ResponseTaken', 'AssetsTrapped', 'VersionChangeNotified', 'SupportedVersionChanged', 'NotifyTargetSendFail', 'NotifyTargetMigrationFail', 'InvalidQuerierVersion', 'InvalidQuerier', 'VersionNotifyStarted', 'VersionNotifyRequested', 'VersionNotifyUnrequested', 'FeesPaid', 'AssetsClaimed', 'VersionMigrationFinished', 'AliasAuthorized', 'AliasAuthorizationRemoved', 'AliasesAuthorizationsRemoved'];
129
+ CumulusXcm: ['InvalidFormat', 'UnsupportedVersion', 'ExecutedDownward'];
130
+ Utility: ['BatchInterrupted', 'BatchCompleted', 'BatchCompletedWithErrors', 'ItemCompleted', 'ItemFailed', 'DispatchedAs', 'IfElseMainSuccess', 'IfElseFallbackCalled'];
131
+ Multisig: ['NewMultisig', 'MultisigApproval', 'MultisigExecuted', 'MultisigCancelled', 'DepositPoked'];
132
+ Proxy: ['ProxyExecuted', 'PureCreated', 'PureKilled', 'Announced', 'ProxyAdded', 'ProxyRemoved', 'DepositPoked'];
133
+ BridgeRelayers: ['RewardRegistered', 'RewardPaid', 'RegistrationUpdated', 'Deregistered', 'SlashedAndDeregistered'];
134
+ BridgeKusamaGrandpa: ['UpdatedBestFinalizedHeader'];
135
+ BridgeKusamaParachains: ['UntrackedParachainRejected', 'MissingParachainHead', 'IncorrectParachainHeadHash', 'RejectedObsoleteParachainHead', 'RejectedLargeParachainHead', 'UpdatedParachainHead'];
136
+ BridgeKusamaMessages: ['MessageAccepted', 'MessagesReceived', 'MessagesDelivered'];
137
+ XcmOverBridgeHubKusama: ['BridgeOpened', 'ClosingBridge', 'BridgePruned'];
138
+ EthereumInboundQueue: ['MessageReceived', 'OperatingModeChanged'];
139
+ EthereumOutboundQueue: ['MessageQueued', 'MessageAccepted', 'MessagesCommitted', 'OperatingModeChanged'];
140
+ EthereumBeaconClient: ['BeaconHeaderImported', 'SyncCommitteeUpdated', 'OperatingModeChanged'];
141
+ EthereumSystem: ['Upgrade', 'CreateAgent', 'CreateChannel', 'UpdateChannel', 'SetOperatingMode', 'TransferNativeFromAgent', 'SetTokenTransferFees', 'PricingParametersChanged', 'RegisterToken'];
142
+ EthereumSystemV2: ['Upgrade', 'SetOperatingMode', 'RegisterToken', 'TipProcessed'];
143
+ EthereumInboundQueueV2: ['MessageReceived', 'OperatingModeChanged'];
144
+ EthereumOutboundQueueV2: ['MessageQueued', 'MessageAccepted', 'MessageRejected', 'MessagePostponed', 'MessagesCommitted', 'OperatingModeChanged', 'MessageDelivered'];
145
+ MessageQueue: ['ProcessingFailed', 'Processed', 'OverweightEnqueued', 'PageReaped'];
146
+ };
147
+ errors: {
148
+ System: ['InvalidSpecName', 'SpecVersionNeedsToIncrease', 'FailedToExtractRuntimeVersion', 'NonDefaultComposite', 'NonZeroRefCount', 'CallFiltered', 'MultiBlockMigrationsOngoing', 'NothingAuthorized', 'Unauthorized'];
149
+ ParachainSystem: ['OverlappingUpgrades', 'ProhibitedByPolkadot', 'TooBig', 'ValidationDataNotAvailable', 'HostConfigurationNotAvailable', 'NotScheduled'];
150
+ Balances: ['VestingBalance', 'LiquidityRestrictions', 'InsufficientBalance', 'ExistentialDeposit', 'Expendability', 'ExistingVestingSchedule', 'DeadAccount', 'TooManyReserves', 'TooManyHolds', 'TooManyFreezes', 'IssuanceDeactivated', 'DeltaZero'];
151
+ CollatorSelection: ['TooManyCandidates', 'TooFewEligibleCollators', 'AlreadyCandidate', 'NotCandidate', 'TooManyInvulnerables', 'AlreadyInvulnerable', 'NotInvulnerable', 'NoAssociatedValidatorId', 'ValidatorNotRegistered', 'InsertToCandidateListFailed', 'RemoveFromCandidateListFailed', 'DepositTooLow', 'UpdateCandidateListFailed', 'InsufficientBond', 'TargetIsNotCandidate', 'IdenticalDeposit', 'InvalidUnreserve'];
152
+ Session: ['InvalidProof', 'NoAssociatedValidatorId', 'DuplicatedKey', 'NoKeys', 'NoAccount'];
153
+ XcmpQueue: ['BadQueueConfig', 'AlreadySuspended', 'AlreadyResumed', 'TooManyActiveOutboundChannels', 'TooBig'];
154
+ PolkadotXcm: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed', 'CannotCheckOutTeleport', 'LowBalance', 'TooManyLocks', 'AccountNotSovereign', 'FeesNotMet', 'LockNotFound', 'InUse', 'InvalidAssetUnknownReserve', 'InvalidAssetUnsupportedReserve', 'TooManyReserves', 'LocalExecutionIncomplete', 'TooManyAuthorizedAliases', 'ExpiresInPast', 'AliasNotFound', 'LocalExecutionIncompleteWithError'];
155
+ Utility: ['TooManyCalls'];
156
+ Multisig: ['MinimumThreshold', 'AlreadyApproved', 'NoApprovalsNeeded', 'TooFewSignatories', 'TooManySignatories', 'SignatoriesOutOfOrder', 'SenderInSignatories', 'NotFound', 'NotOwner', 'NoTimepoint', 'WrongTimepoint', 'UnexpectedTimepoint', 'MaxWeightTooLow', 'AlreadyStored'];
157
+ Proxy: ['TooMany', 'NotFound', 'NotProxy', 'Unproxyable', 'Duplicate', 'NoPermission', 'Unannounced', 'NoSelfProxy'];
158
+ BridgeRelayers: ['NoRewardForRelayer', 'FailedToPayReward', 'InvalidRegistrationLease', 'CannotReduceRegistrationLease', 'FailedToReserve', 'FailedToUnreserve', 'NotRegistered', 'RegistrationIsStillActive'];
159
+ BridgeKusamaGrandpa: ['InvalidJustification', 'InvalidAuthoritySet', 'OldHeader', 'UnsupportedScheduledChange', 'NotInitialized', 'AlreadyInitialized', 'TooManyAuthoritiesInSet', 'BridgeModule', 'InvalidAuthoritySetId', 'FreeHeadersLimitExceded', 'BelowFreeHeaderInterval', 'HeaderOverflowLimits'];
160
+ BridgeKusamaParachains: ['UnknownRelayChainBlock', 'InvalidRelayChainBlockNumber', 'HeaderChainStorageProof', 'BridgeModule'];
161
+ BridgeKusamaMessages: ['NotOperatingNormally', 'LanesManager', 'MessageRejectedByPallet', 'TooManyMessagesInTheProof', 'InvalidMessagesProof', 'InvalidMessagesDeliveryProof', 'InvalidUnrewardedRelayersState', 'InsufficientDispatchWeight', 'ReceptionConfirmation', 'BridgeModule'];
162
+ XcmOverBridgeHubKusama: ['BridgeLocations', 'InvalidBridgeOriginAccount', 'BridgeAlreadyExists', 'TooManyBridgesForLocalOrigin', 'BridgeAlreadyClosed', 'LanesManager', 'UnknownBridge', 'FailedToReserveBridgeDeposit', 'UnsupportedXcmVersion'];
163
+ EthereumInboundQueue: ['InvalidGateway', 'InvalidEnvelope', 'InvalidNonce', 'InvalidPayload', 'InvalidChannel', 'MaxNonceReached', 'InvalidAccountConversion', 'Halted', 'Verification', 'Send', 'ConvertMessage'];
164
+ EthereumOutboundQueue: ['MessageTooLarge', 'Halted', 'InvalidChannel'];
165
+ EthereumBeaconClient: ['SkippedSyncCommitteePeriod', 'SyncCommitteeUpdateRequired', 'IrrelevantUpdate', 'NotBootstrapped', 'SyncCommitteeParticipantsNotSupermajority', 'InvalidHeaderMerkleProof', 'InvalidSyncCommitteeMerkleProof', 'InvalidExecutionHeaderProof', 'InvalidAncestryMerkleProof', 'InvalidBlockRootsRootMerkleProof', 'InvalidFinalizedHeaderGap', 'HeaderNotFinalized', 'BlockBodyHashTreeRootFailed', 'HeaderHashTreeRootFailed', 'SyncCommitteeHashTreeRootFailed', 'SigningRootHashTreeRootFailed', 'ForkDataHashTreeRootFailed', 'ExpectedFinalizedHeaderNotStored', 'BLSPreparePublicKeysFailed', 'BLSVerificationFailed', 'InvalidUpdateSlot', 'InvalidSyncCommitteeUpdate', 'ExecutionHeaderTooFarBehind', 'ExecutionHeaderSkippedBlock', 'Halted'];
166
+ EthereumSystem: ['LocationConversionFailed', 'AgentAlreadyCreated', 'NoAgent', 'ChannelAlreadyCreated', 'NoChannel', 'UnsupportedLocationVersion', 'InvalidLocation', 'Send', 'InvalidTokenTransferFees', 'InvalidPricingParameters', 'InvalidUpgradeParameters'];
167
+ EthereumSystemV2: ['LocationReanchorFailed', 'LocationConversionFailed', 'UnsupportedLocationVersion', 'Send', 'InvalidUpgradeParameters'];
168
+ EthereumInboundQueueV2: ['InvalidGateway', 'InvalidMessage', 'InvalidNonce', 'InvalidNetwork', 'Halted', 'FeesNotMet', 'Unreachable', 'SendFailure', 'InvalidAsset', 'CannotReanchor', 'Verification'];
169
+ EthereumOutboundQueueV2: ['MessageTooLarge', 'Halted', 'InvalidChannel', 'InvalidEnvelope', 'Verification', 'InvalidGateway', 'InvalidPendingNonce', 'RewardPaymentFailed'];
170
+ MessageQueue: ['NotReapable', 'NoPage', 'NoMessage', 'AlreadyProcessed', 'Queued', 'InsufficientWeight', 'TemporarilyUnprocessable', 'QueuePaused', 'RecursiveDisallowed'];
171
+ };
172
+ constants: {
173
+ System: ['BlockWeights', 'BlockLength', 'BlockHashCount', 'DbWeight', 'Version', 'SS58Prefix'];
174
+ ParachainSystem: ['SelfParaId'];
175
+ Timestamp: ['MinimumPeriod'];
176
+ Balances: ['ExistentialDeposit', 'MaxLocks', 'MaxReserves', 'MaxFreezes'];
177
+ TransactionPayment: ['OperationalFeeMultiplier'];
178
+ CollatorSelection: ['PotId', 'MaxCandidates', 'MinEligibleCollators', 'MaxInvulnerables', 'KickThreshold', 'pot_account'];
179
+ Session: ['KeyDeposit'];
180
+ Aura: ['SlotDuration'];
181
+ XcmpQueue: ['MaxInboundSuspended', 'MaxActiveOutboundChannels', 'MaxPageSize'];
182
+ PolkadotXcm: ['UniversalLocation', 'AdvertisedXcmVersion', 'MaxLockers', 'MaxRemoteLockConsumers'];
183
+ Utility: ['batched_calls_limit'];
184
+ Multisig: ['DepositBase', 'DepositFactor', 'MaxSignatories'];
185
+ Proxy: ['ProxyDepositBase', 'ProxyDepositFactor', 'MaxProxies', 'MaxPending', 'AnnouncementDepositBase', 'AnnouncementDepositFactor'];
186
+ BridgeKusamaGrandpa: ['MaxFreeHeadersPerBlock', 'FreeHeadersInterval', 'HeadersToKeep'];
187
+ BridgeKusamaParachains: ['ParasPalletName', 'HeadsToKeep', 'MaxParaHeadDataSize'];
188
+ XcmOverBridgeHubKusama: ['BridgedNetwork', 'BridgeDeposit'];
189
+ EthereumInboundQueue: ['GatewayAddress'];
190
+ EthereumOutboundQueue: ['Decimals', 'MaxMessagePayloadSize', 'MaxMessagesPerBlock'];
191
+ EthereumBeaconClient: ['ForkVersions', 'FreeHeadersInterval'];
192
+ EthereumSystem: ['TreasuryAccount', 'InboundDeliveryCost'];
193
+ EthereumInboundQueueV2: ['GatewayAddress', 'DefaultRewardKind'];
194
+ EthereumOutboundQueueV2: ['MaxMessagePayloadSize', 'MaxMessagesPerBlock', 'GatewayAddress', 'DefaultRewardKind'];
195
+ MessageQueue: ['HeapSize', 'MaxStale', 'ServiceWeight', 'IdleMaxServiceWeight'];
196
+ };
197
+ viewFns: {
198
+ Proxy: ['check_permissions', 'is_superset'];
199
+ };
200
+ apis: {
201
+ AuraApi: ['slot_duration', 'authorities'];
202
+ RelayParentOffsetApi: ['relay_parent_offset'];
203
+ AuraUnincludedSegmentApi: ['can_build_upon'];
204
+ Core: ['version', 'execute_block', 'initialize_block'];
205
+ Metadata: ['metadata', 'metadata_at_version', 'metadata_versions'];
206
+ BlockBuilder: ['apply_extrinsic', 'finalize_block', 'inherent_extrinsics', 'check_inherents'];
207
+ TaggedTransactionQueue: ['validate_transaction'];
208
+ OffchainWorkerApi: ['offchain_worker'];
209
+ SessionKeys: ['generate_session_keys', 'decode_session_keys'];
210
+ RuntimeViewFunction: ['execute_view_function'];
211
+ AccountNonceApi: ['account_nonce'];
212
+ TransactionPaymentApi: ['query_info', 'query_fee_details', 'query_weight_to_fee', 'query_length_to_fee'];
213
+ TransactionPaymentCallApi: ['query_call_info', 'query_call_fee_details', 'query_weight_to_fee', 'query_length_to_fee'];
214
+ XcmPaymentApi: ['query_acceptable_payment_assets', 'query_xcm_weight', 'query_weight_to_asset_fee', 'query_delivery_fees'];
215
+ DryRunApi: ['dry_run_call', 'dry_run_xcm'];
216
+ LocationToAccountApi: ['convert_location'];
217
+ TrustedQueryApi: ['is_trusted_reserve', 'is_trusted_teleporter'];
218
+ AuthorizedAliasersApi: ['authorized_aliasers', 'is_authorized_alias'];
219
+ CollectCollationInfo: ['collect_collation_info'];
220
+ GenesisBuilder: ['build_state', 'get_preset', 'preset_names'];
221
+ KusamaFinalityApi: ['best_finalized', 'free_headers_interval', 'synced_headers_grandpa_info'];
222
+ BridgeHubKusamaFinalityApi: ['best_finalized', 'free_headers_interval'];
223
+ FromBridgeHubKusamaInboundLaneApi: ['message_details'];
224
+ ToBridgeHubKusamaOutboundLaneApi: ['message_details'];
225
+ OutboundQueueApi: ['prove_message', 'calculate_fee'];
226
+ OutboundQueueV2Api: ['prove_message'];
227
+ InboundQueueV2Api: ['is_message_relayed'];
228
+ ControlApi: ['agent_id'];
229
+ ControlV2Api: ['agent_id'];
230
+ GetParachainInfo: ['parachain_id'];
231
+ };
232
+ };
233
+ export type BridgeHubWhitelistEntry = PalletKey | `query.${NestedKey<AllInteractions['storage']>}` | `tx.${NestedKey<AllInteractions['tx']>}` | `event.${NestedKey<AllInteractions['events']>}` | `error.${NestedKey<AllInteractions['errors']>}` | `const.${NestedKey<AllInteractions['constants']>}` | `view.${NestedKey<AllInteractions['viewFns']>}` | `api.${NestedKey<AllInteractions['apis']>}`;
234
+ type PalletKey = `*.${({
235
+ [K in keyof AllInteractions]: K extends 'apis' ? never : keyof AllInteractions[K];
236
+ })[keyof AllInteractions]}`;
237
+ type NestedKey<D extends Record<string, string[]>> = "*" | {
238
+ [P in keyof D & string]: `${P}.*` | `${P}.${D[P][number]}`;
239
+ }[keyof D & string];