Skip to content

Solidity API

IPropsWithdraw

Interface for the PropsWithdraw facet

ETHWithdrawn

solidity
event ETHWithdrawn(address recipient, uint256 amount)

Event emitted when ETH is withdrawn

Parameters

NameTypeDescription
recipientaddressThe address that received the ETH
amountuint256The amount of ETH withdrawn

ERC20Withdrawn

solidity
event ERC20Withdrawn(address token, address recipient, uint256 amount)

Event emitted when ERC20 tokens are withdrawn

Parameters

NameTypeDescription
tokenaddressThe address of the ERC20 token
recipientaddressThe address that received the tokens
amountuint256The amount of tokens withdrawn

ERC721Withdrawn

solidity
event ERC721Withdrawn(address token, address recipient, uint256 tokenId)

Event emitted when ERC721 tokens are withdrawn

Parameters

NameTypeDescription
tokenaddressThe address of the ERC721 token
recipientaddressThe address that received the token
tokenIduint256The ID of the token withdrawn

ERC1155Withdrawn

solidity
event ERC1155Withdrawn(address token, address recipient, uint256 tokenId, uint256 amount)

Event emitted when ERC1155 tokens are withdrawn

Parameters

NameTypeDescription
tokenaddressThe address of the ERC1155 token
recipientaddressThe address that received the tokens
tokenIduint256The ID of the token withdrawn
amountuint256The amount of tokens withdrawn

withdrawETH

solidity
function withdrawETH(address payable recipient, uint256 amount) external

Withdraws ETH from the contract

Parameters

NameTypeDescription
recipientaddress payableThe address to receive the ETH
amountuint256The amount of ETH to withdraw

withdrawERC20

solidity
function withdrawERC20(address token, address recipient, uint256 amount) external

Withdraws ERC20 tokens from the contract

Parameters

NameTypeDescription
tokenaddressThe address of the ERC20 token to withdraw
recipientaddressThe address to receive the tokens
amountuint256The amount of tokens to withdraw

withdrawERC721

solidity
function withdrawERC721(address token, address recipient, uint256 tokenId) external

Withdraws an ERC721 token from the contract

Parameters

NameTypeDescription
tokenaddressThe address of the ERC721 token to withdraw
recipientaddressThe address to receive the token
tokenIduint256The ID of the token to withdraw

withdrawERC1155

solidity
function withdrawERC1155(address token, address recipient, uint256 tokenId, uint256 amount) external

Withdraws ERC1155 tokens from the contract

Parameters

NameTypeDescription
tokenaddressThe address of the ERC1155 token to withdraw
recipientaddressThe address to receive the tokens
tokenIduint256The ID of the token to withdraw
amountuint256The amount of tokens to withdraw