This repository contains verified wallet integration code for SantaFi - AI-powered Christmas PFP Studio on Solana.
This is a security-focused repository containing only the wallet and payment integration code for transparency and community auditing.
Looking for:
- π¨ Product features & tutorials? β Visit santafi.xyz
- π Full documentation? β Coming soon
- πΊοΈ Roadmap? β Follow @SantaFiXYZ
This repo contains verified, sanitized code for:
β Wallet Integration
- Solana wallet connection logic
- Wallet adapter configuration
- Connection state management
β Payment Handler
- SOL transfer logic
- Transaction signing flow
- Credit purchase system
β Security Documentation
- Architecture overview
- Security policies
- Audit checklist
For security and intellectual property reasons, the following are NOT included:
- β AI engine implementation (trade secret)
- β Backend API logic (proprietary)
- β Database schema & queries (security)
- β Image processing algorithms (IP)
- β API keys & secrets (obvious)
- β Store your private keys
- β Request your seed phrase
- β Access your wallet without permission
- β Execute transactions without your approval
- β Store your public wallet address (public information)
- β Track usage count (for credit system)
- β Process transactions YOU explicitly approve
- π° Treasury Wallet: Configured via
NEXT_PUBLIC_RECEIVER_WALLETenvironment variable - π All transactions are on-chain and publicly verifiable
- π Credit system is tracked in our database (wallet address + count only)
santafi-verified/
βββ README.md # You are here
βββ SECURITY.md # Security policy & contact
βββ LICENSE # MIT License
βββ verified-code/
β βββ wallet/ # Wallet integration code
β β βββ WalletButton.tsx
β β βββ WalletContextProvider.tsx
β β βββ README.md
β βββ payment/ # Payment handler code
β β βββ payment-handler.ts
β β βββ README.md
β βββ types/ # TypeScript definitions
β βββ index.ts
βββ docs/
βββ ARCHITECTURE.md # High-level architecture
βββ WALLET_FLOW.md # Wallet connection flow
βββ PAYMENT_FLOW.md # Payment processing flow
βββ FAQ_SECURITY.md # Security FAQ
git clone https://github.com/SantaFiXYZ/santafi-verified.git
cd santafi-verified- Read
verified-code/wallet/WalletContextProvider.tsx - Verify: No private key storage
- Verify: Standard Solana wallet adapter usage
- Read
verified-code/payment/payment-handler.ts - Verify: Transparent SOL transfer
- Verify: User approval required
SECURITY.md- Our security policydocs/ARCHITECTURE.md- System architecturedocs/FAQ_SECURITY.md- Common security questions
We welcome security researchers and community members to audit this code.
Found a security issue?
- π§ Email: security@santafi.xyz
- π¦ DM: @SantaFiXYZ
- π Responsible disclosure appreciated
- Frontend: Next.js 15 (App Router)
- Wallet: Solana Wallet Adapter
- Blockchain: Solana Mainnet
- RPC: Helius (enterprise-grade)
- Language: TypeScript
This verified code is released under the MIT License.
Note: This license applies ONLY to the code in this repository. The full SantaFi application (including backend, AI engine, and proprietary features) is NOT open source.
SantaFi is an AI-powered Christmas PFP studio built on Solana. Transform your NFT or photo into a festive masterpiece in seconds.
- π Website: santafi.xyz
- π¦ Twitter: @SantaFiXYZ
- π¬ Community: Join Discord (coming soon)
SantaFi is a SaaS product, not a DeFi protocol. Our AI engine, backend logic, and image processing algorithms are proprietary intellectual property. However, we believe in transparency where it matters - your wallet security.
The wallet integration code is MIT licensed and can be used as reference. However, please note:
- This is sanitized/simplified code
- Production implementation may differ
- No warranty or support provided
This is sanitized and simplified version of our production code. Core security logic is identical, but:
- API endpoints are placeholders
- Environment variables are examples
- Some error handling is simplified
- Business logic is removed
We update this repository when there are security-relevant changes to our wallet or payment integration. Feature updates are NOT reflected here.