git.delta.rocks / unique-network / refs/commits / 218082ec0405

difftreelog

source

tests/src/interfaces/augment-api-runtime.ts10.7 KiBsourcehistory
1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34// import type lookup before we augment - in some environments5// this is required to allow for ambient/previous definitions6import '@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    /** 0xbc9d89904f5b923f/1 */31    accountNonceApi: {32      /**33       * The API to query account nonce (aka transaction index)34       **/35      accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;36      /**37       * Generic call38       **/39      [key: string]: DecoratedCallBase<ApiType>;40    };41    /** 0xdd718d5cc53262d4/1 */42    auraApi: {43      /**44       * Return the current set of authorities.45       **/46      authorities: AugmentedCall<ApiType, () => Observable<Vec<AuthorityId>>>;47      /**48       * Returns the slot duration for Aura.49       **/50      slotDuration: AugmentedCall<ApiType, () => Observable<SlotDuration>>;51      /**52       * Generic call53       **/54      [key: string]: DecoratedCallBase<ApiType>;55    };56    /** 0x40fe3ad401f8959a/6 */57    blockBuilder: {58      /**59       * Apply the given extrinsic.60       **/61      applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;62      /**63       * Check that the inherents are valid.64       **/65      checkInherents: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array, data: InherentData | { data?: any } | string | Uint8Array) => Observable<CheckInherentsResult>>;66      /**67       * Finish the current block.68       **/69      finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;70      /**71       * Generate inherent extrinsics.72       **/73      inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;74      /**75       * Generic call76       **/77      [key: string]: DecoratedCallBase<ApiType>;78    };79    /** 0xea93e3f16f3d6962/2 */80    collectCollationInfo: {81      /**82       * Collect information about a collation.83       **/84      collectCollationInfo: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<CollationInfo>>;85      /**86       * Generic call87       **/88      [key: string]: DecoratedCallBase<ApiType>;89    };90    /** 0xe65b00e46cedd0aa/2 */91    convertTransactionRuntimeApi: {92      /**93       * Converts an Ethereum-style transaction to Extrinsic94       **/95      convertTransaction: AugmentedCall<ApiType, (transaction: TransactionV2 | { Legacy: any } | { EIP2930: any } | { EIP1559: any } | string | Uint8Array) => Observable<Extrinsic>>;96      /**97       * Generic call98       **/99      [key: string]: DecoratedCallBase<ApiType>;100    };101    /** 0xdf6acb689907609b/4 */102    core: {103      /**104       * Execute the given block.105       **/106      executeBlock: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;107      /**108       * Initialize a block with the given header.109       **/110      initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;111      /**112       * Returns the version of the runtime.113       **/114      version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;115      /**116       * Generic call117       **/118      [key: string]: DecoratedCallBase<ApiType>;119    };120    /** 0x582211f65bb14b89/4 */121    ethereumRuntimeRPCApi: {122      /**123       * Returns pallet_evm::Accounts by address.124       **/125      accountBasic: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<EvmAccount>>;126      /**127       * For a given account address, returns pallet_evm::AccountCodes.128       **/129      accountCodeAt: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<Bytes>>;130      /**131       * Returns the converted FindAuthor::find_author authority id.132       **/133      author: AugmentedCall<ApiType, () => Observable<H160>>;134      /**135       * Returns a frame_ethereum::call response. If `estimate` is true,136       **/137      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      /**139       * Returns runtime defined pallet_evm::ChainId.140       **/141      chainId: AugmentedCall<ApiType, () => Observable<u64>>;142      /**143       * Returns a frame_ethereum::call response. If `estimate` is true,144       **/145      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      /**147       * Return all the current data for a block in a single runtime call.148       **/149      currentAll: AugmentedCall<ApiType, () => Observable<ITuple<[Option<BlockV2>, Option<Vec<EthReceiptV3>>, Option<Vec<EthTransactionStatus>>]>>>;150      /**151       * Return the current block.152       **/153      currentBlock: AugmentedCall<ApiType, () => Observable<BlockV2>>;154      /**155       * Return the current receipt.156       **/157      currentReceipts: AugmentedCall<ApiType, () => Observable<Option<Vec<EthReceiptV3>>>>;158      /**159       * Return the current transaction status.160       **/161      currentTransactionStatuses: AugmentedCall<ApiType, () => Observable<Option<Vec<EthTransactionStatus>>>>;162      /**163       * Return the elasticity multiplier.164       **/165      elasticity: AugmentedCall<ApiType, () => Observable<Option<Permill>>>;166      /**167       * Receives a `Vec<OpaqueExtrinsic>` and filters all the ethereum transactions.168       **/169      extrinsicFilter: AugmentedCall<ApiType, (xts: Vec<Extrinsic> | (Extrinsic | IExtrinsic | string | Uint8Array)[]) => Observable<Vec<TransactionV2>>>;170      /**171       * Returns FixedGasPrice::min_gas_price172       **/173      gasPrice: AugmentedCall<ApiType, () => Observable<u256>>;174      /**175       * For a given account address and index, returns pallet_evm::AccountStorages.176       **/177      storageAt: AugmentedCall<ApiType, (address: H160 | string | Uint8Array, index: u256 | AnyNumber | Uint8Array) => Observable<H256>>;178      /**179       * Generic call180       **/181      [key: string]: DecoratedCallBase<ApiType>;182    };183    /** 0x37e397fc7c91f5e4/1 */184    metadata: {185      /**186       * Returns the metadata of a runtime187       **/188      metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;189      /**190       * Generic call191       **/192      [key: string]: DecoratedCallBase<ApiType>;193    };194    /** 0xf78b278be53f454c/2 */195    offchainWorkerApi: {196      /**197       * Starts the off-chain task for given block header.198       **/199      offchainWorker: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;200      /**201       * Generic call202       **/203      [key: string]: DecoratedCallBase<ApiType>;204    };205    /** 0xab3c0572291feb8b/1 */206    sessionKeys: {207      /**208       * Decode the given public session keys.209       **/210      decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;211      /**212       * Generate a set of session keys with optionally using the given seed.213       **/214      generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;215      /**216       * Generic call217       **/218      [key: string]: DecoratedCallBase<ApiType>;219    };220    /** 0xd2bc9897eed08f15/3 */221    taggedTransactionQueue: {222      /**223       * Validate the transaction.224       **/225      validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;226      /**227       * Generic call228       **/229      [key: string]: DecoratedCallBase<ApiType>;230    };231  } // AugmentedCalls232} // declare module