import { BlockInfo, SystemEvent as SystemEvent$1 } from '@polkadot-api/observable-client'; import { HexString, OpaqueKeyHash, SizedHex, Enum, BlockHeader } from '@polkadot-api/substrate-bindings'; import { ChainSpecData } from '@polkadot-api/substrate-client'; import { Observable } from 'rxjs'; import { CompatibilityLevel } from '@polkadot-api/metadata-compatibility'; import { DescriptorValues } from '@polkadot-api/codegen'; import { TxCreator, ArgsForCreator, CreatorSpecs } from '@polkadot-api/tx-creator'; type PlainDescriptor = { _type?: T; }; type StorageDescriptor, T, Optional extends true | false, Opaque extends string> = { _type: T; _args: Args; _optional: Optional; _Opaque: Opaque; }; type TxDescriptor = { ___: Args; }; type RuntimeDescriptor, T> = [Args, T]; type DescriptorEntry = Record>; type PalletsTypedef>, Tx extends DescriptorEntry>, Ev extends DescriptorEntry>, Err extends DescriptorEntry>, Ct extends DescriptorEntry>, Vw extends DescriptorEntry>> = { __storage: St; __tx: Tx; __event: Ev; __error: Err; __const: Ct; __view: Vw; }; type ApisTypedef>> = T; type ChainDefinition = { descriptors: Promise & { pallets: PalletsTypedef; apis: ApisTypedef; }; extensions: Record; requiredExtensions: PlainDescriptor; metadataTypes: Promise; getMetadata: () => Promise; genesis: HexString | undefined; }; type BuildTuple> = R["length"] extends L ? R : BuildTuple; type UnwrapFixedSizeArray> = T extends [] | [any, ...any[]] ? T : T extends FixedSizeArray ? number extends L ? T : BuildTuple : T; type ApplyOpaque, Opaque> = { [K in keyof Key]: K extends Opaque ? OpaqueKeyHash : Key[K]; }; type ExtractStorage>> = { [K in keyof T]: { [KK in keyof T[K]]: T[K][KK] extends StorageDescriptor ? { KeyArgs: UnwrapFixedSizeArray; KeyArgsOut: ApplyOpaque, Opaque>; Value: Value; IsOptional: Optional; } : unknown; }; }; type ExtractTx>> = { [K in keyof T]: { [KK in keyof T[K]]: T[K][KK] extends TxDescriptor ? Args : unknown; }; }; type ExtractPlain>> = { [K in keyof T]: { [KK in keyof T[K]]: T[K][KK] extends PlainDescriptor ? Value : unknown; }; }; type ExtractRuntime>> = { [K in keyof T]: { [KK in keyof T[K]]: T[K][KK] extends RuntimeDescriptor ? { Args: Args; Value: Value; } : unknown; }; }; type ApisFromDef>> = ExtractRuntime; type QueryFromPalletsDef> = ExtractStorage; type TxFromPalletsDef> = ExtractTx; type EventsFromPalletsDef> = ExtractPlain; type ErrorsFromPalletsDef> = ExtractPlain; type ConstFromPalletsDef> = ExtractPlain; type ViewFnsFromPalletsDef> = ExtractRuntime; type CompatHelper = { level: CompatibilityLevel; isCompatible: (from?: CompatibilityLevel) => boolean; isValueCompatible: (dest: T) => boolean; }; type ArgsValueCompatHelper = { args: CompatHelper; value: CompatHelper; isCompatible: (from?: CompatibilityLevel) => boolean; }; type ConstantEntry = { /** * Constants are simple key-value structures found in the runtime metadata. * * @returns Promise that will resolve in the value of the constant. */ (options?: PullOptions): Promise; }; type EventPhase = { type: "ApplyExtrinsic"; value: number; } | { type: "Finalization"; } | { type: "Initialization"; }; type SystemEvent = { phase: EventPhase; event: { type: string; value: { type: string; value: any; }; }; topics: Array>; }; type PalletEvent = { original: SystemEvent; payload: T; }; type EvClient = { /** * Fetch (Promise-based) all events (matching the event kind chosen) available * in the specific block. * * @param blockHash Block hash to get the events from. */ get: (blockHash: HexString) => Promise>>; /** * Multicast and stateful Observable watching for new events (matching the * event kind chosen) in the `finalized` blocks. */ watch: () => Observable<{ block: BlockInfo; events: PalletEvent[]; }>; /** * Observable that watches the best-block chain and emits events that describe * how the status changes. * * - It will emit `type: new` for new blocks in the best chain, with their * events. The order is consistent in increasing block number. * - It will emit `type: drop` for all the blocks, and their events, that * dropped from best-block chain after a reorg. The order is consistent in * reverse block number (emitting first the newer blocks to be removed) * - It will emit `type: finalized` for all the blocks, and their events, that * became finalized. * * It will first emit `new` events, then `drop` events, then `finalized` * events. */ watchBest: () => Observable<{ type: "new" | "drop" | "finalized"; block: BlockInfo; events: PalletEvent[]; }>; /** * Filter a bunch of `SystemEvent` and return the decoded `payload` of every * of them. * * @param collection Array of `SystemEvent` to filter. */ filter: (collection: SystemEvent[]) => Array>; }; type WithCallOptions$2> = Args["length"] extends 0 ? [options?: PullOptions] : [...args: Args, options?: PullOptions]; type RuntimeCall, Payload> = { /** * Get `Payload` (Promise-based) for the runtime call. * * @param args All keys needed for that runtime call. * At the end, optionally set which block to target (latest * known finalized is the default) and an AbortSignal. */ (...args: WithCallOptions$2): Promise; }; type WithCallOptions$1> = [ ...args: Args, options?: PullOptions ]; type WithWatchOptions> = [ ...args: Args, options?: { at: "best"; } ]; type PossibleParents> = A extends [...infer Left, any] ? Left | PossibleParents : ArrayPossibleParents; type AllPermutations> = PossibleParents | A; type ArrayPossibleParents, Count extends Array = [], R = []> = A extends Array & { length: infer L; } ? number extends L ? Array : L extends Count["length"] ? R : ArrayPossibleParents : never; type GetKey> = { /** * Get the storage-key for this storage entry. * * @param args All keys needed for that storage entry. * @returns Promise that will resolve the hexadecimal value of the * storage key. */ (...args: AllPermutations): Promise; }; type StorageEntryWithoutKeys = { /** * Get `Payload` (Promise-based) for the storage entry. * * @param options Optionally set which block to target (latest known * finalized is the default) and an AbortSignal. */ getValue: (options?: PullOptions) => Promise; /** * Watch changes in `Payload` (observable-based) for the storage entry. * * @param options Optionally choose which block to watch changes, `best` * or `finalized` (default) */ watchValue: (options?: { at: "best" | "finalized"; }) => Observable<{ block: BlockInfo; value: Payload; }>; getKey: GetKey<[]>; }; type StorageEntryWithKeys, Payload, ArgsOut extends Array> = { /** * Get `Payload` (Promise-based) for the storage entry with a specific set of * `Args`. * * @param args All keys needed for that storage entry. * At the end, optionally set which block to target (latest * known finalized is the default) and an AbortSignal. */ getValue: (...args: [...WithCallOptions$1]) => Promise; /** * Watch changes in `Payload` (observable-based) for the storage entry. * * @param args All keys needed for that storage entry. * At the end, optionally choose which block to watch changes, * `best` or `finalized` (default). */ watchValue: (...args: [...Args, options?: { at: "best" | "finalized"; }]) => Observable<{ block: BlockInfo; value: Payload; }>; /** * Get an Array of `Payload` (Promise-based) for the storage entry with * several sets of `Args`. * * @param keys Array of sets of keys needed for the storage entry. * @param options Optionally set which block to target (latest known * finalized is the default) and an AbortSignal. */ getValues: (keys: Array<[...Args]>, options?: PullOptions) => Promise>; /** * Get an Array of `Payload` (Promise-based) for the storage entry with a * subset of `Args`. * * @param args Subset of keys needed for the storage entry. * At the end, optionally set which block to target (latest * known finalized is the default) and an AbortSignal. * @example * * // this is a query with 3 keys * typedApi.query.Pallet.Query.getEntries({ at: "best" }) // no keys * typedApi.query.Pallet.Query.getEntries(arg1, { at: "finalized" }) // 1/3 keys * typedApi.query.Pallet.Query.getEntries(arg1, arg2, { at: "0x12345678" }) // 2/3 keys * */ getEntries: (...args: WithCallOptions$1>) => Promise; }>>; /** * Watch changes (Observable-based) for the storage entries with a subset of * `Args`. * * @param args Subset of keys needed for the storage entry. * At the end, optionally choose which block to watch changes, * `best` or `finalized` (default) * By default watches changes against the finalized block. * When watching changes against the "best" block, this API * gratiously handles the re-orgs and provides the deltas * based on the latest emission. * The observed value contains the following properties: * - `block`: the block in where the `deltas` took place - * `deltas`: `null` indicates that nothing has changed from * the latest emission. * If the value is not `null` then the `deleted` and * `upserted` * properties indicate the entries that have changed. * - `entries`: it's an immutable data-structure with the * latest entries. * @example * * typedApi.query.Staking.Nominators.watchEntries() * typedApi.query.Staking.Nominators.watchEntries({ at: "best" }) * */ watchEntries: (...args: WithWatchOptions>) => Observable<{ block: BlockInfo; deltas: null | { deleted: Array<{ args: ArgsOut; value: NonNullable; }>; upserted: Array<{ args: ArgsOut; value: NonNullable; }>; }; entries: Array<{ args: ArgsOut; value: NonNullable; }>; }>; getKey: GetKey; }; type StorageEntry, ArgsOut extends Array, Payload> = Args extends [] ? StorageEntryWithoutKeys : StorageEntryWithKeys; type TxEvent = TxCreated | TxBroadcasted | TxInBestBlock | TxNotInBestBlock | TxFinalized; type TxCreated = { type: "created"; txHash: HexString; }; type TxBroadcasted = { type: "broadcasted"; txHash: HexString; }; type TxInBestBlock = { type: "inBestBlock"; txHash: HexString; } & TxEventsPayload; type TxNotInBestBlock = { type: "notInBestBlock"; txHash: HexString; }; type FlattenedEvent = SystemEvent$1 & SystemEvent$1["event"]; type TxEventsPayload = { /** * Verify if extrinsic was successful, i.e. check if `System.ExtrinsicSuccess` * is found. */ ok: boolean; /** * Array of all events emitted by the tx. Ordered as they are emitted * on-chain. */ events: Array; /** * Block information where the tx is found. `hash` of the block, `number` of * the block, `index` of the tx in the block. */ block: { hash: string; number: number; index: number; }; } & ({ ok: true; /** * Dispatch Error found at `System.ExtrinsicFailed` event. */ dispatchError?: undefined; } | { ok: false; /** * Dispatch Error found at `System.ExtrinsicFailed` event. */ dispatchError: { type: string; value: unknown; }; }); type TxFinalized = { type: "finalized"; txHash: HexString; } & TxEventsPayload; type TxFinalizedPayload = { txHash: HexString; } & TxEventsPayload; type UncoveredRequiredExtensions = Exclude[number]["id"] | undefined>; type UncoveredRequiredExtensionArgs = { [K in UncoveredRequiredExtensions]: EC["extensions"][K]; }; type Optionalize = IsAny extends true ? { customSignedExtensions?: T; } : {} extends T ? { customSignedExtensions?: T; } : { customSignedExtensions: T; }; type TxCreatorOptions = Simplify & Optionalize>>>; type IsAny = 0 extends 1 & T ? true : false; type OptionalizeArgs = IsAny extends true ? [txOptions?: T] : {} extends T ? [txOptions?: T] : [txOptions: T]; type TxCreatorOptionsArg = OptionalizeArgs>; type PaymentInfo = { weight: { ref_time: bigint; proof_size: bigint; }; class: Enum<{ Normal: undefined; Operational: undefined; Mandatory: undefined; }>; partial_fee: bigint; }; type ExtensionConstraints = { extensions: Record; requiredExtensions: PlainDescriptor; }; type Transaction = { /** * Creates a signed transaction asynchronously. If the creator fails (or the * user cancels the signature) it'll throw an error. * * @param creator Transaction creator. * @param txOptions Transaction creator options. * @returns Encoded `SignedExtrinsic` ready for broadcasting. */ create(creator: T, ...txOptions: TxCreatorOptionsArg): Promise; /** * Observable-based all-in-one transaction submitting. It will create, * broadcast, and track the transaction. The observable is singlecast, i.e. * it will create, broadcast, etc at every subscription. It will complete once * the transaction is found in a `finalizedBlock`. * * @param creator Transaction creator. * @param txOptions Transaction creator options. * @returns Observable to the transaction. */ createSubmitAndWatch(creator: T, ...txOptions: TxCreatorOptionsArg): Observable; /** * Creates the transaction, broadcasts it, and tracks the transaction. The * promise will resolve as soon as the transaction in found in a * `finalizedBlock`. If the creator fails (or the user cancels the signature), * or the transaction becomes invalid it'll throw an error. * * @param creator Transaction creator. * @param txOptions Transaction creator options. * @returns Finalized transaction information. */ createAndSubmit(creator: T, ...txOptions: TxCreatorOptionsArg): Promise; /** * SCALE-encoded callData of the transaction. * * @returns Promise resolving in the encoded data. */ getEncodedData(): Promise; /** * SCALE-encoded Bare (aka Unsigned) transaction ready to be broadcasted. * * @returns Promise resolving in a Bare transaction (it falls back to an * unsigned transaction if only v4 is available) */ getBareTx(): Promise; /** * Estimate fees against the latest known `finalizedBlock` * * @param creator Transaction creator. * @param txOptions Transaction creator options. * @returns Fees in fundamental units. */ getEstimatedFees(creator: T, ...txOptions: TxCreatorOptionsArg): Promise; /** * Payment info against the latest known `finalizedBlock` * * @param creator Transaction creator. * @param txOptions Transaction creator options. * @returns PaymentInfo for the given transaction (weight, estimated fees * and class). */ getPaymentInfo(creator: T, ...txOptions: TxCreatorOptionsArg): Promise; /** * PAPI way of expressing an extrinsic with arguments. * It's useful to pass as a parameter to extrinsics that accept calls. */ decodedCall: TxCallData; }; type TxEntry = { /** * Synchronously create the transaction object ready to sign, submit, * estimate fees, etc. * * @param args All parameters required by the transaction. * @returns Transaction object. */ (...args: Arg extends undefined ? [] : [data: Arg]): Transaction; }; type OfflineTxEntry = (input: Arg) => { /** * Creates a signed transaction asynchronously. If the creator fails (or the * user cancels the signature) it'll throw an error. * * @param creator Transaction creator. * @param txOptions Transaction creator options. * @returns Encoded `SignedExtrinsic` ready for broadcasting. */ create: (creator: T, txOptions: TxCreatorOptions & { nonce: number; }) => Promise; /** * SCALE-encoded callData of the transaction. */ encodedData: Uint8Array; /** * PAPI way of expressing an extrinsic with arguments. * It's useful to pass as a parameter to extrinsics that accept calls. */ decodedCall: TxCallData; }; type TxFromBinary = { /** * Asynchronously create the transaction object from a binary call data ready * to sign, submit, estimate fees, etc. * * @param callData SCALE-encoded call data. * @returns Transaction object. */ (callData: Uint8Array, options?: PullOptions): Promise>; }; type Simplify = { [K in keyof T]: T[K]; } & {}; type WithCallOptions> = Args["length"] extends 0 ? [options?: PullOptions] : [...args: Args, options?: PullOptions]; type ViewFn, Payload> = { /** * Get `Payload` (Promise-based) for the view function. * * @param args All keys needed for that runtime call. * At the end, optionally set which block to target (latest * known finalized is the default) and an AbortSignal. */ (...args: WithCallOptions): Promise; }; type StorageApi; KeyArgsOut: Array; Value: any; IsOptional: false | true; } | unknown>>> = { [K in keyof A]: { [KK in keyof A[K]]: A[K][KK] extends { KeyArgs: Array; KeyArgsOut: Array; Value: any; IsOptional: false | true; } ? StorageEntry : StorageEntry, Array, unknown>; }; }; type RuntimeCallsApi>> = { [K in keyof A]: { [KK in keyof A[K]]: A[K][KK] extends { Args: Array; Value: any; } ? RuntimeCall : RuntimeCall; }; }; type ViewFnApi>> = { [K in keyof A]: { [KK in keyof A[K]]: A[K][KK] extends { Args: Array; Value: any; } ? ViewFn : ViewFn; }; }; type TxApi>, EC extends ExtensionConstraints> = { [K in keyof A]: { [KK in keyof A[K]]: A[K][KK] extends {} | undefined ? TxEntry : TxEntry; }; }; type OfflineTxApi>, EC extends ExtensionConstraints> = { [K in keyof A]: { [KK in keyof A[K]]: A[K][KK] extends {} | undefined ? OfflineTxEntry : unknown; }; }; type EvApi>> = { [K in keyof A]: { [KK in keyof A[K]]: EvClient; }; }; type ConstApi>> = { [K in keyof A]: { [KK in keyof A[K]]: ConstantEntry; }; }; type OfflineConstApi>> = { [K in keyof A]: { [KK in keyof A[K]]: A[K][KK]; }; }; type CompatHelperApi>> = { [K in keyof A]: { [KK in keyof A[K]]: A[K][KK] extends {} | undefined ? CompatHelper : unknown; }; }; type InOutCompatHelperApi>> = { [K in keyof A]: { [KK in keyof A[K]]: A[K][KK] extends { Args: Array; Value: any; } ? ArgsValueCompatHelper : unknown; }; }; type QueryCompatHelperApi>> = { [K in keyof A]: { [KK in keyof A[K]]: A[K][KK] extends { KeyArgs: Array; Value: any; } ? ArgsValueCompatHelper : unknown; }; }; type SyncTxApi>> = { [K in keyof A]: { [KK in keyof A[K]]: A[K][KK] extends {} | undefined ? { getEncodedData: (args: A[K][KK]) => Uint8Array; } : unknown; }; }; type StaticApis = { id: HexString; decodeCallData: (callData: Uint8Array) => { pallet: string; name: string; input: any; }; constants: ConstFromPalletsDef; tx: SyncTxApi>; compat: Safe extends true ? { tx: CompatHelperApi>; constants: CompatHelperApi>; apis: InOutCompatHelperApi>; view: InOutCompatHelperApi>; query: QueryCompatHelperApi>; event: CompatHelperApi>; } : unknown; }; type TypedApi = { tx: TxApi, D>; constants: ConstApi>; apis: RuntimeCallsApi>; view: ViewFnApi>; query: StorageApi>; event: EvApi>; txFromCallData: TxFromBinary; getStaticApis: (options?: PullOptions) => Promise>; }; type OfflineApi = { constants: OfflineConstApi>; tx: OfflineTxApi, D>; }; type TransactionValidityError = (D["descriptors"]["apis"]["TaggedTransactionQueue"]["validate_transaction"][1] & { success: false; })["value"]; interface PolkadotClient { /** * Retrieve the ChainSpecData as it comes from the [JSON-RPC * spec](https://paritytech.github.io/json-rpc-interface-spec/api/chainSpec.html) */ getChainSpecData: () => Promise; /** * Retrieves the most modern stable version of the metadata for a given block. * * @param hash Block hash of the target block. * @returns Observable that emits the most modern stable version of the * metadata, and immediately completes. */ getMetadata$: (hash: HexString) => Observable; /** * Retrieves the most modern stable version of the metadata for a given block. * * @param hash Block hash of the target block. * @param signal Signal to abort promise. * @returns An abortable Promise that resolves into the most modern * stable version of the metadata. */ getMetadata: (hash: HexString, signal?: AbortSignal) => Promise; /** * Observable that emits `BlockInfo` for every new finalized block. It's a * multicast and stateful observable, that will synchronously replay its * latest known state. */ finalizedBlock$: Observable; /** * @returns Latest known finalized block. */ getFinalizedBlock: () => Promise; /** * Observable that emits an Array of `BlockInfo`, being the first element the * latest known best block, and the last element the latest known finalized * block. It's a multicast and stateful observable, that will synchronously * replay its latest known state. This array is an immutable data structure; * i.e. a new array is emitted at every event but the reference to its * children are stable if the children didn't change. * * Note that some blocks might not get reported, e.g. if they become finalized * immediately without being part of the best block chain. */ bestBlocks$: Observable; /** * @returns Array of `BlockInfo`, being the first element the latest * known best block, and the last element the latest known * finalized block. */ getBestBlocks: () => Promise; /** * Observable of new blocks that have been discovered by the client. * There is the strong guarantee that for every block emitted its parent has * been emitted already in the subscription (except the first block). * After subscription, the latest finalized block and all of its known * descendants will be emitted synchronously. * The Observable will complete if the continuity of the blocks cannot be * guaranteed. */ blocks$: Observable; /** * Ensures that a block stays available, even after it has been finalized and * no operations are running for that block. * * @returns A callback function to release the block. */ hodlBlock: (blockHash: HexString) => () => void; /** * Get Block Body (Observable-based) * * @param hash Block hash of the target block. * @returns Observable to get a block body. There'll be just one event * with the payload and the observable will complete. */ getBlockBody$: (hash: HexString) => Observable; /** * Get Block Body (Promise-based) * * @param hash Block hash of the target block. * @param signal Signal to abort promise. * @returns Block body. */ getBlockBody: (hash: HexString, signal?: AbortSignal) => Promise; /** * Get Block Header (Observable-based) * * @param hash Block hash of the target block. * @returns Observable to get a block header. There'll be just one event * with the payload and the observable will complete. */ getBlockHeader$: (hash: HexString) => Observable; /** * Get Block Header (Promise-based) * * @param hash Block hash of the target block. * @param signal Signal to abort promise. * @returns Block header. */ getBlockHeader: (hash: HexString, signal?: AbortSignal) => Promise; /** * Broadcasts a transaction (Promise-based). The promise will resolve when the * transaction is found in a finalized block; and will reject if the * transaction is invalid and can't be broadcasted, or if it is deemed invalid * later on. * * @param transaction SCALE-encoded tx to broadcast. * @param at It can be a block hash, `"finalized"`, or `"best"`. * That block will be used to verify the validity of * the tx. */ submit: (transaction: Uint8Array, at?: HexString) => Promise; /** * Broadcasts a transaction and returns an Observable. The observable will * complete as soon as the transaction is in a finalized block. See * https://papi.how/typed/tx#signsubmitandwatch to learn about all possible * events. * * @param transaction SCALE-encoded tx to broadcast. * @param at It can be a block hash, `"finalized"`, or `"best"`. * That block will be used to verify the validity of * the tx. */ submitAndWatch: (transaction: Uint8Array, at?: HexString) => Observable; /** * Returns an instance of a `TypedApi`. * * @param descriptors Pass descriptors from `@polkadot-api/descriptors` * generated by `papi` CLI. */ getTypedApi: (descriptors: D) => TypedApi; /** * Returns an instance of a `UnsafeApi`. * * Note that this method is only meant for advanced users that really know * what are they doing. This API does not provide any runtime compatibility * checks protection and the consumer should implement them on their own. */ getUnsafeApi: () => TypedApi; /** * Returns a Promise that resolves into the encoded value of a storage entry * or `null` if the key doesn't have a corresponding value. * * @param storageKey Either one of the well-known substrate storage keys * or an hexadecimal storage key. */ rawQuery: (storageKey: HexString | string, options?: PullOptions) => Promise; /** * This will `unfollow` the provider, disconnect and error every subscription. * After calling it nothing can be done with the client. */ destroy: () => void; /** * This API is meant as an "escape hatch" to allow access to debug endpoints * such as `system_version`, and other useful endpoints that are not spec * compliant. * * @example * * const systemVersion = await client._request("system_version", []) * const myFancyThhing = await client._request< * { value: string }, * [id: number] * >("very_fancy", [1714]) * * Unstable: The stability of this API is not guaranteed across minor versions. * */ _request: = any[]>(method: string, params: Params) => Promise; /** * This API is meant as an "escape hatch" to allow access to subscription * endpoints * * Unstable: The stability of this API is not guaranteed across minor * versions. */ _subscribe: = any[]>(method: string, unsubscribeMethod: string, params: Params) => Observable; } type FixedSizeArray = Array & { length: L; }; type TxCallData = { type: string; value: { type: string; value: any; }; }; type PullOptions = Partial<{ /** * `at` could be a block-hash, `best`, or `finalized` (default) */ at: "best" | "finalized" | ({} & string); /** * `signal` allows you to abort an ongoing Promise. See [MDN * docs](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) for * more information */ signal: AbortSignal; }>; export type { ApisFromDef as A, ChainDefinition as C, DescriptorEntry as D, ErrorsFromPalletsDef as E, FixedSizeArray as F, OfflineApi as O, PolkadotClient as P, QueryFromPalletsDef as Q, RuntimeDescriptor as R, StorageDescriptor as S, TxDescriptor as T, ViewFnsFromPalletsDef as V, PlainDescriptor as a, ApisTypedef as b, ConstFromPalletsDef as c, EventPhase as d, EventsFromPalletsDef as e, PalletsTypedef as f, Transaction as g, TransactionValidityError as h, TxBroadcasted as i, TxCallData as j, TxCreated as k, TxEntry as l, TxEvent as m, TxEventsPayload as n, TxFinalized as o, TxFinalizedPayload as p, TxFromPalletsDef as q, TxInBestBlock as r, TxNotInBestBlock as s, TypedApi as t };