John 7c175822b5 update cnft-burn преди 1 година
..
migrations 9fe5a0327f added cnft-burn example преди 1 година
programs 7c175822b5 update cnft-burn преди 1 година
tests 7c175822b5 update cnft-burn преди 1 година
.gitignore 9fe5a0327f added cnft-burn example преди 1 година
.prettierignore 9fe5a0327f added cnft-burn example преди 1 година
Anchor.toml 7c175822b5 update cnft-burn преди 1 година
Cargo.toml 56dafe4b4a add resolver = "2" to fix compile warning преди 1 година
README.md dd63c033ea changes to run the test completely преди 1 година
package.json f116e3891a update to @coral-xyz/spl-token 0.30.0 преди 1 година
tsconfig.json 9fe5a0327f added cnft-burn example преди 1 година

README.md

cnft-burn

This repository contains the cnft-burn program, a Solana Anchor program that allows you to burn compressed NFTs (cNFTs) in your collection. The program interacts with the Metaplex Bubblegum program through CPI to burn cNFTs.

Components

  • programs: Contains the anchor program
  • tests: Contains the tests for the anchor program

Deployment

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

How to run

  1. Configure RPC path in cnft-burn.ts. Personal preference: Helius RPCs.
  2. run anchor build at the root of the project i.e cnft-burn in this case.
  3. run anchor deploy to deploy and test the program on your own cluster.
  4. run anchor test to run the tests.

Acknowledgements

This Example program would not have been possible without the work of:

  • Metaplex for providing the Bubblegum program with ix builders.
  • @nickfrosty for providing the sample code for fetching and creating cNFTs.