git.delta.rocks / unique-network / refs/commits / 37e846d75ecc

difftreelog

source

tests/src/interfaces/augment-api-runtime.ts8.2 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, 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    /** 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    /** 0x37e397fc7c91f5e4/2 */121    metadata: {122      /**123       * Returns the metadata of a runtime124       **/125      metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;126      /**127       * Returns the metadata at a given version.128       **/129      metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;130      /**131       * Returns the supported metadata versions.132       **/133      metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;134      /**135       * Generic call136       **/137      [key: string]: DecoratedCallBase<ApiType>;138    };139    /** 0xf78b278be53f454c/2 */140    offchainWorkerApi: {141      /**142       * Starts the off-chain task for given block header.143       **/144      offchainWorker: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;145      /**146       * Generic call147       **/148      [key: string]: DecoratedCallBase<ApiType>;149    };150    /** 0xab3c0572291feb8b/1 */151    sessionKeys: {152      /**153       * Decode the given public session keys.154       **/155      decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;156      /**157       * Generate a set of session keys with optionally using the given seed.158       **/159      generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;160      /**161       * Generic call162       **/163      [key: string]: DecoratedCallBase<ApiType>;164    };165    /** 0xd2bc9897eed08f15/3 */166    taggedTransactionQueue: {167      /**168       * Validate the transaction.169       **/170      validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;171      /**172       * Generic call173       **/174      [key: string]: DecoratedCallBase<ApiType>;175    };176    /** 0x37c8bb1350a9a2a8/4 */177    transactionPaymentApi: {178      /**179       * The transaction fee details180       **/181      queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;182      /**183       * The transaction info184       **/185      queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;186      /**187       * Query the output of the current LengthToFee given some input188       **/189      queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;190      /**191       * Query the output of the current WeightToFee given some input192       **/193      queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;194      /**195       * Generic call196       **/197      [key: string]: DecoratedCallBase<ApiType>;198    };199  } // AugmentedCalls200} // declare module