Web app: market, wallet, task manager, calendar and governance UI
  • TypeScript 93%
  • CSS 5%
  • JavaScript 1.3%
  • Python 0.6%
  • HTML 0.1%
Find a file
2026-11-30 02:23:25 +00:00
docs Point the Sepolia app at the a942ff7 BuilderBonus redeploy 2026-11-16 21:27:33 -06:00
public Match the landing page aesthetic in the web app shell and pages 2026-11-11 12:01:08 -06:00
scripts Point the Sepolia app at the a942ff7 BuilderBonus redeploy 2026-11-16 21:27:33 -06:00
server Re-check a cached screening result against the local OFAC list 2026-11-29 15:04:52 -06:00
src Merge pull request 'Screen wallets against OFAC's list only for the testnet' (#24) from fix/drop-chainalysis-testnet into main 2026-11-30 02:23:12 +00:00
.env.example Screen wallets against OFAC's list only for the testnet 2026-11-29 14:35:03 -06:00
.gitignore Initial commit 2026-09-30 17:51:55 +00:00
index.html Legal wording for testnet preview 2026-11-27 15:44:22 -06:00
LICENSE Initial commit 2026-09-30 17:51:55 +00:00
package-lock.json Align indexer GraphQL queries and types with the b19f21d api.taskuler.com schema 2026-11-13 16:55:42 -06:00
package.json Align indexer GraphQL queries and types with the b19f21d api.taskuler.com schema 2026-11-13 16:55:42 -06:00
README.md Screen wallets against OFAC's list only for the testnet 2026-11-29 14:35:03 -06:00
tsconfig.json Phase 1 scaffold: wallet, market, post/escrow flow, work history (mock data layer) 2026-10-22 17:11:21 -05:00
tsconfig.server.json Coinbase Onramp/Offramp behind VITE_COINBASE_RAMPS_ENABLED (off), mock mode, server-side sessions + screening; USDC shown as dollars 2026-11-10 10:44:30 -06:00
vite.config.ts Point screening messages at support@taskuler.com, allow indexing for the testnet build, pin wallets to injected 2026-11-27 15:26:25 -06:00

web

Web app: market, wallet, task manager, calendar and governance UI

Phase 1 scaffold (mock data)

Vite + React + TypeScript, wagmi v2 / viem (Arbitrum One + Arbitrum Sepolia, injected wallet), TanStack Query, React Router.

npm install && npm run dev   # npm run build for a production build

Pages: Market (/) — search and filters stored in the URL, trust signals on cards, For you ranking and saved searches, sort and list view, keyboard navigation, and a live stats strip (open jobs, escrow, paid out this week) from the DataSource / api.taskuler.com. The market can be browsed without a wallet; connect is asked only to bid, post, or withdraw. First jobs can be filtered with ?first=1; Post job (/post) — Markdown editor with an always-visible Properties panel above a single Source / Preview editor (segmented Source | Preview control or Ctrl/Cmd+E; default Source), YAML properties, [[wikilinks]], #tags, draft autosave, .md import/export, and /post?draft= handoff from note-app plug-ins (never auto-submitted); job detail with bid / accept / deliver / accept-delivery flow plus backlinks (/jobs/:id); Work history (/history/:address?). Shared note format: docs/job-note-format.md.

All data goes through the DataSource interface in src/data/types.ts. src/data/mock.ts is an in-memory mock with placeholder fee and deposit parameters. A live implementation (escrow ABIs from taskuler/contracts for writes, api.taskuler.com for reads) plugs in at src/data/index.ts.

