Description
No code anywhere in the frontend builds, simulates, signs, submits, or confirms a Soroban transaction, despite the README claiming "XDR simulation run before every transaction submission." Every contract-touching UI action is stubbed:
components/molecules/form-pledge/index.tsx and components/molecules/deposits/index.tsx use setTimeout/hardcoded BigInt(0) with TODOs ("call TrustFlow contract deposit")
components/organisms/pledge/index.tsx uses a mockEscrow object and a literal alert('Contract integration coming soon') for the escrow deposit button
hooks/useSubscription.ts, meant for on-chain event polling, is a documented "Placeholder subscription hook" with an empty body and a TODO
shared/contracts.ts is just three env-var constants (CONTRACT_ID, RPC_URL, NETWORK_PASSPHRASE) — nothing consumes them to actually talk to the chain
This blocks every real contract-integration ticket until the flow and its home in the codebase are decided.
Component
Frontend
Difficulty
🟣 Spike — investigation required, scope not yet defined
Tasks
Acceptance Criteria
Estimated Time
2-3 days (time-boxed spike)
Description
No code anywhere in the frontend builds, simulates, signs, submits, or confirms a Soroban transaction, despite the README claiming "XDR simulation run before every transaction submission." Every contract-touching UI action is stubbed:
components/molecules/form-pledge/index.tsxandcomponents/molecules/deposits/index.tsxusesetTimeout/hardcodedBigInt(0)with TODOs ("call TrustFlow contract deposit")components/organisms/pledge/index.tsxuses amockEscrowobject and a literalalert('Contract integration coming soon')for the escrow deposit buttonhooks/useSubscription.ts, meant for on-chain event polling, is a documented "Placeholder subscription hook" with an empty body and a TODOshared/contracts.tsis just three env-var constants (CONTRACT_ID,RPC_URL,NETWORK_PASSPHRASE) — nothing consumes them to actually talk to the chainThis blocks every real contract-integration ticket until the flow and its home in the codebase are decided.
Component
Frontend
Difficulty
🟣 Spike — investigation required, scope not yet defined
Tasks
shared/service module consumed by hooks?)trustflow-sdk's contract client vs. calling@stellar/stellar-sdkdirectly from the frontend (the SDK's own client is also currently mocked — see the related spike intrustflow-sdk)pledge/index.tsx) against Soroban testnet via FreighteruseSubscription.ts's event-polling approach (RPCgetEventspolling vs. a backend push channel) and confirm it fits the existing Edge-runtime API routesAcceptance Criteria
Estimated Time
2-3 days (time-boxed spike)