Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
7c06663Thanks @GuiBibeau! - Add wrapSol/unwrapSol helpers for wSOL operationsAdds helper functions to easily wrap native SOL into Wrapped SOL (wSOL) and unwrap it back:
@solana/client:
createWsolHelper(runtime)- Factory function to create wSOL helpersWsolHelper.sendWrap({ amount, authority })- Wrap SOL to wSOLWsolHelper.sendUnwrap({ authority })- Unwrap wSOL back to SOL (closes the account)WsolHelper.fetchWsolBalance(owner)- Get wSOL balanceWsolHelper.deriveWsolAddress(owner)- Derive the wSOL ATA addressWRAPPED_SOL_MINT- The wSOL mint address constantcreateWsolController()- Controller for React integration@solana/react-hooks:
useWrapSol()- Hook for wrapping/unwrapping SOL with status trackingExample usage:
Patch Changes
cf3f247Thanks @GuiBibeau! - Export React context, return wallet session on wallet connect, and fix circular dependencies@solana/[email protected]
Minor Changes
#134
7c06663Thanks @GuiBibeau! - Add wrapSol/unwrapSol helpers for wSOL operationsAdds helper functions to easily wrap native SOL into Wrapped SOL (wSOL) and unwrap it back:
@solana/client:
createWsolHelper(runtime)- Factory function to create wSOL helpersWsolHelper.sendWrap({ amount, authority })- Wrap SOL to wSOLWsolHelper.sendUnwrap({ authority })- Unwrap wSOL back to SOL (closes the account)WsolHelper.fetchWsolBalance(owner)- Get wSOL balanceWsolHelper.deriveWsolAddress(owner)- Derive the wSOL ATA addressWRAPPED_SOL_MINT- The wSOL mint address constantcreateWsolController()- Controller for React integration@solana/react-hooks:
useWrapSol()- Hook for wrapping/unwrapping SOL with status trackingExample usage:
Patch Changes
#132
cf3f247Thanks @GuiBibeau! - Export React context, return wallet session on wallet connect, and fix circular dependenciesUpdated dependencies [
7c06663,cf3f247]:@solana/[email protected]
Patch Changes
7c06663,cf3f247]:@solana/[email protected]
Patch Changes
7c06663,cf3f247]:@solana/[email protected]
Patch Changes
7c06663,cf3f247]:@solana/[email protected]
Patch Changes
7c06663,cf3f247]: