PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@polkadot/rpc-provider/substrate-connect
Просмотр файла: index.d.ts
import type * as ScType from '@substrate/connect';
import type { ProviderInterface, ProviderInterfaceCallback, ProviderInterfaceEmitCb, ProviderInterfaceEmitted } from '../types.js';
import { healthChecker } from './Health.js';
interface SubstrateConnect {
WellKnownChain: typeof ScType['WellKnownChain'];
createScClient: typeof ScType['createScClient'];
}
export declare class ScProvider implements ProviderInterface {
#private;
constructor(Sc: SubstrateConnect, spec: string | ScType.WellKnownChain, sharedSandbox?: ScProvider);
get hasSubscriptions(): boolean;
get isClonable(): boolean;
get isConnected(): boolean;
clone(): ProviderInterface;
connect(config?: ScType.Config, checkerFactory?: typeof healthChecker): Promise<void>;
disconnect(): Promise<void>;
on(type: ProviderInterfaceEmitted, sub: ProviderInterfaceEmitCb): () => void;
send<T = any>(method: string, params: unknown[]): Promise<T>;
subscribe(type: string, method: string, params: any[], callback: ProviderInterfaceCallback): Promise<number | string>;
unsubscribe(type: string, method: string, id: number | string): Promise<boolean>;
}
export {};
Выполнить команду
Для локальной разработки. Не используйте в интернете!