123456import '@polkadot/api-base/types/calls';78import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';9import type { Bytes, Null, Option, Vec, u32 } from '@polkadot/types-codec';10import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';11import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';12import type { BlockHash } from '@polkadot/types/interfaces/chain';13import type { AuthorityId } from '@polkadot/types/interfaces/consensus';14import type { CollationInfo } from '@polkadot/types/interfaces/cumulus';15import type { TransactionV2 } from '@polkadot/types/interfaces/eth';16import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';17import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';18import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';19import type { AccountId, Balance, Block, Header, Index, KeyTypeId, SlotDuration, Weight } from '@polkadot/types/interfaces/runtime';20import type { RuntimeVersion } from '@polkadot/types/interfaces/state';21import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';22import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';23import type { IExtrinsic, Observable } from '@polkadot/types/types';2425export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;26export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;2728declare module '@polkadot/api-base/types/calls' {29 interface AugmentedCalls<ApiType extends ApiTypes> {30 31 accountNonceApi: {32 333435 accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;36 373839 [key: string]: DecoratedCallBase<ApiType>;40 };41 42 auraApi: {43 444546 authorities: AugmentedCall<ApiType, () => Observable<Vec<AuthorityId>>>;47 484950 slotDuration: AugmentedCall<ApiType, () => Observable<SlotDuration>>;51 525354 [key: string]: DecoratedCallBase<ApiType>;55 };56 57 blockBuilder: {58 596061 applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;62 636465 checkInherents: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array, data: InherentData | { data?: any } | string | Uint8Array) => Observable<CheckInherentsResult>>;66 676869 finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;70 717273 inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;74 757677 [key: string]: DecoratedCallBase<ApiType>;78 };79 80 collectCollationInfo: {81 828384 collectCollationInfo: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<CollationInfo>>;85 868788 [key: string]: DecoratedCallBase<ApiType>;89 };90 91 convertTransactionRuntimeApi: {92 939495 convertTransaction: AugmentedCall<ApiType, (transaction: TransactionV2 | { Legacy: any } | { EIP2930: any } | { EIP1559: any } | string | Uint8Array) => Observable<Extrinsic>>;96 979899 [key: string]: DecoratedCallBase<ApiType>;100 };101 102 core: {103 104105106 executeBlock: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;107 108109110 initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;111 112113114 version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;115 116117118 [key: string]: DecoratedCallBase<ApiType>;119 };120 121 metadata: {122 123124125 metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;126 127128129 metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;130 131132133 metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;134 135136137 [key: string]: DecoratedCallBase<ApiType>;138 };139 140 offchainWorkerApi: {141 142143144 offchainWorker: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;145 146147148 [key: string]: DecoratedCallBase<ApiType>;149 };150 151 sessionKeys: {152 153154155 decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;156 157158159 generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;160 161162163 [key: string]: DecoratedCallBase<ApiType>;164 };165 166 taggedTransactionQueue: {167 168169170 validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;171 172173174 [key: string]: DecoratedCallBase<ApiType>;175 };176 177 transactionPaymentApi: {178 179180181 queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;182 183184185 queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;186 187188189 queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;190 191192193 queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;194 195196197 [key: string]: DecoratedCallBase<ApiType>;198 };199 } 200}