forked from hyperledger/besu
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PAN-3223] Add GraphQL query/logs support (hyperledger#94)
Add support for the top level logs query. Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com> Signed-off-by: edwardmack <ed@edwardmack.com>
- Loading branch information
1 parent
b339b73
commit 1682a1c
Showing
6 changed files
with
122 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...m/api/src/test/resources/org/hyperledger/besu/ethereum/api/graphql/eth_getLogs_range.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"request": "{ logs( filter: { fromBlock:20, toBlock: 24, topics : [], addresses : []}) { index topics data account{address} transaction{hash block {number}} } }", | ||
"response": { | ||
"data": { | ||
"logs": [ | ||
{ | ||
"index": 0, | ||
"topics": [ | ||
"0x65c9ac8011e286e89d02a269890f41d67ca2cc597b2c76c7c69321ff492be580" | ||
], | ||
"data": "0x000000000000000000000000000000000000000000000000000000000000002a", | ||
"account": { | ||
"address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" | ||
}, | ||
"transaction": { | ||
"hash": "0x97a385bf570ced7821c6495b3877ddd2afd5c452f350f0d4876e98d9161389c6", | ||
"block": { | ||
"number": 23 | ||
} | ||
} | ||
}, | ||
{ | ||
"index": 0, | ||
"topics": [], | ||
"data": "0x000000000000000000000000000000000000000000000000000000000000002a", | ||
"account": { | ||
"address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" | ||
}, | ||
"transaction": { | ||
"hash": "0x5ecd942096ab3f70c5bcc8f3a98f88c4ff0a3bd986417df9948eb1819db76d0e", | ||
"block": { | ||
"number": 24 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"statusCode": 200 | ||
} |