Intent, asks Newton operators to evaluate that intent against the configured policy, and forwards the action only when a valid attestation is available.
What It Does
VaultKit turns a vault action into this flow:Core Pieces
- Shield clones: One audited implementation per chain, with deterministic per-curator clones deployed through
ShieldFactory. - Policy packs: Typed wrappers around Newton policy templates. Packs validate params, prepare
wasmArgs, and expose per-pack helpers. - Vendor modules: Typed wrappers for vault-manager actions, starting with Morpho. Vendor modules produce the calldata that the Shield forwards after policy approval.
- Generic calls:
shield.sendCall(...)supports protocols and manager actions without a first-class vendor module. - Typed errors: SDK failures map to stable error classes such as
PolicyDeniedError,AttestationTimeoutError,ShieldExecutionError,ParamMismatchError,GatewayError, andUnsupportedChainError. - Browser-safe core: The main package avoids
node:*imports. Vendor modules may inherit constraints from the vendor SDKs they wrap.
Manager Actions Only
VaultKit is for privileged vault operations such as reallocations, cap changes, and other curator or manager calls. End-user deposits and withdrawals still flow through the vault protocol’s normal UX unless the vault deliberately routes those actions through a Shield.How to Read This Section
- Start with Getting Started to install packages, create clients, configure a Shield, and run a policy-gated action.
- Use Morpho for MetaMorpho curator setup, composite policy choices, and
reallocaterole requirements. - Read Concepts if you want the mental model for
createShield, packs, vendor modules, andsendCall. - Use Examples for copyable integration patterns.
- Keep Reference nearby for parameters, return values, supported chains, and exported errors.
Integration Guide
Install VaultKit and run a policy-gated vault action.
Morpho
Gate MetaMorpho curator actions with a Newton Shield.
Concepts
Understand Shield clients, policy packs, vendor modules, and generic calls.
Reference
Review the API surface, chains, errors, and package structure.