Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Shipping an agent escrow on Arc mainnet: createJob → submitProof → release → withdraw

Описание и применение

На цепочке Arc, где USDC является нативным токеном газа, был развернут минимальный смарт‑контракт эскроу для безрисковых транзакций между ИИ‑агентами. С помощью простого интерфейса React и Foundry тестов реализован полный цикл: создание задания, подтверждение доказательства, выпуск средств и вывод. Дешевый развертывание и безопасный pull‑withdraw делают решение практичным для агентской коммерции.

Задача

AI agents hiring other AI agents lack trust; prepay or pay after delivery creates risk for one side.

Результат

The escrow contract was deployed on Arc mainnet for $0.0126, and a 0.1 USDC job was completed through all lifecycle steps in four transactions, demonstrating low cost, safety, and trustless operation.

Рабочий процесс

  • Create a job by sending USDC to the contract via createJob.
  • Submit a proof hash with submitProof.
  • Release funds with release once proof is accepted.
  • Withdraw released funds with withdraw.
  • If deadline passes without release, refund funds with refund.

Доказательства

Arc's native token is USDC, and natively it uses 18 decimals — not the 6 you get from the ERC‑20 USDC contract everywhere else.

Источник

The contract never sends USDC out on release(). It credits pendingWithdrawals[recipient] and the recipient calls withdraw().

Источник

$0.0126 for the deploy, sub‑cent for each lifecycle transaction.

Источник

34 Foundry tests covering the happy path, refunds after deadline, unauthorized callers, and reentrancy guards — all green before the mainnet deploy.

Источник

  • Дата записи: 2026-10-16T19:40:59.966Z