🧩 Issue 1: Trustless Work Provider Setup
🎯 Objective
Integrate the Trustless Work React library provider so hooks can be used app-wide.
⚙️ Config
.env:
NEXT_PUBLIC_TW_API_KEY
NEXT_PUBLIC_TW_BASE_URL (default: https://dev.api.trustlesswork.com)
🧱 Implementation
Create src/providers/trustless-work-provider.tsx
Wrap App.tsx (or app/layout.tsx) with
✅ Rules
Provider must load before any hooks are called
Fail fast if no API key
🧪 Tests
✅ Provider mounts without error
❌ Missing API key throws
✅ Definition of Done
🧩 Issue 1: Trustless Work Provider Setup
🎯 Objective
Integrate the Trustless Work React library provider so hooks can be used app-wide.
⚙️ Config
.env:
NEXT_PUBLIC_TW_API_KEY
NEXT_PUBLIC_TW_BASE_URL (default: https://dev.api.trustlesswork.com)
🧱 Implementation
Create src/providers/trustless-work-provider.tsx
Wrap App.tsx (or app/layout.tsx) with
✅ Rules
Provider must load before any hooks are called
Fail fast if no API key
🧪 Tests
✅ Provider mounts without error
❌ Missing API key throws
✅ Definition of Done