Wire the Arbitrum Sepolia testnet deployment into the web app #11

Merged
Taskuler-bot merged 7 commits from feat/sepolia-wiring into main 2026-11-16 20:46:06 +00:00
Member

Summary

Updates this PR to the Arbitrum Sepolia redeploy of taskuler/contracts main @8610085 (16 November 2026), recorded in contracts PR #20. Addresses and ABIs were copied with npm run sync:sepolia from the PR #20 deploy record (deploy/sepolia-8610085). Earlier Sepolia addresses, including the 13 November b19f21d set, are superseded.

Only the BuilderBonus ABI changed: marketState(market) now returns 6 values (known, revoked, holdsIgnored, revokedAt, ignoreHoldsEta, and the new honourHoldsEta). New hold-governance functions, HonourHoldsScheduled / HonourHoldsCancelled events, and NotBroken, Timelocked and SafeCastOverflowedUintDowncast errors are in the ABI. Market, WorkHistory and TSKR ABIs are unchanged (header commit only). The app decodes the 6-value marketState return and maps the new errors to readable messages.

Mock stays the default. The private preview is unchanged. Nothing is deployed, and nothing on mainnet is wired — Arbitrum One addresses stay null, and writes are refused on any chain other than Arbitrum Sepolia.

Addresses

Deployments start block: 329875816 (CommunityRewardsVault; DisputeLib, ReviewLib and PayoutLib were reused from the b19f21d deploy). Market deployed at block 329875859.

Contract Address
TaskulerMarket 0xf78e830d984F13E5b3d913A379dA99ddb5D9C482
BuilderBonus 0xA35aea37Ea659Ae0f1c53Fe7402e80109845f59a
TSKR 0xA7e0eBF1c9d061Ff9096068E8E4638ae28277668
WorkHistory 0x3941f45441A465a0D029ee7E5368F24f4F417717
ReviewerRegistry 0xB702d00A94eDC009875Fb09B5e3ddA9CAdea231c
TreasuryVault 0x61Cd6b980fA9cE0a43bA52B2e9BCf3e5fBc47a08
CommunityRewardsVault 0xc749e1D162FC0Bd1f682756EdF01080F4E60b5E5
LiquidityReserve 0x2C1852720f6D377316DaED7A9cDB63dF68773CBA

USDC (Circle, not deployed by Taskuler): 0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d. Temporary testnet governance is the deployer EOA 0x53A5f29f226113e8C9e9fD1a4041db191E57Eb19 (not the 2-of-3 Safe).

How to try it

VITE_DATA_MODE=sepolia npm run dev

Docs: docs/sepolia.md. Resync with npm run sync:sepolia -- /path/to/taskuler/contracts.

What this adds on top of the Sepolia wiring

  • Typed BuilderBonus ABI and the published addresses in src/contracts/.
  • Market pause: reads paused(). When the Safe has paused the Market, a banner explains that new jobs, bids and reviewer assignments are disabled; post and bid are blocked before a transaction is sent; EnforcedPause is decoded. Accepting an existing bid, delivery, settlement, disputes and Market withdrawals stay available.
  • Builder bonus claims: withdraw() / unlock are replaced by withdraw(market, jobIds). The Withdraw page lists awards and each claim window (claimableAt until 180 days later, extended while the builder is observed held). A too-early claim is refused before a transaction is sent.
  • Bonus eligibility hints on the post form: a job only qualifies when the protocol fee is at least 2% and, for USDC, the bounty is at least 1,000 USDC. These are hints, not hard blocks.
  • Indexer notes in docs/indexer-queries.md and docs/cr2-independent-review-ui.md for the new/changed BuilderBonus events (topic0 changed; SlotReserved 4th field is reservedCount; HoldCheckFailed is now an error) and Market Paused / Unpaused.
  • api.taskuler.com GraphQL: docs, query documents, types, mocks, and id helpers in src/data/ids.ts still match the b19f21d schema (docs/schema-b19f21d.graphql). Job ids are chainId:market:jobId (lowercase market); bid ids add :bidIndex; every job reference uses the full id; job.jobId stays the on-chain number. timestamp is on credit, job, bid and dispute; Credit.createdAt is mapped from credit.timestamp. Trailing-week payouts use marketStats with day_gte (UTC-day buckets); credits + timestamp_gte is also shipped for an exact window. A vitest validates each query with graphql-js. The API is referred to as api.taskuler.com, never "Ponder API". The checked-in SDL and the local ponder-sepolia checkout have not been re-pointed to the 8610085 addresses or start block 329875816. New hold-governance events and honourHoldsEta are not in that SDL.

What works on testnet vs. what is blocked

