From 5ff5d7e8293327f91d3be1960a254c620f781c50 Mon Sep 17 00:00:00 2001 From: Ariel Elperin Date: Thu, 23 Nov 2023 00:40:10 +0200 Subject: [PATCH] optional trace fields --- api/starknet_api_openrpc.json | 51 +---------------------------- api/starknet_trace_api_openrpc.json | 34 ++++--------------- 2 files changed, 8 insertions(+), 77 deletions(-) diff --git a/api/starknet_api_openrpc.json b/api/starknet_api_openrpc.json index 862b4d1..91f92ac 100644 --- a/api/starknet_api_openrpc.json +++ b/api/starknet_api_openrpc.json @@ -55,9 +55,6 @@ "errors": [ { "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/NODE_NOT_SYNCED" } ] }, @@ -95,9 +92,6 @@ "errors": [ { "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/NODE_NOT_SYNCED" } ] }, @@ -135,9 +129,6 @@ "errors": [ { "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/NODE_NOT_SYNCED" } ] }, @@ -190,9 +181,6 @@ }, { "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/NODE_NOT_SYNCED" } ] }, @@ -335,9 +323,6 @@ }, { "$ref": "#/components/errors/INVALID_TXN_INDEX" - }, - { - "$ref": "#/components/errors/NODE_NOT_SYNCED" } ] }, @@ -423,9 +408,6 @@ }, { "$ref": "#/components/errors/CLASS_HASH_NOT_FOUND" - }, - { - "$ref": "#/components/errors/NODE_NOT_SYNCED" } ] }, @@ -466,9 +448,6 @@ }, { "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/NODE_NOT_SYNCED" } ] }, @@ -518,9 +497,6 @@ }, { "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/NODE_NOT_SYNCED" } ] }, @@ -552,9 +528,6 @@ "errors": [ { "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/NODE_NOT_SYNCED" } ] }, @@ -603,9 +576,6 @@ }, { "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/NODE_NOT_SYNCED" } ] }, @@ -658,9 +628,6 @@ }, { "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/NODE_NOT_SYNCED" } ] }, @@ -721,9 +688,6 @@ "errors": [ { "$ref": "#/components/errors/NO_BLOCKS" - }, - { - "$ref": "#/components/errors/NODE_NOT_SYNCED" } ] }, @@ -756,9 +720,6 @@ "errors": [ { "$ref": "#/components/errors/NO_BLOCKS" - }, - { - "$ref": "#/components/errors/NODE_NOT_SYNCED" } ] }, @@ -843,9 +804,6 @@ }, { "$ref": "#/components/errors/TOO_MANY_KEYS_IN_FILTER" - }, - { - "$ref": "#/components/errors/NODE_NOT_SYNCED" } ] }, @@ -886,9 +844,6 @@ }, { "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/NODE_NOT_SYNCED" } ] } @@ -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", @@ -3941,4 +3892,4 @@ } } } -} +} \ No newline at end of file diff --git a/api/starknet_trace_api_openrpc.json b/api/starknet_trace_api_openrpc.json index b962217..a1d50f1 100644 --- a/api/starknet_trace_api_openrpc.json +++ b/api/starknet_trace_api_openrpc.json @@ -104,9 +104,6 @@ }, { "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/NODE_NOT_SYNCED" } ] }, @@ -146,9 +143,6 @@ "errors": [ { "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/NODE_NOT_SYNCED" } ] } @@ -201,11 +195,8 @@ } }, "required": [ - "validate_invocation", - "execute_invocation", - "fee_transfer_invocation", - "state_diff", - "type" + "type", + "execute_invocation" ] }, { @@ -233,9 +224,6 @@ } }, "required": [ - "validate_invocation", - "fee_transfer_invocation", - "state_diff", "type" ] }, @@ -268,11 +256,8 @@ } }, "required": [ - "validate_invocation", - "constructor_invocation", - "fee_transfer_invocation", - "state_diff", - "type" + "type", + "constructor_invocation" ] }, { @@ -298,9 +283,8 @@ } }, "required": [ - "function_invocation", - "state_diff", - "type" + "type", + "function_invocation" ] } ] @@ -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" } } } -} +} \ No newline at end of file