TradeFlow-Core is the smart contract layer for the TradeFlow protocol. It enables Real-World Asset (RWA) tokenization and decentralized factoring on the Stellar network.
The system consists of two decoupled smart contracts:
invoice_nft: A standard-compliant NFT representing a verified invoice. It holds metadata (IPFS hash, face value, currency, due date).lending_pool: An escrow vault where liquidity providers deposit stablecoins (USDC). It acceptsinvoice_nftas collateral to automate loan origination and repayment.
The following contracts are currently active for frontend integration and testing.
| Contract Name | Network | Contract ID |
|---|---|---|
| Invoice NFT | Testnet | CCYU3LOQI34VHVN3ZOSEBHHKL4YK36FMTOEGLRYDUDRGS7JOLLRKCEQM |
| Lending Pool | Testnet | CDVJMVPLZJKXSJFDY5AWBOUIRN73BKU2SG674MQDH4GRE6BGBPQD33IQ |
- Network Passphrase:
Test SDF Network ; September 2015 - RPC Endpoint:
https://soroban-testnet.stellar.org
- Rust & Cargo (latest stable)
- Stellar CLI v25.1.0+ (
cargo install stellar-cli) - WASM Target:
rustup target add wasm32v1-none
# Build all contracts (optimized for WASM)
stellar contract build
# Run the test suite
cargo test