Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a54ea06
feat: update dependencies
YAustinXYZ Feb 25, 2026
2362cd1
feat(milestone-progress): add demo components and types for escrow mi…
YAustinXYZ Feb 25, 2026
53969de
feat(milestone-progress): add EscrowMilestoneProgressBar component an…
YAustinXYZ Feb 25, 2026
732c7a1
feat(milestone-progress): add EscrowMilestoneProgressDonut component …
YAustinXYZ Feb 25, 2026
22b12ae
feat(milestone-progress): add README documentation and export for Esc…
YAustinXYZ Feb 25, 2026
35864c4
fix: remove spanish comments
YAustinXYZ Feb 25, 2026
acecc22
fix: delete code
YAustinXYZ Feb 25, 2026
feb3cef
feat: Admin Escrow Analytics Dashboard
Michaelkingsdev Feb 28, 2026
0536bae
feat(dashboard): implement financial dashboard for receiver escrows
KevinLatino Mar 1, 2026
4b360fc
feat(dashboard): implement financial dashboard for receiver escrows
KevinLatino Mar 1, 2026
f8979a7
Merge pull request #22 from KevinLatino/feature/financial-dashboard
JoelVR17 Mar 6, 2026
1d6bb7e
Merge pull request #21 from Michaelkingsdev/admin-analytics
JoelVR17 Mar 6, 2026
cad1082
feat: add RecentPaymentsView component
Josue19-08 Mar 6, 2026
6069cf2
feat: add /recent-payments route
Josue19-08 Mar 6, 2026
a2406cd
fix: address CodeRabbit review feedback
Josue19-08 Mar 6, 2026
55f1d2a
fix: handle undefined amount for single-release escrows
Josue19-08 Mar 6, 2026
c30d691
fix: Revision and functionality corrected plus graphical integration
YAustinXYZ Mar 7, 2026
a93bf08
fix: Extra file
YAustinXYZ Mar 7, 2026
2f0f742
fix: Remove unused imports and console statements for code review
YAustinXYZ Mar 7, 2026
46b5257
fix: resolve merge conflict in package-lock.json
YAustinXYZ Mar 7, 2026
6368070
fix: address CodeRabbit review comments for code quality and correctness
YAustinXYZ Mar 7, 2026
7184e5a
fix: resolve final CodeRabbit review issues
YAustinXYZ Mar 7, 2026
378f419
Resolve package-lock.json conflict by regenerating
YAustinXYZ Mar 7, 2026
4c9f956
Resolve merge conflict in package-lock.json by regenerating
YAustinXYZ Mar 7, 2026
a8c286e
Merge pull request #23 from Josue19-08/feature/recent-payments-view
JoelVR17 Mar 8, 2026
8fa9837
Merge pull request #19 from YAustinXYZ/feature/milestone-progress
JoelVR17 Mar 8, 2026
c0c6509
feat: add Pollar wallet integration and update dependencies
aleregex Apr 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Go to -> https://docs.trustlesswork.com/trustless-work/developer-resources/request-api-key
NEXT_PUBLIC_API_KEY=""
NEXT_PUBLIC_API_KEY=""
NEXT_PUBLIC_TW_BASE_URL=https://dev.api.trustlesswork.com
NEXT_PUBLIC_POLLAR_PUBLISHABLE_KEY=""
40 changes: 40 additions & 0 deletions POLLAR_SPIKE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Pollar × Trustless Work — Spike Results

## What worked
- Google OAuth login via Pollar WalletButton
- Wallet address retrieval from usePollar()
- Escrow initialization via Trustless Work API /deployer/single-release
- XDR signing and submission via signAndSubmitTx()
- Transaction confirmed on Stellar testnet

## What broke / unknowns
- TW API key must be exposed as `NEXT_PUBLIC_API_KEY` (client-side fetch, no server route)
- PollarProvider API uses `config.apiKey`, not `publishableKey`
- signAndSubmitTx compatibility with TW XDR format needs more testing
- Full escrow lifecycle (milestones, approvals, release) not tested

## Recommendation
Pursue — Pollar successfully abstracts wallet creation, OAuth login, and transaction
signing. UX is significantly simpler for non-crypto users.

## Next steps
1. Test full escrow lifecycle — milestones, approvals, and release flow end to end.
2. Implement `PollarWalletAdapter` in `src/lib/wallet/pollarAdapter.ts` and wire it
to the existing escrow flows so both Pollar and the current Stellar wallet are
supported interchangeably.
3. Move the TW API key to a server-side route (`/api/trustless-work/...`) so
`NEXT_PUBLIC_API_KEY` is no longer exposed in the client bundle.
4. Add error boundary or loading states to `PollarWalletProvider` for production use.
5. Evaluate Pollar's embedded wallet flow as an alternative to Freighter/Albedo
for onboarding non-crypto users.

## Setup
1. `npm install`
2. Add to `.env.local`:
```
NEXT_PUBLIC_POLLAR_PUBLISHABLE_KEY=
NEXT_PUBLIC_API_KEY=
NEXT_PUBLIC_TW_BASE_URL=https://dev.api.trustlesswork.com
```
3. `npm run dev`
4. Go to `/pollar-spike`
Loading