IERC20CustodyEvents
Git Source (opens in a new tab)
Interface for the events emitted by the ERC20 custody contract.
Events
Withdrawn
Emitted when tokens are withdrawn.
event Withdrawn(address indexed to, address indexed token, uint256 amount);Parameters
| Name | Type | Description | 
|---|---|---|
| to | address | The address receiving the tokens. | 
| token | address | The address of the ERC20 token. | 
| amount | uint256 | The amount of tokens withdrawn. | 
WithdrawnAndCalled
Emitted when tokens are withdrawn and a contract call is made.
event WithdrawnAndCalled(address indexed to, address indexed token, uint256 amount, bytes data);Parameters
| Name | Type | Description | 
|---|---|---|
| to | address | The address receiving the tokens. | 
| token | address | The address of the ERC20 token. | 
| amount | uint256 | The amount of tokens withdrawn. | 
| data | bytes | The calldata passed to the contract call. | 
WithdrawnAndReverted
Emitted when tokens are withdrawn and a revertable contract call is made.
event WithdrawnAndReverted(
    address indexed to, address indexed token, uint256 amount, bytes data, RevertContext revertContext
);Parameters
| Name | Type | Description | 
|---|---|---|
| to | address | The address receiving the tokens. | 
| token | address | The address of the ERC20 token. | 
| amount | uint256 | The amount of tokens withdrawn. | 
| data | bytes | The calldata passed to the contract call. | 
| revertContext | RevertContext | Revert context to pass to onRevert. | 
Whitelisted
Emitted when ERC20 token is whitelisted
event Whitelisted(address indexed token);Parameters
| Name | Type | Description | 
|---|---|---|
| token | address | address of ERC20 token. | 
Unwhitelisted
Emitted when ERC20 token is unwhitelisted
event Unwhitelisted(address indexed token);Parameters
| Name | Type | Description | 
|---|---|---|
| token | address | address of ERC20 token. | 
Deposited
Emitted in legacy deposit method.
event Deposited(bytes recipient, IERC20 indexed asset, uint256 amount, bytes message);