Appearance
Solidity API
IPropsWithdraw
Interface for the PropsWithdraw facet
ETHWithdrawn
solidity
event ETHWithdrawn(address recipient, uint256 amount)Event emitted when ETH is withdrawn
Parameters
| Name | Type | Description |
|---|---|---|
| recipient | address | The address that received the ETH |
| amount | uint256 | The amount of ETH withdrawn |
ERC20Withdrawn
solidity
event ERC20Withdrawn(address token, address recipient, uint256 amount)Event emitted when ERC20 tokens are withdrawn
Parameters
| Name | Type | Description |
|---|---|---|
| token | address | The address of the ERC20 token |
| recipient | address | The address that received the tokens |
| amount | uint256 | The amount of tokens withdrawn |
ERC721Withdrawn
solidity
event ERC721Withdrawn(address token, address recipient, uint256 tokenId)Event emitted when ERC721 tokens are withdrawn
Parameters
| Name | Type | Description |
|---|---|---|
| token | address | The address of the ERC721 token |
| recipient | address | The address that received the token |
| tokenId | uint256 | The 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
| Name | Type | Description |
|---|---|---|
| token | address | The address of the ERC1155 token |
| recipient | address | The address that received the tokens |
| tokenId | uint256 | The ID of the token withdrawn |
| amount | uint256 | The amount of tokens withdrawn |
withdrawETH
solidity
function withdrawETH(address payable recipient, uint256 amount) externalWithdraws ETH from the contract
Parameters
| Name | Type | Description |
|---|---|---|
| recipient | address payable | The address to receive the ETH |
| amount | uint256 | The amount of ETH to withdraw |
withdrawERC20
solidity
function withdrawERC20(address token, address recipient, uint256 amount) externalWithdraws ERC20 tokens from the contract
Parameters
| Name | Type | Description |
|---|---|---|
| token | address | The address of the ERC20 token to withdraw |
| recipient | address | The address to receive the tokens |
| amount | uint256 | The amount of tokens to withdraw |
withdrawERC721
solidity
function withdrawERC721(address token, address recipient, uint256 tokenId) externalWithdraws an ERC721 token from the contract
Parameters
| Name | Type | Description |
|---|---|---|
| token | address | The address of the ERC721 token to withdraw |
| recipient | address | The address to receive the token |
| tokenId | uint256 | The ID of the token to withdraw |
withdrawERC1155
solidity
function withdrawERC1155(address token, address recipient, uint256 tokenId, uint256 amount) externalWithdraws ERC1155 tokens from the contract
Parameters
| Name | Type | Description |
|---|---|---|
| token | address | The address of the ERC1155 token to withdraw |
| recipient | address | The address to receive the tokens |
| tokenId | uint256 | The ID of the token to withdraw |
| amount | uint256 | The amount of tokens to withdraw |