UNPKG

@lit-protocol/e2e

Version:

Lit Protocol E2E testing package for running comprehensive integration tests

31 lines (30 loc) 1.31 kB
import { NetworkName, ResolvedNetwork } from './helper/network'; import { z } from 'zod'; import { PKPData, AuthData, CustomAuthData } from '@lit-protocol/schemas'; import { AuthContext, AuthManagerInstance, LitClientInstance, ViemAccount } from './types'; declare const LogLevelSchema: z.ZodEnum<["silent", "info", "debug"]>; type LogLevel = z.infer<typeof LogLevelSchema>; type BaseInitResult = { litClient: LitClientInstance; authManager: AuthManagerInstance; localMasterAccount: ViemAccount; aliceViemAccount: ViemAccount; aliceViemAccountAuthData: AuthData; aliceViemAccountPkp: PKPData; aliceEoaAuthContext: AuthContext; masterDepositForUser: (userAddress: string) => Promise<void>; resolvedNetwork: ResolvedNetwork; }; type FullInitResult = BaseInitResult & { bobViemAccount: ViemAccount; bobViemAccountAuthData: AuthData; bobViemAccountPkp: PKPData; alicePkpAuthContext: AuthContext; eveViemAccount: ViemAccount; eveCustomAuthData: CustomAuthData; eveViemAccountPkp: PKPData; eveValidationIpfsCid: `Qm${string}`; }; export declare const init: (network?: NetworkName, logLevel?: LogLevel) => Promise<FullInitResult>; export declare const initFast: (network?: NetworkName, logLevel?: LogLevel) => Promise<BaseInitResult>; export {};