diff --git a/specs/mainnet-1/specs/starknet.json b/specs/mainnet-1/specs/starknet.json index 1b0dea991c..4fce368698 100644 --- a/specs/mainnet-1/specs/starknet.json +++ b/specs/mainnet-1/specs/starknet.json @@ -20,10 +20,10 @@ }, "api_collections": [ { - "enabled": true, + "enabled": false, "collection_data": { "api_interface": "jsonrpc", - "internal_path": "", + "internal_path": "HTTP-ONLY", "type": "POST", "add_on": "" }, @@ -598,17 +598,87 @@ "expected_value": "*" } ] + } + ] + }, + { + "enabled": false, + "collection_data": { + "api_interface": "jsonrpc", + "internal_path": "WS-ONLY", + "type": "POST", + "add_on": "" + }, + "apis": [ + { + "name": "pathfinder_subscribe", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" + }, + "compute_units": 1000, + "enabled": true, + "category": { + "deterministic": false, + "local": true, + "subscription": true, + "stateful": 0 + }, + "extra_compute_units": 0 }, { - "name": "pruning", - "parse_directive": { - "function_tag": "GET_BLOCK_BY_NUM" + "name": "pathfinder_unsubscribe", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" }, - "values": [ - { - "expected_value": "1" - } - ] + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": false, + "local": true, + "subscription": true, + "stateful": 0 + }, + "extra_compute_units": 0 + } + ], + "parse_directives": [ + { + "function_tag": "SUBSCRIBE", + "api_name": "pathfinder_subscribe" + }, + { + "function_template": "{\"jsonrpc\":\"2.0\",\"method\":\"pathfinder_unsubscribe\",\"params\":[%s],\"id\":1}", + "function_tag": "UNSUBSCRIBE", + "api_name": "pathfinder_unsubscribe" + } + ] + }, + { + "enabled": true, + "collection_data": { + "api_interface": "jsonrpc", + "internal_path": "", + "type": "POST", + "add_on": "" + }, + "inheritance_apis": [ + { + "api_interface": "jsonrpc", + "internal_path": "HTTP-ONLY", + "type": "POST", + "add_on": "" + }, + { + "api_interface": "jsonrpc", + "internal_path": "WS-ONLY", + "type": "POST", + "add_on": "" } ] }, @@ -623,7 +693,7 @@ "inheritance_apis": [ { "api_interface": "jsonrpc", - "internal_path": "", + "internal_path": "HTTP-ONLY", "type": "POST", "add_on": "" } @@ -640,7 +710,30 @@ "inheritance_apis": [ { "api_interface": "jsonrpc", - "internal_path": "", + "internal_path": "HTTP-ONLY", + "type": "POST", + "add_on": "" + } + ] + }, + { + "enabled": true, + "collection_data": { + "api_interface": "jsonrpc", + "internal_path": "/ws/rpc/v0_6", + "type": "POST", + "add_on": "" + }, + "inheritance_apis": [ + { + "api_interface": "jsonrpc", + "internal_path": "/rpc/v0_6", + "type": "POST", + "add_on": "" + }, + { + "api_interface": "jsonrpc", + "internal_path": "WS-ONLY", "type": "POST", "add_on": "" } @@ -657,7 +750,7 @@ "inheritance_apis": [ { "api_interface": "jsonrpc", - "internal_path": "", + "internal_path": "HTTP-ONLY", "type": "POST", "add_on": "" } @@ -667,20 +760,43 @@ "enabled": true, "collection_data": { "api_interface": "jsonrpc", - "internal_path": "/rpc/pathfinder/v0.1", + "internal_path": "/ws/rpc/v0_7", "type": "POST", "add_on": "" }, + "inheritance_apis": [ + { + "api_interface": "jsonrpc", + "internal_path": "/rpc/v0_7", + "type": "POST", + "add_on": "" + }, + { + "api_interface": "jsonrpc", + "internal_path": "WS-ONLY", + "type": "POST", + "add_on": "" + } + ] + }, + { + "enabled": true, + "collection_data": { + "api_interface": "jsonrpc", + "internal_path": "", + "type": "POST", + "add_on": "trace" + }, "apis": [ { - "name": "pathfinder_version", + "name": "starknet_traceTransaction", "block_parsing": { "parser_arg": [ "latest" ], "parser_func": "DEFAULT" }, - "compute_units": 10, + "compute_units": 100, "enabled": true, "category": { "deterministic": true, @@ -691,14 +807,15 @@ "extra_compute_units": 0 }, { - "name": "pathfinder_getProof", + "name": "starknet_simulateTransactions", "block_parsing": { "parser_arg": [ - "latest" + "0" ], - "parser_func": "DEFAULT" + "parser_func": "PARSE_BY_ARG", + "encoding": "base64" }, - "compute_units": 10, + "compute_units": 100, "enabled": true, "category": { "deterministic": true, @@ -709,14 +826,16 @@ "extra_compute_units": 0 }, { - "name": "pathfinder_getTransactionStatus", + "name": "starknet_traceBlockTransactions", "block_parsing": { "parser_arg": [ - "latest" + "0" ], - "parser_func": "DEFAULT" + "parser_func": "PARSE_BY_ARG", + "encoding": "base64" }, - "compute_units": 10, + "compute_units": 1000, + "timeout_ms": 20000, "enabled": true, "category": { "deterministic": true, @@ -731,20 +850,20 @@ { "name": "enabled", "parse_directive": { - "function_template": "{\"jsonrpc\":\"2.0\",\"method\":\"pathfinder_version\",\"params\":[],\"id\":1}", + "function_template": "{\"jsonrpc\":\"2.0\",\"method\":\"starknet_traceBlockTransactions\",\"params\":[\"latest\"],\"id\":1}", "function_tag": "VERIFICATION", "result_parsing": { "parser_arg": [ - "latest" + "0" ], - "parser_func": "DEFAULT" + "parser_func": "PARSE_BY_ARG", + "encoding": "base64" }, - "api_name": "pathfinder_version" + "api_name": "starknet_traceBlockTransactions" }, "values": [ { - "expected_value": "*", - "severity": "Warning" + "expected_value": "*" } ] } @@ -754,20 +873,20 @@ "enabled": true, "collection_data": { "api_interface": "jsonrpc", - "internal_path": "", + "internal_path": "/rpc/pathfinder/v0.1", "type": "POST", - "add_on": "trace" + "add_on": "" }, "apis": [ { - "name": "starknet_traceTransaction", + "name": "pathfinder_version", "block_parsing": { "parser_arg": [ "latest" ], "parser_func": "DEFAULT" }, - "compute_units": 100, + "compute_units": 10, "enabled": true, "category": { "deterministic": true, @@ -778,15 +897,14 @@ "extra_compute_units": 0 }, { - "name": "starknet_simulateTransactions", + "name": "pathfinder_getProof", "block_parsing": { "parser_arg": [ - "0" + "latest" ], - "parser_func": "PARSE_BY_ARG", - "encoding": "base64" + "parser_func": "DEFAULT" }, - "compute_units": 100, + "compute_units": 10, "enabled": true, "category": { "deterministic": true, @@ -797,16 +915,14 @@ "extra_compute_units": 0 }, { - "name": "starknet_traceBlockTransactions", + "name": "pathfinder_getTransactionStatus", "block_parsing": { "parser_arg": [ - "0" + "latest" ], - "parser_func": "PARSE_BY_ARG", - "encoding": "base64" + "parser_func": "DEFAULT" }, - "compute_units": 1000, - "timeout_ms": 20000, + "compute_units": 10, "enabled": true, "category": { "deterministic": true, @@ -821,20 +937,20 @@ { "name": "enabled", "parse_directive": { - "function_template": "{\"jsonrpc\":\"2.0\",\"method\":\"starknet_traceBlockTransactions\",\"params\":[\"latest\"],\"id\":1}", + "function_template": "{\"jsonrpc\":\"2.0\",\"method\":\"pathfinder_version\",\"params\":[],\"id\":1}", "function_tag": "VERIFICATION", "result_parsing": { "parser_arg": [ - "0" + "latest" ], - "parser_func": "PARSE_BY_ARG", - "encoding": "base64" + "parser_func": "DEFAULT" }, - "api_name": "starknet_traceBlockTransactions" + "api_name": "pathfinder_version" }, "values": [ { - "expected_value": "*" + "expected_value": "*", + "severity": "Warning" } ] } @@ -891,7 +1007,7 @@ "enabled": true, "collection_data": { "api_interface": "jsonrpc", - "internal_path": "/rpc/v0_7", + "internal_path": "/rpc/v0_6", "type": "POST", "add_on": "" }, @@ -914,7 +1030,7 @@ "enabled": true, "collection_data": { "api_interface": "jsonrpc", - "internal_path": "/rpc/v0_6", + "internal_path": "/ws/rpc/v0_6", "type": "POST", "add_on": "" }, @@ -955,6 +1071,52 @@ ] } ] + }, + { + "enabled": true, + "collection_data": { + "api_interface": "jsonrpc", + "internal_path": "/rpc/v0_7", + "type": "POST", + "add_on": "" + }, + "apis": [], + "headers": [], + "inheritance_apis": [], + "parse_directives": [], + "verifications": [ + { + "name": "chain-id", + "values": [ + { + "expected_value": "0x534e5f5345504f4c4941" + } + ] + } + ] + }, + { + "enabled": true, + "collection_data": { + "api_interface": "jsonrpc", + "internal_path": "/ws/rpc/v0_7", + "type": "POST", + "add_on": "" + }, + "apis": [], + "headers": [], + "inheritance_apis": [], + "parse_directives": [], + "verifications": [ + { + "name": "chain-id", + "values": [ + { + "expected_value": "0x534e5f5345504f4c4941" + } + ] + } + ] } ], "contributor": [