Skip to content
Snippets Groups Projects
Select Git revision
  • ee66942c72ef95711a9eb80fe2e9798e145fbb92
  • master default protected
  • docusaurus
3 results

augment-api-rpc.ts

Blame
  • augment-api-rpc.ts 30.15 KiB
    // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
    /* eslint-disable */
    
    // import type lookup before we augment - in some environments
    // this is required to allow for ambient/previous definitions
    import '@polkadot/rpc-core/types/jsonrpc';
    
    import type { AugmentedRpc } from '@polkadot/rpc-core/types';
    import type { Metadata, StorageKey } from '@polkadot/types';
    import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u32, u64 } from '@polkadot/types-codec';
    import type { AnyNumber, Codec } from '@polkadot/types-codec/types';
    import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
    import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
    import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy';
    import type { BlockHash } from '@polkadot/types/interfaces/chain';
    import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
    import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
    import type { CodeUploadRequest, CodeUploadResult, ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from '@polkadot/types/interfaces/contracts';
    import type { BlockStats } from '@polkadot/types/interfaces/dev';
    import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
    import type { EthAccount, EthCallRequest, EthFeeHistory, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
    import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
    import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';
    import type { MmrLeafBatchProof, MmrLeafProof } from '@polkadot/types/interfaces/mmr';
    import type { StorageKind } from '@polkadot/types/interfaces/offchain';
    import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
    import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
    import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from '@polkadot/types/interfaces/runtime';
    import type { MigrationStatusResult, ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/types/interfaces/state';
    import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from '@polkadot/types/interfaces/system';
    import type { IExtrinsic, Observable } from '@polkadot/types/types';
    
    export type __AugmentedRpc = AugmentedRpc<() => unknown>;
    
    declare module '@polkadot/rpc-core/types/jsonrpc' {
      interface RpcInterface {
        author: {
          /**
           * Returns true if the keystore has private keys for the given public key and key type.
           **/
          hasKey: AugmentedRpc<(publicKey: Bytes | string | Uint8Array, keyType: Text | string) => Observable<bool>>;
          /**
           * Returns true if the keystore has private keys for the given session public keys.
           **/
          hasSessionKeys: AugmentedRpc<(sessionKeys: Bytes | string | Uint8Array) => Observable<bool>>;
          /**
           * Insert a key into the keystore.
           **/
          insertKey: AugmentedRpc<(keyType: Text | string, suri: Text | string, publicKey: Bytes | string | Uint8Array) => Observable<Bytes>>;
          /**
           * Returns all pending extrinsics, potentially grouped by sender
           **/
          pendingExtrinsics: AugmentedRpc<() => Observable<Vec<Extrinsic>>>;
          /**
           * Remove given extrinsic from the pool and temporarily ban it to prevent reimporting
           **/
          removeExtrinsic: AugmentedRpc<(bytesOrHash: Vec<ExtrinsicOrHash> | (ExtrinsicOrHash | { Hash: any } | { Extrinsic: any } | string | Uint8Array)[]) => Observable<Vec<Hash>>>;
          /**
           * Generate new session keys and returns the corresponding public keys
           **/
          rotateKeys: AugmentedRpc<() => Observable<Bytes>>;
          /**
           * Submit and subscribe to watch an extrinsic until unsubscribed
           **/
          submitAndWatchExtrinsic: AugmentedRpc<(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ExtrinsicStatus>>;
          /**
           * Submit a fully formatted extrinsic for block inclusion
           **/
          submitExtrinsic: AugmentedRpc<(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Hash>>;
        };