Contracts
Robinhood Chain, chain id 4663. Sources verified on Sourcify. Solidity 0.8.28, hand-written owner and reentrancy guard, no proxies besides the wallet clones.
| Contract | Address | Role |
|---|---|---|
| BulwarkFactory | 0xa8A60541c17e5218E5E838E9AFD2d3363F24cD03 | create(owner, agent, policy) deploys an EIP-1167 clone; walletsOf(owner) |
| BulwarkWallet | 0xf88c3559118B1f7966963cd6F99f1796ceF79A40 | The implementation every wallet clone runs |
| ThreatRegistry | 0x6C4A4CC8298263B051344BFB2646CC30C6b98aA3 | Threat entries, sentinel stakes, the sentinel pot |
Errors
| Error | Meaning |
|---|---|
DailyCap(token, used, cap) | This call would take the token over its 24-hour cap |
TargetNotAllowed(target) | Strict mode and the target is not allowlisted |
SelectorNotAllowed(target, sel) | The target is limited to other functions |
RecipientNotAllowed(to) | Strict mode and the token recipient is not allowlisted |
SpenderNotAllowed(spender) | Approval to a contract that is not allowlisted |
UnlimitedApproval(token, spender) | An approval of the maximum amount |
ApprovalForAllRefused() | setApprovalForAll, always refused |
UntrackedToken(token) | The agent tried to move or approve a token without a cap |
Blocked(target, entryId) | A batch hit the threat list (Open mode) |
Frozen() | The owner froze the wallet |
FeeUnpaid() | Less than 0.01 USDG in the wallet |
Tests
Unit tests for every rule, a fuzz test that runs random sequences of agent transfers, approvals, router pulls and ETH sends at random times and checks that no 24-hour interval ever moves more than a cap, an evil router that tries to pull more than approved or a second token, and a fork test that swaps real USDG on the Universal Router from a wallet and checks the cap by balance delta.
Live test
Before launch we ran the whole flow on-chain with cents: a wallet with a USDG cap of 1 per day, a 0.50 USDG payment that passed, a 0.60 USDG payment refused by the SDK and reverted on-chain with DailyCap, a UnlimitedApproval revert, a threat-list hit recorded in Open mode, a scripted prompt injection stopped at the cap, a freeze, a Frozen revert and a full withdrawal. The test wallet's history is in Activity.