Skip to content

SantaFiXYZ/santafi-verified

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” SantaFi - Verified Source Code

License: MIT Security: Verified Solana

This repository contains verified wallet integration code for SantaFi - AI-powered Christmas PFP Studio on Solana.

⚠️ Important Notice

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

🎯 What's in This Repository

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

❌ What's NOT in This Repository

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)

πŸ”’ Security Guarantees

We NEVER:

  • ❌ Store your private keys
  • ❌ Request your seed phrase
  • ❌ Access your wallet without permission
  • ❌ Execute transactions without your approval

We ONLY:

  • βœ… Store your public wallet address (public information)
  • βœ… Track usage count (for credit system)
  • βœ… Process transactions YOU explicitly approve

Transparency:

  • πŸ’° Treasury Wallet: Configured via NEXT_PUBLIC_RECEIVER_WALLET environment variable
  • πŸ”— All transactions are on-chain and publicly verifiable
  • πŸ“Š Credit system is tracked in our database (wallet address + count only)

πŸ“‚ Repository Structure

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

πŸ›‘οΈ How to Verify

1. Review the Code

git clone https://github.com/SantaFiXYZ/santafi-verified.git
cd santafi-verified

2. Check Wallet Integration

  • Read verified-code/wallet/WalletContextProvider.tsx
  • Verify: No private key storage
  • Verify: Standard Solana wallet adapter usage

3. Check Payment Handler

  • Read verified-code/payment/payment-handler.ts
  • Verify: Transparent SOL transfer
  • Verify: User approval required

4. Read Security Docs

  • SECURITY.md - Our security policy
  • docs/ARCHITECTURE.md - System architecture
  • docs/FAQ_SECURITY.md - Common security questions

🀝 Community Audit

We welcome security researchers and community members to audit this code.

Found a security issue?


πŸ—οΈ Tech Stack

  • Frontend: Next.js 15 (App Router)
  • Wallet: Solana Wallet Adapter
  • Blockchain: Solana Mainnet
  • RPC: Helius (enterprise-grade)
  • Language: TypeScript

πŸ“œ License

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.


πŸŽ„ About SantaFi

SantaFi is an AI-powered Christmas PFP studio built on Solana. Transform your NFT or photo into a festive masterpiece in seconds.


❓ FAQ

Why not open source everything?

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.

Can I use this code in my project?

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

Is this the actual production code?

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

How often is this updated?

We update this repository when there are security-relevant changes to our wallet or payment integration. Feature updates are NOT reflected here.


Built with ❀️ by the SantaFi team

Website β€’ Twitter β€’ Security

About

πŸ” Verified wallet integration code for SantaFi - AI Christmas PFP Studio on Solana

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published