Skip to content

0xSabonis/solana-token2022-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Token2022 to SPL Wrapper

Overview

This program allows wrapping of Token2022 Solana tokens into SPL tokens. Each token created using Token2022 can be wrapped into its unique SPL token, which can then be used across various applications on the Solana blockchain.

This is an early release and currently supports only the transfer fee extension.

Features

  • Wrap Token2022 tokens into SPL tokens.
  • Support for transfer fee extension.
  • Enables cross-application usage of wrapped tokens.

Installation

Ensure you have the following installed:

Clone the Repository

git clone https://github.com/your-repo/token2022-spl-wrapper.git
cd token2022-spl-wrapper

Build the Program

cargo build --release

Usage

Deploy the Program

Ensure your Solana CLI is configured with the correct network:

solana config set --url https://api.mainnet-beta.solana.com

Deploy the program using:

solana program deploy target/release/token2022_spl_wrapper.so

Wrapping a Token2022 Token

To wrap a Token2022 token into an SPL token, call the program with the appropriate parameters:

solana program invoke \
  --account <token2022-mint-address> \
  --account <destination-spl-mint-address> \
  --signer <your-wallet-keypair.json>

Contact

Telegram: Dogewhiz

Releases

No releases published

Packages

No packages published