Skip to content

Commit 444c72e

Browse files
committed
feat(networks): replace nagaProduction with nagaMainnet and update related exports
1 parent 2e15b4a commit 444c72e

File tree

13 files changed

+40
-40
lines changed

13 files changed

+40
-40
lines changed

docs/sdk/getting-started/lit-client.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ const litClient = await createLitClient({
6565

6666
```typescript Naga Mainnet
6767
// ❗️ Currently in development. Coming soon...
68-
import { nagaProduction } from "@lit-protocol/networks";
68+
import { naga } from "@lit-protocol/networks";
6969
import { createLitClient } from "@lit-protocol/lit-client";
7070

7171
const litClient = await createLitClient({
72-
network: nagaProduction,
72+
network: naga,
7373
});
7474
```
7575

packages/networks/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353
"require": "./entries/naga.js",
5454
"import": "./entries/naga.js"
5555
},
56-
"./naga-production": {
57-
"types": "./entries/naga-production.d.ts",
58-
"require": "./entries/naga-production.js",
59-
"import": "./entries/naga-production.js"
56+
"./naga-mainnet": {
57+
"types": "./entries/naga-mainnet.d.ts",
58+
"require": "./entries/naga-mainnet.js",
59+
"import": "./entries/naga-mainnet.js"
6060
},
6161
"./naga-proto": {
6262
"types": "./entries/naga-proto.d.ts",
@@ -89,8 +89,8 @@
8989
"naga": [
9090
"entries/naga.d.ts"
9191
],
92-
"naga-production": [
93-
"entries/naga-production.d.ts"
92+
"naga-mainnet": [
93+
"entries/naga-mainnet.d.ts"
9494
],
9595
"naga-proto": [
9696
"entries/naga-proto.d.ts"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { nagaMainnet } from '../networks/vNaga/envs/naga-mainnet/naga-mainnet.module';
2+
export type { NagaMainnet as NagaMainnetModule } from '../networks/vNaga/envs/naga-mainnet/naga-mainnet.module';

packages/networks/src/entries/naga-production.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export { nagaProduction as naga } from '../networks/vNaga/envs/naga-production/naga-production.module';
2-
export type { NagaProduction as NagaModule } from '../networks/vNaga/envs/naga-production/naga-production.module';
1+
export { nagaMainnet as naga } from '../networks/vNaga/envs/naga-mainnet/naga-mainnet.module';
2+
export type { NagaMainnet as NagaModule } from '../networks/vNaga/envs/naga-mainnet/naga-mainnet.module';

packages/networks/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { NagaLocalModule } from './networks/vNaga';
33
import type { NagaDevModule } from './networks/vNaga';
44
import type { NagaTestModule } from './networks/vNaga';
55
import type { NagaStagingModule } from './networks/vNaga';
6-
import type { NagaProductionModule } from './networks/vNaga';
6+
import type { NagaMainnetModule } from './networks/vNaga';
77
import type { NagaProtoModule } from './networks/vNaga';
88
import type { NagaModule } from './networks/vNaga';
99

@@ -15,7 +15,7 @@ export {
1515
nagaLocal,
1616
nagaDev,
1717
nagaTest,
18-
nagaProduction,
18+
nagaMainnet,
1919
nagaProto,
2020
naga,
2121
} from './networks/vNaga';
@@ -25,7 +25,7 @@ export type { NagaLocalModule } from './networks/vNaga';
2525
export type { NagaDevModule } from './networks/vNaga';
2626
export type { NagaTestModule } from './networks/vNaga';
2727
export type { NagaStagingModule } from './networks/vNaga';
28-
export type { NagaProductionModule } from './networks/vNaga';
28+
export type { NagaMainnetModule } from './networks/vNaga';
2929
export type { NagaProtoModule } from './networks/vNaga';
3030
export type { NagaModule } from './networks/vNaga';
3131

@@ -35,7 +35,7 @@ export type LitNetworkModule =
3535
| NagaDevModule
3636
| NagaTestModule
3737
| NagaStagingModule
38-
| NagaProductionModule
38+
| NagaMainnetModule
3939
| NagaProtoModule
4040
| NagaModule;
4141
// | NagaProdModule
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ import {
44
createReadOnlyChainManagerFactory,
55
CreateChainManagerReturn,
66
} from '../../../shared/factories/BaseChainManagerFactory';
7-
import { nagaProductionEnvironment } from '../naga-production.env';
7+
import { nagaMainnetEnvironment } from '../naga-mainnet.env';
88

99
export type { CreateChainManagerReturn };
1010

1111
export const createChainManager = (
1212
accountOrWalletClient: ExpectedAccountOrWalletClient
1313
): CreateChainManagerReturn => {
1414
return createChainManagerFactory(
15-
nagaProductionEnvironment.getConfig(),
15+
nagaMainnetEnvironment.getConfig(),
1616
accountOrWalletClient
1717
);
1818
};
1919

2020
export const createReadOnlyChainManager = createReadOnlyChainManagerFactory(
21-
nagaProductionEnvironment.getConfig()
21+
nagaMainnetEnvironment.getConfig()
2222
);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { nagaMainnet } from './naga-mainnet.module';

packages/networks/src/networks/vNaga/envs/naga-production/naga-production.env.ts renamed to packages/networks/src/networks/vNaga/envs/naga-mainnet/naga-mainnet.env.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ const PROTOCOL = 'https://';
1010
const MINIMUM_THRESHOLD = 3;
1111
const DEFAULT_REALM_ID = 1n;
1212

13-
export interface NagaProductionSpecificConfigs {
13+
export interface NagaMainnetSpecificConfigs {
1414
realmId?: bigint;
1515
}
1616

17-
export type NagaProductionSignatures = typeof nagaSignatures;
17+
export type NagaMainnetSignatures = typeof nagaSignatures;
1818

19-
export class NagaProductionEnvironment extends BaseNetworkEnvironment<
20-
NagaProductionSignatures,
21-
NagaProductionSpecificConfigs
19+
export class NagaMainnetEnvironment extends BaseNetworkEnvironment<
20+
NagaMainnetSignatures,
21+
NagaMainnetSpecificConfigs
2222
> {
2323
constructor(options?: { rpcUrlOverride?: string }) {
2424
super({
@@ -55,4 +55,4 @@ export class NagaProductionEnvironment extends BaseNetworkEnvironment<
5555
}
5656

5757
// Create singleton instance
58-
export const nagaProductionEnvironment = new NagaProductionEnvironment();
58+
export const nagaMainnetEnvironment = new NagaMainnetEnvironment();
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { createBaseModule } from '../../shared/factories/BaseModuleFactory';
22
import type { ExpectedAccountOrWalletClient } from '../../shared/managers/contract-manager/createContractsManager';
33
import { createChainManager } from './chain-manager/createChainManager';
4-
import { nagaProductionEnvironment } from './naga-production.env';
4+
import { nagaMainnetEnvironment } from './naga-mainnet.env';
55

6-
const nagaProduction = createBaseModule({
7-
networkConfig: nagaProductionEnvironment.getConfig(),
8-
moduleName: nagaProductionEnvironment.getNetworkName(),
6+
const nagaMainnet = createBaseModule({
7+
networkConfig: nagaMainnetEnvironment.getConfig(),
8+
moduleName: nagaMainnetEnvironment.getNetworkName(),
99
createChainManager: (account: ExpectedAccountOrWalletClient) =>
1010
createChainManager(account),
1111
});
1212

13-
export type NagaProduction = typeof nagaProduction;
14-
export { nagaProduction };
13+
export type NagaMainnet = typeof nagaMainnet;
14+
export { nagaMainnet };

0 commit comments

Comments
 (0)