Read-only smoke check against https://sepolia-rollup.arbitrum.io/rpc (no transactions, no keys):

  • paused() is false.
  • WorkHistory.isRecorder(Market) is true.
  • allowedToken(USDC) is true; allowedToken is false for ETH and TSKR.
  • minFee(USDC) and minDeposit(USDC) are 0. feeBps is 200 (2%); depositBps is 0.
  • BuilderBonus.minBounty(USDC) is 1,000 USDC (1000000000).
  • BuilderBonus.marketState(Market) decodes as 6 values: known=true, revoked=false, holdsIgnored=false, revokedAt=0, ignoreHoldsEta=0, honourHoldsEta=0.
  • ReviewerRegistry.minReviewerFee(USDC) is 50 USDC. No reviewer is registered yet.
  • BuilderBonus holds 0 TSKR until LiquidityReserve.executeRelease(1) can run (100,000 TSKR, from 2026-11-18 1:57:56 PM CT).

A regular USDC job can be posted on this deploy (USDC is allowed and the fee is already 2%). Posting in ETH or TSKR would still revert TokenNotAllowed. A review job cannot have a reviewer assigned until one is registered. Builder bonuses cannot be funded until 18 November 2026. The Kleros dispute template id is 196, but the policyURI is still an unpinned placeholder (testnet only). Contract errors are shown in the UI instead of crashing.

Tests

npm test: 141 passed. npm run build passed. CI does not call a live RPC.

Not in this PR

No merge, no deploy, no mainnet, no private keys, no change to the private mock preview.

## Summary Updates this PR to the Arbitrum Sepolia redeploy of taskuler/contracts main `@8610085` (16 November 2026), recorded in [contracts PR #20](https://git.taskuler.com/taskuler/contracts/pulls/20). Addresses and ABIs were copied with `npm run sync:sepolia` from the PR #20 deploy record (`deploy/sepolia-8610085`). Earlier Sepolia addresses, including the 13 November `b19f21d` set, are superseded. Only the BuilderBonus ABI changed: `marketState(market)` now returns 6 values (`known`, `revoked`, `holdsIgnored`, `revokedAt`, `ignoreHoldsEta`, and the new `honourHoldsEta`). New hold-governance functions, `HonourHoldsScheduled` / `HonourHoldsCancelled` events, and `NotBroken`, `Timelocked` and `SafeCastOverflowedUintDowncast` errors are in the ABI. Market, WorkHistory and TSKR ABIs are unchanged (header commit only). The app decodes the 6-value `marketState` return and maps the new errors to readable messages. **Mock stays the default.** The private preview is unchanged. Nothing is deployed, and nothing on mainnet is wired — Arbitrum One addresses stay `null`, and writes are refused on any chain other than Arbitrum Sepolia. ## Addresses Deployments start block: `329875816` (CommunityRewardsVault; DisputeLib, ReviewLib and PayoutLib were reused from the `b19f21d` deploy). Market deployed at block `329875859`. | Contract | Address | | :--- | :--- | | TaskulerMarket | `0xf78e830d984F13E5b3d913A379dA99ddb5D9C482` | | BuilderBonus | `0xA35aea37Ea659Ae0f1c53Fe7402e80109845f59a` | | TSKR | `0xA7e0eBF1c9d061Ff9096068E8E4638ae28277668` | | WorkHistory | `0x3941f45441A465a0D029ee7E5368F24f4F417717` | | ReviewerRegistry | `0xB702d00A94eDC009875Fb09B5e3ddA9CAdea231c` | | TreasuryVault | `0x61Cd6b980fA9cE0a43bA52B2e9BCf3e5fBc47a08` | | CommunityRewardsVault | `0xc749e1D162FC0Bd1f682756EdF01080F4E60b5E5` | | LiquidityReserve | `0x2C1852720f6D377316DaED7A9cDB63dF68773CBA` | USDC (Circle, not deployed by Taskuler): `0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d`. Temporary testnet governance is the deployer EOA `0x53A5f29f226113e8C9e9fD1a4041db191E57Eb19` (not the 2-of-3 Safe). ## How to try it ```bash VITE_DATA_MODE=sepolia npm run dev ``` Docs: [docs/sepolia.md](docs/sepolia.md). Resync with `npm run sync:sepolia -- /path/to/taskuler/contracts`. ## What this adds on top of the Sepolia wiring - Typed BuilderBonus ABI and the published addresses in `src/contracts/`. - **Market pause:** reads `paused()`. When the Safe has paused the Market, a banner explains that new jobs, bids and reviewer assignments are disabled; post and bid are blocked before a transaction is sent; `EnforcedPause` is decoded. Accepting an existing bid, delivery, settlement, disputes and Market withdrawals stay available. - **Builder bonus claims:** `withdraw()` / `unlock` are replaced by `withdraw(market, jobIds)`. The Withdraw page lists awards and each claim window (`claimableAt` until 180 days later, extended while the builder is observed held). A too-early claim is refused before a transaction is sent. - **Bonus eligibility hints** on the post form: a job only qualifies when the protocol fee is at least 2% and, for USDC, the bounty is at least 1,000 USDC. These are hints, not hard blocks. - Indexer notes in `docs/indexer-queries.md` and `docs/cr2-independent-review-ui.md` for the new/changed BuilderBonus events (topic0 changed; `SlotReserved` 4th field is `reservedCount`; `HoldCheckFailed` is now an error) and Market `Paused` / `Unpaused`. - **api.taskuler.com GraphQL:** docs, query documents, types, mocks, and id helpers in `src/data/ids.ts` still match the b19f21d schema (`docs/schema-b19f21d.graphql`). Job ids are `chainId:market:jobId` (lowercase market); bid ids add `:bidIndex`; every job reference uses the full id; `job.jobId` stays the on-chain number. `timestamp` is on credit, job, bid and dispute; `Credit.createdAt` is mapped from `credit.timestamp`. Trailing-week payouts use `marketStats` with `day_gte` (UTC-day buckets); `credits` + `timestamp_gte` is also shipped for an exact window. A vitest validates each query with graphql-js. The API is referred to as api.taskuler.com, never "Ponder API". The checked-in SDL and the local ponder-sepolia checkout have **not** been re-pointed to the 8610085 addresses or start block `329875816`. New hold-governance events and `honourHoldsEta` are not in that SDL. ## What works on testnet vs. what is blocked Read-only smoke check against `https://sepolia-rollup.arbitrum.io/rpc` (no transactions, no keys): - `paused()` is **false**. - `WorkHistory.isRecorder(Market)` is **true**. - `allowedToken(USDC)` is **true**; `allowedToken` is false for ETH and TSKR. - `minFee(USDC)` and `minDeposit(USDC)` are 0. `feeBps` is **200** (2%); `depositBps` is 0. - `BuilderBonus.minBounty(USDC)` is 1,000 USDC (`1000000000`). - `BuilderBonus.marketState(Market)` decodes as 6 values: `known=true`, `revoked=false`, `holdsIgnored=false`, `revokedAt=0`, `ignoreHoldsEta=0`, `honourHoldsEta=0`. - `ReviewerRegistry.minReviewerFee(USDC)` is 50 USDC. No reviewer is registered yet. - BuilderBonus holds **0 TSKR** until `LiquidityReserve.executeRelease(1)` can run (100,000 TSKR, from 2026-11-18 1:57:56 PM CT). A regular USDC job can be posted on this deploy (USDC is allowed and the fee is already 2%). Posting in ETH or TSKR would still revert `TokenNotAllowed`. A review job cannot have a reviewer assigned until one is registered. Builder bonuses cannot be funded until 18 November 2026. The Kleros dispute template id is 196, but the policyURI is still an unpinned placeholder (testnet only). Contract errors are shown in the UI instead of crashing. ## Tests `npm test`: **141 passed**. `npm run build` passed. CI does not call a live RPC. ## Not in this PR No merge, no deploy, no mainnet, no private keys, no change to the private mock preview.
Copy Market, WorkHistory and TSKR ABIs and addresses from
taskuler/contracts@cfd18dc (deployment merge 856b48c) and add a sync
script so they can be refreshed from a contracts checkout.

