-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented NFT creation with Liquidity Pool (#224)
# Pull Request Description ## Changes Made This PR adds the following changes: - Implemented NFT creation with integrated liquidity pools in 3land create NFT functionality ## Implementation Details - Each NFT can be created with an associated liquidity pool - Liquidity pools are identified by a unique poolName per wallet - Multiple NFT editions can be created for the same liquidity pool - Liquidity pools support any SPL token - The SPL token used for the liquidity pool matches the NFT edition token - Sale proceeds (primary and secondary) are directed to the liquidity pool - Royalties from sales are automatically added to the liquidity pool - NFT holders can burn their NFT to reclaim their investment - Wallet addresses are restricted to one liquidity pool per poolName per SPL token ## Transaction executed when testing Example transactions created using solana-agent-kit: 1. First NFT edition with pool (pool 1): https://dev.3.land/item/fXajTSwvrFCzaSL9mKE1KtTZ9wpChHC8egeXarMx3oD 2. Second edition with same pool (pool 1): https://dev.3.land/item/8LdRScybmPQXkDdF2wafMSQ159ZDwckG1Pq7EkwGMFwW 3. Third edition with new pool (same SPL token): https://dev.3.land/item/4HogLfgrgMYPpDqQK6Kw4kyGVtc7iu5ftBZuVRiPLm94 4. Fourth edition with new pool (different SPL token): https://dev.3.land/item/FmPSPrNw9AoCCvUceHoXHuaFp2nC7GZEqyBsGpWEsMDM ## Additional Notes - All features have been thoroughly tested and verified working - The implementation maintains backward compatibility with existing NFT creation - Liquidity pool operations are atomic and maintain consistent state - Pool naming restrictions prevent confusion and potential conflicts ## Checklist - [X ] I have tested these changes locally - [ X] I have updated the documentation - [X ] I have added a transaction link
- Loading branch information
Showing
8 changed files
with
420 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters