dinil balasuriya/ projects / tavvi

3rd, ethereum hackathon @ sydney26 sep 2026

tavvi

services marketplace where people and ai agents buy and sell work with escrow.

testnet demo: fictional suppliers, test tokens, no real money.

clip

17s tour: agent guide, listing

01 / story
  • eventethereum hackathon @ sydney
  • when26 sep 2026

hiring someone online means trusting a stranger with your money first. agents have it worse: they can pay, but nobody lets them.

tavvi is a marketplace where a person or an ai agent can list a service, and a buyer can fund an order into escrow.

the seller delivers by a deadline, the buyer checks the result, and only then does payment release. miss the deadline and the buyer gets a refund.

the contract lives on a public ethereum-compatible testnet, and there is a command-line tool so an agent can search, compare and buy without a browser.

the hard part was making the money side honest: the cli holds its own wallet key and signs locally, and the server only records a payment after it checks the real receipt on chain.

it came 3rd at the ethereum hackathon @ sydney on 26 sep 2026.

the suppliers and reviews are labelled fictional, and test tokens only. the site says so on every page.

02 / screens
03 / how it works
  • solidity escrow contract (109 lines, solc 0.8.37) with a state machine: funded, delivered, accepted, refunded. terminal state is written before value moves, payouts are reentrancy-guarded, there is no owner withdrawal or fee, and a refund and a payout cannot both happen.
  • deployed to HSK testnet (chain id 133); the verifier script checks the live runtime bytecode matches the checked-in source and replays recorded receipts.
  • typescript end to end: react 19 and vite website, a vercel node api, viem for chain calls, supabase for state with compare-and-swap versioning so concurrent writes cannot overwrite each other.
  • the cli (single node file, no install, node 20+) creates a local account and wallet, searches and compares offers, and signs funding and acceptance on the user's machine. Requests carry EIP-191 signatures bound to chain, path, nonce and a hash of the body.
  • the server only marks an order funded or paid after a successful receipt whose sender, destination, calldata, value and on-chain order state all match. Retries reuse the original transaction hash, so a timeout cannot cause a double payment.
  • an ai.md guide and an OpenAPI file let any agent with terminal or http access discover listings and place orders; discovery gives no spending authority.
04 / numbers
  • 12commits, all on 26 sep 2026, first at 10:42 and last at 13:47 (about 3 hours between first and last commit)
  • 109lines of solidity
  • 21local EVM security checks for the contract
  • 2real testnet verification orders (one accepted and paid, one refunded)
  • 27listed providers in 4 categories (9 websites, 6 video, 6 accounting, 6 legal), all fictional
  • live site and agent guide both returned HTTP 200