mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
41 lines
956 B
Solidity
41 lines
956 B
Solidity
|
contract ERC20 {
|
||
|
/// @notice This event is emitted when a transfer occurs.
|
||
|
/// @param from The source account.
|
||
|
/// @param to The destination account.
|
||
|
/// @param amount The amount.
|
||
|
/// @dev A test case!
|
||
|
event Transfer(address indexed from, address indexed to, uint amount);
|
||
|
}
|
||
|
|
||
|
// ----
|
||
|
// ----
|
||
|
// :ERC20 devdoc
|
||
|
// {
|
||
|
// "events":
|
||
|
// {
|
||
|
// "Transfer(address,address,uint256)":
|
||
|
// {
|
||
|
// "details": "A test case!",
|
||
|
// "params":
|
||
|
// {
|
||
|
// "amount": "The amount.",
|
||
|
// "from": "The source account.",
|
||
|
// "to": "The destination account."
|
||
|
// }
|
||
|
// }
|
||
|
// },
|
||
|
// "methods": {}
|
||
|
// }
|
||
|
//
|
||
|
// :ERC20 userdoc
|
||
|
// {
|
||
|
// "events":
|
||
|
// {
|
||
|
// "Transfer(address,address,uint256)":
|
||
|
// {
|
||
|
// "notice": "This event is emitted when a transfer occurs."
|
||
|
// }
|
||
|
// },
|
||
|
// "methods": {}
|
||
|
// }
|