- TypeScript 93%
- CSS 5%
- JavaScript 1.3%
- Python 0.6%
- HTML 0.1%
| docs | ||
| public | ||
| scripts | ||
| server | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| index.html | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| tsconfig.server.json | ||
| vite.config.ts | ||
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 froma942ff7(contracts PR #21), live insrc/contracts/. Arbitrum One addresses staynull. 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) orsepolia. The private preview stays on mock.VITE_DATA_SOURCEstill 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_ENABLEDunset (auto), the escrow gate is ON in live mode and off in mock; set it totrueto preview the gate in mock (npm run dev:mockdoes this) or tofalseto 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.