Skip to content

Commit e36e0a4

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 13e8acb + 50f79b6 commit e36e0a4

35 files changed

+19677
-10860
lines changed

.changeset/dull-walls-notice.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@lit-protocol/contracts': minor
3+
'@lit-protocol/networks': minor
4+
'@lit-protocol/wasm': minor
5+
'@lit-protocol/e2e': minor
6+
---
7+
8+
Naga-local consumers can now point at a local networkContext.json with a lightweight withLocalContext call (or by setting NAGA_LOCAL_CONTEXT_PATH) while the default bundled signatures keep working as before.

docs/sdk/getting-started/payment-manager-setup.mdx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ console.log(`Deposit successful: ${result.hash}`);
102102

103103
</Steps>
104104

105-
## Sponsoring Your Users
105+
## Payment Delegation / Sponsoring Your Users
106106

107107
<Steps>
108108
<Step title="Define spending limit">
@@ -136,7 +136,19 @@ await paymentManager.delegatePaymentsBatch({
136136
```
137137

138138
</CodeGroup>
139+
</Step>
140+
141+
<Step title="(Optional) Inspect Balance">
142+
143+
Optionally inspect Payer/Sponsor Ledger balance
139144

145+
<CodeGroup>
146+
```ts
147+
const balance = await paymentManager.getBalance({
148+
userAddress: viemAccount.address,
149+
});
150+
```
151+
</CodeGroup>
140152
</Step>
141153

142154
<Step title="Remove users (optional)">

jest.e2e.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const localPackages = [
1515
'schemas',
1616
'types',
1717
'wasm',
18+
'e2e',
1819
'wrapped-keys',
1920
'wrapped-keys-lit-actions',
2021
];

0 commit comments

Comments
 (0)