123456import '@polkadot/api-base/types/calls';78import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';9import type { Bytes, Null, Option, Result, U256, Vec, bool, u256, u64 } 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 { BlockV2, EthReceiptV3, EthTransactionStatus, TransactionV2 } from '@polkadot/types/interfaces/eth';16import type { EvmAccount, EvmCallInfo, EvmCreateInfo } from '@polkadot/types/interfaces/evm';17import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';18import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';19import type { AccountId, Block, H160, H256, Header, Index, KeyTypeId, Permill, SlotDuration } from '@polkadot/types/interfaces/runtime';20import type { RuntimeVersion } from '@polkadot/types/interfaces/state';21import type { ApplyExtrinsicResult, DispatchError } 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 ethereumRuntimeRPCApi: {122 123124125 accountBasic: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<EvmAccount>>;126 127128129 accountCodeAt: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<Bytes>>;130 131132133 author: AugmentedCall<ApiType, () => Observable<H160>>;134 135136137 call: AugmentedCall<ApiType, (from: H160 | string | Uint8Array, to: H160 | string | Uint8Array, data: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: U256 | AnyNumber | Uint8Array, maxFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber, estimate: bool | boolean | Uint8Array, accessList: Option<Vec<ITuple<[H160, Vec<H256>]>>> | null | Uint8Array | Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => Observable<Result<EvmCallInfo, DispatchError>>>;138 139140141 chainId: AugmentedCall<ApiType, () => Observable<u64>>;142 143144145 create: AugmentedCall<ApiType, (from: H160 | string | Uint8Array, data: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: U256 | AnyNumber | Uint8Array, maxFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber, estimate: bool | boolean | Uint8Array, accessList: Option<Vec<ITuple<[H160, Vec<H256>]>>> | null | Uint8Array | Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => Observable<Result<EvmCreateInfo, DispatchError>>>;146 147148149 currentAll: AugmentedCall<ApiType, () => Observable<ITuple<[Option<BlockV2>, Option<Vec<EthReceiptV3>>, Option<Vec<EthTransactionStatus>>]>>>;150 151152153 currentBlock: AugmentedCall<ApiType, () => Observable<BlockV2>>;154 155156157 currentReceipts: AugmentedCall<ApiType, () => Observable<Option<Vec<EthReceiptV3>>>>;158 159160161 currentTransactionStatuses: AugmentedCall<ApiType, () => Observable<Option<Vec<EthTransactionStatus>>>>;162 163164165 elasticity: AugmentedCall<ApiType, () => Observable<Option<Permill>>>;166 167168169 extrinsicFilter: AugmentedCall<ApiType, (xts: Vec<Extrinsic> | (Extrinsic | IExtrinsic | string | Uint8Array)[]) => Observable<Vec<TransactionV2>>>;170 171172173 gasPrice: AugmentedCall<ApiType, () => Observable<u256>>;174 175176177 storageAt: AugmentedCall<ApiType, (address: H160 | string | Uint8Array, index: u256 | AnyNumber | Uint8Array) => Observable<H256>>;178 179180181 [key: string]: DecoratedCallBase<ApiType>;182 };183 184 metadata: {185 186187188 metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;189 190191192 [key: string]: DecoratedCallBase<ApiType>;193 };194 195 offchainWorkerApi: {196 197198199 offchainWorker: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;200 201202203 [key: string]: DecoratedCallBase<ApiType>;204 };205 206 sessionKeys: {207 208209210 decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;211 212213214 generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;215 216217218 [key: string]: DecoratedCallBase<ApiType>;219 };220 221 taggedTransactionQueue: {222 223224225 validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;226 227228229 [key: string]: DecoratedCallBase<ApiType>;230 };231 } 232}