@lit-protocol/e2e
Version:
Lit Protocol E2E testing package for running comprehensive integration tests
53 lines (52 loc) • 1.69 kB
TypeScript
import { createAuthManager, generateSessionKeyPair } from '@lit-protocol/auth';
import { createLitClient } from '@lit-protocol/lit-client';
import { LitNetworkModule, PaymentManager } from '@lit-protocol/networks';
import { privateKeyToAccount } from 'viem/accounts';
import { EnvVars } from './createEnvVars';
export declare const CONFIG: {
LOCAL: {
nativeFundingAmount: string;
ledgerDepositAmount: string;
sponsorshipLimits: {
totalMaxPriceInWei: string;
userMaxPrice: bigint;
};
};
LIVE: {
nativeFundingAmount: string;
ledgerDepositAmount: string;
sponsorshipLimits: {
totalMaxPriceInWei: string;
userMaxPrice: bigint;
};
};
MAINNET: {
nativeFundingAmount: string;
ledgerDepositAmount: string;
sponsorshipLimits: {
totalMaxPriceInWei: string;
userMaxPrice: bigint;
};
};
};
export type TestEnvs = {
address: `0x${string}`;
networkModule: LitNetworkModule;
};
export type TestEnv = {
masterAccount: ReturnType<typeof privateKeyToAccount>;
masterPaymentManager: PaymentManager;
networkModule: LitNetworkModule;
litClient: Awaited<ReturnType<typeof createLitClient>>;
authManager: ReturnType<typeof createAuthManager>;
config: {
nativeFundingAmount: string;
ledgerDepositAmount: string;
sponsorshipLimits: {
totalMaxPriceInWei: string;
userMaxPrice: bigint;
};
};
sessionKeyPair: ReturnType<typeof generateSessionKeyPair>;
};
export declare const createTestEnv: (envVars: EnvVars) => Promise<TestEnv>;