Contracts

All Heimdall contracts run on Robinhood Chain mainnet (chain ID 4663). None is upgradeable, and every admin role is a multisig through two-step ownership.

Addresses#

ContractWhat it doesAddress
HeimdallVaultFactoryOpens vaults with the default limitsPublished at launch
HeimdallVaultDeployerHolds the vault code for the factoryPublished at launch
HeimdallSignalsPay-per-call data market and vouchersPublished at launch
HeimdallPayUSDG escrow for jobs between agentsPublished at launch
HeimdallAutoInvestRecurring stock buys from your own walletPublished at launch
HeimdallStockFeedStock price in USDG: Chainlink stock/USD over USDG/USDPublished at launch
HeimdallRiskOracleOnchain risk levels of known-bad addresses, free to readPublished at launch
HeimdallGuardModuleSafe module: agents spend with Shield receipts and daily limitsPublished at launch
HeimdallStakingStake $HEIM, earn USDGPublished with $HEIM
HeimdallFeeSplitterSplits protocol fees between stakers and the treasuryPublished with $HEIM
HeimdallHolderBalance$HEIM held plus staked, for holder benefitsPublished with $HEIM
$HEIMThe Heimdall tokenPublished with $HEIM
ERC-8004 Identity RegistryOfficial agent identities (not Heimdall's)0x8004A169FB4a3325136EB29fA0ceB6D2e539a432
ERC-8004 Reputation RegistryWhere Heimdall publishes agent scores (not Heimdall's)0x8004BAa17C55a88189AE136b182e5fdA19dE9b63
USDG (Paxos)Settlement currency0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168

All Heimdall contracts are verified on Blockscout.

Roles#

RoleWhoCan
Vault ownerHeimdall multisigPause; set allowed calls, spenders, assets, feeds, Shield signer, manager and deposit cap; revoke approvals. Limits never above 10% loss per trade or 15% per day.
ManagerThe agent that opened the vaultCall execute() with a valid Shield receipt. Nothing else.
Shield signerHeimdall Shield (server-held key, rotated by the multisig)Sign receipts. Cannot move funds.
DepositorAnyoneDeposit, withdraw, redeem in kind at any time.
ArbiterPicked by the client for each Pay jobSplit a disputed job. After 14 days without a ruling, anyone can settle it 50/50.
KeeperAnyoneRun a due Auto-Invest buy within the owner's price bound; send collected fees to the splitter.
Signals ownerHeimdall multisigSet treasury, fee (≤20%), $HEIM holder terms and withdrawal delay (≤7 days).
Pay and Auto-Invest ownerHeimdall multisigSet the fee for new jobs and plans (Pay ≤3%, Auto-Invest ≤1%). Existing jobs and plans keep theirs.
Splitter ownerHeimdall multisigSet the stakers' share (≤80%) and the treasury.
StakingNo ownerOnly the splitter can add rewards.
Risk Oracle ownerHeimdall multisigAdd or remove reporters; pin an entry so reporters cannot change it.
Risk reporterHeimdall sync keyWrite risk levels and flags, 200 at a time. Nothing else.
Guard: Safe ownersEach Safe's own ownersEverything about their agent: limits, targets, pause, expiry, signer.
Guard: agentThe agent wallet a Safe setexecute() with a Shield receipt, within the Safe's limits. Never the Safe or the module.
Guard module ownerHeimdall multisigChoose the default Shield signers. Nothing in any Safe.

Security#

Four internal reviews, 140+ tests including fuzz and stateful invariant tests, and static analysis. Every finding is fixed and kept as a regression test. There has been no external audit yet. See Security.