forked from ethereum/solidity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevent_structs.sol
60 lines (60 loc) · 1.37 KB
/
event_structs.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
pragma abicoder v2;
contract C {
struct S { uint a; T[] sub; bytes b; }
struct T { uint[2] x; }
event E(T t, S s);
}
// ----
// :C
// [
// {
// "anonymous": false,
// "inputs": [
// {
// "components": [
// {
// "internalType": "uint256[2]",
// "name": "x",
// "type": "uint256[2]"
// }
// ],
// "indexed": false,
// "internalType": "struct C.T",
// "name": "t",
// "type": "tuple"
// },
// {
// "components": [
// {
// "internalType": "uint256",
// "name": "a",
// "type": "uint256"
// },
// {
// "components": [
// {
// "internalType": "uint256[2]",
// "name": "x",
// "type": "uint256[2]"
// }
// ],
// "internalType": "struct C.T[]",
// "name": "sub",
// "type": "tuple[]"
// },
// {
// "internalType": "bytes",
// "name": "b",
// "type": "bytes"
// }
// ],
// "indexed": false,
// "internalType": "struct C.S",
// "name": "s",
// "type": "tuple"
// }
// ],
// "name": "E",
// "type": "event"
// }
// ]