The contents of this repo is described in the following blog posts:
- https://scribe.accessprotocol.co/access-protocol/cnft-operations-in-an-on-chain-program-clovocpxc0001i808lss4n078
- https://scribe.accessprotocol.co/access-protocol/collection-and-merkle-tree-on-chain-maintenance-clpcuuvlv0001jl086ubxwawh
- https://scribe.accessprotocol.co/access-protocol/permissionless-merkle-tree-attack-clr3qabi6000112i2yti2ut2q
This repo is a work in progress.
The contract needs to be built on Devnet/Mainnet as there is the dependency on the Bubblegum contract.
To run the tests you need to create a tree first and fill the appropriate constants in ./tests/nft-program.ts
This is an example, any improvements are welcome.