1
1
import Foundation
2
2
import BigInt
3
3
4
+ /// Represent a log, a record of some action, emitted during transaction execution.
5
+ ///
6
+ /// Example of values it can contain:
7
+ /// - `address = 0x53066cddbc0099eb6c96785d9b3df2aaeede5da3;`
8
+ /// - `blockHash = 0x779c1f08f2b5252873f08fd6ec62d75bb54f956633bbb59d33bd7c49f1a3d389;`
9
+ /// - `blockNumber = 0x4f58f8;`
10
+ /// - `data = 0x0000000000000000000000000000000000000000000000004563918244f40000;`
11
+ /// - `logIndex = 0x84;`
12
+ /// - `removed = 0;`
13
+ /// - `topics = [`
14
+ /// - `0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef,`
15
+ /// - `0x000000000000000000000000efdcf2c36f3756ce7247628afdb632fa4ee12ec5,`
16
+ /// - `0x000000000000000000000000d5395c132c791a7f46fa8fc27f0ab6bacd824484]`
17
+ /// - `transactionHash = 0x9f7bb2633abb3192d35f65e50a96f9f7ca878fa2ee7bf5d3fca489c0c60dc79a;`
18
+ /// - `transactionIndex = 0x99;`
4
19
public struct EventLog : Decodable {
5
20
public var address : EthereumAddress
6
21
public var blockHash : Data
@@ -12,20 +27,6 @@ public struct EventLog: Decodable {
12
27
public var transactionHash : Data
13
28
public var transactionIndex : BigUInt
14
29
15
- // address = 0x53066cddbc0099eb6c96785d9b3df2aaeede5da3;
16
- // blockHash = 0x779c1f08f2b5252873f08fd6ec62d75bb54f956633bbb59d33bd7c49f1a3d389;
17
- // blockNumber = 0x4f58f8;
18
- // data = 0x0000000000000000000000000000000000000000000000004563918244f40000;
19
- // logIndex = 0x84;
20
- // removed = 0;
21
- // topics = (
22
- // 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef,
23
- // 0x000000000000000000000000efdcf2c36f3756ce7247628afdb632fa4ee12ec5,
24
- // 0x000000000000000000000000d5395c132c791a7f46fa8fc27f0ab6bacd824484
25
- // );
26
- // transactionHash = 0x9f7bb2633abb3192d35f65e50a96f9f7ca878fa2ee7bf5d3fca489c0c60dc79a;
27
- // transactionIndex = 0x99;
28
-
29
30
enum CodingKeys : String , CodingKey {
30
31
case address
31
32
case blockHash
0 commit comments