Skip to content
/ f2t Public

A decentralized marketplace revolutionizing local food commerce through blockchain-based farm shares, NFT-driven access control, and automated regulatory compliance. Utilizing the "Unster" Patent for the Architectural integrity. Maintenance questions @KitBaroness

License

Notifications You must be signed in to change notification settings

DegenVets/f2t

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

55 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Field 2 Table (f2t.io)

License: MIT PRs Welcome Solana CLI: v2.0.16 Rust: v1.75+

A decentralized marketplace revolutionizing local food commerce through blockchain-based farm shares, NFT-driven access control, and automated regulatory compliance.


🌟 Features

Core Technologies

  • πŸ”— Solana Smart Contracts - Rust-based programs for farm share and compliance management
  • 🎫 Dynamic NFTs - Metaplex-powered role and attribute management
  • πŸ—ƒοΈ NFT.storage - Decentralized content storage with IPFS
  • 🌐 Yew Framework - Rust-based WebAssembly frontend
  • ⚑ Serverless Rust - AWS Lambda functions with custom runtime

Key Components

  • Decentralized Storage - IPFS-based permanent data availability
  • Farm Share Framework - Legal structure enabling interstate commerce
  • Compliance Automation - Real-time verification with NFT attributes
  • Zero-Trust Security - Blockchain-verified access control

πŸ“– Documentation


πŸš€ Getting Started

Prerequisites

# Required versions
rustc 1.75.0 or higher
cargo 1.75.0 or higher
solana-cli 2.0.16

Environment Setup

# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# Install Solana CLI
sh -c "$(curl -sSfL https://release.solana.com/v2.0.16/install)"

# Install WebAssembly tools
cargo install wasm-pack
cargo install trunk
rustup target add wasm32-unknown-unknown

Development Setup

# Clone repository
git clone --recurse-submodules https://github.com/yourusername/f2t.git
cd f2t

# Install workspace dependencies
cargo build

# Configure environment
cp .env.example .env
# Edit .env with your configurations

# Start development server
trunk serve

πŸ—οΈ Project Structure

FlexnetGX/
β”œβ”€β”€ GX-mobile/             # Mobile application development
β”œβ”€β”€ GX-web/                # Web application frontend
β”œβ”€β”€ GX-lambda/             # Serverless functions for backend
β”œβ”€β”€ GX-blockchain/         # Blockchain programs
└── lib/                   # Shared Rust libraries

Categories:

  1. GX-mobile: Cross-platform mobile app for consumers and producers.
  2. GX-web: WebAssembly-based frontend using Yew.
  3. GX-lambda: AWS serverless backend for compliance and APIs.
  4. GX-blockchain: Solana smart contracts for farm shares and access control.
  5. lib: Shared Rust libraries for reuse.

πŸ”§ Development

Smart Contract Development

cargo build-bpf
cargo test-bpf
solana program deploy target/deploy/farm_share.so

Frontend Development

trunk serve
trunk build --release

Lambda Development

cargo lambda build
cargo lambda watch
cargo lambda deploy

πŸ“Š Technical Architecture

graph TB
    subgraph "Frontend"
        A[Yew WebAssembly]
        B[Solana Wallet]
    end
    
    subgraph "Storage"
        C[NFT.storage]
        D[IPFS]
    end
    
    subgraph "Blockchain"
        E[Solana Programs]
        F[NFT Metadata]
    end
    
    subgraph "Serverless"
        G[Rust Lambda]
        H[DynamoDB Index]
    end
    
    A --> C
    A --> E
    C --> D
    E --> F
    G --> H
    G --> D
Loading

🀝 Contributing

See our Contributing Guide for development standards and testing.


πŸ“œ License

This project is licensed under the MIT License. See the LICENSE file for details.


πŸ“ž Contact


Built with πŸ¦€ Rust and ❀️ for local food communities.

About

A decentralized marketplace revolutionizing local food commerce through blockchain-based farm shares, NFT-driven access control, and automated regulatory compliance. Utilizing the "Unster" Patent for the Architectural integrity. Maintenance questions @KitBaroness

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published