IOrionEncryptedVault
IOrionEncryptedVault
Interface for Orion confidential vaults
submitIntent
function submitIntent(bytes intentCiphertext) external
Submit an encrypted portfolio intent
Parameters
| Name | Type | Description |
|---|---|---|
| intentCiphertext | bytes | Opaque intent ciphertext |
getPortfolio
function getPortfolio() external view returns (bytes portfolioCiphertext)
Returns the stored portfolio ciphertext
Return Values
| Name | Type | Description |
|---|---|---|
| portfolioCiphertext | bytes | Opaque portfolio |
getIntent
function getIntent() external view returns (bytes intentCiphertext)
Returns the stored intent ciphertext
Return Values
| Name | Type | Description |
|---|---|---|
| intentCiphertext | bytes | Opaque intent |
updateVaultState
function updateVaultState(bytes portfolioCiphertext, uint256 newTotalAssets) external
Updates the vault's encrypted portfolio and total assets
Can only be called by the liquidity orchestrator.
Parameters
| Name | Type | Description |
|---|---|---|
| portfolioCiphertext | bytes | Opaque portfolio |
| newTotalAssets | uint256 | The new total assets value for the vault |
maxCiphertextLength
function maxCiphertextLength() external view returns (uint256)
Maximum accepted ciphertext length for the current investment universe
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | uint256 | Max blob length. |