Docs

Build on Aevum testnet

Everything in this kit, on one page: run it locally, deploy to chain 44005, and the few places where Aevum behaves differently from Ethereum.

View the code on GitHub
Judging counts activity on Aevum.Contracts, payments and transfers must happen on Aevum testnet. Settling only on another chain (for example x402 on Base) doesn't count.

Aevum Builder Challenge #1

Build a payment app with the tUSD8 stablecoin on Aevum testnet. Fully online, solo or teams of 2 to 4. Your project is built during the build window, and every contract runs on Aevum testnet with test tokens only. Open-source boilerplate, templates and this kit are allowed when their license permits it. See Licenses and credit.

Kickoff16 Nov 2026, 14:00 HKT (06:00 UTC)
Submission deadline11 Dec 2026, 16:00 HKT (08:00 UTC). Late submissions aren't accepted.
Judging12 to 14 Dec 2026
Winners15 Dec 2026, 14:00 HKT (06:00 UTC)
Prizes$1,500 in USDT: 1st $800, 2nd $500, 3rd $200
HelpQDay Discord, Monday to Friday, 10:00 to 18:00 HKT
Submit atdorahacks.io/hackathon/qday

Tracks

TrackWhere this kit helps
Invoice PaymentsAn order id is an invoice id. Checkout.paymentOf(orderId) tells you if it's paid; the Paid event is the receipt.
Payroll and VestingReuse the tUSD8 setup, the chunked event reader and the relayer. Streaming and schedules are yours to build.
CrowdfundingPledges are payments to a campaign contract. Start from Checkout.sol and add goals, deadlines and refunds.
Confirmation of PayeeCheck who you're paying before you sign. QDay's ERC-8004 registry is still in internal testing and isn't open for this challenge, so keep the name-to-address mapping in your own contract.
Decentralized PaymentsGasless checkout (EIP-3009 + relayer) works today. Account abstraction is on its way to this kit.
Digital OwnershipPay in tUSD8, then mint or transfer the asset in the same contract call.
Native AI Assistantsexamples/pay-gasless shows a script that signs and pays without a browser, the starting point for an agent.
Other business payment toolsAnything that moves tUSD8 on Aevum for a real business need.

Full rules: the DoraHacks challenge page. They win over anything on this page.

Quickstart

Five minutes, no funds needed. You need Node 22+, pnpm and Foundry (foundryup).

git clone --recursive https://github.com/qday-io/aevum-starter-kit.git
cd aevum-starter-kit
make install          # Solidity libs + JS packages
make check            # build, Shanghai opcode check, unit tests, fork tests

Run the whole app against a local copy of Aevum, with the real tUSD8 and free test balances:

# terminal 1: local copy of Aevum testnet on 127.0.0.1:8555 (chain 440050)
make fork

# terminal 2: deploy Checkout and give yourself test money
make deploy-fork                      # prints the Checkout address
make deal TO=<your wallet address>    # 100 tUSD8 + 10 tQDAY, on the fork only

cp web/.env.example web/.env.local
#   NEXT_PUBLIC_NETWORKS=fork,aevum
#   NEXT_PUBLIC_CHECKOUT_FORK=<address from deploy-fork>
#   RELAYER_PRIVATE_KEY=<an anvil test key>   (optional: enables gasless mode)
make dev

Use the Local fork / Aevum testnet switcher in the header. The first time you pick the fork, your wallet offers to add "Aevum fork (local)" as a new network. After that, switching is one click, and your real testnet network stays untouched.

Why the fork has its own chain ID (440050)

It copies Aevum's state (accounts, balances, tUSD8), but anything you sign there, such as an EIP-3009 authorization or a permit, can't be replayed on the real testnet, and wallets never mix the two up. make deploy-fork also deploys from a random address nobody has the key to, so its contract addresses can't be claimed on the real testnet.

Any of anvil's default accounts works as a local relayer. Those keys are public, so the relayer refuses them on Aevum testnet: give it a fresh test wallet there. Want an empty chain instead? make anvil + make deploy-local deploys a MockUSD8 that anyone can mint with make mint.

