Solidity API
EventsLib
Centralized library of events emitted throughout the Orion protocol.
WhitelistedAssetAdded
event WhitelistedAssetAdded(address asset)
A new asset has been whitelisted for protocol usage.
Parameters
Name | Type | Description |
---|---|---|
asset | address | The address of the whitelisted asset. |
WhitelistedAssetRemoved
event WhitelistedAssetRemoved(address asset)
An asset has been removed from the whitelist.
Parameters
Name | Type | Description |
---|---|---|
asset | address | The address of the removed asset. |
OrionVaultAdded
event OrionVaultAdded(address vault)
A new Orion Vault has been registered in the protocol.
Parameters
Name | Type | Description |
---|---|---|
vault | address | The address of the added vault. |
OrionVaultRemoved
event OrionVaultRemoved(address vault)
An Orion Vault has been removed from the protocol registry.
Parameters
Name | Type | Description |
---|---|---|
vault | address | The address of the removed vault. |
RiskFreeRateUpdated
event RiskFreeRateUpdated(uint16 riskFreeRate)
The risk-free rate has been updated.
Parameters
Name | Type | Description |
---|---|---|
riskFreeRate | uint16 | The new risk-free rate in basis points. |
OrderSubmitted
event OrderSubmitted(address curator)
A new order has been submitted by a curator.
Parameters
Name | Type | Description |
---|---|---|
curator | address | The address of the curator who submitted the order. |
VaultStateUpdated
event VaultStateUpdated(uint256 newTotalAssets)
The vault's state has been updated with new total assets.
Parameters
Name | Type | Description |
---|---|---|
newTotalAssets | uint256 | The new total assets value for the vault. |
AutomationRegistryUpdated
event AutomationRegistryUpdated(address newAutomationRegistry)
The automation registry address has been updated.
Parameters
Name | Type | Description |
---|---|---|
newAutomationRegistry | address | The address of the new automation registry. |
InternalStateProcessed
event InternalStateProcessed(uint16 epochCounter)
An internal state has been processed.
Parameters
Name | Type | Description |
---|---|---|
epochCounter | uint16 | The current epoch counter after processing. |
PortfolioRebalanced
event PortfolioRebalanced()
The portfolio has been rebalanced.
PriceAdapterSet
event PriceAdapterSet(address asset, address adapter)
A price adapter has been set for an asset.
Parameters
Name | Type | Description |
---|---|---|
asset | address | The address of the asset. |
adapter | address | The address of the price adapter. |
ExecutionAdapterSet
event ExecutionAdapterSet(address asset, address adapter)
An execution adapter has been set for an asset.
Parameters
Name | Type | Description |
---|---|---|
asset | address | The address of the asset. |
adapter | address | The address of the execution adapter. |
VaultType
Enumeration of available vault types.
enum VaultType {
Transparent,
Encrypted
}
OrionVaultCreated
event OrionVaultCreated(address vault, address vaultOwner, address curator, string name, string symbol, uint8 feeType, uint16 performanceFee, uint16 managementFee, enum EventsLib.VaultType vaultType)
A new Orion Vault has been created.
Parameters
Name | Type | Description |
---|---|---|
vault | address | The address of the newly created vault. |
vaultOwner | address | The address of the vault's owner. |
curator | address | The address of the vault's curator. |
name | string | The name of the vault. |
symbol | string | The symbol of the vault. |
feeType | uint8 | The fee type of the vault. |
performanceFee | uint16 | The performance fee of the vault. |
managementFee | uint16 | The management fee of the vault. |
vaultType | enum EventsLib.VaultType | The type of vault that was created (Transparent or Encrypted). |