Skip to content

Commit 6c57777

Browse files
committed
Merge branch 'master' into feat/rpc-2025-08-26
2 parents 1daf255 + e6544c6 commit 6c57777

File tree

34 files changed

+260
-34
lines changed

34 files changed

+260
-34
lines changed

.github/workflows/health-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: E2E Tests and Health Checks
22

33
on:
44
schedule:
5-
- cron: '*/30 * * * *'
5+
- cron: '*/5 * * * *'
66
workflow_dispatch:
77
inputs:
88
datil_branch:

.github/workflows/prerelease.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: Prerelease Snapshot
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
jobs:
11+
publish:
12+
name: Publish prerelease snapshot
13+
runs-on: ubuntu-latest
14+
env:
15+
RELEASE_BRANCH_PREFIX: 'changeset-release/'
16+
steps:
17+
- name: Ensure Changesets release branch
18+
run: |
19+
if [[ "${GITHUB_REF_NAME}" != ${RELEASE_BRANCH_PREFIX}* ]]; then
20+
echo "❌ This workflow must be triggered on a Changesets release branch. Current branch: ${GITHUB_REF_NAME}"
21+
echo "👉 From the release PR, choose \"Run workflow\" and keep the default branch (changeset-release/...)."
22+
exit 1
23+
fi
24+
25+
- name: Check NPM Token
26+
run: |
27+
if [ -z "${{ secrets.NODE_AUTH_TOKEN }}" ]; then
28+
echo "❌ NODE_AUTH_TOKEN secret is not set. Please add it to repository secrets."
29+
exit 1
30+
else
31+
echo "✅ NODE_AUTH_TOKEN secret is available."
32+
fi
33+
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
with:
37+
fetch-depth: 0
38+
39+
- name: Configure git user
40+
run: |
41+
git config user.name "github-actions[bot]"
42+
git config user.email "github-actions[bot]@users.noreply.github.com"
43+
44+
- name: Setup Bun
45+
uses: oven-sh/setup-bun@v1
46+
with:
47+
bun-version: latest
48+
49+
- name: Install rust
50+
uses: actions-rs/toolchain@v1
51+
with:
52+
toolchain: stable
53+
override: true
54+
components: rust-std
55+
56+
- name: Install wasm-pack
57+
uses: jetli/[email protected]
58+
with:
59+
version: 'latest'
60+
61+
- name: Setup Node
62+
uses: actions/setup-node@v4
63+
with:
64+
node-version: '22.18.0'
65+
registry-url: 'https://registry.npmjs.org'
66+
67+
- name: Install project dependencies
68+
run: bun install --frozen-lockfile
69+
70+
- name: Apply snapshot versions
71+
run: bunx changeset version --snapshot beta
72+
73+
- name: Build workspace
74+
run: bun run build
75+
76+
- name: Publish prerelease packages
77+
env:
78+
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
79+
run: bunx changeset publish --tag beta
80+
81+
- name: Reset working tree
82+
if: always()
83+
run: |
84+
git reset --hard HEAD
85+
git clean -fd
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
name: Release Docker Images
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
auth-server-released:
7+
description: 'Set to true to push docker images.'
8+
required: true
9+
type: boolean
10+
default: false
11+
custom-tag:
12+
description: 'Optional tag name to apply in addition to ref/sha tags.'
13+
required: false
14+
default: ''
15+
16+
permissions:
17+
contents: read
18+
packages: write
19+
20+
env:
21+
NODE_VERSION: '22.18.0'
22+
PNPM_VERSION: 9.15.0
23+
24+
jobs:
25+
docker-images:
26+
name: Build and Push
27+
if: ${{ github.event.inputs.auth-server-released == 'true' }}
28+
runs-on: ubuntu-latest
29+
strategy:
30+
matrix:
31+
app: [lit-auth-server, lit-login-server]
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
with:
36+
fetch-depth: 0
37+
38+
- name: Setup Node
39+
uses: actions/setup-node@v4
40+
with:
41+
node-version: ${{ env.NODE_VERSION }}
42+
43+
- name: Setup PNPM
44+
uses: pnpm/action-setup@v4
45+
with:
46+
version: ${{ env.PNPM_VERSION }}
47+
48+
- name: Install rust
49+
uses: actions-rs/toolchain@v1
50+
with:
51+
toolchain: stable
52+
override: true
53+
components: rust-std
54+
55+
- name: Install wasm-pack
56+
uses: jetli/[email protected]
57+
with:
58+
version: 'latest'
59+
60+
- name: Install project dependencies
61+
run: pnpm install --frozen-lockfile
62+
63+
- name: Set up Docker Buildx
64+
uses: docker/setup-buildx-action@v3
65+
66+
- name: Log in to GHCR
67+
uses: docker/login-action@v3
68+
with:
69+
registry: ghcr.io
70+
username: ${{ secrets.GHCR_USERNAME || github.repository_owner }}
71+
password: ${{ secrets.GHCR_TOKEN || secrets.GITHUB_TOKEN }}
72+
73+
- name: Extract Docker metadata
74+
id: meta
75+
uses: docker/metadata-action@v5
76+
with:
77+
images: ghcr.io/lit-protocol/${{ matrix.app }}
78+
tags: |
79+
type=ref,event=branch
80+
type=ref,event=tag
81+
type=sha
82+
type=raw,value=latest
83+
84+
- name: Build image with Nx target
85+
run: pnpm nx run ${{ matrix.app }}:docker-build
86+
87+
- name: Tag and push image
88+
env:
89+
IMAGE_NAME: ${{ matrix.app }}
90+
TAGS: ${{ steps.meta.outputs.tags }}
91+
CUSTOM_TAG: ${{ github.event.inputs.custom-tag }}
92+
run: |
93+
tags_to_push="$TAGS"
94+
if [ -n "$CUSTOM_TAG" ]; then
95+
tags_to_push="$tags_to_push"$'\n'"ghcr.io/lit-protocol/${IMAGE_NAME}:$CUSTOM_TAG"
96+
fi
97+
echo "$tags_to_push" | while IFS= read -r tag; do
98+
[ -z "$tag" ] && continue
99+
docker tag "$IMAGE_NAME" "$tag"
100+
docker push "$tag"
101+
done
102+
103+
skip:
104+
name: Skip Docker Release
105+
if: ${{ github.event.inputs.auth-server-released != 'true' }}
106+
runs-on: ubuntu-latest
107+
steps:
108+
- run: echo "Skipping docker image publish because auth-server release flag is false."

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
33
"useNx": true,
44
"useWorkspaces": true,
5-
"version": "7.3.0"
5+
"version": "7.3.1"
66
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@cosmjs/proto-signing": "0.30.1",
4343
"@cosmjs/stargate": "0.30.1",
4444
"@dotenvx/dotenvx": "^1.6.4",
45-
"@lit-protocol/accs-schemas": "^0.0.33",
45+
"@lit-protocol/accs-schemas": "^0.0.36",
4646
"@lit-protocol/contracts": "^0.0.74",
4747
"@lit-protocol/lit-status-sdk": "^0.1.8",
4848
"@metamask/eth-sig-util": "5.0.2",