Network details

NetworkQDay Aevum Testnet
Chain ID44005
RPChttps://rpc-test.qday.info (HTTPS only, no WebSocket)
Explorerexplorer-test.qday.info
Gas tokentQDAY (18 decimals), about 1 gwei. 1 tQDAY covers hundreds of contract calls.
EVM versionShanghai
tUSD80x456569838f1d43009A91ebA4263147Afd7233483
6 decimals, USDC-style: EIP-2612 permit, EIP-3009 signed transfers. EIP-712 domain name: "tUSD8", version: "2".
Multicall30xcA11bde05977b3631167028862bE2a173976CA11

All of this is exported from @aevum-kit/aevum (packages/aevum/src/chain.ts and contracts.ts).

Get test tokens

  • Discord faucet (for challenge participants, recommended): enough to deploy and pay, and no mainnet balance needed. See below.
  • Web faucet: faucet.qday.info. Check the page for its rules.
  • Local fork: make deal TO=<address> for unlimited test balances. Nothing leaves your machine.

1 tQDAY is plenty: deploying Checkout costs well under 0.01 tQDAY.

Discord faucet

  1. Join the QDay Discord.
  2. In #verify, react with ✅ to get the Verified role.
  3. Type /faucet, paste your wallet address, and send. The bot answers privately (only you see it) with the transaction links.
  • You get 1 tQDAY + 5 tUSD8, usually within a few seconds.
  • Once per Discord account and once per address. Use the address you'll build with. Running out? Ask in the help channel.
  • It works for Discord accounts that aren't brand new. If you can't claim, the bot says why.
  • Unlike the web faucet, it doesn't check for an Ethereum mainnet balance, so a fresh testnet-only wallet works.

Deploy to Aevum testnet

Keep your deployer key out of files and shell history. Foundry's encrypted keystore asks for the key once and a password each time:

cast wallet import aevum-deployer --interactive   # paste the key of a TEST wallet
cast wallet address --account aevum-deployer      # fund this address from the faucet

make deploy-aevum ACCOUNT=aevum-deployer          # MERCHANT defaults to the deployer
MERCHANT=0x... make deploy-aevum ACCOUNT=aevum-deployer

Then set NEXT_PUBLIC_CHECKOUT_AEVUM in web/.env.local and add aevum to NEXT_PUBLIC_NETWORKS.

Putting the app online: set NEXT_PUBLIC_NETWORKS=aevum only. With fork or local listed, visitors get a "Local fork" option that points at their own 127.0.0.1. Give the relayer its own wallet with a little tQDAY, and read the relayer notes in How the checkout works.

Use a wallet made only for testing.Never paste a private key into chat, an issue, or a committed file.

Contract verification on the explorer isn't working yet, so forge verify-contract fails for now. Put your contract addresses and a link to the exact commit in your README and submission instead.

How the checkout works

Checkout takes one token and one merchant address. Each orderId (any bytes32) can be paid once. The money goes straight to the merchant, and the Paid(orderId, payer, amount) event is the receipt.

Standard

Two transactions. The buyer pays gas.

buyer → approve(Checkout, amount) → tUSD8
buyer → pay(orderId, amount)      → Checkout
        Checkout → transferFrom   → merchant

Gasless

One signature. The buyer needs no tQDAY.

buyer   signs ReceiveWithAuthorization (off-chain)
relayer → payWithAuthorization(...) → Checkout
          Checkout → receiveWithAuthorization
          tUSD8 → Checkout → merchant

Design choices worth keeping:

  • The signed nonce must equal Checkout.authorizationNonce(orderId). That binds the signature to one order, so a relayer can't reuse it to mark a different order as paid.
  • receiveWithAuthorization (not transferWithAuthorization) means only the Checkout can pull the funds, so nobody can front-run the signature into a plain transfer.
  • The contract doesn't know prices. Your app decides what an order costs (priceOf in web/src/lib/order.ts) and checks paymentOf(orderId) and its amount before delivering.

