Skip to content

Commit dfaca3f

Browse files
committed
Merge branch 'naga' into feature/jss-36-naga-sdk-add-a-make-a-request-function-to-take
2 parents 1e91e94 + 9b883d3 commit dfaca3f

File tree

693 files changed

+514741
-62578
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

693 files changed

+514741
-62578
lines changed

.bun-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

.changeset/config.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"fixed": [],
66
"linked": [],
77
"access": "public",
8-
"baseBranch": "main",
8+
"baseBranch": "naga",
99
"updateInternalDependencies": "minor",
10-
"ignore": []
10+
"ignore": [
11+
"@lit-protocol/wrapped-keys",
12+
"@lit-protocol/wrapped-keys-lit-actions"
13+
]
1114
}

.changeset/cute-bottles-ask.md

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

.changeset/pre.json

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

.dockerignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# dependencies & artifacts
2+
node_modules
3+
**/node_modules
4+
dist
5+
**/dist
6+
tmp
7+
e2e/dist
8+
coverage
9+
10+
# vcs & editor
11+
.git
12+
.gitignore
13+
.vscode
14+
.idea
15+
16+
# env and secrets (mount or --env-file at runtime instead)
17+
**/.env*
18+
.env*
19+
20+
out
21+
**/out
22+
23+
# allow lit-auth-server build output for docker image
24+
!dist/apps/lit-auth-server/**
25+
!dist/apps/lit-auth-server
26+
27+
# allow lit-login-server build output for docker image
28+
!dist/apps/lit-login-server/**
29+
!dist/apps/lit-login-server

.env.sample

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
1-
#Tinny ENV Vars
2-
MAX_ATTEMPTS=1
3-
NETWORK=datil-dev
4-
DEBUG=true
5-
WAIT_FOR_KEY_INTERVAL=3000
6-
LIT_OFFICAL_RPC=https://chain-rpc.litprotocol.com/http
7-
TIME_TO_RELEASE_KEY=10000
8-
RUN_IN_BAND=true
9-
RUN_IN_BAND_INTERVAL=5000
10-
PRIVATE_KEYS="0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d,0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a,0x7c852118294e51e653712a81e05800f419141751be58f605c371e15141b007a6,0x47e179ec197488593b187f80a00eb0da91f1b9d0b13f8733639f19c30a34926a,0x8b3a350cf5c34c9194ca85829a2df0ec3153be0318b5e2d3348e872092edffba,0x92db14e403b83dfe3df233f83dfa3a0d7096f21ca9b0d6d6b8d88b2b4ec1564e,0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356,0xdbda1821b80551c9d65939329250298aa3472ba22feea921c0cf5d620ea67b97,0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6"
11-
NO_SETUP=false
12-
USE_SHIVA=false
13-
NETWORK_CONFIG=./networkContext.json
14-
TEST_TIMEOUT=45000
1+
# LIT_YELLOWSTONE_PRIVATE_RPC_URL=<OVERWRITE ME>
2+
# LOCAL_RPC_URL=<OVERWRITE ME>
153

16-
#Shiva Client ENV Vars
17-
STOP_TESTNET=false
18-
TESTNET_MANAGER_URL=http://0.0.0.0:8000
19-
USE_LIT_BINARIES=true
20-
LIT_NODE_BINARY_PATH=/path/to/lit_node/binary
21-
LIT_ACTION_BINARY_PATH=/path/to/lit_action_binary
4+
LOG_LEVEL=silent
5+
LIVE_MASTER_ACCOUNT=
6+
LOCAL_MASTER_ACCOUNT=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
7+
8+
NODE_NO_WARNINGS=1
9+
NODE_OPTIONS=--no-deprecation

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
22
packages/wasm/rust/**/*
33
packages/wasm/src/pkg/*
4+
**/*.spec.ts
5+
**/*.test.ts

.github/workflows/e2e-naga.yml

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
name: E2E - Naga (matrix)
2+
3+
on:
4+
push:
5+
branches: [naga, canary-naga]
6+
pull_request:
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
build:
14+
name: Build once
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions-rs/toolchain@v1
19+
with:
20+
toolchain: stable
21+
override: true
22+
components: rust-std
23+
- uses: jetli/[email protected]
24+
with:
25+
version: latest
26+
- uses: actions/setup-node@v4
27+
with:
28+
node-version: 22.18.0
29+
registry-url: https://registry.npmjs.org
30+
- name: Enable corepack + pin pnpm
31+
run: |
32+
corepack enable
33+
corepack prepare [email protected] --activate
34+
- run: pnpm install --frozen-lockfile
35+
- run: pnpm build
36+
- name: Upload build output
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: build-output
40+
path: |
41+
dist
42+
packages/wasm/src/pkg
43+
if-no-files-found: error
44+
45+
e2e:
46+
name: E2E (${{ matrix.network }})
47+
needs: build
48+
runs-on: ubuntu-latest
49+
strategy:
50+
fail-fast: false
51+
matrix:
52+
include:
53+
- environment: naga-dev
54+
network: naga-dev
55+
privateKey: LIVE_MASTER_ACCOUNT_NAGA_DEV
56+
# - environment: naga-staging
57+
# network: naga-staging
58+
# privateKey: LIVE_MASTER_ACCOUNT_NAGA_STAGING
59+
- environment: naga-test
60+
network: naga-test
61+
privateKey: LIVE_MASTER_ACCOUNT_NAGA_TEST
62+
env:
63+
LOG_LEVEL: debug2
64+
LIVE_MASTER_ACCOUNT: ${{ secrets[matrix.privateKey] }}
65+
LOCAL_MASTER_ACCOUNT: ${{ secrets[matrix.privateKey] }}
66+
steps:
67+
- uses: actions/checkout@v4
68+
- uses: actions/setup-node@v4
69+
with:
70+
node-version: 22.18.0
71+
registry-url: https://registry.npmjs.org
72+
- name: Enable corepack + pin pnpm
73+
run: |
74+
corepack enable
75+
corepack prepare [email protected] --activate
76+
- name: Install Dependencies
77+
run: pnpm install --frozen-lockfile
78+
- name: Download build output
79+
uses: actions/download-artifact@v4
80+
with:
81+
name: build-output
82+
path: build-output
83+
- name: Restore build artifacts
84+
run: |
85+
mkdir -p dist
86+
mkdir -p packages/wasm/src/pkg
87+
if [ -d build-output/dist ]; then
88+
cp -a build-output/dist/. dist/
89+
fi
90+
if [ -d build-output/packages/wasm/src/pkg ]; then
91+
cp -a build-output/packages/wasm/src/pkg/. packages/wasm/src/pkg/
92+
fi
93+
rm -rf build-output
94+
- name: Verify required secrets
95+
run: |
96+
if [ -z "${LIVE_MASTER_ACCOUNT}" ]; then
97+
echo "LIVE_MASTER_ACCOUNT is not set for network ${{ matrix.network }}" >&2
98+
exit 1
99+
fi
100+
if [ -z "${LOCAL_MASTER_ACCOUNT}" ]; then
101+
echo "LOCAL_MASTER_ACCOUNT is not set for network ${{ matrix.network }}" >&2
102+
exit 1
103+
fi
104+
- name: Run health check (${{ matrix.network }})
105+
run: NETWORK=${{ matrix.network }} pnpm run test:e2e:ci -- packages/e2e/src/e2e.spec.ts --testNamePattern "^all "
106+
timeout-minutes: 10
107+
108+
release:
109+
name: Release
110+
needs: e2e
111+
runs-on: ubuntu-latest
112+
if: github.event_name == 'push' && needs.e2e.result == 'success'
113+
steps:
114+
- name: Check NPM Token
115+
run: |
116+
if [ -z "${{ secrets.NODE_AUTH_TOKEN }}" ]; then
117+
echo "❌ NODE_AUTH_TOKEN secret is not set. Please add it to repository secrets."
118+
exit 1
119+
else
120+
echo "✅ NODE_AUTH_TOKEN secret is available."
121+
fi
122+
123+
- uses: actions/checkout@v4
124+
with:
125+
fetch-depth: 0
126+
ref: ${{ github.ref }}
127+
128+
- uses: pnpm/action-setup@v4
129+
with:
130+
version: 9.15.0
131+
132+
- uses: actions/setup-node@v4
133+
with:
134+
node-version: 22.18.0
135+
registry-url: https://registry.npmjs.org
136+
cache: pnpm
137+
cache-dependency-path: pnpm-lock.yaml
138+
139+
- name: Enable corepack + pin pnpm
140+
run: |
141+
corepack enable
142+
corepack prepare [email protected] --activate
143+
144+
- uses: actions-rs/toolchain@v1
145+
with:
146+
toolchain: stable
147+
override: true
148+
components: rust-std
149+
150+
- uses: jetli/[email protected]
151+
with:
152+
version: latest
153+
154+
- name: Install Dependencies
155+
run: pnpm install --frozen-lockfile
156+
157+
- name: Build packages
158+
run: pnpm run build
159+
160+
- name: Create Release Pull Request or Publish to npm
161+
id: changesets
162+
uses: changesets/action@v1
163+
with:
164+
branch: ${{ github.ref_name }}
165+
version: pnpm changeset version
166+
publish: pnpm changeset publish --access public
167+
commit: "chore(release): version packages"
168+
title: "chore(release): version packages"
169+
env:
170+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
171+
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
172+
173+
- name: Sync docs changelog
174+
run: pnpm sync:docs-changelog
175+
176+
- name: Commit docs changelog
177+
run: |
178+
if git diff --quiet docs/changelog.mdx; then
179+
echo "Docs changelog already up to date."
180+
exit 0
181+
fi
182+
git config user.name "github-actions[bot]"
183+
git config user.email "github-actions[bot]@users.noreply.github.com"
184+
git add docs/changelog.mdx
185+
git commit -m "chore: sync docs changelog"
186+
git push origin ${{ github.ref_name }}

.github/workflows/e2e.yml

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

0 commit comments

Comments
 (0)