UNPKG

@polkadot/types

Version:
11 lines (10 loc) 613 B
import type { AnyTuple, CallBase as CallBaseBase, CallFunction as CallFunctionBase, IMethod } from '@polkadot/types-codec/types'; import type { FunctionMetadataLatest } from '../interfaces/metadata/index.js'; import type { Call } from '../interfaces/runtime/index.js'; import type { Registry } from './registry.js'; export interface CallBase<A extends AnyTuple, M = FunctionMetadataLatest> extends CallBaseBase<A, M> { registry: Registry; } export interface CallFunction<A extends AnyTuple = AnyTuple, M = FunctionMetadataLatest> extends CallFunctionBase<A, M> { (...args: any[]): Call & IMethod<A, M>; }