1+ import {
2+ createAuthManager ,
3+ generateSessionKeyPair ,
4+ storagePlugins ,
5+ } from '@lit-protocol/auth' ;
6+ import { createLitClient } from '@lit-protocol/lit-client' ;
17import {
28 LitNetworkModule ,
9+ naga ,
310 nagaDev ,
411 nagaLocal ,
12+ nagaProto ,
513 nagaStaging ,
614 nagaTest ,
7- nagaProto ,
8- naga ,
915 PaymentManager ,
1016} from '@lit-protocol/networks' ;
11- import { EnvVars } from './createEnvVars' ;
12- import { createLitClient } from '@lit-protocol/lit-client' ;
13- import { createAuthManager , storagePlugins } from '@lit-protocol/auth' ;
1417import { privateKeyToAccount } from 'viem/accounts' ;
18+ import { EnvVars } from './createEnvVars' ;
1519
1620export const CONFIG = {
1721 LOCAL : {
@@ -24,7 +28,7 @@ export const CONFIG = {
2428 } ,
2529 LIVE : {
2630 nativeFundingAmount : '0.1' ,
27- ledgerDepositAmount : '0.1 ' ,
31+ ledgerDepositAmount : '10 ' ,
2832 sponsorshipLimits : {
2933 totalMaxPriceInWei : '50000000000000000' ,
3034 userMaxPrice : 50000000000000000n ,
@@ -59,6 +63,9 @@ export type TestEnv = {
5963 userMaxPrice : bigint ;
6064 } ;
6165 } ;
66+
67+ // --- Wrapped Keys related ---
68+ sessionKeyPair : ReturnType < typeof generateSessionKeyPair > ;
6269} ;
6370
6471export const createTestEnv = async ( envVars : EnvVars ) : Promise < TestEnv > => {
@@ -149,12 +156,16 @@ export const createTestEnv = async (envVars: EnvVars): Promise<TestEnv> => {
149156 account : masterAccount ,
150157 } ) ;
151158
159+ // --- This info are used by wrapped keys tests ---
160+ const sessionKeyPair = generateSessionKeyPair ( ) ;
161+
152162 return {
153163 masterAccount,
154164 masterPaymentManager,
155165 networkModule,
156166 litClient,
157167 authManager,
158168 config,
169+ sessionKeyPair,
159170 } ;
160171} ;
0 commit comments