forked from ethereum/hive
-
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.
graphql: add test case for eip-4844 fields (ethereum#894)
- Loading branch information
Showing
8 changed files
with
463 additions
and
25 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
go-ethereum |
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,7 @@ | ||
# GraphQL | ||
|
||
This simulator tests the GraphQL endpoint of Ethereum clients to validate they are following the [specification](https://github.com/ethereum/execution-apis/tree/main#graphql). | ||
|
||
## Adding a test | ||
|
||
This step-by-step [example](https://notes.ethereum.org/@s1na/By9rdtex6) shows how to add a new test to the GraphQL simulator. |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Binary file not shown.
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
25 changes: 25 additions & 0 deletions
25
simulators/ethereum/graphql/testcases/51_eth_getBlock_4844.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,25 @@ | ||
{ | ||
"request": "{block (number: 34) { baseFeePerGas difficulty extraData miner { address } mixHash nonce stateRoot totalDifficulty withdrawalsRoot withdrawals { address amount index validator } blobGasUsed excessBlobGas transactions { maxFeePerBlobGas blobGasUsed blobGasPrice } }} ", | ||
"responses":[{ | ||
"data": { | ||
"block":{ | ||
"baseFeePerGas":"0x3437004a", | ||
"difficulty":"0x0", | ||
"extraData":"0x", | ||
"miner": { | ||
"address":"0x0000000000000000000000000000000000000000" | ||
}, | ||
"mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"nonce":"0x0000000000000000", | ||
"stateRoot":"0x34727aff24d1c51cd63fdc14515b15ddaa156fa0671c58a96c72b1553819945d", | ||
"totalDifficulty":"0x427c00", | ||
"withdrawalsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", | ||
"withdrawals":[], | ||
"blobGasUsed":"0x40000", | ||
"excessBlobGas":"0x0", | ||
"transactions":[{"maxFeePerBlobGas":"0x3b9aca00","blobGasUsed":"0x40000","blobGasPrice":"0x1"}] | ||
} | ||
} | ||
}], | ||
"statusCode": 200 | ||
} |