Skip to main content

Reference

Interfaces, signatures, parameters, and generated references.

Lookup friendly
TOC available

ActionsRouter

Inherits: IUnlockCallback, Test

A router that handles an arbitrary input of actions. TODO: Can continue to add functions per action.

Actions​

enum Actions {
SETTLE,
SETTLE_NATIVE,
SETTLE_FOR,
TAKE,
PRANK_TAKE_FROM,
SYNC,
MINT,
CLEAR,
ASSERT_BALANCE_EQUALS,
ASSERT_RESERVES_EQUALS,
ASSERT_DELTA_EQUALS,
ASSERT_NONZERO_DELTA_COUNT_EQUALS,
TRANSFER_FROM,
COLLECT_PROTOCOL_FEES
}

State Variables​

manager​

IPoolManager manager;

Functions​

constructor​

constructor(IPoolManager _manager);

unlockCallback​

function unlockCallback(bytes calldata data) external returns (bytes memory);

executeActions​

function executeActions(Actions[] memory actions, bytes[] memory params) external payable;

_settle​

function _settle() internal;

_settleNative​

function _settleNative(bytes memory params) internal;

_settleFor​

function _settleFor(bytes memory params) internal;

_take​

function _take(bytes memory params) internal;

_prankTakeFrom​

function _prankTakeFrom(bytes memory params) internal;

_sync​

function _sync(bytes memory params) internal;

_mint​

function _mint(bytes memory params) internal;

_clear​

function _clear(bytes memory params) internal;

_assertBalanceEquals​

function _assertBalanceEquals(bytes memory params) internal view;

_assertReservesEquals​

function _assertReservesEquals(bytes memory params) internal view;

_assertDeltaEquals​

function _assertDeltaEquals(bytes memory params) internal view;

_assertNonzeroDeltaCountEquals​

function _assertNonzeroDeltaCountEquals(bytes memory params) internal view;

_transferFrom​

function _transferFrom(bytes memory params) internal;

_collectProtocolFees​

function _collectProtocolFees(bytes memory params) internal;

Errors​

ActionNotSupported​

error ActionNotSupported();

CheckParameters​

error CheckParameters();