Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0xapp123/nft-tierbreeding-solana
This project is swapping 2 NFTs in one collection(Tier1) to new NFT in other collection(Tier2).
https://github.com/0xapp123/nft-tierbreeding-solana
anchor backend breeding collection frontend nft react tier
Last synced: 29 days ago
JSON representation
This project is swapping 2 NFTs in one collection(Tier1) to new NFT in other collection(Tier2).
- Host: GitHub
- URL: https://github.com/0xapp123/nft-tierbreeding-solana
- Owner: 0xapp123
- Created: 2024-04-03T20:59:28.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-04-09T09:36:36.000Z (10 months ago)
- Last Synced: 2024-11-10T12:46:00.577Z (3 months ago)
- Topics: anchor, backend, breeding, collection, frontend, nft, react, tier
- Language: TypeScript
- Homepage:
- Size: 311 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EUS NFT SWAP
This project is swapping 2 NFTs in one collection(Tier1) to new NFT in other collection(Tier2).## Backend
### Install Dependencies
- Install `node` and `yarn`
- Install `ts-node` as global command
- Confirm the solana wallet preparation: `/home/fury/.config/solana/id.json` in test case### Usage
- Main script source for all functionality is here: `/cli/script.ts`
- Program account types are declared here: `/cli/types.ts`
- Idl to make the JS binding easy is here: `/cli/staking_program.json`### Features
#### As a Smart Contract Owner
For the first time use, the Smart Contract Owner should `initialize` the Smart Contract for global account allocation.
- `initProject`
- `add`
#### Users
Users can use `breed` to swap 2 NFTs to another 1.
In this project, you can use params of `NFT addresses`, `wallet address`, and `tier`.
For example, if you want to swap 2 Tier1 NFTs to 1 Tier2,
`breed(wallet.publicKey, new PublicKey('Hp..ZvG'), new PublicKey('m1..K2p'), 2)`## Minimal-UI
### Install Dependencies
- Install `node` and `yarn`### Usage
- Main script source for all functionality is here: `yarn start`### Features
The UI has 3 parts:
- Header(Heading, WalletConnect Button)
- NFT address List(According to the Tiers: Tier1, Tier2, Tier3)
- Swap(NFT address Inputs, Swap Button, New NFT address which you will receive)