This is the implementation of the Florin token (ƒ) for the ƒXYZ Network, a token that represents financial contributions to the network.
The Florin token is designed to be:
- A ledger of financial support
- A prerequisite for deeper membership or governance access
- A primitive tied to dynamic NFTs, vouchers, and other rights
- A transparent accountability layer for contributors, investors, or network agents
The current implementation includes:
- Initialize Mint - One-time setup for the Florin token mint
- Mint Florin - Permissioned instruction to mint tokens to contributor accounts with optional metadata
- Burn Florin - Used when contributors withdraw from the network or transfer between contexts
- Built with Anchor 0.31.1 on Solana
- Uses SPL Token standard with plans to upgrade to Token-2022 in the future
- Includes metadata support for tracking contribution sources
The program is currently in development with the following status:
- Basic program structure
- Initialize mint functionality
- Mint tokens functionality
- Burn tokens functionality
- Token-2022 extensions (planned for future)
- Integration with membership program
- Integration with voucher-manager program
- Integration with fixie-bot program
The build issues have been resolved by ensuring compatibility between Solana, Anchor, and Rust versions. Here's the setup that works:
-
Environment Requirements:
- Ubuntu 24.04 LTS (or any system with GLIBC 2.38+)
- Solana CLI v2.1.5
- Rust 1.79.0
- Required packages:
pkg-config,libssl-dev
-
Setup Instructions:
# Install Solana CLI v2.1.5 sh -c "$(curl -sSfL https://release.anza.xyz/v2.1.5/install)" # Install Rust and required version curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh source $HOME/.cargo/env rustup install 1.79.0 # Set Rust version for this project cd /path/to/florin rustup override set 1.79.0 # Install required system packages apt update && apt install -y pkg-config libssl-dev # Build the project anchor build
-
Known Compatibility Issues:
- solana-program v2.2.1 requires Rust 1.79.0+
- Anchor 0.31.1 needs to be compatible with the Solana version
- Token Extensions require Solana 1.18+ (which we satisfy with Solana 2.1.5)
-
Testing:
- Need to update test files to match the current implementation
- Fix TypeScript errors in the test files
-
Token-2022 Extensions:
- Implement permanent freeze capability
- Add non-transferable option
- Explore confidential transfers
-
Metadata Improvements:
- Store metadata on-chain instead of just logging it
- Link to voucher system
-
Access Control:
- Upgrade from single authority to multisig or DAO governance
- Local validator (solana-test-validator)
- Devnet for closed testnet launch
- Mainnet via ƒXYZ token launch pipeline