The relayer (web/src/app/api/relay/route.ts) pays gas for anyone who calls it, so it has rails. Keep them:

  • Only payWithAuthorization on your Checkout, nothing else.
  • Only the price your app set for that order. Otherwise anyone could burn your gas with 0.000001 tUSD8 payments.
  • Skips orders already paid or already being submitted, and simulates before sending.
  • Refuses anvil's public keys on a real network, caps the signature window at 1 hour, rate-limits per IP and per payer, and stops at a daily cap.
  • The limits live in memory. Fine for next start on one server; on serverless hosts move them to a shared store (Redis, your database). Set TRUSTED_IP_HEADER to your host's client-IP header.
Anyone can pay any order, with any amount.pay(orderId, 1) marks an order as paid for 0.000001 tUSD8 and can front-run the real buyer. Never ship on isPaid alone: compare the amount. For production, key payments by keccak256(payer, orderId) or have the merchant sign each quote, and use unguessable order ids.

Code to read, in order:

  1. contracts/src/Checkout.sol
  2. contracts/test/Checkout.t.sol: every rule above as a test
  3. contracts/test/fork/AevumFork.t.sol: the same flows against the real tUSD8
  4. examples/src/pay-gasless.ts: sign and relay in about 40 lines
  5. web/src/app/checkout/page.tsx: both modes in the UI

Differences from Ethereum

TopicWhat happensWhat to do
Shanghai EVMCancun opcodes (MCOPY, TSTORE/TLOAD, blob ops) don't exist. Cancun bytecode deploys, then reverts with invalid opcode.Keep evm_version = "shanghai". make build runs tools/check-shanghai.mjs. Avoid OpenZeppelin's *Transient contracts.
anvil hides itPlain anvil --fork-url runs Cancun, so bad bytecode passes local tests.Always add --hardfork shanghai (the Makefile does).
1,000-block log limiteth_getLogs over more than 1,000 blocks fails.Use getLogsChunked from @aevum-kit/aevum, starting from your deploy block.
No WebSocket RPCwatchContractEvent over WS won't connect.Poll over HTTPS (viem's default for http()).
Explorer verificationNot working yet.Share addresses and the exact commit instead.
Legacy transactionsThe kit's scripts and relayer send legacy (type 0) transactions, like QDay's own faucet.--legacy in forge script, type: "legacy" in viem.

Commands

make install        Fetch Solidity libs and JS packages
make build          Compile contracts and check they are Shanghai-safe
make test           Unit tests (local, no network)
make test-fork      Tests against the real tUSD8 on a local fork of Aevum
make check          Everything CI runs
make anvil          Empty local chain (31337) with Aevum's EVM rules
make fork           Local copy of Aevum testnet on 127.0.0.1:8555 (chain 440050)
make deploy-local   Deploy MockUSD8 + Checkout to `make anvil`
make deploy-fork    Deploy Checkout (real tUSD8) to `make fork`
make deploy-aevum   Deploy Checkout to Aevum testnet (ACCOUNT=<keystore>)
make mint           `make anvil` only: mint MockUSD8 (TO=, CHECKOUT=, AMOUNT=)
make deal           `make fork` only: give TO tUSD8 and tQDAY
make dev            Start the web app

Examples (copy examples/.env.example to examples/.env first):

pnpm example check-setup      # chain, block, gas price and balances of ADDRESS
pnpm example pay-gasless      # BUYER_KEY signs, RELAYER_KEY submits
pnpm example read-payments    # every Paid event, 1,000 blocks at a time

Submitting your project

What the challenge asks for:

  • Open-source code: a public GitHub repository with clean, readable code.
  • Aevum integration: evidence that your app runs on QDay infrastructure, for example your contracts or QDay dapps.
  • Live deployment: a working demo, a prototype interface, or a Docker image that runs the app.
  • Documentation: the problem you solve, your architecture, the core workflows, and the technologies you used.
  • Demo: the top 5 projects present a 3 to 5 minute live walkthrough on a video call.

