Vault Lifecycle
1. Bootstrap the vault
Use:- derives or reads the vault address
- initializes the vault if it does not exist
- registers every allowed strategy from the sample registry
Bootstrap requirements
VAULT_PROGRAM_IDmust point to a real deployed executableVAULT_AUTHORITY_KEYPAIR_PATHmust be validVAULT_SHARE_MINT_KEYPAIR_PATHmust exist if the vault is not initialized yetVAULT_TREASURY_KEYPAIR_PATHmust exist if the vault is not initialized yet- the authority wallet must have SOL
2. Inspect the result
Use:- vault state
- strategy state
- allocation state
- optional withdrawal request state
3. Run admin actions
Use:VAULT_ADMIN_ACTION values:
pause-vaultresume-vaultpause-strategyactivate-strategyexit-only-strategydisable-strategy
4. Run user actions
Use:VAULT_USER_ACTION values:
depositrequest-withdrawalfinalize-withdrawal