@zkp2p/reclaim-witness-sdk
Version:
<div> <div> <img src="https://raw.githubusercontent.com/reclaimprotocol/.github/main/assets/banners/Attestor-Core.png" /> </div> </div>
21 lines (20 loc) • 713 B
TypeScript
import { AttestorClient } from '../client/utils/client-socket';
import { createMockServer } from '../tests/mock-provider-server';
import { IAttestorServerSocket } from '../types';
type ServerOpts = {
/**
* Get the client's connection on the server.
*/
getClientOnServer(): IAttestorServerSocket | undefined;
client: AttestorClient;
privateKeyHex: string;
mockHttpsServer: ReturnType<typeof createMockServer>;
mockhttpsServerPort: number;
serverUrl: string;
};
/**
* Boots up a attestor server, a mock https server,
* and a client that is renewed for each test.
*/
export declare const describeWithServer: (name: string, fn: (opts: ServerOpts) => void) => void;
export {};