Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 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
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
  •  
  •  
  •  
19 changes: 19 additions & 0 deletions .changeset/cute-experts-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
'@lit-protocol/access-control-conditions': patch
'@lit-protocol/access-control-conditions-schemas': patch
'@lit-protocol/auth': patch
'@lit-protocol/auth-helpers': patch
'@lit-protocol/auth-services': patch
'@lit-protocol/constants': patch
'@lit-protocol/crypto': patch
'@lit-protocol/lit-client': patch
'@lit-protocol/logger': patch
'@lit-protocol/networks': patch
'@lit-protocol/schemas': patch
'@lit-protocol/types': patch
'@lit-protocol/wasm': patch
'@lit-protocol/wrapped-keys': patch
'@lit-protocol/wrapped-keys-lit-actions': patch
---

Initial version after networks unification
19 changes: 19 additions & 0 deletions .changeset/cyan-bears-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
'@lit-protocol/access-control-conditions': patch
'@lit-protocol/access-control-conditions-schemas': patch
'@lit-protocol/auth': patch
'@lit-protocol/auth-helpers': patch
'@lit-protocol/auth-services': patch
'@lit-protocol/constants': patch
'@lit-protocol/crypto': patch
'@lit-protocol/lit-client': patch
'@lit-protocol/logger': patch
'@lit-protocol/networks': patch
'@lit-protocol/schemas': patch
'@lit-protocol/types': patch
'@lit-protocol/wasm': patch
'@lit-protocol/wrapped-keys': patch
'@lit-protocol/wrapped-keys-lit-actions': patch
---

Initial release for networks unification
2 changes: 1 addition & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
"@lit-protocol/wrapped-keys": "7.0.0",
"@lit-protocol/wrapped-keys-lit-actions": "7.0.0"
},
"changesets": ["cute-bottles-ask"]
"changesets": ["cute-bottles-ask", "cute-experts-clap", "cyan-bears-invent"]
}
27 changes: 7 additions & 20 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,21 +1,8 @@
#Tinny ENV Vars
MAX_ATTEMPTS=1
NETWORK=datil-dev
DEBUG=true
WAIT_FOR_KEY_INTERVAL=3000
LIT_OFFICAL_RPC=https://chain-rpc.litprotocol.com/http
TIME_TO_RELEASE_KEY=10000
RUN_IN_BAND=true
RUN_IN_BAND_INTERVAL=5000
PRIVATE_KEYS="0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d,0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a,0x7c852118294e51e653712a81e05800f419141751be58f605c371e15141b007a6,0x47e179ec197488593b187f80a00eb0da91f1b9d0b13f8733639f19c30a34926a,0x8b3a350cf5c34c9194ca85829a2df0ec3153be0318b5e2d3348e872092edffba,0x92db14e403b83dfe3df233f83dfa3a0d7096f21ca9b0d6d6b8d88b2b4ec1564e,0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356,0xdbda1821b80551c9d65939329250298aa3472ba22feea921c0cf5d620ea67b97,0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6"
NO_SETUP=false
Copy link
Collaborator

Choose a reason for hiding this comment

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

how come we don't need any of this stuff anymore? because we just use a single LOCAL_MASTER_ACCOUNT?

USE_SHIVA=false
NETWORK_CONFIG=./networkContext.json
TEST_TIMEOUT=45000
# LIT_YELLOWSTONE_PRIVATE_RPC_URL=<OVERWRITE ME>
# LOCAL_RPC_URL=<OVERWRITE ME>

#Shiva Client ENV Vars
STOP_TESTNET=false
TESTNET_MANAGER_URL=http://0.0.0.0:8000
USE_LIT_BINARIES=true
LIT_NODE_BINARY_PATH=/path/to/lit_node/binary
LIT_ACTION_BINARY_PATH=/path/to/lit_action_binary
LOG_LEVEL=silent
LIVE_MASTER_ACCOUNT=
LOCAL_MASTER_ACCOUNT=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80

NODE_NO_WARNINGS=1
6 changes: 3 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ jobs:
run: bun run build

- name: Run health check for naga-dev
run: NETWORK=naga-dev bun run test:e2e all --timeout 5000000
run: NETWORK=naga-dev bun run test:e2e all
timeout-minutes: 10

- name: Run health check for naga-test
run: NETWORK=naga-test bun run test:e2e all --timeout 5000000
run: NETWORK=naga-test bun run test:e2e all
timeout-minutes: 10

