ODCdataobjects

TransferrableOwnable2StepVaultDataObject

DataObject to interact with vault factories, ownable2step vaults and the information of managed vaults

This contract extends VaultDataObject and adds the ability to accept the ownership of Ownable2Step vaults by the DataObject and transfer the ownership of vaults already managed by the DataObject to a different DataPoint

WrongVaultPendingOwner

error WrongVaultPendingOwner()

Error thrown when the pending owner is not the DataObject

WrongVaultOwner

error WrongVaultOwner()

Error thrown when a given address is not the owner of the vault

WrongDataPoint

error WrongDataPoint(DataPoint dp)

Error thrown when the DataPoint is bytes32(0)

Parameters

NameTypeDescription
dpDataPointThe DataPoint identifier

WrongVaultDataPoint

error WrongVaultDataPoint(address vault, DataPoint currentDP, DataPoint requestedDP)

Error thrown when the DataPoint associated with the vault is not the expected one

Parameters

NameTypeDescription
vaultaddressThe vault address
currentDPDataPointThe current DataPoint
requestedDPDataPointThe requested DataPoint

VaultNotFound

error VaultNotFound()

Error thrown when a Vault doesn't exist

_dispatchWrite

function _dispatchWrite(DataPoint dp, bytes4 operation, bytes data) internal returns (bytes)

_acceptOwnable2StepVaultOwnership

function _acceptOwnable2StepVaultOwnership(DataPoint dp, address vault) internal

Functions used to accept the ownership of a 2-step ownable vault

Parameters

NameTypeDescription
dpDataPointDataPoint identifier
vaultaddressThe vault address NOTE: The vault MUST have the DataPoint as pending owner

_transferVaultToDataPoint

function _transferVaultToDataPoint(DataPoint dp, address vault, DataPoint newDP) internal

Functions used to transfer a vault to a new data point

Parameters

NameTypeDescription
dpDataPointDataPoint identifier
vaultaddressThe vault address
newDPDataPointThe new data point

On this page