WalletFactory
WalletFactory creates new GuardedWallets. Anyone can call it, for themselves or for another owner. There is no allowlist and no fee.
Functions
| Function | What it does |
|---|---|
createWallet(owner, label, initialPolicy, initialSigners, escalationCouncil, escalationThreshold, escalationExpirySeconds) | Deploys a wallet with CREATE2 and returns its address. Emits WalletCreated. |
predictWallet(deployer, owner, label, nonce, initialPolicy, initialSigners, escalationCouncil, escalationThreshold, escalationExpirySeconds) | Returns the address a createWallet call would produce, without deploying. |
defaults() | The modules new wallets start with: policy engine, escalation manager, risk oracle and vendor registry. |
See the Quickstart for a full createWallet example.
Factory owner
The factory has an owner who can call setDefaults to choose the modules new wallets
start with. This never changes an existing wallet; that is checked by
test_attack_defaultRotationCannotRewriteExistingWallets. See
Admin and governance.