File tree Expand file tree Collapse file tree 4 files changed +5
-28
lines changed
packages/networks/src/networks/vNaga/envs Expand file tree Collapse file tree 4 files changed +5
-28
lines changed Original file line number Diff line number Diff line change @@ -3,19 +3,12 @@ import { createChainManager } from './chain-manager/createChainManager';
3
3
import { nagaDevEnvironment } from './naga-dev.env' ;
4
4
import type { ExpectedAccountOrWalletClient } from '../../shared/managers/contract-manager/createContractsManager' ;
5
5
6
- const baseModule = createBaseModule ( {
6
+ const nagaDev = createBaseModule ( {
7
7
networkConfig : nagaDevEnvironment . getConfig ( ) ,
8
8
moduleName : nagaDevEnvironment . getNetworkName ( ) ,
9
9
createChainManager : ( account : ExpectedAccountOrWalletClient ) =>
10
10
createChainManager ( account ) ,
11
11
} ) ;
12
12
13
- // Add getChainManager method for backward compatibility
14
- const nagaDev = {
15
- ...baseModule ,
16
- getChainManager : ( accountOrWalletClient : ExpectedAccountOrWalletClient ) =>
17
- createChainManager ( accountOrWalletClient ) ,
18
- } ;
19
-
20
13
export type NagaDevUnifiedModule = typeof nagaDev ;
21
14
export { nagaDev } ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import type { ExpectedAccountOrWalletClient } from '../../shared/managers/contra
5
5
6
6
const baseModule = createBaseModule ( {
7
7
networkConfig : nagaLocalEnvironment . getConfig ( ) ,
8
- moduleName : 'naga-local' ,
8
+ moduleName : nagaLocalEnvironment . getNetworkName ( ) ,
9
9
createChainManager : ( account : ExpectedAccountOrWalletClient ) =>
10
10
createChainManager ( account ) ,
11
11
} ) ;
@@ -15,9 +15,6 @@ const nagaLocal = {
15
15
...baseModule ,
16
16
// Local environment specific getter for private key
17
17
getPrivateKey : ( ) => nagaLocalEnvironment . getPrivateKey ( ) ,
18
- // Add getChainManager method for backward compatibility
19
- getChainManager : ( accountOrWalletClient : ExpectedAccountOrWalletClient ) =>
20
- createChainManager ( accountOrWalletClient ) ,
21
18
} ;
22
19
23
20
export type NagaLocal = typeof nagaLocal ;
Original file line number Diff line number Diff line change @@ -3,19 +3,12 @@ import { createChainManager } from './chain-manager/createChainManager';
3
3
import { nagaStagingEnvironment } from './naga-staging.env' ;
4
4
import type { ExpectedAccountOrWalletClient } from '../../shared/managers/contract-manager/createContractsManager' ;
5
5
6
- const baseModule = createBaseModule ( {
6
+ const nagaStaging = createBaseModule ( {
7
7
networkConfig : nagaStagingEnvironment . getConfig ( ) ,
8
8
moduleName : 'naga-staging' ,
9
9
createChainManager : ( account : ExpectedAccountOrWalletClient ) =>
10
10
createChainManager ( account ) ,
11
11
} ) ;
12
12
13
- // Add getChainManager method for backward compatibility
14
- const nagaStaging = {
15
- ...baseModule ,
16
- getChainManager : ( accountOrWalletClient : ExpectedAccountOrWalletClient ) =>
17
- createChainManager ( accountOrWalletClient ) ,
18
- } ;
19
-
20
13
export type NagaStaging = typeof nagaStaging ;
21
14
export { nagaStaging } ;
Original file line number Diff line number Diff line change @@ -3,18 +3,12 @@ import { createChainManager } from './chain-manager/createChainManager';
3
3
import { nagaTestEnvironment } from './naga-test.env' ;
4
4
import type { ExpectedAccountOrWalletClient } from '../../shared/managers/contract-manager/createContractsManager' ;
5
5
6
- const baseModule = createBaseModule ( {
6
+ const nagaTest = createBaseModule ( {
7
7
networkConfig : nagaTestEnvironment . getConfig ( ) ,
8
- moduleName : 'naga-test' ,
8
+ moduleName : nagaTestEnvironment . getNetworkName ( ) ,
9
9
createChainManager : ( account : ExpectedAccountOrWalletClient ) =>
10
10
createChainManager ( account ) ,
11
11
} ) ;
12
12
13
- const nagaTest = {
14
- ...baseModule ,
15
- getChainManager : ( accountOrWalletClient : ExpectedAccountOrWalletClient ) =>
16
- createChainManager ( accountOrWalletClient ) ,
17
- } ;
18
-
19
13
export type NagaTest = typeof nagaTest ;
20
14
export { nagaTest } ;
You can’t perform that action at this time.
0 commit comments