
- Draft a root configuration.
- Activate the configuration version.
- Generate a merkle tree from the active config.
- Primary manager proposes / publishes the root onchain.
- Publish the proof artifact for consumers.
Hook Configs
Hook configs define which hook + parameter combinations the vault authorizes. When creating a config, choose hooks from the registry and set inspect parameters such as:yield_source— target yield source address.token— token address.oracle— oracle address.- Freeform hook parameters.
Activate Config
Only one config version is active at a time. Activating a config selects the version used for the next tree generation. Activating a config does not update the onchain root by itself. It selects what Erebor will generate next.Generate Tree
Generation is asynchronous:409 Conflict means generation is already in progress for the vault.
The generated tree includes:
- Root hash.
- Leaf count.
- Config hash / version.
- Leaf details and proof paths.
Sync Root Onchain
The Sync action compares generated tree state to onchain state and returns the next action:Publish Proof Artifact
Publishing makes the active proof set available to integrators, keepers, and frontends without Erebor authentication. The app exposes this as a primary-manager-gated Publish or Re-publish action on the active tree. Once the current artifact matches the active tree, the button state becomes Published.
When
is_stale is true, re-publish before relying on the artifact for execution. Even when is_stale is false, verify root_hash against the onchain SuperVaultAggregator state; offchain publish and onchain root sync are independent steps.
