Skip to content

Commit 8982715

Browse files
Version Packages (#133)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 7c06663 commit 8982715

File tree

14 files changed

+120
-45
lines changed

14 files changed

+120
-45
lines changed

.changeset/add-wsol-wrap-unwrap-helpers.md

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

.changeset/export-context-wallet-session.md

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

examples/nextjs/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @solana/example-nextjs
22

3+
## 0.0.18
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`7c06663`](https://github.com/solana-foundation/framework-kit/commit/7c066635b1d889e878a99c36dfb894b13d13047f), [`cf3f247`](https://github.com/solana-foundation/framework-kit/commit/cf3f24755fd169c38d053b782c4a1abb3aa467ee)]:
8+
- @solana/client@1.4.0
9+
- @solana/react-hooks@1.2.0
10+
311
## 0.0.17
412

513
### Patch Changes

examples/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@solana/example-nextjs",
33
"private": true,
4-
"version": "0.0.17",
4+
"version": "0.0.18",
55
"type": "module",
66
"scripts": {
77
"dev": "next dev",

examples/vite-react/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @solana/example-vite-react
22

3+
## 0.0.28
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`7c06663`](https://github.com/solana-foundation/framework-kit/commit/7c066635b1d889e878a99c36dfb894b13d13047f), [`cf3f247`](https://github.com/solana-foundation/framework-kit/commit/cf3f24755fd169c38d053b782c4a1abb3aa467ee)]:
8+
- @solana/client@1.4.0
9+
- @solana/react-hooks@1.2.0
10+
311
## 0.0.27
412

513
### Patch Changes

examples/vite-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@solana/example-vite-react",
33
"private": true,
4-
"version": "0.0.27",
4+
"version": "0.0.28",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

packages/client/CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
# @solana/client
22

3+
## 1.4.0
4+
5+
### Minor Changes
6+
7+
- [#134](https://github.com/solana-foundation/framework-kit/pull/134) [`7c06663`](https://github.com/solana-foundation/framework-kit/commit/7c066635b1d889e878a99c36dfb894b13d13047f) Thanks [@GuiBibeau](https://github.com/GuiBibeau)! - Add wrapSol/unwrapSol helpers for wSOL operations
8+
9+
Adds helper functions to easily wrap native SOL into Wrapped SOL (wSOL) and unwrap it back:
10+
11+
**@solana/client:**
12+
13+
- `createWsolHelper(runtime)` - Factory function to create wSOL helpers
14+
- `WsolHelper.sendWrap({ amount, authority })` - Wrap SOL to wSOL
15+
- `WsolHelper.sendUnwrap({ authority })` - Unwrap wSOL back to SOL (closes the account)
16+
- `WsolHelper.fetchWsolBalance(owner)` - Get wSOL balance
17+
- `WsolHelper.deriveWsolAddress(owner)` - Derive the wSOL ATA address
18+
- `WRAPPED_SOL_MINT` - The wSOL mint address constant
19+
- `createWsolController()` - Controller for React integration
20+
21+
**@solana/react-hooks:**
22+
23+
- `useWrapSol()` - Hook for wrapping/unwrapping SOL with status tracking
24+
25+
Example usage:
26+
27+
```ts
28+
// Using the client helper
29+
const wsol = client.wsol;
30+
await wsol.sendWrap({ amount: 1_000_000_000n, authority: session });
31+
await wsol.sendUnwrap({ authority: session });
32+
33+
// Using the React hook
34+
const { wrap, unwrap, balance, isWrapping, isUnwrapping } = useWrapSol();
35+
await wrap({ amount: 1_000_000_000n });
36+
await unwrap({});
37+
```
38+
39+
### Patch Changes
40+
41+
- [#132](https://github.com/solana-foundation/framework-kit/pull/132) [`cf3f247`](https://github.com/solana-foundation/framework-kit/commit/cf3f24755fd169c38d053b782c4a1abb3aa467ee) Thanks [@GuiBibeau](https://github.com/GuiBibeau)! - Export React context, return wallet session on wallet connect, and fix circular dependencies
42+
343
## 1.3.0
444

545
### Minor Changes

packages/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@solana/client",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"description": "Framework-agnostic Solana client orchestration layer powering higher-level experiences",
55
"exports": {
66
".": {

packages/react-hooks/CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,48 @@
11
# @solana/react-hooks
22

3+
## 1.2.0
4+
5+
### Minor Changes
6+
7+
- [#134](https://github.com/solana-foundation/framework-kit/pull/134) [`7c06663`](https://github.com/solana-foundation/framework-kit/commit/7c066635b1d889e878a99c36dfb894b13d13047f) Thanks [@GuiBibeau](https://github.com/GuiBibeau)! - Add wrapSol/unwrapSol helpers for wSOL operations
8+
9+
Adds helper functions to easily wrap native SOL into Wrapped SOL (wSOL) and unwrap it back:
10+
11+
**@solana/client:**
12+
13+
- `createWsolHelper(runtime)` - Factory function to create wSOL helpers
14+
- `WsolHelper.sendWrap({ amount, authority })` - Wrap SOL to wSOL
15+
- `WsolHelper.sendUnwrap({ authority })` - Unwrap wSOL back to SOL (closes the account)
16+
- `WsolHelper.fetchWsolBalance(owner)` - Get wSOL balance
17+
- `WsolHelper.deriveWsolAddress(owner)` - Derive the wSOL ATA address
18+
- `WRAPPED_SOL_MINT` - The wSOL mint address constant
19+
- `createWsolController()` - Controller for React integration
20+
21+
**@solana/react-hooks:**
22+
23+
- `useWrapSol()` - Hook for wrapping/unwrapping SOL with status tracking
24+
25+
Example usage:
26+
27+
```ts
28+
// Using the client helper
29+
const wsol = client.wsol;
30+
await wsol.sendWrap({ amount: 1_000_000_000n, authority: session });
31+
await wsol.sendUnwrap({ authority: session });
32+
33+
// Using the React hook
34+
const { wrap, unwrap, balance, isWrapping, isUnwrapping } = useWrapSol();
35+
await wrap({ amount: 1_000_000_000n });
36+
await unwrap({});
37+
```
38+
39+
### Patch Changes
40+
41+
- [#132](https://github.com/solana-foundation/framework-kit/pull/132) [`cf3f247`](https://github.com/solana-foundation/framework-kit/commit/cf3f24755fd169c38d053b782c4a1abb3aa467ee) Thanks [@GuiBibeau](https://github.com/GuiBibeau)! - Export React context, return wallet session on wallet connect, and fix circular dependencies
42+
43+
- Updated dependencies [[`7c06663`](https://github.com/solana-foundation/framework-kit/commit/7c066635b1d889e878a99c36dfb894b13d13047f), [`cf3f247`](https://github.com/solana-foundation/framework-kit/commit/cf3f24755fd169c38d053b782c4a1abb3aa467ee)]:
44+
- @solana/client@1.4.0
45+
346
## 1.1.12
447

548
### Patch Changes

packages/react-hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@solana/react-hooks",
3-
"version": "1.1.12",
3+
"version": "1.2.0",
44
"description": "React hooks for the @solana/client Solana client",
55
"exports": {
66
"browser": "./dist/index.browser.mjs",

0 commit comments

Comments
 (0)