loopcreativeandy / cnft-vault

A repository to demonstrate using cNFT transfers in Solana programs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solana Program cNFT Transfer example

This repo contains example code of how you can work with Metaplex compressed NFTs inside of Solana Anchor programs.

Components

The Anchor program can be found in the programs folder and app some typescript node scripts to interact with the program from client side.

Deployment

The program is deployed on devnet at CNftyK7T8udPwYRzZUMWzbh79rKrz9a5GwV2wv7iEHpk. You can deploy it yourself by changing the respective values in lib.rs and Anchor.toml.

Limitations

This is just an example implementation. It is missing all logic wheter a transfer should be performed or not (everyone can withdraw any cNFT in the vault). Furthermore it is not optimized for using lowest possible compute. It is intended as a proof of concept and reference implemention only.

Further resources

There is a video being made about this progam that contains further explanations. I will be publised on Solandy's YouTube channel: https://www.youtube.com/solandy

About

A repository to demonstrate using cNFT transfers in Solana programs


Languages

Language:TypeScript 56.3%Language:Rust 43.7%