git.delta.rocks / unique-network / refs/commits / 7af2e990ada5

difftreelog

source

tests/src/interfaces/augment-api-runtime.ts11.4 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, u32, 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 { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';20import type { AccountId, Block, H160, H256, Header, Index, KeyTypeId, Permill, SlotDuration } from '@polkadot/types/interfaces/runtime';21import type { RuntimeVersion } from '@polkadot/types/interfaces/state';22import type { ApplyExtrinsicResult, DispatchError } from '@polkadot/types/interfaces/system';23import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';24import type { IExtrinsic, Observable } from '@polkadot/types/types';2526export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;27export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;2829declare module '@polkadot/api-base/types/calls' {30  interface AugmentedCalls<ApiType extends ApiTypes> {31    /** 0xbc9d89904f5b923f/1 */32    accountNonceApi: {33      /**34       * The API to query account nonce (aka transaction index)35       **/36      accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;37      /**38       * Generic call39       **/40      [key: string]: DecoratedCallBase<ApiType>;41    };42    /** 0xdd718d5cc53262d4/1 */43    auraApi: {44      /**45       * Return the current set of authorities.46       **/47      authorities: AugmentedCall<ApiType, () => Observable<Vec<AuthorityId>>>;48      /**49       * Returns the slot duration for Aura.50       **/51      slotDuration: AugmentedCall<ApiType, () => Observable<SlotDuration>>;52      /**53       * Generic call54       **/55      [key: string]: DecoratedCallBase<ApiType>;56    };57    /** 0x40fe3ad401f8959a/6 */58    blockBuilder: {59      /**60       * Apply the given extrinsic.61       **/62      applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;63      /**64       * Check that the inherents are valid.65       **/66      checkInherents: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array, data: InherentData | { data?: any } | string | Uint8Array) => Observable<CheckInherentsResult>>;67      /**68       * Finish the current block.69       **/70      finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;71      /**72       * Generate inherent extrinsics.73       **/74      inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;75      /**76       * Generic call77       **/78      [key: string]: DecoratedCallBase<ApiType>;79    };80    /** 0xea93e3f16f3d6962/2 */81    collectCollationInfo: {82      /**83       * Collect information about a collation.84       **/85      collectCollationInfo: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<CollationInfo>>;86      /**87       * Generic call88       **/89      [key: string]: DecoratedCallBase<ApiType>;90    };91    /** 0xe65b00e46cedd0aa/2 */92    convertTransactionRuntimeApi: {93      /**94       * Converts an Ethereum-style transaction to Extrinsic95       **/96      convertTransaction: AugmentedCall<ApiType, (transaction: TransactionV2 | { Legacy: any } | { EIP2930: any } | { EIP1559: any } | string | Uint8Array) => Observable<Extrinsic>>;97      /**98       * Generic call99       **/100      [key: string]: DecoratedCallBase<ApiType>;101    };102    /** 0xdf6acb689907609b/4 */103    core: {104      /**105       * Execute the given block.106       **/107      executeBlock: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;108      /**109       * Initialize a block with the given header.110       **/111      initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;112      /**113       * Returns the version of the runtime.114       **/115      version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;116      /**117       * Generic call118       **/119      [key: string]: DecoratedCallBase<ApiType>;120    };121    /** 0x582211f65bb14b89/4 */122    ethereumRuntimeRPCApi: {123      /**124       * Returns pallet_evm::Accounts by address.125       **/126      accountBasic: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<EvmAccount>>;127      /**128       * For a given account address, returns pallet_evm::AccountCodes.129       **/130      accountCodeAt: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<Bytes>>;131      /**132       * Returns the converted FindAuthor::find_author authority id.133       **/134      author: AugmentedCall<ApiType, () => Observable<H160>>;135      /**136       * Returns a frame_ethereum::call response. If `estimate` is true,137       **/138      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>>>;139      /**140       * Returns runtime defined pallet_evm::ChainId.141       **/142      chainId: AugmentedCall<ApiType, () => Observable<u64>>;143      /**144       * Returns a frame_ethereum::call response. If `estimate` is true,145       **/146      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>>>;147      /**148       * Return all the current data for a block in a single runtime call.149       **/150      currentAll: AugmentedCall<ApiType, () => Observable<ITuple<[Option<BlockV2>, Option<Vec<EthReceiptV3>>, Option<Vec<EthTransactionStatus>>]>>>;151      /**152       * Return the current block.153       **/154      currentBlock: AugmentedCall<ApiType, () => Observable<BlockV2>>;155      /**156       * Return the current receipt.157       **/158      currentReceipts: AugmentedCall<ApiType, () => Observable<Option<Vec<EthReceiptV3>>>>;159      /**160       * Return the current transaction status.161       **/162      currentTransactionStatuses: AugmentedCall<ApiType, () => Observable<Option<Vec<EthTransactionStatus>>>>;163      /**164       * Return the elasticity multiplier.165       **/166      elasticity: AugmentedCall<ApiType, () => Observable<Option<Permill>>>;167      /**168       * Receives a `Vec<OpaqueExtrinsic>` and filters all the ethereum transactions.169       **/170      extrinsicFilter: AugmentedCall<ApiType, (xts: Vec<Extrinsic> | (Extrinsic | IExtrinsic | string | Uint8Array)[]) => Observable<Vec<TransactionV2>>>;171      /**172       * Returns FixedGasPrice::min_gas_price173       **/174      gasPrice: AugmentedCall<ApiType, () => Observable<u256>>;175      /**176       * For a given account address and index, returns pallet_evm::AccountStorages.177       **/178      storageAt: AugmentedCall<ApiType, (address: H160 | string | Uint8Array, index: u256 | AnyNumber | Uint8Array) => Observable<H256>>;179      /**180       * Generic call181       **/182      [key: string]: DecoratedCallBase<ApiType>;183    };184    /** 0x37e397fc7c91f5e4/1 */185    metadata: {186      /**187       * Returns the metadata of a runtime188       **/189      metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;190      /**191       * Generic call192       **/193      [key: string]: DecoratedCallBase<ApiType>;194    };195    /** 0xf78b278be53f454c/2 */196    offchainWorkerApi: {197      /**198       * Starts the off-chain task for given block header.199       **/200      offchainWorker: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;201      /**202       * Generic call203       **/204      [key: string]: DecoratedCallBase<ApiType>;205    };206    /** 0xab3c0572291feb8b/1 */207    sessionKeys: {208      /**209       * Decode the given public session keys.210       **/211      decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;212      /**213       * Generate a set of session keys with optionally using the given seed.214       **/215      generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;216      /**217       * Generic call218       **/219      [key: string]: DecoratedCallBase<ApiType>;220    };221    /** 0xd2bc9897eed08f15/3 */222    taggedTransactionQueue: {223      /**224       * Validate the transaction.225       **/226      validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;227      /**228       * Generic call229       **/230      [key: string]: DecoratedCallBase<ApiType>;231    };232    /** 0x37c8bb1350a9a2a8/1 */233    transactionPaymentApi: {234      /**235       * The transaction fee details236       **/237      queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;238      /**239       * The transaction info240       **/241      queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;242      /**243       * Generic call244       **/245      [key: string]: DecoratedCallBase<ApiType>;246    };247  } // AugmentedCalls248} // declare module