Contracts
One escrow contract on Robinhood Chain holds every deposit and settles every covered call. Its source is verified.
Addresses
| Contract | Address |
|---|---|
| ArbiterEscrow | 0xC45c2C944723d1E1EA9aB9E5A147Df5CBf841784 |
| USDG | 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168 |
Chain id 4663. Deployment: transaction. Source verified on Sourcify.
Roles
| Role | Can | Cannot |
|---|---|---|
| Relayer | Submit buyers' authorizations (any nonce); its gas is paid by the fee floor | Change a price, move a deposit |
| Judge | Refund an objective failure, open a dispute filed by API, resolve a dispute (0 to 100% of that call's price) | Touch a free deposit, refund more than a call's price |
| Owner | Set the relayer, judge, burn vault, treasury and staking addresses, the fee (at most 2%, floor at most 0.01 USDG) | Move deposits or locks |
| Anyone | Submit a payment with the derived nonce, release closed calls, trigger the 7-day default, flush the fee pots |
Functions
solidity
// sellers
registerService(bytes32 id, uint96 price, uint32 window, bytes32 promiseHash, address payTo)
setService(bytes32 id, uint96 price, uint32 window, bytes32 promiseHash, address payTo, bool active)
pauseService(bytes32 id)
depositBond(uint256 amount)
withdrawBond(uint256 amount) // up to deposit - locked
releaseAndWithdraw(uint256[] ids, uint256 amount) // releases closed calls first
// payments (USDG EIP-3009, nonce = keccak256(serviceId, salt))
cover(bytes32 serviceId, bytes32 salt, address from, uint256 value,
uint256 validAfter, uint256 validBefore, uint8 v, bytes32 r, bytes32 s) returns (uint256 callId)
coverWithNonce(...) // relayer only, for clients that sign a random nonce
// buyers and settlement
dispute(uint256 callId, bytes32 reasonHash) // the paying wallet, inside the window
autoRefund(uint256 callId, uint8 code) // judge
resolve(uint256 callId, uint16 refundBps, bytes32 verdictHash) // judge
refundUnresolved(uint256 callId) // anyone, 7 days after the dispute
release(uint256[] ids) // anyone, after the window
// views
services(bytes32) calls(uint256) bonds(address) freeBond(address) feeFor(uint256) nonceFor(bytes32, bytes32)Events
solidity
event Covered(uint256 indexed callId, bytes32 indexed serviceId, address indexed buyer, address seller,
uint256 price, uint256 toSeller, uint256 fee, uint64 unlockAt, bytes32 salt);
event Disputed(uint256 indexed callId, bytes32 reasonHash, bool viaJudge);
event Settled(uint256 indexed callId, address indexed buyer, uint256 refund, uint16 refundBps, uint8 code, bytes32 verdictHash);
event Released(uint256 indexed callId, address indexed seller, uint256 amount);
event ServiceRegistered(bytes32 indexed id, address indexed seller, uint256 price, uint32 window, bytes32 promiseHash, address payTo);
event BondDeposited(address indexed seller, uint256 amount);
event BondWithdrawn(address indexed seller, uint256 amount);