Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Jan 5, 2026

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@solana/[email protected]

Minor Changes

  • #134 7c06663 Thanks @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:

    // 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 cf3f247 Thanks @GuiBibeau! - Export React context, return wallet session on wallet connect, and fix circular dependencies

@solana/[email protected]

Minor Changes

  • #134 7c06663 Thanks @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:

    // 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

@solana/[email protected]

Patch Changes

@solana/[email protected]

Patch Changes

@solana/[email protected]

Patch Changes

@solana/[email protected]

Patch Changes

@github-actions github-actions bot force-pushed the changeset-release/main branch from c17fc6f to ad62212 Compare January 5, 2026 08:17
@GuiBibeau GuiBibeau merged commit 8982715 into main Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant