Skip to content

Commit e974c79

Browse files
committed
graphql: drop multi responses
Signed-off-by: jsvisa <[email protected]>
1 parent 40589d4 commit e974c79

File tree

4 files changed

+61
-166
lines changed

4 files changed

+61
-166
lines changed
Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1 @@
1-
{
2-
"responses": [
3-
{
4-
"errors": [
5-
{
6-
"message": "Exception while fetching data (/account) : Invalid params",
7-
"locations": [
8-
{
9-
"line": 1,
10-
"column": 2
11-
}
12-
],
13-
"path": ["account"],
14-
"extensions": {
15-
"errorCode": -32602,
16-
"errorMessage": "Invalid params",
17-
"classification": "DataFetchingException"
18-
}
19-
}
20-
],
21-
"data": null
22-
},
23-
{
24-
"data": {
25-
"block": null
26-
}
27-
}
28-
],
29-
"statusCode": 400
30-
}
1+
{ "responses": { "error": { "code": -32000, "message": "header not found" } }, "statusCode": 400 }
Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,8 @@
11
{
2-
"responses": [
3-
{
4-
"errors": [
5-
{
6-
"message": "Exception while fetching data (/block) : Block number 88888888 was not found",
7-
"locations": [
8-
{
9-
"line": 1,
10-
"column": 2
11-
}
12-
],
13-
"path": ["block"],
14-
"extensions": {
15-
"classification": "DataFetchingException"
16-
}
17-
}
18-
],
19-
"data": null
20-
},
21-
{
22-
"data": {
23-
"block": null
24-
}
25-
}
26-
],
27-
"statusCode": 400
2+
"responses": {
3+
"data": {
4+
"block": null
5+
}
6+
},
7+
"statusCode": 200
288
}
Lines changed: 24 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,26 @@
11
{
2-
"responses": [
3-
{
4-
"data": {
5-
"transaction": {
6-
"block": {
7-
"hash": "0x10aaf14a53caf27552325374429d3558398a36d3682ede6603c2c6511896e9f9",
8-
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
9-
},
10-
"createdContract": {
11-
"address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"
12-
},
13-
"cumulativeGasUsed": "0x78674",
14-
"from": {
15-
"address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"
16-
},
17-
"gas": "0x2fefd8",
18-
"gasUsed": "0x78674",
19-
"hash": "0x812742182a79a8e67733edc58cfa3767aa2d7ad06439d156ddbbb33e3403b4ed",
20-
"index": "0x0",
21-
"logs": [],
22-
"to": null
23-
}
24-
}
25-
},
26-
{
27-
"data": {
28-
"transaction": {
29-
"block": {
30-
"hash": "0x10aaf14a53caf27552325374429d3558398a36d3682ede6603c2c6511896e9f9",
31-
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
32-
},
33-
"createdContract": {
34-
"address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"
35-
},
36-
"cumulativeGasUsed": "0x78674",
37-
"from": {
38-
"address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"
39-
},
40-
"gas": "0x2fefd8",
41-
"gasUsed": "0x78674",
42-
"hash": "0x812742182a79a8e67733edc58cfa3767aa2d7ad06439d156ddbbb33e3403b4ed",
43-
"index": 0,
44-
"logs": [],
45-
"to": null
46-
}
47-
}
48-
}
49-
],
50-
"statusCode": 200
2+
"responses": {
3+
"data": {
4+
"transaction": {
5+
"block": {
6+
"hash": "0x10aaf14a53caf27552325374429d3558398a36d3682ede6603c2c6511896e9f9",
7+
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
8+
},
9+
"createdContract": {
10+
"address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"
11+
},
12+
"cumulativeGasUsed": "0x78674",
13+
"from": {
14+
"address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"
15+
},
16+
"gas": "0x2fefd8",
17+
"gasUsed": "0x78674",
18+
"hash": "0x812742182a79a8e67733edc58cfa3767aa2d7ad06439d156ddbbb33e3403b4ed",
19+
"index": 0,
20+
"logs": [],
21+
"to": null
22+
}
23+
}
24+
},
25+
"statusCode": 200
5126
}
Lines changed: 30 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,32 @@
11
{
2-
"responses": [
3-
{
4-
"data": {
5-
"transaction": {
6-
"block": {
7-
"hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6"
8-
},
9-
"gas": "0x4cb2f",
10-
"gasPrice": "0x1",
11-
"hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4",
12-
"inputData": "0xe8beef5b",
13-
"nonce": "0x1d",
14-
"index": "0x0",
15-
"value": "0xa",
16-
"from": {
17-
"address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"
18-
},
19-
"to": {
20-
"address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"
21-
},
22-
"logs": [
23-
{
24-
"index": "0x0"
25-
}
26-
],
27-
"status": null,
28-
"createdContract": null
29-
}
30-
}
31-
},
32-
{
33-
"data": {
34-
"transaction": {
35-
"block": {
36-
"hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6"
37-
},
38-
"createdContract": null,
39-
"from": {
40-
"address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"
41-
},
42-
"gas": "0x4cb2f",
43-
"gasPrice": "0x1",
44-
"hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4",
45-
"index": 0,
46-
"inputData": "0xe8beef5b",
47-
"logs": [
48-
{
49-
"index": 0
50-
}
51-
],
52-
"nonce": "0x1d",
53-
"status": "0x0",
54-
"to": {
55-
"address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"
56-
},
57-
"value": "0xa"
58-
}
59-
}
60-
}
61-
],
62-
"statusCode": 200
2+
"responses": {
3+
"data": {
4+
"transaction": {
5+
"block": {
6+
"hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6"
7+
},
8+
"createdContract": null,
9+
"from": {
10+
"address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"
11+
},
12+
"gas": "0x4cb2f",
13+
"gasPrice": "0x1",
14+
"hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4",
15+
"index": 0,
16+
"inputData": "0xe8beef5b",
17+
"logs": [
18+
{
19+
"index": 0
20+
}
21+
],
22+
"nonce": "0x1d",
23+
"status": "0x0",
24+
"to": {
25+
"address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"
26+
},
27+
"value": "0xa"
28+
}
29+
}
30+
},
31+
"statusCode": 200
6332
}

0 commit comments

Comments
 (0)