Make it easy for judges to check your on-chain activity:

  • Contract addresses on Aevum testnet (44005), with explorer links.
  • A link to the exact commit you deployed.
  • A few transaction hashes that show your app working. The receipt and activity pages show them.

Before you submit

  • Submitted before the deadline. Submit early; the portal gets slow at the end.
  • The repo is public and opens in a logged-out browser.
  • No private keys, .env files or API keys in the repo or its commit history.
  • A stranger can run the project from your README.
  • Contracts and payments are on Aevum testnet, not another network.
  • The demo link works without logging in.
  • Every team member is listed and registered.
  • The repo has an open-source license, and every template or snippet you reused is credited.

Licenses and credit

The organizers confirmed that boilerplate, scaffolding and templates are allowed, as long as their license permits the use. This kit is MIT licensed, so you can build on it.

  • Put a permissive open-source license on your repo, usually MIT or Apache 2.0.
  • If you start from this kit, keep its LICENSE file (or its copyright notice) and say so in your README, for example: "Based on Aevum Starter Kit (MIT, PQA Labs)".
  • Keep the original copyright and license headers in any file you copy from another project.
  • Put a short comment above any code snippet you borrow, naming the source repo, author and license.
  • List your third-party dependencies and their licenses in your README or a NOTICE file. This kit's NOTICE.md shows one way to do it.
  • If you copy a whole directory or library, keep its original LICENSE file in that folder.

Judging

What judges look at. The DoraHacks page has the current list and weights.

CriterionWhat it means
InnovationA new idea, architecture or business model that goes beyond templates (this kit included). Creative use of agents and agentic payments.
Technical qualityDeep, correct platform use (smart accounts, scoped sessions, budgets, expiry). Tested code that handles retries, idempotency and async failures.
Real-world utilityA real problem for a clear audience that would pay. A believable path to merchants, agents and mainnet.
User experienceFast onboarding, clear status and error messages, works across devices. A pitch that explains the problem.
DemoA reliable testnet demo with live on-chain activity, showing the main flow and how failures are handled.
DocumentationSetup steps, an architecture diagram, API references, integrations, assumptions, limitations and a roadmap.
Safety and controlsLeast-privilege sessions, budget caps, safe key storage, injection protection, audit trails, verifiable receipts, easy revoke.

FAQ

Do I have to use Checkout?
No. It's an example. Keep the parts you need (packages/aevum, the chunked log reader, the setup checker) and replace the rest.
Can I use account abstraction?
It isn't required for this challenge, and there's no officially supported bundler or paymaster. A normal wallet plus tUSD8 payments is enough. To spare users gas, use the gasless checkout in this kit (EIP-3009 with a relayer). For budgets, limits, expiry and revoke, write them into your own contract. You can deploy your own ERC-4337 setup if you want to, but the team won't support or debug it.
Can I use Hardhat?
Yes. Set evmVersion: "shanghai" in the Solidity settings, and hardfork: "shanghai" for the Hardhat network.
My transaction fails with invalid opcode.
You compiled for Cancun. See Differences from Ethereum.
eth_getLogs errors on a big range.
Split it into 1,000-block chunks with getLogsChunked.
Can I deploy to Sepolia or another testnet?
Not for the challenge. Contracts and payments must be on Aevum testnet (44005).
Can I pay gas in tUSD8?
Not out of the box: there's no public paymaster that takes tUSD8 yet. Gasless checkout (a relayer pays the tQDAY) is the way to spare users gas today.
Which explorer?
explorer-test.qday.info. explorer.qday.io is mainnet.
Where do I ask for help?
In the QDay Discord's Builder Challenge channels (verify first to see them). The team answers Monday to Friday, 10:00 to 18:00 HKT (02:00 to 10:00 UTC).
The web faucet says "address not eligible".
The web faucet only pays addresses that hold a little ETH, USDT or USDC on Ethereum mainnet. Use the Discord faucet instead.

Source and full README: github.com/qday-io/aevum-starter-kit. QDay's general guide: community.qday.io/guide/. MIT licensed, © 2026 PQA Labs.