ODCinterfaces

IVault

Interface for a generic vault contract that can hold any type of assets and execute arbitrary transactions

NativeCoinReceived

event NativeCoinReceived(address from, uint256 value)

Emitted when native coin is received

Parameters

NameTypeDescription
fromaddressThe sender of the native coin
valueuint256The amount of native coin received

execute

function execute(address target, bytes data, uint256 value) external returns (bytes)

Executes a state-changing call on a target

Access to this function SHOULD be protected

Parameters

NameTypeDescription
targetaddressContract to call
databytesData sent to the target, including function selector
valueuint256Native coin value sent with the call

executeStatic

function executeStatic(address target, bytes data) external view returns (bytes)

Executes a static call (non state-changing) on a target

Parameters

NameTypeDescription
targetaddressContract to call
databytesData sent to the target, including function selector

On this page