Skip to content

Commit

Permalink
Merge pull request #172 from starkware-libs/optional_trace_fields
Browse files Browse the repository at this point in the history
Make trace fields optional & remove NODE_NOT_SYNCED (#172)
  • Loading branch information
ArielElp authored Nov 22, 2023
2 parents 3a7ad5f + 5ff5d7e commit 237fe16
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 77 deletions.
51 changes: 1 addition & 50 deletions api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@
"errors": [
{
"$ref": "#/components/errors/BLOCK_NOT_FOUND"
},
{
"$ref": "#/components/errors/NODE_NOT_SYNCED"
}
]
},
Expand Down Expand Up @@ -95,9 +92,6 @@
"errors": [
{
"$ref": "#/components/errors/BLOCK_NOT_FOUND"
},
{
"$ref": "#/components/errors/NODE_NOT_SYNCED"
}
]
},
Expand Down Expand Up @@ -135,9 +129,6 @@
"errors": [
{
"$ref": "#/components/errors/BLOCK_NOT_FOUND"
},
{
"$ref": "#/components/errors/NODE_NOT_SYNCED"
}
]
},
Expand Down Expand Up @@ -190,9 +181,6 @@
},
{
"$ref": "#/components/errors/BLOCK_NOT_FOUND"
},
{
"$ref": "#/components/errors/NODE_NOT_SYNCED"
}
]
},
Expand Down Expand Up @@ -335,9 +323,6 @@
},
{
"$ref": "#/components/errors/INVALID_TXN_INDEX"
},
{
"$ref": "#/components/errors/NODE_NOT_SYNCED"
}
]
},
Expand Down Expand Up @@ -423,9 +408,6 @@
},
{
"$ref": "#/components/errors/CLASS_HASH_NOT_FOUND"
},
{
"$ref": "#/components/errors/NODE_NOT_SYNCED"
}
]
},
Expand Down Expand Up @@ -466,9 +448,6 @@
},
{
"$ref": "#/components/errors/CONTRACT_NOT_FOUND"
},
{
"$ref": "#/components/errors/NODE_NOT_SYNCED"
}
]
},
Expand Down Expand Up @@ -518,9 +497,6 @@
},
{
"$ref": "#/components/errors/CONTRACT_NOT_FOUND"
},
{
"$ref": "#/components/errors/NODE_NOT_SYNCED"
}
]
},
Expand Down Expand Up @@ -552,9 +528,6 @@
"errors": [
{
"$ref": "#/components/errors/BLOCK_NOT_FOUND"
},
{
"$ref": "#/components/errors/NODE_NOT_SYNCED"
}
]
},
Expand Down Expand Up @@ -603,9 +576,6 @@
},
{
"$ref": "#/components/errors/BLOCK_NOT_FOUND"
},
{
"$ref": "#/components/errors/NODE_NOT_SYNCED"
}
]
},
Expand Down Expand Up @@ -658,9 +628,6 @@
},
{
"$ref": "#/components/errors/BLOCK_NOT_FOUND"
},
{
"$ref": "#/components/errors/NODE_NOT_SYNCED"
}
]
},
Expand Down Expand Up @@ -721,9 +688,6 @@
"errors": [
{
"$ref": "#/components/errors/NO_BLOCKS"
},
{
"$ref": "#/components/errors/NODE_NOT_SYNCED"
}
]
},
Expand Down Expand Up @@ -756,9 +720,6 @@
"errors": [
{
"$ref": "#/components/errors/NO_BLOCKS"
},
{
"$ref": "#/components/errors/NODE_NOT_SYNCED"
}
]
},
Expand Down Expand Up @@ -843,9 +804,6 @@
},
{
"$ref": "#/components/errors/TOO_MANY_KEYS_IN_FILTER"
},
{
"$ref": "#/components/errors/NODE_NOT_SYNCED"
}
]
},
Expand Down Expand Up @@ -886,9 +844,6 @@
},
{
"$ref": "#/components/errors/CONTRACT_NOT_FOUND"
},
{
"$ref": "#/components/errors/NODE_NOT_SYNCED"
}
]
}
Expand Down Expand Up @@ -3919,10 +3874,6 @@
"code": 34,
"message": "Too many keys provided in a filter"
},
"NODE_NOT_SYNCED": {
"code": 35,
"message": "Node is not synchronized"
},
"CONTRACT_ERROR": {
"code": 40,
"message": "Contract error",
Expand All @@ -3941,4 +3892,4 @@
}
}
}
}
}
34 changes: 7 additions & 27 deletions api/starknet_trace_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@
},
{
"$ref": "#/components/errors/BLOCK_NOT_FOUND"
},
{
"$ref": "#/components/errors/NODE_NOT_SYNCED"
}
]
},
Expand Down Expand Up @@ -146,9 +143,6 @@
"errors": [
{
"$ref": "#/components/errors/BLOCK_NOT_FOUND"
},
{
"$ref": "#/components/errors/NODE_NOT_SYNCED"
}
]
}
Expand Down Expand Up @@ -201,11 +195,8 @@
}
},
"required": [
"validate_invocation",
"execute_invocation",
"fee_transfer_invocation",
"state_diff",
"type"
"type",
"execute_invocation"
]
},
{
Expand Down Expand Up @@ -233,9 +224,6 @@
}
},
"required": [
"validate_invocation",
"fee_transfer_invocation",
"state_diff",
"type"
]
},
Expand Down Expand Up @@ -268,11 +256,8 @@
}
},
"required": [
"validate_invocation",
"constructor_invocation",
"fee_transfer_invocation",
"state_diff",
"type"
"type",
"constructor_invocation"
]
},
{
Expand All @@ -298,9 +283,8 @@
}
},
"required": [
"function_invocation",
"state_diff",
"type"
"type",
"function_invocation"
]
}
]
Expand Down Expand Up @@ -506,14 +490,10 @@
"code": 24,
"message": "Block not found"
},
"NODE_NOT_SYNCED": {
"code": 35,
"message": "Node is not synchronized"
},
"CONTRACT_ERROR": {
"code": 40,
"message": "Contract error"
}
}
}
}
}

0 comments on commit 237fe16

Please sign in to comment.