|
4 | 4 | TX_DICT = { |
5 | 5 | "from": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", |
6 | 6 | "to": "0x53d284357ec70cE289D6D64134DfAc8E511c8a3D", |
7 | | - "value": 1000000000000000000, |
8 | | - "gas": 21000, |
| 7 | + "value": hex(1000000000000000000), |
| 8 | + "gas": hex(21000), |
9 | 9 | "data": "0x", |
10 | | - "nonce": 12, |
11 | | - "gasPrice": 50000000000, |
| 10 | + "nonce": hex(12), |
| 11 | + "gasPrice": hex(50000000000), |
12 | 12 | } |
13 | 13 |
|
14 | 14 | # Log entry (mainnet-style) |
|
20 | 20 | "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e", |
21 | 21 | ], |
22 | 22 | "data": "0x00000000000000000000000000000000000000000000000000000000000003e8", |
23 | | - "blockNumber": 12345678, |
| 23 | + "blockNumber": hex(12345678), |
24 | 24 | "transactionHash": "0x5e1d3a76fbf824220e1c5e0c2e5e7e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1", |
25 | | - "logIndex": 0, |
| 25 | + "logIndex": hex(0), |
26 | 26 | } |
27 | 27 |
|
28 | 28 | # Block dict (mainnet-style, minimal for formatter) |
29 | 29 | BLOCK_DICT = { |
30 | | - "number": 12345678, |
| 30 | + "number": hex(12345678), |
31 | 31 | "hash": "0x5e1d3a76fbf824220e1c5e0c2e5e7e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1", |
32 | 32 | "transactions": [TX_DICT, TX_DICT], |
33 | 33 | "logs": [LOG_ENTRY, LOG_ENTRY], |
34 | 34 | "miner": "0x829BD824B016326A401d083B33D092293333A830", |
35 | | - "gasLimit": 15000000, |
36 | | - "gasUsed": 12000000, |
| 35 | + "gasLimit": hex(15000000), |
| 36 | + "gasUsed": hex(12000000), |
37 | 37 | } |
38 | 38 |
|
39 | 39 | # Receipt dict (minimal) |
40 | 40 | RECEIPT_DICT = { |
41 | 41 | "blockHash": BLOCK_DICT["hash"], |
42 | 42 | "blockNumber": BLOCK_DICT["number"], |
43 | | - "transactionIndex": 0, |
| 43 | + "transactionIndex": hex(64), |
44 | 44 | "transactionHash": TX_DICT["from"], |
45 | | - "cumulativeGasUsed": 21000, |
46 | | - "status": 1, |
47 | | - "gasUsed": 21000, |
| 45 | + "cumulativeGasUsed": hex(21000), |
| 46 | + "status": hex(1), |
| 47 | + "gasUsed": hex(21000), |
48 | 48 | "contractAddress": None, |
49 | 49 | "logs": [LOG_ENTRY], |
50 | 50 | "logsBloom": "0x" + "0" * 512, |
51 | 51 | "from": TX_DICT["from"], |
52 | 52 | "to": TX_DICT["to"], |
53 | 53 | "effectiveGasPrice": 50000000000, |
54 | | - "type": 2, |
| 54 | + "type": hex(2), |
55 | 55 | } |
56 | 56 |
|
57 | 57 | # Fee history dict (minimal) |
|
0 commit comments