Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

UsdWithdrawalOutputBuilder

Git Source

Inherits: IUsdWithdrawalOutputBuilder, RollupsContract

State Variables

SAFE_ERC20_TRANSFER

ISafeErc20Transfer immutable SAFE_ERC20_TRANSFER

USD

IERC20 immutable USD

Functions

constructor

constructor(ISafeErc20Transfer safeErc20Transfer, IERC20 usd) ;

token

function token() external view override returns (IERC20);

buildWithdrawalOutput

function buildWithdrawalOutput(address, bytes calldata account)
    external
    view
    override
    returns (bytes memory output);

_encodeSafeTransferPayload

function _encodeSafeTransferPayload(address user, uint256 value)
    internal
    view
    returns (bytes memory payload);

_encodeDelegateCallVoucher

function _encodeDelegateCallVoucher(address destination, bytes memory payload)
    internal
    pure
    returns (bytes memory output);