Skip to content
LogoLogo

IBridgeEncoder

Git Source

Functions

getBridgeTransferData

Returns targets, value, and calldata to execute a bridge transfer.

Intended to be called only by a MakinaXModule instance, from which implementations may read caller state via msg.sender.

function getBridgeTransferData(IBridgeComponent.BridgeOrder calldata order)
        external
        view
        returns (address approvalTarget, address executionTarget, uint256 value, bytes memory cd);

Parameters

NameTypeDescription
orderIBridgeComponent.BridgeOrderThe bridge transfer params.

Returns

NameTypeDescription
approvalTargetaddressThe address of the approval target.
executionTargetaddressThe address of the execution target.
valueuint256The value to pass along with the calldata.
cdbytesThe calldata to execute.