forked from ethereum/solidity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevent.sol
44 lines (43 loc) · 1.02 KB
/
event.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
// }