Deploying a New Vault
A deployment involves a single factory call followed by automatic registry listing. No manual proxy setup nor ABI juggling is necessary.
Assemble facet bundle: Compile the set of facets that allow you to implement your strategy and load their function selectors into an array.
Call
deployVault
on the VaultsFactory: Pass the facet bundle, the wrapped‑native token address, and the registry you want to join. The factory mints a Diamond proxy, wires the facets, emitsVaultDeployed
, and pushes the address intodeployedVaults[]
.Registry handshake: The new vault registers itself in the chosen registry, marking it discoverable by front‑ends that filter on
isFactoryVault
.Verify on‑chain: Query
getDeployedVaults()
or listen for theVaultDeployed
event to fetch the address and initial facet map.
Last updated