Skip to main content

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

NameTypeDescription
assetaddressThe address of the whitelisted asset.

WhitelistedAssetRemoved

event WhitelistedAssetRemoved(address asset)

An asset has been removed from the whitelist.

Parameters

NameTypeDescription
assetaddressThe address of the removed asset.

OrionVaultAdded

event OrionVaultAdded(address vault)

A new Orion Vault has been registered in the protocol.

Parameters

NameTypeDescription
vaultaddressThe address of the added vault.

OrionVaultRemoved

event OrionVaultRemoved(address vault)

An Orion Vault has been removed from the protocol registry.

Parameters

NameTypeDescription
vaultaddressThe address of the removed vault.

RiskFreeRateUpdated

event RiskFreeRateUpdated(uint16 riskFreeRate)

The risk-free rate has been updated.

Parameters

NameTypeDescription
riskFreeRateuint16The new risk-free rate in basis points.

OrderSubmitted

event OrderSubmitted(address curator)

A new order has been submitted by a curator.

Parameters

NameTypeDescription
curatoraddressThe 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

NameTypeDescription
newTotalAssetsuint256The new total assets value for the vault.

AutomationRegistryUpdated

event AutomationRegistryUpdated(address newAutomationRegistry)

The automation registry address has been updated.

Parameters

NameTypeDescription
newAutomationRegistryaddressThe address of the new automation registry.

InternalStateProcessed

event InternalStateProcessed(uint16 epochCounter)

An internal state has been processed.

Parameters

NameTypeDescription
epochCounteruint16The 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

NameTypeDescription
assetaddressThe address of the asset.
adapteraddressThe address of the price adapter.

ExecutionAdapterSet

event ExecutionAdapterSet(address asset, address adapter)

An execution adapter has been set for an asset.

Parameters

NameTypeDescription
assetaddressThe address of the asset.
adapteraddressThe 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

NameTypeDescription
vaultaddressThe address of the newly created vault.
vaultOwneraddressThe address of the vault's owner.
curatoraddressThe address of the vault's curator.
namestringThe name of the vault.
symbolstringThe symbol of the vault.
feeTypeuint8The fee type of the vault.
performanceFeeuint16The performance fee of the vault.
managementFeeuint16The management fee of the vault.
vaultTypeenum EventsLib.VaultTypeThe type of vault that was created (Transparent or Encrypted).