Skip to content

Commit

Permalink
fix: eth: use correct types for trace_block action/results
Browse files Browse the repository at this point in the history
- The top-level type is call/create.
- The action/result is specific to the operation.
  • Loading branch information
Stebalien committed Feb 16, 2024
1 parent 91d6b5b commit cf910a8
Show file tree
Hide file tree
Showing 10 changed files with 342 additions and 465 deletions.
154 changes: 12 additions & 142 deletions build/openrpc/full.json
Original file line number Diff line number Diff line change
Expand Up @@ -8386,24 +8386,14 @@
"examples": [
[
{
"action": {
"callType": "string value",
"from": "0x5cbeecf99d3fdb3f25e309cc264f240bb0664031",
"to": "0x5cbeecf99d3fdb3f25e309cc264f240bb0664031",
"gas": "0x5",
"input": "0x07",
"value": "0x0"
},
"result": {
"gasUsed": "0x5",
"output": "0x07"
},
"type": "string value",
"error": "string value",
"subtraces": 123,
"traceAddress": [
123
],
"type": "string value",
"error": "string value",
"action": {},
"result": {},
"blockHash": "0x37690cfec6c1bf4c3b9288c7a5d783e98731e90b0a4c177c2a374c7a9427355e",
"blockNumber": 9,
"transactionHash": "0x37690cfec6c1bf4c3b9288c7a5d783e98731e90b0a4c177c2a374c7a9427355e",
Expand All @@ -8416,48 +8406,7 @@
"additionalProperties": false,
"properties": {
"action": {
"additionalProperties": false,
"properties": {
"callType": {
"type": "string"
},
"from": {
"items": {
"description": "Number is a number",
"title": "number",
"type": "number"
},
"maxItems": 20,
"minItems": 20,
"type": "array"
},
"gas": {
"title": "number",
"type": "number"
},
"input": {
"items": {
"description": "Number is a number",
"title": "number",
"type": "number"
},
"type": "array"
},
"to": {
"items": {
"description": "Number is a number",
"title": "number",
"type": "number"
},
"maxItems": 20,
"minItems": 20,
"type": "array"
},
"value": {
"additionalProperties": false,
"type": "object"
}
},
"additionalProperties": true,
"type": "object"
},
"blockHash": {
Expand All @@ -8478,21 +8427,7 @@
"type": "string"
},
"result": {
"additionalProperties": false,
"properties": {
"gasUsed": {
"title": "number",
"type": "number"
},
"output": {
"items": {
"description": "Number is a number",
"title": "number",
"type": "number"
},
"type": "array"
}
},
"additionalProperties": true,
"type": "object"
},
"subtraces": {
Expand Down Expand Up @@ -8601,24 +8536,14 @@
"stateDiff": "string value",
"trace": [
{
"action": {
"callType": "string value",
"from": "0x5cbeecf99d3fdb3f25e309cc264f240bb0664031",
"to": "0x5cbeecf99d3fdb3f25e309cc264f240bb0664031",
"gas": "0x5",
"input": "0x07",
"value": "0x0"
},
"result": {
"gasUsed": "0x5",
"output": "0x07"
},
"type": "string value",
"error": "string value",
"subtraces": 123,
"traceAddress": [
123
],
"type": "string value",
"error": "string value"
"action": {},
"result": {}
}
],
"transactionHash": "0x37690cfec6c1bf4c3b9288c7a5d783e98731e90b0a4c177c2a374c7a9427355e",
Expand Down Expand Up @@ -8646,69 +8571,14 @@
"additionalProperties": false,
"properties": {
"action": {
"additionalProperties": false,
"properties": {
"callType": {
"type": "string"
},
"from": {
"items": {
"description": "Number is a number",
"title": "number",
"type": "number"
},
"maxItems": 20,
"minItems": 20,
"type": "array"
},
"gas": {
"title": "number",
"type": "number"
},
"input": {
"items": {
"description": "Number is a number",
"title": "number",
"type": "number"
},
"type": "array"
},
"to": {
"items": {
"description": "Number is a number",
"title": "number",
"type": "number"
},
"maxItems": 20,
"minItems": 20,
"type": "array"
},
"value": {
"additionalProperties": false,
"type": "object"
}
},
"additionalProperties": true,
"type": "object"
},
"error": {
"type": "string"
},
"result": {
"additionalProperties": false,
"properties": {
"gasUsed": {
"title": "number",
"type": "number"
},
"output": {
"items": {
"description": "Number is a number",
"title": "number",
"type": "number"
},
"type": "array"
}
},
"additionalProperties": true,
"type": "object"
},
"subtraces": {
Expand Down
Binary file modified build/openrpc/full.json.gz
Binary file not shown.
Loading

0 comments on commit cf910a8

Please sign in to comment.