Skip to content

Conversation

@Ansonhkg
Copy link
Collaborator

@Ansonhkg Ansonhkg commented Nov 14, 2025

WHAT

  • add naga and naga-proto to the vNaga environments (env/module/chain manager plus SDK exports)
  • update the contracts sync config to fetch naga and naga-proto from the networks repo and regenerate artifacts/exports
  • keep custom-network-signatures browser stubs when the sync script rewrites exports so downstream bundlers stay compatible
  • create per-network entrypoints and subpath exports (naga, naga-production, naga-proto, naga-staging, naga-test, naga-dev, naga-local) for better tree-shaking
// BEFORE
import { nagaStaging } from '@lit-protocol/networks';
const client = await createLitClient({ network: nagaStaging });

// AFTER
import { naga } from '@lit-protocol/networks/naga';
import { nagaProto } from '@lit-protocol/networks/naga-proto';

const mainnet = await createLitClient({ network: naga });
const proto = await createLitClient({ network: nagaProto });

Copilot AI review requested due to automatic review settings November 14, 2025 17:06
Copilot finished reviewing on behalf of Ansonhkg November 14, 2025 17:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for the naga (production) and naga-proto network environments to the vNaga network family. The changes include:

  • New environment modules for naga-production and naga-proto with corresponding chain managers, configurations, and type exports
  • Updated contracts sync configuration to fetch contract ABIs from the networks repository for these new environments
  • Preservation of browser-specific export mappings in the contracts package.json for bundler compatibility
  • Addition of new chain configuration file LitChain.ts for the production Lit Chain network

Reviewed Changes

Copilot reviewed 14 out of 38 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/networks/src/networks/vNaga/index.ts Exports the new naga-production and naga-proto modules and types
packages/networks/src/networks/vNaga/envs/naga-proto/* Complete implementation of naga-proto environment with module, env config, and chain manager
packages/networks/src/networks/vNaga/envs/naga-production/* Complete implementation of naga-production environment with module, env config, and chain manager
packages/networks/src/index.ts Adds exports for nagaProduction and nagaProto modules to main SDK entry point
packages/networks/src/chains/LitChain.ts New chain configuration for Lit Chain mainnet (chain ID 175200)
packages/contracts/src/sync.ts Adds browser-specific export mappings for custom-network-signatures
packages/contracts/src/config/networks.ts Adds naga-proto and naga production network paths for contract sync
packages/contracts/package.json Adds package exports for naga and naga-proto signatures and prod files
packages/contracts/dist/* Generated contract signatures and artifacts for naga and naga-proto networks, plus updates to naga-staging

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants