Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions .changeset/add-wsol-wrap-unwrap-helpers.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/export-context-wallet-session.md

This file was deleted.

8 changes: 8 additions & 0 deletions examples/nextjs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @solana/example-nextjs

## 0.0.18

### Patch Changes

- Updated dependencies [[`7c06663`](https://github.com/solana-foundation/framework-kit/commit/7c066635b1d889e878a99c36dfb894b13d13047f), [`cf3f247`](https://github.com/solana-foundation/framework-kit/commit/cf3f24755fd169c38d053b782c4a1abb3aa467ee)]:
- @solana/[email protected]
- @solana/[email protected]

## 0.0.17

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@solana/example-nextjs",
"private": true,
"version": "0.0.17",
"version": "0.0.18",
"type": "module",
"scripts": {
"dev": "next dev",
Expand Down
8 changes: 8 additions & 0 deletions examples/vite-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @solana/example-vite-react

## 0.0.28

### Patch Changes

- Updated dependencies [[`7c06663`](https://github.com/solana-foundation/framework-kit/commit/7c066635b1d889e878a99c36dfb894b13d13047f), [`cf3f247`](https://github.com/solana-foundation/framework-kit/commit/cf3f24755fd169c38d053b782c4a1abb3aa467ee)]:
- @solana/[email protected]
- @solana/[email protected]

## 0.0.27

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/vite-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@solana/example-vite-react",
"private": true,
"version": "0.0.27",
"version": "0.0.28",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
40 changes: 40 additions & 0 deletions packages/client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# @solana/client

## 1.4.0

### Minor Changes

- [#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

Adds helper functions to easily wrap native SOL into Wrapped SOL (wSOL) and unwrap it back:

**@solana/client:**

- `createWsolHelper(runtime)` - Factory function to create wSOL helpers
- `WsolHelper.sendWrap({ amount, authority })` - Wrap SOL to wSOL
- `WsolHelper.sendUnwrap({ authority })` - Unwrap wSOL back to SOL (closes the account)
- `WsolHelper.fetchWsolBalance(owner)` - Get wSOL balance
- `WsolHelper.deriveWsolAddress(owner)` - Derive the wSOL ATA address
- `WRAPPED_SOL_MINT` - The wSOL mint address constant
- `createWsolController()` - Controller for React integration

**@solana/react-hooks:**

- `useWrapSol()` - Hook for wrapping/unwrapping SOL with status tracking

Example usage:

```ts
// Using the client helper
const wsol = client.wsol;
await wsol.sendWrap({ amount: 1_000_000_000n, authority: session });
await wsol.sendUnwrap({ authority: session });

// Using the React hook
const { wrap, unwrap, balance, isWrapping, isUnwrapping } = useWrapSol();
await wrap({ amount: 1_000_000_000n });
await unwrap({});
```

### Patch Changes

- [#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

## 1.3.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@solana/client",
"version": "1.3.0",
"version": "1.4.0",
"description": "Framework-agnostic Solana client orchestration layer powering higher-level experiences",
"exports": {
".": {
Expand Down
43 changes: 43 additions & 0 deletions packages/react-hooks/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
# @solana/react-hooks

## 1.2.0

### Minor Changes

- [#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

Adds helper functions to easily wrap native SOL into Wrapped SOL (wSOL) and unwrap it back:

**@solana/client:**

- `createWsolHelper(runtime)` - Factory function to create wSOL helpers
- `WsolHelper.sendWrap({ amount, authority })` - Wrap SOL to wSOL
- `WsolHelper.sendUnwrap({ authority })` - Unwrap wSOL back to SOL (closes the account)
- `WsolHelper.fetchWsolBalance(owner)` - Get wSOL balance
- `WsolHelper.deriveWsolAddress(owner)` - Derive the wSOL ATA address
- `WRAPPED_SOL_MINT` - The wSOL mint address constant
- `createWsolController()` - Controller for React integration

**@solana/react-hooks:**

- `useWrapSol()` - Hook for wrapping/unwrapping SOL with status tracking

Example usage:

```ts
// Using the client helper
const wsol = client.wsol;
await wsol.sendWrap({ amount: 1_000_000_000n, authority: session });
await wsol.sendUnwrap({ authority: session });

// Using the React hook
const { wrap, unwrap, balance, isWrapping, isUnwrapping } = useWrapSol();
await wrap({ amount: 1_000_000_000n });
await unwrap({});
```

### Patch Changes

- [#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

- Updated dependencies [[`7c06663`](https://github.com/solana-foundation/framework-kit/commit/7c066635b1d889e878a99c36dfb894b13d13047f), [`cf3f247`](https://github.com/solana-foundation/framework-kit/commit/cf3f24755fd169c38d053b782c4a1abb3aa467ee)]:
- @solana/[email protected]

## 1.1.12

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-hooks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@solana/react-hooks",
"version": "1.1.12",
"version": "1.2.0",
"description": "React hooks for the @solana/client Solana client",
"exports": {
"browser": "./dist/index.browser.mjs",
Expand Down
7 changes: 7 additions & 0 deletions packages/web3-compat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @solana/web3-compat

## 0.0.17

### Patch Changes

- Updated dependencies [[`7c06663`](https://github.com/solana-foundation/framework-kit/commit/7c066635b1d889e878a99c36dfb894b13d13047f), [`cf3f247`](https://github.com/solana-foundation/framework-kit/commit/cf3f24755fd169c38d053b782c4a1abb3aa467ee)]:
- @solana/[email protected]

## 0.0.16

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-compat/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@solana/web3-compat",
"version": "0.0.16",
"version": "0.0.17",
"description": "Compatibility layer that preserves the web3.js API while delegating to Kit primitives under the hood",
"exports": {
"edge-light": {
Expand Down
8 changes: 8 additions & 0 deletions tests/types-smoke/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @solana/test-types-smoke

## 0.0.27

### Patch Changes

- Updated dependencies [[`7c06663`](https://github.com/solana-foundation/framework-kit/commit/7c066635b1d889e878a99c36dfb894b13d13047f), [`cf3f247`](https://github.com/solana-foundation/framework-kit/commit/cf3f24755fd169c38d053b782c4a1abb3aa467ee)]:
- @solana/[email protected]
- @solana/[email protected]

## 0.0.26

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion tests/types-smoke/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@solana/test-types-smoke",
"version": "0.0.26",
"version": "0.0.27",
"private": true,
"type": "module",
"scripts": {
Expand Down