Contracts and indexer

  • Arbitrum Sepolia (testnet) addresses and ABIs from taskuler/contracts 8610085 (contracts PR #20), with BuilderBonus redeployed from a942ff7 (contracts PR #21), live in src/contracts/. Arbitrum One addresses stay null. See docs/sepolia.md for flags, how to resync (npm run sync:sepolia -- /path/to/contracts), and what is not configured yet.
  • VITE_DATA_MODE=mock (default) or sepolia. The private preview stays on mock. VITE_DATA_SOURCE still works (mock | indexer | sepolia).
  • src/data/onchain.ts: viem write helpers (approve, postJob(PostParams) which funds escrow, placeBid, acceptBid, submitDelivery, acceptDelivery, propose/accept/reject/cancelSettlement, requestArbitration, withdraw; ETH jobs send value with no approve). Writes are refused on any chain other than Arbitrum Sepolia.
  • src/data/sepolia.ts: contract-backed DataSource. Token config, fees, allowances, claimable balances and jobs are read on-chain. Unconfigured tokens and missing fee settings are explained in the UI; actions that would revert stay disabled.
  • src/data/indexer.ts: api.taskuler.com DataSource stub (VITE_DATA_SOURCE=indexer); not live yet. Query shapes: docs/indexer-queries.md.

Assumptions (all in src/config.ts)

Defaults picked where the docs are silent are marked default. None of them blocks the scaffold.

Topic What the app assumes Source
Currencies USDC, TSKR and ETH on (decided by George on 2026-10-23: ETH accepted at launch; VITE_ENABLE_ETH=false turns it off). Contracts at 9e3aa59 support native ETH jobs (token address(0), exact msg.value). One token per job for bounty, deposits and refunds 0004 Part 1
Fee Paid on top of the bounty, % with per-token minimum, cap 5%. Mock uses 1% (placeholder; real value read from escrow) 0001, suggested-parameters
Fee refunds Missed deadline: only minimum kept. Partial payout: max(paid × %, min). Cancel before acceptance: full refund. Project jobs: no fee 0001
Deposits % of bounty with per-token minimum for both sides; mock 5% (placeholder). The customer may require a higher builder deposit, up to a hard cap of 100% of the bounty (maxDepositBps = 10000); on tiny jobs the per-token minimum still applies even above the cap, so the allowed range is max(bounty × depositBps, minDeposit) to max(bounty × 100%, minDeposit) (decided by George on 2026-10-23, replacing the earlier 30% cap); forfeited on 0%/100% rulings; on a missed deadline the builder's deposit goes to the customer (decided by George on 2026-10-23) 0004 Parts 2, 4
Grace period 2 days after deadline, then anyone can trigger the refund (default; value not in docs) MISSION, Customer User Story
Auto-pay Customer review window 7 days after delivery (default, matches audit hold H_audit); per-job timeout never below review + audit hold suggested-parameters
Settlement offers / counters On chain; "3 rounds" = opening offer + 3 counters, i.e. up to 4 offers, 5 days each, then Kleros (decided by George on 2026-10-23); splits from the Kleros menu 0/25/50/75/100; no agreement goes to Kleros V2; agreed splits move no deposits. Applied to Market jobs too (default; decided wording is for project jobs) 0008, 0009 Part 7c, 0004 Part 4
Disputes Kleros V2 on Arbitrum; ruling 0 splits 50/50. Only the party who raises a dispute prepays the Kleros fee, in ETH, and the dispute starts immediately; no matching payment or fee-timeout (decided by George on 2026-10-23). Fee shares follow the ruling: builder bears (100 − p)%, customer p%, ruling 0 splits 50/50 (decided, 0004 Part 4, F2/Z0a, 2026-10-09). ETH jobs: the other side reimburses the requester its share from its ETH payout (ArbitrationCostReimbursed + ETH Credited; may be partial if that payout is too small). ERC-20 jobs: the requester bears the whole fee, no reimbursement (decided by George on 2026-10-23; reimburseArbitrationOnErc20=false) 0003, 0008
Proof of delivery A URI (ipfs:// or https://) plus content hash stored with the delivery (default; docs silent) —
Profile Wallet address only; no off-chain profile or ENS yet (default; docs say "create a Taskuler profile" without detail) MISSION, Builder User Story
Badges Shown in work history only; deposit discount and bid ranking not applied in the UI; no fee discounts at launch MISSION, 0001, 0004
Chains Arbitrum Sepolia (default) and Arbitrum One 0003
Wallets Injected only. WalletConnect is a disabled config placeholder; dependency not installed —

Coinbase Onramp / Offramp (feature-flagged, off by default)

Customers can buy USDC with their Coinbase account (debit card, bank or balance) delivered straight to their own wallet on Arbitrum, then fund the escrow as usual. Builders can cash USDC out to a bank on /withdraw. Taskuler never holds funds and TaskulerMarket is unchanged. USDC amounts show as dollars ("$100 (USDC)").

npm install
npm run dev:mock      # VITE_COINBASE_RAMPS_ENABLED=true + VITE_SCREENING_ENABLED=true, ramps API in mock mode inside Vite
npm test              # vitest: screening, session API, dollar formatting
npm run api           # standalone ramps API (server/node.ts) for production-shaped runs; reads env (see .env.example)
  • Mock mode (COINBASE_RAMPS_MODE=mock, the default): fake session tokens, an in-app stand-in for the Coinbase pages (/ramps/mock-coinbase), a mock wallet USDC balance, and a "Screening result" toggle to preview blocked states (sanctioned wallet, blocked region, VPN/proxy, Tor, screening outage). No network calls, no keys.
  • Live mode (COINBASE_RAMPS_MODE=live): server/ mints single-use Coinbase sessions with a CDP Secret API key (Onramp: POST /platform/v2/onramp/sessions; Offramp: POST /onramp/v1/token + pay.coinbase.com/v3/sell/input), after a wallet signature and server-side screening. Coinbase pages open in a popup (they can't be iframed).
  • Screening (server-side, fail closed; DECIDED 2026-11-10): OFAC SDN wallet addresses (hourly refresh, refuse if the list is over 2 h old; for the testnet, wallets are checked against OFAC's list only), a sanctioned-country/region block (default CU, IR, KP, SY — Syria stays on the counsel list), and a VPN/proxy/Tor block (VH2; browsing stays open). Applies to Coinbase buy/cash-out whenever the ramps UI is on, and to posting, bidding and Market withdraw once screening is live: with VITE_SCREENING_ENABLED unset (auto), the escrow gate is ON in live mode and off in mock; set it to true to preview the gate in mock (npm run dev:mock does this) or to false to disable it even in live. The Coinbase feature flag (VITE_COINBASE_RAMPS_ENABLED) stays off by default. These are engineering checks; they make no compliance claim.
  • No W-9/W-8 collection. The builder tax notice stays on Withdraw and Work history.