Status: live on Base Mainnet at https://arlcoin.io/app. Built for one chain at a time
(NEXT_PUBLIC_ARL_CHAIN): Base Mainnet (8453), or the local Anvil chain (31337, the default) for
development. The ARL token is 0xde91E6f39D50bBd875f831dcc1134A3D7f3aaDb4.
The app is where ARL holders use the contracts: see their balance and send ARL, follow and release
a vesting schedule, and stake ARL for rewards. It is built on
Scaffold-ETH 2 (MIT); what was taken and what was
changed is listed in THIRD_PARTY_LICENSES.
Screens
| Screen | Contract | What the user can do |
|---|---|---|
| Wallet | ARLToken |
See the ARL balance, stake and unclaimed rewards; send ARL |
| Vesting | ARLVestingWallet |
See beneficiary, cliff and end dates, released and releasable amounts; release to the beneficiary |
| Staking | ARLStakingRewards and ARLToken |
Stake (approving exactly the amount), withdraw, claim rewards, or withdraw everything and claim |
| Network | ERC-8004 IdentityRegistry | List ARL services and compute capacity; register a service with its price, payee and facilitator; take it offline; pay it |
| Deploy | Foundry dry run, wallet (EIP-1193) | Sign a prepared Base Mainnet deployment one transaction at a time, each explained and checked first; see deployment.md |
| Payments | ARLToken, Permit2, x402UptoPermit2Proxy |
Set or remove the Permit2 payment limit; sign a ceiling (x402 upto); a demo service charges the metered amount, capped at the ceiling; cancel an authorization |
| Private | ARLAnonymousSignal |
Create a private identity from a signature; join the demo group; vote in a poll with a zero-knowledge proof made in the browser |
| Jobs | ARLJobs, ARLToken |
Post a job for a service, fund it into escrow, deliver, accept and pay, reject and refund, refund after the deadline |
| Scan | ARLJobs |
See every job and each agent's record (completed, rejected, expired, verified, earned); find a job by number or address; no wallet needed |
On Base Mainnet the app shows Wallet, Vesting, Trade, Claim, Staking, Jobs, Verified and Scan:
- Claim is closed: no claim list is published.
- Staking uses
ARLStakingRewards(0x15e257009BE9B1875fbfa69D291320aaFE3fa102, deployed 2026-11-12). Rewards come in 180-day periods funded by the Community & Staking Safe (0xfF12597A671ebAF0cAe37999EE659e03c4f444B5, 2 of 3); the first period (300,000 ARL) runs from 2026-11-16 to 2027-05-15. - Jobs and Verified use the ERC-8183 escrows and the verified evaluators on Base Mainnet
(see jobs.md). On Verified, a client opens a re-execution job in one flow (post with
the
arl-reexec/1spec link as description,configurewith the spec hash and committee, budget, approve, escrow), after the same checksconfigureand the reference validators apply; the provider approves the committee and submits the result there, and the deliverable is the hash of the result's canonical JSON. The first job's spec and script are inapps/web/public/jobs/first-verified-job/(served at arlcoin.io/jobs/first-verified-job/).
Payments and Network run on the local chain only. In the Base Mainnet build they show "Not live on Base Mainnet yet": the per-use x402 payments facilitator and the provider marketplace are not on Base Mainnet yet. Private runs on Base Mainnet (below).
Design: Apple-style "liquid glass" in the website's night blue and amber. A fixed layer of soft light sits behind the content; panels, tiles, the top bar and menus are translucent glass over it (blur and saturation, a lit top edge, soft shadow), heavier for larger surfaces. Fields are recessed, buttons respond on press. With "reduce transparency" or "increase contrast" turned on, surfaces become solid; with "reduce motion", the press animation is off.
Rules the app follows:
- Network gate (
lib/network.ts): Base Mainnet (8453) and the local chain (31337). Every other chain is refused at build time. - Wallets: browser-extension wallets (MetaMask, Rabby, any injected wallet). No WalletConnect relay, and no "burner" wallet that would keep a private key in the browser. On the local chain a "Local dev account" entry uses Anvil's publicly known development account 1, which the local node unlocks; no key exists in the app.
- Approvals: staking approves exactly the amount being staked, never an unlimited allowance.
- Consistent numbers: vesting amounts that are added together are read at the same block.
Payments (x402 upto)
The Payments screen uses the x402 SDK (@x402/evm 2.29.0) as published, against the canonical
Permit2 and x402UptoPermit2Proxy code, which the local chain setup installs at their canonical
addresses (scripts/install-x402.ts, code hashes checked). The flow:
- Payment limit. The payer approves Permit2 for an amount they choose (never unlimited by default) and can remove it.
- Ceiling. The payer signs a Permit2 witness for a ceiling, bound to the service (payee), the facilitator, ARL, a nonce and a 5 minute deadline.
- Charge. The service measures usage (the demo prices it at 0.001 ARL per unit), and its facilitator verifies and settles the metered amount. More usage than the ceiling is charged at the ceiling. No usage sends nothing.
- Cancel. Before a charge, the payer can cancel the authorization by invalidating its Permit2 nonce.
This screen runs on the local chain only. On a public network the facilitator would be the service's server with its own key and gas. In the local demo it runs in the browser as Anvil development account 4, which the local node unlocks; the service is account 3. Neither has a key in the app.
Private (anonymous polls)
The Private screen uses ARLAnonymousSignal, on Base Mainnet since 22 November 2026 and on the local chain. The wallet signs a fixed message;
the identity secret is derived from that signature in the page, kept only in memory, and never
sent. Joining publishes the identity's commitment (MembersAdded) and the new group root. The
screen rebuilds the member tree from those events and refuses to vote unless it matches the root
the contract holds.
A vote is a proof, made in the browser (noir_js and bb.js, a few seconds), that the voter is one of the members, bound to the poll (scope) and the chosen option (message). The contract accepts one proof per member per poll. On the local chain the group admin is account 0 and votes are sent by a relayer (account 6), so the sending address is not the voter's wallet either.
The screen works for any group, not only the demo one (privatePoll.ts):
- A poll is a link. On chain a poll is a scope (the group number in the upper 128 bits, the
poll number below) and numbered messages. The question and the options travel in the link the
admin shares (
?group=&poll=&q=&o=&o=), and the page says so. A link cannot move a vote: the scope follows from the group and the poll number, and a link that cannot be read is refused. - Admin tools (
?tools, and the screen without a link outside the local chain): start a group from a pasted list of commitments, add members to a group the connected wallet administers, and make the link of a poll. A list the contract would refuse (zero, outside the field, a repeated member) is refused before anything is signed. - Voting from a link has no demo roles: a member who is not in the group yet is shown the commitment to send to the admin, and the vote is sent by the connected wallet. The proof never says which member voted, but the sending wallet is public, and the page says how to keep the two apart (create the identity, then switch the wallet to an account that is not linked).
Privacy notes: bb.js downloads its public proving parameters (CRS) from Aztec's CDN
(crs.aztec-cdn.foundation); the request carries nothing about the voter. Anyone who can see
both who joined and when a vote arrives in a very small group can guess more; the demo group is
small on purpose and is not a privacy guarantee.
Jobs (ERC-8183)
Escrowed work paid in ARL; see jobs.md.
Scan (ARLscan)
A public explorer of the ARL escrow, read from the chain with no wallet (lib/scan.ts). It totals
the jobs posted, funded and completed, the ARL paid to agents and the ARL in escrow now, and keeps
one record per agent from its funded jobs: completed, rejected, expired, still running, completed
under the verified evaluator, ARL earned and distinct clients. A job never funded does not count.
A job settled by the verified evaluator has an audit trail: every on-chain step (opened,
configured, funded, committee accepted, delivered, each vote, verdict, payment) with the time, who
acted and the transaction. The page reads it from the Agent API
(GET /api/v1/jobs/ARL/{jobId}/audit) when asked and checks the answer before showing it
(lib/audit.ts). Base Mainnet builds only.
The Validators table lists every address that staked on the verified evaluator: stake, the
part locked on running jobs, jobs accepted, votes by direction and slashes, read from the Agent
API (GET /api/v1/validators, checked in lib/validators.ts). Base Mainnet builds only.
The page shows records, not a score. The ARL score is arl-reputation/1 (spec): only verified outcomes count, weighted by budget and age, with no client above 25 % of the weight.
Network (ERC-8004)
ARL Network does not add a registry contract of its own. Providers register their services on
the ERC-8004 IdentityRegistry, the open "Trustless Agents" registry, which is deployed at
0x8004A169…a432 on Base Mainnet and other mainnets. The Network screen is open on Base Mainnet
since 2026-11-22: one signature registers an agent, and "Hire with a verified job" opens the
Verified screen with the provider, its agent number and one unit's price filled in. On the local
chain "Pay with ARL" opens the Payments screen instead, which is not on Base Mainnet yet.
Each service is an ERC-8004 agent owned by the provider's wallet. Its registration file
(registration-v1, stored on-chain as a base64 JSON data URI) adds an arl section:
"arl": {
"version": 1, "scheme": "upto", "network": "eip155:31337", "asset": "<ARL>",
"unitPrice": "1000000000000000", "unit": "1,000 tokens",
"payTo": "<payee>", "facilitator": "<who settles>"
}
The Network screen lists every agent whose current file has valid ARL terms for this chain and
for ARL (other agents are ignored), lets a wallet register a service, and lets its owner take it
offline (a new file with active: false). "Pay with ARL" opens the Payments screen with that
service selected, and the payment uses the service's own price, payee and facilitator.
Everything read from the registry is validated (lib/registry.ts): size limits, no control
characters, addresses, a positive price, and links only over https (or http on this machine).
Compute capacity
A compute provider adds a compute object to its arl section and is priced per GPU second or
CPU second (the unit must match the kind):
"compute": {
"kind": "gpu", "gpuModel": "NVIDIA H100 80GB", "gpus": 2, "gpuMemoryGb": 80,
"vcpus": 32, "memoryGb": 256, "maxSeconds": 3600
}
CPU capacity has "kind": "cpu", no gpuModel, and gpus and gpuMemoryGb set to 0. Values are
whole numbers within fixed bounds (COMPUTE_LIMITS in lib/registry.ts: up to 64 GPUs, 1,024 GB
per GPU, 1,024 vCPUs, 16,384 GB memory, jobs of 60 seconds to 24 hours); a file with malformed
capacity is not listed. The capacity is the provider's statement; nothing on-chain checks the
hardware, which is why the listing shows ratings from paid jobs next to it.
Billing (lib/compute.ts): the consumer signs a ceiling of price × seconds for the longest run it
accepts (at most the provider's maxSeconds); the provider measures the run, bills whole seconds
rounded up, and settles that amount, never above the ceiling, through the same x402 upto path
as any service. A longer job can also be hired through the Jobs screen with an escrowed budget and
a deadline. Reference provider software that runs jobs and settles them this way is in
packages/provider (compute-provider.md).
Each service shows its rating from paid jobs (see jobs.md).
For the local chain, scripts/install-canonical.ts installs the identity and reputation registries' proxies and
implementation code, and the storage their initializers set, from the recorded fixture
(fixtures/erc8004-code.json), and scripts/seed-network.ts registers the demo service.
Local fixture
contracts/script/DevDapp.s.sol deploys ARL, one vesting wallet and the staking contract on local
Anvil and refuses every other chain. Its values are development placeholders, not ARL economics:
| Item | Value |
|---|---|
| Demo user (account 1) | Holds the Public Launch allocation; beneficiary of the vesting wallet |
| Operator (account 0) | Deployer, every other allocation, staking reward distributor |
| Vesting wallet | Holds the Investors allocation; 5 minute cliff, linear over 30 days |
| Jobs | ARLJobs with ARL as payment token, deployed by DevDapp; no jobs at start |
| Staking | 30,000 ARL reward period over 30 days, funded at deployment |
| Payments | Canonical Permit2 and x402 upto proxy code; demo service account 3, facilitator account 4 |
| Private | contracts/zk-script/DevZk.s.sol: verifier and ARLAnonymousSignal; demo group 0 (3 members), admin account 0, relayer account 6 |
The fixture is deployed by account 0 on a fresh chain, so contract addresses never change.
contracts/localContracts.ts is generated from it and checked on every end-to-end run.
Base Mainnet
Building with NEXT_PUBLIC_ARL_CHAIN=8453 targets the contracts in
contracts/baseMainnetContracts.ts, which scripts/generate-mainnet-contracts.ts writes from the
Foundry build and the Base Mainnet records (contracts/deploy/deployments/8453.json,
contracts/deploy/base-mainnet-jobs.json, contracts/deploy/base-mainnet-services.json); CI checks
it with --check.
| Item | On Base Mainnet |
|---|---|
| RPC | Public endpoints in order (publicnode, mainnet.base.org, Tenderly gateway); a local fork URL is used alone |
| History reads | From each contract's deployment block; ranges an endpoint refuses are split (lib/logs.ts) |
| Staking | ARLStakingRewards; 180-day reward periods funded by the Community & Staking Safe; first period funded 2026-11-16 |
| Jobs | ERC-8183 escrows in ARL and USDC with the verified evaluators; directly from the user's wallet |
| Claim | Closed; no list |
| Not live yet | Payments, Network and Private show "Not live on Base Mainnet yet" |
Every transaction is sent from the user's own wallet. The app has no server of its own: it is a
static export, built with the website (scripts/build-cloudflare.sh) and served by Cloudflare Pages
under arlcoin.io/app.
Run it
Requires Node 22 and Foundry v1.8.3.
cd apps/dapp
npm ci
npm run chain # terminal 1: fresh Anvil (one block every 2 s) with the fixture deployed
npm run dev # terminal 2: http://localhost:3100, then "Connect wallet" → "Local dev account"
To use MetaMask instead, add the network http://127.0.0.1:8545, chain id 31337.
Tests
| Suite | Command | Covers |
|---|---|---|
| Unit | npm test |
Amount parsing and formatting, vesting phase, reward share, network gate (local chain and Base Mainnet only), poll options |
| End to end | npm run test:e2e |
Production build in Chromium against a fresh Anvil chain: connect, send, stake / earn / claim / withdraw / exit, payment limit / signed ceiling / metered charge / cap / zero usage / cancel, anonymous vote proven in the browser and a second vote refused, jobs (pay, refund, expiry), vesting before and after the cliff, phone width |
| Contracts | forge test |
DevDappTest: the fixture refuses non-local chains and deploys the expected state |
Not yet
- Per-use x402 payments, the provider marketplace (Network) and anonymous polls (Private) on Base Mainnet.
- Mobile wallets over WalletConnect: needs a WalletConnect project id (a free account; owner decision).