Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
7345544
chore(package.json): update build scripts and update generate-abi-sig…
Ansonhkg Aug 19, 2025
3c8b298
chore(package.json): increase the default timeout for E2E tests in th…
Ansonhkg Aug 20, 2025
ef99fa4
chore(examples): remove outdated EOA native auth flow and release ver…
Ansonhkg Aug 20, 2025
986708e
refactor(e2e): update rpc url env vars override
Ansonhkg Aug 20, 2025
0473f61
refactor(networks): add a shared folder for all network envs
Ansonhkg Aug 20, 2025
401b494
refactor(nx): remove auto-fix-deps target and simplify build dependen…
Ansonhkg Aug 20, 2025
2bed90a
chore(wasm): add Cargo.lock file for Rust dependencies management
Ansonhkg Aug 20, 2025
a759c18
fix(networks): correct typo in lint executor key in project.json
Ansonhkg Aug 20, 2025
ad20de8
Merge branch 'naga' into feature/jss-37-optimisation-unify-shared-log…
Ansonhkg Aug 20, 2025
43622c8
chore(e2e): remove excessive timeout from health check commands in wo…
Ansonhkg Aug 20, 2025
1f19b5b
refactor(networks): remove backward compatibility exports from Naga e…
Ansonhkg Aug 20, 2025
75f455d
chore(yarn): remove .yarnrc.yml configuration file
Ansonhkg Aug 20, 2025
24f12d6
chore(env): update .env.sample by removing deprecated variables and a…
Ansonhkg Aug 21, 2025
a48fbfb
chore(changeset): add initial version for networks unification with p…
Ansonhkg Aug 21, 2025
a59f48f
chore(changeset): release 8.0.0-beta.1 for all Lit Protocol packages …
Ansonhkg Aug 21, 2025
b808a12
fmt
Ansonhkg Aug 21, 2025
7b1b542
Merge branch 'naga' into feature/jss-37-optimisation-unify-shared-log…
Ansonhkg Aug 21, 2025
0131659
Merge branch 'feature/jss-37-optimisation-unify-shared-logic-with-an-…
Ansonhkg Aug 21, 2025
ec03f2a
refactor(networks): unify Naga environment module names and remove ba…
Ansonhkg Aug 21, 2025
f3fdc4c
refactor(networks): change request id prefix
Ansonhkg Aug 26, 2025
ff412bf
chore: remove unused tests
Ansonhkg Aug 26, 2025
b0aea70
Merge branch 'naga' into feature/jss-37-optimisation-unify-shared-log…
Ansonhkg Aug 26, 2025
862473d
fix: merge conflicts
Ansonhkg Aug 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 5 additions & 1 deletion e2e/src/helper/NetworkManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@ export const getViemPublicClient = async ({
networkModule: any;
}) => {
const viemChainConfig = networkModule.getChainConfig();
const defaultRpcUrl = viemChainConfig.rpcUrls.default.http[0];
const isLocalNetwork = defaultRpcUrl.includes('127.0.0.1');
const customRpcUrl = isLocalNetwork
? process.env['LOCAL_RPC_URL']
: process.env['LIT_YELLOWSTONE_PRIVATE_RPC_URL'];

const customRpcUrl = process.env['LIT_YELLOWSTONE_PRIVATE_RPC_URL'];
if (customRpcUrl) {
console.log(`🔧 Using custom E2E RPC URL: ***${customRpcUrl.slice(-6)}`);
}
Expand Down
19 changes: 12 additions & 7 deletions e2e/src/helper/fundAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,24 @@ export const fundAccount = async (
thenFundWith?: string;
}
) => {
const customRpcUrl = process.env['LIT_YELLOWSTONE_PRIVATE_RPC_URL'];
const defaultRpcUrl = networkModule.getChainConfig().rpcUrls.default.http[0];
const isLocalNetwork = defaultRpcUrl.includes('127.0.0.1');
const customRpcUrl = isLocalNetwork
? process.env['LOCAL_RPC_URL']
: process.env['LIT_YELLOWSTONE_PRIVATE_RPC_URL'];

if (customRpcUrl) {
console.log(`🔧 Using custom E2E RPC URL: ***${customRpcUrl.slice(-6)}`);
} else if (isLocalNetwork) {
console.log(`🔧 Using local Anvil RPC URL: ${defaultRpcUrl}`);
} else {
console.log(`🔧 Using default network RPC URL: ${defaultRpcUrl}`);
}

// check account balance
const publicClient = createPublicClient({
chain: networkModule.getChainConfig(),
transport: http(
customRpcUrl || networkModule.getChainConfig().rpcUrls.default.http[0]
),
transport: http(customRpcUrl || defaultRpcUrl),
});

const balance = await publicClient.getBalance({
Expand All @@ -101,9 +108,7 @@ export const fundAccount = async (

const walletClient = createWalletClient({
account: sponsorAccount,
transport: http(
customRpcUrl || networkModule.getChainConfig().rpcUrls.default.http[0]
),
transport: http(customRpcUrl || defaultRpcUrl),
});

// Get the next managed nonce for this sponsor account
Expand Down
28 changes: 0 additions & 28 deletions examples/src/eoa-native-auth-flow.ts

This file was deleted.

144 changes: 0 additions & 144 deletions examples/src/release-verification-example.ts

This file was deleted.

7 changes: 1 addition & 6 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,9 @@
},
"targetDefaults": {
"build": {
"dependsOn": ["auto-fix-deps", "^build"],
"dependsOn": ["^build"],
"cache": true
},
"auto-fix-deps": {
"cache": true,
"inputs": ["{projectRoot}/src/**/*", "{projectRoot}/package.json"],
"outputs": ["{projectRoot}/package.json"]
},
"check-deps": {
"executor": "nx:run-commands",
"options": {
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
"scripts": {
"reset": "bun unlink-all && rimraf dist node_modules doc tmp yarn-error.log yarn.lock package-lock.json bun.lockb learn-debug.log tmp .nx lit-auth-storage pkp-tokens lit-auth-local ./e2e/dist ./e2e/node_modules",
"go": "bun run build && bun link-all",
"build": "bun unlink-all && bun scripts/auto-fix-deps.mjs && nx run-many --parallel=false --target=build --all --exclude=wrapped-keys,wrapped-keys-lit-actions && bun run prettier",
"build:affected": "bun scripts/auto-fix-deps.mjs && nx affected --target=build --exclude=wrapped-keys,wrapped-keys-lit-actions",
"auto-fix-deps": "bun scripts/auto-fix-deps.mjs",
"build": "bun unlink-all && nx run-many --parallel=false --target=build --all --exclude=wrapped-keys,wrapped-keys-lit-actions && bun run prettier",
"build:affected": "nx affected --target=build --exclude=wrapped-keys,wrapped-keys-lit-actions",
"check-deps": "npx nx run-many --target=check-deps --exclude=wrapped-keys,wrapped-keys-lit-actions",
"validate": "npm run check-deps && npm run build",
"test:local": "node ./local-tests/build.mjs && dotenvx run --env-file=.env -- node ./local-tests/build/test.mjs",
Expand All @@ -16,15 +15,15 @@
"show:affected": "npx nx show projects --affected --uncommitted",
"build:tinny": "node ./local-tests/build.mjs",
"publish:tinny": "cd ./local-tests && npm publish",
"gen:local-network-context": "bun run packages/networks/src/networks/vNaga/envs/naga-local/scripts/00-generate-abi-signatures.ts",
"gen:local-network-context": "NETWORK_NAME=naga-develop DIRECTORY_NAME=naga-local bun run packages/networks/src/networks/vNaga/shared/scripts/generate-abi-signatures.ts",
"gen:docs": "node ./tools/scripts/gen-doc.mjs",
"gen:readme": "node ./tools/scripts/gen-readme.mjs",
"prettier": "npx nx format:write --all",
"format:check": "npx nx format:check --all",
"link-all": "for dir in packages/*/; do echo \"Linking in $dir\"; (cd \"$dir\" && bun link) || { echo \"ERROR: Failed to link in $dir\"; exit 1; }; done",
"unlink-all": "for dir in packages/*/; do echo \"Unlinking in $dir\"; (cd \"$dir\" && bun unlink) || { echo \"ERROR: Failed to unlink in $dir\"; exit 1; }; done",
"auth-services": "cd packages/auth-services && bun run start",
"test:e2e": "bun test ./e2e/src/e2e.spec.ts -t",
"test:e2e": "bun test ./e2e/src/e2e.spec.ts --timeout 50000000 -t",
"artillery:init": "bun run ./e2e/artillery/src/init.ts",
"artillery:balance-status": "LOG_LEVEL=silent bun run ./e2e/artillery/src/balance-status.ts",
"artillery:pkp-sign": "DEBUG_HTTP=true LOG_LEVEL=silent dotenvx run --env-file=.env -- sh -c 'artillery run ./e2e/artillery/configs/pkp-sign.yml ${ARTILLERY_KEY:+--record --key $ARTILLERY_KEY}'",
Expand Down
6 changes: 0 additions & 6 deletions packages/networks/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@
"command": "depcheck"
}
},
"auto-fix-deps": {
"executor": "nx:run-commands",
"options": {
"command": "echo 'Dependencies auto-fixed by global script'"
}
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
Expand Down
4 changes: 2 additions & 2 deletions packages/networks/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export type LitNetworkModule =
// | DatilLocalModule

// ----- types
export type { ConnectionInfo } from './networks/vNaga/LitChainClient/types';
export type { ConnectionInfo } from './networks/vNaga/shared/managers/LitChainClient/types';
export type { PKPStorageProvider } from './storage/types';

// Schema types
export type { MintRequestRaw } from './networks/vNaga/LitChainClient/schemas/MintRequestSchema';
export type { MintRequestRaw } from './networks/vNaga/shared/managers/LitChainClient/schemas/MintRequestSchema';
1 change: 1 addition & 0 deletions packages/networks/src/networks/shared/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This directory contains shared code for all networks.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
*
* use the one in networks package
*/
export const createRequestId = () => {
Expand Down
31 changes: 0 additions & 31 deletions packages/networks/src/networks/types.d.ts

This file was deleted.

3 changes: 0 additions & 3 deletions packages/networks/src/networks/types.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/networks/src/networks/types.js.map

This file was deleted.

15 changes: 0 additions & 15 deletions packages/networks/src/networks/vNaga/LitChainClient/_config.ts

This file was deleted.

This file was deleted.

Loading
Loading