Skip to content

Commit 1d47b5d

Browse files
authored
Merge branch 'naga' into feature/jss-35-naga-js-sdk-wrapped-keys-implementation
2 parents 01caffa + 7481a12 commit 1d47b5d

34 files changed

+2331
-1043
lines changed

.changeset/dull-walls-notice.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/e2e-naga.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ jobs:
5656
# - environment: naga-staging
5757
# network: naga-staging
5858
# privateKey: LIVE_MASTER_ACCOUNT_NAGA_STAGING
59-
# - environment: naga-test
60-
# network: naga-test
61-
# privateKey: LIVE_MASTER_ACCOUNT_NAGA_TEST
59+
- environment: naga-test
60+
network: naga-test
61+
privateKey: LIVE_MASTER_ACCOUNT_NAGA_TEST
6262
env:
6363
LOG_LEVEL: debug2
6464
LIVE_MASTER_ACCOUNT: ${{ secrets[matrix.privateKey] }}

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,31 @@ LOCAL_MASTER_ACCOUNT=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf
5555
NETWORK=<network-name> pnpm run test:e2e all
5656
```
5757

58+
### Target a specific spec
59+
60+
Use `test:target` when you only need to exercise one file:
61+
62+
```bash
63+
pnpm run test:target packages/e2e/src/tickets/delegation.spec.ts
64+
```
65+
66+
Append additional Jest flags after the path if you need finer filtering.
67+
68+
## QA Starter Kit workflow
69+
70+
When you need to validate SDK integrations against backend or node features, lean on the [QA Starter Kit](https://github.com/LIT-Protocol/QA-kit). That repo installs published packages, so it mirrors how downstream teams will consume the SDK.
71+
72+
1. The node team opens a feature branch for their service.
73+
2. Create a matching SDK branch and build the integration for that node change.
74+
3. Publish a snapshot (prerelease) of the SDK packages so the QA Starter Kit can install them from npm.
75+
4. Point the QA Starter Kit to that snapshot to perform the e2e flow before promoting the release.
76+
77+
This keeps QA aligned with the packages that will actually ship and avoids the drift that comes with local linking.
78+
5879
# Running it against a local network
5980

81+
Generate a fresh `networkContext.json` for local nodes with `pnpm run gen:local-network-context` before running the e2e tests against the `naga-local` local network.
82+
6083
## Required Environment Variables
6184

6285
```bash
@@ -132,6 +155,18 @@ This command must be run manually and is NOT part of the build process, as it re
132155
DEV_BRANCH=develop GH_API_KEY=github_pat_xxx pnpm run sync:contracts
133156
```
134157

158+
## Keeping the docs changelog in sync with the public site
159+
160+
Use the `sync:docs-changelog` script to refresh the changelog that powers [naga.developer.litprotocol.com/changelog](https://naga.developer.litprotocol.com/changelog).
161+
162+
```shell
163+
pnpm run sync:docs-changelog
164+
```
165+
166+
> Note: we currently run this manually after the Changeset PR lands in the `naga` main branch, though we expect to automate it in CI in the future.
167+
168+
The script collates the latest entries from `packages/*/CHANGELOG.md` and rewrites the target `changelog.mdx`. Commit and publish the regenerated file in the docs repo so the public changelog stays current.
169+
135170
---
136171

137172
# Legacy Documentation for V7 and Earlier

docs/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ description: 'Decentralized key management and private compute'
44
---
55

66
<Tip>
7-
$LITKEY and the Staking Contest to Select the Genesis Node Operator Set for the Naga Mainnet are now LIVE.
7+
$LITKEY and the Staking Contest to Select the Genesis Node Operator Set for the Naga Mainnet are now LIVE. [Learn More](https://spark.litprotocol.com/litkey-is-live/).
88

9-
[Learn More](https://spark.litprotocol.com/litkey-is-live/).
9+
If you're looking to deploy in production today ahead of the launch of the Naga Mainnet, you can use the Datil Mainnet Beta. Please reference the [Legacy Documentation](https://developer.litprotocol.com/) to get started.
1010
</Tip>
1111

1212
# Overview

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"lint": "npx nx run-many --target=lint --all",
1515
"lint:fix": "npx nx run-many --target=lint --all -- --fix",
1616
"format:check": "npx nx format:check --all",
17-
"test:e2e": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000 -t",
18-
"test:custom": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000",
17+
"test:e2e": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000 --runTestsByPath packages/e2e/src/e2e.spec.ts",
18+
"test:target": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000",
1919
"test:e2e:ci": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} npx jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000 --runTestsByPath",
2020
"pretest:e2e": "pnpm run generate:lit-actions",
2121
"pretest:e2e:ci": "pnpm run generate:lit-actions",

packages/artillery/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# @lit-protocol/artillery
22

3+
## 0.0.9
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [f109877]
8+
- @lit-protocol/e2e@4.0.1
9+
10+
## 0.0.8
11+
12+
### Patch Changes
13+
14+
- Updated dependencies [761174a]
15+
- @lit-protocol/e2e@4.0.0
16+
317
## 0.0.7
418

519
### Patch Changes

packages/artillery/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lit-protocol/artillery",
3-
"version": "0.0.7",
3+
"version": "0.0.9",
44
"private": true,
55
"type": "commonjs",
66
"dependencies": {

packages/auth-services/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# @lit-protocol/auth-services
22

3+
## 2.0.7
4+
5+
### Patch Changes
6+
7+
- f109877: update naga-test contract addresses. Users are expected to update and reinstall the SDK to continue using naga-test.
8+
- Updated dependencies [f109877]
9+
- @lit-protocol/contracts@0.8.1
10+
11+
## 2.0.6
12+
13+
### Patch Changes
14+
15+
- Updated dependencies [761174a]
16+
- @lit-protocol/contracts@0.8.0
17+
318
## 2.0.5
419

520
### Patch Changes

packages/auth-services/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lit-protocol/auth-services",
3-
"version": "2.0.5",
3+
"version": "2.0.7",
44
"license": "MIT",
55
"type": "commonjs",
66
"main": "./src/index.js",

packages/auth/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @lit-protocol/auth
22

3+
## 8.1.2
4+
5+
### Patch Changes
6+
7+
- f109877: update naga-test contract addresses. Users are expected to update and reinstall the SDK to continue using naga-test.
8+
39
## 8.1.1
410

511
### Patch Changes

0 commit comments

Comments
 (0)