TradeFlow LogoTechnical Docs

Protocol Integrator

TradeFlow is not just an application; it is a **Protocol Integrator**. We leverage enterprise-grade, pre-audited smart contract primitives to deliver institutional security without the overhead of custom contract development.

Core Infrastructure

Audited Primitives

By using the Trustless Work 'Factory' contracts, TradeFlow utilizes standardized Multi-Release logic that has been rigorously tested for security and performance.

Non-Custodial

Business logic is enforced by the Stellar network. TradeFlow never holds private keys or has direct custody of capital; we only facilitate user-signed XDRs.

Stellar / Soroban

The foundational layer for transaction finality (< 5s) and low-cost execution. Business logic is executed in a WASM-based virtual machine.

Trustless Work SDK

The interface layer for the Multi-Release primitive. Capital is released only upon cryptographic proof from authorized approvers.

IPFS (Pinata)

Decentralized storage for trade evidence. Bills of Lading and Receipts are pinned to IPFS and linked to on-chain state via CIDs.

Next.js 14

Real-time on-chain data synchronization using React Query to manage the 5-second Stellar indexing latency.

Smart Configuration Lifecycle

Instead of coding a new contract for every trade, TradeFlow **configures** a specialized instance of the Multi-Release primitive.

1

Primitive Deployment

A new instance of the audited Multi-Release contract is deployed via the Trustless Work Factory. All roles (Importer, Exporter, Inspector) are cryptographically bound at this stage.

2

Capital Funding

Funds are transferred to the non-custodial contract address. The Stellar ledger now enforces the rules of the agreement autonomously.

3

Proof Upload

Evidence of shipment is hashed and uploaded to IPFS. The resulting CID is submitted as part of a state-update transaction to the contract.

4

Consensus Approval

The designated Approver (Inspector) signs a transaction. The contract verifies this signature against the authorized role and releases funds to the Exporter.

Security Model

Trustless Execution

The core 'Law' of the trade is enforced by the Stellar Consensus Protocol. TradeFlow act as the 'Legal Clerk', drafting the paperwork (Transactions) for the parties to sign. This ensures that no single entity—including TradeFlow—can move funds without authorization.

Arbitration Layer

"In the event of a conflict, the contract primitive allows for a 'Halt' state. A neutral Arbitrator reviews the IPFS proof logs and distributes the capital through an on-chain resolution transaction."