mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
45 lines
1.0 KiB
Solidity
45 lines
1.0 KiB
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."
|
|
// }
|
|
// }
|
|
// },
|
|
// "kind": "dev",
|
|
// "methods": {},
|
|
// "version": 1
|
|
// }
|
|
//
|
|
// :ERC20 userdoc
|
|
// {
|
|
// "events":
|
|
// {
|
|
// "Transfer(address,address,uint256)":
|
|
// {
|
|
// "notice": "This event is emitted when a transfer occurs."
|
|
// }
|
|
// },
|
|
// "kind": "user",
|
|
// "methods": {},
|
|
// "version": 1
|
|
// }
|