packages/access-control-conditions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"tags": [
2222
"universal"
2323
],
24-
"version": "7.3.0",
24+
"version": "7.3.1",
2525
"main": "./dist/src/index.js",
2626
"typings": "./dist/src/index.d.ts"
2727
}

packages/auth-browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"tags": [
3232
"browser"
3333
],
34-
"version": "7.3.0",
34+
"version": "7.3.1",
3535
"main": "./dist/src/index.js",
3636
"typings": "./dist/src/index.d.ts"
3737
}

packages/auth-helpers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"crypto": false,
2626
"stream": false
2727
},
28-
"version": "7.3.0",
28+
"version": "7.3.1",
2929
"main": "./dist/src/index.js",
3030
"typings": "./dist/src/index.d.ts"
3131
}

packages/constants/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"tags": [
2121
"universal"
2222
],
23-
"version": "7.3.0",
23+
"version": "7.3.1",
2424
"main": "./dist/src/index.js",
2525
"typings": "./dist/src/index.d.ts"
2626
}

packages/constants/src/lib/constants/constants.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,6 +1242,39 @@ export const LIT_CHAINS: LITChain<LITEVMChain> = {
12421242
type: null,
12431243
vmType: 'EVM',
12441244
},
1245+
confluxEspaceMainnet: {
1246+
contractAddress: null,
1247+
chainId: 1030,
1248+
name: 'Conflux eSpace Mainnet',
1249+
symbol: 'CFX',
1250+
decimals: 18,
1251+
rpcUrls: ['evm.confluxrpc.com'],
1252+
blockExplorerUrls: ['https://confluxscan.net/'],
1253+
type: null,
1254+
vmType: 'EVM',
1255+
},
1256+
statusNetworkSepolia: {
1257+
contractAddress: null,
1258+
chainId: 1660990954,
1259+
name: 'Status Network Sepolia',
1260+
symbol: 'FLOW',
1261+
decimals: 18,
1262+
rpcUrls: ['https://public.sepolia.rpc.status.network'],
1263+
blockExplorerUrls: ['https://sepoliascan.status.network'],
1264+
type: null,
1265+
vmType: 'EVM',
1266+
},
1267+
'0gMainnet': {
1268+
contractAddress: null,
1269+
chainId: 16661,
1270+
name: '0G Mainnet',
1271+
symbol: 'FLOW',
1272+
decimals: 18,
1273+
rpcUrls: ['https://evmrpc.0g.ai/ '],
1274+
blockExplorerUrls: ['https://chainscan.0g.ai/'],
1275+
type: null,
1276+
vmType: 'EVM',
1277+
},
12451278
};
12461279

12471280
/**

0 commit comments

Comments
 (0)