Add VITE_DATA_MODE=sepolia for contract-backed writes (post and fund
escrow, bid, accept, deliver, settle, withdraw) and on-chain reads of
token config, fees, allowances, jobs and claimable balances. Mock stays
the default. Writes are refused on any chain other than Arbitrum Sepolia.
Unconfigured tokens (configureToken has not been called) disable post and
bid in the UI so those transactions do not revert.
george approved these changes 2026-11-12 20:26:45 +00:00
Dismissed
Sync addresses and ABIs from contracts PR #14. On review jobs, decode
TooEarly on acceptBid, show when accept becomes available, and refuse
the click before a transaction is sent.
Taskuler-bot dismissed george's review 2026-11-13 03:52:25 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Sync addresses and ABIs from contracts PR #18. Show a paused-market
state that blocks new jobs and bids, switch bonus claims to
withdraw(market, jobIds) with a visible 180-day claim window, and hint
when a post would miss the 1,000 USDC / 2% fee bonus rules.
Rewrite docs and shipped query documents to the final SDL (singular tables,
plural list fields, underscore enums, disputeLookups, workRecords). Add a
graphql-js validate test against a repo copy of the schema. Extend app types
and mock shapes for the new fields, including outcome dispute_timed_out.
Job and bid ids now include the lowercase market. Credit.createdAt is mapped
from timestamp. The trailing-week payout query uses marketStats with day_gte,
with credits+timestamp_gte available for an exact window.
george approved these changes 2026-11-16 20:11:36 +00:00
Dismissed
Taskuler-bot dismissed george's review 2026-11-16 20:17:24 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

george approved these changes 2026-11-16 20:44:42 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
taskuler/web!11
No description provided.