Skip to content

Commit de71681

Browse files
committed
Merge branch 'naga' of github.com:LIT-Protocol/js-sdk into feature/jss-35-naga-js-sdk-wrapped-keys-implementation
2 parents 1ae7240 + 458d189 commit de71681

37 files changed

+417
-247
lines changed

.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] }}

docs/changelog.mdx

Lines changed: 90 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@ rss: true
66

77
| Package | Latest version | Summary |
88
| ------- | -------------- | ------- |
9-
| [@lit-protocol/lit-client](#lit-client) | [8.0.2](https://www.npmjs.com/package/%40lit-protocol%2Flit-client) | - |
10-
| [@lit-protocol/auth](#auth) | [8.0.2](https://www.npmjs.com/package/%40lit-protocol%2Fauth) | - |
11-
| [@lit-protocol/networks](#networks) | [8.0.2](https://www.npmjs.com/package/%40lit-protocol%2Fnetworks) | Updated dependencies |
9+
| [@lit-protocol/lit-client](#lit-client) | [8.1.0](https://www.npmjs.com/package/%40lit-protocol%2Flit-client) | Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually. |
10+
| [@lit-protocol/auth](#auth) | [8.1.0](https://www.npmjs.com/package/%40lit-protocol%2Fauth) | Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually. |
11+
| [@lit-protocol/networks](#networks) | [8.1.0](https://www.npmjs.com/package/%40lit-protocol%2Fnetworks) | Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually. |
12+
| [@lit-protocol/auth-services](#auth-services) | [2.0.3](https://www.npmjs.com/package/%40lit-protocol%2Fauth-services) | Updated dependencies |
1213
| [@lit-protocol/access-control-conditions](#access-control-conditions) | [8.0.2](https://www.npmjs.com/package/%40lit-protocol%2Faccess-control-conditions) | - |
1314
| [@lit-protocol/access-control-conditions-schemas](#access-control-conditions-schemas) | [8.0.2](https://www.npmjs.com/package/%40lit-protocol%2Faccess-control-conditions-schemas) | - |
14-
| [@lit-protocol/auth-helpers](#auth-helpers) | [8.0.2](https://www.npmjs.com/package/%40lit-protocol%2Fauth-helpers) | - |
15-
| [@lit-protocol/constants](#constants) | [8.0.2](https://www.npmjs.com/package/%40lit-protocol%2Fconstants) | Updated dependencies |
16-
| [@lit-protocol/contracts](#contracts) | [0.5.3](https://www.npmjs.com/package/%40lit-protocol%2Fcontracts) | release `naga-test` network support |
15+
| [@lit-protocol/artillery](#artillery) | [0.0.4](https://www.npmjs.com/package/%40lit-protocol%2Fartillery) | @lit-protocol/e2e@2.0.0 |
16+
| [@lit-protocol/auth-helpers](#auth-helpers) | [8.1.0](https://www.npmjs.com/package/%40lit-protocol%2Fauth-helpers) | Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually. |
17+
| [@lit-protocol/constants](#constants) | [8.0.3](https://www.npmjs.com/package/%40lit-protocol%2Fconstants) | Updated dependencies |
18+
| [@lit-protocol/contracts](#contracts) | [0.6.0](https://www.npmjs.com/package/%40lit-protocol%2Fcontracts) | Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually. |
1719
| [@lit-protocol/crypto](#crypto) | [8.0.2](https://www.npmjs.com/package/%40lit-protocol%2Fcrypto) | - |
20+
| [@lit-protocol/e2e](#e2e) | [2.0.0](https://www.npmjs.com/package/%40lit-protocol%2Fe2e) | Updated dependencies |
1821
| [@lit-protocol/logger](#logger) | [8.0.2](https://www.npmjs.com/package/%40lit-protocol%2Flogger) | - |
1922
| [@lit-protocol/schemas](#schemas) | [8.0.2](https://www.npmjs.com/package/%40lit-protocol%2Fschemas) | - |
2023
| [@lit-protocol/types](#types) | [8.0.2](https://www.npmjs.com/package/%40lit-protocol%2Ftypes) | - |
@@ -24,38 +27,64 @@ rss: true
2427

2528
<Update
2629
label="lit-client"
27-
description="v8.0.2"
28-
tags={["Release"]}
29-
rss={{ title: "lit-client", description: "No release notes provided yet." }}
30+
description="v8.1.0"
31+
tags={["Minor Changes"]}
32+
rss={{ title: "lit-client", description: "Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually." }}
3033
id="lit-client"
3134
>
3235

33-
No release notes available.
36+
## Minor Changes
37+
38+
- Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually.
3439
</Update>
3540

3641
<Update
3742
label="auth"
38-
description="v8.0.2"
39-
tags={["Release"]}
40-
rss={{ title: "auth", description: "No release notes provided yet." }}
43+
description="v8.1.0"
44+
tags={["Minor Changes", "Patch Changes"]}
45+
rss={{ title: "auth", description: "Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually." }}
4146
id="auth"
4247
>
4348

44-
No release notes available.
49+
## Minor Changes
50+
51+
- Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually.
52+
53+
## Patch Changes
54+
55+
- Allows `WalletClientAuthenticator.authenticate` to build SIWE messages with user-specified fields (`domain`, `uri`, `statement`, etc.) while still managing the nonce internally.
4556
</Update>
4657

4758
<Update
4859
label="networks"
49-
description="v8.0.2"
50-
tags={["Patch Changes"]}
51-
rss={{ title: "networks", description: "Updated dependencies" }}
60+
description="v8.1.0"
61+
tags={["Minor Changes", "Patch Changes"]}
62+
rss={{ title: "networks", description: "Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually." }}
5263
id="networks"
5364
>
5465

66+
## Minor Changes
67+
68+
- Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually.
69+
70+
## Patch Changes
71+
72+
- Updated dependencies
73+
- @lit-protocol/contracts@0.6.0
74+
</Update>
75+
76+
<Update
77+
label="auth-services"
78+
description="v2.0.3"
79+
tags={["Patch Changes"]}
80+
rss={{ title: "auth-services", description: "Updated dependencies" }}
81+
id="auth-services"
82+
>
83+
5584
## Patch Changes
5685

5786
- Updated dependencies
58-
- @lit-protocol/contracts@0.5.3
87+
- @lit-protocol/contracts@0.6.0
5988
</Update>
6089

6190
<Update
@@ -80,20 +109,35 @@ rss: true
80109
No release notes available.
81110
</Update>
82111

112+
<Update
113+
label="artillery"
114+
description="v0.0.4"
115+
tags={["Patch Changes"]}
116+
rss={{ title: "artillery", description: "@lit-protocol/[email protected]" }}
117+
id="artillery"
118+
>
119+
120+
## Patch Changes
121+
122+
- @lit-protocol/e2e@2.0.0
123+
</Update>
124+
83125
<Update
84126
label="auth-helpers"
85-
description="v8.0.2"
86-
tags={["Release"]}
87-
rss={{ title: "auth-helpers", description: "No release notes provided yet." }}
127+
description="v8.1.0"
128+
tags={["Minor Changes"]}
129+
rss={{ title: "auth-helpers", description: "Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually." }}
88130
id="auth-helpers"
89131
>
90132

91-
No release notes available.
133+
## Minor Changes
134+
135+
- Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually.
92136
</Update>
93137

94138
<Update
95139
label="constants"
96-
description="v8.0.2"
140+
description="v8.0.3"
97141
tags={["Patch Changes"]}
98142
rss={{ title: "constants", description: "Updated dependencies" }}
99143
id="constants"
@@ -102,20 +146,20 @@ rss: true
102146
## Patch Changes
103147

104148
- Updated dependencies
105-
- @lit-protocol/contracts@0.5.3
149+
- @lit-protocol/contracts@0.6.0
106150
</Update>
107151

108152
<Update
109153
label="contracts"
110-
description="v0.5.3"
111-
tags={["Patch Changes"]}
112-
rss={{ title: "contracts", description: "release `naga-test` network support" }}
154+
description="v0.6.0"
155+
tags={["Minor Changes"]}
156+
rss={{ title: "contracts", description: "Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually." }}
113157
id="contracts"
114158
>
115159

116-
## Patch Changes
160+
## Minor Changes
117161

118-
- release `naga-test` network support
162+
- Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually.
119163
</Update>
120164

121165
<Update
@@ -129,6 +173,23 @@ rss: true
129173
No release notes available.
130174
</Update>
131175

176+
<Update
177+
label="e2e"
178+
description="v2.0.0"
179+
tags={["Patch Changes"]}
180+
rss={{ title: "e2e", description: "Updated dependencies" }}
181+
id="e2e"
182+
>
183+
184+
## Patch Changes
185+
186+
- Updated dependencies
187+
- Updated dependencies
188+
- @lit-protocol/auth@8.1.0
189+
- @lit-protocol/lit-client@8.1.0
190+
- @lit-protocol/networks@8.1.0
191+
</Update>
192+
132193
<Update
133194
label="logger"
134195
description="v8.0.2"

docs/docs.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://mintlify.com/docs.json",
33
"theme": "mint",
4-
"name": "Lit JS SDK Documentation",
4+
"name": "Lit Protocol Documentation",
55
"colors": {
66
"primary": "#EA580C",
77
"light": "#F97316",
@@ -125,6 +125,18 @@
125125
"sdk/resources/supported-evm-chains",
126126
"sdk/resources/network-status"
127127
]
128+
},
129+
{
130+
"group": "Guides",
131+
"pages": [
132+
"guides/lit-action-sign-as-action"
133+
]
134+
},
135+
{
136+
"group": "FAQ",
137+
"pages": [
138+
"faqs/index"
139+
]
128140
}
129141
]
130142
},

docs/faqs/index.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: 'FAQ'
3+
description: 'Common questions about using the Lit JS SDK'
4+
---
5+
6+
# Frequently Asked Questions
7+
8+
## What's the default `responseStrategy` for `executeJs` in v8?
9+
10+
The behavior matches v7. When you omit `responseStrategy`, the SDK calls `processLitActionResponseStrategy` with `{ strategy: 'leastCommon' }`. If you provide an unrecognized value, the helper still falls back to `leastCommon`.
11+
12+
This default keeps compatibility with `Lit.Actions.runOnce`. Only the node that runs the `runOnce` block returns a value, so selecting the least-common response ensures that single result is preserved. When `runOnce` is not used, all nodes should emit the same payload, making least- vs most-common equivalent—the former stayed in place because it was the quickest path to enabling the new `runOnce` flow in v8.

docs/governance/governance-architecture.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ Upgrades are reviewed and approved by the Protocol Council, a group of core main
3131
Protocol Council Multisig Address (2 of 3):
3232
[0xC6EBB3ca53D028F419F677Ed45126490331F728b](https://lit-chain-explorer.litprotocol.com/address/0xC6EBB3ca53D028F419F677Ed45126490331F728b?tab=index)
3333

34+
## Ecosystem Funding and Resource Distribution
35+
36+
The system by which funds and resources are allocated to the wider Lit Protocol ecosystem is actively being worked out. LIP-001 proposes to handle this via a new token model, veLITKEY, which would give LITKEY stakers the power to govern token emissions and where funds are allocated.
37+
38+
[Review the proposal](https://litprotocol.discourse.group/t/lip-001-velitkey-a-token-model-for-sovereign-economic-development/14).
39+
3440
## Node Operations
3541

3642
Lit remains a federated network at this stage. This means that the set of node operators responsible for performing threshold cryptographic operations is curated, but members of the community can openly participate pending they meet the hardware and staking requirements.

docs/governance/lit-improvement-proposals.mdx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,21 @@
22
title: "Lit Improvement Proposals (LIPs)"
33
---
44

5-
Lit Improvement Proposals (LIPs) are used to propose new features and upgrades to the core Lit Protocol architecture (including smart contracts) and surrounding ecosystem. LIPs are organized into three categories based on their specific content and area of focus. As covered in the sections above, these categories include protocol level improvements, treasury allocation, and governance improvement proposals. LIPs are used to publicly and transparently track protocol upgrades, new features, and growth initiatives through a standardized template and workflow.
5+
Lit Improvement Proposals (LIPs) are used to propose new features and upgrades to the core Lit Protocol architecture (including smart contracts) and surrounding ecosystem. LIPs are organized into three categories based on their specific content and area of focus. As covered in the sections above, these categories include protocol level improvements, resource allocation, and governance improvement proposals. LIPs are used to publicly and transparently track protocol upgrades, new features, and growth initiatives through a standardized template and workflow.
66

77
All LIPs go through the LIP process (documented below) before being passed off to the Protocol Council for final review and approval. If approved, the proposal is then passed off to the relevant parties for execution / implementation.
88

99
## LIP Process
1010

11-
All LIPs are initially submitted and discussed in the relevant category of the Lit governance forum. After a given proposal has moved past the “idea” stage, it must be submitted as a pull request to the LIP repo on GitHub.
11+
All LIPs are initially submitted and discussed in the relevant category of the Lit governance forum. After a given proposal has moved past the initial ideation stage, it must be submitted as a pull request to the LIP repo on GitHub.
1212

1313
All LIPs are tagged on the Lit governance forum and associated GitHub repo based on the specific stage they are in:
1414

15-
- “Idea”: initial proposal ideas are submitted to the governance forum for discussion and refinement.
16-
- “Draft”: after a proposal has moved past the “idea” stage, it is submitted to the LIP repo as an official draft proposal. The template can be found here.
17-
- “Review”: after a draft proposal has been submitted, it is reviewed by the relevant parties which vary according to the context of the proposal itself.
18-
- “Vote”: proposals that move to the “vote” stage are passed off to the Protocol Council for final review and approval.
19-
- “Accepted”: proposals that have been reviewed and accepted by the Protocol Council.
20-
- “Implementing”: proposals that are actively being implemented.
21-
- “Completed”: proposals that have been accepted and implemented.
15+
- “Draft”: initial proposals are to be submitted to the [governance forum](https://litprotocol.discourse.group/) for discussion and refinement. After a proposal has moved past the initial draft stage, it is submitted to the [LIP repo](https://github.com/LIT-Protocol/Lit-Improvement-Proposals) for review.
16+
- “Review”: after a draft proposal has been submitted, it is reviewed by the relevant parties which vary according to the context of the proposal itself.
17+
- “Accepted”: proposals that have been reviewed and accepted by the Protocol Council and are in active implementation.
2218
- “Rejected”: proposals that have been rejected by the Protocol Council.
19+
- “Completed”: proposals that have been accepted, implemented, and merged.
2320
- “Closed”: proposals that have been closed.
2421

2522
## Lit Protocol Council Review Process
@@ -30,8 +27,8 @@ After a given LIP has been reviewed, the Protocol Council will report their deci
3027

3128
## Submitting LIPs
3229

33-
At this time, the Lit Protocol development company will be the primary party tasked with creating and submitting new LIPs. However, anyone can suggest improvements or changes by starting a discussion on the Lit governance forum using the applicable “idea” tag. All suggestions will be reviewed and prioritized according to current protocol objectives and available resources.
30+
At this time, the Lit Protocol development company will be the primary party tasked with creating and submitting new LIPs. However, anyone can suggest improvements or changes by starting a discussion on the Lit [governance forum](https://litprotocol.discourse.group/). All suggestions will be reviewed and prioritized according to current protocol objectives and available resources.
3431

35-
As discussed in the sections above, the Protocol Council will be the core body tasked with reviewing and approving or rejecting all LIPs at this time. Once Lit Protocol and its associated governance processes have reached a greater level of maturity and stability, the Protocol Council may be dissolved entirely with governance decision making being passed off to relevant ecosystem stakeholders and working groups.
32+
The Protocol Council—in coordination with the Lit Association—will be the core body tasked with reviewing and approving or rejecting all LIPs at this time. Once Lit Protocol and its associated governance processes have reached a greater level of maturity and stability, the Protocol Council may be dissolved entirely with governance decision making being passed off to relevant ecosystem stakeholders and working groups.
3633

3734

0 commit comments

Comments
 (0)