- name: Run health check for naga-staging
run: NETWORK=naga-staging bun run test:e2e all --timeout 5000000
run: NETWORK=naga-staging bun run test:e2e all
timeout-minutes: 10
1 change: 0 additions & 1 deletion .yarnrc.yml

This file was deleted.

16 changes: 8 additions & 8 deletions e2e/artillery/configs/encrypt-decrypt.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
config:
target: "dummy"
target: 'dummy'
phases:
# Over 60s, ramp up to creating 50 vusers per second
- duration: 60
arrivalRate: 5
rampTo: 150
name: "Ramp Up"
name: 'Ramp Up'
# Over 300s, create 50 vusers per second
- duration: 300
arrivalRate: 150
name: "Sustained Encrypt & Decrypt"
name: 'Sustained Encrypt & Decrypt'
# Over 60s, ramp down to creating 5 vusers per second
- duration: 60
arrivalRate: 20
name: "Ramp Down"
processor: "../src/processors/multi-endpoints.ts"
name: 'Ramp Down'
processor: '../src/processors/multi-endpoints.ts'

scenarios:
- name: "Encrypt & Decrypt Stress Test"
- name: 'Encrypt & Decrypt Stress Test'
weight: 100
flow:
- function: "runEncryptDecryptTest"
- think: 0.1
- function: 'runEncryptDecryptTest'
- think: 0.1
16 changes: 8 additions & 8 deletions e2e/artillery/configs/execute.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
config:
target: "dummy"
target: 'dummy'
phases:
# Over 60s, ramp up to creating 50 vusers per second
- duration: 60
arrivalRate: 5
rampTo: 100
name: "Ramp Up"
name: 'Ramp Up'
# Over 300s, create 50 vusers per second
- duration: 300
arrivalRate: 100
name: "Sustained Encrypt & Decrypt"
name: 'Sustained Encrypt & Decrypt'
# Over 60s, ramp down to creating 5 vusers per second
- duration: 60
arrivalRate: 20
name: "Ramp Down"
processor: "../src/processors/multi-endpoints.ts"
name: 'Ramp Down'
processor: '../src/processors/multi-endpoints.ts'

scenarios:
- name: "Execute JS Stress Test"
- name: 'Execute JS Stress Test'
weight: 100
flow:
- function: "runExecuteJSTest"
- think: 0.1
- function: 'runExecuteJSTest'
- think: 0.1
24 changes: 12 additions & 12 deletions e2e/artillery/configs/mix.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
config:
target: "dummy"
target: 'dummy'
phases:
# Over 60s, ramp up to creating 50 vusers per second
- duration: 60
arrivalRate: 5
rampTo: 75
name: "Ramp Up"
name: 'Ramp Up'
# Over 300s, create 50 vusers per second
- duration: 300
arrivalRate: 75
name: "Sustained Encrypt & Decrypt"
name: 'Sustained Encrypt & Decrypt'
# Over 60s, ramp down to creating 5 vusers per second
- duration: 60
arrivalRate: 20
name: "Ramp Down"
processor: "../src/processors/multi-endpoints.ts"
name: 'Ramp Down'
processor: '../src/processors/multi-endpoints.ts'

scenarios:
- name: "PKP Sign Stress Test"
- name: 'PKP Sign Stress Test'
weight: 50
flow:
- function: "runPkpSignTest"
- function: 'runPkpSignTest'
- think: 0.1
- name: "Encrypt & Decrypt Stress Test"
- name: 'Encrypt & Decrypt Stress Test'
weight: 25
flow:
- function: "runEncryptDecryptTest"
- function: 'runEncryptDecryptTest'
- think: 0.1
- name: "Execute JS Stress Test"
- name: 'Execute JS Stress Test'
weight: 25
flow:
- function: "runExecuteJSTest"
- think: 0.1
- function: 'runExecuteJSTest'
- think: 0.1
4 changes: 2 additions & 2 deletions e2e/artillery/configs/pkp-sign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ config:
- duration: 60
arrivalRate: 5
rampTo: 80
name: "Ramp Up"
name: 'Ramp Up'
# Over 300s, create 50 vusers per second
- duration: 300
arrivalRate: 80
name: "Sustained PKP Signing"
name: 'Sustained PKP Signing'
# Over 60s, ramp down to creating 5 vusers per second
- duration: 60
arrivalRate: 20
Expand Down
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.

Loading
Loading