{"id":18780534,"url":"https://github.com/barkprotocol/tiered-token-example","last_synced_at":"2025-10-07T11:03:41.619Z","repository":{"id":254975198,"uuid":"848122466","full_name":"barkprotocol/tiered-token-example","owner":"barkprotocol","description":"As part of the BARK, the integration of Solana's blockchain technology introduces an innovative approach to managing and utilizing CNFTs (Chain-Native NFTs) through a tiered token system. This section outlines the advantages of leveraging Solana’s high-performance blockchain and details the structure and benefits of the tiered token model.","archived":false,"fork":false,"pushed_at":"2024-08-27T08:33:23.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T10:44:16.569Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barkprotocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-27T07:07:48.000Z","updated_at":"2024-08-27T08:33:26.000Z","dependencies_parsed_at":"2024-08-27T09:25:58.011Z","dependency_job_id":"0d9ab87e-3baf-4e6b-9f86-b698519522f7","html_url":"https://github.com/barkprotocol/tiered-token-example","commit_stats":null,"previous_names":["barkprotocol/tiered-token-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Ftiered-token-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Ftiered-token-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Ftiered-token-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Ftiered-token-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barkprotocol","download_url":"https://codeload.github.com/barkprotocol/tiered-token-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239696460,"owners_count":19682241,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T20:26:58.031Z","updated_at":"2025-10-07T11:03:36.566Z","avatar_url":"https://github.com/barkprotocol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BARK NFT Project\n\nWelcome to the BARK NFT project! This repository provides a comprehensive guide to deploying and managing NFTs on the Solana blockchain. It includes instructions for creating NFT collections, minting compressed NFTs, and managing metadata.\n\n## Table of Contents\n\n- [Introduction](#introduction)\n- [Prerequisites](#prerequisites)\n- [Folder Structure](#folder-structure)\n- [Setup Instructions](#setup-instructions)\n- [Prepare Your NFT Assets](#prepare-your-nft-assets)\n- [Create an NFT Collection](#create-an-nft-collection)\n- [Mint Compressed NFTs](#mint-compressed-nfts)\n- [Configuration](#configuration)\n- [Additional Tips](#additional-tips)\n- [License](#license)\n\n## Introduction\n\nThis project outlines the steps to deploy and manage NFTs on the Solana blockchain using the Metaplex and Bubblegum libraries. The setup includes creating an NFT collection and minting compressed NFTs.\n\n## Prerequisites\n\nBefore you begin, ensure you have the following tools installed and configured:\n\n- **Solana CLI**: For interacting with the Solana blockchain.\n- **Rust**: Required for building and deploying smart contracts.\n- **Node.js and npm**: For running JavaScript tools.\n- **Metaplex CLI**: To manage Candy Machine operations.\n- **Sugar CLI**: For managing NFT collections.\n- **Umi CLI**: For working with Candy Machine deployments.\n\n## Folder Structure\n\nThe project is organized as follows:\n\n```\ntiered-token-example/\n├── assets/\n│   ├── images/\n│   │   ├── bark-test.png\n│   │   └── test-image.png\n│   ├── metadata/\n│   │   ├── 0.json\n│   │   ├── 1.json\n│   │   └── test-metadata.json\n│   └── scripts/\n│       └── generateMetadata.ts\n├── keypairs/\n│   └── bark-cnft-keypair.json\n├── src/\n│   └── index.ts\n├── scripts/\n│   └── generateKeypair.ts\n├── .env\n├── .gitignore\n├── package.json\n├── tsconfig.json\n└── README.md\n```\n\n## Setup Instructions\n\n### 1. Install Dependencies\n\nRun the following commands to install necessary tools:\n\n```sh\n# Install Solana CLI\nsh -c \"$(curl -sSfL https://release.solana.com/v1.18.18/install)\"\n\n# Install Rust\ncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\n\n# Install Node.js and npm\n# Follow instructions at https://nodejs.org/\n\n# Install Metaplex CLI\nnpm install -g @metaplex/cli\n\n# Install Sugar CLI\ncargo install --git https://github.com/sugardao/sugar\n\n# Install Umi CLI\ncargo install --git https://github.com/umi/umi\n```\n\n### 2. Configure Solana CLI\n\nSet your Solana network to devnet (or testnet/mainnet as needed):\n\n```sh\nsolana config set --url https://api.devnet.solana.com\n```\n\n## Prepare Your NFT Assets\n\n1. **Create and Organize Assets**\n\n   Prepare your images and metadata JSON files. Ensure metadata follows the Metaplex format.\n\n   **Example Metadata JSON (`assets/metadata/0.json`):**\n\n   ```json\n   {\n     \"name\": \"NFT Name\",\n     \"symbol\": \"\",\n     \"uri\": \"https://example.com/nft1.json\",\n     \"seller_fee_basis_points\": 500,\n     \"creators\": [\n       {\n         \"address\": \"your-wallet-address\",\n         \"share\": 100\n       }\n     ],\n     \"attributes\": [\n       { \"trait_type\": \"Trait\", \"value\": \"Value\" }\n     ],\n     \"image\": \"https://example.com/images/nft1.png\",\n     \"description\": \"Description of the NFT.\",\n     \"external_url\": \"https://example.com/nft1\",\n     \"background_color\": \"#FFFFFF\"\n   }\n   ```\n\n2. **Upload Assets**\n\n   Upload your assets to a decentralized storage solution (e.g., Arweave, IPFS) and update the `uri` fields in your metadata accordingly.\n\n## Create an NFT Collection\n\nUse the `scripts/create-collection.ts` script to create and configure an NFT collection.\n\n**Example Usage:**\n\n```sh\nts-node scripts/create-collection.ts\n```\n\n## Mint Compressed NFTs\n\nUse the `scripts/mint-compressed-nft.ts` script to mint a compressed NFT, either to a collection or without one.\n\n**Example Usage:**\n\n```sh\nts-node scripts/mint-compressed-nft.ts\n```\n\nUpdate the script with the required parameters such as `leafOwner`, `merkleTree`, `collectionMint`, and `metadata`.\n\n## Configuration\n\nConfiguration files are located in the root directory:\n\n- **`.env`**: Contains environment variables such as network settings and keypair paths.\n- **`umi-config.ts`**: Contains Umi configuration.\n- **`metaplex-config.json`**: Contains Metaplex configuration.\n- **`candy-machine-config.json`**: Contains Candy Machine configuration.\n\n**Example `.env` File:**\n\n```dotenv\n# Solana Network Configuration\nSOLANA_RPC_URL=https://api.devnet.solana.com\nNETWORK=devnet\nSOLANA_PROGRAM_ID=YOUR_PROGRAM_ID\n\n# Example API URL and secret key (if applicable)\nAPI_URL=https://api.example.com\nSECRET_KEY=mysecretkey\n\n# Keypair\nKEYPAIR_PATH=keypairs/bark-cnft-keypair.json\n```\n\n## Additional Tips\n\n- **Testing**: Test your deployment on Solana’s devnet or testnet before launching on the mainnet.\n- **Security**: Protect your wallet and private keys. Never share them.\n- **Documentation**: Refer to the [Metaplex documentation](https://docs.metaplex.com/) and [Solana documentation](https://docs.solana.com/) for detailed instructions.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarkprotocol%2Ftiered-token-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarkprotocol%2Ftiered-token-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarkprotocol%2Ftiered-token-example/lists"}