Build
Architecture
protocol
contracts
evm
interfaces
IERC20Custody.sol
Interface.ierc20custodyevents

Git Source (opens in a new tab)

Interface for the events emitted by the ERC20 custody contract.

Withdrawn

Emitted when tokens are withdrawn.

event Withdrawn(address indexed to, address indexed token, uint256 amount);

Parameters

NameTypeDescription
toaddressThe address receiving the tokens.
tokenaddressThe address of the ERC20 token.
amountuint256The 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

NameTypeDescription
toaddressThe address receiving the tokens.
tokenaddressThe address of the ERC20 token.
amountuint256The amount of tokens withdrawn.
databytesThe 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

NameTypeDescription
toaddressThe address receiving the tokens.
tokenaddressThe address of the ERC20 token.
amountuint256The amount of tokens withdrawn.
databytesThe calldata passed to the contract call.
revertContextRevertContextRevert context to pass to onRevert.

Whitelisted

Emitted when ERC20 token is whitelisted

event Whitelisted(address indexed token);

Parameters

NameTypeDescription
tokenaddressaddress of ERC20 token.

Unwhitelisted

Emitted when ERC20 token is unwhitelisted

event Unwhitelisted(address indexed token);

Parameters

NameTypeDescription
tokenaddressaddress of ERC20 token.

Deposited

Emitted in legacy deposit method.

event Deposited(bytes recipient, IERC20 indexed asset, uint256 amount, bytes message);

UpdatedCustodyTSSAddress

Emitted when tss address is updated

event UpdatedCustodyTSSAddress(address oldTSSAddress, address newTSSAddress);

Parameters

NameTypeDescription
oldTSSAddressaddressold tss address
newTSSAddressaddressnew tss address