From 09f10745c48420b4efe535f77538c1fce7a09126 Mon Sep 17 00:00:00 2001 From: Krzysztof Lis Date: Mon, 15 Jun 2026 07:46:49 +0000 Subject: [PATCH 01/10] refactor(rpc): move add transaction handlers to the v0.9 module --- crates/rpc/src/v09.rs | 12 +++++++----- crates/rpc/src/{v08 => v09}/method.rs | 0 .../{v08 => v09}/method/add_declare_transaction.rs | 0 .../method/add_deploy_account_transaction.rs | 0 .../{v08 => v09}/method/add_invoke_transaction.rs | 0 crates/rpc/src/v10.rs | 10 +++++----- 6 files changed, 12 insertions(+), 10 deletions(-) rename crates/rpc/src/{v08 => v09}/method.rs (100%) rename crates/rpc/src/{v08 => v09}/method/add_declare_transaction.rs (100%) rename crates/rpc/src/{v08 => v09}/method/add_deploy_account_transaction.rs (100%) rename crates/rpc/src/{v08 => v09}/method/add_invoke_transaction.rs (100%) diff --git a/crates/rpc/src/v09.rs b/crates/rpc/src/v09.rs index d1991dcd70..451e5e0319 100644 --- a/crates/rpc/src/v09.rs +++ b/crates/rpc/src/v09.rs @@ -1,19 +1,21 @@ +pub mod method; + +use method as v09_method; + use crate::jsonrpc::{RpcRouter, RpcRouterBuilder}; use crate::method::subscribe_events::SubscribeEvents; use crate::method::subscribe_new_heads::SubscribeNewHeads; use crate::method::subscribe_new_transaction_receipts::SubscribeNewTransactionReceipts; use crate::method::subscribe_new_transactions::SubscribeNewTransactions; use crate::method::subscribe_transaction_status::SubscribeTransactionStatus; -// re-using v08-specific methods -use crate::v08::method as v08_method; #[rustfmt::skip] pub fn register_routes() -> RpcRouterBuilder { RpcRouter::builder(crate::RpcVersion::V09) .register("pathfinder_lastL1AcceptedBlockHashAndNumber", crate::method::last_l1_accepted_block_hash_and_number) - .register("starknet_addDeclareTransaction", v08_method::add_declare_transaction) - .register("starknet_addDeployAccountTransaction", v08_method::add_deploy_account_transaction) - .register("starknet_addInvokeTransaction", v08_method::add_invoke_transaction) + .register("starknet_addDeclareTransaction", v09_method::add_declare_transaction) + .register("starknet_addDeployAccountTransaction", v09_method::add_deploy_account_transaction) + .register("starknet_addInvokeTransaction", v09_method::add_invoke_transaction) .register("starknet_blockHashAndNumber", crate::method::block_hash_and_number) .register("starknet_blockNumber", crate::method::block_number) .register("starknet_call", crate::method::call) diff --git a/crates/rpc/src/v08/method.rs b/crates/rpc/src/v09/method.rs similarity index 100% rename from crates/rpc/src/v08/method.rs rename to crates/rpc/src/v09/method.rs diff --git a/crates/rpc/src/v08/method/add_declare_transaction.rs b/crates/rpc/src/v09/method/add_declare_transaction.rs similarity index 100% rename from crates/rpc/src/v08/method/add_declare_transaction.rs rename to crates/rpc/src/v09/method/add_declare_transaction.rs diff --git a/crates/rpc/src/v08/method/add_deploy_account_transaction.rs b/crates/rpc/src/v09/method/add_deploy_account_transaction.rs similarity index 100% rename from crates/rpc/src/v08/method/add_deploy_account_transaction.rs rename to crates/rpc/src/v09/method/add_deploy_account_transaction.rs diff --git a/crates/rpc/src/v08/method/add_invoke_transaction.rs b/crates/rpc/src/v09/method/add_invoke_transaction.rs similarity index 100% rename from crates/rpc/src/v08/method/add_invoke_transaction.rs rename to crates/rpc/src/v09/method/add_invoke_transaction.rs diff --git a/crates/rpc/src/v10.rs b/crates/rpc/src/v10.rs index ba99fbdcfd..1dc6dcc0f8 100644 --- a/crates/rpc/src/v10.rs +++ b/crates/rpc/src/v10.rs @@ -4,16 +4,16 @@ use crate::method::subscribe_new_heads::SubscribeNewHeads; use crate::method::subscribe_new_transaction_receipts::SubscribeNewTransactionReceipts; use crate::method::subscribe_new_transactions::SubscribeNewTransactions; use crate::method::subscribe_transaction_status::SubscribeTransactionStatus; -// re-using v08-specific methods -use crate::v08::method as v08_method; +// re-using v09-specific methods +use crate::v09::method as v09_method; #[rustfmt::skip] pub fn register_routes() -> RpcRouterBuilder { RpcRouter::builder(crate::RpcVersion::V10) .register("pathfinder_lastL1AcceptedBlockHashAndNumber", crate::method::last_l1_accepted_block_hash_and_number) - .register("starknet_addDeclareTransaction", v08_method::add_declare_transaction) - .register("starknet_addDeployAccountTransaction", v08_method::add_deploy_account_transaction) - .register("starknet_addInvokeTransaction", v08_method::add_invoke_transaction) + .register("starknet_addDeclareTransaction", v09_method::add_declare_transaction) + .register("starknet_addDeployAccountTransaction", v09_method::add_deploy_account_transaction) + .register("starknet_addInvokeTransaction", v09_method::add_invoke_transaction) .register("starknet_blockHashAndNumber", crate::method::block_hash_and_number) .register("starknet_blockNumber", crate::method::block_number) .register("starknet_call", crate::method::call) From 13716719c85093672ff211a958ef82fa0bd29ddb Mon Sep 17 00:00:00 2001 From: Krzysztof Lis Date: Mon, 15 Jun 2026 07:47:07 +0000 Subject: [PATCH 02/10] feat(rpc): do not serve v0.6 v0.7 and v0.8 anymore --- crates/rpc/src/lib.rs | 131 ++++++++---------------------------------- crates/rpc/src/v06.rs | 35 ----------- crates/rpc/src/v07.rs | 36 ------------ crates/rpc/src/v08.rs | 51 ---------------- 4 files changed, 24 insertions(+), 229 deletions(-) delete mode 100644 crates/rpc/src/v06.rs delete mode 100644 crates/rpc/src/v07.rs delete mode 100644 crates/rpc/src/v08.rs diff --git a/crates/rpc/src/lib.rs b/crates/rpc/src/lib.rs index 339ce4b91b..4c244b8dbc 100644 --- a/crates/rpc/src/lib.rs +++ b/crates/rpc/src/lib.rs @@ -14,9 +14,6 @@ pub mod pending; mod test_setup; pub mod tracker; pub mod types; -pub mod v06; -pub mod v07; -pub mod v08; pub mod v09; pub mod v10; @@ -47,10 +44,7 @@ const DEFAULT_MAX_CONNECTIONS: usize = 1024; #[derive(Copy, Clone, Debug, Default, PartialEq, PartialOrd)] pub enum RpcVersion { - V06, #[default] - V07, - V08, V09, V10, PathfinderV01, @@ -59,9 +53,6 @@ pub enum RpcVersion { impl RpcVersion { fn to_str(self) -> &'static str { match self { - RpcVersion::V06 => "v0.6", - RpcVersion::V07 => "v0.7", - RpcVersion::V08 => "v0.8", RpcVersion::V09 => "v0.9", RpcVersion::V10 => "v0.10", RpcVersion::PathfinderV01 => "v0.1", @@ -170,18 +161,12 @@ impl RpcServer { } } - let v06_routes = v06::register_routes().build(self.context.clone()); - let v07_routes = v07::register_routes().build(self.context.clone()); - let v08_routes = v08::register_routes().build(self.context.clone()); let v09_routes = v09::register_routes().build(self.context.clone()); let v10_routes = v10::register_routes().build(self.context.clone()); let pathfinder_routes = pathfinder::register_routes().build(self.context.clone()); let unstable_routes = pathfinder::unstable::register_routes().build(self.context.clone()); let default_router = match self.default_version { - RpcVersion::V06 => v06_routes.clone(), - RpcVersion::V07 => v07_routes.clone(), - RpcVersion::V08 => v08_routes.clone(), RpcVersion::V09 => v09_routes.clone(), RpcVersion::V10 => v10_routes.clone(), RpcVersion::PathfinderV01 => { @@ -194,12 +179,6 @@ impl RpcServer { // used by monitoring bots to check service health. .route("/", get(empty_body).post(rpc_handler)) .with_state(default_router.clone()) - .route("/rpc/v0_6", post(rpc_handler)) - .with_state(v06_routes.clone()) - .route("/rpc/v0_7", post(rpc_handler)) - .with_state(v07_routes.clone()) - .route("/rpc/v0_8", post(rpc_handler).get(rpc_handler)) - .with_state(v08_routes.clone()) .route("/rpc/v0_9", post(rpc_handler).get(rpc_handler)) .with_state(v09_routes.clone()) .route("/rpc/v0_10", post(rpc_handler).get(rpc_handler)) @@ -214,12 +193,6 @@ impl RpcServer { router .route("/ws", get(rpc_handler)) .with_state(default_router) - .route("/ws/rpc/v0_6", get(rpc_handler)) - .with_state(v06_routes) - .route("/ws/rpc/v0_7", get(rpc_handler)) - .with_state(v07_routes) - .route("/ws/rpc/v0_8", post(rpc_handler).get(rpc_handler)) - .with_state(v08_routes) .route("/ws/rpc/v0_9", post(rpc_handler).get(rpc_handler)) .with_state(v09_routes) .route("/ws/rpc/v0_10", post(rpc_handler).get(rpc_handler)) @@ -309,15 +282,6 @@ pub mod test_utils { macro_rules! fixture { ($version:expr, $file_name:literal) => {{ match $version { - $crate::RpcVersion::V06 => { - include_str!(concat!("../../fixtures/0.6.0/", $file_name)) - } - $crate::RpcVersion::V07 => { - include_str!(concat!("../../fixtures/0.7.0/", $file_name)) - } - $crate::RpcVersion::V08 => { - include_str!(concat!("../../fixtures/0.8.0/", $file_name)) - } $crate::RpcVersion::V09 => { include_str!(concat!("../../fixtures/0.9.0/", $file_name)) } @@ -1337,7 +1301,7 @@ mod tests { for (line, input, expected) in examples { let parsed = - Syncing::deserialize(crate::dto::Value::from_str(input, RpcVersion::V07).unwrap()) + Syncing::deserialize(crate::dto::Value::from_str(input, RpcVersion::V09).unwrap()) .unwrap(); assert_eq!(parsed, expected, "example from line {line}"); } @@ -1349,7 +1313,7 @@ mod tests { // of health check. Test that we return success for such queries. let addr: SocketAddr = "127.0.0.1:0".parse().unwrap(); let context = RpcContext::for_tests(); - let (_jh, addr) = RpcServer::new(addr, context, RpcVersion::V07) + let (_jh, addr) = RpcServer::new(addr, context, RpcVersion::V09) .spawn(&PathBuf::default()) .await .unwrap(); @@ -1398,12 +1362,27 @@ mod tests { #[rustfmt::skip] #[rstest::rstest] - #[case::root_api("/", "v07/starknet_api_openrpc.json", &[], Api::HttpOnly)] - #[case::root_api_websocket("/ws", "v07/starknet_api_openrpc.json", &[], Api::WebsocketOnly)] - #[case::root_trace("/", "v07/starknet_trace_api_openrpc.json", &[], Api::HttpOnly)] - #[case::root_trace_websocket("/ws", "v07/starknet_trace_api_openrpc.json", &[], Api::WebsocketOnly)] - #[case::root_write("/", "v07/starknet_write_api.json", &[], Api::HttpOnly)] - #[case::root_write_websocket("/ws", "v07/starknet_write_api.json", &[], Api::WebsocketOnly)] + #[case::root_api("/", "v09/starknet_api_openrpc.json", &[], Api::HttpOnly)] + #[case::root_api_websocket("/ws", "v09/starknet_api_openrpc.json", &[], Api::WebsocketOnly)] + #[case::root_executables("/", "v09/starknet_executables.json", &[], Api::HttpOnly)] + #[case::root_executables_websocket("/ws", "v09/starknet_executables.json", &[], Api::WebsocketOnly)] + #[case::root_trace("/", "v09/starknet_trace_api_openrpc.json", &[], Api::HttpOnly)] + #[case::root_trace_websocket("/ws", "v09/starknet_trace_api_openrpc.json", &[], Api::WebsocketOnly)] + #[case::root_write("/", "v09/starknet_write_api.json", &[], Api::HttpOnly)] + #[case::root_write_websocket("/ws", "v09/starknet_write_api.json", &[], Api::WebsocketOnly)] + #[case::root_websocket( + "/ws", + "v09/starknet_ws_api.json", + // "starknet_subscription*" methods are in fact notifications + &[ + "starknet_subscriptionNewHeads", + "starknet_subscriptionTransactionStatus", + "starknet_subscriptionEvents", + "starknet_subscriptionNewTransactionReceipts", + "starknet_subscriptionNewTransaction", + "starknet_subscriptionReorg" + ], + Api::WebsocketOnly)] #[case::root_pathfinder("/", "pathfinder_rpc_api.json", &["pathfinder_version"], Api::HttpOnly)] #[case::root_pathfinder_websocket("/ws", "pathfinder_rpc_api.json", &["pathfinder_version"], Api::WebsocketOnly)] @@ -1480,68 +1459,6 @@ mod tests { ], Api::WebsocketOnly)] #[case::v0_9_pathfinder("/rpc/v0_9", "pathfinder_rpc_api.json", &["pathfinder_version"], Api::Both)] - - #[case::v0_8_api("/rpc/v0_8", "v08/starknet_api_openrpc.json", &[], Api::Both)] - #[case::v0_8_executables("/rpc/v0_8", "v08/starknet_executables.json", &[], Api::Both)] - #[case::v0_8_trace("/rpc/v0_8", "v08/starknet_trace_api_openrpc.json", &[], Api::Both)] - #[case::v0_8_write("/rpc/v0_8", "v08/starknet_write_api.json", &[], Api::Both)] - #[case::v0_8_websocket( - "/rpc/v0_8", - "v08/starknet_ws_api.json", - // "starknet_subscription*" methods are in fact notifications - &[ - "starknet_subscriptionNewHeads", - "starknet_subscriptionPendingTransactions", - "starknet_subscriptionTransactionStatus", - "starknet_subscriptionEvents", - "starknet_subscriptionReorg" - ], - Api::WebsocketOnly)] - - #[case::v0_8_api_alternative_path("/ws/rpc/v0_8", "v08/starknet_api_openrpc.json", &[], Api::Both)] - #[case::v0_8_executables_alternative_path("/ws/rpc/v0_8", "v08/starknet_executables.json", &[], Api::Both)] - #[case::v0_8_trace_alternative_path("/ws/rpc/v0_8", "v08/starknet_trace_api_openrpc.json", &[], Api::Both)] - #[case::v0_8_write_alternative_path("/ws/rpc/v0_8", "v08/starknet_write_api.json", &[], Api::Both)] - #[case::v0_8_websocket_alternative_path( - "/ws/rpc/v0_8", - "v08/starknet_ws_api.json", - // "starknet_subscription*" methods are in fact notifications - &[ - "starknet_subscriptionNewHeads", - "starknet_subscriptionPendingTransactions", - "starknet_subscriptionTransactionStatus", - "starknet_subscriptionEvents", - "starknet_subscriptionReorg" - ], - Api::WebsocketOnly)] - #[case::v0_8_pathfinder("/rpc/v0_8", "pathfinder_rpc_api.json", &["pathfinder_version"], Api::Both)] - - #[case::v0_7_api("/rpc/v0_7", "v07/starknet_api_openrpc.json", &[], Api::HttpOnly)] - #[case::v0_7_api_websocket("/ws/rpc/v0_7", "v07/starknet_api_openrpc.json", &[], Api::WebsocketOnly)] - #[case::v0_7_trace("/rpc/v0_7", "v07/starknet_trace_api_openrpc.json", &[], Api::HttpOnly)] - #[case::v0_7_trace_websocket("/ws/rpc/v0_7", "v07/starknet_trace_api_openrpc.json", &[], Api::WebsocketOnly)] - #[case::v0_7_write("/rpc/v0_7", "v07/starknet_write_api.json", &[], Api::HttpOnly)] - #[case::v0_7_write_websocket("/ws/rpc/v0_7", "v07/starknet_write_api.json", &[], Api::WebsocketOnly)] - #[case::v0_7_pathfinder("/rpc/v0_7", "pathfinder_rpc_api.json", &["pathfinder_version"], Api::HttpOnly)] - #[case::v0_7_pathfinder_websocket("/ws/rpc/v0_7", "pathfinder_rpc_api.json", &["pathfinder_version"], Api::WebsocketOnly)] - - #[case::v0_6_api( - "/rpc/v0_6", - "v06/starknet_api_openrpc.json", - &[], - Api::HttpOnly)] - #[case::v0_6_api_websocket("/ws/rpc/v0_6", "v06/starknet_api_openrpc.json", &[], Api::WebsocketOnly)] - #[case::v0_6_trace( - "/rpc/v0_6", - "v06/starknet_trace_api_openrpc.json", - &[], - Api::HttpOnly)] - #[case::v0_6_trace_websocket("/ws/rpc/v0_6", "v06/starknet_trace_api_openrpc.json", &[], Api::WebsocketOnly)] - #[case::v0_6_write("/rpc/v0_6", "v06/starknet_write_api.json", &[], Api::HttpOnly)] - #[case::v0_6_write_websocket("/ws/rpc/v0_6", "v06/starknet_write_api.json", &[], Api::WebsocketOnly)] - #[case::v0_6_pathfinder("/rpc/v0_6", "pathfinder_rpc_api.json", &["pathfinder_version"], Api::HttpOnly)] - #[case::v0_6_pathfinder_websocket("/ws/rpc/v0_6", "pathfinder_rpc_api.json", &["pathfinder_version"], Api::WebsocketOnly)] - #[case::pathfinder("/rpc/pathfinder/v0.1", "pathfinder_rpc_api.json", &[], Api::HttpOnly)] #[case::pathfinder("/ws/rpc/pathfinder/v0_1", "pathfinder_rpc_api.json", &[], Api::WebsocketOnly)] @@ -1586,7 +1503,7 @@ mod tests { WebsocketHistory::Unlimited, )); } - let (_jh, addr) = RpcServer::new(addr, context, RpcVersion::V07) + let (_jh, addr) = RpcServer::new(addr, context, RpcVersion::V09) .spawn(&PathBuf::default()) .await .unwrap(); diff --git a/crates/rpc/src/v06.rs b/crates/rpc/src/v06.rs deleted file mode 100644 index 7ded8dafda..0000000000 --- a/crates/rpc/src/v06.rs +++ /dev/null @@ -1,35 +0,0 @@ -use crate::jsonrpc::{RpcRouter, RpcRouterBuilder}; - -#[rustfmt::skip] -pub fn register_routes() -> RpcRouterBuilder { - RpcRouter::builder(crate::RpcVersion::V06) - .register("pathfinder_lastL1AcceptedBlockHashAndNumber", crate::method::last_l1_accepted_block_hash_and_number) - .register("starknet_addDeclareTransaction", crate::method::add_declare_transaction) - .register("starknet_addDeployAccountTransaction", crate::method::add_deploy_account_transaction) - .register("starknet_addInvokeTransaction", crate::method::add_invoke_transaction) - .register("starknet_blockNumber", crate::method::block_number) - .register("starknet_blockHashAndNumber", crate::method::block_hash_and_number) - .register("starknet_call", crate::method::call) - .register("starknet_chainId", crate::method::chain_id) - .register("starknet_getClass", crate::method::get_class) - .register("starknet_getClassAt", crate::method::get_class_at) - .register("starknet_getBlockTransactionCount", crate::method::get_block_transaction_count) - .register("starknet_getBlockWithTxHashes", crate::method::get_block_with_tx_hashes) - .register("starknet_getBlockWithTxs", crate::method::get_block_with_txs) - .register("starknet_getClassHashAt", crate::method::get_class_hash_at) - .register("starknet_getEvents", crate::method::get_events) - .register("starknet_estimateFee", crate::method::estimate_fee) - .register("starknet_estimateMessageFee", crate::method::estimate_message_fee) - .register("starknet_getNonce", crate::method::get_nonce) - .register("starknet_getStateUpdate", crate::method::get_state_update) - .register("starknet_getStorageAt", crate::method::get_storage_at) - .register("starknet_getTransactionByHash", crate::method::get_transaction_by_hash) - .register("starknet_getTransactionStatus", crate::method::get_transaction_status) - .register("starknet_getTransactionReceipt", crate::method::get_transaction_receipt) - .register("starknet_getTransactionByBlockIdAndIndex", crate::method::get_transaction_by_block_id_and_index) - .register("starknet_simulateTransactions", crate::method::simulate_transactions) - .register("starknet_syncing", crate::method::syncing) - .register("starknet_traceBlockTransactions", crate::method::trace_block_transactions) - .register("starknet_traceTransaction", crate::method::trace_transaction) - .register("starknet_specVersion", || "0.6.0") - } diff --git a/crates/rpc/src/v07.rs b/crates/rpc/src/v07.rs deleted file mode 100644 index be3044db4b..0000000000 --- a/crates/rpc/src/v07.rs +++ /dev/null @@ -1,36 +0,0 @@ -use crate::jsonrpc::{RpcRouter, RpcRouterBuilder}; - -#[rustfmt::skip] -pub fn register_routes() -> RpcRouterBuilder { - RpcRouter::builder(crate::RpcVersion::V07) - .register("pathfinder_lastL1AcceptedBlockHashAndNumber", crate::method::last_l1_accepted_block_hash_and_number) - .register("starknet_blockHashAndNumber", crate::method::block_hash_and_number) - .register("starknet_blockNumber", crate::method::block_number) - .register("starknet_chainId", crate::method::chain_id) - .register("starknet_getBlockTransactionCount", crate::method::get_block_transaction_count) - .register("starknet_getClass", crate::method::get_class) - .register("starknet_getClassAt", crate::method::get_class_at) - .register("starknet_getClassHashAt", crate::method::get_class_hash_at) - .register("starknet_getEvents", crate::method::get_events) - .register("starknet_getNonce", crate::method::get_nonce) - .register("starknet_getStateUpdate", crate::method::get_state_update) - .register("starknet_getStorageAt", crate::method::get_storage_at) - .register("starknet_syncing", crate::method::syncing) - .register("starknet_getTransactionReceipt", crate::method::get_transaction_receipt) - .register("starknet_getTransactionStatus", crate::method::get_transaction_status) - .register("starknet_call", crate::method::call) - .register("starknet_addDeclareTransaction", crate::method::add_declare_transaction) - .register("starknet_addDeployAccountTransaction", crate::method::add_deploy_account_transaction) - .register("starknet_addInvokeTransaction", crate::method::add_invoke_transaction) - .register("starknet_getTransactionByBlockIdAndIndex", crate::method::get_transaction_by_block_id_and_index) - .register("starknet_getTransactionByHash", crate::method::get_transaction_by_hash) - .register("starknet_estimateFee", crate::method::estimate_fee) - .register("starknet_estimateMessageFee", crate::method::estimate_message_fee) - .register("starknet_getBlockWithTxHashes", crate::method::get_block_with_tx_hashes) - .register("starknet_getBlockWithTxs", crate::method::get_block_with_txs) - .register("starknet_simulateTransactions", crate::method::simulate_transactions) - .register("starknet_traceBlockTransactions", crate::method::trace_block_transactions) - .register("starknet_traceTransaction", crate::method::trace_transaction) - .register("starknet_getBlockWithReceipts", crate::method::get_block_with_receipts) - .register("starknet_specVersion", || "0.7.1") -} diff --git a/crates/rpc/src/v08.rs b/crates/rpc/src/v08.rs deleted file mode 100644 index 818c9b0b2e..0000000000 --- a/crates/rpc/src/v08.rs +++ /dev/null @@ -1,51 +0,0 @@ -pub mod method; - -use method as v08_method; - -use crate::jsonrpc::{RpcRouter, RpcRouterBuilder}; -use crate::method::subscribe_events::SubscribeEvents; -use crate::method::subscribe_new_heads::SubscribeNewHeads; -use crate::method::subscribe_pending_transactions::SubscribePendingTransactions; -use crate::method::subscribe_transaction_status::SubscribeTransactionStatus; - -#[rustfmt::skip] -pub fn register_routes() -> RpcRouterBuilder { - RpcRouter::builder(crate::RpcVersion::V08) - .register("pathfinder_lastL1AcceptedBlockHashAndNumber", crate::method::last_l1_accepted_block_hash_and_number) - .register("starknet_addDeclareTransaction", v08_method::add_declare_transaction) - .register("starknet_addDeployAccountTransaction", v08_method::add_deploy_account_transaction) - .register("starknet_addInvokeTransaction", v08_method::add_invoke_transaction) - .register("starknet_blockHashAndNumber", crate::method::block_hash_and_number) - .register("starknet_blockNumber", crate::method::block_number) - .register("starknet_call", crate::method::call) - .register("starknet_chainId", crate::method::chain_id) - .register("starknet_estimateFee", crate::method::estimate_fee) - .register("starknet_estimateMessageFee", crate::method::estimate_message_fee) - .register("starknet_getBlockTransactionCount", crate::method::get_block_transaction_count) - .register("starknet_getBlockWithTxHashes", crate::method::get_block_with_tx_hashes) - .register("starknet_getBlockWithTxs", crate::method::get_block_with_txs) - .register("starknet_getClass", crate::method::get_class) - .register("starknet_getClassAt", crate::method::get_class_at) - .register("starknet_getClassHashAt", crate::method::get_class_hash_at) - .register("starknet_getEvents", crate::method::get_events) - .register("starknet_getMessagesStatus", crate::method::get_messages_status) - .register("starknet_getNonce", crate::method::get_nonce) - .register("starknet_getStateUpdate", crate::method::get_state_update) - .register("starknet_getStorageAt", crate::method::get_storage_at) - .register("starknet_getStorageProof", crate::method::get_storage_proof) - .register("starknet_getTransactionByBlockIdAndIndex", crate::method::get_transaction_by_block_id_and_index) - .register("starknet_getTransactionByHash", crate::method::get_transaction_by_hash) - .register("starknet_getTransactionReceipt", crate::method::get_transaction_receipt) - .register("starknet_getTransactionStatus", crate::method::get_transaction_status) - .register("starknet_getBlockWithReceipts", crate::method::get_block_with_receipts) - .register("starknet_simulateTransactions", crate::method::simulate_transactions) - .register("starknet_subscribeNewHeads", SubscribeNewHeads) - .register("starknet_subscribePendingTransactions", SubscribePendingTransactions) - .register("starknet_subscribeEvents", SubscribeEvents) - .register("starknet_subscribeTransactionStatus", SubscribeTransactionStatus) - .register("starknet_specVersion", || "0.8.1") - .register("starknet_syncing", crate::method::syncing) - .register("starknet_traceBlockTransactions", crate::method::trace_block_transactions) - .register("starknet_traceTransaction", crate::method::trace_transaction) - .register("starknet_getCompiledCasm", crate::method::get_compiled_casm) -} From bb96f0fa1763ddde31cdf2cf5e02b8de345a812b Mon Sep 17 00:00:00 2001 From: Krzysztof Lis Date: Mon, 15 Jun 2026 07:47:27 +0000 Subject: [PATCH 03/10] refactor(rpc): remove dead version checks for removed RPC versions --- crates/rpc/src/dto/block.rs | 263 +++++------------- crates/rpc/src/dto/fee.rs | 45 ++- crates/rpc/src/dto/receipt.rs | 44 +-- crates/rpc/src/dto/simulation.rs | 131 ++------- crates/rpc/src/dto/transaction.rs | 87 ++---- crates/rpc/src/error.rs | 80 ++---- crates/rpc/src/jsonrpc/response.rs | 14 +- crates/rpc/src/jsonrpc/router/subscription.rs | 2 +- crates/rpc/src/method.rs | 4 - .../rpc/src/method/add_declare_transaction.rs | 10 +- .../method/add_deploy_account_transaction.rs | 6 +- .../rpc/src/method/add_invoke_transaction.rs | 6 +- crates/rpc/src/method/call.rs | 11 +- crates/rpc/src/method/estimate_fee.rs | 25 +- crates/rpc/src/method/estimate_message_fee.rs | 6 - .../rpc/src/method/get_block_with_receipts.rs | 44 +-- .../src/method/get_block_with_tx_hashes.rs | 27 +- crates/rpc/src/method/get_block_with_txs.rs | 27 +- crates/rpc/src/method/get_class.rs | 23 +- crates/rpc/src/method/get_class_at.rs | 29 +- crates/rpc/src/method/get_class_hash_at.rs | 33 +-- crates/rpc/src/method/get_compiled_casm.rs | 2 +- crates/rpc/src/method/get_events.rs | 2 +- crates/rpc/src/method/get_messages_status.rs | 26 +- crates/rpc/src/method/get_nonce.rs | 12 - crates/rpc/src/method/get_state_update.rs | 17 +- crates/rpc/src/method/get_storage_at.rs | 14 +- crates/rpc/src/method/get_storage_proof.rs | 2 +- .../rpc/src/method/get_transaction_by_hash.rs | 36 +-- .../rpc/src/method/get_transaction_receipt.rs | 26 -- .../rpc/src/method/get_transaction_status.rs | 71 +---- .../last_l1_accepted_block_hash_and_number.rs | 2 +- .../rpc/src/method/simulate_transactions.rs | 54 +--- crates/rpc/src/method/subscribe_events.rs | 52 ++-- crates/rpc/src/method/subscribe_new_heads.rs | 4 +- .../method/subscribe_pending_transactions.rs | 67 ----- .../method/subscribe_transaction_status.rs | 16 +- .../src/method/trace_block_transactions.rs | 20 +- crates/rpc/src/middleware/cors.rs | 2 +- crates/rpc/src/pending.rs | 68 +---- crates/rpc/src/types.rs | 71 ++--- crates/rpc/src/types/class.rs | 2 +- 42 files changed, 305 insertions(+), 1178 deletions(-) delete mode 100644 crates/rpc/src/method/subscribe_pending_transactions.rs diff --git a/crates/rpc/src/dto/block.rs b/crates/rpc/src/dto/block.rs index 8b613de909..9f9e8da533 100644 --- a/crates/rpc/src/dto/block.rs +++ b/crates/rpc/src/dto/block.rs @@ -12,14 +12,12 @@ use crate::{Reorg, RpcVersion}; impl crate::dto::DeserializeForVersion for crate::types::request::BlockId { fn deserialize(value: super::Value) -> Result { - let rpc_version = value.version; if value.is_string() { let value: String = value.deserialize()?; match value.as_str() { "latest" => Ok(Self::Latest), "l1_accepted" => Ok(Self::L1Accepted), - "pending" if rpc_version < RpcVersion::V09 => Ok(Self::PreConfirmed), - "pre_confirmed" if rpc_version >= RpcVersion::V09 => Ok(Self::PreConfirmed), + "pre_confirmed" => Ok(Self::PreConfirmed), _ => Err(serde_json::Error::custom("Invalid block id")), } } else { @@ -62,32 +60,28 @@ impl crate::dto::SerializeForVersion for pathfinder_common::BlockHeader { )?; serializer.serialize_field("starknet_version", &self.starknet_version.to_string())?; - if serializer.version >= RpcVersion::V07 { - serializer.serialize_field( - "l1_data_gas_price", - &ResourcePrice { - price_in_wei: self.eth_l1_data_gas_price, - price_in_fri: self.strk_l1_data_gas_price, - }, - )?; - serializer.serialize_field( - "l1_da_mode", - &match self.l1_da_mode { - L1DataAvailabilityMode::Blob => "BLOB", - L1DataAvailabilityMode::Calldata => "CALLDATA", - }, - )?; - } + serializer.serialize_field( + "l1_data_gas_price", + &ResourcePrice { + price_in_wei: self.eth_l1_data_gas_price, + price_in_fri: self.strk_l1_data_gas_price, + }, + )?; + serializer.serialize_field( + "l1_da_mode", + &match self.l1_da_mode { + L1DataAvailabilityMode::Blob => "BLOB", + L1DataAvailabilityMode::Calldata => "CALLDATA", + }, + )?; - if serializer.version >= RpcVersion::V08 { - serializer.serialize_field( - "l2_gas_price", - &ResourcePrice { - price_in_wei: self.eth_l2_gas_price, - price_in_fri: self.strk_l2_gas_price, - }, - )?; - } + serializer.serialize_field( + "l2_gas_price", + &ResourcePrice { + price_in_wei: self.eth_l2_gas_price, + price_in_fri: self.strk_l2_gas_price, + }, + )?; if serializer.version >= RpcVersion::V10 { if self.starknet_version < StarknetVersion::V_0_13_2 { @@ -127,11 +121,7 @@ impl crate::dto::SerializeForVersion let (block_number, pending_block) = *self; let mut serializer = serializer.serialize_struct()?; - if serializer.version >= RpcVersion::V09 { - serializer.serialize_field("block_number", &block_number)?; - } else { - serializer.serialize_field("parent_hash", &pending_block.parent_hash)?; - } + serializer.serialize_field("block_number", &block_number)?; serializer.serialize_field("timestamp", &pending_block.timestamp.get())?; serializer.serialize_field("sequencer_address", &pending_block.sequencer_address)?; serializer.serialize_field( @@ -146,32 +136,28 @@ impl crate::dto::SerializeForVersion &pending_block.starknet_version.to_string(), )?; - if serializer.version >= RpcVersion::V07 { - serializer.serialize_field( - "l1_data_gas_price", - &ResourcePrice { - price_in_wei: pending_block.l1_data_gas_price.price_in_wei, - price_in_fri: pending_block.l1_data_gas_price.price_in_fri, - }, - )?; - serializer.serialize_field( - "l1_da_mode", - &match pending_block.l1_da_mode { - starknet_gateway_types::reply::L1DataAvailabilityMode::Blob => "BLOB", - starknet_gateway_types::reply::L1DataAvailabilityMode::Calldata => "CALLDATA", - }, - )?; - } + serializer.serialize_field( + "l1_data_gas_price", + &ResourcePrice { + price_in_wei: pending_block.l1_data_gas_price.price_in_wei, + price_in_fri: pending_block.l1_data_gas_price.price_in_fri, + }, + )?; + serializer.serialize_field( + "l1_da_mode", + &match pending_block.l1_da_mode { + starknet_gateway_types::reply::L1DataAvailabilityMode::Blob => "BLOB", + starknet_gateway_types::reply::L1DataAvailabilityMode::Calldata => "CALLDATA", + }, + )?; - if serializer.version >= RpcVersion::V08 { - serializer.serialize_field( - "l2_gas_price", - &ResourcePrice { - price_in_wei: pending_block.l2_gas_price.price_in_wei, - price_in_fri: pending_block.l2_gas_price.price_in_fri, - }, - )?; - } + serializer.serialize_field( + "l2_gas_price", + &ResourcePrice { + price_in_wei: pending_block.l2_gas_price.price_in_wei, + price_in_fri: pending_block.l2_gas_price.price_in_fri, + }, + )?; serializer.end() } @@ -183,11 +169,7 @@ impl crate::dto::SerializeForVersion for crate::pending::PreConfirmedBlock { serializer: crate::dto::Serializer, ) -> Result { let mut serializer = serializer.serialize_struct()?; - // For backward compatibility with pre-0.9 rpc versions we mustn't include block - // number to mimic the behaviour of "pending" block - if serializer.version >= RpcVersion::V09 { - serializer.serialize_field("block_number", &self.number.get())?; - } + serializer.serialize_field("block_number", &self.number.get())?; serializer.serialize_field("timestamp", &self.timestamp.get())?; serializer.serialize_field("sequencer_address", &self.sequencer_address)?; serializer.serialize_field( @@ -199,32 +181,28 @@ impl crate::dto::SerializeForVersion for crate::pending::PreConfirmedBlock { )?; serializer.serialize_field("starknet_version", &self.starknet_version.to_string())?; - if serializer.version >= RpcVersion::V07 { - serializer.serialize_field( - "l1_data_gas_price", - &ResourcePrice { - price_in_wei: self.l1_data_gas_price.price_in_wei, - price_in_fri: self.l1_data_gas_price.price_in_fri, - }, - )?; - serializer.serialize_field( - "l1_da_mode", - &match self.l1_da_mode { - L1DataAvailabilityMode::Blob => "BLOB", - L1DataAvailabilityMode::Calldata => "CALLDATA", - }, - )?; - } + serializer.serialize_field( + "l1_data_gas_price", + &ResourcePrice { + price_in_wei: self.l1_data_gas_price.price_in_wei, + price_in_fri: self.l1_data_gas_price.price_in_fri, + }, + )?; + serializer.serialize_field( + "l1_da_mode", + &match self.l1_da_mode { + L1DataAvailabilityMode::Blob => "BLOB", + L1DataAvailabilityMode::Calldata => "CALLDATA", + }, + )?; - if serializer.version >= RpcVersion::V08 { - serializer.serialize_field( - "l2_gas_price", - &ResourcePrice { - price_in_wei: self.l2_gas_price.price_in_wei, - price_in_fri: self.l2_gas_price.price_in_fri, - }, - )?; - } + serializer.serialize_field( + "l2_gas_price", + &ResourcePrice { + price_in_wei: self.l2_gas_price.price_in_wei, + price_in_fri: self.l2_gas_price.price_in_fri, + }, + )?; serializer.end() } @@ -241,12 +219,6 @@ impl crate::dto::SerializeForVersion serializer: crate::dto::Serializer, ) -> Result { let mut serializer = serializer.serialize_struct()?; - if serializer.version < RpcVersion::V09 { - let parent_hash = self - .0 - .ok_or_else(|| crate::dto::Error::custom("Missing parent block hash"))?; - serializer.serialize_field("parent_hash", &parent_hash)?; - } serializer.flatten(self.1)?; serializer.end() } @@ -321,46 +293,7 @@ mod tests { )); pretty_assertions_sorted::assert_eq!( - header.serialize(Serializer::new(RpcVersion::V06)).unwrap(), - json!({ - "block_hash": "0x7256dde30ae68f43f3def9ce2a4433dd3de11b630d4f84336891bad8fe4127e", - "block_number": 1000000, - "l1_gas_price": { - "price_in_fri": "0x59425e9d6d3c", - "price_in_wei": "0x34795c87c" - }, - "new_root": "0x7bd9798e3b03e6dfc12db132d48e4a0dc75202aa6a9b57bc40e3796137bd617", - "parent_hash": "0x6084bda2cd3247aa11364404f7918001e82a7567cfe0b949fa6a7f3d4b4099f", - "sequencer_address": "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "starknet_version": "0.13.3", - "timestamp": 1734728886, - }) - ); - - pretty_assertions_sorted::assert_eq!( - header.serialize(Serializer::new(RpcVersion::V07)).unwrap(), - json!({ - "block_hash": "0x7256dde30ae68f43f3def9ce2a4433dd3de11b630d4f84336891bad8fe4127e", - "block_number": 1000000, - "l1_da_mode": "BLOB", - "l1_data_gas_price": { - "price_in_fri": "0xe27be612da1", - "price_in_wei": "0x85257107" - }, - "l1_gas_price": { - "price_in_fri": "0x59425e9d6d3c", - "price_in_wei": "0x34795c87c" - }, - "new_root": "0x7bd9798e3b03e6dfc12db132d48e4a0dc75202aa6a9b57bc40e3796137bd617", - "parent_hash": "0x6084bda2cd3247aa11364404f7918001e82a7567cfe0b949fa6a7f3d4b4099f", - "sequencer_address": "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "starknet_version": "0.13.3", - "timestamp": 1734728886, - }) - ); - - pretty_assertions_sorted::assert_eq!( - header.serialize(Serializer::new(RpcVersion::V08)).unwrap(), + header.serialize(Serializer::new(RpcVersion::V09)).unwrap(), json!({ "block_hash": "0x7256dde30ae68f43f3def9ce2a4433dd3de11b630d4f84336891bad8fe4127e", "block_number": 1000000, @@ -414,68 +347,6 @@ mod tests { ..Default::default() }; - pretty_assertions_sorted::assert_eq!( - (block_number, &pending) - .serialize(Serializer::new(RpcVersion::V06)) - .unwrap(), - json!({ - "l1_gas_price": { - "price_in_fri": "0x59425e9d6d3c", - "price_in_wei": "0x34795c87c" - }, - "parent_hash": "0x6084bda2cd3247aa11364404f7918001e82a7567cfe0b949fa6a7f3d4b4099f", - "sequencer_address": "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "starknet_version": "0.13.3", - "timestamp": 1734728886, - }) - ); - - pretty_assertions_sorted::assert_eq!( - (block_number, &pending) - .serialize(Serializer::new(RpcVersion::V07)) - .unwrap(), - json!({ - "l1_da_mode": "BLOB", - "l1_data_gas_price": { - "price_in_fri": "0xe27be612da1", - "price_in_wei": "0x85257107" - }, - "l1_gas_price": { - "price_in_fri": "0x59425e9d6d3c", - "price_in_wei": "0x34795c87c" - }, - "parent_hash": "0x6084bda2cd3247aa11364404f7918001e82a7567cfe0b949fa6a7f3d4b4099f", - "sequencer_address": "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "starknet_version": "0.13.3", - "timestamp": 1734728886, - }) - ); - - pretty_assertions_sorted::assert_eq!( - (block_number, &pending) - .serialize(Serializer::new(RpcVersion::V08)) - .unwrap(), - json!({ - "l1_da_mode": "BLOB", - "l1_data_gas_price": { - "price_in_fri": "0xe27be612da1", - "price_in_wei": "0x85257107" - }, - "l1_gas_price": { - "price_in_fri": "0x59425e9d6d3c", - "price_in_wei": "0x34795c87c" - }, - "l2_gas_price": { - "price_in_fri": "0x23456789", - "price_in_wei": "0x12345678" - }, - "parent_hash": "0x6084bda2cd3247aa11364404f7918001e82a7567cfe0b949fa6a7f3d4b4099f", - "sequencer_address": "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "starknet_version": "0.13.3", - "timestamp": 1734728886, - }) - ); - pretty_assertions_sorted::assert_eq!( (block_number, &pending) .serialize(Serializer::new(RpcVersion::V09)) diff --git a/crates/rpc/src/dto/fee.rs b/crates/rpc/src/dto/fee.rs index c67b9df403..203d372e5c 100644 --- a/crates/rpc/src/dto/fee.rs +++ b/crates/rpc/src/dto/fee.rs @@ -7,29 +7,14 @@ impl crate::dto::SerializeForVersion for pathfinder_executor::types::FeeEstimate ) -> Result { let mut serializer = serializer.serialize_struct()?; - if serializer.version >= crate::dto::RpcVersion::V08 { - serializer.serialize_field("l1_gas_consumed", &U256Hex(self.l1_gas_consumed))?; - serializer.serialize_field("l1_gas_price", &U256Hex(self.l1_gas_price))?; - serializer - .serialize_field("l1_data_gas_consumed", &U256Hex(self.l1_data_gas_consumed))?; - serializer.serialize_field("l1_data_gas_price", &U256Hex(self.l1_data_gas_price))?; - serializer.serialize_field("l2_gas_consumed", &U256Hex(self.l2_gas_consumed))?; - serializer.serialize_field("l2_gas_price", &U256Hex(self.l2_gas_price))?; - serializer.serialize_field("overall_fee", &U256Hex(self.overall_fee))?; - serializer.serialize_field("unit", &self.unit)?; - } else if serializer.version >= crate::dto::RpcVersion::V07 { - serializer.serialize_field("gas_price", &U256Hex(self.l1_gas_price))?; - serializer.serialize_field("gas_consumed", &U256Hex(self.l1_gas_consumed))?; - serializer.serialize_field("data_gas_consumed", &U256Hex(self.l1_data_gas_consumed))?; - serializer.serialize_field("data_gas_price", &U256Hex(self.l1_data_gas_price))?; - serializer.serialize_field("overall_fee", &U256Hex(self.overall_fee))?; - serializer.serialize_field("unit", &self.unit)?; - } else { - serializer.serialize_field("gas_price", &U256Hex(self.l1_gas_price))?; - serializer.serialize_field("gas_consumed", &U256Hex(self.l1_gas_consumed))?; - serializer.serialize_field("overall_fee", &U256Hex(self.overall_fee))?; - serializer.serialize_field("unit", &self.unit)?; - } + serializer.serialize_field("l1_gas_consumed", &U256Hex(self.l1_gas_consumed))?; + serializer.serialize_field("l1_gas_price", &U256Hex(self.l1_gas_price))?; + serializer.serialize_field("l1_data_gas_consumed", &U256Hex(self.l1_data_gas_consumed))?; + serializer.serialize_field("l1_data_gas_price", &U256Hex(self.l1_data_gas_price))?; + serializer.serialize_field("l2_gas_consumed", &U256Hex(self.l2_gas_consumed))?; + serializer.serialize_field("l2_gas_price", &U256Hex(self.l2_gas_price))?; + serializer.serialize_field("overall_fee", &U256Hex(self.overall_fee))?; + serializer.serialize_field("unit", &self.unit)?; serializer.end() } } @@ -55,7 +40,7 @@ mod tests { use crate::dto::SerializeForVersion; #[test] - fn fee_estimate_v06_serialization() { + fn fee_estimate_serialization() { let fee = FeeEstimate { l1_gas_consumed: U256::from(100), l1_gas_price: U256::from(50), @@ -67,13 +52,17 @@ mod tests { unit: PriceUnit::Wei, }; - let serializer = crate::dto::Serializer::new(crate::dto::RpcVersion::V06); + let serializer = crate::dto::Serializer::new(crate::dto::RpcVersion::V09); let result = serde_json::to_value(fee.serialize(serializer).unwrap()).unwrap(); let expected = serde_json::json!({ - "gas_consumed": "0x64", // 100 - "gas_price": "0x32", // 50 - "overall_fee": "0x3e8", // 1000 + "l1_gas_consumed": "0x64", // 100 + "l1_gas_price": "0x32", // 50 + "l1_data_gas_consumed": "0xc8", // 200 + "l1_data_gas_price": "0x19", // 25 + "l2_gas_consumed": "0x12c", // 300 + "l2_gas_price": "0xa", // 10 + "overall_fee": "0x3e8", // 1000 "unit": "WEI" }); diff --git a/crates/rpc/src/dto/receipt.rs b/crates/rpc/src/dto/receipt.rs index fe20a6282f..9b4b1fc129 100644 --- a/crates/rpc/src/dto/receipt.rs +++ b/crates/rpc/src/dto/receipt.rs @@ -5,8 +5,8 @@ use pathfinder_common::{BlockHash, BlockNumber, TransactionHash, TransactionVers use serde::ser::Error; use super::H256Hex; +use crate::dto; use crate::dto::{SerializeForVersion, Serializer}; -use crate::{dto, RpcVersion}; #[derive(Copy, Clone)] pub enum TxnStatus { @@ -176,14 +176,8 @@ impl SerializeForVersion for TxnReceiptWithBlockInfo<'_> { })?; serializer.serialize_optional("block_hash", block_hash.cloned())?; - // Block number is required for V09 and later versions. For older versions - // we only ever serialize it if `block_hash` is present, that is, the block is - // finalized. - if (serializer.version >= RpcVersion::V09) - || (serializer.version < RpcVersion::V09 && block_hash.is_some()) - { - serializer.serialize_field("block_number", block_number)?; - } + // Block number is required. + serializer.serialize_field("block_number", block_number)?; serializer.end() } @@ -382,37 +376,11 @@ impl SerializeForVersion for MsgToL1<'_> { impl SerializeForVersion for ExecutionResources<'_> { fn serialize(&self, serializer: Serializer) -> Result { - struct DataAvailability<'a>(&'a pathfinder_common::receipt::L1Gas); - - impl SerializeForVersion for DataAvailability<'_> { - fn serialize( - &self, - serializer: Serializer, - ) -> Result { - let mut serializer = serializer.serialize_struct()?; - - serializer.serialize_field("l1_gas", &self.0.l1_gas)?; - serializer.serialize_field("l1_data_gas", &self.0.l1_data_gas)?; - - serializer.end() - } - } - let mut serializer = serializer.serialize_struct()?; - if serializer.version < RpcVersion::V08 { - serializer.flatten(&ComputationResources(self.0))?; - if serializer.version > RpcVersion::V06 { - serializer.serialize_field( - "data_availability", - &DataAvailability(&self.0.data_availability), - )?; - } - } else { - serializer.serialize_field("l1_gas", &self.0.total_gas_consumed.l1_gas)?; - serializer.serialize_field("l1_data_gas", &self.0.total_gas_consumed.l1_data_gas)?; - serializer.serialize_field("l2_gas", &self.0.l2_gas)?; - } + serializer.serialize_field("l1_gas", &self.0.total_gas_consumed.l1_gas)?; + serializer.serialize_field("l1_data_gas", &self.0.total_gas_consumed.l1_data_gas)?; + serializer.serialize_field("l2_gas", &self.0.l2_gas)?; serializer.end() } diff --git a/crates/rpc/src/dto/simulation.rs b/crates/rpc/src/dto/simulation.rs index a8dd7e8e40..ff12c53266 100644 --- a/crates/rpc/src/dto/simulation.rs +++ b/crates/rpc/src/dto/simulation.rs @@ -1,51 +1,13 @@ use anyhow::anyhow; -use pathfinder_common::{ - contract_address, - entry_point, - felt, - ContractAddress, - ContractNonce, - StorageAddress, -}; +use pathfinder_common::{ContractAddress, ContractNonce, StorageAddress}; use pathfinder_crypto::Felt; -use pathfinder_executor::types::{FunctionInvocation, RevertibleFunctionInvocation}; +use pathfinder_executor::types::FunctionInvocation; use pathfinder_executor::IntoFelt; use serde::ser::Error; use super::SerializeStruct; use crate::RpcVersion; -const DUMMY_REVERTED_FUNCTION_INVOCATION: &FunctionInvocation = &FunctionInvocation { - call_type: Some(pathfinder_executor::types::CallType::Call), - calldata: vec![], - caller_address: felt!("0x0"), - class_hash: Some(felt!("0x0")), - entry_point_type: Some(pathfinder_executor::types::EntryPointType::L1Handler), - events: vec![], - contract_address: contract_address!("0x0"), - selector: Some(entry_point!("0x0").0), - messages: vec![], - result: vec![], - execution_resources: pathfinder_executor::types::InnerCallExecutionResources { - l1_gas: 0, - l2_gas: 0, - }, - internal_calls: vec![], - computation_resources: pathfinder_executor::types::ComputationResources { - steps: 0, - memory_holes: 0, - range_check_builtin_applications: 0, - pedersen_builtin_applications: 0, - poseidon_builtin_applications: 0, - ec_op_builtin_applications: 0, - ecdsa_builtin_applications: 0, - bitwise_builtin_applications: 0, - keccak_builtin_applications: 0, - segment_arena_builtin: 0, - }, - is_reverted: true, -}; - #[derive(Debug)] pub struct TransactionTrace { pub trace: pathfinder_executor::types::TransactionTrace, @@ -72,12 +34,10 @@ impl crate::dto::SerializeForVersion for TransactionTrace { if self.include_state_diff { serializer.serialize_field("state_diff", &trace.state_diff)?; } - if serializer.version > RpcVersion::V06 { - serializer.serialize_field( - "execution_resources", - &trace.execution_info.execution_resources, - )?; - } + serializer.serialize_field( + "execution_resources", + &trace.execution_info.execution_resources, + )?; } pathfinder_executor::types::TransactionTrace::DeployAccount(trace) => { serializer.serialize_field("type", &"DEPLOY_ACCOUNT")?; @@ -104,12 +64,10 @@ impl crate::dto::SerializeForVersion for TransactionTrace { if self.include_state_diff { serializer.serialize_field("state_diff", &trace.state_diff)?; } - if serializer.version > RpcVersion::V06 { - serializer.serialize_field( - "execution_resources", - &trace.execution_info.execution_resources, - )?; - } + serializer.serialize_field( + "execution_resources", + &trace.execution_info.execution_resources, + )?; } pathfinder_executor::types::TransactionTrace::Invoke(trace) => { serializer.serialize_field("type", &"INVOKE")?; @@ -128,41 +86,24 @@ impl crate::dto::SerializeForVersion for TransactionTrace { if self.include_state_diff { serializer.serialize_field("state_diff", &trace.state_diff)?; } - if serializer.version > RpcVersion::V06 { - serializer.serialize_field( - "execution_resources", - &trace.execution_info.execution_resources, - )?; - } + serializer.serialize_field( + "execution_resources", + &trace.execution_info.execution_resources, + )?; } pathfinder_executor::types::TransactionTrace::L1Handler(trace) => { serializer.serialize_field("type", &"L1_HANDLER")?; - if serializer.version < RpcVersion::V09 { - if let RevertibleFunctionInvocation::FunctionInvocation(Some(fi)) = - &trace.execution_info.function_invocation - { - serializer.serialize_field("function_invocation", &fi)?; - } else { - serializer.serialize_field( - "function_invocation", - &DUMMY_REVERTED_FUNCTION_INVOCATION, - )?; - } - } else { - serializer.serialize_field( - "function_invocation", - &trace.execution_info.function_invocation, - )?; - } + serializer.serialize_field( + "function_invocation", + &trace.execution_info.function_invocation, + )?; if self.include_state_diff { serializer.serialize_field("state_diff", &trace.state_diff)?; } - if serializer.version > RpcVersion::V06 { - serializer.serialize_field( - "execution_resources", - &trace.execution_info.execution_resources, - )?; - } + serializer.serialize_field( + "execution_resources", + &trace.execution_info.execution_resources, + )?; } } serializer.end() @@ -239,18 +180,11 @@ impl crate::dto::SerializeForVersion for &FunctionInvocation { serializer.serialize_iter("calldata", self.calldata.len(), &mut self.calldata.iter())?; serializer.serialize_iter("messages", self.messages.len(), &mut self.messages.iter())?; serializer.serialize_iter("result", self.result.len(), &mut self.result.iter())?; - if serializer.version >= RpcVersion::V08 { - serializer.serialize_field( - "execution_resources", - &InnerCallExecutionResources(&self.execution_resources), - )?; - serializer.serialize_field("is_reverted", &self.is_reverted)?; - } else { - serializer.serialize_field( - "execution_resources", - &ComputationResources(&self.computation_resources), - )?; - } + serializer.serialize_field( + "execution_resources", + &InnerCallExecutionResources(&self.execution_resources), + )?; + serializer.serialize_field("is_reverted", &self.is_reverted)?; serializer.end() } } @@ -584,14 +518,9 @@ impl crate::dto::SerializeForVersion for pathfinder_executor::types::ExecutionRe serializer: crate::dto::Serializer, ) -> Result { let mut serializer = serializer.serialize_struct()?; - if serializer.version >= RpcVersion::V08 { - serializer.serialize_field("l1_gas", &self.l1_gas)?; - serializer.serialize_field("l1_data_gas", &self.l1_data_gas)?; - serializer.serialize_field("l2_gas", &self.l2_gas)?; - } else { - serializer.flatten(&ComputationResources(&self.computation_resources))?; - serializer.serialize_field("data_availability", &self.data_availability)?; - } + serializer.serialize_field("l1_gas", &self.l1_gas)?; + serializer.serialize_field("l1_data_gas", &self.l1_data_gas)?; + serializer.serialize_field("l2_gas", &self.l2_gas)?; serializer.end() } } diff --git a/crates/rpc/src/dto/transaction.rs b/crates/rpc/src/dto/transaction.rs index fda4e08084..89f01b7ba2 100644 --- a/crates/rpc/src/dto/transaction.rs +++ b/crates/rpc/src/dto/transaction.rs @@ -232,29 +232,22 @@ impl SerializeForVersion for pathfinder_common::transaction::ResourceBounds { let mut serializer = serializer.serialize_struct()?; serializer.serialize_field("l1_gas", &self.l1_gas)?; serializer.serialize_field("l2_gas", &self.l2_gas)?; - if serializer.version >= RpcVersion::V08 { - // `l1_data_gas` is serialized as (0, 0) in v0.8+ even if it's not set - // See https://github.com/equilibriumco/pathfinder/issues/2571 - serializer.serialize_field("l1_data_gas", &self.l1_data_gas.unwrap_or_default())?; - } + // `l1_data_gas` is serialized as (0, 0) even if it's not set + // See https://github.com/equilibriumco/pathfinder/issues/2571 + serializer.serialize_field("l1_data_gas", &self.l1_data_gas.unwrap_or_default())?; serializer.end() } } impl DeserializeForVersion for pathfinder_common::transaction::ResourceBounds { fn deserialize(value: crate::dto::Value) -> Result { - let version = value.version; value.deserialize_map(|value| { Ok(Self { l1_gas: value.deserialize("l1_gas")?, l2_gas: value.deserialize("l2_gas")?, - l1_data_gas: if version >= RpcVersion::V08 { - // `l1_data_gas` is *required* in v0.8+ - // See https://github.com/equilibriumco/pathfinder/issues/2571 - Some(value.deserialize("l1_data_gas")?) - } else { - None - }, + // `l1_data_gas` is *required* + // See https://github.com/equilibriumco/pathfinder/issues/2571 + l1_data_gas: Some(value.deserialize("l1_data_gas")?), }) }) } @@ -430,7 +423,7 @@ mod tests { }); let result = (uut, false) .serialize(Serializer { - version: RpcVersion::V07, + version: RpcVersion::V09, }) .unwrap(); @@ -465,7 +458,7 @@ mod tests { }); let result = (uut, false) .serialize(Serializer { - version: RpcVersion::V07, + version: RpcVersion::V09, }) .unwrap(); @@ -503,7 +496,7 @@ mod tests { }); let result = (uut, false) .serialize(Serializer { - version: RpcVersion::V07, + version: RpcVersion::V09, }) .unwrap(); @@ -559,6 +552,10 @@ mod tests { "l2_gas": { "max_amount": "0x0", "max_price_per_unit": "0x0", + }, + "l1_data_gas": { + "max_amount": "0x0", + "max_price_per_unit": "0x0", } }, "tip": "0x5", @@ -567,7 +564,7 @@ mod tests { }); let result = (uut, false) .serialize(Serializer { - version: RpcVersion::V07, + version: RpcVersion::V09, }) .unwrap(); @@ -600,7 +597,7 @@ mod tests { }); let result = (uut, false) .serialize(Serializer { - version: RpcVersion::V07, + version: RpcVersion::V09, }) .unwrap(); @@ -639,7 +636,7 @@ mod tests { }); let result = (uut, false) .serialize(Serializer { - version: RpcVersion::V07, + version: RpcVersion::V09, }) .unwrap(); @@ -695,6 +692,10 @@ mod tests { "l2_gas": { "max_amount": "0x0", "max_price_per_unit": "0x0", + }, + "l1_data_gas": { + "max_amount": "0x0", + "max_price_per_unit": "0x0", } }, "tip": "0x5", @@ -702,7 +703,7 @@ mod tests { }); let result = (uut, false) .serialize(Serializer { - version: RpcVersion::V07, + version: RpcVersion::V09, }) .unwrap(); @@ -739,7 +740,7 @@ mod tests { }); let result = (uut, false) .serialize(Serializer { - version: RpcVersion::V07, + version: RpcVersion::V09, }) .unwrap(); @@ -775,7 +776,7 @@ mod tests { }); let result = (uut, false) .serialize(Serializer { - version: RpcVersion::V07, + version: RpcVersion::V09, }) .unwrap(); @@ -830,6 +831,10 @@ mod tests { "l2_gas": { "max_amount": "0x0", "max_price_per_unit": "0x0", + }, + "l1_data_gas": { + "max_amount": "0x0", + "max_price_per_unit": "0x0", } }, "tip": "0x5", @@ -838,7 +843,7 @@ mod tests { }); let result = (uut, false) .serialize(Serializer { - version: RpcVersion::V07, + version: RpcVersion::V09, }) .unwrap(); @@ -869,7 +874,7 @@ mod tests { }); let result = (uut, false) .serialize(Serializer { - version: RpcVersion::V07, + version: RpcVersion::V09, }) .unwrap(); @@ -896,39 +901,7 @@ mod tests { pretty_assertions_sorted::assert_eq!( resource_bounds - .serialize(Serializer::new(RpcVersion::V06)) - .unwrap(), - json!({ - "l1_gas": { - "max_amount": "0x1", - "max_price_per_unit": "0x2", - }, - "l2_gas": { - "max_amount": "0x3", - "max_price_per_unit": "0x4", - }, - }) - ); - - pretty_assertions_sorted::assert_eq!( - resource_bounds - .serialize(Serializer::new(RpcVersion::V07)) - .unwrap(), - json!({ - "l1_gas": { - "max_amount": "0x1", - "max_price_per_unit": "0x2", - }, - "l2_gas": { - "max_amount": "0x3", - "max_price_per_unit": "0x4", - }, - }) - ); - - pretty_assertions_sorted::assert_eq!( - resource_bounds - .serialize(Serializer::new(RpcVersion::V08)) + .serialize(Serializer::new(RpcVersion::V09)) .unwrap(), json!({ "l1_gas": { diff --git a/crates/rpc/src/error.rs b/crates/rpc/src/error.rs index 23ba7c9795..c4f435365f 100644 --- a/crates/rpc/src/error.rs +++ b/crates/rpc/src/error.rs @@ -128,20 +128,14 @@ pub enum ApplicationError { } impl ApplicationError { - pub fn code(&self, version: RpcVersion) -> i32 { + pub fn code(&self, _version: RpcVersion) -> i32 { match self { // Taken from the official starknet json rpc api. // https://github.com/starkware-libs/starknet-specs ApplicationError::FailedToReceiveTxn => 1, ApplicationError::NoTraceAvailable(_) => 10, ApplicationError::ContractNotFound => 20, - ApplicationError::EntrypointNotFound => { - if version >= RpcVersion::V08 { - 21 - } else { - -32603 /* Custom - new code not available */ - } - } + ApplicationError::EntrypointNotFound => 21, ApplicationError::BlockNotFound => 24, ApplicationError::InvalidTxnHash => 25, ApplicationError::InvalidBlockHash => 26, @@ -187,27 +181,11 @@ impl ApplicationError { } } - pub fn message(&self, version: RpcVersion) -> String { - match self { - ApplicationError::EntrypointNotFound => { - if version >= RpcVersion::V08 { - self.to_string() - } else { - "Invalid message selector".to_string() - } - } - ApplicationError::InsufficientResourcesForValidate => match version { - RpcVersion::V06 | RpcVersion::V07 => "Max fee is smaller than the minimal \ - transaction cost (validation plus fee \ - transfer)" - .to_string(), - _ => self.to_string(), - }, - _ => self.to_string(), - } + pub fn message(&self, _version: RpcVersion) -> String { + self.to_string() } - pub fn data(&self, version: RpcVersion) -> Option { + pub fn data(&self, _version: RpcVersion) -> Option { // We purposefully don't use a catch-all branch to force us to update // here whenever a new variant is added. This will prevent adding a stateful // error variant but forgetting to forward its data. @@ -226,20 +204,11 @@ impl ApplicationError { ApplicationError::InvalidContinuationToken => None, ApplicationError::InvalidContractClass => None, ApplicationError::ClassAlreadyDeclared => None, - ApplicationError::InvalidTransactionNonce { data } => { - if version >= RpcVersion::V09 { - Some(json!(data)) - } else { - None - } - } + ApplicationError::InvalidTransactionNonce { data } => Some(json!(data)), ApplicationError::InsufficientResourcesForValidate => None, ApplicationError::InsufficientAccountBalance => None, ApplicationError::ValidationFailure => None, - ApplicationError::CompilationFailed { data } => match version { - RpcVersion::V06 | RpcVersion::V07 => None, - _ => Some(json!(data)), - }, + ApplicationError::CompilationFailed { data } => Some(json!(data)), ApplicationError::ContractClassSizeIsTooLarge => None, ApplicationError::NonAccount => None, ApplicationError::DuplicateTransaction => None, @@ -260,21 +229,14 @@ impl ApplicationError { })), ApplicationError::TransactionExecutionError { transaction_index, - error, + error: _, error_stack, } => { - if version >= RpcVersion::V08 { - let error_stack = error_stack_frames_to_json(&error_stack.0); - Some(json!({ - "transaction_index": transaction_index, - "execution_error": error_stack, - })) - } else { - Some(json!({ - "transaction_index": transaction_index, - "execution_error": error, - })) - } + let error_stack = error_stack_frames_to_json(&error_stack.0); + Some(json!({ + "transaction_index": transaction_index, + "execution_error": error_stack, + })) } ApplicationError::Internal(_) => None, ApplicationError::Custom(cause) => { @@ -291,19 +253,13 @@ impl ApplicationError { "error": error, })), ApplicationError::ContractError { - revert_error, + revert_error: _, revert_error_stack, } => { - if version >= RpcVersion::V08 { - let revert_error_stack = error_stack_frames_to_json(&revert_error_stack.0); - Some(json!({ - "revert_error": revert_error_stack - })) - } else { - Some(json!({ - "revert_error": revert_error - })) - } + let revert_error_stack = error_stack_frames_to_json(&revert_error_stack.0); + Some(json!({ + "revert_error": revert_error_stack + })) } ApplicationError::TooManyKeysInFilter { limit, requested } => Some(json!({ "limit": limit, diff --git a/crates/rpc/src/jsonrpc/response.rs b/crates/rpc/src/jsonrpc/response.rs index 7782ee7d4a..9dcdfcca65 100644 --- a/crates/rpc/src/jsonrpc/response.rs +++ b/crates/rpc/src/jsonrpc/response.rs @@ -155,20 +155,20 @@ mod tests { let response = RpcResponse { output: Err(RpcError::InvalidParams(parsing_err.clone())), id: RequestId::Number(1), - version: RpcVersion::V07, + version: RpcVersion::V09, }; let parsing_err = RpcError::InvalidParams(parsing_err); let serialized = response - .serialize(crate::dto::Serializer::new(RpcVersion::V07)) + .serialize(crate::dto::Serializer::new(RpcVersion::V09)) .unwrap(); let expected = json!({ "jsonrpc": "2.0", "error": { - "code": parsing_err.code(RpcVersion::V07), - "message": parsing_err.message(RpcVersion::V07), - "data": parsing_err.data(RpcVersion::V07), + "code": parsing_err.code(RpcVersion::V09), + "message": parsing_err.message(RpcVersion::V09), + "data": parsing_err.data(RpcVersion::V09), }, "id": 1, }); @@ -181,9 +181,9 @@ mod tests { let serialized = RpcResponse { output: Ok(Value::String("foobar".to_owned())), id: RequestId::Number(1), - version: RpcVersion::V07, + version: RpcVersion::V09, } - .serialize(crate::dto::Serializer::new(RpcVersion::V07)) + .serialize(crate::dto::Serializer::new(RpcVersion::V09)) .unwrap(); let expected = json!({ diff --git a/crates/rpc/src/jsonrpc/router/subscription.rs b/crates/rpc/src/jsonrpc/router/subscription.rs index d9d54bdd40..1d0dc1d56f 100644 --- a/crates/rpc/src/jsonrpc/router/subscription.rs +++ b/crates/rpc/src/jsonrpc/router/subscription.rs @@ -1509,7 +1509,7 @@ mod tests { .with_pending_data_cache(pending_data_cache.clone()) .with_websockets(WebsocketContext::for_test(websocket_history)); - RpcRouter::builder(crate::RpcVersion::V08) + RpcRouter::builder(crate::RpcVersion::V09) .register("test", endpoint) .build(ctx) } diff --git a/crates/rpc/src/method.rs b/crates/rpc/src/method.rs index 2a544d96ab..c6c69d2a74 100644 --- a/crates/rpc/src/method.rs +++ b/crates/rpc/src/method.rs @@ -34,15 +34,11 @@ pub mod subscribe_events; pub mod subscribe_new_heads; pub mod subscribe_new_transaction_receipts; pub mod subscribe_new_transactions; -pub mod subscribe_pending_transactions; pub mod subscribe_transaction_status; pub mod syncing; pub mod trace_block_transactions; pub mod trace_transaction; -pub use add_declare_transaction::add_declare_transaction; -pub use add_deploy_account_transaction::add_deploy_account_transaction; -pub use add_invoke_transaction::add_invoke_transaction; pub use block_hash_and_number::block_hash_and_number; pub use block_number::block_number; pub use call::call; diff --git a/crates/rpc/src/method/add_declare_transaction.rs b/crates/rpc/src/method/add_declare_transaction.rs index 7528e06237..fb803457ef 100644 --- a/crates/rpc/src/method/add_declare_transaction.rs +++ b/crates/rpc/src/method/add_declare_transaction.rs @@ -566,7 +566,7 @@ mod tests { "contract_class": CONTRACT_CLASS.clone(), "sender_address": "0x1" }]); - let input = Input::deserialize(crate::dto::Value::new(positional, RpcVersion::V07)) + let input = Input::deserialize(crate::dto::Value::new(positional, RpcVersion::V09)) .unwrap(); let expected = Input { declare_transaction: test_declare_txn(), @@ -590,7 +590,7 @@ mod tests { "token": "token" }); let input = - Input::deserialize(crate::dto::Value::new(named, RpcVersion::V07)).unwrap(); + Input::deserialize(crate::dto::Value::new(named, RpcVersion::V09)).unwrap(); let expected = Input { declare_transaction: test_declare_txn(), token: Some("token".to_owned()), @@ -617,7 +617,7 @@ mod tests { let error = AddDeclareTransactionError::from(starknet_error); let error = crate::error::ApplicationError::from(error); let error = crate::jsonrpc::RpcError::from(error); - let error = error.serialize(Serializer::new(RpcVersion::V07)).unwrap(); + let error = error.serialize(Serializer::new(RpcVersion::V09)).unwrap(); let expected = json!({ "code": 63, @@ -664,7 +664,7 @@ mod tests { "compiled_class_hash": "0x1" }]); - let input = Input::deserialize(crate::dto::Value::new(positional, RpcVersion::V07)) + let input = Input::deserialize(crate::dto::Value::new(positional, RpcVersion::V09)) .unwrap(); let expected = Input { declare_transaction: test_declare_txn(), @@ -690,7 +690,7 @@ mod tests { }); let input = - Input::deserialize(crate::dto::Value::new(named, RpcVersion::V07)).unwrap(); + Input::deserialize(crate::dto::Value::new(named, RpcVersion::V09)).unwrap(); let expected = Input { declare_transaction: test_declare_txn(), token: Some("token".to_owned()), diff --git a/crates/rpc/src/method/add_deploy_account_transaction.rs b/crates/rpc/src/method/add_deploy_account_transaction.rs index 51fa6da26b..2159b8bab1 100644 --- a/crates/rpc/src/method/add_deploy_account_transaction.rs +++ b/crates/rpc/src/method/add_deploy_account_transaction.rs @@ -370,7 +370,7 @@ mod tests { let json: serde_json::Value = serde_json::from_str(&format!("{{\"deploy_account_transaction\":{INPUT_JSON}}}")) .unwrap(); - let input: Input = crate::dto::Value::new(json, crate::RpcVersion::V07) + let input: Input = crate::dto::Value::new(json, crate::RpcVersion::V09) .deserialize() .unwrap(); @@ -380,7 +380,7 @@ mod tests { #[tokio::test] async fn test_parse_input_positional() { let json: serde_json::Value = serde_json::from_str(&format!("[{INPUT_JSON}]")).unwrap(); - let input: Input = crate::dto::Value::new(json, crate::RpcVersion::V07) + let input: Input = crate::dto::Value::new(json, crate::RpcVersion::V09) .deserialize() .unwrap(); @@ -401,7 +401,7 @@ mod tests { let error = crate::error::ApplicationError::from(error); let error = crate::jsonrpc::RpcError::from(error); let error = error - .serialize(Serializer::new(crate::RpcVersion::V07)) + .serialize(Serializer::new(crate::RpcVersion::V09)) .unwrap(); let expected = serde_json::json!({ diff --git a/crates/rpc/src/method/add_invoke_transaction.rs b/crates/rpc/src/method/add_invoke_transaction.rs index 1bd1630945..5ec3a0a00f 100644 --- a/crates/rpc/src/method/add_invoke_transaction.rs +++ b/crates/rpc/src/method/add_invoke_transaction.rs @@ -418,7 +418,7 @@ mod tests { ]); let input = - Input::deserialize(crate::dto::Value::new(positional, crate::RpcVersion::V07)) + Input::deserialize(crate::dto::Value::new(positional, crate::RpcVersion::V09)) .unwrap(); let expected = Input { invoke_transaction: test_invoke_txn(), @@ -453,7 +453,7 @@ mod tests { }); let input = - Input::deserialize(crate::dto::Value::new(named, crate::RpcVersion::V07)).unwrap(); + Input::deserialize(crate::dto::Value::new(named, crate::RpcVersion::V09)).unwrap(); let expected = Input { invoke_transaction: test_invoke_txn(), }; @@ -478,7 +478,7 @@ mod tests { let error = crate::error::ApplicationError::from(error); let error = crate::jsonrpc::RpcError::from(error); let error = error - .serialize(Serializer::new(crate::RpcVersion::V07)) + .serialize(Serializer::new(crate::RpcVersion::V09)) .unwrap(); let expected = json!({ diff --git a/crates/rpc/src/method/call.rs b/crates/rpc/src/method/call.rs index b71e4cd222..ea189c8ab0 100644 --- a/crates/rpc/src/method/call.rs +++ b/crates/rpc/src/method/call.rs @@ -217,7 +217,7 @@ mod tests { { "block_hash": "0xbbbbbbbb" } ]); - let positional = crate::dto::Value::new(positional_json, crate::RpcVersion::V08); + let positional = crate::dto::Value::new(positional_json, crate::RpcVersion::V09); let input = Input::deserialize(positional).unwrap(); let expected = Input { @@ -238,7 +238,7 @@ mod tests { "block_id": { "block_hash": "0xbbbbbbbb" } }); - let named = crate::dto::Value::new(named_json, crate::RpcVersion::V08); + let named = crate::dto::Value::new(named_json, crate::RpcVersion::V09); let input = Input::deserialize(named).unwrap(); let expected = Input { @@ -482,13 +482,6 @@ mod tests { .await .unwrap(); assert_eq!(result, Output(vec![CallResultValue(storage_value.0)])); - - // We expect that JSON-RPC versions older than 0.9 do _not_ use the - // pre-confirmed block. - let error = call(context.clone(), input.clone(), RpcVersion::V08) - .await - .unwrap_err(); - assert_matches!(error, CallError::ContractNotFound); } fn pre_confirmed_data_with_update( diff --git a/crates/rpc/src/method/estimate_fee.rs b/crates/rpc/src/method/estimate_fee.rs index 431f9caa9e..9e2d295397 100644 --- a/crates/rpc/src/method/estimate_fee.rs +++ b/crates/rpc/src/method/estimate_fee.rs @@ -406,9 +406,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -453,9 +450,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -500,9 +494,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -549,9 +540,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -765,9 +753,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -820,9 +805,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -875,9 +857,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -1183,7 +1162,7 @@ mod tests { let output_json = result .serialize(Serializer { - version: RpcVersion::V08, + version: RpcVersion::V09, }) .unwrap(); let expected_json = serde_json::json!([ @@ -1244,7 +1223,7 @@ mod tests { let output_json = result .serialize(Serializer { - version: RpcVersion::V08, + version: RpcVersion::V09, }) .unwrap(); let expected_json = serde_json::json!([ diff --git a/crates/rpc/src/method/estimate_message_fee.rs b/crates/rpc/src/method/estimate_message_fee.rs index 994b6231d4..b71eb29ee5 100644 --- a/crates/rpc/src/method/estimate_message_fee.rs +++ b/crates/rpc/src/method/estimate_message_fee.rs @@ -377,9 +377,6 @@ mod tests { const RPC_VERSION: RpcVersion = RpcVersion::V09; #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -439,9 +436,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[tokio::test] async fn contract_not_found_late(#[case] version: RpcVersion) { diff --git a/crates/rpc/src/method/get_block_with_receipts.rs b/crates/rpc/src/method/get_block_with_receipts.rs index ec8f6f088b..1bc9281069 100644 --- a/crates/rpc/src/method/get_block_with_receipts.rs +++ b/crates/rpc/src/method/get_block_with_receipts.rs @@ -21,9 +21,6 @@ pub enum Output { }, Pending { block: Arc, - // for backward compatibility with pre 0.9 versions we need to - // mimic the structure of the "pending" block, which included parent block hash - parent_hash: Option, include_proof_facts: bool, }, } @@ -84,22 +81,8 @@ pub async fn get_block_with_receipts( BlockId::PreConfirmed => { let pending = context.pending_data.get(&db, rpc_version)?; - let parent_hash = (rpc_version < RpcVersion::V09) - .then(|| { - // versions before 0.9 don't have access to pre-confirmed data - // so we never need to worry about parent hash coming from pre-latest - Ok::<_, anyhow::Error>( - db.block_header(pathfinder_common::BlockId::Latest) - .context("Querying latest block header")? - .unwrap_or_default() - .hash, - ) - }) - .transpose()?; - return Ok(Output::Pending { block: pending.pending_block(), - parent_hash, include_proof_facts, }); } @@ -176,10 +159,9 @@ impl crate::dto::SerializeForVersion for Output { } Output::Pending { block, - parent_hash, include_proof_facts, } => { - serializer.flatten(&(parent_hash, &block.pre_confirmed))?; + serializer.flatten(&block.pre_confirmed)?; let transactions = block.transactions(); serializer.serialize_iter( "transactions", @@ -216,23 +198,7 @@ impl crate::dto::SerializeForVersion for TransactionWithReceipt<'_> { serializer: crate::dto::Serializer, ) -> Result { let mut serializer = serializer.serialize_struct()?; - match serializer.version { - crate::RpcVersion::V07 => { - serializer.serialize_field( - "transaction", - &crate::dto::TransactionWithHash { - transaction: self.transaction, - include_proof_facts: self.include_proof_facts, - }, - )?; - } - _ => { - serializer.serialize_field( - "transaction", - &(self.transaction, self.include_proof_facts), - )?; - } - } + serializer.serialize_field("transaction", &(self.transaction, self.include_proof_facts))?; serializer.serialize_field( "receipt", &crate::dto::TxnReceipt { @@ -305,9 +271,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -328,9 +291,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] diff --git a/crates/rpc/src/method/get_block_with_tx_hashes.rs b/crates/rpc/src/method/get_block_with_tx_hashes.rs index 8511734e76..1fa49cb50b 100644 --- a/crates/rpc/src/method/get_block_with_tx_hashes.rs +++ b/crates/rpc/src/method/get_block_with_tx_hashes.rs @@ -28,9 +28,6 @@ impl crate::dto::DeserializeForVersion for Input { pub enum Output { Pending { block: Arc, - // for backward compatibility with pre 0.9 versions we need to - // mimic the structure of the "pending" block, which included parent block hash - parent_hash: Option, transactions: Vec, }, Full { @@ -68,23 +65,8 @@ pub async fn get_block_with_tx_hashes( .map(|t| t.hash) .collect(); - let parent_hash = (rpc_version < RpcVersion::V09) - .then(|| { - // versions before 0.9 don't have access to pre-confirmed data - // so we never need to worry about parent hash coming from pre-latest - Ok::<_, anyhow::Error>( - transaction - .block_header(pathfinder_common::BlockId::Latest) - .context("Querying latest block header")? - .unwrap_or_default() - .hash, - ) - }) - .transpose()?; - return Ok(Output::Pending { block: pending.pending_block(), - parent_hash, transactions, }); } @@ -123,11 +105,10 @@ impl crate::dto::SerializeForVersion for Output { match self { Output::Pending { block, - parent_hash, transactions, } => { let mut serializer = serializer.serialize_struct()?; - serializer.flatten(&(parent_hash, &block.pre_confirmed))?; + serializer.flatten(&block.pre_confirmed)?; serializer.serialize_iter( "transactions", transactions.len(), @@ -190,9 +171,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -216,9 +194,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] diff --git a/crates/rpc/src/method/get_block_with_txs.rs b/crates/rpc/src/method/get_block_with_txs.rs index b5feac9617..83e2706ea4 100644 --- a/crates/rpc/src/method/get_block_with_txs.rs +++ b/crates/rpc/src/method/get_block_with_txs.rs @@ -44,9 +44,6 @@ impl crate::dto::DeserializeForVersion for Input { pub enum Output { Pending { block: Arc, - // for backward compatibility with pre 0.9 versions we need to - // mimic the structure of the "pending" block, which included parent block hash - parent_hash: Option, transactions: Vec, include_proof_facts: bool, }, @@ -89,23 +86,8 @@ pub async fn get_block_with_txs( let transactions = pending.pre_confirmed_transactions().to_vec(); - let parent_hash = (rpc_version < RpcVersion::V09) - .then(|| { - // versions before 0.9 don't have access to pre-confirmed data - // so we never need to worry about parent hash coming from pre-latest - Ok::<_, anyhow::Error>( - transaction - .block_header(pathfinder_common::BlockId::Latest) - .context("Querying latest block header")? - .unwrap_or_default() - .hash, - ) - }) - .transpose()?; - return Ok(Output::Pending { block: pending.pending_block(), - parent_hash, transactions, include_proof_facts, }); @@ -148,12 +130,11 @@ impl crate::dto::SerializeForVersion for Output { match self { Output::Pending { block, - parent_hash, transactions, include_proof_facts, } => { let mut serializer = serializer.serialize_struct()?; - serializer.flatten(&(parent_hash, &block.pre_confirmed))?; + serializer.flatten(&block.pre_confirmed)?; serializer.serialize_iter( "transactions", transactions.len(), @@ -256,9 +237,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -281,9 +259,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] diff --git a/crates/rpc/src/method/get_class.rs b/crates/rpc/src/method/get_class.rs index b5080a3d57..0377df2df2 100644 --- a/crates/rpc/src/method/get_class.rs +++ b/crates/rpc/src/method/get_class.rs @@ -125,7 +125,7 @@ mod tests { ]); let input = - Input::deserialize(crate::dto::Value::new(positional, RpcVersion::V07)).unwrap(); + Input::deserialize(crate::dto::Value::new(positional, RpcVersion::V09)).unwrap(); let expected = Input { block_id: block_hash!("0xabcde").into(), class_hash: class_hash!("0x12345"), @@ -140,7 +140,7 @@ mod tests { "class_hash": "0x12345" }); - let input = Input::deserialize(crate::dto::Value::new(named, RpcVersion::V07)).unwrap(); + let input = Input::deserialize(crate::dto::Value::new(named, RpcVersion::V09)).unwrap(); let expected = Input { block_id: block_hash!("0xabcde").into(), class_hash: class_hash!("0x12345"), @@ -207,9 +207,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[tokio::test] async fn pre_latest_and_pre_confirmed(#[case] version: RpcVersion) { @@ -225,13 +222,7 @@ mod tests { version, ) .await; - if version >= RpcVersion::V09 { - r.unwrap(); - } else { - // JSON-RPC version before 0.9 are expected to ignore the pre-latest block. - let err = r.unwrap_err(); - assert_matches!(err, Error::ClassHashNotFound); - } + r.unwrap(); let valid_pre_confirmed = class_hash_bytes!(b"preconfirmed class 0 hash"); let r = super::get_class( @@ -243,13 +234,7 @@ mod tests { version, ) .await; - if version >= RpcVersion::V09 { - r.unwrap(); - } else { - // JSON-RPC version before 0.9 are expected to ignore the pre-confirmed block. - let err = r.unwrap_err(); - assert_matches!(err, Error::ClassHashNotFound); - } + r.unwrap(); } #[tokio::test] diff --git a/crates/rpc/src/method/get_class_at.rs b/crates/rpc/src/method/get_class_at.rs index bf4fb51c32..ed24ef0739 100644 --- a/crates/rpc/src/method/get_class_at.rs +++ b/crates/rpc/src/method/get_class_at.rs @@ -131,7 +131,7 @@ mod tests { ]); let input = - Input::deserialize(crate::dto::Value::new(positional, RpcVersion::V07)).unwrap(); + Input::deserialize(crate::dto::Value::new(positional, RpcVersion::V09)).unwrap(); let expected = Input { block_id: block_hash!("0xabcde").into(), contract_address: contract_address!("0x12345"), @@ -146,7 +146,7 @@ mod tests { "contract_address": "0x12345" }); - let input = Input::deserialize(crate::dto::Value::new(named, RpcVersion::V07)).unwrap(); + let input = Input::deserialize(crate::dto::Value::new(named, RpcVersion::V09)).unwrap(); let expected = Input { block_id: block_hash!("0xabcde").into(), contract_address: contract_address!("0x12345"), @@ -158,9 +158,6 @@ mod tests { const RPC_VERSION: RpcVersion = RpcVersion::V09; #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -181,9 +178,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -228,9 +222,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -242,25 +233,13 @@ mod tests { contract_address: contract_address_bytes!(b"prelatest contract 0 address"), }; let r = get_class_at(context.clone(), input, version).await; - if version >= RpcVersion::V09 { - r.unwrap(); - } else { - // JSON-RPC version before 0.9 are expected to ignore the pre-latest block. - let err = r.unwrap_err(); - assert_matches!(err, Error::ContractNotFound); - } + r.unwrap(); let input = Input { block_id: BlockId::PreConfirmed, contract_address: contract_address_bytes!(b"preconfirmed contract 0 address"), }; let r = get_class_at(context, input, version).await; - if version >= RpcVersion::V09 { - r.unwrap(); - } else { - // JSON-RPC version before 0.9 are expected to ignore the pre-confirmed block. - let err = r.unwrap_err(); - assert_matches!(err, Error::ContractNotFound); - } + r.unwrap(); } } diff --git a/crates/rpc/src/method/get_class_hash_at.rs b/crates/rpc/src/method/get_class_hash_at.rs index a361eb19ea..2732394f84 100644 --- a/crates/rpc/src/method/get_class_hash_at.rs +++ b/crates/rpc/src/method/get_class_hash_at.rs @@ -107,7 +107,7 @@ mod tests { ]); let input = - Input::deserialize(crate::dto::Value::new(positional, RpcVersion::V07)).unwrap(); + Input::deserialize(crate::dto::Value::new(positional, RpcVersion::V09)).unwrap(); let expected = Input { block_id: block_hash!("0xabcde").into(), contract_address: contract_address!("0x12345"), @@ -122,7 +122,7 @@ mod tests { "contract_address": "0x12345" }); - let input = Input::deserialize(crate::dto::Value::new(named, RpcVersion::V07)).unwrap(); + let input = Input::deserialize(crate::dto::Value::new(named, RpcVersion::V09)).unwrap(); let expected = Input { block_id: block_hash!("0xabcde").into(), contract_address: contract_address!("0x12345"), @@ -276,9 +276,6 @@ mod tests { use crate::dto::{SerializeForVersion, Serializer}; #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[tokio::test] async fn json_rpc_latest(#[case] version: RpcVersion) { @@ -298,9 +295,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[tokio::test] async fn json_rpc_pre_latest_and_pre_confirmed(#[case] version: RpcVersion) { @@ -311,34 +305,19 @@ mod tests { contract_address: contract_address_bytes!(b"prelatest contract 0 address"), }; let r = get_class_hash_at(context.clone(), input, version).await; - if version >= RpcVersion::V09 { - let hash = r.unwrap(); - assert_eq!(hash.0, class_hash_bytes!(b"prelatest class 0 hash")); - } else { - // JSON-RPC version before 0.9 are expected to ignore the pre-latest block. - let err = r.unwrap_err(); - assert_matches!(err, Error::ContractNotFound); - } + let hash = r.unwrap(); + assert_eq!(hash.0, class_hash_bytes!(b"prelatest class 0 hash")); let input = Input { block_id: BlockId::PreConfirmed, contract_address: contract_address_bytes!(b"preconfirmed contract 0 address"), }; let r = get_class_hash_at(context, input, version).await; - if version >= RpcVersion::V09 { - let hash = r.unwrap(); - assert_eq!(hash.0, class_hash_bytes!(b"preconfirmed class 0 hash")); - } else { - // JSON-RPC version before 0.9 are expected to ignore the pre-confirmed block. - let err = r.unwrap_err(); - assert_matches!(err, Error::ContractNotFound); - } + let hash = r.unwrap(); + assert_eq!(hash.0, class_hash_bytes!(b"preconfirmed class 0 hash")); } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[tokio::test] async fn json_rpc_at_block(#[case] version: RpcVersion) { diff --git a/crates/rpc/src/method/get_compiled_casm.rs b/crates/rpc/src/method/get_compiled_casm.rs index 633f235933..a81970107b 100644 --- a/crates/rpc/src/method/get_compiled_casm.rs +++ b/crates/rpc/src/method/get_compiled_casm.rs @@ -152,7 +152,7 @@ mod tests { let result = get_compiled_casm(rpc, input()).await.unwrap(); let output = crate::dto::SerializeForVersion::serialize( &result, - crate::dto::Serializer::new(crate::RpcVersion::V08), + crate::dto::Serializer::new(crate::RpcVersion::V09), ) .unwrap(); let expected_output = serde_json::to_value(expected()).unwrap(); diff --git a/crates/rpc/src/method/get_events.rs b/crates/rpc/src/method/get_events.rs index 9a829ab7ec..4e62e32813 100644 --- a/crates/rpc/src/method/get_events.rs +++ b/crates/rpc/src/method/get_events.rs @@ -801,7 +801,7 @@ mod tests { let expected = GetEventsInput { filter }; let input = - GetEventsInput::deserialize(crate::dto::Value::new(input, RpcVersion::V07)).unwrap(); + GetEventsInput::deserialize(crate::dto::Value::new(input, RpcVersion::V09)).unwrap(); assert_eq!(input, expected); } diff --git a/crates/rpc/src/method/get_messages_status.rs b/crates/rpc/src/method/get_messages_status.rs index cb222f1521..d28710245f 100644 --- a/crates/rpc/src/method/get_messages_status.rs +++ b/crates/rpc/src/method/get_messages_status.rs @@ -26,7 +26,6 @@ impl crate::dto::DeserializeForVersion for Input { #[derive(Clone, Debug)] enum FinalityStatus { Received, - Rejected, PreConfirmed, AcceptedOnL2, AcceptedOnL1, @@ -39,7 +38,6 @@ impl crate::dto::SerializeForVersion for FinalityStatus { ) -> Result { let status_str = match self { FinalityStatus::Received => "RECEIVED", - FinalityStatus::Rejected => "REJECTED", FinalityStatus::PreConfirmed => "PRE_CONFIRMED", FinalityStatus::AcceptedOnL2 => "ACCEPTED_ON_L2", FinalityStatus::AcceptedOnL1 => "ACCEPTED_ON_L1", @@ -53,7 +51,6 @@ pub struct L1HandlerTransactionStatus { transaction_hash: TransactionHash, finality_status: FinalityStatus, execution_status: Option, - failure_reason: Option, } #[derive(Debug)] @@ -93,13 +90,11 @@ pub async fn get_messages_status( use get_transaction_status::Output as TxStatus; let (finality_status, execution_status) = match status { - // Since Starknet 0.14, get_transaction_status isn't - // supposed to return Received or Rejected for L1 handler - // transactions; the cases are kept for backwards - // compatibility - more explicit error handling can be - // added if/when they actually happen. + // Since Starknet 0.14, get_transaction_status isn't supposed to return Received or + // Rejected for L1 handler transactions; the cases are kept for backwards compatibility, + // more explicit error handling can be added if/when they actually happen. Moreover + // Transaction finality status Rejected has been removed in RPC v0.9. TxStatus::Received => (FinalityStatus::Received, None), - TxStatus::Rejected { .. } => (FinalityStatus::Rejected, None), TxStatus::PreConfirmed(ref exec_status) => { (FinalityStatus::PreConfirmed, Some(exec_status.clone())) } @@ -111,12 +106,7 @@ pub async fn get_messages_status( } }; - let failure_reason = match status { - TxStatus::Rejected { error_message, .. } => error_message, - _ => None, - }; - - if rpc_version >= RpcVersion::V09 && execution_status.is_none() { + if execution_status.is_none() { continue; // Skip if execution status is not available, since it's // required for V09+ } @@ -125,7 +115,6 @@ pub async fn get_messages_status( transaction_hash: tx.calculate_hash(context.chain_id), finality_status, execution_status, - failure_reason, }); } @@ -149,10 +138,7 @@ impl crate::dto::SerializeForVersion for L1HandlerTransactionStatus { let mut serializer = serializer.serialize_struct()?; serializer.serialize_field("transaction_hash", &self.transaction_hash)?; serializer.serialize_field("finality_status", &self.finality_status)?; - if serializer.version >= RpcVersion::V09 { - serializer.serialize_optional("execution_status", self.execution_status.clone())?; - } - serializer.serialize_optional("failure_reason", self.failure_reason.as_deref())?; + serializer.serialize_optional("execution_status", self.execution_status.clone())?; serializer.end() } } diff --git a/crates/rpc/src/method/get_nonce.rs b/crates/rpc/src/method/get_nonce.rs index 3a2c09ee63..dd28863015 100644 --- a/crates/rpc/src/method/get_nonce.rs +++ b/crates/rpc/src/method/get_nonce.rs @@ -192,12 +192,6 @@ mod tests { .await .unwrap(); assert_eq!(nonce.0, contract_nonce_bytes!(b"preconfirmed nonce")); - - // JSON-RPC version before 0.9 are expected to ignore the pre-confirmed block. - let nonce = get_nonce(context, input.clone(), RpcVersion::V08) - .await - .unwrap(); - assert_eq!(nonce.0, contract_nonce!("0x10")); } #[tokio::test] @@ -214,12 +208,6 @@ mod tests { .await .unwrap(); assert_eq!(nonce.0, contract_nonce_bytes!(b"prelatest nonce")); - - // JSON-RPC version before 0.9 are expected to ignore the pre-latest block. - let err = get_nonce(context, input.clone(), RpcVersion::V08) - .await - .unwrap_err(); - assert_matches!(err, Error::ContractNotFound); } #[tokio::test] diff --git a/crates/rpc/src/method/get_state_update.rs b/crates/rpc/src/method/get_state_update.rs index 35327c43ec..736df820ec 100644 --- a/crates/rpc/src/method/get_state_update.rs +++ b/crates/rpc/src/method/get_state_update.rs @@ -158,8 +158,8 @@ mod tests { } #[rstest::rstest] - #[case::pending_by_position(json!(["pending"]), BlockId::PreConfirmed)] - #[case::pending_by_name(json!({"block_id": "pending"}), BlockId::PreConfirmed)] + #[case::pre_confirmed_by_position(json!(["pre_confirmed"]), BlockId::PreConfirmed)] + #[case::pre_confirmed_by_name(json!({"block_id": "pre_confirmed"}), BlockId::PreConfirmed)] #[case::latest_by_position(json!(["latest"]), BlockId::Latest)] #[case::latest_by_name(json!({"block_id": "latest"}), BlockId::Latest)] #[case::number_by_position(json!([{"block_number":123}]), BlockNumber::new_or_panic(123).into())] @@ -167,7 +167,7 @@ mod tests { #[case::hash_by_position(json!([{"block_hash": "0xbeef"}]), block_hash!("0xbeef").into())] #[case::hash_by_name(json!({"block_id": {"block_hash": "0xbeef"}}), block_hash!("0xbeef").into())] fn input_parsing(#[case] input: serde_json::Value, #[case] block_id: BlockId) { - let input = Input::deserialize(crate::dto::Value::new(input, RpcVersion::V07)).unwrap(); + let input = Input::deserialize(crate::dto::Value::new(input, RpcVersion::V09)).unwrap(); let expected = Input { block_id, @@ -423,16 +423,5 @@ mod tests { .unwrap() .unwrap_pending(); assert_eq!(result, expected); - - let result = get_state_update(context.clone(), input.clone(), RpcVersion::V08) - .await - .unwrap() - .unwrap_pending(); - assert_eq!( - result, - StateUpdate::default() - .with_parent_state_commitment(expected.parent_state_commitment) - .into() - ); } } diff --git a/crates/rpc/src/method/get_storage_at.rs b/crates/rpc/src/method/get_storage_at.rs index c2690e0e24..e63050a0ec 100644 --- a/crates/rpc/src/method/get_storage_at.rs +++ b/crates/rpc/src/method/get_storage_at.rs @@ -169,7 +169,7 @@ mod tests { response_flags: StorageResponseFlags::default(), }; - let input = Input::deserialize(crate::dto::Value::new(input, RpcVersion::V07)).unwrap(); + let input = Input::deserialize(crate::dto::Value::new(input, RpcVersion::V09)).unwrap(); assert_eq!(input, expected); } @@ -260,12 +260,6 @@ mod tests { result.value, storage_value_bytes!(b"preconfirmed storage value 0") ); - - // JSON-RPC version before 0.9 are expected to ignore the pre-confirmed block. - let err = get_storage_at(ctx, input, RpcVersion::V08) - .await - .unwrap_err(); - assert_matches!(err, Error::ContractNotFound); } #[tokio::test] @@ -288,12 +282,6 @@ mod tests { result.value, storage_value_bytes!(b"prelatest storage value 0") ); - - // JSON-RPC version before 0.9 are expected to ignore the pre-latest block. - let err = get_storage_at(ctx, input, RpcVersion::V08) - .await - .unwrap_err(); - assert_matches!(err, Error::ContractNotFound); } #[tokio::test] diff --git a/crates/rpc/src/method/get_storage_proof.rs b/crates/rpc/src/method/get_storage_proof.rs index ed9a937542..3c893a01fa 100644 --- a/crates/rpc/src/method/get_storage_proof.rs +++ b/crates/rpc/src/method/get_storage_proof.rs @@ -624,7 +624,7 @@ mod tests { } )] fn parsing_input(#[case] input: serde_json::Value, #[case] expected: Input) { - let input = Input::deserialize(crate::dto::Value::new(input, RpcVersion::V07)).unwrap(); + let input = Input::deserialize(crate::dto::Value::new(input, RpcVersion::V09)).unwrap(); assert_eq!(input, expected); } diff --git a/crates/rpc/src/method/get_transaction_by_hash.rs b/crates/rpc/src/method/get_transaction_by_hash.rs index 7b6bcc6c12..e42ac2da01 100644 --- a/crates/rpc/src/method/get_transaction_by_hash.rs +++ b/crates/rpc/src/method/get_transaction_by_hash.rs @@ -117,7 +117,7 @@ mod tests { fn positional_args() { let positional_json = json!(["0xdeadbeef"]); - let positional = crate::dto::Value::new(positional_json, crate::RpcVersion::V08); + let positional = crate::dto::Value::new(positional_json, crate::RpcVersion::V09); let input = Input::deserialize(positional).unwrap(); assert_eq!( @@ -135,7 +135,7 @@ mod tests { "transaction_hash": "0xdeadbeef" }); - let named = crate::dto::Value::new(named_args_json, crate::RpcVersion::V08); + let named = crate::dto::Value::new(named_args_json, crate::RpcVersion::V09); let input = Input::deserialize(named).unwrap(); assert_eq!( @@ -154,9 +154,6 @@ mod tests { use crate::RpcVersion; #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -195,9 +192,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -212,12 +206,6 @@ mod tests { match version { RpcVersion::PathfinderV01 => unreachable!(), - RpcVersion::V06 | RpcVersion::V07 | RpcVersion::V08 => { - assert_matches::assert_matches!( - result, - Err(GetTransactionByHashError::TxnHashNotFound) - ); - } RpcVersion::V09 => { let output_json = result.unwrap().serialize(Serializer { version }).unwrap(); let expected_json: serde_json::Value = serde_json::from_str(include_str!( @@ -238,9 +226,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -255,12 +240,6 @@ mod tests { match version { RpcVersion::PathfinderV01 => unreachable!(), - RpcVersion::V06 | RpcVersion::V07 | RpcVersion::V08 => { - assert_matches::assert_matches!( - result, - Err(GetTransactionByHashError::TxnHashNotFound) - ); - } RpcVersion::V09 => { let output_json = result.unwrap().serialize(Serializer { version }).unwrap(); let expected_json: serde_json::Value = serde_json::from_str(include_str!( @@ -281,9 +260,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -307,14 +283,6 @@ mod tests { }; let output = get_transaction_by_hash(context, input, version).await; - if version < RpcVersion::V09 { - assert_matches::assert_matches!( - output, - Err(GetTransactionByHashError::TxnHashNotFound) - ); - return; - } - let output_json = output.unwrap().serialize(Serializer { version }).unwrap(); crate::assert_json_matches_fixture!( diff --git a/crates/rpc/src/method/get_transaction_receipt.rs b/crates/rpc/src/method/get_transaction_receipt.rs index d49ebc338b..e99e3a344e 100644 --- a/crates/rpc/src/method/get_transaction_receipt.rs +++ b/crates/rpc/src/method/get_transaction_receipt.rs @@ -155,9 +155,6 @@ mod tests { use crate::RpcVersion; #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -198,9 +195,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -225,9 +219,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -241,9 +232,6 @@ mod tests { match version { RpcVersion::PathfinderV01 => unreachable!(), - RpcVersion::V06 | RpcVersion::V07 | RpcVersion::V08 => { - assert_matches::assert_matches!(result, Err(Error::TxnHashNotFound)); - } RpcVersion::V09 => { let output_json = result.unwrap().serialize(Serializer { version }).unwrap(); let expected_json: serde_json::Value = serde_json::from_str(include_str!( @@ -264,9 +252,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -280,9 +265,6 @@ mod tests { match version { RpcVersion::PathfinderV01 => unreachable!(), - RpcVersion::V06 | RpcVersion::V07 | RpcVersion::V08 => { - assert_matches::assert_matches!(result, Err(Error::TxnHashNotFound)); - } RpcVersion::V09 => { let output_json = result.unwrap().serialize(Serializer { version }).unwrap(); let expected_json: serde_json::Value = serde_json::from_str(include_str!( @@ -303,9 +285,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -331,11 +310,6 @@ mod tests { }; let output = get_transaction_receipt(context, input, version).await; - if version < RpcVersion::V09 { - assert_matches::assert_matches!(output, Err(Error::TxnHashNotFound)); - return; - } - let output_json = output.unwrap().serialize(Serializer { version }).unwrap(); crate::assert_json_matches_fixture!( diff --git a/crates/rpc/src/method/get_transaction_status.rs b/crates/rpc/src/method/get_transaction_status.rs index 1e93a80f3a..7dc95e5b91 100644 --- a/crates/rpc/src/method/get_transaction_status.rs +++ b/crates/rpc/src/method/get_transaction_status.rs @@ -29,10 +29,6 @@ impl crate::dto::DeserializeForVersion for Input { #[derive(Debug, PartialEq)] pub enum Output { Received, - Rejected { - // Reject error message optional for backward compatibility with gateway. - error_message: Option, - }, PreConfirmed(TxnExecutionStatus), AcceptedOnL1(TxnExecutionStatus), AcceptedOnL2(TxnExecutionStatus), @@ -130,15 +126,7 @@ pub async fn get_transaction_status( Err(Error::TxnHashNotFound) } } - (_, GatewayExecutionStatus::Rejected) => { - if rpc_version < RpcVersion::V09 { - Ok(Output::Rejected { - error_message: tx.tx_failure_reason.map(|reason| reason.error_message), - }) - } else { - Err(Error::TxnHashNotFound) - } - } + (_, GatewayExecutionStatus::Rejected) => Err(Error::TxnHashNotFound), (GatewayFinalityStatus::Received, _) => Ok(Output::Received), (GatewayFinalityStatus::AcceptedOnL1 | GatewayFinalityStatus::AcceptedOnL2, _) => { // The transaction might be accepted, but it @@ -157,7 +145,6 @@ impl Output { use crate::dto::TxnStatus; match self { Output::Received => TxnStatus::Received, - Output::Rejected { .. } => TxnStatus::Rejected, Output::PreConfirmed(_) => TxnStatus::PreConfirmed, Output::AcceptedOnL1(_) => TxnStatus::AcceptedOnL1, Output::AcceptedOnL2(_) => TxnStatus::AcceptedOnL2, @@ -166,7 +153,7 @@ impl Output { fn execution_status(&self) -> Option { match self { - Output::Received | Output::Rejected { .. } => None, + Output::Received => None, Output::PreConfirmed(x) => Some(x.clone()), Output::AcceptedOnL1(x) => Some(x.clone()), Output::AcceptedOnL2(x) => Some(x.clone()), @@ -175,7 +162,6 @@ impl Output { fn failure_reason(&self) -> Option { match self { - Output::Rejected { error_message } => error_message.clone(), Output::PreConfirmed(TxnExecutionStatus::Reverted { reason }) => reason.clone(), Output::AcceptedOnL1(TxnExecutionStatus::Reverted { reason }) => reason.clone(), Output::AcceptedOnL2(TxnExecutionStatus::Reverted { reason }) => reason.clone(), @@ -192,9 +178,7 @@ impl crate::dto::SerializeForVersion for Output { let mut serializer = serializer.serialize_struct()?; serializer.serialize_field("finality_status", &self.finality_status())?; serializer.serialize_optional("execution_status", self.execution_status())?; - if serializer.version > RpcVersion::V07 { - serializer.serialize_optional("failure_reason", self.failure_reason())?; - } + serializer.serialize_optional("failure_reason", self.failure_reason())?; serializer.end() } } @@ -212,7 +196,6 @@ mod tests { use crate::RpcVersion; #[rstest::rstest] - #[case::rejected(Output::Rejected { error_message: None }, json!({"finality_status":"REJECTED"}))] #[case::reverted(Output::Received, json!({"finality_status":"RECEIVED"}))] #[case::accepted_on_l1_succeeded( Output::AcceptedOnL1(TxnExecutionStatus::Succeeded), @@ -264,9 +247,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -291,9 +271,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -307,9 +284,6 @@ mod tests { match version { RpcVersion::PathfinderV01 => unreachable!(), - RpcVersion::V06 | RpcVersion::V07 | RpcVersion::V08 => { - assert_matches::assert_matches!(result, Err(Error::TxnHashNotFound)); - } RpcVersion::V09 => { let output_json = result.unwrap().serialize(Serializer { version }).unwrap(); let expected_json: serde_json::Value = serde_json::from_str(include_str!( @@ -330,9 +304,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -346,9 +317,6 @@ mod tests { match version { RpcVersion::PathfinderV01 => unreachable!(), - RpcVersion::V06 | RpcVersion::V07 | RpcVersion::V08 => { - assert_matches::assert_matches!(result, Err(Error::TxnHashNotFound)); - } RpcVersion::V09 => { let output_json = result.unwrap().serialize(Serializer { version }).unwrap(); let expected_json: serde_json::Value = serde_json::from_str(include_str!( @@ -380,31 +348,6 @@ mod tests { assert_matches!(status, Err(Error::TxnHashNotFound)); } - #[tokio::test] - async fn rejected_with_error_message() { - let input = Input { - // Transaction hash known to be rejected by the testnet gateway. - transaction_hash: transaction_hash!( - "0x4fef839b57a7ac72c8738dc821897cc605b5cc5aafa487e445e9282ac37ac23" - ), - }; - let context = RpcContext::for_tests(); - let status = get_transaction_status(context, input, RpcVersion::V08) - .await - .unwrap(); - - assert_eq!( - status, - Output::Rejected { - error_message: Some( - "Transaction is too big to fit a batch; Its gas_weight weights 5214072 while \ - the batch upper bound is set to 5000000.0." - .to_string() - ) - } - ); - } - #[tokio::test] async fn rejected_does_not_exist() { let input = Input { @@ -431,9 +374,6 @@ mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -459,11 +399,6 @@ mod tests { }; let status = get_transaction_status(context, input, version).await; - if version < RpcVersion::V09 { - assert_matches::assert_matches!(status, Err(Error::TxnHashNotFound)); - return; - } - let output_json = status.unwrap().serialize(Serializer { version }).unwrap(); crate::assert_json_matches_fixture!( diff --git a/crates/rpc/src/method/last_l1_accepted_block_hash_and_number.rs b/crates/rpc/src/method/last_l1_accepted_block_hash_and_number.rs index ce9790cb9b..4b18743f94 100644 --- a/crates/rpc/src/method/last_l1_accepted_block_hash_and_number.rs +++ b/crates/rpc/src/method/last_l1_accepted_block_hash_and_number.rs @@ -82,7 +82,7 @@ mod tests { .unwrap(); let rpc_error = crate::jsonrpc::RpcError::from(error); let error_json = rpc_error - .serialize(Serializer::new(RpcVersion::V07)) + .serialize(Serializer::new(RpcVersion::V09)) .unwrap(); let expected = json!({ diff --git a/crates/rpc/src/method/simulate_transactions.rs b/crates/rpc/src/method/simulate_transactions.rs index ac673ab1f1..72c8a957b4 100644 --- a/crates/rpc/src/method/simulate_transactions.rs +++ b/crates/rpc/src/method/simulate_transactions.rs @@ -361,8 +361,6 @@ pub(crate) mod tests { } #[rstest::rstest] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] fn input_deserialization_happy_path(#[case] rpc_version: RpcVersion) { @@ -418,8 +416,6 @@ pub(crate) mod tests { } #[rstest::rstest] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] fn input_deserialization_rejects_return_initial_reads_pre_v10(#[case] rpc_version: RpcVersion) { @@ -468,7 +464,7 @@ pub(crate) mod tests { "simulation_flags": ["SKIP_FEE_CHARGE"] }); - let value = crate::dto::Value::new(input_json, RpcVersion::V07); + let value = crate::dto::Value::new(input_json, RpcVersion::V09); let input = SimulateTransactionInput::deserialize(value).unwrap(); const DEPLOYED_CONTRACT_ADDRESS: ContractAddress = @@ -508,7 +504,7 @@ pub(crate) mod tests { selector: Some(entry_point!("0x028FFE4FF0F226A9107253E17A904099AA4F63A02A5621DE0576E5AA71BC5194").0), messages: vec![], result: vec![], - execution_resources: pathfinder_executor::types::InnerCallExecutionResources::default(), + execution_resources: pathfinder_executor::types::InnerCallExecutionResources { l1_gas: 2, l2_gas: 0 }, internal_calls: vec![], computation_resources: pathfinder_executor::types::ComputationResources { pedersen_builtin_applications: 2, @@ -537,7 +533,7 @@ pub(crate) mod tests { felt!("0x56414c4944") ], execution_resources: pathfinder_executor::types::InnerCallExecutionResources { - l1_gas: 0, + l1_gas: 1, l2_gas: 0, }, internal_calls: vec![], @@ -563,8 +559,8 @@ pub(crate) mod tests { l1_gas:0, l1_data_gas:352 }, - l1_gas: 0, - l1_data_gas: 160, + l1_gas: 21, + l1_data_gas: 352, l2_gas: 0, },}, state_diff: pathfinder_executor::types::StateDiff { @@ -607,23 +603,21 @@ pub(crate) mod tests { ], initial_reads: None, }.serialize(Serializer { - version: RpcVersion::V07, + version: RpcVersion::V09, }).unwrap(); - let result = simulate_transactions(context, input, RpcVersion::V07) + let result = simulate_transactions(context, input, RpcVersion::V09) .await .expect("result"); let result = result .serialize(Serializer { - version: RpcVersion::V07, + version: RpcVersion::V09, }) .unwrap(); pretty_assertions_sorted::assert_eq!(result, expected); } #[rstest::rstest] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[test_log::test(tokio::test)] @@ -633,12 +627,6 @@ pub(crate) mod tests { simulation_flags: &crate::dto::SimulationFlags, ) -> serde_json::Result { let fixture_str = match rpc_version { - RpcVersion::V07 => { - include_str!("../../fixtures/0.7.0/simulations/simulate_transaction.json") - } - RpcVersion::V08 => { - include_str!("../../fixtures/0.8.0/simulations/simulate_transaction.json") - } RpcVersion::V09 => { include_str!("../../fixtures/0.9.0/simulations/simulate_transaction.json") } @@ -652,7 +640,7 @@ pub(crate) mod tests { include_str!("../../fixtures/0.10.0/simulations/simulate_transaction.json") } } - RpcVersion::V06 | RpcVersion::PathfinderV01 => unreachable!("no such test case"), + RpcVersion::PathfinderV01 => unreachable!("no such test case"), }; serde_json::from_str(fixture_str) } @@ -765,7 +753,7 @@ pub(crate) mod tests { calldata: vec![CAIRO0_HASH.0], messages: vec![], result: vec![felt!("0x56414c4944")], - execution_resources: pathfinder_executor::types::InnerCallExecutionResources::default(), + execution_resources: pathfinder_executor::types::InnerCallExecutionResources { l1_gas: 1, l2_gas: 0 }, internal_calls: vec![], computation_resources: pathfinder_executor::types::ComputationResources{ memory_holes: 1, @@ -803,7 +791,7 @@ pub(crate) mod tests { selector: Some(EntryPoint::hashed(b"transfer").0), messages: vec![], result: vec![felt!("0x1")], - execution_resources: pathfinder_executor::types::InnerCallExecutionResources::default(), + execution_resources: pathfinder_executor::types::InnerCallExecutionResources { l1_gas: 4, l2_gas: 0 }, internal_calls: vec![], computation_resources: pathfinder_executor::types::ComputationResources{ steps: 1354, @@ -827,7 +815,7 @@ pub(crate) mod tests { l1_gas: 0, l1_data_gas: 128, }, - l1_gas: 0, + l1_gas: 15464, l1_data_gas: 128, l2_gas: 0, },}, @@ -872,17 +860,17 @@ pub(crate) mod tests { ], initial_reads: None, }.serialize(Serializer { - version: RpcVersion::V07, + version: RpcVersion::V09, }).unwrap(); - let result = simulate_transactions(context, input, RpcVersion::V07) + let result = simulate_transactions(context, input, RpcVersion::V09) .await .unwrap(); pretty_assertions_sorted::assert_eq!( result .serialize(Serializer { - version: RpcVersion::V07, + version: RpcVersion::V09, }) .unwrap(), expected @@ -2632,8 +2620,6 @@ pub(crate) mod tests { } #[rstest::rstest] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[test_log::test(tokio::test)] @@ -2668,8 +2654,6 @@ pub(crate) mod tests { } #[rstest::rstest] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[test_log::test(tokio::test)] @@ -2708,8 +2692,6 @@ pub(crate) mod tests { } #[rstest::rstest] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[test_log::test(tokio::test)] @@ -2749,9 +2731,6 @@ pub(crate) mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[test_log::test(tokio::test)] @@ -2785,9 +2764,6 @@ pub(crate) mod tests { } #[rstest::rstest] - #[case::v06(RpcVersion::V06)] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[test_log::test(tokio::test)] diff --git a/crates/rpc/src/method/subscribe_events.rs b/crates/rpc/src/method/subscribe_events.rs index 58ab7ad6ab..73cd0b4cbe 100644 --- a/crates/rpc/src/method/subscribe_events.rs +++ b/crates/rpc/src/method/subscribe_events.rs @@ -74,13 +74,9 @@ impl crate::dto::DeserializeForVersion for Option { opt_address }; - let finality_status = if version < RpcVersion::V09 { - NewTxnFinalityStatus::default() - } else { - value - .deserialize_optional("finality_status")? - .unwrap_or_default() - }; + let finality_status = value + .deserialize_optional("finality_status")? + .unwrap_or_default(); Ok(Some(Params { from_addresses: HashSet::from_iter(raw_addresses.into_iter().map(ContractAddress)), keys: value.deserialize_optional_array("keys", |value| { @@ -116,9 +112,7 @@ impl crate::dto::SerializeForVersion for EventWithFinality { let mut serializer = serializer.serialize_struct()?; serializer.flatten(&self.event)?; - if serializer.version >= RpcVersion::V09 { - serializer.serialize_field("finality_status", &self.finality)?; - } + serializer.serialize_field("finality_status", &self.finality)?; serializer.end() } @@ -502,12 +496,12 @@ mod tests { use crate::jsonrpc::websocket::WebsocketHistory; use crate::jsonrpc::{handle_json_rpc_socket, RpcRouter, RpcSubscriptionFlow}; use crate::method::subscribe_events::SubscribeEvents; - use crate::{v06, v07, v08, v09, v10, Notifications, Reorg, RpcVersion}; + use crate::{v09, v10, Notifications, Reorg, RpcVersion}; #[tokio::test] async fn no_filtering() { let num_blocks = SubscribeEvents::CATCH_UP_BATCH_SIZE + 10; - let (router, _pending_data_cache) = setup(num_blocks, RpcVersion::V08).await; + let (router, _pending_data_cache) = setup(num_blocks, RpcVersion::V09).await; let (sender_tx, mut sender_rx) = mpsc::channel(1024); let (receiver_tx, receiver_rx) = mpsc::channel(1024); handle_json_rpc_socket(router.clone(), sender_tx, receiver_rx); @@ -538,7 +532,7 @@ mod tests { _ => panic!("Expected text message"), }; for i in 0..num_blocks { - let expected = sample_event_message(i, subscription_id, RpcVersion::V08); + let expected = sample_event_message(i, subscription_id, RpcVersion::V09); let event = sender_rx.recv().await.unwrap().unwrap(); let json: serde_json::Value = match event { Message::Text(json) => serde_json::from_str(&json).unwrap(), @@ -556,7 +550,7 @@ mod tests { }) .await .unwrap(); - let expected = sample_event_message(i, subscription_id, RpcVersion::V08); + let expected = sample_event_message(i, subscription_id, RpcVersion::V09); let event = sender_rx.recv().await.unwrap().unwrap(); let json: serde_json::Value = match event { Message::Text(json) => serde_json::from_str(&json).unwrap(), @@ -570,7 +564,7 @@ mod tests { #[tokio::test] async fn filter_from_address() { let (router, _pending_data_cache) = - setup(SubscribeEvents::CATCH_UP_BATCH_SIZE + 10, RpcVersion::V08).await; + setup(SubscribeEvents::CATCH_UP_BATCH_SIZE + 10, RpcVersion::V09).await; let (sender_tx, mut sender_rx) = mpsc::channel(1024); let (receiver_tx, receiver_rx) = mpsc::channel(1024); handle_json_rpc_socket(router.clone(), sender_tx, receiver_rx); @@ -603,7 +597,7 @@ mod tests { } _ => panic!("Expected text message"), }; - let expected = sample_event_message(0x16, subscription_id, RpcVersion::V08); + let expected = sample_event_message(0x16, subscription_id, RpcVersion::V09); let event = sender_rx.recv().await.unwrap().unwrap(); let json: serde_json::Value = match event { Message::Text(json) => serde_json::from_str(&json).unwrap(), @@ -625,7 +619,7 @@ mod tests { .l2_blocks .send(sample_block(0x16).into()) .unwrap(); - let expected = sample_event_message(0x16, subscription_id, RpcVersion::V08); + let expected = sample_event_message(0x16, subscription_id, RpcVersion::V09); let event = sender_rx.recv().await.unwrap().unwrap(); let json: serde_json::Value = match event { Message::Text(json) => serde_json::from_str(&json).unwrap(), @@ -638,7 +632,7 @@ mod tests { #[tokio::test] async fn filter_keys() { let (router, _pending_data_cache) = - setup(SubscribeEvents::CATCH_UP_BATCH_SIZE + 10, RpcVersion::V08).await; + setup(SubscribeEvents::CATCH_UP_BATCH_SIZE + 10, RpcVersion::V09).await; let (sender_tx, mut sender_rx) = mpsc::channel(1024); let (receiver_tx, receiver_rx) = mpsc::channel(1024); handle_json_rpc_socket(router.clone(), sender_tx, receiver_rx); @@ -671,7 +665,7 @@ mod tests { } _ => panic!("Expected text message"), }; - let expected = sample_event_message(0x16, subscription_id, RpcVersion::V08); + let expected = sample_event_message(0x16, subscription_id, RpcVersion::V09); let event = sender_rx.recv().await.unwrap().unwrap(); let json: serde_json::Value = match event { Message::Text(json) => serde_json::from_str(&json).unwrap(), @@ -693,7 +687,7 @@ mod tests { .l2_blocks .send(sample_block(0x16).into()) .unwrap(); - let expected = sample_event_message(0x16, subscription_id, RpcVersion::V08); + let expected = sample_event_message(0x16, subscription_id, RpcVersion::V09); let event = sender_rx.recv().await.unwrap().unwrap(); let json: serde_json::Value = match event { Message::Text(json) => serde_json::from_str(&json).unwrap(), @@ -1032,7 +1026,7 @@ mod tests { #[tokio::test] async fn too_many_keys_filter() { let (router, _pending_data_cache) = - setup(SubscribeEvents::CATCH_UP_BATCH_SIZE + 10, RpcVersion::V08).await; + setup(SubscribeEvents::CATCH_UP_BATCH_SIZE + 10, RpcVersion::V09).await; let (sender_tx, mut sender_rx) = mpsc::channel(1024); let (receiver_tx, receiver_rx) = mpsc::channel(1024); handle_json_rpc_socket(router.clone(), sender_tx, receiver_rx); @@ -1097,7 +1091,7 @@ mod tests { #[test_log::test(tokio::test)] async fn reorg() { - let (router, _pending_data_cache) = setup(1, RpcVersion::V08).await; + let (router, _pending_data_cache) = setup(1, RpcVersion::V09).await; let (sender_tx, mut sender_rx) = mpsc::channel(1024); let (receiver_tx, receiver_rx) = mpsc::channel(1024); handle_json_rpc_socket(router.clone(), sender_tx, receiver_rx); @@ -1143,7 +1137,8 @@ mod tests { "data": ["0x2", "0x3", "0x5"], "from_address": "0x0", "keys": ["0x0", "0x1", "0x2"], - "transaction_hash": "0x0" + "transaction_hash": "0x0", + "finality_status": "ACCEPTED_ON_L2" }, "subscription_id": subscription_id.to_string() } @@ -1188,7 +1183,7 @@ mod tests { #[tokio::test] async fn subscribe_with_pending_block() { - let (router, _pending_data_cache) = setup(1, RpcVersion::V08).await; + let (router, _pending_data_cache) = setup(1, RpcVersion::V09).await; let (sender_tx, mut sender_rx) = mpsc::channel(1024); let (receiver_tx, receiver_rx) = mpsc::channel(1024); handle_json_rpc_socket(router.clone(), sender_tx, receiver_rx); @@ -1270,9 +1265,6 @@ mod tests { .with_pending_data_cache(pending_data_cache.clone()) .with_websockets(WebsocketContext::for_test(WebsocketHistory::Unlimited)); match version { - RpcVersion::V06 => (v06::register_routes().build(ctx), pending_data_cache), - RpcVersion::V07 => (v07::register_routes().build(ctx), pending_data_cache), - RpcVersion::V08 => (v08::register_routes().build(ctx), pending_data_cache), RpcVersion::V09 => (v09::register_routes().build(ctx), pending_data_cache), RpcVersion::V10 => (v10::register_routes().build(ctx), pending_data_cache), RpcVersion::PathfinderV01 => { @@ -1364,9 +1356,7 @@ mod tests { "block_hash": Felt::from_u64(100 * block_number), "transaction_hash": Felt::from_u64(1000 * block_number), }); - if version >= RpcVersion::V09 { - result["finality_status"] = "ACCEPTED_ON_L2".into(); - } + result["finality_status"] = "ACCEPTED_ON_L2".into(); if version >= RpcVersion::V10 { result["transaction_index"] = 0.into(); result["event_index"] = 0.into(); @@ -1385,7 +1375,7 @@ mod tests { block_number: u64, subscription_id: u64, ) -> serde_json::Value { - let mut message = sample_event_message(block_number, subscription_id, RpcVersion::V08); + let mut message = sample_event_message(block_number, subscription_id, RpcVersion::V09); message["params"]["result"] .as_object_mut() .unwrap() diff --git a/crates/rpc/src/method/subscribe_new_heads.rs b/crates/rpc/src/method/subscribe_new_heads.rs index b5ff910d88..a6f953fb18 100644 --- a/crates/rpc/src/method/subscribe_new_heads.rs +++ b/crates/rpc/src/method/subscribe_new_heads.rs @@ -168,7 +168,7 @@ mod tests { use crate::context::{RpcContext, WebsocketContext}; use crate::jsonrpc::websocket::WebsocketHistory; use crate::jsonrpc::{handle_json_rpc_socket, RpcResponse, RpcRouter}; - use crate::{v08, Notifications, Reorg, SubscriptionId}; + use crate::{v09, Notifications, Reorg, SubscriptionId}; #[tokio::test] async fn happy_path_with_historic_blocks() { @@ -545,7 +545,7 @@ mod tests { .with_notifications(notifications) .with_pending_data_cache(pending_data_cache.clone()) .with_websockets(WebsocketContext::for_test(WebsocketHistory::Unlimited)); - v08::register_routes().build(ctx) + v09::register_routes().build(ctx) } async fn happy_path_test( diff --git a/crates/rpc/src/method/subscribe_pending_transactions.rs b/crates/rpc/src/method/subscribe_pending_transactions.rs deleted file mode 100644 index 1d94e54f3e..0000000000 --- a/crates/rpc/src/method/subscribe_pending_transactions.rs +++ /dev/null @@ -1,67 +0,0 @@ -use std::collections::HashSet; -use std::future::Future; - -use pathfinder_common::ContractAddress; -use tokio::sync::mpsc; - -use crate::context::RpcContext; -use crate::jsonrpc::{RpcError, RpcSubscriptionFlow, SubscriptionMessage}; -use crate::RpcVersion; - -// JSON-RPC 0.9.0 has removed `starknet_subscribePendingTransactions`, and -// pre-0.9.0 APIs should not have access to pre-confirmed data. That -// is, if the update is from a pre-confirmed block, we should just -// ignore it. Note that this renders this method mostly useless, -// since after the Starknet 0.14.0 update no transactions will be -// sent over this subscription. -pub struct SubscribePendingTransactions; - -#[derive(Debug, Clone, Default)] -pub struct Params { - _transaction_details: Option, - _sender_address: Option>, -} - -impl crate::dto::DeserializeForVersion for Option { - fn deserialize(value: crate::dto::Value) -> Result { - if value.is_null() { - return Ok(None); - } - value.deserialize_map(|value| { - Ok(Some(Params { - _transaction_details: value.deserialize_optional_serde("transaction_details")?, - _sender_address: value - .deserialize_optional_array("sender_address", |addr| { - Ok(ContractAddress(addr.deserialize()?)) - })? - .map(|addrs| addrs.into_iter().collect()), - })) - }) - } -} - -#[derive(Debug)] -pub struct Notification; - -impl crate::dto::SerializeForVersion for Notification { - fn serialize( - &self, - serializer: crate::dto::Serializer, - ) -> Result { - serializer.serialize_unit() - } -} - -impl RpcSubscriptionFlow for SubscribePendingTransactions { - type Params = Option; - type Notification = Notification; - - fn subscribe( - _state: RpcContext, - _version: RpcVersion, - _params: Self::Params, - _tx: mpsc::Sender>, - ) -> impl Future> { - std::future::pending() - } -} diff --git a/crates/rpc/src/method/subscribe_transaction_status.rs b/crates/rpc/src/method/subscribe_transaction_status.rs index b53c5f8f18..00700e0e28 100644 --- a/crates/rpc/src/method/subscribe_transaction_status.rs +++ b/crates/rpc/src/method/subscribe_transaction_status.rs @@ -512,7 +512,7 @@ mod tests { use crate::dto::{SerializeForVersion, Serializer}; use crate::jsonrpc::websocket::WebsocketHistory; use crate::jsonrpc::{handle_json_rpc_socket, RpcResponse, RpcRouter}; - use crate::{v08, PendingData, Reorg, RpcVersion, SubscriptionId}; + use crate::{v09, PendingData, Reorg, RpcVersion, SubscriptionId}; const TARGET_TX_HASH: TransactionHash = TransactionHash(Felt::from_u64(1)); @@ -534,7 +534,7 @@ mod tests { "execution_status": "SUCCEEDED", } }, - "subscription_id": subscription_id.serialize(Serializer::new(RpcVersion::V08)).unwrap(), + "subscription_id": subscription_id.serialize(Serializer::new(RpcVersion::V09)).unwrap(), } }) }, @@ -624,7 +624,7 @@ mod tests { "execution_status": "SUCCEEDED", } }, - "subscription_id": subscription_id.serialize(Serializer::new(RpcVersion::V08)).unwrap(), + "subscription_id": subscription_id.serialize(Serializer::new(RpcVersion::V09)).unwrap(), } }) ); @@ -654,7 +654,7 @@ mod tests { "failure_reason": "tx revert" } }, - "subscription_id": subscription_id.serialize(Serializer::new(RpcVersion::V08)).unwrap(), + "subscription_id": subscription_id.serialize(Serializer::new(RpcVersion::V09)).unwrap(), } }) }, @@ -683,7 +683,7 @@ mod tests { "execution_status": "SUCCEEDED" } }, - "subscription_id": subscription_id.serialize(Serializer::new(RpcVersion::V08)).unwrap(), + "subscription_id": subscription_id.serialize(Serializer::new(RpcVersion::V09)).unwrap(), } }) } @@ -715,7 +715,7 @@ mod tests { "failure_reason": "tx revert" } }, - "subscription_id": subscription_id.serialize(Serializer::new(RpcVersion::V08)).unwrap(), + "subscription_id": subscription_id.serialize(Serializer::new(RpcVersion::V09)).unwrap(), } }) }, @@ -1604,7 +1604,7 @@ mod tests { _ => panic!("Expected text message"), }; - let subscription_id = crate::dto::Value::new(subscription_id, RpcVersion::V08); + let subscription_id = crate::dto::Value::new(subscription_id, RpcVersion::V09); let subscription_id: SubscriptionId = subscription_id.deserialize().unwrap(); let expected_msg = expected(subscription_id); let status = sender_rx.recv().await.unwrap().unwrap(); @@ -1636,6 +1636,6 @@ mod tests { .with_storage(storage) .with_pending_data_cache(pending_data_cache.clone()) .with_websockets(WebsocketContext::for_test(WebsocketHistory::Unlimited)); - (v08::register_routes().build(ctx), pending_data_cache) + (v09::register_routes().build(ctx), pending_data_cache) } } diff --git a/crates/rpc/src/method/trace_block_transactions.rs b/crates/rpc/src/method/trace_block_transactions.rs index 4b8f6f55e4..133e3a806a 100644 --- a/crates/rpc/src/method/trace_block_transactions.rs +++ b/crates/rpc/src/method/trace_block_transactions.rs @@ -970,8 +970,6 @@ pub(crate) mod tests { } #[rstest::rstest] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] fn input_deserialization_happy_path(#[case] rpc_version: RpcVersion) { @@ -1002,8 +1000,6 @@ pub(crate) mod tests { } #[rstest::rstest] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -1037,8 +1033,6 @@ pub(crate) mod tests { } #[rstest::rstest] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -1061,8 +1055,6 @@ pub(crate) mod tests { } #[rstest::rstest] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -1091,8 +1083,6 @@ pub(crate) mod tests { } #[rstest::rstest] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -1146,7 +1136,7 @@ pub(crate) mod tests { output .unwrap() .serialize(Serializer { - version: RpcVersion::V07, + version: RpcVersion::V09, }) .unwrap(), ); @@ -1164,7 +1154,7 @@ pub(crate) mod tests { include_state_diffs: true, } .serialize(Serializer { - version: RpcVersion::V07, + version: RpcVersion::V09, }) .unwrap(), ); @@ -1447,8 +1437,6 @@ pub(crate) mod tests { } #[rstest::rstest] - #[case::v07(RpcVersion::V07)] - #[case::v08(RpcVersion::V08)] #[case::v09(RpcVersion::V09)] #[case::v10(RpcVersion::V10)] #[tokio::test] @@ -1460,8 +1448,6 @@ pub(crate) mod tests { trace_flags: &crate::dto::TraceFlags, ) -> serde_json::Result { let fixture_str = match rpc_version { - RpcVersion::V07 => include_str!("../../fixtures/0.7.0/traces/multiple_txs.json"), - RpcVersion::V08 => include_str!("../../fixtures/0.8.0/traces/multiple_txs.json"), RpcVersion::V09 => include_str!("../../fixtures/0.9.0/traces/multiple_txs.json"), RpcVersion::V10 => { if trace_flags.contains(&crate::dto::TraceFlag::ReturnInitialReads) { @@ -1472,7 +1458,7 @@ pub(crate) mod tests { include_str!("../../fixtures/0.10.0/traces/multiple_txs.json") } } - RpcVersion::V06 | RpcVersion::PathfinderV01 => unreachable!("no such test case"), + RpcVersion::PathfinderV01 => unreachable!("no such test case"), }; serde_json::from_str(fixture_str) } diff --git a/crates/rpc/src/middleware/cors.rs b/crates/rpc/src/middleware/cors.rs index 3800ac639a..3f8d23c45f 100644 --- a/crates/rpc/src/middleware/cors.rs +++ b/crates/rpc/src/middleware/cors.rs @@ -37,7 +37,7 @@ mod tests { (None, None, line!()), ] { let context = RpcContext::for_tests(); - let server = RpcServer::new("127.0.0.1:0".parse().unwrap(), context, RpcVersion::V07); + let server = RpcServer::new("127.0.0.1:0".parse().unwrap(), context, RpcVersion::V09); let server = match allowed { Some(allowed) => server.with_cors(allowed.into()), None => server, diff --git a/crates/rpc/src/pending.rs b/crates/rpc/src/pending.rs index a56bd5db81..09cad1cacd 100644 --- a/crates/rpc/src/pending.rs +++ b/crates/rpc/src/pending.rs @@ -44,7 +44,7 @@ impl PendingWatcher { } /// Returns [PendingData] which has been validated against the latest block - /// available in storage and the JSON-RPC version. + /// available in storage. /// /// Returns an empty block with gas price and timestamp taken from the /// latest block if no valid pending data is available. The block number @@ -52,21 +52,13 @@ impl PendingWatcher { pub fn get( &self, tx: &Transaction<'_>, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { let latest = tx .block_header(pathfinder_common::BlockId::Latest) .context("Querying latest block header")? .unwrap_or_default(); - // The pre-confirmed block is to be only ever used on JSON-RPC 0.9 and up. - // Older versions did have the semantics that expected that pending block - // contents are L2_ACCEPTED, which is not the case for the pre-confirmed - // block. - if rpc_version < RpcVersion::V09 { - return Ok(PendingData::empty(&latest)); - } - let watched_pending_data = match self.cache.try_read() { Some(data) => data, None => tokio::runtime::Handle::current().block_on(self.cache.read())?, @@ -457,62 +449,6 @@ mod tests { assert!(result.pre_latest_block().is_none()); } - #[test] - fn valid_pre_confirmed_is_not_used_for_old_rpc_versions() { - let cache = Arc::new(PendingDataCache::new()); - let uut = PendingWatcher::new(cache.clone()); - - let mut storage = pathfinder_storage::StorageBuilder::in_memory() - .unwrap() - .connection() - .unwrap(); - - let latest = latest_block(); - - let tx = storage.transaction().unwrap(); - tx.insert_block_header(&latest).unwrap(); - - let pending = valid_pre_confirmed_block(&latest); - cache.store(pending.clone()); - - let expected_empty_pending_data = PendingData::empty(&latest); - - let result = uut.get(&tx, RpcVersion::V06).unwrap(); - pretty_assertions_sorted::assert_eq_sorted!(result, expected_empty_pending_data); - let result = uut.get(&tx, RpcVersion::V07).unwrap(); - pretty_assertions_sorted::assert_eq_sorted!(result, expected_empty_pending_data); - let result = uut.get(&tx, RpcVersion::V08).unwrap(); - pretty_assertions_sorted::assert_eq_sorted!(result, expected_empty_pending_data); - } - - #[test] - fn valid_pre_confirmed_with_pre_latest_is_not_used_for_old_rpc_versions() { - let cache = Arc::new(PendingDataCache::new()); - let uut = PendingWatcher::new(cache.clone()); - - let mut storage = pathfinder_storage::StorageBuilder::in_memory() - .unwrap() - .connection() - .unwrap(); - - let latest = latest_block(); - - let tx = storage.transaction().unwrap(); - tx.insert_block_header(&latest).unwrap(); - - let pending = valid_pre_confirmed_block_with_pre_latest(&latest); - cache.store(pending.clone()); - - let expected_empty_pending_data = PendingData::empty(&latest); - - let result = uut.get(&tx, RpcVersion::V06).unwrap(); - pretty_assertions_sorted::assert_eq_sorted!(result, expected_empty_pending_data); - let result = uut.get(&tx, RpcVersion::V07).unwrap(); - pretty_assertions_sorted::assert_eq_sorted!(result, expected_empty_pending_data); - let result = uut.get(&tx, RpcVersion::V08).unwrap(); - pretty_assertions_sorted::assert_eq_sorted!(result, expected_empty_pending_data); - } - #[test] fn invalid_pending_defaults_to_latest_in_storage() { // If the pending data isn't consistent with the latest data in storage, diff --git a/crates/rpc/src/types.rs b/crates/rpc/src/types.rs index b544dd05f5..779784da4b 100644 --- a/crates/rpc/src/types.rs +++ b/crates/rpc/src/types.rs @@ -1428,7 +1428,7 @@ pub mod request { assert_eq!( SubscriptionBlockId::deserialize(crate::dto::Value::new( input, - crate::RpcVersion::V08 + crate::RpcVersion::V09 )) .unwrap(), expected @@ -1440,7 +1440,7 @@ pub mod request { assert_eq!( SubscriptionBlockId::deserialize(crate::dto::Value::new( json!("pending"), - crate::RpcVersion::V08 + crate::RpcVersion::V09 )) .unwrap_err() .to_string(), @@ -1694,27 +1694,11 @@ mod tests { l1_data_gas: None, }; - // Test V07 serialization (should not include l1_data_gas) - let v07_serialized = resource_bounds - .serialize(crate::dto::Serializer::new(RpcVersion::V07)) + // Test serialization (should include l1_data_gas) + let v09_serialized = resource_bounds + .serialize(crate::dto::Serializer::new(RpcVersion::V09)) .unwrap(); - let v07_expected = json!({ - "l1_gas": { - "max_amount": "0x64", - "max_price_per_unit": "0xc8" - }, - "l2_gas": { - "max_amount": "0x64", - "max_price_per_unit": "0xc8" - } - }); - assert_eq!(v07_serialized, v07_expected); - - // Test V08 serialization (should include l1_data_gas) - let v08_serialized = resource_bounds - .serialize(crate::dto::Serializer::new(RpcVersion::V08)) - .unwrap(); - let v08_expected = json!({ + let v09_expected = json!({ "l1_gas": { "max_amount": "0x64", "max_price_per_unit": "0xc8" @@ -1728,13 +1712,13 @@ mod tests { "max_price_per_unit": "0xc8" } }); - assert_eq!(v08_serialized, v08_expected); + assert_eq!(v09_serialized, v09_expected); - // Test V08 serialization with None l1_data_gas (should default to 0,0) - let v08_serialized_none = resource_bounds_no_data - .serialize(crate::dto::Serializer::new(RpcVersion::V08)) + // Test serialization with None l1_data_gas (should default to 0,0) + let v09_serialized_none = resource_bounds_no_data + .serialize(crate::dto::Serializer::new(RpcVersion::V09)) .unwrap(); - let v08_expected_none = json!({ + let v09_expected_none = json!({ "l1_gas": { "max_amount": "0x64", "max_price_per_unit": "0xc8" @@ -1748,24 +1732,17 @@ mod tests { "max_price_per_unit": "0x0" } }); - assert_eq!(v08_serialized_none, v08_expected_none); - - // Test V07 deserialization - let v07_value = Value::new(v07_expected, RpcVersion::V07); - let v07_deserialized = ResourceBounds::deserialize(v07_value).unwrap(); - assert_eq!(v07_deserialized.l1_gas, resource_bound); - assert_eq!(v07_deserialized.l2_gas, resource_bound); - assert_eq!(v07_deserialized.l1_data_gas, None); - - // Test V08 deserialization - let v08_value = Value::new(v08_expected, RpcVersion::V08); - let v08_deserialized = ResourceBounds::deserialize(v08_value).unwrap(); - assert_eq!(v08_deserialized.l1_gas, resource_bound); - assert_eq!(v08_deserialized.l2_gas, resource_bound); - assert_eq!(v08_deserialized.l1_data_gas, Some(resource_bound)); - - // Test V08 deserialization fails when l1_data_gas is missing - let v08_missing_data = json!({ + assert_eq!(v09_serialized_none, v09_expected_none); + + // Test deserialization + let v09_value = Value::new(v09_expected, RpcVersion::V09); + let v09_deserialized = ResourceBounds::deserialize(v09_value).unwrap(); + assert_eq!(v09_deserialized.l1_gas, resource_bound); + assert_eq!(v09_deserialized.l2_gas, resource_bound); + assert_eq!(v09_deserialized.l1_data_gas, Some(resource_bound)); + + // Test deserialization fails when l1_data_gas is missing + let v09_missing_data = json!({ "l1_gas": { "max_amount": "0x64", "max_price_per_unit": "0xc8" @@ -1775,7 +1752,7 @@ mod tests { "max_price_per_unit": "0xc8" } }); - let v08_missing_value = Value::new(v08_missing_data, RpcVersion::V08); - assert!(ResourceBounds::deserialize(v08_missing_value).is_err()); + let v09_missing_value = Value::new(v09_missing_data, RpcVersion::V09); + assert!(ResourceBounds::deserialize(v09_missing_value).is_err()); } } diff --git a/crates/rpc/src/types/class.rs b/crates/rpc/src/types/class.rs index ec75d991b3..cfb531dcef 100644 --- a/crates/rpc/src/types/class.rs +++ b/crates/rpc/src/types/class.rs @@ -849,7 +849,7 @@ mod tests { let contract_class = CairoContractClass::deserialize(crate::dto::Value::new( definition, - crate::RpcVersion::V07, + crate::RpcVersion::V09, )) .unwrap(); From 6ff3a5a6bcf514e3a2346384f110a169ea68b7a2 Mon Sep 17 00:00:00 2001 From: Krzysztof Lis Date: Mon, 15 Jun 2026 07:48:23 +0000 Subject: [PATCH 04/10] test(rpc): delete fixtures for removed JSON-RPC versions --- crates/rpc/fixtures/0.6.0/blocks/latest.json | 181 - .../0.6.0/blocks/latest_with_tx_hashes.json | 21 - .../0.6.0/blocks/latest_with_txs.json | 80 - .../fixtures/0.6.0/blocks/pre_confirmed.json | 11 - .../blocks/pre_confirmed_with_tx_hashes.json | 11 - .../0.6.0/blocks/pre_confirmed_with_txs.json | 11 - .../rpc/fixtures/0.6.0/class_at/cairo0.json | 73 - .../rpc/fixtures/0.6.0/class_at/sierra.json | 6650 ----------------- .../fixtures/0.6.0/class_hash/at_block.json | 1 - .../rpc/fixtures/0.6.0/class_hash/latest.json | 1 - .../declare_deploy_invoke_sierra_0_13_1.json | 32 - ...declare_deploy_invoke_sierra_0_13_1_1.json | 32 - .../declare_deploy_invoke_sierra_0_13_2.json | 32 - ...declare_deploy_invoke_sierra_0_13_2_1.json | 32 - .../declare_deploy_invoke_sierra_0_13_4.json | 26 - .../declare_deploy_invoke_sierra_0_14_0.json | 26 - .../declare_deploy_invoke_sierra_0_14_1.json | 26 - .../fixtures/0.6.0/fee_estimates/full.json | 6 - ...eclare_deploy_and_invoke_sierra_class.json | 0 ...d_invoke_sierra_class_starknet_0_13_4.json | 447 -- ...d_invoke_sierra_class_starknet_0_14_0.json | 447 -- ...oke_sierra_class_with_skip_fee_charge.json | 0 ...nvoke_sierra_class_with_skip_validate.json | 0 .../fixtures/0.6.0/state_updates/full.json | 2 - .../0.6.0/state_updates/pre_confirmed.json | 2 - .../traces/multiple_pre_confirmed_txs.json | 1 - .../fixtures/0.6.0/traces/multiple_txs.json | 0 .../transactions/receipt_l1_accepted.json | 19 - .../transactions/receipt_l2_accepted.json | 19 - .../0.6.0/transactions/receipt_reverted.json | 20 - .../receipt_reverted_preconfirmed.json | 1 - .../0.6.0/transactions/status_reverted.json | 1 - .../status_reverted_with_reason.json | 4 - .../fixtures/0.6.0/transactions/txn_1.json | 10 - .../txn_preconfirmed_reverted.json | 1 - .../0.6.0/transactions/txn_reverted.json | 10 - crates/rpc/fixtures/0.7.0/blocks/latest.json | 211 - .../0.7.0/blocks/latest_with_tx_hashes.json | 26 - .../0.7.0/blocks/latest_with_txs.json | 85 - .../fixtures/0.7.0/blocks/pre_confirmed.json | 16 - .../blocks/pre_confirmed_with_tx_hashes.json | 16 - .../0.7.0/blocks/pre_confirmed_with_txs.json | 16 - .../rpc/fixtures/0.7.0/class_at/cairo0.json | 81 - .../rpc/fixtures/0.7.0/class_at/sierra.json | 6650 ----------------- .../fixtures/0.7.0/class_hash/at_block.json | 1 - .../rpc/fixtures/0.7.0/class_hash/latest.json | 1 - .../declare_deploy_invoke_sierra_0_13_1.json | 42 - ...declare_deploy_invoke_sierra_0_13_1_1.json | 42 - .../declare_deploy_invoke_sierra_0_13_2.json | 42 - ...declare_deploy_invoke_sierra_0_13_2_1.json | 42 - .../declare_deploy_invoke_sierra_0_13_4.json | 34 - .../declare_deploy_invoke_sierra_0_14_0.json | 34 - .../declare_deploy_invoke_sierra_0_14_1.json | 34 - .../fixtures/0.7.0/fee_estimates/full.json | 8 - ...eclare_deploy_and_invoke_sierra_class.json | 650 -- ...d_invoke_sierra_class_starknet_0_13_4.json | 483 -- ...d_invoke_sierra_class_starknet_0_14_0.json | 483 -- ...oke_sierra_class_with_skip_fee_charge.json | 439 -- ...nvoke_sierra_class_with_skip_validate.json | 549 -- .../simulations/simulate_transaction.json | 114 - .../fixtures/0.7.0/state_updates/full.json | 2 - .../0.7.0/state_updates/pre_confirmed.json | 2 - .../traces/multiple_pre_confirmed_txs.json | 1 - .../fixtures/0.7.0/traces/multiple_txs.json | 469 -- .../transactions/receipt_l1_accepted.json | 23 - .../transactions/receipt_l2_accepted.json | 23 - .../0.7.0/transactions/receipt_reverted.json | 24 - .../receipt_reverted_preconfirmed.json | 1 - .../0.7.0/transactions/status_reverted.json | 1 - .../status_reverted_with_reason.json | 4 - .../fixtures/0.7.0/transactions/txn_1.json | 10 - .../txn_preconfirmed_reverted.json | 1 - .../0.7.0/transactions/txn_reverted.json | 10 - crates/rpc/fixtures/0.8.0/blocks/latest.json | 194 - .../0.8.0/blocks/latest_with_tx_hashes.json | 30 - .../0.8.0/blocks/latest_with_txs.json | 93 - .../fixtures/0.8.0/blocks/pre_confirmed.json | 20 - .../blocks/pre_confirmed_with_tx_hashes.json | 20 - .../0.8.0/blocks/pre_confirmed_with_txs.json | 20 - .../rpc/fixtures/0.8.0/class_at/cairo0.json | 81 - .../rpc/fixtures/0.8.0/class_at/sierra.json | 6650 ----------------- .../fixtures/0.8.0/class_hash/at_block.json | 1 - .../rpc/fixtures/0.8.0/class_hash/latest.json | 1 - .../declare_deploy_invoke_sierra_0_13_1.json | 52 - ...declare_deploy_invoke_sierra_0_13_1_1.json | 52 - .../declare_deploy_invoke_sierra_0_13_2.json | 52 - ...declare_deploy_invoke_sierra_0_13_2_1.json | 52 - .../declare_deploy_invoke_sierra_0_13_4.json | 42 - .../declare_deploy_invoke_sierra_0_14_0.json | 42 - .../declare_deploy_invoke_sierra_0_14_1.json | 42 - .../fixtures/0.8.0/fee_estimates/full.json | 10 - ...eclare_deploy_and_invoke_sierra_class.json | 636 -- ...d_invoke_sierra_class_starknet_0_13_4.json | 479 -- ...d_invoke_sierra_class_starknet_0_14_0.json | 479 -- ...oke_sierra_class_with_skip_fee_charge.json | 432 -- ...nvoke_sierra_class_with_skip_validate.json | 535 -- .../simulations/simulate_transaction.json | 111 - .../fixtures/0.8.0/state_updates/full.json | 2 - .../0.8.0/state_updates/pre_confirmed.json | 2 - .../traces/multiple_pre_confirmed_txs.json | 1 - .../fixtures/0.8.0/traces/multiple_txs.json | 452 -- .../transactions/receipt_l1_accepted.json | 19 - .../transactions/receipt_l2_accepted.json | 19 - .../0.8.0/transactions/receipt_reverted.json | 20 - .../receipt_reverted_preconfirmed.json | 1 - .../0.8.0/transactions/status_reverted.json | 1 - .../status_reverted_with_reason.json | 5 - .../fixtures/0.8.0/transactions/txn_1.json | 10 - .../txn_preconfirmed_reverted.json | 1 - .../0.8.0/transactions/txn_reverted.json | 10 - 110 files changed, 29575 deletions(-) delete mode 100644 crates/rpc/fixtures/0.6.0/blocks/latest.json delete mode 100644 crates/rpc/fixtures/0.6.0/blocks/latest_with_tx_hashes.json delete mode 100644 crates/rpc/fixtures/0.6.0/blocks/latest_with_txs.json delete mode 100644 crates/rpc/fixtures/0.6.0/blocks/pre_confirmed.json delete mode 100644 crates/rpc/fixtures/0.6.0/blocks/pre_confirmed_with_tx_hashes.json delete mode 100644 crates/rpc/fixtures/0.6.0/blocks/pre_confirmed_with_txs.json delete mode 100644 crates/rpc/fixtures/0.6.0/class_at/cairo0.json delete mode 100644 crates/rpc/fixtures/0.6.0/class_at/sierra.json delete mode 100644 crates/rpc/fixtures/0.6.0/class_hash/at_block.json delete mode 100644 crates/rpc/fixtures/0.6.0/class_hash/latest.json delete mode 100644 crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1.json delete mode 100644 crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1_1.json delete mode 100644 crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2.json delete mode 100644 crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2_1.json delete mode 100644 crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_4.json delete mode 100644 crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_14_0.json delete mode 100644 crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_14_1.json delete mode 100644 crates/rpc/fixtures/0.6.0/fee_estimates/full.json delete mode 100644 crates/rpc/fixtures/0.6.0/simulations/declare_deploy_and_invoke_sierra_class.json delete mode 100644 crates/rpc/fixtures/0.6.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_13_4.json delete mode 100644 crates/rpc/fixtures/0.6.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_14_0.json delete mode 100644 crates/rpc/fixtures/0.6.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_fee_charge.json delete mode 100644 crates/rpc/fixtures/0.6.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_validate.json delete mode 100644 crates/rpc/fixtures/0.6.0/state_updates/full.json delete mode 100644 crates/rpc/fixtures/0.6.0/state_updates/pre_confirmed.json delete mode 100644 crates/rpc/fixtures/0.6.0/traces/multiple_pre_confirmed_txs.json delete mode 100644 crates/rpc/fixtures/0.6.0/traces/multiple_txs.json delete mode 100644 crates/rpc/fixtures/0.6.0/transactions/receipt_l1_accepted.json delete mode 100644 crates/rpc/fixtures/0.6.0/transactions/receipt_l2_accepted.json delete mode 100644 crates/rpc/fixtures/0.6.0/transactions/receipt_reverted.json delete mode 100644 crates/rpc/fixtures/0.6.0/transactions/receipt_reverted_preconfirmed.json delete mode 100644 crates/rpc/fixtures/0.6.0/transactions/status_reverted.json delete mode 100644 crates/rpc/fixtures/0.6.0/transactions/status_reverted_with_reason.json delete mode 100644 crates/rpc/fixtures/0.6.0/transactions/txn_1.json delete mode 100644 crates/rpc/fixtures/0.6.0/transactions/txn_preconfirmed_reverted.json delete mode 100644 crates/rpc/fixtures/0.6.0/transactions/txn_reverted.json delete mode 100644 crates/rpc/fixtures/0.7.0/blocks/latest.json delete mode 100644 crates/rpc/fixtures/0.7.0/blocks/latest_with_tx_hashes.json delete mode 100644 crates/rpc/fixtures/0.7.0/blocks/latest_with_txs.json delete mode 100644 crates/rpc/fixtures/0.7.0/blocks/pre_confirmed.json delete mode 100644 crates/rpc/fixtures/0.7.0/blocks/pre_confirmed_with_tx_hashes.json delete mode 100644 crates/rpc/fixtures/0.7.0/blocks/pre_confirmed_with_txs.json delete mode 100644 crates/rpc/fixtures/0.7.0/class_at/cairo0.json delete mode 100644 crates/rpc/fixtures/0.7.0/class_at/sierra.json delete mode 100644 crates/rpc/fixtures/0.7.0/class_hash/at_block.json delete mode 100644 crates/rpc/fixtures/0.7.0/class_hash/latest.json delete mode 100644 crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1.json delete mode 100644 crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1_1.json delete mode 100644 crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2.json delete mode 100644 crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2_1.json delete mode 100644 crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_4.json delete mode 100644 crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_14_0.json delete mode 100644 crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_14_1.json delete mode 100644 crates/rpc/fixtures/0.7.0/fee_estimates/full.json delete mode 100644 crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class.json delete mode 100644 crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_13_4.json delete mode 100644 crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_14_0.json delete mode 100644 crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_fee_charge.json delete mode 100644 crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_validate.json delete mode 100644 crates/rpc/fixtures/0.7.0/simulations/simulate_transaction.json delete mode 100644 crates/rpc/fixtures/0.7.0/state_updates/full.json delete mode 100644 crates/rpc/fixtures/0.7.0/state_updates/pre_confirmed.json delete mode 100644 crates/rpc/fixtures/0.7.0/traces/multiple_pre_confirmed_txs.json delete mode 100644 crates/rpc/fixtures/0.7.0/traces/multiple_txs.json delete mode 100644 crates/rpc/fixtures/0.7.0/transactions/receipt_l1_accepted.json delete mode 100644 crates/rpc/fixtures/0.7.0/transactions/receipt_l2_accepted.json delete mode 100644 crates/rpc/fixtures/0.7.0/transactions/receipt_reverted.json delete mode 100644 crates/rpc/fixtures/0.7.0/transactions/receipt_reverted_preconfirmed.json delete mode 100644 crates/rpc/fixtures/0.7.0/transactions/status_reverted.json delete mode 100644 crates/rpc/fixtures/0.7.0/transactions/status_reverted_with_reason.json delete mode 100644 crates/rpc/fixtures/0.7.0/transactions/txn_1.json delete mode 100644 crates/rpc/fixtures/0.7.0/transactions/txn_preconfirmed_reverted.json delete mode 100644 crates/rpc/fixtures/0.7.0/transactions/txn_reverted.json delete mode 100644 crates/rpc/fixtures/0.8.0/blocks/latest.json delete mode 100644 crates/rpc/fixtures/0.8.0/blocks/latest_with_tx_hashes.json delete mode 100644 crates/rpc/fixtures/0.8.0/blocks/latest_with_txs.json delete mode 100644 crates/rpc/fixtures/0.8.0/blocks/pre_confirmed.json delete mode 100644 crates/rpc/fixtures/0.8.0/blocks/pre_confirmed_with_tx_hashes.json delete mode 100644 crates/rpc/fixtures/0.8.0/blocks/pre_confirmed_with_txs.json delete mode 100644 crates/rpc/fixtures/0.8.0/class_at/cairo0.json delete mode 100644 crates/rpc/fixtures/0.8.0/class_at/sierra.json delete mode 100644 crates/rpc/fixtures/0.8.0/class_hash/at_block.json delete mode 100644 crates/rpc/fixtures/0.8.0/class_hash/latest.json delete mode 100644 crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1.json delete mode 100644 crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1_1.json delete mode 100644 crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2.json delete mode 100644 crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2_1.json delete mode 100644 crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_4.json delete mode 100644 crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_14_0.json delete mode 100644 crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_14_1.json delete mode 100644 crates/rpc/fixtures/0.8.0/fee_estimates/full.json delete mode 100644 crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class.json delete mode 100644 crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_13_4.json delete mode 100644 crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_14_0.json delete mode 100644 crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_fee_charge.json delete mode 100644 crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_validate.json delete mode 100644 crates/rpc/fixtures/0.8.0/simulations/simulate_transaction.json delete mode 100644 crates/rpc/fixtures/0.8.0/state_updates/full.json delete mode 100644 crates/rpc/fixtures/0.8.0/state_updates/pre_confirmed.json delete mode 100644 crates/rpc/fixtures/0.8.0/traces/multiple_pre_confirmed_txs.json delete mode 100644 crates/rpc/fixtures/0.8.0/traces/multiple_txs.json delete mode 100644 crates/rpc/fixtures/0.8.0/transactions/receipt_l1_accepted.json delete mode 100644 crates/rpc/fixtures/0.8.0/transactions/receipt_l2_accepted.json delete mode 100644 crates/rpc/fixtures/0.8.0/transactions/receipt_reverted.json delete mode 100644 crates/rpc/fixtures/0.8.0/transactions/receipt_reverted_preconfirmed.json delete mode 100644 crates/rpc/fixtures/0.8.0/transactions/status_reverted.json delete mode 100644 crates/rpc/fixtures/0.8.0/transactions/status_reverted_with_reason.json delete mode 100644 crates/rpc/fixtures/0.8.0/transactions/txn_1.json delete mode 100644 crates/rpc/fixtures/0.8.0/transactions/txn_preconfirmed_reverted.json delete mode 100644 crates/rpc/fixtures/0.8.0/transactions/txn_reverted.json diff --git a/crates/rpc/fixtures/0.6.0/blocks/latest.json b/crates/rpc/fixtures/0.6.0/blocks/latest.json deleted file mode 100644 index 264f53cd6f..0000000000 --- a/crates/rpc/fixtures/0.6.0/blocks/latest.json +++ /dev/null @@ -1,181 +0,0 @@ -{ - "block_hash": "0x6c6174657374", - "block_number": 2, - "l1_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x2" - }, - "new_root": "0x57b695c82af81429fdc8966088b0196105dfb5aa22b54cbc86fc95dc3b3ece1", - "parent_hash": "0x626c6f636b2031", - "sequencer_address": "0x2", - "starknet_version": "0.13.2", - "status": "ACCEPTED_ON_L2", - "timestamp": 2, - "transactions": [ - { - "receipt": { - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "events": [], - "execution_resources": { - "memory_holes": 5, - "pedersen_builtin_applications": 32, - "steps": 10 - }, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [], - "transaction_hash": "0x74786e2033", - "type": "INVOKE" - }, - "transaction": { - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "type": "INVOKE", - "version": "0x0" - } - }, - { - "receipt": { - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "events": [], - "execution_resources": { - "memory_holes": 5, - "pedersen_builtin_applications": 32, - "steps": 10 - }, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [], - "transaction_hash": "0x74786e2034", - "type": "INVOKE" - }, - "transaction": { - "calldata": [], - "contract_address": "0x0", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "type": "INVOKE", - "version": "0x0" - } - }, - { - "receipt": { - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "events": [], - "execution_resources": { - "memory_holes": 5, - "pedersen_builtin_applications": 32, - "steps": 10 - }, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [], - "transaction_hash": "0x74786e2035", - "type": "INVOKE" - }, - "transaction": { - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "type": "INVOKE", - "version": "0x0" - } - }, - { - "receipt": { - "actual_fee": { - "amount": "0x0", - "unit": "FRI" - }, - "events": [], - "execution_resources": { - "memory_holes": 5, - "pedersen_builtin_applications": 32, - "steps": 10 - }, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [ - { - "from_address": "0xcafebabe", - "payload": [ - "0x1", - "0x2", - "0x3" - ], - "to_address": "0x0" - } - ], - "transaction_hash": "0x74786e2036", - "type": "INVOKE" - }, - "transaction": { - "account_deployment_data": [], - "calldata": [], - "fee_data_availability_mode": "L1", - "nonce": "0x0", - "nonce_data_availability_mode": "L1", - "paymaster_data": [], - "resource_bounds": { - "l1_gas": { - "max_amount": "0x0", - "max_price_per_unit": "0x0" - }, - "l2_gas": { - "max_amount": "0x0", - "max_price_per_unit": "0x0" - } - }, - "sender_address": "0x636f6e74726163742032202873696572726129", - "signature": [], - "tip": "0x0", - "type": "INVOKE", - "version": "0x3" - } - }, - { - "receipt": { - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "events": [], - "execution_resources": { - "memory_holes": 5, - "pedersen_builtin_applications": 32, - "steps": 10 - }, - "execution_status": "REVERTED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [], - "revert_reason": "Reverted because", - "transaction_hash": "0x74786e207265766572746564", - "type": "INVOKE" - }, - "transaction": { - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "type": "INVOKE", - "version": "0x0" - } - } - ] -} diff --git a/crates/rpc/fixtures/0.6.0/blocks/latest_with_tx_hashes.json b/crates/rpc/fixtures/0.6.0/blocks/latest_with_tx_hashes.json deleted file mode 100644 index 1942e14e27..0000000000 --- a/crates/rpc/fixtures/0.6.0/blocks/latest_with_tx_hashes.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "block_hash": "0x6c6174657374", - "block_number": 2, - "l1_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x2" - }, - "new_root": "0x57b695c82af81429fdc8966088b0196105dfb5aa22b54cbc86fc95dc3b3ece1", - "parent_hash": "0x626c6f636b2031", - "sequencer_address": "0x2", - "starknet_version": "0.13.2", - "status": "ACCEPTED_ON_L2", - "timestamp": 2, - "transactions": [ - "0x74786e2033", - "0x74786e2034", - "0x74786e2035", - "0x74786e2036", - "0x74786e207265766572746564" - ] -} diff --git a/crates/rpc/fixtures/0.6.0/blocks/latest_with_txs.json b/crates/rpc/fixtures/0.6.0/blocks/latest_with_txs.json deleted file mode 100644 index c6bd49d823..0000000000 --- a/crates/rpc/fixtures/0.6.0/blocks/latest_with_txs.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "block_hash": "0x6c6174657374", - "block_number": 2, - "l1_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x2" - }, - "new_root": "0x57b695c82af81429fdc8966088b0196105dfb5aa22b54cbc86fc95dc3b3ece1", - "parent_hash": "0x626c6f636b2031", - "sequencer_address": "0x2", - "starknet_version": "0.13.2", - "status": "ACCEPTED_ON_L2", - "timestamp": 2, - "transactions": [ - { - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e2033", - "type": "INVOKE", - "version": "0x0" - }, - { - "calldata": [], - "contract_address": "0x0", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e2034", - "type": "INVOKE", - "version": "0x0" - }, - { - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e2035", - "type": "INVOKE", - "version": "0x0" - }, - { - "account_deployment_data": [], - "calldata": [], - "fee_data_availability_mode": "L1", - "nonce": "0x0", - "nonce_data_availability_mode": "L1", - "paymaster_data": [], - "resource_bounds": { - "l1_gas": { - "max_amount": "0x0", - "max_price_per_unit": "0x0" - }, - "l2_gas": { - "max_amount": "0x0", - "max_price_per_unit": "0x0" - } - }, - "sender_address": "0x636f6e74726163742032202873696572726129", - "signature": [], - "tip": "0x0", - "transaction_hash": "0x74786e2036", - "type": "INVOKE", - "version": "0x3" - }, - { - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e207265766572746564", - "type": "INVOKE", - "version": "0x0" - } - ] -} diff --git a/crates/rpc/fixtures/0.6.0/blocks/pre_confirmed.json b/crates/rpc/fixtures/0.6.0/blocks/pre_confirmed.json deleted file mode 100644 index 8eb431468f..0000000000 --- a/crates/rpc/fixtures/0.6.0/blocks/pre_confirmed.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "l1_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x2" - }, - "parent_hash": "0x6c6174657374", - "sequencer_address": "0x2", - "starknet_version": "0.13.2", - "timestamp": 2, - "transactions": [] -} diff --git a/crates/rpc/fixtures/0.6.0/blocks/pre_confirmed_with_tx_hashes.json b/crates/rpc/fixtures/0.6.0/blocks/pre_confirmed_with_tx_hashes.json deleted file mode 100644 index b6858b5c87..0000000000 --- a/crates/rpc/fixtures/0.6.0/blocks/pre_confirmed_with_tx_hashes.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "l1_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x2" - }, - "parent_hash": "0x6c6174657374", - "sequencer_address": "0x2", - "starknet_version": "0.13.2", - "timestamp": 2, - "transactions": [] -} diff --git a/crates/rpc/fixtures/0.6.0/blocks/pre_confirmed_with_txs.json b/crates/rpc/fixtures/0.6.0/blocks/pre_confirmed_with_txs.json deleted file mode 100644 index 8eb431468f..0000000000 --- a/crates/rpc/fixtures/0.6.0/blocks/pre_confirmed_with_txs.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "l1_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x2" - }, - "parent_hash": "0x6c6174657374", - "sequencer_address": "0x2", - "starknet_version": "0.13.2", - "timestamp": 2, - "transactions": [] -} diff --git a/crates/rpc/fixtures/0.6.0/class_at/cairo0.json b/crates/rpc/fixtures/0.6.0/class_at/cairo0.json deleted file mode 100644 index cf55aa2897..0000000000 --- a/crates/rpc/fixtures/0.6.0/class_at/cairo0.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "abi": [ - { - "inputs": [ - { - "name": "address", - "type": "felt" - }, - { - "name": "value", - "type": "felt" - } - ], - "name": "increase_value", - "outputs": [], - "type": "function" - }, - { - "inputs": [ - { - "name": "contract_address", - "type": "felt" - }, - { - "name": "address", - "type": "felt" - }, - { - "name": "value", - "type": "felt" - } - ], - "name": "call_increase_value", - "outputs": [], - "type": "function" - }, - { - "inputs": [ - { - "name": "address", - "type": "felt" - } - ], - "name": "get_value", - "outputs": [ - { - "name": "res", - "type": "felt" - } - ], - "type": "function" - } - ], - "entry_points_by_type": { - "CONSTRUCTOR": [], - "EXTERNAL": [ - { - "offset": "0x75", - "selector": "0x26813d396fdb198e9ead934e4f7a592a8b88a059e45ab0eb6ee53494e8d45b0" - }, - { - "offset": "0x55", - "selector": "0x3033d3588abc2928b334742248e380daa139fc6b2bba31d609282d2c641a450" - }, - { - "offset": "0x3d", - "selector": "0x34c4c150632e67baf44fc50e9a685184d72a822510a26a66f72058b5e7b2892" - } - ], - "L1_HANDLER": [] - }, - "program": "H4sIAAAAAAAE/91de2/bSJL/Kgb/SnYcgW9SBuYPT+KdDS6PPduze7ggIGiJ8giRJa1EzSQX+LtfVb/YTTbJbpIKsLtYT2yKrK761buapL47eVke1g+nsjg6V58+XzoPp/WmXG/xL+eQbx+LbPF7sfjiwEfLvMzhJMf9GrpJ6rpeslqt8Me5hGMe+a/vpg94iP0U5GCYujE/H/516cEg9uJFvAiDeBUXSZj48HeQhPRD1/XxTCAzh58VPxjAQVwWD+byQR/OwoMP8sGAHVzIB0N2cEkPpj5nbQ60KWsJ+4jwEOH54iMQBRmLlYPmQkcgYLxKUNQkjiI/jkDohsgLoN4QGQ82eF4IxgKZZ0Sj+mgwewkwOk/COKK0K50QFfODXCd4UEEaucCDDa4falzrGWy1Mc9zQQ2uB1Twh+oM/nDF/zwXLNPi/wWlEboemgyxaaQnS+jiAdCLIiFZHg6qEuKZ+EMu98l/gd8czkMLXYmP2EGESDnIDbI6GISLcOFFbhz4RZw85KswXC0it5jncRp5abhM/Dz1/chzcz/O4xgszI3Sh6hIHvx0zlnwU1waf4AVJkfq5uxAtZo3Ob7LmKHgoU0sYflqtRBYgAMIT3XQbwkjeFYDLzyI3lFdfgYJWGBJiQQFMFytxiRQWQhTP4WzUNYlIkwAOANfNMK24OXHsDTGy4oFnzASuj6ihtwRtunB1MXY5gLblYeCcPxgRYQdVCl7k5vNiuaU9mwTtqgDOUbmFDE4FpXimNdTIgQHgIsebAHURdS0XowfVJRDatQGpsrORE1Ul08P5cLWTlg+sbWTBuqoCrSoHuMBGPBMEh6EEqaHwdSiVHWE1ELqBzVFDTUedr65RalnhtR41OWmxyJPiNfrLb01+YauG6CC8AcCBU8jNNLgQfwhhJnz6oTB4Ijn4Q8QobaJYrMDlSfouUvpcnBpZVZsOVuDVW1zepQLIRzat+oe06+2UgwQq9QKypBacd3WSEIzONjQBHYExcPpMVtvVzvnanvabC6d39fbEnqH744LnQJ0F4tFcTyuHzZFdlzs9qTJcI5lfvjyZ34oZot8fdjNFrunp912lm82OzSnro/ZSbD0YrcsnCvnqXjaHb59yvefL36+OBaPTwWsP8uXyxcvwQhXm92fWXnIF1/W28eM9i/A1F4cc66+O4+H3WnvXLmXzm61OhYl/Pp86RyKVXEotosiWy9RoOfnZ1jVMxKLSLAtSi7Z8dtxAdIdgSPyEZGd/KY5CUDZbLLFbot8l9h3LaiojEr2e75dboqDet4LLvvP/JfLC37Bvjz8DELMpL9twfEqcDwNOJJKzcSaZVlZPO0BzfjS/mIEkyozGHF1dlz/H5iQP4QE004GhnYojmAfYD1EcgvVzlan7aJc77bZsdgUi3J3cK4AZ2syTK3OVWQviWwTzlXIjTxtd94se8rX2ywDW1Z+/fOQ7/fF4cg+qf6cPRZl9ke+ORUZuBOYcnYoytNhK1n2dE7sgR66vNjJsn7OZtLcIwPnca5SIGt2Jch6LA+nBUSRZM7gnLej2a9swLn/pNkRrCd/LADafCkBy0xDhAz5tDNHDHArroihEUPmlgUMD1wEKFsigvmAuuncyEWUhRmGsLCZc+ouplbkudQg/A736pfMziD+PKzLwsAiyHlnNgkI1lOZBGGX2YQPqkmt9EqvFrHbMwucXLH0amYWTLPJgPVJTATeY2oVcUeYUCKtFH+rWAZWoQSo9XZxKPJjQSOvZADTxVrI3FydvqsrCjoYAtXxJJ7li/KUb1g2DgFJ0+sOj1X+DcG4LK5j2IegecOrSB4IQebu80uoakLIpGCQXSc2MkwIwaXzgqLMjiyxRPVspCq7ltNZFppH7VnI3rxQeVD3n93GAEZuY0HQa2MarloNLYZUoADed7FsbXHdbgwu5hV9ZbNx3WYNqDDDjetu0nMpsd4Y0DQQGU0YjCWpW5luiYYdJ5Cde9c4FJUxJyYgKME28TBggjGsl9DsrVdrqDqxj+NWPHv/7TWrz/Fw+W0PVb6zzZ+K4z6HORhcqTl1dn14hDr+u7M6bTYZng3dZet5l9h4PtCFgR7tJAAwttiReip8oqPw9sPr25vru5vsH9fvfrvJ7m7e3by+/3grMQu2ciwhpDNte+HcS0KY2fq+m7huFMxjP02TAH6d+3A49uM4ncPehRuEnhslge97XhrFceT6qT+PE9+L4iAI4OK4jaen/Wa9WJemKLyVzx+Fxi3tBqAR70OenTlqtbu3/3vz8a/Zu4+vr9/dtSOO+UynunyzgRkF8LosjuV6m5fr3RbspKramhMNNrK4dJht5Jt1fnRa1EB8DLRPe/+OdciK26IxYlCnAmBCJqsui03xmJdFhssjKG3Sta6qUjCTVc1adNnF7pCXuwM4Iu5F7xfOVQCJkcnA++U28FSCxg6tu0y2MSdfLmn38N0h6s04P8UGnZQnKGxzFizwVEG++xq0M+bk3Sf6z2AxNMxAwGQMdIeZmlyKx4JlEW/riHNdlyvwNHJAtyQIkxLPNaf/BQyXwwpNExTXfFQzRHIWN+xlZhfK0gotmAb7GoyG8QdB0sWfGrWMeCyOwmgf0gKlpaprVC+rWSj65Xcnr+anYqbKhqhhNScMASriwFAzMxN3Pi3yY/litb+8WIHv/OUvLz+DL1sThNqHEyT0Pq1g+vvThceovhxCE0ojHU2/ognTX2Z8YjQMC8FAifZjUtUxa2gJS6oAI5wufqxOm86Co4XaQLVETC2he+lwiala8v3FTxcvXnkvucygnOFC9wRNS6E5tYFCY5gltgjJRBV6RYUOpxEa8yf3RmjX8gOMAafxSQ3lgVgIv4QeRsWibgAD3bPH34eblGlytbStBtmBwPYaWTSNkRnmW0sU6lTPBUI8EQhFiY6mjalYPdhKz8gNlNrDtgoDTCjlEX1UJU413AegdUa5M1oKamILVE7DZKckzwaAP43eTSpHS/llkgPF73X9hEtP1H9pWvL021WgEB5uVywTTGJQlNa5oBQSY/FoIfBT8bTYf8OA0dbdkuKM79nT02f0H3AqVvs1u3fMzPVRKLQay0LqZZ3ia1kctvnGAYYxTiRQwzKK2q5WQ7S7n229QG5e/q06WZ1ERj1s74UKJPW8B6ojdpBx9UCjAurn3Sg2ZnLA0J2O+Yefb9q96phm7ScsoY1oHZfIEkK9T5MFFPxMpmNJdqifLx3RY+qIGfaqGPw66fDiHQTRQWssHKdjE1nAzypVXDrc92iIuhINKel8rJoAHWCNSnKsxA2C5xLdqjTViW7oRsa6rtM7l+BKOdqdlyVT8nkXncLAQ7WlehNlkqV0gJoEGWM0ZWLnQtKmxLGCUlSOpHaCBMqimH4Mo8OSaciiuGmnci74rMqax4LdUkXLma5Kw3MDMY7XlhqCVneBUTtNzjCmZYWUC2EOw7R4bOaiaimjfN9yusKh7AC6oNySsg3Z7EnUFYPsRIU12FpALeoyY5W5RBI35GhI6q7Y5IlWhxTUQtqw07zaxlNgM74SlqZpYrjMc9U8PcxVZiY20COaTOJs4okyhMS77pwk4ZaAjWB547kQXVXcWE6yC6Tq2BlNtLuliSrT1MYZlV53sNGdqzhNj4XKtsSg0Ad/fqJXba/5IlxqQlONMaP41HWNIpRsXTrXGxKkaouzAATUtZauP1tmEozMoJuo0RkSjWokehRuIg0nYeO4MCPnJoJtDvoX2jmzKTUsCb81Kflq4nUkARPR8PKBYvGwEYGoqlgsaljtB9XEMrFoE/lkOgPl7FWfaIEMwi5gxc2iFz816naHc4mux/dpYujbuxVDGO6ri2uaYRT1UdFEJZTAuZRhleKP5e4gbn6H0LZsuTen9e4VhYAI/81RHz+P3AFMM6L+LqDelSgF3VLVLb30Vh5Vb3TRrno/BRtipbWahrsJt+Rjk4ss0kMPue50anPxdDy1ZcwebthlMh/y6zSyfXlAXXZV/ThqZNs92lPlcgDvjaV5We/RPFr5mL/p02itLMh0pZYNJh3MruS6qAcGq8zfQ0u6LSWXbxnXS6zGsGGkbaIbbPxxkHmqQVekYfLK4TeqkEFj8PIz/BtcvLr4xO4/gCP0rouXznNrJLcQQr5ZeWJ8JNIT4vNJA5BHIelOb3agNAaqkC50PjjYegCdxhrnhGl6iJjFTm81lPA5wQCn8qcFpC1MY4wcaiNIc3IURBxh8hOn6S427SOWcEjneWrSQm/Tkw4YJKNCK97BF2nTcGMg1huRKK2BJoBVAbahaduUx6xf62WSnrDMsIhEudWiumu/DwBhhYJUQVNyh2OW6cra5hO3E4SfMVtIPb6hZquIpHPhHJ8tTJg81ITqnEPZTgPklUOpW7XfffAWZXakg/Z6wuvS5ExUsVaxDopWvtpAI++Dxb28MOCbxMCh1RQIgTdaoek3CgTr6M+JDYWDzwLmvU5vKbPylOiMsZl1dRK2loAgUoJTCk+qRbCCVbEpXw4vmeW5Ut0xkLS1omWCA+XVdQ+fiLy8WYB4w1Ia0bZxKu7zqhev1FnVQNfJlNc88DuoAF41hZAZCXldBvEv8/uupFj3WJjvg3rgOywvYU4jT25BN6w8rCjo9Y9DaqfKjT5QpR7kigHPkQZf+KRlPePRR7WucsnY9W9bnsLTgT1jJ8tr/qcPNyrYh440KgoTDTJ6CdoEIM+rntzhEchDl+FFiRKBYFwBvZY3YoChZx66Z75LA/GCxIXafXir00Z6WEZrnTK8EsFJ0VADMsDBAnLn1k8ft9gY6sTuzEJaIJHSGeQd0GQOsisOpllilxHA1irR1mzQlRjZDqUwFDzenXke7Mxz16HGMrSel8WjFtTblIlLQGiW8vStmDhxdAPWTmkolNooRKGUCiEMQ9xcehsv2RjJK0uw8/J8KAy0qjLbhKI6IZ2tBELR33BVZ4t8amChUKMPaa5k0T3cBaCiw1BfK7r3Uuqw6oySqtOkOKwuBK6xEdB6pmF44ySG2pOBwlHqFXQU9MHUQRJmtPKzHF80gKJkziiqqPTtM5bc44xIVzKZoYKaxQgWH4jZdjdLll4iQCSkrewlU5ok9Avl7iqgRRzUhUEUi+D9TYtK06iFoa+H0l04QXHP41TdSMTopjL7W9p+yDUo9ErUl3zjLipTQJ0pDRIwsTptemrHLgIyIII38w6vRvqWCjyEK3apzI/TGVz5viSGfTwx2xRbtDhdfc3PxUKmPkAFZrsukfaKg6EqM2yukDt9I52pJpBlkDZOhy2zc6yLdVKYpaB+2lZxDGxHRpv4uwcH1YRs87IEvLpJEjo7TpI3cbj97LGwaDg+E77aiwK4vfmD77rqyXSFs6MNUZgF39qzBkZcYycRt/mZdSyiL8zF71EQvPS+jUO2B3R+amLgnNwePhGDGN2Z1BT2NPWTlgZwG8Yqa9jrdIfanKhUMKOr8Ne7auuKrAY/RDxwQfKEXz3WdWVee2iqHud8qOBNta1cG5ddtjfRxRAzmee3ll0qzf5qS3e+nMPNa4oaJeMyp+u6STi57S9qajywK+TV/9MnyTUEDCsejB9KxVMjIw89R9wcZ0bVxt1juaanT/agd/EQSBIQn+fAHBXmOf6IsXIH/9IouB4WV9Dzw6hsddro+wMzqhOiQvOyBAuv1WDEZVKUdDPMsLecUZjQPCcEYBmiZB0Nw6BGoB0BJDe57PW6gGS77vmFtbOZvzTNnrTPjdZsjN9AF+vn0Lp+biEzUDvYaGLVjK/qZW4z8vacBn+0uO2d6avXQbRi9Yl+sK+ePXq630NuILiY0wi4UG2p4PLIFzXurBoQ/Uzq4ZqAoiwxTQnSGgPBEOPpWL9z5EoDeS23JDwMgweHQlpH65yL1LgACAidofJzV0u8y54XE46UNKNjxXHpj0lLaU0pMimIXBo6Xw6KnPJgXVfp2ChVpjVQSiMvp/LSfRfjFNfnMi+qd1kONJlMnSZOPNhouQMqx3dMs7dGg/50+wKumK/K7Wk/PW2XanqZ3KR1NqsGBLt6VtvLp+TrVtvBGnDELpR5cbAqBAU2ZubogHxMKw3NPaHUo7hbzGBliwayhRplkH/x8+yXdfnn+lj8ciJfBI15Qc6Cg2hcSq/Ld74iSbomq2FWtP+qMLl0vmb5dpmR17V1nYpTza/Z7tB/Jt5C+zX7anIqPkzXu7L0xoDIXHFUFgH1zeLjfhTOMgEF5Kc+kBGPfeOkFu0Wi2y/W2/L2c3i7/gvlJ+ysv41AR3UZPORSHt+omcRm5IReqFigvcuWx4mJprkN61q8GGmLcrzFkkImUwYxN/y4++jDEImoBjEoTieNvrXEUvaRC18bWhT4582/hEM1sPd+nGbl6fDuGDUoKIA81Qcj/lj0Sc0KU9PD9mXold0Kabr9q5bLGG5XpRZTr4vc/YGfr8mvyJbq9Nmw7+RxO5iRVAd56tm5N0Wf9LdUlyamiez5drJaCv7Q/GH2dlSvLSwh4ZjgUeuTps+OBqXKUBMbuAWWv4dHHwmOykIZBRiqCa0gUK4lybYEHvZSt8TUu7wXQmz6zdvbrNfPv724Q2qmSl4sdvKXzvzynPjxHMTfx65XpQEEfyWRr6bhr7rzcMocAN/7iZBErpu6EdRlKZplMIl8zCdYxQu88MXcod/Gxfvr/8nu7v/eHv960329v7mfYbFTDtDfoTvWSbEOsnmx2NxKDM/crOHNYl5RhA/5eXvs9q1VtjSB+uPs9fX795lrz9+uL+9fn1v8P0+AGkU+EkQJpHvu2Hih2nszb0kDVPS43RILJaErkH+1iO9kxBCsjVoL1ec5VD861SAVYCdLvL1YZcxWyGk9FrQEb1lZNTdAEhKe7C5AlU+jvqR0qnIG9cBRJA+TDj7gMIIZDkVBWB81SAZnABtBYMVxGa5VcCKjZ+cHckXonx3GldIyRzrWHBp8l1Cpl9Ig2mO95TZsdgUCwgYDfUga9JCmAlMz5WSY3fdbKgXpngAb3XaaPKCHRlFM2zGo5VeVgxixs410osEQXfmaOX9zc27m1+v728yEmn6v0DM97w4ieahG0NQCXw3Tv3Am8eJF3shzmfIQt3OLJZ852V/u/7w5t3NrUlkg7AWul6Uuv488dMw8sMkiuI09OdpHCRzz0vjOPF8YkHt6YJHlDdKXbQs9G/fIT7BS/OWsmpQXL95//Y+u/nHzQeToO75qZu48wCkj9wgiJJwnoRpd1rkct48rcubP4otyV2Wdl1dqxizcYjBE03uEMToAiXlsdc9ULd4oglRdKUfF0l+vbnPfnn38fV/ZR9+e/+LkUF7YZi66dwDFwqiyA9c1wuDNHH9IIxc303SngqFa7ha+v7t+5u7++v3fzdxp9Cfh3M3SAI/9uM4hGor9T1gI0qSNJn7CfwbeXDAzMyQCYwgIPk11IM3d3cGPCADGDuS1AvAupM0DKH4C1M3cL0kjlLP9eMQjcMgqBAGeJ1kzkLsQ/k5j4LYTd0onHth4iEK88T1AjdxYz/05n7qu25qwcfdzX//dvPhtRUWXjT3vTksE4Dcc6jYAIQoAKZSfx7Nw9jDj5CRKAxSfFOcISb3UBa//fXD9f1vtzcGKuFG6adx5Aeh6yaASOLFvp8k8Mc8MYWhKH/Z7BZfPpyeHooDOrZl7PlVJaAEoBGFpEr2dvJSsk6f1RRVMSk1rwMzdn0JUVSPQriC4qlAlZFgbBM/HVpHdo+eidHqKuS6UAw3+1qshZBiPw9omdlWmCbJ8hnrRlZQK0sFqVRhjRTtfv0EVUb+REalq9PGpsLkUlU0FIEmcAhBuTIEeS47pr1qMH9bMPWewy0aggy3oQYpBfQf7xwSPwzASWRjtBThqIuUssme3Ute55tNcbheLsHYSPixdxKVhCLROB9RCJ/FRWorCKVwL5wkcdQWGZE6tJQUwH+of9TYYegNcg89KUU0nJ0Uh6znBQNcc5OkED6RG+ceuy0Z4XAiilAjHUQlfR4Xqa/B1DxxGqlBzUUZZkx1lqnLKcD/WEepM8QwnEY6RkwRz3ZuOIm73GFlv12MTCcNKopg4xymTpubWWXMOE6DVEjH0aAfJQGTSrp7zgZ1V3MRoSEenSbJK811qJ0D1/ZJvI2YAv4PdZomRwzGieRj1GoCAoRowT80zdx/FVvcw5p2mYAizzhvkciexVEU+kIdGh/p3nEmXrmV9kjFkK4olSVAt3QnzN49NHQUoH+oZ1TMFLe8qxvkFDpCqlj8Bg60SyUUrqBjr2+iHPnZJqNiKeMMnMnc3Xx4k8Hw9Q63n+8/ZrCz0b+VEgYBzDlh5pfEaeAGYTCfu4k3j1MYBYZBAgM302kb3/i+vbl+YzLkc9107sbzIEjc2PWS2HVD3039OMaUQ2y4O7Pw9f55+/beZKroRylsYXhJ5PppErqRixLGcezDPNFwoHhXbJfvC3J/zf3unXf37Yh1OtrC6rSxGaW0EFJsbZ9/2+zypdF77ZF/fj4dgX3v3ErFPQxzF4XNpZ1pApAyeQjXfdvDZrijuwGUaFgXpe5ghzZ/BE/Ol0OQla5W4BwR+iWOpo/7CvFG0PefceuDbI4PDPoK/aERX0NEAdewCR24HTY0HlamMCItKKIL/Ujz6T/yzQmMvNvhpOg+cILL+PjnYV2S1WwjDgWDXn5+3V3yZ166YRlv3jgFyXh3h/FiWUhfJ/OZPqFbuQ6/F8RBt+rfoFeoz64Pj0NGghoiigLwc9ylRu47awqM8vxkozszMMxzbEwDOGZfjpLxHTPjoz7KJfTY+aojkji6S4MOYgry8uNAUDB2gj/eg1WubovydNiizi09WUtGEYvdvIO0O0XCcMzONTInCYKBIVnlHe+O/PjX7N3H19fv7pBbtvsFJgt9iQghaJHWSqfvl3GRagMD2FkbhTmnbfMEGUT9qpGjUSkSEto/g2uNByLfGWRGISKoD4QEVYyPzkKgZumUQaJ9aByiOrOUQ7EqDsV2UQyK55zrTuOfBBe6wpnAwXfKrLD97HjTjr29sBFtX9pYnTY2jQ9CXoV5cHSyFSAWGYtQ3aOY+cQv2QOZUyJknCRHQdRc5UwYRefAaMzkGFtrvgsi6vdLZxSagp+BIGLGxDiFbyJTAxV/xD8hj/hHlxcGHqeTsOvJXgOSqn+x+qaRBA0IybyNzZecjYGgtyYHCXNrvM+Bc+eoZpTdMgTJAlOjyGJkwv2fINP90LqmmJE9gjzzLynn4qeLhAdg53l49j7SHjY7FHQ0pGv1PKiqWHHAQ6dhbSBTH9rqNWkohbnhmESqswFpJo3VDE3h4+3TfrNerMuB7Ws7LUU22UTP30spTA1upXRUFKFYjO8eYkysrmm7IkVE2rh4jXywgurRPshrSdtEJ2gi6z2R/BUdn0gcsXibp0FaU3juccfVaWNT2mpJD4SDpzyMZswGWxqicRWtwrMojurua4Arm07eQmQeXqvpuRkIoSjVGu8f4pkpJKWab1Q6aOQjeXKaZDZjwbPhmHbIj3RhzsRAwNttVgLcFuwzgEyKqLqJryAC4vbt6rQZ7PMMP0J/cgxZlSZ6fQJMd5WmC6+SM5DoKqkGqrRgyiqNfic8AK0r0/xAbA4OLNMI+Xqd9gRbI7Db2PqcNr8TgkcaiYiS93syA89aaPIsPHeXCNJ83BeCD6roKMcTlXQaYgoMskWDIhfyA9Mr5jEVFrilQnYqRxatlKvRRZ1CRhZL8Fm9dmqEKs5TrlHmab3mN9ICYj882Ku0bSIVOC1XN0+vPvRbzAVYhXKego0y3eOXq9NmSPRWaQ8EBGMBjoYwsqmA1EP3NCUbZdrEQ0ehIi9wLmTE6NEgqelMMK3GvkpSo6/bDCZPajOmX33MHwU3pXwuoPu/AQxi41O+3mbHxY7cuZNl5M8Mos3+sCbp1f2autL/PE/6w+RXD2iJfRsgv80f6cOZ4iBssn/67uT7rDzkiy/r7WPGd64eD7vT3rmCBMPjEHc7sAuK3RULQ8zrlNF/d71kQVVYLPryZFRFcTcpVaF0A++ygGDgvLBVX7wShQG6UZMgD6jtJOOpyyhzGSuXU5UHoXSCIUkGNfbIrYFR/CjREYAGdqTBbDdpX30mAFOd2XRiOrLCPwz0bcQu1wxMAoxsTpoC2LEgjCO55DdGsTClq5aMERNkpbZOtTmQDJTs20rHZzgDpZTYUUyOchNUCblb0qBpcmbV1XRkRfDsD8k23Ir8YQCwRJfr26zoNkZBkDUupLpJh029BZBZtPlZINEPsAHZ8gVL+yJUTEvWwhxsuLXJpTZ0LYofiSy+mAvDe9CbIA2sV0c3rgdBmy+F+yEEpTDNA1jtO+aMPUCgqXEupOmbRkNJ8AjKdNRQCBMM1avs04lE1sOX/RC6Eq80nzC6wv7tNN9P2Oe7z1b+2k/X43QNGAZzr3cVUVvYsogvNmQFvv0w2JAVQdYOBXzDD5pDBGtpzUxobWK6QmtWMHjc1eJetzDgF4JU3RrihjXwAhImDcyNz0AZCjiPUe/Hw4htliSFtU3NdPDy81QM8/ALILx4BXThXwGG89wdhY2w4Cqs0f48kriGb+NI38O3jvTFqwtJEAr+SwsReAkYB5ejGxSJffK6VwwhsdQSKBlFuLqdDfYRdo2+XsbYfHyOT+L14WMph44wUbBrqEQoVepxKoFjarxmDi/yQH8cARLGZC2SoQ1ZEZ6m5dam2LZhN+alhhW7Pq/lUijEVKWxmssmyUr89hMWrtfPMNSDdWtIG0UBD0BWydCWshz/e2O0EXHmG8LaDBzYiC6HAxILdeXxhElgkOjKYPQFe1ueZdpjgdbw7XNMJuUbsAa+Be0z8G08vOrBWwNJMCiJS+vwXJJCGNCGkmEeH+Bzh5jE5w2XHxCiJH77CZ+HYUitfF9rRm6YX28XhyI/FvSrH2b01gM7dw148zHvBX8CwsR6QIxVsSlf9nkQlF714O25wWWtzquHwf6kYEVX1AgG0kuEeQvquW2w2qRH3JtpQgEWqXoLgwJZFnbyWJS21mG3msg//cDLhLnPwzZsU6MsxhpA/sNIehWXxIghm+EUzLinkxnFx5sxLnlew5pZYLKIHx5w1rCN5u3IwC9kmBevrIoce9qwhoCkN4sZkmdmLQzNxCzsQIH0y0zOwIj7SHPzACisO/9eRHTEB6VfeaXKFyGCqSFlnD16wtL9KboEhed+0uhEo+KgpGnRt3t+W0AX9mlnQwaURaqYnDJChLmYfuPn5+fn/wcT8KyIieoAAA==" - } \ No newline at end of file diff --git a/crates/rpc/fixtures/0.6.0/class_at/sierra.json b/crates/rpc/fixtures/0.6.0/class_at/sierra.json deleted file mode 100644 index cc5c2c6c7f..0000000000 --- a/crates/rpc/fixtures/0.6.0/class_at/sierra.json +++ /dev/null @@ -1,6650 +0,0 @@ -{ - "abi": "[\n {\n \"type\": \"function\",\n \"name\": \"test\",\n \"inputs\": [\n {\n \"name\": \"arg\",\n \"ty\": \"core::felt\"\n },\n {\n \"name\": \"arg1\",\n \"ty\": \"core::felt\"\n },\n {\n \"name\": \"arg2\",\n \"ty\": \"core::felt\"\n }\n ],\n \"output_ty\": \"core::felt\",\n \"state_mutability\": \"external\"\n },\n {\n \"type\": \"function\",\n \"name\": \"empty\",\n \"inputs\": [],\n \"output_ty\": \"()\",\n \"state_mutability\": \"external\"\n },\n {\n \"type\": \"function\",\n \"name\": \"call_foo\",\n \"inputs\": [\n {\n \"name\": \"a\",\n \"ty\": \"core::integer::u128\"\n }\n ],\n \"output_ty\": \"core::integer::u128\",\n \"state_mutability\": \"external\"\n }\n]", - "contract_class_version": "0.1.0", - "entry_points_by_type": { - "CONSTRUCTOR": [], - "EXTERNAL": [ - { - "function_idx": 0, - "selector": "0x22ff5f21f0b81b113e63f7db6da94fedef11b2119b4088b89664fb9a3cb658" - }, - { - "function_idx": 1, - "selector": "0x1fc3f77ebc090777f567969ad9823cf6334ab888acb385ca72668ec5adbde80" - }, - { - "function_idx": 2, - "selector": "0x3d778356014c91effae9863ee4a8c2663d8fa2e9f0c4145c1e01f5435ced0be" - } - ], - "L1_HANDLER": [] - }, - "sierra_program": [ - "0x302e312e30", - "0x1c", - "0x52616e6765436865636b", - "0x0", - "0x556e696e697469616c697a6564", - "0x1", - "0x1", - "0x0", - "0x4761734275696c74696e", - "0x0", - "0x556e696e697469616c697a6564", - "0x1", - "0x1", - "0x2", - "0x66656c74", - "0x0", - "0x556e696e697469616c697a6564", - "0x1", - "0x1", - "0x4", - "0x4172726179", - "0x1", - "0x1", - "0x4", - "0x456e756d", - "0x3", - "0x0", - "0x39a7936ed480188b5481fdccbc2e15e79f8bbae8caee03dda25f96e0b91d2c5", - "0x1", - "0x6", - "0x1", - "0x6", - "0x53797374656d", - "0x0", - "0x537472756374", - "0x1", - "0x0", - "0x2ee1e2b1b89f8c495f200e4956278a4d47395fe262f27b52e5865c9524c08c3", - "0x456e756d", - "0x3", - "0x0", - "0xe3db735044fe6680868d75a64336beaf045a28972f57a2d1ec1729a1c83df5", - "0x1", - "0x4", - "0x1", - "0x9", - "0x536e617073686f74", - "0x1", - "0x1", - "0x6", - "0x753332", - "0x0", - "0x456e756d", - "0x3", - "0x0", - "0x3288d594b9a45d15bb2fcb7903f06cdb06b27f0ba88186ec4cfaa98307cb972", - "0x1", - "0x9", - "0x1", - "0x9", - "0x4275696c74696e436f737473", - "0x0", - "0x456e756d", - "0x3", - "0x0", - "0x252abff3d38d1e52c89dc9571efeaf319237c1176954e699022dcd15c016539", - "0x1", - "0x4", - "0x1", - "0x6", - "0x75313238", - "0x0", - "0x556e696e697469616c697a6564", - "0x1", - "0x1", - "0x10", - "0x456e756d", - "0x3", - "0x0", - "0x1909a2057b9c1373b889e003e050a09f431d8108e0659d03444ced99a6eea68", - "0x1", - "0x10", - "0x1", - "0x9", - "0x456e756d", - "0x3", - "0x0", - "0x25983c4a3e91bf704ea84fea5b1cfd626c9d0557d89e0cb9ac13f165dbbf3e5", - "0x1", - "0x10", - "0x1", - "0x6", - "0x456e756d", - "0x3", - "0x0", - "0x85fcccac0ca6213b88c0b6c11a83d0f4c9c6b3338aa01feec61fbda1aa30e4", - "0x1", - "0x9", - "0x1", - "0x6", - "0x436f6e747261637441646472657373", - "0x0", - "0x53746f726167654261736541646472657373", - "0x0", - "0x53746f7261676541646472657373", - "0x0", - "0x456e756d", - "0x3", - "0x0", - "0x3ecd5f7a9ffb17c6f59022c7837161ff4c29b2b8d1187de9ec9a612e1ace783", - "0x1", - "0x4", - "0x1", - "0x6", - "0x456e756d", - "0x3", - "0x0", - "0x2f5bfc8c89cba75131e402b1bca558b82eb61532362a092e246ea6e476d1dbd", - "0x1", - "0x9", - "0x1", - "0x6", - "0x537472756374", - "0x3", - "0x0", - "0x2ee1e2b1b89f8c495f200e4956278a4d47395fe262f27b52e5865c9524c08c3", - "0x1", - "0x10", - "0x1", - "0x10", - "0x456e756d", - "0x3", - "0x0", - "0x2915f2aefa24c6757069a0fff13871cd63c473d98ec8c33ac4627d600f8663f", - "0x1", - "0x6", - "0x1", - "0x6", - "0x7b", - "0x616c6c6f635f6c6f63616c", - "0x1", - "0x1", - "0x0", - "0x616c6c6f635f6c6f63616c", - "0x1", - "0x1", - "0x2", - "0x616c6c6f635f6c6f63616c", - "0x1", - "0x1", - "0x4", - "0x66696e616c697a655f6c6f63616c73", - "0x0", - "0x7265766f6b655f61705f747261636b696e67", - "0x0", - "0x6765745f676173", - "0x0", - "0x6272616e63685f616c69676e", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x2", - "0x6a756d70", - "0x0", - "0x64726f70", - "0x1", - "0x1", - "0x5", - "0x64726f70", - "0x1", - "0x1", - "0x6", - "0x64726f70", - "0x1", - "0x1", - "0x1", - "0x64726f70", - "0x1", - "0x1", - "0x3", - "0x61727261795f6e6577", - "0x1", - "0x1", - "0x4", - "0x66656c745f636f6e7374", - "0x1", - "0x2", - "0x4f7574206f6620676173", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x4", - "0x61727261795f617070656e64", - "0x1", - "0x1", - "0x4", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x7", - "0x2", - "0x1", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x8", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x7", - "0x73746f72655f6c6f63616c", - "0x1", - "0x1", - "0x0", - "0x73746f72655f6c6f63616c", - "0x1", - "0x1", - "0x2", - "0x61727261795f706f705f66726f6e74", - "0x1", - "0x1", - "0x4", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0xa", - "0x2", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x6", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0xa", - "0x7374727563745f636f6e737472756374", - "0x1", - "0x1", - "0x9", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0xa", - "0x2", - "0x1", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0xa", - "0x7374727563745f6465636f6e737472756374", - "0x1", - "0x1", - "0x9", - "0x66656c745f636f6e7374", - "0x1", - "0x2", - "0x496e70757420746f6f2073686f727420666f7220617267756d656e7473", - "0x73746f72655f6c6f63616c", - "0x1", - "0x1", - "0x4", - "0x64726f70", - "0x1", - "0x1", - "0x4", - "0x736e617073686f745f74616b65", - "0x1", - "0x1", - "0x6", - "0x61727261795f6c656e", - "0x1", - "0x1", - "0x4", - "0x7533325f636f6e7374", - "0x1", - "0x2", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0xc", - "0x7533325f6571", - "0x0", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0xd", - "0x2", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0xd", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0xd", - "0x2", - "0x1", - "0x626f6f6c5f6e6f745f696d706c", - "0x0", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0xd", - "0x64726f70", - "0x1", - "0x1", - "0x9", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x3", - "0x66656c745f636f6e7374", - "0x1", - "0x2", - "0x496e70757420746f6f206c6f6e6720666f7220617267756d656e7473", - "0x6765745f6275696c74696e5f636f737473", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0xe", - "0x6765745f6761735f616c6c", - "0x0", - "0x72656e616d65", - "0x1", - "0x1", - "0x2", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x4", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0xf", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x5", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x7", - "0x2", - "0x0", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x6", - "0x616c6c6f635f6c6f63616c", - "0x1", - "0x1", - "0x10", - "0x64726f70", - "0x1", - "0x1", - "0x11", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x7", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x12", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x10", - "0x73746f72655f6c6f63616c", - "0x1", - "0x1", - "0x10", - "0x64726f70", - "0x1", - "0x1", - "0x10", - "0x72656e616d65", - "0x1", - "0x1", - "0x0", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x8", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x13", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x9", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x9", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0xa", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0xf", - "0x2", - "0x1", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0xf", - "0x66656c745f636f6e7374", - "0x1", - "0x2", - "0x1", - "0x647570", - "0x1", - "0x1", - "0x4", - "0x66656c745f616464", - "0x0", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0xb", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x14", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0xf", - "0x2", - "0x0", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x12", - "0x2", - "0x1", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x12", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0xc", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x12", - "0x2", - "0x0", - "0x636f6e74726163745f616464726573735f636f6e7374", - "0x1", - "0x2", - "0x11", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x15", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0xd", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x13", - "0x2", - "0x1", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x13", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x13", - "0x2", - "0x0", - "0x753132385f746f5f66656c74", - "0x0", - "0x66656c745f636f6e7374", - "0x1", - "0x2", - "0x0", - "0x73746f726167655f626173655f616464726573735f636f6e7374", - "0x1", - "0x2", - "0x1275130f95dda36bcbb6e9d28796c1d7e10b6e9fd5ed083e0ede4b12f613528", - "0x73746f726167655f616464726573735f66726f6d5f62617365", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x17", - "0x73746f726167655f726561645f73797363616c6c", - "0x0", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x18", - "0x2", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x18", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x18", - "0x2", - "0x1", - "0x72656e616d65", - "0x1", - "0x1", - "0x18", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0xe", - "0x73746f726167655f77726974655f73797363616c6c", - "0x0", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x19", - "0x2", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x19", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x19", - "0x2", - "0x1", - "0x72656e616d65", - "0x1", - "0x1", - "0x19", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0xf", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x14", - "0x2", - "0x1", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x14", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x14", - "0x2", - "0x0", - "0x75313238735f66726f6d5f66656c74", - "0x0", - "0x7374727563745f636f6e737472756374", - "0x1", - "0x1", - "0x1a", - "0x64726f70", - "0x1", - "0x1", - "0x1a", - "0x72656e616d65", - "0x1", - "0x1", - "0x12", - "0x63616c6c5f636f6e74726163745f73797363616c6c", - "0x0", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x1b", - "0x2", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x1b", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x1b", - "0x2", - "0x1", - "0x72656e616d65", - "0x1", - "0x1", - "0x1b", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x10", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x7", - "0x66656c745f636f6e7374", - "0x1", - "0x2", - "0x52657475726e6564206461746120746f6f2073686f7274", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x11", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x18", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x19", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x1b", - "0x2f7", - "0x0", - "0x0", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x2", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x2", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xb", - "0x0", - "0x2", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x3", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x4", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x5", - "0x2", - "0x0", - "0x1", - "0x2", - "0xffffffffffffffff", - "0x2", - "0xe", - "0xf", - "0xc", - "0x2", - "0x10", - "0x11", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x7", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x8", - "0x1", - "0xf", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x9", - "0x0", - "0x1", - "0x1d", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xc", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xd", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0xf", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x10", - "0x1", - "0x13", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x11", - "0x2", - "0x12", - "0x13", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x14", - "0x0", - "0x12", - "0x1", - "0x14", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x0", - "0x7", - "0x1", - "0x10", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x8", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x0", - "0x14", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x1", - "0x4", - "0x16", - "0x17", - "0x18", - "0x19", - "0x0", - "0x15", - "0x2", - "0x5", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x16", - "0x2", - "0x7", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x17", - "0x1", - "0x3", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x1a", - "0x1b", - "0x25", - "0x1", - "0x1c", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x18", - "0x1", - "0x1b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x19", - "0x1", - "0x1a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x0", - "0x1a", - "0x1", - "0x1d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1f", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x20", - "0x0", - "0x1c", - "0x1", - "0x20", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x21", - "0x0", - "0x19", - "0x1", - "0x1c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x0", - "0x1a", - "0x1", - "0x21", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1f", - "0x0", - "0x1d", - "0x1", - "0x1f", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x22", - "0x2e", - "0x1", - "0x23", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0x22", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x9", - "0x0", - "0x1", - "0x3e", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x1e", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1e", - "0x1", - "0x23", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x24", - "0x0", - "0x1f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x25", - "0x0", - "0x10", - "0x1", - "0x25", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x25", - "0x0", - "0x11", - "0x2", - "0x24", - "0x25", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x26", - "0x0", - "0x12", - "0x1", - "0x26", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x27", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x28", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x29", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2a", - "0x0", - "0x14", - "0x1", - "0x27", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2b", - "0x1", - "0x4", - "0x28", - "0x29", - "0x2a", - "0x2b", - "0x0", - "0x20", - "0x2", - "0x9", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x17", - "0x1", - "0x1e", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x2c", - "0x2d", - "0x45", - "0x1", - "0x2e", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x18", - "0x1", - "0x2d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2f", - "0x0", - "0x19", - "0x1", - "0x2c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x30", - "0x0", - "0x1a", - "0x1", - "0x2f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x31", - "0x0", - "0x9", - "0x0", - "0x1", - "0x4a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x32", - "0x0", - "0x1c", - "0x1", - "0x32", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x33", - "0x0", - "0x19", - "0x1", - "0x2e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x30", - "0x0", - "0x1a", - "0x1", - "0x33", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x31", - "0x0", - "0x1d", - "0x1", - "0x31", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x34", - "0x4e", - "0x1", - "0x35", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0x34", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x0", - "0x9", - "0x0", - "0x1", - "0x5e", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x30", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1e", - "0x1", - "0x35", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x36", - "0x0", - "0x1f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x37", - "0x0", - "0x10", - "0x1", - "0x37", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x37", - "0x0", - "0x11", - "0x2", - "0x36", - "0x37", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x38", - "0x0", - "0x12", - "0x1", - "0x38", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x39", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3a", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3b", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3c", - "0x0", - "0x14", - "0x1", - "0x39", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3d", - "0x1", - "0x4", - "0x3a", - "0x3b", - "0x3c", - "0x3d", - "0x0", - "0x20", - "0x2", - "0xb", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x0", - "0x17", - "0x1", - "0x30", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x3e", - "0x3f", - "0x65", - "0x1", - "0x40", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x18", - "0x1", - "0x3f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x41", - "0x0", - "0x19", - "0x1", - "0x3e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x42", - "0x0", - "0x1a", - "0x1", - "0x41", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x43", - "0x0", - "0x9", - "0x0", - "0x1", - "0x6a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x44", - "0x0", - "0x1c", - "0x1", - "0x44", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x45", - "0x0", - "0x19", - "0x1", - "0x40", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x42", - "0x0", - "0x1a", - "0x1", - "0x45", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x43", - "0x0", - "0x1d", - "0x1", - "0x43", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x46", - "0x6e", - "0x1", - "0x47", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0x46", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x9", - "0x0", - "0x1", - "0x7e", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x42", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1e", - "0x1", - "0x47", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x48", - "0x0", - "0x1f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x49", - "0x0", - "0x10", - "0x1", - "0x49", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x49", - "0x0", - "0x11", - "0x2", - "0x48", - "0x49", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4a", - "0x0", - "0x12", - "0x1", - "0x4a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4b", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4c", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4d", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4e", - "0x0", - "0x14", - "0x1", - "0x4b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4f", - "0x1", - "0x4", - "0x4c", - "0x4d", - "0x4e", - "0x4f", - "0x0", - "0x22", - "0x1", - "0x42", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x50", - "0x51", - "0x0", - "0xb", - "0x1", - "0x50", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x23", - "0x1", - "0x51", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x52", - "0x0", - "0x24", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x53", - "0x0", - "0x25", - "0x1", - "0x52", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x52", - "0x0", - "0x20", - "0x2", - "0xd", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x26", - "0x2", - "0x52", - "0x53", - "0x2", - "0xffffffffffffffff", - "0x0", - "0x8a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x54", - "0x0", - "0x27", - "0x1", - "0x54", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x55", - "0x0", - "0x28", - "0x1", - "0x55", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x56", - "0x0", - "0x9", - "0x0", - "0x1", - "0x8e", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x57", - "0x0", - "0x29", - "0x1", - "0x57", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x58", - "0x0", - "0x28", - "0x1", - "0x58", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x56", - "0x0", - "0x2a", - "0x1", - "0x56", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x59", - "0x0", - "0x28", - "0x1", - "0x59", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x59", - "0x0", - "0x2b", - "0x1", - "0x59", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x5a", - "0x94", - "0x1", - "0x5b", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x5a", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x9", - "0x0", - "0x1", - "0xa6", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x5b", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5e", - "0x0", - "0x2d", - "0x1", - "0x5e", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x5c", - "0x5d", - "0x0", - "0x2c", - "0x1", - "0x5d", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5f", - "0x0", - "0x2e", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x60", - "0x0", - "0x10", - "0x1", - "0x60", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x60", - "0x0", - "0x11", - "0x2", - "0x5f", - "0x60", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x61", - "0x0", - "0x12", - "0x1", - "0x61", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x62", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x63", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x64", - "0x0", - "0x13", - "0x1", - "0x5c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x65", - "0x0", - "0x14", - "0x1", - "0x62", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x66", - "0x1", - "0x4", - "0x63", - "0x64", - "0x65", - "0x66", - "0x0", - "0x2f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x67", - "0x0", - "0x30", - "0x1", - "0x67", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x67", - "0x0", - "0x31", - "0x3", - "0x4", - "0x6", - "0x67", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x68", - "0x69", - "0xad", - "0x2", - "0x6a", - "0x6b", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x7", - "0x1", - "0x68", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6c", - "0x0", - "0x8", - "0x1", - "0x69", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6d", - "0x0", - "0x9", - "0x0", - "0x1", - "0xbb", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6e", - "0x0", - "0xf", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6f", - "0x0", - "0x10", - "0x1", - "0x6f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6f", - "0x0", - "0x11", - "0x2", - "0x6e", - "0x6f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x70", - "0x0", - "0x12", - "0x1", - "0x70", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x71", - "0x0", - "0x7", - "0x1", - "0x6a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x72", - "0x0", - "0x8", - "0x1", - "0x6b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x73", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x74", - "0x0", - "0x14", - "0x1", - "0x71", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x75", - "0x1", - "0x4", - "0x72", - "0x73", - "0x74", - "0x75", - "0x0", - "0x32", - "0x1", - "0x6d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7a", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7b", - "0x0", - "0x10", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7c", - "0x0", - "0x10", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7d", - "0x0", - "0x10", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7e", - "0x0", - "0x33", - "0x5", - "0x7a", - "0x7b", - "0x7c", - "0x7d", - "0x7e", - "0x1", - "0xffffffffffffffff", - "0x4", - "0x76", - "0x77", - "0x78", - "0x79", - "0x0", - "0x34", - "0x1", - "0x79", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x7f", - "0xc5", - "0x1", - "0x80", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0x7f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x81", - "0x0", - "0x9", - "0x0", - "0x1", - "0xcd", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x78", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x12", - "0x1", - "0x80", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x82", - "0x0", - "0x7", - "0x1", - "0x6c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x83", - "0x0", - "0x8", - "0x1", - "0x76", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x84", - "0x0", - "0x13", - "0x1", - "0x77", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x85", - "0x0", - "0x14", - "0x1", - "0x82", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x86", - "0x1", - "0x4", - "0x83", - "0x84", - "0x85", - "0x86", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x87", - "0x0", - "0x19", - "0x1", - "0x87", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8a", - "0x0", - "0x10", - "0x1", - "0x78", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8b", - "0x0", - "0x35", - "0x2", - "0x8a", - "0x8b", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x88", - "0x89", - "0x0", - "0x2c", - "0x1", - "0x89", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x19", - "0x1", - "0x88", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8e", - "0x0", - "0x10", - "0x1", - "0x81", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8f", - "0x0", - "0x35", - "0x2", - "0x8e", - "0x8f", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x8c", - "0x8d", - "0x0", - "0x2c", - "0x1", - "0x8d", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x36", - "0x1", - "0x8c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x90", - "0x0", - "0x7", - "0x1", - "0x6c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x91", - "0x0", - "0x8", - "0x1", - "0x76", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x92", - "0x0", - "0x13", - "0x1", - "0x77", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x93", - "0x0", - "0x14", - "0x1", - "0x90", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x94", - "0x1", - "0x4", - "0x91", - "0x92", - "0x93", - "0x94", - "0x0", - "0x0", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x3", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x4", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x5", - "0x2", - "0x0", - "0x1", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x8", - "0x9", - "0xe5", - "0x2", - "0xa", - "0xb", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x7", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x8", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x9", - "0x0", - "0x1", - "0xf3", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xc", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xd", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0xf", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x10", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x11", - "0x2", - "0xc", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x12", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0x7", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x8", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x14", - "0x1", - "0xf", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x1", - "0x4", - "0x10", - "0x11", - "0x12", - "0x13", - "0x0", - "0x22", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x14", - "0x15", - "0x0", - "0xb", - "0x1", - "0x14", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x23", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x24", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x0", - "0x25", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x15", - "0x2", - "0x5", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x16", - "0x2", - "0x7", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x26", - "0x2", - "0x16", - "0x17", - "0x2", - "0xffffffffffffffff", - "0x0", - "0x100", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x0", - "0x27", - "0x1", - "0x18", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x28", - "0x1", - "0x19", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x9", - "0x0", - "0x1", - "0x104", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x0", - "0x29", - "0x1", - "0x1b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1c", - "0x0", - "0x28", - "0x1", - "0x1c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x2a", - "0x1", - "0x1a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x28", - "0x1", - "0x1d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x2b", - "0x1", - "0x1d", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x10a", - "0x1", - "0x1f", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x1e", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x9", - "0x0", - "0x1", - "0x119", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x1f", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x22", - "0x0", - "0x2d", - "0x1", - "0x22", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x20", - "0x21", - "0x0", - "0x2c", - "0x1", - "0x21", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x23", - "0x0", - "0x2e", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x24", - "0x0", - "0x10", - "0x1", - "0x24", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x24", - "0x0", - "0x11", - "0x2", - "0x23", - "0x24", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x25", - "0x0", - "0x12", - "0x1", - "0x25", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x26", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x27", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x28", - "0x0", - "0x13", - "0x1", - "0x20", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x29", - "0x0", - "0x14", - "0x1", - "0x26", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2a", - "0x1", - "0x4", - "0x27", - "0x28", - "0x29", - "0x2a", - "0x0", - "0x2f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2b", - "0x0", - "0x30", - "0x1", - "0x2b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2b", - "0x0", - "0x31", - "0x3", - "0x4", - "0x6", - "0x2b", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x2c", - "0x2d", - "0x120", - "0x2", - "0x2e", - "0x2f", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x7", - "0x1", - "0x2c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x30", - "0x0", - "0x8", - "0x1", - "0x2d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x31", - "0x0", - "0x9", - "0x0", - "0x1", - "0x12b", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x32", - "0x0", - "0xf", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x33", - "0x0", - "0x10", - "0x1", - "0x33", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x33", - "0x0", - "0x11", - "0x2", - "0x32", - "0x33", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x34", - "0x0", - "0x12", - "0x1", - "0x34", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x35", - "0x0", - "0x7", - "0x1", - "0x2e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x36", - "0x0", - "0x8", - "0x1", - "0x2f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x37", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x38", - "0x0", - "0x14", - "0x1", - "0x35", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x39", - "0x1", - "0x4", - "0x36", - "0x37", - "0x38", - "0x39", - "0x0", - "0x37", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3a", - "0x0", - "0x2c", - "0x1", - "0x3a", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3b", - "0x0", - "0x36", - "0x1", - "0x3b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3c", - "0x0", - "0x7", - "0x1", - "0x30", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3d", - "0x0", - "0x8", - "0x1", - "0x31", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3e", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3f", - "0x0", - "0x14", - "0x1", - "0x3c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x40", - "0x1", - "0x4", - "0x3d", - "0x3e", - "0x3f", - "0x40", - "0x0", - "0x0", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x38", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x3", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x4", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x5", - "0x2", - "0x0", - "0x1", - "0x2", - "0xffffffffffffffff", - "0x2", - "0xa", - "0xb", - "0x13e", - "0x2", - "0xc", - "0xd", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x7", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x8", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x9", - "0x0", - "0x1", - "0x14d", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xc", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x39", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xd", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0xf", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x10", - "0x1", - "0x10", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x11", - "0x2", - "0xf", - "0x10", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x12", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x7", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x8", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x14", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x0", - "0x14", - "0x1", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x1", - "0x4", - "0x13", - "0x14", - "0x15", - "0x16", - "0x0", - "0x7", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x19", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x3a", - "0x2", - "0x19", - "0x1a", - "0x1", - "0xffffffffffffffff", - "0x3", - "0x4", - "0x17", - "0x18", - "0x0", - "0x16", - "0x2", - "0x7", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x15", - "0x2", - "0x5", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x3b", - "0x1", - "0x18", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x156", - "0x1", - "0x1c", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3c", - "0x1", - "0x1b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x9", - "0x0", - "0x1", - "0x164", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x17", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x39", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1e", - "0x1", - "0x1c", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x1f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x0", - "0x10", - "0x1", - "0x1e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x0", - "0x11", - "0x2", - "0x1d", - "0x1e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1f", - "0x0", - "0x12", - "0x1", - "0x1f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x20", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x21", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x22", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x23", - "0x0", - "0x14", - "0x1", - "0x20", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x24", - "0x1", - "0x4", - "0x21", - "0x22", - "0x23", - "0x24", - "0x0", - "0x22", - "0x1", - "0x17", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x25", - "0x26", - "0x0", - "0xb", - "0x1", - "0x25", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x23", - "0x1", - "0x26", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x27", - "0x0", - "0x24", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x28", - "0x0", - "0x25", - "0x1", - "0x27", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x27", - "0x0", - "0x3d", - "0x2", - "0x9", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x26", - "0x2", - "0x27", - "0x28", - "0x2", - "0xffffffffffffffff", - "0x0", - "0x170", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x29", - "0x0", - "0x27", - "0x1", - "0x29", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2a", - "0x0", - "0x28", - "0x1", - "0x2a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2b", - "0x0", - "0x9", - "0x0", - "0x1", - "0x174", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2c", - "0x0", - "0x29", - "0x1", - "0x2c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2d", - "0x0", - "0x28", - "0x1", - "0x2d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2b", - "0x0", - "0x2a", - "0x1", - "0x2b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2e", - "0x0", - "0x28", - "0x1", - "0x2e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2e", - "0x0", - "0x2b", - "0x1", - "0x2e", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x2f", - "0x17a", - "0x1", - "0x30", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x2f", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x9", - "0x0", - "0x1", - "0x18a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x30", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3e", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x33", - "0x0", - "0x2d", - "0x1", - "0x33", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x31", - "0x32", - "0x0", - "0x2c", - "0x1", - "0x32", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x34", - "0x0", - "0x2e", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x35", - "0x0", - "0x10", - "0x1", - "0x35", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x35", - "0x0", - "0x11", - "0x2", - "0x34", - "0x35", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x36", - "0x0", - "0x12", - "0x1", - "0x36", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x37", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x38", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x39", - "0x0", - "0x13", - "0x1", - "0x31", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3a", - "0x0", - "0x14", - "0x1", - "0x37", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3b", - "0x1", - "0x4", - "0x38", - "0x39", - "0x3a", - "0x3b", - "0x0", - "0x2f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3c", - "0x0", - "0x30", - "0x1", - "0x3c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3c", - "0x0", - "0x31", - "0x3", - "0x4", - "0x6", - "0x3c", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x3d", - "0x3e", - "0x191", - "0x2", - "0x3f", - "0x40", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x7", - "0x1", - "0x3d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x41", - "0x0", - "0x8", - "0x1", - "0x3e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x42", - "0x0", - "0x9", - "0x0", - "0x1", - "0x19d", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3e", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x43", - "0x0", - "0xf", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x44", - "0x0", - "0x10", - "0x1", - "0x44", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x44", - "0x0", - "0x11", - "0x2", - "0x43", - "0x44", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x45", - "0x0", - "0x12", - "0x1", - "0x45", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x46", - "0x0", - "0x7", - "0x1", - "0x3f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x47", - "0x0", - "0x8", - "0x1", - "0x40", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x48", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x49", - "0x0", - "0x14", - "0x1", - "0x46", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4a", - "0x1", - "0x4", - "0x47", - "0x48", - "0x49", - "0x4a", - "0x0", - "0x3f", - "0x1", - "0x41", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4f", - "0x0", - "0x32", - "0x1", - "0x42", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x50", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x51", - "0x0", - "0x3c", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x52", - "0x0", - "0x40", - "0x4", - "0x4f", - "0x50", - "0x51", - "0x52", - "0x1", - "0xffffffffffffffff", - "0x4", - "0x4b", - "0x4c", - "0x4d", - "0x4e", - "0x0", - "0x41", - "0x1", - "0x4e", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x53", - "0x1a6", - "0x1", - "0x54", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3c", - "0x1", - "0x53", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x55", - "0x0", - "0x9", - "0x0", - "0x1", - "0x1ad", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x12", - "0x1", - "0x54", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x56", - "0x0", - "0x7", - "0x1", - "0x4b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x57", - "0x0", - "0x8", - "0x1", - "0x4c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x58", - "0x0", - "0x13", - "0x1", - "0x4d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x59", - "0x0", - "0x14", - "0x1", - "0x56", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5a", - "0x1", - "0x4", - "0x57", - "0x58", - "0x59", - "0x5a", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5b", - "0x0", - "0x19", - "0x1", - "0x5b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5e", - "0x0", - "0x3c", - "0x1", - "0x55", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5f", - "0x0", - "0x42", - "0x2", - "0x5e", - "0x5f", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x5c", - "0x5d", - "0x0", - "0x2c", - "0x1", - "0x5d", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x36", - "0x1", - "0x5c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x60", - "0x0", - "0x7", - "0x1", - "0x4b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x61", - "0x0", - "0x8", - "0x1", - "0x4c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x62", - "0x0", - "0x13", - "0x1", - "0x4d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x63", - "0x0", - "0x14", - "0x1", - "0x60", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x64", - "0x1", - "0x4", - "0x61", - "0x62", - "0x63", - "0x64", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1", - "0x0", - "0x13", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2", - "0x0", - "0x43", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x1", - "0x2", - "0x2", - "0x3", - "0x0", - "0x21", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x8", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x13", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x44", - "0x2", - "0x8", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x3", - "0x5", - "0x6", - "0x7", - "0x0", - "0x34", - "0x1", - "0x7", - "0x2", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x1c5", - "0x1", - "0xb", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x9", - "0x0", - "0x1", - "0x1cc", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x45", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x8", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x13", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0x10", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x46", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x1", - "0x4", - "0xe", - "0xf", - "0x10", - "0x11", - "0x0", - "0x47", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x48", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x2", - "0xc", - "0x14", - "0x0", - "0x49", - "0x2", - "0x14", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x8", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x0", - "0x13", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x10", - "0x1", - "0x13", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x4a", - "0x3", - "0x18", - "0x19", - "0x1a", - "0x1", - "0xffffffffffffffff", - "0x3", - "0x15", - "0x16", - "0x17", - "0x0", - "0x4b", - "0x1", - "0x17", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x1d7", - "0x1", - "0x1c", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x1b", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x9", - "0x0", - "0x1", - "0x1df", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x45", - "0x1", - "0x1c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x8", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x0", - "0x13", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1f", - "0x0", - "0x10", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x20", - "0x0", - "0x46", - "0x1", - "0x1d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x21", - "0x1", - "0x4", - "0x1e", - "0x1f", - "0x20", - "0x21", - "0x0", - "0x47", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x22", - "0x0", - "0x49", - "0x2", - "0xc", - "0x22", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x23", - "0x0", - "0x4c", - "0x1", - "0x23", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x24", - "0x0", - "0x8", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x25", - "0x0", - "0x13", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x26", - "0x0", - "0x10", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x27", - "0x0", - "0x46", - "0x1", - "0x24", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x28", - "0x1", - "0x4", - "0x25", - "0x26", - "0x27", - "0x28", - "0x0", - "0x11", - "0x2", - "0x0", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x2c", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x19", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x43", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x1", - "0x2", - "0x5", - "0x6", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x0", - "0x0", - "0x43", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1", - "0x1", - "0x1", - "0x1", - "0x0", - "0x17", - "0x1", - "0x1", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x2", - "0x3", - "0x1f7", - "0x1", - "0x4", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x18", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x19", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x1a", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x9", - "0x0", - "0x1", - "0x1fc", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x1c", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x19", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x1a", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x1d", - "0x1", - "0x7", - "0x2", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x200", - "0x1", - "0xb", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x9", - "0x0", - "0x1", - "0x206", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x4d", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x7", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x19", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0x4e", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x1", - "0x3", - "0xe", - "0xf", - "0x10", - "0x0", - "0x7", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x10", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x14", - "0x0", - "0x4f", - "0x2", - "0x13", - "0x14", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x11", - "0x12", - "0x0", - "0x3b", - "0x1", - "0x12", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x20d", - "0x1", - "0x16", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3c", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x0", - "0x9", - "0x0", - "0x1", - "0x213", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x4d", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x0", - "0x7", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x19", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x4e", - "0x1", - "0x18", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x1", - "0x3", - "0x19", - "0x1a", - "0x1b", - "0x0", - "0x50", - "0x1", - "0x17", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1c", - "0x0", - "0x7", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x19", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x0", - "0x4e", - "0x1", - "0x1c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1f", - "0x1", - "0x3", - "0x1d", - "0x1e", - "0x1f", - "0x0", - "0x51", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x7", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x8", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xb", - "0x0", - "0x52", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x3c", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x53", - "0x5", - "0x9", - "0xa", - "0xb", - "0xc", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x4", - "0x5", - "0x6", - "0x7", - "0x8", - "0x0", - "0x41", - "0x1", - "0x8", - "0x2", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x223", - "0x1", - "0xf", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3c", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x9", - "0x0", - "0x1", - "0x22a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x54", - "0x1", - "0xf", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x7", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x13", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x14", - "0x0", - "0x55", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x1", - "0x4", - "0x12", - "0x13", - "0x14", - "0x15", - "0x0", - "0x56", - "0x1", - "0x10", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x7", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x0", - "0x13", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x55", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x1", - "0x4", - "0x17", - "0x18", - "0x19", - "0x1a", - "0x0", - "0x57", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2", - "0x0", - "0x19", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x10", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x35", - "0x2", - "0x5", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x3", - "0x4", - "0x0", - "0x2c", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x19", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x43", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x1", - "0x2", - "0x8", - "0x9", - "0x0", - "0x58", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2", - "0x0", - "0x59", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x5a", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x10", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2", - "0x0", - "0x5b", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x5c", - "0x4", - "0x0", - "0x1", - "0x2", - "0x4", - "0x2", - "0xffffffffffffffff", - "0x3", - "0x5", - "0x6", - "0x7", - "0x245", - "0x3", - "0x8", - "0x9", - "0xa", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x5d", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xb", - "0x0", - "0x8", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x13", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x5e", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x9", - "0x0", - "0x1", - "0x24a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x5f", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0x8", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x13", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x5e", - "0x1", - "0xf", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x60", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x61", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x34", - "0x1", - "0x10", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x250", - "0x1", - "0x13", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x14", - "0x0", - "0x9", - "0x0", - "0x1", - "0x256", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x45", - "0x1", - "0x13", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x0", - "0x8", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x13", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x0", - "0x46", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x1", - "0x3", - "0x16", - "0x17", - "0x18", - "0x0", - "0x4c", - "0x1", - "0x14", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x8", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x13", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x0", - "0x46", - "0x1", - "0x19", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1c", - "0x1", - "0x3", - "0x1a", - "0x1b", - "0x1c", - "0x0", - "0x58", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x59", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x5a", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x10", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x5b", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x62", - "0x5", - "0x0", - "0x1", - "0x3", - "0x5", - "0x2", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x6", - "0x7", - "0x268", - "0x3", - "0x8", - "0x9", - "0xa", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xb", - "0x0", - "0x63", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x13", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x64", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0x9", - "0x0", - "0x1", - "0x26d", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x65", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x8", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x13", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x64", - "0x1", - "0x10", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0x66", - "0x1", - "0xf", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x67", - "0x1", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x4b", - "0x1", - "0x11", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x273", - "0x1", - "0x14", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x43", - "0x1", - "0x13", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x0", - "0x9", - "0x0", - "0x1", - "0x279", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x68", - "0x1", - "0x14", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x8", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x0", - "0x13", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x0", - "0x69", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x1", - "0x3", - "0x17", - "0x18", - "0x19", - "0x0", - "0x6a", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x8", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x0", - "0x13", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1c", - "0x0", - "0x69", - "0x1", - "0x1a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x1", - "0x3", - "0x1b", - "0x1c", - "0x1d", - "0x0", - "0x6b", - "0x2", - "0x0", - "0x1", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x2", - "0x3", - "0x284", - "0x3", - "0x4", - "0x5", - "0x6", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x50", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x7", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x4e", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x9", - "0x0", - "0x1", - "0x28b", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x6c", - "0x2", - "0x5", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x0", - "0x6d", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xb", - "0x0", - "0x4d", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x4e", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x3f", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x6e", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x1", - "0x2", - "0xd", - "0xe", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x19", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x3c", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x42", - "0x2", - "0x8", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x6", - "0x7", - "0x0", - "0x2c", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x6f", - "0x4", - "0x1", - "0x2", - "0x3", - "0x6", - "0x2", - "0xffffffffffffffff", - "0x3", - "0xa", - "0xb", - "0xc", - "0x29a", - "0x3", - "0xd", - "0xe", - "0xf", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x70", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x8", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x13", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x71", - "0x1", - "0x10", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x9", - "0x0", - "0x1", - "0x29f", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x72", - "0x1", - "0xf", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x14", - "0x0", - "0x8", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x13", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x71", - "0x1", - "0x14", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x73", - "0x1", - "0x13", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x74", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x0", - "0x75", - "0x1", - "0x15", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x2a5", - "0x1", - "0x18", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x19", - "0x1", - "0x17", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2ac", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x54", - "0x1", - "0x18", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x7", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x0", - "0x8", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1c", - "0x0", - "0x13", - "0x1", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x55", - "0x1", - "0x1a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x1", - "0x4", - "0x1b", - "0x1c", - "0x1d", - "0x1e", - "0x0", - "0x7", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x22", - "0x0", - "0x19", - "0x1", - "0x19", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x23", - "0x0", - "0x3a", - "0x2", - "0x22", - "0x23", - "0x1", - "0xffffffffffffffff", - "0x3", - "0x1f", - "0x20", - "0x21", - "0x0", - "0xb", - "0x1", - "0x20", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x76", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x24", - "0x0", - "0x6e", - "0x1", - "0x21", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x26", - "0x0", - "0x10", - "0x1", - "0x24", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x27", - "0x0", - "0x77", - "0x2", - "0x26", - "0x27", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x25", - "0x0", - "0x41", - "0x1", - "0x25", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x28", - "0x2b8", - "0x1", - "0x29", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3c", - "0x1", - "0x28", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2a", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2bf", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x54", - "0x1", - "0x29", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2b", - "0x0", - "0x7", - "0x1", - "0x1f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2c", - "0x0", - "0x8", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2d", - "0x0", - "0x13", - "0x1", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2e", - "0x0", - "0x55", - "0x1", - "0x2b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2f", - "0x1", - "0x4", - "0x2c", - "0x2d", - "0x2e", - "0x2f", - "0x0", - "0x56", - "0x1", - "0x2a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x30", - "0x0", - "0x7", - "0x1", - "0x1f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x31", - "0x0", - "0x8", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x32", - "0x0", - "0x13", - "0x1", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x33", - "0x0", - "0x55", - "0x1", - "0x30", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x34", - "0x1", - "0x4", - "0x31", - "0x32", - "0x33", - "0x34", - "0x0", - "0x78", - "0x1", - "0x0", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x1", - "0x2c9", - "0x1", - "0x2", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2cd", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x45", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x46", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x1", - "0x1", - "0x5", - "0x0", - "0x4c", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x46", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x1", - "0x1", - "0x7", - "0x0", - "0x79", - "0x1", - "0x0", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x1", - "0x2d4", - "0x1", - "0x2", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x43", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2d8", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x68", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x69", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x1", - "0x1", - "0x5", - "0x0", - "0x6a", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x69", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x1", - "0x1", - "0x7", - "0x0", - "0x7a", - "0x1", - "0x0", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x1", - "0x2df", - "0x1", - "0x2", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x19", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2e3", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x12", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x14", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x1", - "0x1", - "0x5", - "0x0", - "0x36", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x14", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x1", - "0x1", - "0x7", - "0x0", - "0x3b", - "0x1", - "0x0", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x2", - "0x2eb", - "0x1", - "0x3", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3c", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2f4", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1e", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x11", - "0x2", - "0x5", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x2c", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x54", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x55", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x1", - "0x1", - "0x9", - "0x0", - "0x56", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x0", - "0x55", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xb", - "0x1", - "0x1", - "0xb", - "0x12", - "0x4", - "0x0", - "0x2", - "0x8", - "0x6", - "0x4", - "0x0", - "0x2", - "0x8", - "0x7", - "0x0", - "0x1", - "0x2", - "0x3", - "0x0", - "0x4", - "0x0", - "0x2", - "0x8", - "0x6", - "0x4", - "0x0", - "0x2", - "0x8", - "0x7", - "0x0", - "0x1", - "0x2", - "0x3", - "0xdc", - "0x4", - "0x0", - "0x2", - "0x8", - "0x6", - "0x4", - "0x0", - "0x2", - "0x8", - "0x7", - "0x0", - "0x1", - "0x2", - "0x3", - "0x134", - "0x1", - "0x8", - "0x2", - "0x8", - "0x9", - "0x0", - "0x1b8", - "0x5", - "0x2", - "0x8", - "0x4", - "0x4", - "0x4", - "0x4", - "0x2", - "0x8", - "0x4", - "0xf", - "0x0", - "0x1", - "0x2", - "0x3", - "0x4", - "0x1bc", - "0x2", - "0x6", - "0x4", - "0x2", - "0x6", - "0x9", - "0x0", - "0x1", - "0x1e7", - "0x0", - "0x1", - "0x9", - "0x1ee", - "0x2", - "0x0", - "0x6", - "0x3", - "0x0", - "0x6", - "0x12", - "0x0", - "0x1", - "0x1f1", - "0x4", - "0x0", - "0x2", - "0x8", - "0x10", - "0x4", - "0x0", - "0x2", - "0x8", - "0x13", - "0x0", - "0x1", - "0x2", - "0x3", - "0x218", - "0x2", - "0x6", - "0x10", - "0x2", - "0x6", - "0x9", - "0x0", - "0x1", - "0x230", - "0x2", - "0x2", - "0x8", - "0x3", - "0x2", - "0x8", - "0xf", - "0x0", - "0x1", - "0x239", - "0x3", - "0x2", - "0x8", - "0x4", - "0x3", - "0x2", - "0x8", - "0x14", - "0x0", - "0x1", - "0x2", - "0x25b", - "0x2", - "0x0", - "0x4", - "0x2", - "0x0", - "0x12", - "0x0", - "0x1", - "0x27e", - "0x5", - "0x0", - "0x2", - "0x8", - "0x15", - "0x10", - "0x4", - "0x0", - "0x2", - "0x8", - "0x13", - "0x0", - "0x1", - "0x2", - "0x3", - "0x4", - "0x28e", - "0x1", - "0x18", - "0x1", - "0xf", - "0x0", - "0x2c5", - "0x1", - "0x19", - "0x1", - "0x14", - "0x0", - "0x2d0", - "0x1", - "0x1b", - "0x1", - "0x7", - "0x0", - "0x2db", - "0x2", - "0x12", - "0x4", - "0x1", - "0x13", - "0x0", - "0x1", - "0x2e6" - ] -} \ No newline at end of file diff --git a/crates/rpc/fixtures/0.6.0/class_hash/at_block.json b/crates/rpc/fixtures/0.6.0/class_hash/at_block.json deleted file mode 100644 index f97591b88c..0000000000 --- a/crates/rpc/fixtures/0.6.0/class_hash/at_block.json +++ /dev/null @@ -1 +0,0 @@ -"0x636c61737320312068617368" \ No newline at end of file diff --git a/crates/rpc/fixtures/0.6.0/class_hash/latest.json b/crates/rpc/fixtures/0.6.0/class_hash/latest.json deleted file mode 100644 index 36ae8ff312..0000000000 --- a/crates/rpc/fixtures/0.6.0/class_hash/latest.json +++ /dev/null @@ -1 +0,0 @@ -"0x636c61737320302068617368" diff --git a/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1.json b/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1.json deleted file mode 100644 index a74ad5aa90..0000000000 --- a/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1.json +++ /dev/null @@ -1,32 +0,0 @@ -[ - { - "gas_consumed": "0x5d09", - "gas_price": "0x1", - "overall_fee": "0x5e89", - "unit": "WEI" - }, - { - "gas_consumed": "0x12", - "gas_price": "0x1", - "overall_fee": "0x1d2", - "unit": "WEI" - }, - { - "gas_consumed": "0xe", - "gas_price": "0x1", - "overall_fee": "0x10e", - "unit": "WEI" - }, - { - "gas_consumed": "0xa", - "gas_price": "0x1", - "overall_fee": "0x10a", - "unit": "WEI" - }, - { - "gas_consumed": "0xe", - "gas_price": "0x2", - "overall_fee": "0x11c", - "unit": "FRI" - } -] \ No newline at end of file diff --git a/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1_1.json b/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1_1.json deleted file mode 100644 index 4beab4aa9d..0000000000 --- a/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1_1.json +++ /dev/null @@ -1,32 +0,0 @@ -[ - { - "gas_consumed": "0x36e", - "gas_price": "0x1", - "overall_fee": "0x4ee", - "unit": "WEI" - }, - { - "gas_consumed": "0x13", - "gas_price": "0x1", - "overall_fee": "0x1d3", - "unit": "WEI" - }, - { - "gas_consumed": "0xe", - "gas_price": "0x1", - "overall_fee": "0x10e", - "unit": "WEI" - }, - { - "gas_consumed": "0xa", - "gas_price": "0x1", - "overall_fee": "0x10a", - "unit": "WEI" - }, - { - "gas_consumed": "0xe", - "gas_price": "0x2", - "overall_fee": "0x11c", - "unit": "FRI" - } -] \ No newline at end of file diff --git a/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2.json b/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2.json deleted file mode 100644 index 8169fb7967..0000000000 --- a/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2.json +++ /dev/null @@ -1,32 +0,0 @@ -[ - { - "gas_consumed": "0x5d0b", - "gas_price": "0x1", - "overall_fee": "0x5e8b", - "unit": "WEI" - }, - { - "gas_consumed": "0x16", - "gas_price": "0x1", - "overall_fee": "0x1d6", - "unit": "WEI" - }, - { - "gas_consumed": "0x10", - "gas_price": "0x1", - "overall_fee": "0x110", - "unit": "WEI" - }, - { - "gas_consumed": "0xb", - "gas_price": "0x1", - "overall_fee": "0x10b", - "unit": "WEI" - }, - { - "gas_consumed": "0x10", - "gas_price": "0x2", - "overall_fee": "0x120", - "unit": "FRI" - } -] \ No newline at end of file diff --git a/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2_1.json b/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2_1.json deleted file mode 100644 index b4f4ec9261..0000000000 --- a/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2_1.json +++ /dev/null @@ -1,32 +0,0 @@ -[ - { - "gas_consumed": "0x370", - "gas_price": "0x1", - "overall_fee": "0x4f0", - "unit": "WEI" - }, - { - "gas_consumed": "0x16", - "gas_price": "0x1", - "overall_fee": "0x1d6", - "unit": "WEI" - }, - { - "gas_consumed": "0x10", - "gas_price": "0x1", - "overall_fee": "0x110", - "unit": "WEI" - }, - { - "gas_consumed": "0xb", - "gas_price": "0x1", - "overall_fee": "0x10b", - "unit": "WEI" - }, - { - "gas_consumed": "0x10", - "gas_price": "0x2", - "overall_fee": "0x120", - "unit": "FRI" - } -] \ No newline at end of file diff --git a/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_4.json b/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_4.json deleted file mode 100644 index 3c136b85b5..0000000000 --- a/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_13_4.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "gas_consumed": "0x6c8", - "gas_price": "0x2", - "overall_fee": "0xf10", - "unit": "FRI" - }, - { - "gas_consumed": "0x16", - "gas_price": "0x2", - "overall_fee": "0x1ec", - "unit": "FRI" - }, - { - "gas_consumed": "0x0", - "gas_price": "0x2", - "overall_fee": "0xbe28b", - "unit": "FRI" - }, - { - "gas_consumed": "0x0", - "gas_price": "0x2", - "overall_fee": "0xbe28b", - "unit": "FRI" - } -] \ No newline at end of file diff --git a/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_14_0.json b/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_14_0.json deleted file mode 100644 index 4d2561dd71..0000000000 --- a/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_14_0.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "gas_consumed": "0x6c9", - "gas_price": "0x2", - "overall_fee": "0xf12", - "unit": "FRI" - }, - { - "gas_consumed": "0x18", - "gas_price": "0x2", - "overall_fee": "0x1f0", - "unit": "FRI" - }, - { - "gas_consumed": "0x0", - "gas_price": "0x2", - "overall_fee": "0xcb5e8", - "unit": "FRI" - }, - { - "gas_consumed": "0x0", - "gas_price": "0x2", - "overall_fee": "0xcb5e8", - "unit": "FRI" - } -] diff --git a/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_14_1.json b/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_14_1.json deleted file mode 100644 index 4d2561dd71..0000000000 --- a/crates/rpc/fixtures/0.6.0/fee_estimates/declare_deploy_invoke_sierra_0_14_1.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "gas_consumed": "0x6c9", - "gas_price": "0x2", - "overall_fee": "0xf12", - "unit": "FRI" - }, - { - "gas_consumed": "0x18", - "gas_price": "0x2", - "overall_fee": "0x1f0", - "unit": "FRI" - }, - { - "gas_consumed": "0x0", - "gas_price": "0x2", - "overall_fee": "0xcb5e8", - "unit": "FRI" - }, - { - "gas_consumed": "0x0", - "gas_price": "0x2", - "overall_fee": "0xcb5e8", - "unit": "FRI" - } -] diff --git a/crates/rpc/fixtures/0.6.0/fee_estimates/full.json b/crates/rpc/fixtures/0.6.0/fee_estimates/full.json deleted file mode 100644 index 289fdf70ca..0000000000 --- a/crates/rpc/fixtures/0.6.0/fee_estimates/full.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "gas_consumed": "0x3938", - "gas_price": "0x2", - "overall_fee": "0x72f0", - "unit": "WEI" -} diff --git a/crates/rpc/fixtures/0.6.0/simulations/declare_deploy_and_invoke_sierra_class.json b/crates/rpc/fixtures/0.6.0/simulations/declare_deploy_and_invoke_sierra_class.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/crates/rpc/fixtures/0.6.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_13_4.json b/crates/rpc/fixtures/0.6.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_13_4.json deleted file mode 100644 index 4beb4302e1..0000000000 --- a/crates/rpc/fixtures/0.6.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_13_4.json +++ /dev/null @@ -1,447 +0,0 @@ -[ - { - "fee_estimation": { - "gas_consumed": "0x371", - "gas_price": "0x1", - "overall_fee": "0x4f1", - "unit": "WEI" - }, - "transaction_trace": { - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4f1", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4f1", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1370 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [ - { - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "compiled_class_hash": "0x69032ff71f77284e1a0864a573007108ca5cc08089416af50f03260f5d6d4d8" - } - ], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x1" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffffb0f" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x4f1" - } - ] - } - ] - }, - "type": "DECLARE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "gas_consumed": "0x17", - "gas_price": "0x1", - "overall_fee": "0x1d7", - "unit": "WEI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0xc01", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc02", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "entry_point_type": "CONSTRUCTOR", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [] - } - ], - "class_hash": "0x6f38fb91ddbf325a0625533576bb6f6eafd9341868a9ec3faa4b01ce6c4f4dc", - "contract_address": "0xc02", - "entry_point_selector": "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0xc01", - "0x0", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0" - ], - "keys": [ - "0x26b160f10156dea0639bec90696772c640b9706a47f5b8c52ea1abe5858b34d" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 2, - "pedersen_builtin_applications": 7, - "range_check_builtin_applications": 22, - "steps": 1382 - }, - "messages": [], - "result": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 2, - "pedersen_builtin_applications": 7, - "range_check_builtin_applications": 22, - "steps": 1382 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d7", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d7", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1370 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [ - { - "address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - } - ], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x2" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffff938" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x6c8" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "gas_consumed": "0x0", - "gas_price": "0x2", - "overall_fee": "0xba0f9", - "unit": "FRI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "range_check_builtin_applications": 3, - "steps": 165 - }, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "range_check_builtin_applications": 3, - "steps": 165 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0xa926e", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0xa926e", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1370 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x3" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffff56d92" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0xa926e" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - } -] diff --git a/crates/rpc/fixtures/0.6.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_14_0.json b/crates/rpc/fixtures/0.6.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_14_0.json deleted file mode 100644 index 65d9f1237f..0000000000 --- a/crates/rpc/fixtures/0.6.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_14_0.json +++ /dev/null @@ -1,447 +0,0 @@ -[ - { - "fee_estimation": { - "gas_consumed": "0x372", - "gas_price": "0x1", - "overall_fee": "0x4f2", - "unit": "WEI" - }, - "transaction_trace": { - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4f2", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4f2", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 32, - "steps": 1455 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [ - { - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "compiled_class_hash": "0x69032ff71f77284e1a0864a573007108ca5cc08089416af50f03260f5d6d4d8" - } - ], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x1" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffffb0e" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x4f2" - } - ] - } - ] - }, - "type": "DECLARE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "gas_consumed": "0x19", - "gas_price": "0x1", - "overall_fee": "0x1d9", - "unit": "WEI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0xc01", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc02", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "entry_point_type": "CONSTRUCTOR", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [] - } - ], - "class_hash": "0x6f38fb91ddbf325a0625533576bb6f6eafd9341868a9ec3faa4b01ce6c4f4dc", - "contract_address": "0xc02", - "entry_point_selector": "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0xc01", - "0x0", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0" - ], - "keys": [ - "0x26b160f10156dea0639bec90696772c640b9706a47f5b8c52ea1abe5858b34d" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 2, - "pedersen_builtin_applications": 7, - "range_check_builtin_applications": 26, - "steps": 1484 - }, - "messages": [], - "result": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 2, - "pedersen_builtin_applications": 7, - "range_check_builtin_applications": 26, - "steps": 1484 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d9", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d9", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 32, - "steps": 1455 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [ - { - "address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - } - ], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x2" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffff935" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x6cb" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "gas_consumed": "0x0", - "gas_price": "0x2", - "overall_fee": "0xc7fae", - "unit": "FRI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "range_check_builtin_applications": 3, - "steps": 168 - }, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "range_check_builtin_applications": 3, - "steps": 168 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0xb5ce4", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0xb5ce4", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 32, - "steps": 1455 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x3" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffff4a31c" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0xb5ce4" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - } -] diff --git a/crates/rpc/fixtures/0.6.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_fee_charge.json b/crates/rpc/fixtures/0.6.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_fee_charge.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/crates/rpc/fixtures/0.6.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_validate.json b/crates/rpc/fixtures/0.6.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_validate.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/crates/rpc/fixtures/0.6.0/state_updates/full.json b/crates/rpc/fixtures/0.6.0/state_updates/full.json deleted file mode 100644 index 311847daa5..0000000000 --- a/crates/rpc/fixtures/0.6.0/state_updates/full.json +++ /dev/null @@ -1,2 +0,0 @@ -{} - diff --git a/crates/rpc/fixtures/0.6.0/state_updates/pre_confirmed.json b/crates/rpc/fixtures/0.6.0/state_updates/pre_confirmed.json deleted file mode 100644 index 311847daa5..0000000000 --- a/crates/rpc/fixtures/0.6.0/state_updates/pre_confirmed.json +++ /dev/null @@ -1,2 +0,0 @@ -{} - diff --git a/crates/rpc/fixtures/0.6.0/traces/multiple_pre_confirmed_txs.json b/crates/rpc/fixtures/0.6.0/traces/multiple_pre_confirmed_txs.json deleted file mode 100644 index fe51488c70..0000000000 --- a/crates/rpc/fixtures/0.6.0/traces/multiple_pre_confirmed_txs.json +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/crates/rpc/fixtures/0.6.0/traces/multiple_txs.json b/crates/rpc/fixtures/0.6.0/traces/multiple_txs.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/crates/rpc/fixtures/0.6.0/transactions/receipt_l1_accepted.json b/crates/rpc/fixtures/0.6.0/transactions/receipt_l1_accepted.json deleted file mode 100644 index ab3d4c5010..0000000000 --- a/crates/rpc/fixtures/0.6.0/transactions/receipt_l1_accepted.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "block_hash": "0x626c6f636b2031", - "block_number": 1, - "events": [], - "execution_resources": { - "memory_holes": 5, - "pedersen_builtin_applications": 32, - "steps": 10 - }, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L1", - "messages_sent": [], - "transaction_hash": "0x74786e2031", - "type": "INVOKE" -} diff --git a/crates/rpc/fixtures/0.6.0/transactions/receipt_l2_accepted.json b/crates/rpc/fixtures/0.6.0/transactions/receipt_l2_accepted.json deleted file mode 100644 index 9d622a17c1..0000000000 --- a/crates/rpc/fixtures/0.6.0/transactions/receipt_l2_accepted.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "block_hash": "0x6c6174657374", - "block_number": 2, - "events": [], - "execution_resources": { - "memory_holes": 5, - "pedersen_builtin_applications": 32, - "steps": 10 - }, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [], - "transaction_hash": "0x74786e2033", - "type": "INVOKE" -} diff --git a/crates/rpc/fixtures/0.6.0/transactions/receipt_reverted.json b/crates/rpc/fixtures/0.6.0/transactions/receipt_reverted.json deleted file mode 100644 index 9832c4f449..0000000000 --- a/crates/rpc/fixtures/0.6.0/transactions/receipt_reverted.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "block_hash": "0x6c6174657374", - "block_number": 2, - "events": [], - "execution_resources": { - "memory_holes": 5, - "pedersen_builtin_applications": 32, - "steps": 10 - }, - "execution_status": "REVERTED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [], - "revert_reason": "Reverted because", - "transaction_hash": "0x74786e207265766572746564", - "type": "INVOKE" -} \ No newline at end of file diff --git a/crates/rpc/fixtures/0.6.0/transactions/receipt_reverted_preconfirmed.json b/crates/rpc/fixtures/0.6.0/transactions/receipt_reverted_preconfirmed.json deleted file mode 100644 index 926c7ac288..0000000000 --- a/crates/rpc/fixtures/0.6.0/transactions/receipt_reverted_preconfirmed.json +++ /dev/null @@ -1 +0,0 @@ -"pre-0.9 json rpc doesn't have access to pre-confirmed data" diff --git a/crates/rpc/fixtures/0.6.0/transactions/status_reverted.json b/crates/rpc/fixtures/0.6.0/transactions/status_reverted.json deleted file mode 100644 index 926c7ac288..0000000000 --- a/crates/rpc/fixtures/0.6.0/transactions/status_reverted.json +++ /dev/null @@ -1 +0,0 @@ -"pre-0.9 json rpc doesn't have access to pre-confirmed data" diff --git a/crates/rpc/fixtures/0.6.0/transactions/status_reverted_with_reason.json b/crates/rpc/fixtures/0.6.0/transactions/status_reverted_with_reason.json deleted file mode 100644 index 6b6cc60aa7..0000000000 --- a/crates/rpc/fixtures/0.6.0/transactions/status_reverted_with_reason.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "execution_status": "REVERTED", - "finality_status": "ACCEPTED_ON_L2" -} \ No newline at end of file diff --git a/crates/rpc/fixtures/0.6.0/transactions/txn_1.json b/crates/rpc/fixtures/0.6.0/transactions/txn_1.json deleted file mode 100644 index 7d5799c7bc..0000000000 --- a/crates/rpc/fixtures/0.6.0/transactions/txn_1.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e2031", - "type": "INVOKE", - "version": "0x0" -} \ No newline at end of file diff --git a/crates/rpc/fixtures/0.6.0/transactions/txn_preconfirmed_reverted.json b/crates/rpc/fixtures/0.6.0/transactions/txn_preconfirmed_reverted.json deleted file mode 100644 index 926c7ac288..0000000000 --- a/crates/rpc/fixtures/0.6.0/transactions/txn_preconfirmed_reverted.json +++ /dev/null @@ -1 +0,0 @@ -"pre-0.9 json rpc doesn't have access to pre-confirmed data" diff --git a/crates/rpc/fixtures/0.6.0/transactions/txn_reverted.json b/crates/rpc/fixtures/0.6.0/transactions/txn_reverted.json deleted file mode 100644 index 90255207d6..0000000000 --- a/crates/rpc/fixtures/0.6.0/transactions/txn_reverted.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e207265766572746564", - "type": "INVOKE", - "version": "0x0" -} \ No newline at end of file diff --git a/crates/rpc/fixtures/0.7.0/blocks/latest.json b/crates/rpc/fixtures/0.7.0/blocks/latest.json deleted file mode 100644 index 3e5760c6ab..0000000000 --- a/crates/rpc/fixtures/0.7.0/blocks/latest.json +++ /dev/null @@ -1,211 +0,0 @@ -{ - "block_hash": "0x6c6174657374", - "block_number": 2, - "l1_da_mode": "CALLDATA", - "l1_data_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x0" - }, - "l1_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x2" - }, - "new_root": "0x57b695c82af81429fdc8966088b0196105dfb5aa22b54cbc86fc95dc3b3ece1", - "parent_hash": "0x626c6f636b2031", - "sequencer_address": "0x2", - "starknet_version": "0.13.2", - "status": "ACCEPTED_ON_L2", - "timestamp": 2, - "transactions": [ - { - "receipt": { - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "events": [], - "execution_resources": { - "data_availability": { - "l1_data_gas": 0, - "l1_gas": 0 - }, - "memory_holes": 5, - "pedersen_builtin_applications": 32, - "steps": 10 - }, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [], - "transaction_hash": "0x74786e2033", - "type": "INVOKE" - }, - "transaction": { - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e2033", - "type": "INVOKE", - "version": "0x0" - } - }, - { - "receipt": { - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "events": [], - "execution_resources": { - "data_availability": { - "l1_data_gas": 0, - "l1_gas": 0 - }, - "memory_holes": 5, - "pedersen_builtin_applications": 32, - "steps": 10 - }, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [], - "transaction_hash": "0x74786e2034", - "type": "INVOKE" - }, - "transaction": { - "calldata": [], - "contract_address": "0x0", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e2034", - "type": "INVOKE", - "version": "0x0" - } - }, - { - "receipt": { - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "events": [], - "execution_resources": { - "data_availability": { - "l1_data_gas": 0, - "l1_gas": 0 - }, - "memory_holes": 5, - "pedersen_builtin_applications": 32, - "steps": 10 - }, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [], - "transaction_hash": "0x74786e2035", - "type": "INVOKE" - }, - "transaction": { - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e2035", - "type": "INVOKE", - "version": "0x0" - } - }, - { - "receipt": { - "actual_fee": { - "amount": "0x0", - "unit": "FRI" - }, - "events": [], - "execution_resources": { - "data_availability": { - "l1_data_gas": 0, - "l1_gas": 0 - }, - "memory_holes": 5, - "pedersen_builtin_applications": 32, - "steps": 10 - }, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [ - { - "from_address": "0xcafebabe", - "payload": [ - "0x1", - "0x2", - "0x3" - ], - "to_address": "0x0" - } - ], - "transaction_hash": "0x74786e2036", - "type": "INVOKE" - }, - "transaction": { - "account_deployment_data": [], - "calldata": [], - "fee_data_availability_mode": "L1", - "nonce": "0x0", - "nonce_data_availability_mode": "L1", - "paymaster_data": [], - "resource_bounds": { - "l1_gas": { - "max_amount": "0x0", - "max_price_per_unit": "0x0" - }, - "l2_gas": { - "max_amount": "0x0", - "max_price_per_unit": "0x0" - } - }, - "sender_address": "0x636f6e74726163742032202873696572726129", - "signature": [], - "tip": "0x0", - "transaction_hash": "0x74786e2036", - "type": "INVOKE", - "version": "0x3" - } - }, - { - "receipt": { - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "events": [], - "execution_resources": { - "data_availability": { - "l1_data_gas": 0, - "l1_gas": 0 - }, - "memory_holes": 5, - "pedersen_builtin_applications": 32, - "steps": 10 - }, - "execution_status": "REVERTED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [], - "revert_reason": "Reverted because", - "transaction_hash": "0x74786e207265766572746564", - "type": "INVOKE" - }, - "transaction": { - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e207265766572746564", - "type": "INVOKE", - "version": "0x0" - } - } - ] -} diff --git a/crates/rpc/fixtures/0.7.0/blocks/latest_with_tx_hashes.json b/crates/rpc/fixtures/0.7.0/blocks/latest_with_tx_hashes.json deleted file mode 100644 index 8cb997f6b0..0000000000 --- a/crates/rpc/fixtures/0.7.0/blocks/latest_with_tx_hashes.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "block_hash": "0x6c6174657374", - "block_number": 2, - "l1_da_mode": "CALLDATA", - "l1_data_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x0" - }, - "l1_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x2" - }, - "new_root": "0x57b695c82af81429fdc8966088b0196105dfb5aa22b54cbc86fc95dc3b3ece1", - "parent_hash": "0x626c6f636b2031", - "sequencer_address": "0x2", - "starknet_version": "0.13.2", - "status": "ACCEPTED_ON_L2", - "timestamp": 2, - "transactions": [ - "0x74786e2033", - "0x74786e2034", - "0x74786e2035", - "0x74786e2036", - "0x74786e207265766572746564" - ] -} diff --git a/crates/rpc/fixtures/0.7.0/blocks/latest_with_txs.json b/crates/rpc/fixtures/0.7.0/blocks/latest_with_txs.json deleted file mode 100644 index 8ade58b3bb..0000000000 --- a/crates/rpc/fixtures/0.7.0/blocks/latest_with_txs.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "block_hash": "0x6c6174657374", - "block_number": 2, - "l1_da_mode": "CALLDATA", - "l1_data_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x0" - }, - "l1_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x2" - }, - "new_root": "0x57b695c82af81429fdc8966088b0196105dfb5aa22b54cbc86fc95dc3b3ece1", - "parent_hash": "0x626c6f636b2031", - "sequencer_address": "0x2", - "starknet_version": "0.13.2", - "status": "ACCEPTED_ON_L2", - "timestamp": 2, - "transactions": [ - { - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e2033", - "type": "INVOKE", - "version": "0x0" - }, - { - "calldata": [], - "contract_address": "0x0", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e2034", - "type": "INVOKE", - "version": "0x0" - }, - { - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e2035", - "type": "INVOKE", - "version": "0x0" - }, - { - "account_deployment_data": [], - "calldata": [], - "fee_data_availability_mode": "L1", - "nonce": "0x0", - "nonce_data_availability_mode": "L1", - "paymaster_data": [], - "resource_bounds": { - "l1_gas": { - "max_amount": "0x0", - "max_price_per_unit": "0x0" - }, - "l2_gas": { - "max_amount": "0x0", - "max_price_per_unit": "0x0" - } - }, - "sender_address": "0x636f6e74726163742032202873696572726129", - "signature": [], - "tip": "0x0", - "transaction_hash": "0x74786e2036", - "type": "INVOKE", - "version": "0x3" - }, - { - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e207265766572746564", - "type": "INVOKE", - "version": "0x0" - } - ] -} diff --git a/crates/rpc/fixtures/0.7.0/blocks/pre_confirmed.json b/crates/rpc/fixtures/0.7.0/blocks/pre_confirmed.json deleted file mode 100644 index d7a8cea13b..0000000000 --- a/crates/rpc/fixtures/0.7.0/blocks/pre_confirmed.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "l1_da_mode": "CALLDATA", - "l1_data_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x0" - }, - "l1_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x2" - }, - "parent_hash": "0x6c6174657374", - "sequencer_address": "0x2", - "starknet_version": "0.13.2", - "timestamp": 2, - "transactions": [] -} diff --git a/crates/rpc/fixtures/0.7.0/blocks/pre_confirmed_with_tx_hashes.json b/crates/rpc/fixtures/0.7.0/blocks/pre_confirmed_with_tx_hashes.json deleted file mode 100644 index a860db3431..0000000000 --- a/crates/rpc/fixtures/0.7.0/blocks/pre_confirmed_with_tx_hashes.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "l1_da_mode": "CALLDATA", - "l1_data_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x0" - }, - "l1_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x2" - }, - "parent_hash": "0x6c6174657374", - "sequencer_address": "0x2", - "starknet_version": "0.13.2", - "timestamp": 2, - "transactions": [] -} diff --git a/crates/rpc/fixtures/0.7.0/blocks/pre_confirmed_with_txs.json b/crates/rpc/fixtures/0.7.0/blocks/pre_confirmed_with_txs.json deleted file mode 100644 index d7a8cea13b..0000000000 --- a/crates/rpc/fixtures/0.7.0/blocks/pre_confirmed_with_txs.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "l1_da_mode": "CALLDATA", - "l1_data_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x0" - }, - "l1_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x2" - }, - "parent_hash": "0x6c6174657374", - "sequencer_address": "0x2", - "starknet_version": "0.13.2", - "timestamp": 2, - "transactions": [] -} diff --git a/crates/rpc/fixtures/0.7.0/class_at/cairo0.json b/crates/rpc/fixtures/0.7.0/class_at/cairo0.json deleted file mode 100644 index 88f8cb9408..0000000000 --- a/crates/rpc/fixtures/0.7.0/class_at/cairo0.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "abi":[ - { - "inputs":[ - { - "name":"address", - "type":"felt" - }, - { - "name":"value", - "type":"felt" - } - ], - "name":"increase_value", - "outputs":[ - - ], - "type":"function" - }, - { - "inputs":[ - { - "name":"contract_address", - "type":"felt" - }, - { - "name":"address", - "type":"felt" - }, - { - "name":"value", - "type":"felt" - } - ], - "name":"call_increase_value", - "outputs":[ - - ], - "type":"function" - }, - { - "inputs":[ - { - "name":"address", - "type":"felt" - } - ], - "name":"get_value", - "outputs":[ - { - "name":"res", - "type":"felt" - } - ], - "type":"function" - } - ], - "entry_points_by_type":{ - "CONSTRUCTOR":[ - - ], - "EXTERNAL":[ - { - "offset":"0x75", - "selector":"0x26813d396fdb198e9ead934e4f7a592a8b88a059e45ab0eb6ee53494e8d45b0" - }, - { - "offset":"0x55", - "selector":"0x3033d3588abc2928b334742248e380daa139fc6b2bba31d609282d2c641a450" - }, - { - "offset":"0x3d", - "selector":"0x34c4c150632e67baf44fc50e9a685184d72a822510a26a66f72058b5e7b2892" - } - ], - "L1_HANDLER":[ - - ] - }, - "program":"H4sIAAAAAAAE/91de2/bSJL/Kgb/SnYcgW9SBuYPT+KdDS6PPduze7ggIGiJ8giRJa1EzSQX+LtfVb/YTTbJbpIKsLtYT2yKrK761buapL47eVke1g+nsjg6V58+XzoPp/WmXG/xL+eQbx+LbPF7sfjiwEfLvMzhJMf9GrpJ6rpeslqt8Me5hGMe+a/vpg94iP0U5GCYujE/H/516cEg9uJFvAiDeBUXSZj48HeQhPRD1/XxTCAzh58VPxjAQVwWD+byQR/OwoMP8sGAHVzIB0N2cEkPpj5nbQ60KWsJ+4jwEOH54iMQBRmLlYPmQkcgYLxKUNQkjiI/jkDohsgLoN4QGQ82eF4IxgKZZ0Sj+mgwewkwOk/COKK0K50QFfODXCd4UEEaucCDDa4falzrGWy1Mc9zQQ2uB1Twh+oM/nDF/zwXLNPi/wWlEboemgyxaaQnS+jiAdCLIiFZHg6qEuKZ+EMu98l/gd8czkMLXYmP2EGESDnIDbI6GISLcOFFbhz4RZw85KswXC0it5jncRp5abhM/Dz1/chzcz/O4xgszI3Sh6hIHvx0zlnwU1waf4AVJkfq5uxAtZo3Ob7LmKHgoU0sYflqtRBYgAMIT3XQbwkjeFYDLzyI3lFdfgYJWGBJiQQFMFytxiRQWQhTP4WzUNYlIkwAOANfNMK24OXHsDTGy4oFnzASuj6ihtwRtunB1MXY5gLblYeCcPxgRYQdVCl7k5vNiuaU9mwTtqgDOUbmFDE4FpXimNdTIgQHgIsebAHURdS0XowfVJRDatQGpsrORE1Ul08P5cLWTlg+sbWTBuqoCrSoHuMBGPBMEh6EEqaHwdSiVHWE1ELqBzVFDTUedr65RalnhtR41OWmxyJPiNfrLb01+YauG6CC8AcCBU8jNNLgQfwhhJnz6oTB4Ijn4Q8QobaJYrMDlSfouUvpcnBpZVZsOVuDVW1zepQLIRzat+oe06+2UgwQq9QKypBacd3WSEIzONjQBHYExcPpMVtvVzvnanvabC6d39fbEnqH744LnQJ0F4tFcTyuHzZFdlzs9qTJcI5lfvjyZ34oZot8fdjNFrunp912lm82OzSnro/ZSbD0YrcsnCvnqXjaHb59yvefL36+OBaPTwWsP8uXyxcvwQhXm92fWXnIF1/W28eM9i/A1F4cc66+O4+H3WnvXLmXzm61OhYl/Pp86RyKVXEotosiWy9RoOfnZ1jVMxKLSLAtSi7Z8dtxAdIdgSPyEZGd/KY5CUDZbLLFbot8l9h3LaiojEr2e75dboqDet4LLvvP/JfLC37Bvjz8DELMpL9twfEqcDwNOJJKzcSaZVlZPO0BzfjS/mIEkyozGHF1dlz/H5iQP4QE004GhnYojmAfYD1EcgvVzlan7aJc77bZsdgUi3J3cK4AZ2syTK3OVWQviWwTzlXIjTxtd94se8rX2ywDW1Z+/fOQ7/fF4cg+qf6cPRZl9ke+ORUZuBOYcnYoytNhK1n2dE7sgR66vNjJsn7OZtLcIwPnca5SIGt2Jch6LA+nBUSRZM7gnLej2a9swLn/pNkRrCd/LADafCkBy0xDhAz5tDNHDHArroihEUPmlgUMD1wEKFsigvmAuuncyEWUhRmGsLCZc+ouplbkudQg/A736pfMziD+PKzLwsAiyHlnNgkI1lOZBGGX2YQPqkmt9EqvFrHbMwucXLH0amYWTLPJgPVJTATeY2oVcUeYUCKtFH+rWAZWoQSo9XZxKPJjQSOvZADTxVrI3FydvqsrCjoYAtXxJJ7li/KUb1g2DgFJ0+sOj1X+DcG4LK5j2IegecOrSB4IQebu80uoakLIpGCQXSc2MkwIwaXzgqLMjiyxRPVspCq7ltNZFppH7VnI3rxQeVD3n93GAEZuY0HQa2MarloNLYZUoADed7FsbXHdbgwu5hV9ZbNx3WYNqDDDjetu0nMpsd4Y0DQQGU0YjCWpW5luiYYdJ5Cde9c4FJUxJyYgKME28TBggjGsl9DsrVdrqDqxj+NWPHv/7TWrz/Fw+W0PVb6zzZ+K4z6HORhcqTl1dn14hDr+u7M6bTYZng3dZet5l9h4PtCFgR7tJAAwttiReip8oqPw9sPr25vru5vsH9fvfrvJ7m7e3by+/3grMQu2ciwhpDNte+HcS0KY2fq+m7huFMxjP02TAH6d+3A49uM4ncPehRuEnhslge97XhrFceT6qT+PE9+L4iAI4OK4jaen/Wa9WJemKLyVzx+Fxi3tBqAR70OenTlqtbu3/3vz8a/Zu4+vr9/dtSOO+UynunyzgRkF8LosjuV6m5fr3RbspKramhMNNrK4dJht5Jt1fnRa1EB8DLRPe/+OdciK26IxYlCnAmBCJqsui03xmJdFhssjKG3Sta6qUjCTVc1adNnF7pCXuwM4Iu5F7xfOVQCJkcnA++U28FSCxg6tu0y2MSdfLmn38N0h6s04P8UGnZQnKGxzFizwVEG++xq0M+bk3Sf6z2AxNMxAwGQMdIeZmlyKx4JlEW/riHNdlyvwNHJAtyQIkxLPNaf/BQyXwwpNExTXfFQzRHIWN+xlZhfK0gotmAb7GoyG8QdB0sWfGrWMeCyOwmgf0gKlpaprVC+rWSj65Xcnr+anYqbKhqhhNScMASriwFAzMxN3Pi3yY/litb+8WIHv/OUvLz+DL1sThNqHEyT0Pq1g+vvThceovhxCE0ojHU2/ognTX2Z8YjQMC8FAifZjUtUxa2gJS6oAI5wufqxOm86Co4XaQLVETC2he+lwiala8v3FTxcvXnkvucygnOFC9wRNS6E5tYFCY5gltgjJRBV6RYUOpxEa8yf3RmjX8gOMAafxSQ3lgVgIv4QeRsWibgAD3bPH34eblGlytbStBtmBwPYaWTSNkRnmW0sU6lTPBUI8EQhFiY6mjalYPdhKz8gNlNrDtgoDTCjlEX1UJU413AegdUa5M1oKamILVE7DZKckzwaAP43eTSpHS/llkgPF73X9hEtP1H9pWvL021WgEB5uVywTTGJQlNa5oBQSY/FoIfBT8bTYf8OA0dbdkuKM79nT02f0H3AqVvs1u3fMzPVRKLQay0LqZZ3ia1kctvnGAYYxTiRQwzKK2q5WQ7S7n229QG5e/q06WZ1ERj1s74UKJPW8B6ojdpBx9UCjAurn3Sg2ZnLA0J2O+Yefb9q96phm7ScsoY1oHZfIEkK9T5MFFPxMpmNJdqifLx3RY+qIGfaqGPw66fDiHQTRQWssHKdjE1nAzypVXDrc92iIuhINKel8rJoAHWCNSnKsxA2C5xLdqjTViW7oRsa6rtM7l+BKOdqdlyVT8nkXncLAQ7WlehNlkqV0gJoEGWM0ZWLnQtKmxLGCUlSOpHaCBMqimH4Mo8OSaciiuGmnci74rMqax4LdUkXLma5Kw3MDMY7XlhqCVneBUTtNzjCmZYWUC2EOw7R4bOaiaimjfN9yusKh7AC6oNySsg3Z7EnUFYPsRIU12FpALeoyY5W5RBI35GhI6q7Y5IlWhxTUQtqw07zaxlNgM74SlqZpYrjMc9U8PcxVZiY20COaTOJs4okyhMS77pwk4ZaAjWB547kQXVXcWE6yC6Tq2BlNtLuliSrT1MYZlV53sNGdqzhNj4XKtsSg0Ad/fqJXba/5IlxqQlONMaP41HWNIpRsXTrXGxKkaouzAATUtZauP1tmEozMoJuo0RkSjWokehRuIg0nYeO4MCPnJoJtDvoX2jmzKTUsCb81Kflq4nUkARPR8PKBYvGwEYGoqlgsaljtB9XEMrFoE/lkOgPl7FWfaIEMwi5gxc2iFz816naHc4mux/dpYujbuxVDGO6ri2uaYRT1UdFEJZTAuZRhleKP5e4gbn6H0LZsuTen9e4VhYAI/81RHz+P3AFMM6L+LqDelSgF3VLVLb30Vh5Vb3TRrno/BRtipbWahrsJt+Rjk4ss0kMPue50anPxdDy1ZcwebthlMh/y6zSyfXlAXXZV/ThqZNs92lPlcgDvjaV5We/RPFr5mL/p02itLMh0pZYNJh3MruS6qAcGq8zfQ0u6LSWXbxnXS6zGsGGkbaIbbPxxkHmqQVekYfLK4TeqkEFj8PIz/BtcvLr4xO4/gCP0rouXznNrJLcQQr5ZeWJ8JNIT4vNJA5BHIelOb3agNAaqkC50PjjYegCdxhrnhGl6iJjFTm81lPA5wQCn8qcFpC1MY4wcaiNIc3IURBxh8hOn6S427SOWcEjneWrSQm/Tkw4YJKNCK97BF2nTcGMg1huRKK2BJoBVAbahaduUx6xf62WSnrDMsIhEudWiumu/DwBhhYJUQVNyh2OW6cra5hO3E4SfMVtIPb6hZquIpHPhHJ8tTJg81ITqnEPZTgPklUOpW7XfffAWZXakg/Z6wuvS5ExUsVaxDopWvtpAI++Dxb28MOCbxMCh1RQIgTdaoek3CgTr6M+JDYWDzwLmvU5vKbPylOiMsZl1dRK2loAgUoJTCk+qRbCCVbEpXw4vmeW5Ut0xkLS1omWCA+XVdQ+fiLy8WYB4w1Ia0bZxKu7zqhev1FnVQNfJlNc88DuoAF41hZAZCXldBvEv8/uupFj3WJjvg3rgOywvYU4jT25BN6w8rCjo9Y9DaqfKjT5QpR7kigHPkQZf+KRlPePRR7WucsnY9W9bnsLTgT1jJ8tr/qcPNyrYh440KgoTDTJ6CdoEIM+rntzhEchDl+FFiRKBYFwBvZY3YoChZx66Z75LA/GCxIXafXir00Z6WEZrnTK8EsFJ0VADMsDBAnLn1k8ft9gY6sTuzEJaIJHSGeQd0GQOsisOpllilxHA1irR1mzQlRjZDqUwFDzenXke7Mxz16HGMrSel8WjFtTblIlLQGiW8vStmDhxdAPWTmkolNooRKGUCiEMQ9xcehsv2RjJK0uw8/J8KAy0qjLbhKI6IZ2tBELR33BVZ4t8amChUKMPaa5k0T3cBaCiw1BfK7r3Uuqw6oySqtOkOKwuBK6xEdB6pmF44ySG2pOBwlHqFXQU9MHUQRJmtPKzHF80gKJkziiqqPTtM5bc44xIVzKZoYKaxQgWH4jZdjdLll4iQCSkrewlU5ok9Avl7iqgRRzUhUEUi+D9TYtK06iFoa+H0l04QXHP41TdSMTopjL7W9p+yDUo9ErUl3zjLipTQJ0pDRIwsTptemrHLgIyIII38w6vRvqWCjyEK3apzI/TGVz5viSGfTwx2xRbtDhdfc3PxUKmPkAFZrsukfaKg6EqM2yukDt9I52pJpBlkDZOhy2zc6yLdVKYpaB+2lZxDGxHRpv4uwcH1YRs87IEvLpJEjo7TpI3cbj97LGwaDg+E77aiwK4vfmD77rqyXSFs6MNUZgF39qzBkZcYycRt/mZdSyiL8zF71EQvPS+jUO2B3R+amLgnNwePhGDGN2Z1BT2NPWTlgZwG8Yqa9jrdIfanKhUMKOr8Ne7auuKrAY/RDxwQfKEXz3WdWVee2iqHud8qOBNta1cG5ddtjfRxRAzmee3ll0qzf5qS3e+nMPNa4oaJeMyp+u6STi57S9qajywK+TV/9MnyTUEDCsejB9KxVMjIw89R9wcZ0bVxt1juaanT/agd/EQSBIQn+fAHBXmOf6IsXIH/9IouB4WV9Dzw6hsddro+wMzqhOiQvOyBAuv1WDEZVKUdDPMsLecUZjQPCcEYBmiZB0Nw6BGoB0BJDe57PW6gGS77vmFtbOZvzTNnrTPjdZsjN9AF+vn0Lp+biEzUDvYaGLVjK/qZW4z8vacBn+0uO2d6avXQbRi9Yl+sK+ePXq630NuILiY0wi4UG2p4PLIFzXurBoQ/Uzq4ZqAoiwxTQnSGgPBEOPpWL9z5EoDeS23JDwMgweHQlpH65yL1LgACAidofJzV0u8y54XE46UNKNjxXHpj0lLaU0pMimIXBo6Xw6KnPJgXVfp2ChVpjVQSiMvp/LSfRfjFNfnMi+qd1kONJlMnSZOPNhouQMqx3dMs7dGg/50+wKumK/K7Wk/PW2XanqZ3KR1NqsGBLt6VtvLp+TrVtvBGnDELpR5cbAqBAU2ZubogHxMKw3NPaHUo7hbzGBliwayhRplkH/x8+yXdfnn+lj8ciJfBI15Qc6Cg2hcSq/Ld74iSbomq2FWtP+qMLl0vmb5dpmR17V1nYpTza/Z7tB/Jt5C+zX7anIqPkzXu7L0xoDIXHFUFgH1zeLjfhTOMgEF5Kc+kBGPfeOkFu0Wi2y/W2/L2c3i7/gvlJ+ysv41AR3UZPORSHt+omcRm5IReqFigvcuWx4mJprkN61q8GGmLcrzFkkImUwYxN/y4++jDEImoBjEoTieNvrXEUvaRC18bWhT4582/hEM1sPd+nGbl6fDuGDUoKIA81Qcj/lj0Sc0KU9PD9mXold0Kabr9q5bLGG5XpRZTr4vc/YGfr8mvyJbq9Nmw7+RxO5iRVAd56tm5N0Wf9LdUlyamiez5drJaCv7Q/GH2dlSvLSwh4ZjgUeuTps+OBqXKUBMbuAWWv4dHHwmOykIZBRiqCa0gUK4lybYEHvZSt8TUu7wXQmz6zdvbrNfPv724Q2qmSl4sdvKXzvzynPjxHMTfx65XpQEEfyWRr6bhr7rzcMocAN/7iZBErpu6EdRlKZplMIl8zCdYxQu88MXcod/Gxfvr/8nu7v/eHv960329v7mfYbFTDtDfoTvWSbEOsnmx2NxKDM/crOHNYl5RhA/5eXvs9q1VtjSB+uPs9fX795lrz9+uL+9fn1v8P0+AGkU+EkQJpHvu2Hih2nszb0kDVPS43RILJaErkH+1iO9kxBCsjVoL1ec5VD861SAVYCdLvL1YZcxWyGk9FrQEb1lZNTdAEhKe7C5AlU+jvqR0qnIG9cBRJA+TDj7gMIIZDkVBWB81SAZnABtBYMVxGa5VcCKjZ+cHckXonx3GldIyRzrWHBp8l1Cpl9Ig2mO95TZsdgUCwgYDfUga9JCmAlMz5WSY3fdbKgXpngAb3XaaPKCHRlFM2zGo5VeVgxixs410osEQXfmaOX9zc27m1+v728yEmn6v0DM97w4ieahG0NQCXw3Tv3Am8eJF3shzmfIQt3OLJZ852V/u/7w5t3NrUlkg7AWul6Uuv488dMw8sMkiuI09OdpHCRzz0vjOPF8YkHt6YJHlDdKXbQs9G/fIT7BS/OWsmpQXL95//Y+u/nHzQeToO75qZu48wCkj9wgiJJwnoRpd1rkct48rcubP4otyV2Wdl1dqxizcYjBE03uEMToAiXlsdc9ULd4oglRdKUfF0l+vbnPfnn38fV/ZR9+e/+LkUF7YZi66dwDFwqiyA9c1wuDNHH9IIxc303SngqFa7ha+v7t+5u7++v3fzdxp9Cfh3M3SAI/9uM4hGor9T1gI0qSNJn7CfwbeXDAzMyQCYwgIPk11IM3d3cGPCADGDuS1AvAupM0DKH4C1M3cL0kjlLP9eMQjcMgqBAGeJ1kzkLsQ/k5j4LYTd0onHth4iEK88T1AjdxYz/05n7qu25qwcfdzX//dvPhtRUWXjT3vTksE4Dcc6jYAIQoAKZSfx7Nw9jDj5CRKAxSfFOcISb3UBa//fXD9f1vtzcGKuFG6adx5Aeh6yaASOLFvp8k8Mc8MYWhKH/Z7BZfPpyeHooDOrZl7PlVJaAEoBGFpEr2dvJSsk6f1RRVMSk1rwMzdn0JUVSPQriC4qlAlZFgbBM/HVpHdo+eidHqKuS6UAw3+1qshZBiPw9omdlWmCbJ8hnrRlZQK0sFqVRhjRTtfv0EVUb+REalq9PGpsLkUlU0FIEmcAhBuTIEeS47pr1qMH9bMPWewy0aggy3oQYpBfQf7xwSPwzASWRjtBThqIuUssme3Ute55tNcbheLsHYSPixdxKVhCLROB9RCJ/FRWorCKVwL5wkcdQWGZE6tJQUwH+of9TYYegNcg89KUU0nJ0Uh6znBQNcc5OkED6RG+ceuy0Z4XAiilAjHUQlfR4Xqa/B1DxxGqlBzUUZZkx1lqnLKcD/WEepM8QwnEY6RkwRz3ZuOIm73GFlv12MTCcNKopg4xymTpubWWXMOE6DVEjH0aAfJQGTSrp7zgZ1V3MRoSEenSbJK811qJ0D1/ZJvI2YAv4PdZomRwzGieRj1GoCAoRowT80zdx/FVvcw5p2mYAizzhvkciexVEU+kIdGh/p3nEmXrmV9kjFkK4olSVAt3QnzN49NHQUoH+oZ1TMFLe8qxvkFDpCqlj8Bg60SyUUrqBjr2+iHPnZJqNiKeMMnMnc3Xx4k8Hw9Q63n+8/ZrCz0b+VEgYBzDlh5pfEaeAGYTCfu4k3j1MYBYZBAgM302kb3/i+vbl+YzLkc9107sbzIEjc2PWS2HVD3039OMaUQ2y4O7Pw9f55+/beZKroRylsYXhJ5PppErqRixLGcezDPNFwoHhXbJfvC3J/zf3unXf37Yh1OtrC6rSxGaW0EFJsbZ9/2+zypdF77ZF/fj4dgX3v3ErFPQxzF4XNpZ1pApAyeQjXfdvDZrijuwGUaFgXpe5ghzZ/BE/Ol0OQla5W4BwR+iWOpo/7CvFG0PefceuDbI4PDPoK/aERX0NEAdewCR24HTY0HlamMCItKKIL/Ujz6T/yzQmMvNvhpOg+cILL+PjnYV2S1WwjDgWDXn5+3V3yZ166YRlv3jgFyXh3h/FiWUhfJ/OZPqFbuQ6/F8RBt+rfoFeoz64Pj0NGghoiigLwc9ylRu47awqM8vxkozszMMxzbEwDOGZfjpLxHTPjoz7KJfTY+aojkji6S4MOYgry8uNAUDB2gj/eg1WubovydNiizi09WUtGEYvdvIO0O0XCcMzONTInCYKBIVnlHe+O/PjX7N3H19fv7pBbtvsFJgt9iQghaJHWSqfvl3GRagMD2FkbhTmnbfMEGUT9qpGjUSkSEto/g2uNByLfGWRGISKoD4QEVYyPzkKgZumUQaJ9aByiOrOUQ7EqDsV2UQyK55zrTuOfBBe6wpnAwXfKrLD97HjTjr29sBFtX9pYnTY2jQ9CXoV5cHSyFSAWGYtQ3aOY+cQv2QOZUyJknCRHQdRc5UwYRefAaMzkGFtrvgsi6vdLZxSagp+BIGLGxDiFbyJTAxV/xD8hj/hHlxcGHqeTsOvJXgOSqn+x+qaRBA0IybyNzZecjYGgtyYHCXNrvM+Bc+eoZpTdMgTJAlOjyGJkwv2fINP90LqmmJE9gjzzLynn4qeLhAdg53l49j7SHjY7FHQ0pGv1PKiqWHHAQ6dhbSBTH9rqNWkohbnhmESqswFpJo3VDE3h4+3TfrNerMuB7Ws7LUU22UTP30spTA1upXRUFKFYjO8eYkysrmm7IkVE2rh4jXywgurRPshrSdtEJ2gi6z2R/BUdn0gcsXibp0FaU3juccfVaWNT2mpJD4SDpzyMZswGWxqicRWtwrMojurua4Arm07eQmQeXqvpuRkIoSjVGu8f4pkpJKWab1Q6aOQjeXKaZDZjwbPhmHbIj3RhzsRAwNttVgLcFuwzgEyKqLqJryAC4vbt6rQZ7PMMP0J/cgxZlSZ6fQJMd5WmC6+SM5DoKqkGqrRgyiqNfic8AK0r0/xAbA4OLNMI+Xqd9gRbI7Db2PqcNr8TgkcaiYiS93syA89aaPIsPHeXCNJ83BeCD6roKMcTlXQaYgoMskWDIhfyA9Mr5jEVFrilQnYqRxatlKvRRZ1CRhZL8Fm9dmqEKs5TrlHmab3mN9ICYj882Ku0bSIVOC1XN0+vPvRbzAVYhXKego0y3eOXq9NmSPRWaQ8EBGMBjoYwsqmA1EP3NCUbZdrEQ0ehIi9wLmTE6NEgqelMMK3GvkpSo6/bDCZPajOmX33MHwU3pXwuoPu/AQxi41O+3mbHxY7cuZNl5M8Mos3+sCbp1f2autL/PE/6w+RXD2iJfRsgv80f6cOZ4iBssn/67uT7rDzkiy/r7WPGd64eD7vT3rmCBMPjEHc7sAuK3RULQ8zrlNF/d71kQVVYLPryZFRFcTcpVaF0A++ygGDgvLBVX7wShQG6UZMgD6jtJOOpyyhzGSuXU5UHoXSCIUkGNfbIrYFR/CjREYAGdqTBbDdpX30mAFOd2XRiOrLCPwz0bcQu1wxMAoxsTpoC2LEgjCO55DdGsTClq5aMERNkpbZOtTmQDJTs20rHZzgDpZTYUUyOchNUCblb0qBpcmbV1XRkRfDsD8k23Ir8YQCwRJfr26zoNkZBkDUupLpJh029BZBZtPlZINEPsAHZ8gVL+yJUTEvWwhxsuLXJpTZ0LYofiSy+mAvDe9CbIA2sV0c3rgdBmy+F+yEEpTDNA1jtO+aMPUCgqXEupOmbRkNJ8AjKdNRQCBMM1avs04lE1sOX/RC6Eq80nzC6wv7tNN9P2Oe7z1b+2k/X43QNGAZzr3cVUVvYsogvNmQFvv0w2JAVQdYOBXzDD5pDBGtpzUxobWK6QmtWMHjc1eJetzDgF4JU3RrihjXwAhImDcyNz0AZCjiPUe/Hw4htliSFtU3NdPDy81QM8/ALILx4BXThXwGG89wdhY2w4Cqs0f48kriGb+NI38O3jvTFqwtJEAr+SwsReAkYB5ejGxSJffK6VwwhsdQSKBlFuLqdDfYRdo2+XsbYfHyOT+L14WMph44wUbBrqEQoVepxKoFjarxmDi/yQH8cARLGZC2SoQ1ZEZ6m5dam2LZhN+alhhW7Pq/lUijEVKWxmssmyUr89hMWrtfPMNSDdWtIG0UBD0BWydCWshz/e2O0EXHmG8LaDBzYiC6HAxILdeXxhElgkOjKYPQFe1ueZdpjgdbw7XNMJuUbsAa+Be0z8G08vOrBWwNJMCiJS+vwXJJCGNCGkmEeH+Bzh5jE5w2XHxCiJH77CZ+HYUitfF9rRm6YX28XhyI/FvSrH2b01gM7dw148zHvBX8CwsR6QIxVsSlf9nkQlF714O25wWWtzquHwf6kYEVX1AgG0kuEeQvquW2w2qRH3JtpQgEWqXoLgwJZFnbyWJS21mG3msg//cDLhLnPwzZsU6MsxhpA/sNIehWXxIghm+EUzLinkxnFx5sxLnlew5pZYLKIHx5w1rCN5u3IwC9kmBevrIoce9qwhoCkN4sZkmdmLQzNxCzsQIH0y0zOwIj7SHPzACisO/9eRHTEB6VfeaXKFyGCqSFlnD16wtL9KboEhed+0uhEo+KgpGnRt3t+W0AX9mlnQwaURaqYnDJChLmYfuPn5+fn/wcT8KyIieoAAA==" -} \ No newline at end of file diff --git a/crates/rpc/fixtures/0.7.0/class_at/sierra.json b/crates/rpc/fixtures/0.7.0/class_at/sierra.json deleted file mode 100644 index cc5c2c6c7f..0000000000 --- a/crates/rpc/fixtures/0.7.0/class_at/sierra.json +++ /dev/null @@ -1,6650 +0,0 @@ -{ - "abi": "[\n {\n \"type\": \"function\",\n \"name\": \"test\",\n \"inputs\": [\n {\n \"name\": \"arg\",\n \"ty\": \"core::felt\"\n },\n {\n \"name\": \"arg1\",\n \"ty\": \"core::felt\"\n },\n {\n \"name\": \"arg2\",\n \"ty\": \"core::felt\"\n }\n ],\n \"output_ty\": \"core::felt\",\n \"state_mutability\": \"external\"\n },\n {\n \"type\": \"function\",\n \"name\": \"empty\",\n \"inputs\": [],\n \"output_ty\": \"()\",\n \"state_mutability\": \"external\"\n },\n {\n \"type\": \"function\",\n \"name\": \"call_foo\",\n \"inputs\": [\n {\n \"name\": \"a\",\n \"ty\": \"core::integer::u128\"\n }\n ],\n \"output_ty\": \"core::integer::u128\",\n \"state_mutability\": \"external\"\n }\n]", - "contract_class_version": "0.1.0", - "entry_points_by_type": { - "CONSTRUCTOR": [], - "EXTERNAL": [ - { - "function_idx": 0, - "selector": "0x22ff5f21f0b81b113e63f7db6da94fedef11b2119b4088b89664fb9a3cb658" - }, - { - "function_idx": 1, - "selector": "0x1fc3f77ebc090777f567969ad9823cf6334ab888acb385ca72668ec5adbde80" - }, - { - "function_idx": 2, - "selector": "0x3d778356014c91effae9863ee4a8c2663d8fa2e9f0c4145c1e01f5435ced0be" - } - ], - "L1_HANDLER": [] - }, - "sierra_program": [ - "0x302e312e30", - "0x1c", - "0x52616e6765436865636b", - "0x0", - "0x556e696e697469616c697a6564", - "0x1", - "0x1", - "0x0", - "0x4761734275696c74696e", - "0x0", - "0x556e696e697469616c697a6564", - "0x1", - "0x1", - "0x2", - "0x66656c74", - "0x0", - "0x556e696e697469616c697a6564", - "0x1", - "0x1", - "0x4", - "0x4172726179", - "0x1", - "0x1", - "0x4", - "0x456e756d", - "0x3", - "0x0", - "0x39a7936ed480188b5481fdccbc2e15e79f8bbae8caee03dda25f96e0b91d2c5", - "0x1", - "0x6", - "0x1", - "0x6", - "0x53797374656d", - "0x0", - "0x537472756374", - "0x1", - "0x0", - "0x2ee1e2b1b89f8c495f200e4956278a4d47395fe262f27b52e5865c9524c08c3", - "0x456e756d", - "0x3", - "0x0", - "0xe3db735044fe6680868d75a64336beaf045a28972f57a2d1ec1729a1c83df5", - "0x1", - "0x4", - "0x1", - "0x9", - "0x536e617073686f74", - "0x1", - "0x1", - "0x6", - "0x753332", - "0x0", - "0x456e756d", - "0x3", - "0x0", - "0x3288d594b9a45d15bb2fcb7903f06cdb06b27f0ba88186ec4cfaa98307cb972", - "0x1", - "0x9", - "0x1", - "0x9", - "0x4275696c74696e436f737473", - "0x0", - "0x456e756d", - "0x3", - "0x0", - "0x252abff3d38d1e52c89dc9571efeaf319237c1176954e699022dcd15c016539", - "0x1", - "0x4", - "0x1", - "0x6", - "0x75313238", - "0x0", - "0x556e696e697469616c697a6564", - "0x1", - "0x1", - "0x10", - "0x456e756d", - "0x3", - "0x0", - "0x1909a2057b9c1373b889e003e050a09f431d8108e0659d03444ced99a6eea68", - "0x1", - "0x10", - "0x1", - "0x9", - "0x456e756d", - "0x3", - "0x0", - "0x25983c4a3e91bf704ea84fea5b1cfd626c9d0557d89e0cb9ac13f165dbbf3e5", - "0x1", - "0x10", - "0x1", - "0x6", - "0x456e756d", - "0x3", - "0x0", - "0x85fcccac0ca6213b88c0b6c11a83d0f4c9c6b3338aa01feec61fbda1aa30e4", - "0x1", - "0x9", - "0x1", - "0x6", - "0x436f6e747261637441646472657373", - "0x0", - "0x53746f726167654261736541646472657373", - "0x0", - "0x53746f7261676541646472657373", - "0x0", - "0x456e756d", - "0x3", - "0x0", - "0x3ecd5f7a9ffb17c6f59022c7837161ff4c29b2b8d1187de9ec9a612e1ace783", - "0x1", - "0x4", - "0x1", - "0x6", - "0x456e756d", - "0x3", - "0x0", - "0x2f5bfc8c89cba75131e402b1bca558b82eb61532362a092e246ea6e476d1dbd", - "0x1", - "0x9", - "0x1", - "0x6", - "0x537472756374", - "0x3", - "0x0", - "0x2ee1e2b1b89f8c495f200e4956278a4d47395fe262f27b52e5865c9524c08c3", - "0x1", - "0x10", - "0x1", - "0x10", - "0x456e756d", - "0x3", - "0x0", - "0x2915f2aefa24c6757069a0fff13871cd63c473d98ec8c33ac4627d600f8663f", - "0x1", - "0x6", - "0x1", - "0x6", - "0x7b", - "0x616c6c6f635f6c6f63616c", - "0x1", - "0x1", - "0x0", - "0x616c6c6f635f6c6f63616c", - "0x1", - "0x1", - "0x2", - "0x616c6c6f635f6c6f63616c", - "0x1", - "0x1", - "0x4", - "0x66696e616c697a655f6c6f63616c73", - "0x0", - "0x7265766f6b655f61705f747261636b696e67", - "0x0", - "0x6765745f676173", - "0x0", - "0x6272616e63685f616c69676e", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x2", - "0x6a756d70", - "0x0", - "0x64726f70", - "0x1", - "0x1", - "0x5", - "0x64726f70", - "0x1", - "0x1", - "0x6", - "0x64726f70", - "0x1", - "0x1", - "0x1", - "0x64726f70", - "0x1", - "0x1", - "0x3", - "0x61727261795f6e6577", - "0x1", - "0x1", - "0x4", - "0x66656c745f636f6e7374", - "0x1", - "0x2", - "0x4f7574206f6620676173", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x4", - "0x61727261795f617070656e64", - "0x1", - "0x1", - "0x4", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x7", - "0x2", - "0x1", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x8", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x7", - "0x73746f72655f6c6f63616c", - "0x1", - "0x1", - "0x0", - "0x73746f72655f6c6f63616c", - "0x1", - "0x1", - "0x2", - "0x61727261795f706f705f66726f6e74", - "0x1", - "0x1", - "0x4", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0xa", - "0x2", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x6", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0xa", - "0x7374727563745f636f6e737472756374", - "0x1", - "0x1", - "0x9", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0xa", - "0x2", - "0x1", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0xa", - "0x7374727563745f6465636f6e737472756374", - "0x1", - "0x1", - "0x9", - "0x66656c745f636f6e7374", - "0x1", - "0x2", - "0x496e70757420746f6f2073686f727420666f7220617267756d656e7473", - "0x73746f72655f6c6f63616c", - "0x1", - "0x1", - "0x4", - "0x64726f70", - "0x1", - "0x1", - "0x4", - "0x736e617073686f745f74616b65", - "0x1", - "0x1", - "0x6", - "0x61727261795f6c656e", - "0x1", - "0x1", - "0x4", - "0x7533325f636f6e7374", - "0x1", - "0x2", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0xc", - "0x7533325f6571", - "0x0", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0xd", - "0x2", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0xd", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0xd", - "0x2", - "0x1", - "0x626f6f6c5f6e6f745f696d706c", - "0x0", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0xd", - "0x64726f70", - "0x1", - "0x1", - "0x9", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x3", - "0x66656c745f636f6e7374", - "0x1", - "0x2", - "0x496e70757420746f6f206c6f6e6720666f7220617267756d656e7473", - "0x6765745f6275696c74696e5f636f737473", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0xe", - "0x6765745f6761735f616c6c", - "0x0", - "0x72656e616d65", - "0x1", - "0x1", - "0x2", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x4", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0xf", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x5", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x7", - "0x2", - "0x0", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x6", - "0x616c6c6f635f6c6f63616c", - "0x1", - "0x1", - "0x10", - "0x64726f70", - "0x1", - "0x1", - "0x11", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x7", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x12", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x10", - "0x73746f72655f6c6f63616c", - "0x1", - "0x1", - "0x10", - "0x64726f70", - "0x1", - "0x1", - "0x10", - "0x72656e616d65", - "0x1", - "0x1", - "0x0", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x8", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x13", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x9", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x9", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0xa", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0xf", - "0x2", - "0x1", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0xf", - "0x66656c745f636f6e7374", - "0x1", - "0x2", - "0x1", - "0x647570", - "0x1", - "0x1", - "0x4", - "0x66656c745f616464", - "0x0", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0xb", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x14", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0xf", - "0x2", - "0x0", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x12", - "0x2", - "0x1", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x12", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0xc", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x12", - "0x2", - "0x0", - "0x636f6e74726163745f616464726573735f636f6e7374", - "0x1", - "0x2", - "0x11", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x15", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0xd", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x13", - "0x2", - "0x1", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x13", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x13", - "0x2", - "0x0", - "0x753132385f746f5f66656c74", - "0x0", - "0x66656c745f636f6e7374", - "0x1", - "0x2", - "0x0", - "0x73746f726167655f626173655f616464726573735f636f6e7374", - "0x1", - "0x2", - "0x1275130f95dda36bcbb6e9d28796c1d7e10b6e9fd5ed083e0ede4b12f613528", - "0x73746f726167655f616464726573735f66726f6d5f62617365", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x17", - "0x73746f726167655f726561645f73797363616c6c", - "0x0", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x18", - "0x2", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x18", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x18", - "0x2", - "0x1", - "0x72656e616d65", - "0x1", - "0x1", - "0x18", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0xe", - "0x73746f726167655f77726974655f73797363616c6c", - "0x0", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x19", - "0x2", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x19", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x19", - "0x2", - "0x1", - "0x72656e616d65", - "0x1", - "0x1", - "0x19", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0xf", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x14", - "0x2", - "0x1", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x14", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x14", - "0x2", - "0x0", - "0x75313238735f66726f6d5f66656c74", - "0x0", - "0x7374727563745f636f6e737472756374", - "0x1", - "0x1", - "0x1a", - "0x64726f70", - "0x1", - "0x1", - "0x1a", - "0x72656e616d65", - "0x1", - "0x1", - "0x12", - "0x63616c6c5f636f6e74726163745f73797363616c6c", - "0x0", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x1b", - "0x2", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x1b", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x1b", - "0x2", - "0x1", - "0x72656e616d65", - "0x1", - "0x1", - "0x1b", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x10", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x7", - "0x66656c745f636f6e7374", - "0x1", - "0x2", - "0x52657475726e6564206461746120746f6f2073686f7274", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x11", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x18", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x19", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x1b", - "0x2f7", - "0x0", - "0x0", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x2", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x2", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xb", - "0x0", - "0x2", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x3", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x4", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x5", - "0x2", - "0x0", - "0x1", - "0x2", - "0xffffffffffffffff", - "0x2", - "0xe", - "0xf", - "0xc", - "0x2", - "0x10", - "0x11", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x7", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x8", - "0x1", - "0xf", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x9", - "0x0", - "0x1", - "0x1d", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xc", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xd", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0xf", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x10", - "0x1", - "0x13", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x11", - "0x2", - "0x12", - "0x13", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x14", - "0x0", - "0x12", - "0x1", - "0x14", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x0", - "0x7", - "0x1", - "0x10", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x8", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x0", - "0x14", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x1", - "0x4", - "0x16", - "0x17", - "0x18", - "0x19", - "0x0", - "0x15", - "0x2", - "0x5", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x16", - "0x2", - "0x7", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x17", - "0x1", - "0x3", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x1a", - "0x1b", - "0x25", - "0x1", - "0x1c", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x18", - "0x1", - "0x1b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x19", - "0x1", - "0x1a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x0", - "0x1a", - "0x1", - "0x1d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1f", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x20", - "0x0", - "0x1c", - "0x1", - "0x20", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x21", - "0x0", - "0x19", - "0x1", - "0x1c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x0", - "0x1a", - "0x1", - "0x21", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1f", - "0x0", - "0x1d", - "0x1", - "0x1f", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x22", - "0x2e", - "0x1", - "0x23", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0x22", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x9", - "0x0", - "0x1", - "0x3e", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x1e", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1e", - "0x1", - "0x23", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x24", - "0x0", - "0x1f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x25", - "0x0", - "0x10", - "0x1", - "0x25", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x25", - "0x0", - "0x11", - "0x2", - "0x24", - "0x25", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x26", - "0x0", - "0x12", - "0x1", - "0x26", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x27", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x28", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x29", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2a", - "0x0", - "0x14", - "0x1", - "0x27", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2b", - "0x1", - "0x4", - "0x28", - "0x29", - "0x2a", - "0x2b", - "0x0", - "0x20", - "0x2", - "0x9", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x17", - "0x1", - "0x1e", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x2c", - "0x2d", - "0x45", - "0x1", - "0x2e", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x18", - "0x1", - "0x2d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2f", - "0x0", - "0x19", - "0x1", - "0x2c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x30", - "0x0", - "0x1a", - "0x1", - "0x2f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x31", - "0x0", - "0x9", - "0x0", - "0x1", - "0x4a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x32", - "0x0", - "0x1c", - "0x1", - "0x32", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x33", - "0x0", - "0x19", - "0x1", - "0x2e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x30", - "0x0", - "0x1a", - "0x1", - "0x33", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x31", - "0x0", - "0x1d", - "0x1", - "0x31", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x34", - "0x4e", - "0x1", - "0x35", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0x34", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x0", - "0x9", - "0x0", - "0x1", - "0x5e", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x30", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1e", - "0x1", - "0x35", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x36", - "0x0", - "0x1f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x37", - "0x0", - "0x10", - "0x1", - "0x37", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x37", - "0x0", - "0x11", - "0x2", - "0x36", - "0x37", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x38", - "0x0", - "0x12", - "0x1", - "0x38", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x39", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3a", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3b", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3c", - "0x0", - "0x14", - "0x1", - "0x39", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3d", - "0x1", - "0x4", - "0x3a", - "0x3b", - "0x3c", - "0x3d", - "0x0", - "0x20", - "0x2", - "0xb", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x0", - "0x17", - "0x1", - "0x30", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x3e", - "0x3f", - "0x65", - "0x1", - "0x40", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x18", - "0x1", - "0x3f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x41", - "0x0", - "0x19", - "0x1", - "0x3e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x42", - "0x0", - "0x1a", - "0x1", - "0x41", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x43", - "0x0", - "0x9", - "0x0", - "0x1", - "0x6a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x44", - "0x0", - "0x1c", - "0x1", - "0x44", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x45", - "0x0", - "0x19", - "0x1", - "0x40", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x42", - "0x0", - "0x1a", - "0x1", - "0x45", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x43", - "0x0", - "0x1d", - "0x1", - "0x43", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x46", - "0x6e", - "0x1", - "0x47", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0x46", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x9", - "0x0", - "0x1", - "0x7e", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x42", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1e", - "0x1", - "0x47", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x48", - "0x0", - "0x1f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x49", - "0x0", - "0x10", - "0x1", - "0x49", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x49", - "0x0", - "0x11", - "0x2", - "0x48", - "0x49", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4a", - "0x0", - "0x12", - "0x1", - "0x4a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4b", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4c", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4d", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4e", - "0x0", - "0x14", - "0x1", - "0x4b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4f", - "0x1", - "0x4", - "0x4c", - "0x4d", - "0x4e", - "0x4f", - "0x0", - "0x22", - "0x1", - "0x42", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x50", - "0x51", - "0x0", - "0xb", - "0x1", - "0x50", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x23", - "0x1", - "0x51", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x52", - "0x0", - "0x24", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x53", - "0x0", - "0x25", - "0x1", - "0x52", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x52", - "0x0", - "0x20", - "0x2", - "0xd", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x26", - "0x2", - "0x52", - "0x53", - "0x2", - "0xffffffffffffffff", - "0x0", - "0x8a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x54", - "0x0", - "0x27", - "0x1", - "0x54", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x55", - "0x0", - "0x28", - "0x1", - "0x55", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x56", - "0x0", - "0x9", - "0x0", - "0x1", - "0x8e", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x57", - "0x0", - "0x29", - "0x1", - "0x57", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x58", - "0x0", - "0x28", - "0x1", - "0x58", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x56", - "0x0", - "0x2a", - "0x1", - "0x56", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x59", - "0x0", - "0x28", - "0x1", - "0x59", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x59", - "0x0", - "0x2b", - "0x1", - "0x59", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x5a", - "0x94", - "0x1", - "0x5b", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x5a", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x9", - "0x0", - "0x1", - "0xa6", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x5b", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5e", - "0x0", - "0x2d", - "0x1", - "0x5e", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x5c", - "0x5d", - "0x0", - "0x2c", - "0x1", - "0x5d", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5f", - "0x0", - "0x2e", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x60", - "0x0", - "0x10", - "0x1", - "0x60", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x60", - "0x0", - "0x11", - "0x2", - "0x5f", - "0x60", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x61", - "0x0", - "0x12", - "0x1", - "0x61", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x62", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x63", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x64", - "0x0", - "0x13", - "0x1", - "0x5c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x65", - "0x0", - "0x14", - "0x1", - "0x62", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x66", - "0x1", - "0x4", - "0x63", - "0x64", - "0x65", - "0x66", - "0x0", - "0x2f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x67", - "0x0", - "0x30", - "0x1", - "0x67", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x67", - "0x0", - "0x31", - "0x3", - "0x4", - "0x6", - "0x67", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x68", - "0x69", - "0xad", - "0x2", - "0x6a", - "0x6b", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x7", - "0x1", - "0x68", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6c", - "0x0", - "0x8", - "0x1", - "0x69", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6d", - "0x0", - "0x9", - "0x0", - "0x1", - "0xbb", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6e", - "0x0", - "0xf", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6f", - "0x0", - "0x10", - "0x1", - "0x6f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6f", - "0x0", - "0x11", - "0x2", - "0x6e", - "0x6f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x70", - "0x0", - "0x12", - "0x1", - "0x70", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x71", - "0x0", - "0x7", - "0x1", - "0x6a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x72", - "0x0", - "0x8", - "0x1", - "0x6b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x73", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x74", - "0x0", - "0x14", - "0x1", - "0x71", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x75", - "0x1", - "0x4", - "0x72", - "0x73", - "0x74", - "0x75", - "0x0", - "0x32", - "0x1", - "0x6d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7a", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7b", - "0x0", - "0x10", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7c", - "0x0", - "0x10", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7d", - "0x0", - "0x10", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7e", - "0x0", - "0x33", - "0x5", - "0x7a", - "0x7b", - "0x7c", - "0x7d", - "0x7e", - "0x1", - "0xffffffffffffffff", - "0x4", - "0x76", - "0x77", - "0x78", - "0x79", - "0x0", - "0x34", - "0x1", - "0x79", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x7f", - "0xc5", - "0x1", - "0x80", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0x7f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x81", - "0x0", - "0x9", - "0x0", - "0x1", - "0xcd", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x78", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x12", - "0x1", - "0x80", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x82", - "0x0", - "0x7", - "0x1", - "0x6c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x83", - "0x0", - "0x8", - "0x1", - "0x76", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x84", - "0x0", - "0x13", - "0x1", - "0x77", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x85", - "0x0", - "0x14", - "0x1", - "0x82", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x86", - "0x1", - "0x4", - "0x83", - "0x84", - "0x85", - "0x86", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x87", - "0x0", - "0x19", - "0x1", - "0x87", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8a", - "0x0", - "0x10", - "0x1", - "0x78", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8b", - "0x0", - "0x35", - "0x2", - "0x8a", - "0x8b", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x88", - "0x89", - "0x0", - "0x2c", - "0x1", - "0x89", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x19", - "0x1", - "0x88", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8e", - "0x0", - "0x10", - "0x1", - "0x81", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8f", - "0x0", - "0x35", - "0x2", - "0x8e", - "0x8f", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x8c", - "0x8d", - "0x0", - "0x2c", - "0x1", - "0x8d", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x36", - "0x1", - "0x8c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x90", - "0x0", - "0x7", - "0x1", - "0x6c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x91", - "0x0", - "0x8", - "0x1", - "0x76", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x92", - "0x0", - "0x13", - "0x1", - "0x77", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x93", - "0x0", - "0x14", - "0x1", - "0x90", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x94", - "0x1", - "0x4", - "0x91", - "0x92", - "0x93", - "0x94", - "0x0", - "0x0", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x3", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x4", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x5", - "0x2", - "0x0", - "0x1", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x8", - "0x9", - "0xe5", - "0x2", - "0xa", - "0xb", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x7", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x8", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x9", - "0x0", - "0x1", - "0xf3", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xc", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xd", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0xf", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x10", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x11", - "0x2", - "0xc", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x12", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0x7", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x8", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x14", - "0x1", - "0xf", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x1", - "0x4", - "0x10", - "0x11", - "0x12", - "0x13", - "0x0", - "0x22", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x14", - "0x15", - "0x0", - "0xb", - "0x1", - "0x14", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x23", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x24", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x0", - "0x25", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x15", - "0x2", - "0x5", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x16", - "0x2", - "0x7", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x26", - "0x2", - "0x16", - "0x17", - "0x2", - "0xffffffffffffffff", - "0x0", - "0x100", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x0", - "0x27", - "0x1", - "0x18", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x28", - "0x1", - "0x19", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x9", - "0x0", - "0x1", - "0x104", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x0", - "0x29", - "0x1", - "0x1b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1c", - "0x0", - "0x28", - "0x1", - "0x1c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x2a", - "0x1", - "0x1a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x28", - "0x1", - "0x1d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x2b", - "0x1", - "0x1d", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x10a", - "0x1", - "0x1f", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x1e", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x9", - "0x0", - "0x1", - "0x119", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x1f", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x22", - "0x0", - "0x2d", - "0x1", - "0x22", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x20", - "0x21", - "0x0", - "0x2c", - "0x1", - "0x21", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x23", - "0x0", - "0x2e", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x24", - "0x0", - "0x10", - "0x1", - "0x24", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x24", - "0x0", - "0x11", - "0x2", - "0x23", - "0x24", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x25", - "0x0", - "0x12", - "0x1", - "0x25", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x26", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x27", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x28", - "0x0", - "0x13", - "0x1", - "0x20", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x29", - "0x0", - "0x14", - "0x1", - "0x26", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2a", - "0x1", - "0x4", - "0x27", - "0x28", - "0x29", - "0x2a", - "0x0", - "0x2f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2b", - "0x0", - "0x30", - "0x1", - "0x2b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2b", - "0x0", - "0x31", - "0x3", - "0x4", - "0x6", - "0x2b", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x2c", - "0x2d", - "0x120", - "0x2", - "0x2e", - "0x2f", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x7", - "0x1", - "0x2c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x30", - "0x0", - "0x8", - "0x1", - "0x2d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x31", - "0x0", - "0x9", - "0x0", - "0x1", - "0x12b", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x32", - "0x0", - "0xf", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x33", - "0x0", - "0x10", - "0x1", - "0x33", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x33", - "0x0", - "0x11", - "0x2", - "0x32", - "0x33", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x34", - "0x0", - "0x12", - "0x1", - "0x34", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x35", - "0x0", - "0x7", - "0x1", - "0x2e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x36", - "0x0", - "0x8", - "0x1", - "0x2f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x37", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x38", - "0x0", - "0x14", - "0x1", - "0x35", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x39", - "0x1", - "0x4", - "0x36", - "0x37", - "0x38", - "0x39", - "0x0", - "0x37", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3a", - "0x0", - "0x2c", - "0x1", - "0x3a", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3b", - "0x0", - "0x36", - "0x1", - "0x3b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3c", - "0x0", - "0x7", - "0x1", - "0x30", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3d", - "0x0", - "0x8", - "0x1", - "0x31", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3e", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3f", - "0x0", - "0x14", - "0x1", - "0x3c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x40", - "0x1", - "0x4", - "0x3d", - "0x3e", - "0x3f", - "0x40", - "0x0", - "0x0", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x38", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x3", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x4", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x5", - "0x2", - "0x0", - "0x1", - "0x2", - "0xffffffffffffffff", - "0x2", - "0xa", - "0xb", - "0x13e", - "0x2", - "0xc", - "0xd", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x7", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x8", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x9", - "0x0", - "0x1", - "0x14d", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xc", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x39", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xd", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0xf", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x10", - "0x1", - "0x10", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x11", - "0x2", - "0xf", - "0x10", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x12", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x7", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x8", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x14", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x0", - "0x14", - "0x1", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x1", - "0x4", - "0x13", - "0x14", - "0x15", - "0x16", - "0x0", - "0x7", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x19", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x3a", - "0x2", - "0x19", - "0x1a", - "0x1", - "0xffffffffffffffff", - "0x3", - "0x4", - "0x17", - "0x18", - "0x0", - "0x16", - "0x2", - "0x7", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x15", - "0x2", - "0x5", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x3b", - "0x1", - "0x18", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x156", - "0x1", - "0x1c", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3c", - "0x1", - "0x1b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x9", - "0x0", - "0x1", - "0x164", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x17", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x39", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1e", - "0x1", - "0x1c", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x1f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x0", - "0x10", - "0x1", - "0x1e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x0", - "0x11", - "0x2", - "0x1d", - "0x1e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1f", - "0x0", - "0x12", - "0x1", - "0x1f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x20", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x21", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x22", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x23", - "0x0", - "0x14", - "0x1", - "0x20", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x24", - "0x1", - "0x4", - "0x21", - "0x22", - "0x23", - "0x24", - "0x0", - "0x22", - "0x1", - "0x17", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x25", - "0x26", - "0x0", - "0xb", - "0x1", - "0x25", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x23", - "0x1", - "0x26", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x27", - "0x0", - "0x24", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x28", - "0x0", - "0x25", - "0x1", - "0x27", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x27", - "0x0", - "0x3d", - "0x2", - "0x9", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x26", - "0x2", - "0x27", - "0x28", - "0x2", - "0xffffffffffffffff", - "0x0", - "0x170", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x29", - "0x0", - "0x27", - "0x1", - "0x29", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2a", - "0x0", - "0x28", - "0x1", - "0x2a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2b", - "0x0", - "0x9", - "0x0", - "0x1", - "0x174", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2c", - "0x0", - "0x29", - "0x1", - "0x2c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2d", - "0x0", - "0x28", - "0x1", - "0x2d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2b", - "0x0", - "0x2a", - "0x1", - "0x2b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2e", - "0x0", - "0x28", - "0x1", - "0x2e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2e", - "0x0", - "0x2b", - "0x1", - "0x2e", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x2f", - "0x17a", - "0x1", - "0x30", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x2f", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x9", - "0x0", - "0x1", - "0x18a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x30", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3e", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x33", - "0x0", - "0x2d", - "0x1", - "0x33", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x31", - "0x32", - "0x0", - "0x2c", - "0x1", - "0x32", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x34", - "0x0", - "0x2e", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x35", - "0x0", - "0x10", - "0x1", - "0x35", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x35", - "0x0", - "0x11", - "0x2", - "0x34", - "0x35", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x36", - "0x0", - "0x12", - "0x1", - "0x36", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x37", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x38", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x39", - "0x0", - "0x13", - "0x1", - "0x31", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3a", - "0x0", - "0x14", - "0x1", - "0x37", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3b", - "0x1", - "0x4", - "0x38", - "0x39", - "0x3a", - "0x3b", - "0x0", - "0x2f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3c", - "0x0", - "0x30", - "0x1", - "0x3c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3c", - "0x0", - "0x31", - "0x3", - "0x4", - "0x6", - "0x3c", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x3d", - "0x3e", - "0x191", - "0x2", - "0x3f", - "0x40", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x7", - "0x1", - "0x3d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x41", - "0x0", - "0x8", - "0x1", - "0x3e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x42", - "0x0", - "0x9", - "0x0", - "0x1", - "0x19d", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3e", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x43", - "0x0", - "0xf", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x44", - "0x0", - "0x10", - "0x1", - "0x44", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x44", - "0x0", - "0x11", - "0x2", - "0x43", - "0x44", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x45", - "0x0", - "0x12", - "0x1", - "0x45", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x46", - "0x0", - "0x7", - "0x1", - "0x3f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x47", - "0x0", - "0x8", - "0x1", - "0x40", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x48", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x49", - "0x0", - "0x14", - "0x1", - "0x46", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4a", - "0x1", - "0x4", - "0x47", - "0x48", - "0x49", - "0x4a", - "0x0", - "0x3f", - "0x1", - "0x41", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4f", - "0x0", - "0x32", - "0x1", - "0x42", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x50", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x51", - "0x0", - "0x3c", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x52", - "0x0", - "0x40", - "0x4", - "0x4f", - "0x50", - "0x51", - "0x52", - "0x1", - "0xffffffffffffffff", - "0x4", - "0x4b", - "0x4c", - "0x4d", - "0x4e", - "0x0", - "0x41", - "0x1", - "0x4e", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x53", - "0x1a6", - "0x1", - "0x54", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3c", - "0x1", - "0x53", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x55", - "0x0", - "0x9", - "0x0", - "0x1", - "0x1ad", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x12", - "0x1", - "0x54", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x56", - "0x0", - "0x7", - "0x1", - "0x4b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x57", - "0x0", - "0x8", - "0x1", - "0x4c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x58", - "0x0", - "0x13", - "0x1", - "0x4d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x59", - "0x0", - "0x14", - "0x1", - "0x56", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5a", - "0x1", - "0x4", - "0x57", - "0x58", - "0x59", - "0x5a", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5b", - "0x0", - "0x19", - "0x1", - "0x5b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5e", - "0x0", - "0x3c", - "0x1", - "0x55", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5f", - "0x0", - "0x42", - "0x2", - "0x5e", - "0x5f", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x5c", - "0x5d", - "0x0", - "0x2c", - "0x1", - "0x5d", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x36", - "0x1", - "0x5c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x60", - "0x0", - "0x7", - "0x1", - "0x4b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x61", - "0x0", - "0x8", - "0x1", - "0x4c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x62", - "0x0", - "0x13", - "0x1", - "0x4d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x63", - "0x0", - "0x14", - "0x1", - "0x60", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x64", - "0x1", - "0x4", - "0x61", - "0x62", - "0x63", - "0x64", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1", - "0x0", - "0x13", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2", - "0x0", - "0x43", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x1", - "0x2", - "0x2", - "0x3", - "0x0", - "0x21", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x8", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x13", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x44", - "0x2", - "0x8", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x3", - "0x5", - "0x6", - "0x7", - "0x0", - "0x34", - "0x1", - "0x7", - "0x2", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x1c5", - "0x1", - "0xb", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x9", - "0x0", - "0x1", - "0x1cc", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x45", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x8", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x13", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0x10", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x46", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x1", - "0x4", - "0xe", - "0xf", - "0x10", - "0x11", - "0x0", - "0x47", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x48", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x2", - "0xc", - "0x14", - "0x0", - "0x49", - "0x2", - "0x14", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x8", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x0", - "0x13", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x10", - "0x1", - "0x13", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x4a", - "0x3", - "0x18", - "0x19", - "0x1a", - "0x1", - "0xffffffffffffffff", - "0x3", - "0x15", - "0x16", - "0x17", - "0x0", - "0x4b", - "0x1", - "0x17", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x1d7", - "0x1", - "0x1c", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x1b", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x9", - "0x0", - "0x1", - "0x1df", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x45", - "0x1", - "0x1c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x8", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x0", - "0x13", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1f", - "0x0", - "0x10", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x20", - "0x0", - "0x46", - "0x1", - "0x1d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x21", - "0x1", - "0x4", - "0x1e", - "0x1f", - "0x20", - "0x21", - "0x0", - "0x47", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x22", - "0x0", - "0x49", - "0x2", - "0xc", - "0x22", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x23", - "0x0", - "0x4c", - "0x1", - "0x23", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x24", - "0x0", - "0x8", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x25", - "0x0", - "0x13", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x26", - "0x0", - "0x10", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x27", - "0x0", - "0x46", - "0x1", - "0x24", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x28", - "0x1", - "0x4", - "0x25", - "0x26", - "0x27", - "0x28", - "0x0", - "0x11", - "0x2", - "0x0", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x2c", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x19", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x43", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x1", - "0x2", - "0x5", - "0x6", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x0", - "0x0", - "0x43", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1", - "0x1", - "0x1", - "0x1", - "0x0", - "0x17", - "0x1", - "0x1", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x2", - "0x3", - "0x1f7", - "0x1", - "0x4", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x18", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x19", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x1a", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x9", - "0x0", - "0x1", - "0x1fc", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x1c", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x19", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x1a", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x1d", - "0x1", - "0x7", - "0x2", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x200", - "0x1", - "0xb", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x9", - "0x0", - "0x1", - "0x206", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x4d", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x7", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x19", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0x4e", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x1", - "0x3", - "0xe", - "0xf", - "0x10", - "0x0", - "0x7", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x10", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x14", - "0x0", - "0x4f", - "0x2", - "0x13", - "0x14", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x11", - "0x12", - "0x0", - "0x3b", - "0x1", - "0x12", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x20d", - "0x1", - "0x16", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3c", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x0", - "0x9", - "0x0", - "0x1", - "0x213", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x4d", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x0", - "0x7", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x19", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x4e", - "0x1", - "0x18", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x1", - "0x3", - "0x19", - "0x1a", - "0x1b", - "0x0", - "0x50", - "0x1", - "0x17", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1c", - "0x0", - "0x7", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x19", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x0", - "0x4e", - "0x1", - "0x1c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1f", - "0x1", - "0x3", - "0x1d", - "0x1e", - "0x1f", - "0x0", - "0x51", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x7", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x8", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xb", - "0x0", - "0x52", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x3c", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x53", - "0x5", - "0x9", - "0xa", - "0xb", - "0xc", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x4", - "0x5", - "0x6", - "0x7", - "0x8", - "0x0", - "0x41", - "0x1", - "0x8", - "0x2", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x223", - "0x1", - "0xf", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3c", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x9", - "0x0", - "0x1", - "0x22a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x54", - "0x1", - "0xf", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x7", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x13", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x14", - "0x0", - "0x55", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x1", - "0x4", - "0x12", - "0x13", - "0x14", - "0x15", - "0x0", - "0x56", - "0x1", - "0x10", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x7", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x0", - "0x13", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x55", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x1", - "0x4", - "0x17", - "0x18", - "0x19", - "0x1a", - "0x0", - "0x57", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2", - "0x0", - "0x19", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x10", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x35", - "0x2", - "0x5", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x3", - "0x4", - "0x0", - "0x2c", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x19", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x43", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x1", - "0x2", - "0x8", - "0x9", - "0x0", - "0x58", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2", - "0x0", - "0x59", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x5a", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x10", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2", - "0x0", - "0x5b", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x5c", - "0x4", - "0x0", - "0x1", - "0x2", - "0x4", - "0x2", - "0xffffffffffffffff", - "0x3", - "0x5", - "0x6", - "0x7", - "0x245", - "0x3", - "0x8", - "0x9", - "0xa", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x5d", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xb", - "0x0", - "0x8", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x13", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x5e", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x9", - "0x0", - "0x1", - "0x24a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x5f", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0x8", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x13", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x5e", - "0x1", - "0xf", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x60", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x61", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x34", - "0x1", - "0x10", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x250", - "0x1", - "0x13", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x14", - "0x0", - "0x9", - "0x0", - "0x1", - "0x256", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x45", - "0x1", - "0x13", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x0", - "0x8", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x13", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x0", - "0x46", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x1", - "0x3", - "0x16", - "0x17", - "0x18", - "0x0", - "0x4c", - "0x1", - "0x14", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x8", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x13", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x0", - "0x46", - "0x1", - "0x19", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1c", - "0x1", - "0x3", - "0x1a", - "0x1b", - "0x1c", - "0x0", - "0x58", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x59", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x5a", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x10", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x5b", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x62", - "0x5", - "0x0", - "0x1", - "0x3", - "0x5", - "0x2", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x6", - "0x7", - "0x268", - "0x3", - "0x8", - "0x9", - "0xa", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xb", - "0x0", - "0x63", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x13", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x64", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0x9", - "0x0", - "0x1", - "0x26d", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x65", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x8", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x13", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x64", - "0x1", - "0x10", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0x66", - "0x1", - "0xf", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x67", - "0x1", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x4b", - "0x1", - "0x11", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x273", - "0x1", - "0x14", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x43", - "0x1", - "0x13", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x0", - "0x9", - "0x0", - "0x1", - "0x279", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x68", - "0x1", - "0x14", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x8", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x0", - "0x13", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x0", - "0x69", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x1", - "0x3", - "0x17", - "0x18", - "0x19", - "0x0", - "0x6a", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x8", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x0", - "0x13", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1c", - "0x0", - "0x69", - "0x1", - "0x1a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x1", - "0x3", - "0x1b", - "0x1c", - "0x1d", - "0x0", - "0x6b", - "0x2", - "0x0", - "0x1", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x2", - "0x3", - "0x284", - "0x3", - "0x4", - "0x5", - "0x6", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x50", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x7", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x4e", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x9", - "0x0", - "0x1", - "0x28b", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x6c", - "0x2", - "0x5", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x0", - "0x6d", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xb", - "0x0", - "0x4d", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x4e", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x3f", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x6e", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x1", - "0x2", - "0xd", - "0xe", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x19", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x3c", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x42", - "0x2", - "0x8", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x6", - "0x7", - "0x0", - "0x2c", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x6f", - "0x4", - "0x1", - "0x2", - "0x3", - "0x6", - "0x2", - "0xffffffffffffffff", - "0x3", - "0xa", - "0xb", - "0xc", - "0x29a", - "0x3", - "0xd", - "0xe", - "0xf", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x70", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x8", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x13", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x71", - "0x1", - "0x10", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x9", - "0x0", - "0x1", - "0x29f", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x72", - "0x1", - "0xf", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x14", - "0x0", - "0x8", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x13", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x71", - "0x1", - "0x14", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x73", - "0x1", - "0x13", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x74", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x0", - "0x75", - "0x1", - "0x15", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x2a5", - "0x1", - "0x18", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x19", - "0x1", - "0x17", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2ac", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x54", - "0x1", - "0x18", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x7", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x0", - "0x8", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1c", - "0x0", - "0x13", - "0x1", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x55", - "0x1", - "0x1a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x1", - "0x4", - "0x1b", - "0x1c", - "0x1d", - "0x1e", - "0x0", - "0x7", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x22", - "0x0", - "0x19", - "0x1", - "0x19", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x23", - "0x0", - "0x3a", - "0x2", - "0x22", - "0x23", - "0x1", - "0xffffffffffffffff", - "0x3", - "0x1f", - "0x20", - "0x21", - "0x0", - "0xb", - "0x1", - "0x20", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x76", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x24", - "0x0", - "0x6e", - "0x1", - "0x21", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x26", - "0x0", - "0x10", - "0x1", - "0x24", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x27", - "0x0", - "0x77", - "0x2", - "0x26", - "0x27", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x25", - "0x0", - "0x41", - "0x1", - "0x25", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x28", - "0x2b8", - "0x1", - "0x29", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3c", - "0x1", - "0x28", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2a", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2bf", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x54", - "0x1", - "0x29", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2b", - "0x0", - "0x7", - "0x1", - "0x1f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2c", - "0x0", - "0x8", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2d", - "0x0", - "0x13", - "0x1", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2e", - "0x0", - "0x55", - "0x1", - "0x2b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2f", - "0x1", - "0x4", - "0x2c", - "0x2d", - "0x2e", - "0x2f", - "0x0", - "0x56", - "0x1", - "0x2a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x30", - "0x0", - "0x7", - "0x1", - "0x1f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x31", - "0x0", - "0x8", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x32", - "0x0", - "0x13", - "0x1", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x33", - "0x0", - "0x55", - "0x1", - "0x30", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x34", - "0x1", - "0x4", - "0x31", - "0x32", - "0x33", - "0x34", - "0x0", - "0x78", - "0x1", - "0x0", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x1", - "0x2c9", - "0x1", - "0x2", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2cd", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x45", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x46", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x1", - "0x1", - "0x5", - "0x0", - "0x4c", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x46", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x1", - "0x1", - "0x7", - "0x0", - "0x79", - "0x1", - "0x0", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x1", - "0x2d4", - "0x1", - "0x2", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x43", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2d8", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x68", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x69", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x1", - "0x1", - "0x5", - "0x0", - "0x6a", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x69", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x1", - "0x1", - "0x7", - "0x0", - "0x7a", - "0x1", - "0x0", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x1", - "0x2df", - "0x1", - "0x2", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x19", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2e3", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x12", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x14", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x1", - "0x1", - "0x5", - "0x0", - "0x36", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x14", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x1", - "0x1", - "0x7", - "0x0", - "0x3b", - "0x1", - "0x0", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x2", - "0x2eb", - "0x1", - "0x3", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3c", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2f4", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1e", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x11", - "0x2", - "0x5", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x2c", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x54", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x55", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x1", - "0x1", - "0x9", - "0x0", - "0x56", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x0", - "0x55", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xb", - "0x1", - "0x1", - "0xb", - "0x12", - "0x4", - "0x0", - "0x2", - "0x8", - "0x6", - "0x4", - "0x0", - "0x2", - "0x8", - "0x7", - "0x0", - "0x1", - "0x2", - "0x3", - "0x0", - "0x4", - "0x0", - "0x2", - "0x8", - "0x6", - "0x4", - "0x0", - "0x2", - "0x8", - "0x7", - "0x0", - "0x1", - "0x2", - "0x3", - "0xdc", - "0x4", - "0x0", - "0x2", - "0x8", - "0x6", - "0x4", - "0x0", - "0x2", - "0x8", - "0x7", - "0x0", - "0x1", - "0x2", - "0x3", - "0x134", - "0x1", - "0x8", - "0x2", - "0x8", - "0x9", - "0x0", - "0x1b8", - "0x5", - "0x2", - "0x8", - "0x4", - "0x4", - "0x4", - "0x4", - "0x2", - "0x8", - "0x4", - "0xf", - "0x0", - "0x1", - "0x2", - "0x3", - "0x4", - "0x1bc", - "0x2", - "0x6", - "0x4", - "0x2", - "0x6", - "0x9", - "0x0", - "0x1", - "0x1e7", - "0x0", - "0x1", - "0x9", - "0x1ee", - "0x2", - "0x0", - "0x6", - "0x3", - "0x0", - "0x6", - "0x12", - "0x0", - "0x1", - "0x1f1", - "0x4", - "0x0", - "0x2", - "0x8", - "0x10", - "0x4", - "0x0", - "0x2", - "0x8", - "0x13", - "0x0", - "0x1", - "0x2", - "0x3", - "0x218", - "0x2", - "0x6", - "0x10", - "0x2", - "0x6", - "0x9", - "0x0", - "0x1", - "0x230", - "0x2", - "0x2", - "0x8", - "0x3", - "0x2", - "0x8", - "0xf", - "0x0", - "0x1", - "0x239", - "0x3", - "0x2", - "0x8", - "0x4", - "0x3", - "0x2", - "0x8", - "0x14", - "0x0", - "0x1", - "0x2", - "0x25b", - "0x2", - "0x0", - "0x4", - "0x2", - "0x0", - "0x12", - "0x0", - "0x1", - "0x27e", - "0x5", - "0x0", - "0x2", - "0x8", - "0x15", - "0x10", - "0x4", - "0x0", - "0x2", - "0x8", - "0x13", - "0x0", - "0x1", - "0x2", - "0x3", - "0x4", - "0x28e", - "0x1", - "0x18", - "0x1", - "0xf", - "0x0", - "0x2c5", - "0x1", - "0x19", - "0x1", - "0x14", - "0x0", - "0x2d0", - "0x1", - "0x1b", - "0x1", - "0x7", - "0x0", - "0x2db", - "0x2", - "0x12", - "0x4", - "0x1", - "0x13", - "0x0", - "0x1", - "0x2e6" - ] -} \ No newline at end of file diff --git a/crates/rpc/fixtures/0.7.0/class_hash/at_block.json b/crates/rpc/fixtures/0.7.0/class_hash/at_block.json deleted file mode 100644 index f97591b88c..0000000000 --- a/crates/rpc/fixtures/0.7.0/class_hash/at_block.json +++ /dev/null @@ -1 +0,0 @@ -"0x636c61737320312068617368" \ No newline at end of file diff --git a/crates/rpc/fixtures/0.7.0/class_hash/latest.json b/crates/rpc/fixtures/0.7.0/class_hash/latest.json deleted file mode 100644 index 36ae8ff312..0000000000 --- a/crates/rpc/fixtures/0.7.0/class_hash/latest.json +++ /dev/null @@ -1 +0,0 @@ -"0x636c61737320302068617368" diff --git a/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1.json b/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1.json deleted file mode 100644 index 4ac7b364a1..0000000000 --- a/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "data_gas_consumed": "0xc0", - "data_gas_price": "0x2", - "gas_consumed": "0x5d09", - "gas_price": "0x1", - "overall_fee": "0x5e89", - "unit": "WEI" - }, - { - "data_gas_consumed": "0xe0", - "data_gas_price": "0x2", - "gas_consumed": "0x12", - "gas_price": "0x1", - "overall_fee": "0x1d2", - "unit": "WEI" - }, - { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0xe", - "gas_price": "0x1", - "overall_fee": "0x10e", - "unit": "WEI" - }, - { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0xa", - "gas_price": "0x1", - "overall_fee": "0x10a", - "unit": "WEI" - }, - { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0xe", - "gas_price": "0x2", - "overall_fee": "0x11c", - "unit": "FRI" - } -] \ No newline at end of file diff --git a/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1_1.json b/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1_1.json deleted file mode 100644 index 0e8abe2112..0000000000 --- a/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1_1.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "data_gas_consumed": "0xc0", - "data_gas_price": "0x2", - "gas_consumed": "0x36e", - "gas_price": "0x1", - "overall_fee": "0x4ee", - "unit": "WEI" - }, - { - "data_gas_consumed": "0xe0", - "data_gas_price": "0x2", - "gas_consumed": "0x13", - "gas_price": "0x1", - "overall_fee": "0x1d3", - "unit": "WEI" - }, - { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0xe", - "gas_price": "0x1", - "overall_fee": "0x10e", - "unit": "WEI" - }, - { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0xa", - "gas_price": "0x1", - "overall_fee": "0x10a", - "unit": "WEI" - }, - { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0xe", - "gas_price": "0x2", - "overall_fee": "0x11c", - "unit": "FRI" - } -] \ No newline at end of file diff --git a/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2.json b/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2.json deleted file mode 100644 index 2a08e81763..0000000000 --- a/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "data_gas_consumed": "0xc0", - "data_gas_price": "0x2", - "gas_consumed": "0x5d0b", - "gas_price": "0x1", - "overall_fee": "0x5e8b", - "unit": "WEI" - }, - { - "data_gas_consumed": "0xe0", - "data_gas_price": "0x2", - "gas_consumed": "0x16", - "gas_price": "0x1", - "overall_fee": "0x1d6", - "unit": "WEI" - }, - { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0x10", - "gas_price": "0x1", - "overall_fee": "0x110", - "unit": "WEI" - }, - { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0xb", - "gas_price": "0x1", - "overall_fee": "0x10b", - "unit": "WEI" - }, - { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0x10", - "gas_price": "0x2", - "overall_fee": "0x120", - "unit": "FRI" - } -] \ No newline at end of file diff --git a/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2_1.json b/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2_1.json deleted file mode 100644 index e3b28d41bc..0000000000 --- a/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2_1.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "data_gas_consumed": "0xc0", - "data_gas_price": "0x2", - "gas_consumed": "0x370", - "gas_price": "0x1", - "overall_fee": "0x4f0", - "unit": "WEI" - }, - { - "data_gas_consumed": "0xe0", - "data_gas_price": "0x2", - "gas_consumed": "0x16", - "gas_price": "0x1", - "overall_fee": "0x1d6", - "unit": "WEI" - }, - { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0x10", - "gas_price": "0x1", - "overall_fee": "0x110", - "unit": "WEI" - }, - { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0xb", - "gas_price": "0x1", - "overall_fee": "0x10b", - "unit": "WEI" - }, - { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0x10", - "gas_price": "0x2", - "overall_fee": "0x120", - "unit": "FRI" - } -] \ No newline at end of file diff --git a/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_4.json b/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_4.json deleted file mode 100644 index 2f37781222..0000000000 --- a/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_13_4.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "data_gas_consumed": "0xc0", - "data_gas_price": "0x2", - "gas_consumed": "0x6c8", - "gas_price": "0x2", - "overall_fee": "0xf10", - "unit": "FRI" - }, - { - "data_gas_consumed": "0xe0", - "data_gas_price": "0x2", - "gas_consumed": "0x16", - "gas_price": "0x2", - "overall_fee": "0x1ec", - "unit": "FRI" - }, - { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0x0", - "gas_price": "0x2", - "overall_fee": "0xbe28b", - "unit": "FRI" - }, - { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0x0", - "gas_price": "0x2", - "overall_fee": "0xbe28b", - "unit": "FRI" - } -] \ No newline at end of file diff --git a/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_14_0.json b/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_14_0.json deleted file mode 100644 index 075ec555a9..0000000000 --- a/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_14_0.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "data_gas_consumed": "0xc0", - "data_gas_price": "0x2", - "gas_consumed": "0x6c9", - "gas_price": "0x2", - "overall_fee": "0xf12", - "unit": "FRI" - }, - { - "data_gas_consumed": "0xe0", - "data_gas_price": "0x2", - "gas_consumed": "0x18", - "gas_price": "0x2", - "overall_fee": "0x1f0", - "unit": "FRI" - }, - { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0x0", - "gas_price": "0x2", - "overall_fee": "0xcb5e8", - "unit": "FRI" - }, - { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0x0", - "gas_price": "0x2", - "overall_fee": "0xcb5e8", - "unit": "FRI" - } -] diff --git a/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_14_1.json b/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_14_1.json deleted file mode 100644 index 075ec555a9..0000000000 --- a/crates/rpc/fixtures/0.7.0/fee_estimates/declare_deploy_invoke_sierra_0_14_1.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "data_gas_consumed": "0xc0", - "data_gas_price": "0x2", - "gas_consumed": "0x6c9", - "gas_price": "0x2", - "overall_fee": "0xf12", - "unit": "FRI" - }, - { - "data_gas_consumed": "0xe0", - "data_gas_price": "0x2", - "gas_consumed": "0x18", - "gas_price": "0x2", - "overall_fee": "0x1f0", - "unit": "FRI" - }, - { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0x0", - "gas_price": "0x2", - "overall_fee": "0xcb5e8", - "unit": "FRI" - }, - { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0x0", - "gas_price": "0x2", - "overall_fee": "0xcb5e8", - "unit": "FRI" - } -] diff --git a/crates/rpc/fixtures/0.7.0/fee_estimates/full.json b/crates/rpc/fixtures/0.7.0/fee_estimates/full.json deleted file mode 100644 index 9869607e37..0000000000 --- a/crates/rpc/fixtures/0.7.0/fee_estimates/full.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "data_gas_consumed": "0x80", - "data_gas_price": "0x1", - "gas_consumed": "0x3938", - "gas_price": "0x2", - "overall_fee": "0x72f0", - "unit": "WEI" -} diff --git a/crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class.json b/crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class.json deleted file mode 100644 index 95b7885f97..0000000000 --- a/crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class.json +++ /dev/null @@ -1,650 +0,0 @@ -[ - { - "fee_estimation": { - "data_gas_consumed": "0xc0", - "data_gas_price": "0x2", - "gas_consumed": "0x36e", - "gas_price": "0x1", - "overall_fee": "0x4ee", - "unit": "WEI" - }, - "transaction_trace": { - "execution_resources": { - "data_availability": { - "l1_data_gas": 192, - "l1_gas": 0 - }, - "memory_holes": 60, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 35, - "steps": 1557 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4ee", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4ee", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1354 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [ - { - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "compiled_class_hash": "0x69032ff71f77284e1a0864a573007108ca5cc08089416af50f03260f5d6d4d8" - } - ], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x1" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffffb12" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x4ee" - } - ] - } - ] - }, - "type": "DECLARE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 1, - "range_check_builtin_applications": 4, - "steps": 203 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "data_gas_consumed": "0xe0", - "data_gas_price": "0x2", - "gas_consumed": "0x13", - "gas_price": "0x1", - "overall_fee": "0x1d3", - "unit": "WEI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0xc01", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc02", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "entry_point_type": "CONSTRUCTOR", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [] - } - ], - "class_hash": "0x6f38fb91ddbf325a0625533576bb6f6eafd9341868a9ec3faa4b01ce6c4f4dc", - "contract_address": "0xc02", - "entry_point_selector": "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0xc01", - "0x0", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0" - ], - "keys": [ - "0x26b160f10156dea0639bec90696772c640b9706a47f5b8c52ea1abe5858b34d" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 2, - "pedersen_builtin_applications": 7, - "range_check_builtin_applications": 23, - "steps": 1262 - }, - "messages": [], - "result": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 20, - "pedersen_builtin_applications": 7, - "range_check_builtin_applications": 66, - "steps": 2574 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - }, - "execution_resources": { - "data_availability": { - "l1_data_gas": 224, - "l1_gas": 0 - }, - "memory_holes": 83, - "pedersen_builtin_applications": 11, - "range_check_builtin_applications": 111, - "steps": 4269 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d3", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d3", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1354 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [ - { - "address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - } - ], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x2" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffff93f" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x6c1" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 4, - "range_check_builtin_applications": 14, - "steps": 341 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0xe", - "gas_price": "0x1", - "overall_fee": "0x10e", - "unit": "WEI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "range_check_builtin_applications": 3, - "steps": 165 - }, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 18, - "range_check_builtin_applications": 46, - "steps": 1477 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "execution_resources": { - "data_availability": { - "l1_data_gas": 128, - "l1_gas": 0 - }, - "memory_holes": 81, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 91, - "steps": 3172 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x10e", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x10e", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1354 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x3" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffff831" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x7cf" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 4, - "range_check_builtin_applications": 14, - "steps": 341 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0xe", - "gas_price": "0x2", - "overall_fee": "0x11c", - "unit": "FRI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "range_check_builtin_applications": 3, - "steps": 165 - }, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 18, - "range_check_builtin_applications": 46, - "steps": 1477 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "execution_resources": { - "data_availability": { - "l1_data_gas": 128, - "l1_gas": 0 - }, - "memory_holes": 81, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 91, - "steps": 3172 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x11c", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x11c", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1354 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x4" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffffee4" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x11c" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 4, - "range_check_builtin_applications": 14, - "steps": 341 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - } -] diff --git a/crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_13_4.json b/crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_13_4.json deleted file mode 100644 index 4d19f541fe..0000000000 --- a/crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_13_4.json +++ /dev/null @@ -1,483 +0,0 @@ -[ - { - "fee_estimation": { - "data_gas_consumed": "0xc0", - "data_gas_price": "0x2", - "gas_consumed": "0x371", - "gas_price": "0x1", - "overall_fee": "0x4f1", - "unit": "WEI" - }, - "transaction_trace": { - "execution_resources": { - "data_availability": { - "l1_data_gas": 192, - "l1_gas": 0 - }, - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1370 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4f1", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4f1", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1370 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [ - { - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "compiled_class_hash": "0x69032ff71f77284e1a0864a573007108ca5cc08089416af50f03260f5d6d4d8" - } - ], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x1" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffffb0f" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x4f1" - } - ] - } - ] - }, - "type": "DECLARE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "data_gas_consumed": "0xe0", - "data_gas_price": "0x2", - "gas_consumed": "0x17", - "gas_price": "0x1", - "overall_fee": "0x1d7", - "unit": "WEI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0xc01", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc02", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "entry_point_type": "CONSTRUCTOR", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [] - } - ], - "class_hash": "0x6f38fb91ddbf325a0625533576bb6f6eafd9341868a9ec3faa4b01ce6c4f4dc", - "contract_address": "0xc02", - "entry_point_selector": "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0xc01", - "0x0", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0" - ], - "keys": [ - "0x26b160f10156dea0639bec90696772c640b9706a47f5b8c52ea1abe5858b34d" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 2, - "pedersen_builtin_applications": 7, - "range_check_builtin_applications": 22, - "steps": 1382 - }, - "messages": [], - "result": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 2, - "pedersen_builtin_applications": 7, - "range_check_builtin_applications": 22, - "steps": 1382 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - }, - "execution_resources": { - "data_availability": { - "l1_data_gas": 224, - "l1_gas": 0 - }, - "memory_holes": 61, - "pedersen_builtin_applications": 11, - "range_check_builtin_applications": 53, - "steps": 2752 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d7", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d7", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1370 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [ - { - "address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - } - ], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x2" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffff938" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x6c8" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0x0", - "gas_price": "0x2", - "overall_fee": "0xba0f9", - "unit": "FRI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "range_check_builtin_applications": 3, - "steps": 165 - }, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "range_check_builtin_applications": 3, - "steps": 165 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "execution_resources": { - "data_availability": { - "l1_data_gas": 128, - "l1_gas": 0 - }, - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 34, - "steps": 1535 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0xa926e", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0xa926e", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1370 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x3" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffff56d92" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0xa926e" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - } -] diff --git a/crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_14_0.json b/crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_14_0.json deleted file mode 100644 index 8179f2fdfd..0000000000 --- a/crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_14_0.json +++ /dev/null @@ -1,483 +0,0 @@ -[ - { - "fee_estimation": { - "data_gas_consumed": "0xc0", - "data_gas_price": "0x2", - "gas_consumed": "0x372", - "gas_price": "0x1", - "overall_fee": "0x4f2", - "unit": "WEI" - }, - "transaction_trace": { - "execution_resources": { - "data_availability": { - "l1_data_gas": 192, - "l1_gas": 0 - }, - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 32, - "steps": 1455 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4f2", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4f2", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 32, - "steps": 1455 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [ - { - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "compiled_class_hash": "0x69032ff71f77284e1a0864a573007108ca5cc08089416af50f03260f5d6d4d8" - } - ], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x1" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffffb0e" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x4f2" - } - ] - } - ] - }, - "type": "DECLARE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "data_gas_consumed": "0xe0", - "data_gas_price": "0x2", - "gas_consumed": "0x19", - "gas_price": "0x1", - "overall_fee": "0x1d9", - "unit": "WEI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0xc01", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc02", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "entry_point_type": "CONSTRUCTOR", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [] - } - ], - "class_hash": "0x6f38fb91ddbf325a0625533576bb6f6eafd9341868a9ec3faa4b01ce6c4f4dc", - "contract_address": "0xc02", - "entry_point_selector": "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0xc01", - "0x0", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0" - ], - "keys": [ - "0x26b160f10156dea0639bec90696772c640b9706a47f5b8c52ea1abe5858b34d" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 2, - "pedersen_builtin_applications": 7, - "range_check_builtin_applications": 26, - "steps": 1484 - }, - "messages": [], - "result": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 2, - "pedersen_builtin_applications": 7, - "range_check_builtin_applications": 26, - "steps": 1484 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - }, - "execution_resources": { - "data_availability": { - "l1_data_gas": 224, - "l1_gas": 0 - }, - "memory_holes": 61, - "pedersen_builtin_applications": 11, - "range_check_builtin_applications": 58, - "steps": 2939 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d9", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d9", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 32, - "steps": 1455 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [ - { - "address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - } - ], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x2" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffff935" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x6cb" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0x0", - "gas_price": "0x2", - "overall_fee": "0xc7fae", - "unit": "FRI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "range_check_builtin_applications": 3, - "steps": 168 - }, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "range_check_builtin_applications": 3, - "steps": 168 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "execution_resources": { - "data_availability": { - "l1_data_gas": 128, - "l1_gas": 0 - }, - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 35, - "steps": 1623 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0xb5ce4", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0xb5ce4", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 32, - "steps": 1455 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x3" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffff4a31c" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0xb5ce4" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - } -] diff --git a/crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_fee_charge.json b/crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_fee_charge.json deleted file mode 100644 index 9b51a78cf6..0000000000 --- a/crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_fee_charge.json +++ /dev/null @@ -1,439 +0,0 @@ -[ - { - "fee_estimation": { - "data_gas_consumed": "0xc0", - "data_gas_price": "0x2", - "gas_consumed": "0x36e", - "gas_price": "0x1", - "overall_fee": "0x4ee", - "unit": "WEI" - }, - "transaction_trace": { - "execution_resources": { - "data_availability": { - "l1_data_gas": 192, - "l1_gas": 0 - }, - "memory_holes": 1, - "range_check_builtin_applications": 4, - "steps": 203 - }, - "state_diff": { - "declared_classes": [ - { - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "compiled_class_hash": "0x69032ff71f77284e1a0864a573007108ca5cc08089416af50f03260f5d6d4d8" - } - ], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x1" - } - ], - "replaced_classes": [], - "storage_diffs": [] - }, - "type": "DECLARE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 1, - "range_check_builtin_applications": 4, - "steps": 203 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "data_gas_consumed": "0xe0", - "data_gas_price": "0x2", - "gas_consumed": "0x13", - "gas_price": "0x1", - "overall_fee": "0x1d3", - "unit": "WEI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0xc01", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc02", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "entry_point_type": "CONSTRUCTOR", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [] - } - ], - "class_hash": "0x6f38fb91ddbf325a0625533576bb6f6eafd9341868a9ec3faa4b01ce6c4f4dc", - "contract_address": "0xc02", - "entry_point_selector": "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0xc01", - "0x0", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0" - ], - "keys": [ - "0x26b160f10156dea0639bec90696772c640b9706a47f5b8c52ea1abe5858b34d" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 2, - "pedersen_builtin_applications": 7, - "range_check_builtin_applications": 23, - "steps": 1262 - }, - "messages": [], - "result": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 20, - "pedersen_builtin_applications": 7, - "range_check_builtin_applications": 66, - "steps": 2574 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - }, - "execution_resources": { - "data_availability": { - "l1_data_gas": 224, - "l1_gas": 0 - }, - "memory_holes": 24, - "pedersen_builtin_applications": 7, - "range_check_builtin_applications": 80, - "steps": 2915 - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [ - { - "address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - } - ], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x2" - } - ], - "replaced_classes": [], - "storage_diffs": [] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 4, - "range_check_builtin_applications": 14, - "steps": 341 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0xe", - "gas_price": "0x1", - "overall_fee": "0x10e", - "unit": "WEI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "range_check_builtin_applications": 3, - "steps": 165 - }, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 18, - "range_check_builtin_applications": 46, - "steps": 1477 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "execution_resources": { - "data_availability": { - "l1_data_gas": 128, - "l1_gas": 0 - }, - "memory_holes": 22, - "range_check_builtin_applications": 60, - "steps": 1818 - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x3" - } - ], - "replaced_classes": [], - "storage_diffs": [] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 4, - "range_check_builtin_applications": 14, - "steps": 341 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0xe", - "gas_price": "0x2", - "overall_fee": "0x11c", - "unit": "FRI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "range_check_builtin_applications": 3, - "steps": 165 - }, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 18, - "range_check_builtin_applications": 46, - "steps": 1477 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "execution_resources": { - "data_availability": { - "l1_data_gas": 128, - "l1_gas": 0 - }, - "memory_holes": 22, - "range_check_builtin_applications": 60, - "steps": 1818 - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x4" - } - ], - "replaced_classes": [], - "storage_diffs": [] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 4, - "range_check_builtin_applications": 14, - "steps": 341 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - } -] diff --git a/crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_validate.json b/crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_validate.json deleted file mode 100644 index 99e0301034..0000000000 --- a/crates/rpc/fixtures/0.7.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_validate.json +++ /dev/null @@ -1,549 +0,0 @@ -[ - { - "fee_estimation": { - "data_gas_consumed": "0xc0", - "data_gas_price": "0x2", - "gas_consumed": "0x36e", - "gas_price": "0x1", - "overall_fee": "0x4ee", - "unit": "WEI" - }, - "transaction_trace": { - "execution_resources": { - "data_availability": { - "l1_data_gas": 192, - "l1_gas": 0 - }, - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1354 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4ee", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4ee", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1354 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [ - { - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "compiled_class_hash": "0x69032ff71f77284e1a0864a573007108ca5cc08089416af50f03260f5d6d4d8" - } - ], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x1" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffffb12" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x4ee" - } - ] - } - ] - }, - "type": "DECLARE" - } - }, - { - "fee_estimation": { - "data_gas_consumed": "0xe0", - "data_gas_price": "0x2", - "gas_consumed": "0x12", - "gas_price": "0x1", - "overall_fee": "0x1d2", - "unit": "WEI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0xc01", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc02", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "entry_point_type": "CONSTRUCTOR", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [] - } - ], - "class_hash": "0x6f38fb91ddbf325a0625533576bb6f6eafd9341868a9ec3faa4b01ce6c4f4dc", - "contract_address": "0xc02", - "entry_point_selector": "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0xc01", - "0x0", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0" - ], - "keys": [ - "0x26b160f10156dea0639bec90696772c640b9706a47f5b8c52ea1abe5858b34d" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 2, - "pedersen_builtin_applications": 7, - "range_check_builtin_applications": 23, - "steps": 1262 - }, - "messages": [], - "result": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 20, - "pedersen_builtin_applications": 7, - "range_check_builtin_applications": 66, - "steps": 2574 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - }, - "execution_resources": { - "data_availability": { - "l1_data_gas": 224, - "l1_gas": 0 - }, - "memory_holes": 79, - "pedersen_builtin_applications": 11, - "range_check_builtin_applications": 97, - "steps": 3928 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d2", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d2", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1354 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [ - { - "address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - } - ], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x2" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffff940" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x6c0" - } - ] - } - ] - }, - "type": "INVOKE" - } - }, - { - "fee_estimation": { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0xd", - "gas_price": "0x1", - "overall_fee": "0x10d", - "unit": "WEI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "range_check_builtin_applications": 3, - "steps": 165 - }, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 18, - "range_check_builtin_applications": 46, - "steps": 1477 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "execution_resources": { - "data_availability": { - "l1_data_gas": 128, - "l1_gas": 0 - }, - "memory_holes": 77, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 77, - "steps": 2831 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x10d", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x10d", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1354 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x3" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffff833" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x7cd" - } - ] - } - ] - }, - "type": "INVOKE" - } - }, - { - "fee_estimation": { - "data_gas_consumed": "0x80", - "data_gas_price": "0x2", - "gas_consumed": "0xd", - "gas_price": "0x2", - "overall_fee": "0x11a", - "unit": "FRI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "range_check_builtin_applications": 3, - "steps": 165 - }, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 18, - "range_check_builtin_applications": 46, - "steps": 1477 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "execution_resources": { - "data_availability": { - "l1_data_gas": 128, - "l1_gas": 0 - }, - "memory_holes": 77, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 77, - "steps": 2831 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x11a", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x11a", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1354 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x4" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffffee6" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x11a" - } - ] - } - ] - }, - "type": "INVOKE" - } - } -] diff --git a/crates/rpc/fixtures/0.7.0/simulations/simulate_transaction.json b/crates/rpc/fixtures/0.7.0/simulations/simulate_transaction.json deleted file mode 100644 index e79e72419c..0000000000 --- a/crates/rpc/fixtures/0.7.0/simulations/simulate_transaction.json +++ /dev/null @@ -1,114 +0,0 @@ -[ - { - "fee_estimation": { - "data_gas_consumed": "0x160", - "data_gas_price": "0x2", - "gas_consumed": "0x15", - "gas_price": "0x1", - "overall_fee": "0x2d5", - "unit": "WEI" - }, - "transaction_trace": { - "constructor_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xf3805e4f045a8b48e7e9e6cd5d910973a22360572207f3ae625c5cec2a3232", - "entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "entry_point_type": "CONSTRUCTOR", - "events": [ - { - "data": [], - "keys": [ - "0x38f6a5b87c23cee6e7294bcc3302e95019f70f81586ff3cac38581f5ca96381", - "0x1" - ], - "order": 0 - } - ], - "execution_resources": { - "pedersen_builtin_applications": 2, - "range_check_builtin_applications": 8, - "steps": 312 - }, - "messages": [], - "result": [] - }, - "execution_resources": { - "data_availability": { - "l1_data_gas": 352, - "l1_gas": 0 - }, - "memory_holes": 1, - "pedersen_builtin_applications": 2, - "range_check_builtin_applications": 10, - "steps": 447 - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [ - { - "address": "0xf3805e4f045a8b48e7e9e6cd5d910973a22360572207f3ae625c5cec2a3232", - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978" - } - ], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xf3805e4f045a8b48e7e9e6cd5d910973a22360572207f3ae625c5cec2a3232", - "nonce": "0x1" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0xf3805e4f045a8b48e7e9e6cd5d910973a22360572207f3ae625c5cec2a3232", - "storage_entries": [ - { - "key": "0x81ba5d1f84a6a8f0e7ae24720a20f43f81d9ee6eed98fd524ba8d53a49416b", - "value": "0x1" - }, - { - "key": "0x1379ac0624b939ceb9dede92211d7db5ee174fe28be72245b0a1a2abd81c98f", - "value": "0x1" - }, - { - "key": "0x7e79bbb6be5d418acd50c88b675e697f6f7094e203c9d7e29c6ad6731f931dd", - "value": "0x1" - } - ] - } - ] - }, - "type": "DEPLOY_ACCOUNT", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "0x46c0d4abf0192a788aca261e58d7031576f7d8ea5229f452b0f23e691dd5971", - "0x1" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xf3805e4f045a8b48e7e9e6cd5d910973a22360572207f3ae625c5cec2a3232", - "entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 1, - "range_check_builtin_applications": 2, - "steps": 135 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - } -] diff --git a/crates/rpc/fixtures/0.7.0/state_updates/full.json b/crates/rpc/fixtures/0.7.0/state_updates/full.json deleted file mode 100644 index 311847daa5..0000000000 --- a/crates/rpc/fixtures/0.7.0/state_updates/full.json +++ /dev/null @@ -1,2 +0,0 @@ -{} - diff --git a/crates/rpc/fixtures/0.7.0/state_updates/pre_confirmed.json b/crates/rpc/fixtures/0.7.0/state_updates/pre_confirmed.json deleted file mode 100644 index 311847daa5..0000000000 --- a/crates/rpc/fixtures/0.7.0/state_updates/pre_confirmed.json +++ /dev/null @@ -1,2 +0,0 @@ -{} - diff --git a/crates/rpc/fixtures/0.7.0/traces/multiple_pre_confirmed_txs.json b/crates/rpc/fixtures/0.7.0/traces/multiple_pre_confirmed_txs.json deleted file mode 100644 index fe51488c70..0000000000 --- a/crates/rpc/fixtures/0.7.0/traces/multiple_pre_confirmed_txs.json +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/crates/rpc/fixtures/0.7.0/traces/multiple_txs.json b/crates/rpc/fixtures/0.7.0/traces/multiple_txs.json deleted file mode 100644 index c6cbcd6667..0000000000 --- a/crates/rpc/fixtures/0.7.0/traces/multiple_txs.json +++ /dev/null @@ -1,469 +0,0 @@ -[ - { - "trace_root": { - "execution_resources": { - "data_availability": { - "l1_data_gas": 192, - "l1_gas": 0 - }, - "memory_holes": 60, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 35, - "steps": 1557 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4ee", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4ee", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1354 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [ - { - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "compiled_class_hash": "0x69032ff71f77284e1a0864a573007108ca5cc08089416af50f03260f5d6d4d8" - } - ], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x1" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffffb12" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x4ee" - } - ] - } - ] - }, - "type": "DECLARE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 1, - "range_check_builtin_applications": 4, - "steps": 203 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - }, - "transaction_hash": "0x548c629e4ee49b5280bb1363288d2e112974beaa2959c96500a9f0cbc41e5ee" - }, - { - "trace_root": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0xc01", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc02", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "entry_point_type": "CONSTRUCTOR", - "events": [], - "execution_resources": { - "steps": 0 - }, - "messages": [], - "result": [] - } - ], - "class_hash": "0x6f38fb91ddbf325a0625533576bb6f6eafd9341868a9ec3faa4b01ce6c4f4dc", - "contract_address": "0xc02", - "entry_point_selector": "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0xc01", - "0x0", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0" - ], - "keys": [ - "0x26b160f10156dea0639bec90696772c640b9706a47f5b8c52ea1abe5858b34d" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 2, - "pedersen_builtin_applications": 7, - "range_check_builtin_applications": 23, - "steps": 1262 - }, - "messages": [], - "result": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 20, - "pedersen_builtin_applications": 7, - "range_check_builtin_applications": 66, - "steps": 2574 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - }, - "execution_resources": { - "data_availability": { - "l1_data_gas": 224, - "l1_gas": 0 - }, - "memory_holes": 83, - "pedersen_builtin_applications": 11, - "range_check_builtin_applications": 111, - "steps": 4269 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d3", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d3", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1354 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [ - { - "address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - } - ], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x2" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffff93f" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x6c1" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 4, - "range_check_builtin_applications": 14, - "steps": 341 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - }, - "transaction_hash": "0x1cdd84a12e3582bd60acf7546d6e1a54e9706414f28cd3b2ce8a3d2eb5e4f73" - }, - { - "trace_root": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "range_check_builtin_applications": 3, - "steps": 165 - }, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 18, - "range_check_builtin_applications": 46, - "steps": 1477 - }, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "execution_resources": { - "data_availability": { - "l1_data_gas": 128, - "l1_gas": 0 - }, - "memory_holes": 81, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 91, - "steps": 3172 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x10e", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x10e", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "memory_holes": 59, - "pedersen_builtin_applications": 4, - "range_check_builtin_applications": 31, - "steps": 1354 - }, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x3" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffff831" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x7cf" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "memory_holes": 4, - "range_check_builtin_applications": 14, - "steps": 341 - }, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - }, - "transaction_hash": "0x2a973a52127349ccb6ecd72c31a7b1fc444a526643b4afe8a275a536075cb0e" - } -] \ No newline at end of file diff --git a/crates/rpc/fixtures/0.7.0/transactions/receipt_l1_accepted.json b/crates/rpc/fixtures/0.7.0/transactions/receipt_l1_accepted.json deleted file mode 100644 index 3f446a0e43..0000000000 --- a/crates/rpc/fixtures/0.7.0/transactions/receipt_l1_accepted.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "block_hash": "0x626c6f636b2031", - "block_number": 1, - "events": [], - "execution_resources": { - "data_availability": { - "l1_data_gas": 0, - "l1_gas": 0 - }, - "memory_holes": 5, - "pedersen_builtin_applications": 32, - "steps": 10 - }, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L1", - "messages_sent": [], - "transaction_hash": "0x74786e2031", - "type": "INVOKE" -} diff --git a/crates/rpc/fixtures/0.7.0/transactions/receipt_l2_accepted.json b/crates/rpc/fixtures/0.7.0/transactions/receipt_l2_accepted.json deleted file mode 100644 index abcd9e637e..0000000000 --- a/crates/rpc/fixtures/0.7.0/transactions/receipt_l2_accepted.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "block_hash": "0x6c6174657374", - "block_number": 2, - "events": [], - "execution_resources": { - "data_availability": { - "l1_data_gas": 0, - "l1_gas": 0 - }, - "memory_holes": 5, - "pedersen_builtin_applications": 32, - "steps": 10 - }, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [], - "transaction_hash": "0x74786e2033", - "type": "INVOKE" -} diff --git a/crates/rpc/fixtures/0.7.0/transactions/receipt_reverted.json b/crates/rpc/fixtures/0.7.0/transactions/receipt_reverted.json deleted file mode 100644 index 2bc2437e7e..0000000000 --- a/crates/rpc/fixtures/0.7.0/transactions/receipt_reverted.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "block_hash": "0x6c6174657374", - "block_number": 2, - "events": [], - "execution_resources": { - "data_availability": { - "l1_data_gas": 0, - "l1_gas": 0 - }, - "memory_holes": 5, - "pedersen_builtin_applications": 32, - "steps": 10 - }, - "execution_status": "REVERTED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [], - "revert_reason": "Reverted because", - "transaction_hash": "0x74786e207265766572746564", - "type": "INVOKE" -} \ No newline at end of file diff --git a/crates/rpc/fixtures/0.7.0/transactions/receipt_reverted_preconfirmed.json b/crates/rpc/fixtures/0.7.0/transactions/receipt_reverted_preconfirmed.json deleted file mode 100644 index 926c7ac288..0000000000 --- a/crates/rpc/fixtures/0.7.0/transactions/receipt_reverted_preconfirmed.json +++ /dev/null @@ -1 +0,0 @@ -"pre-0.9 json rpc doesn't have access to pre-confirmed data" diff --git a/crates/rpc/fixtures/0.7.0/transactions/status_reverted.json b/crates/rpc/fixtures/0.7.0/transactions/status_reverted.json deleted file mode 100644 index 926c7ac288..0000000000 --- a/crates/rpc/fixtures/0.7.0/transactions/status_reverted.json +++ /dev/null @@ -1 +0,0 @@ -"pre-0.9 json rpc doesn't have access to pre-confirmed data" diff --git a/crates/rpc/fixtures/0.7.0/transactions/status_reverted_with_reason.json b/crates/rpc/fixtures/0.7.0/transactions/status_reverted_with_reason.json deleted file mode 100644 index 6b6cc60aa7..0000000000 --- a/crates/rpc/fixtures/0.7.0/transactions/status_reverted_with_reason.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "execution_status": "REVERTED", - "finality_status": "ACCEPTED_ON_L2" -} \ No newline at end of file diff --git a/crates/rpc/fixtures/0.7.0/transactions/txn_1.json b/crates/rpc/fixtures/0.7.0/transactions/txn_1.json deleted file mode 100644 index 7d5799c7bc..0000000000 --- a/crates/rpc/fixtures/0.7.0/transactions/txn_1.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e2031", - "type": "INVOKE", - "version": "0x0" -} \ No newline at end of file diff --git a/crates/rpc/fixtures/0.7.0/transactions/txn_preconfirmed_reverted.json b/crates/rpc/fixtures/0.7.0/transactions/txn_preconfirmed_reverted.json deleted file mode 100644 index 926c7ac288..0000000000 --- a/crates/rpc/fixtures/0.7.0/transactions/txn_preconfirmed_reverted.json +++ /dev/null @@ -1 +0,0 @@ -"pre-0.9 json rpc doesn't have access to pre-confirmed data" diff --git a/crates/rpc/fixtures/0.7.0/transactions/txn_reverted.json b/crates/rpc/fixtures/0.7.0/transactions/txn_reverted.json deleted file mode 100644 index 90255207d6..0000000000 --- a/crates/rpc/fixtures/0.7.0/transactions/txn_reverted.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e207265766572746564", - "type": "INVOKE", - "version": "0x0" -} \ No newline at end of file diff --git a/crates/rpc/fixtures/0.8.0/blocks/latest.json b/crates/rpc/fixtures/0.8.0/blocks/latest.json deleted file mode 100644 index 5a0f4a7a2a..0000000000 --- a/crates/rpc/fixtures/0.8.0/blocks/latest.json +++ /dev/null @@ -1,194 +0,0 @@ -{ - "block_hash": "0x6c6174657374", - "block_number": 2, - "l1_da_mode": "CALLDATA", - "l1_data_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x0" - }, - "l1_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x2" - }, - "l2_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x0" - }, - "new_root": "0x57b695c82af81429fdc8966088b0196105dfb5aa22b54cbc86fc95dc3b3ece1", - "parent_hash": "0x626c6f636b2031", - "sequencer_address": "0x2", - "starknet_version": "0.13.2", - "status": "ACCEPTED_ON_L2", - "timestamp": 2, - "transactions": [ - { - "receipt": { - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "events": [], - "execution_resources": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - }, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [], - "transaction_hash": "0x74786e2033", - "type": "INVOKE" - }, - "transaction": { - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "type": "INVOKE", - "version": "0x0" - } - }, - { - "receipt": { - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "events": [], - "execution_resources": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - }, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [], - "transaction_hash": "0x74786e2034", - "type": "INVOKE" - }, - "transaction": { - "calldata": [], - "contract_address": "0x0", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "type": "INVOKE", - "version": "0x0" - } - }, - { - "receipt": { - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "events": [], - "execution_resources": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - }, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [], - "transaction_hash": "0x74786e2035", - "type": "INVOKE" - }, - "transaction": { - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "type": "INVOKE", - "version": "0x0" - } - }, - { - "receipt": { - "actual_fee": { - "amount": "0x0", - "unit": "FRI" - }, - "events": [], - "execution_resources": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - }, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [ - { - "from_address": "0xcafebabe", - "payload": [ - "0x1", - "0x2", - "0x3" - ], - "to_address": "0x0" - } - ], - "transaction_hash": "0x74786e2036", - "type": "INVOKE" - }, - "transaction": { - "account_deployment_data": [], - "calldata": [], - "fee_data_availability_mode": "L1", - "nonce": "0x0", - "nonce_data_availability_mode": "L1", - "paymaster_data": [], - "resource_bounds": { - "l1_data_gas": { - "max_amount": "0x0", - "max_price_per_unit": "0x0" - }, - "l1_gas": { - "max_amount": "0x0", - "max_price_per_unit": "0x0" - }, - "l2_gas": { - "max_amount": "0x0", - "max_price_per_unit": "0x0" - } - }, - "sender_address": "0x636f6e74726163742032202873696572726129", - "signature": [], - "tip": "0x0", - "type": "INVOKE", - "version": "0x3" - } - }, - { - "receipt": { - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "events": [], - "execution_resources": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - }, - "execution_status": "REVERTED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [], - "revert_reason": "Reverted because", - "transaction_hash": "0x74786e207265766572746564", - "type": "INVOKE" - }, - "transaction": { - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "type": "INVOKE", - "version": "0x0" - } - } - ] -} diff --git a/crates/rpc/fixtures/0.8.0/blocks/latest_with_tx_hashes.json b/crates/rpc/fixtures/0.8.0/blocks/latest_with_tx_hashes.json deleted file mode 100644 index 2b51c15576..0000000000 --- a/crates/rpc/fixtures/0.8.0/blocks/latest_with_tx_hashes.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "block_hash": "0x6c6174657374", - "block_number": 2, - "l1_da_mode": "CALLDATA", - "l1_data_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x0" - }, - "l1_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x2" - }, - "l2_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x0" - }, - "new_root": "0x57b695c82af81429fdc8966088b0196105dfb5aa22b54cbc86fc95dc3b3ece1", - "parent_hash": "0x626c6f636b2031", - "sequencer_address": "0x2", - "starknet_version": "0.13.2", - "status": "ACCEPTED_ON_L2", - "timestamp": 2, - "transactions": [ - "0x74786e2033", - "0x74786e2034", - "0x74786e2035", - "0x74786e2036", - "0x74786e207265766572746564" - ] -} diff --git a/crates/rpc/fixtures/0.8.0/blocks/latest_with_txs.json b/crates/rpc/fixtures/0.8.0/blocks/latest_with_txs.json deleted file mode 100644 index c96d2944df..0000000000 --- a/crates/rpc/fixtures/0.8.0/blocks/latest_with_txs.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "block_hash": "0x6c6174657374", - "block_number": 2, - "l1_da_mode": "CALLDATA", - "l1_data_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x0" - }, - "l1_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x2" - }, - "l2_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x0" - }, - "new_root": "0x57b695c82af81429fdc8966088b0196105dfb5aa22b54cbc86fc95dc3b3ece1", - "parent_hash": "0x626c6f636b2031", - "sequencer_address": "0x2", - "starknet_version": "0.13.2", - "status": "ACCEPTED_ON_L2", - "timestamp": 2, - "transactions": [ - { - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e2033", - "type": "INVOKE", - "version": "0x0" - }, - { - "calldata": [], - "contract_address": "0x0", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e2034", - "type": "INVOKE", - "version": "0x0" - }, - { - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e2035", - "type": "INVOKE", - "version": "0x0" - }, - { - "account_deployment_data": [], - "calldata": [], - "fee_data_availability_mode": "L1", - "nonce": "0x0", - "nonce_data_availability_mode": "L1", - "paymaster_data": [], - "resource_bounds": { - "l1_data_gas": { - "max_amount": "0x0", - "max_price_per_unit": "0x0" - }, - "l1_gas": { - "max_amount": "0x0", - "max_price_per_unit": "0x0" - }, - "l2_gas": { - "max_amount": "0x0", - "max_price_per_unit": "0x0" - } - }, - "sender_address": "0x636f6e74726163742032202873696572726129", - "signature": [], - "tip": "0x0", - "transaction_hash": "0x74786e2036", - "type": "INVOKE", - "version": "0x3" - }, - { - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e207265766572746564", - "type": "INVOKE", - "version": "0x0" - } - ] -} diff --git a/crates/rpc/fixtures/0.8.0/blocks/pre_confirmed.json b/crates/rpc/fixtures/0.8.0/blocks/pre_confirmed.json deleted file mode 100644 index 40a66d65d2..0000000000 --- a/crates/rpc/fixtures/0.8.0/blocks/pre_confirmed.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "l1_da_mode": "CALLDATA", - "l1_data_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x0" - }, - "l1_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x2" - }, - "l2_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x0" - }, - "parent_hash": "0x6c6174657374", - "sequencer_address": "0x2", - "starknet_version": "0.13.2", - "timestamp": 2, - "transactions": [] -} diff --git a/crates/rpc/fixtures/0.8.0/blocks/pre_confirmed_with_tx_hashes.json b/crates/rpc/fixtures/0.8.0/blocks/pre_confirmed_with_tx_hashes.json deleted file mode 100644 index 56d57c18c1..0000000000 --- a/crates/rpc/fixtures/0.8.0/blocks/pre_confirmed_with_tx_hashes.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "l1_da_mode": "CALLDATA", - "l1_data_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x0" - }, - "l1_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x2" - }, - "l2_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x0" - }, - "parent_hash": "0x6c6174657374", - "sequencer_address": "0x2", - "starknet_version": "0.13.2", - "timestamp": 2, - "transactions": [] -} diff --git a/crates/rpc/fixtures/0.8.0/blocks/pre_confirmed_with_txs.json b/crates/rpc/fixtures/0.8.0/blocks/pre_confirmed_with_txs.json deleted file mode 100644 index 40a66d65d2..0000000000 --- a/crates/rpc/fixtures/0.8.0/blocks/pre_confirmed_with_txs.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "l1_da_mode": "CALLDATA", - "l1_data_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x0" - }, - "l1_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x2" - }, - "l2_gas_price": { - "price_in_fri": "0x0", - "price_in_wei": "0x0" - }, - "parent_hash": "0x6c6174657374", - "sequencer_address": "0x2", - "starknet_version": "0.13.2", - "timestamp": 2, - "transactions": [] -} diff --git a/crates/rpc/fixtures/0.8.0/class_at/cairo0.json b/crates/rpc/fixtures/0.8.0/class_at/cairo0.json deleted file mode 100644 index 88f8cb9408..0000000000 --- a/crates/rpc/fixtures/0.8.0/class_at/cairo0.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "abi":[ - { - "inputs":[ - { - "name":"address", - "type":"felt" - }, - { - "name":"value", - "type":"felt" - } - ], - "name":"increase_value", - "outputs":[ - - ], - "type":"function" - }, - { - "inputs":[ - { - "name":"contract_address", - "type":"felt" - }, - { - "name":"address", - "type":"felt" - }, - { - "name":"value", - "type":"felt" - } - ], - "name":"call_increase_value", - "outputs":[ - - ], - "type":"function" - }, - { - "inputs":[ - { - "name":"address", - "type":"felt" - } - ], - "name":"get_value", - "outputs":[ - { - "name":"res", - "type":"felt" - } - ], - "type":"function" - } - ], - "entry_points_by_type":{ - "CONSTRUCTOR":[ - - ], - "EXTERNAL":[ - { - "offset":"0x75", - "selector":"0x26813d396fdb198e9ead934e4f7a592a8b88a059e45ab0eb6ee53494e8d45b0" - }, - { - "offset":"0x55", - "selector":"0x3033d3588abc2928b334742248e380daa139fc6b2bba31d609282d2c641a450" - }, - { - "offset":"0x3d", - "selector":"0x34c4c150632e67baf44fc50e9a685184d72a822510a26a66f72058b5e7b2892" - } - ], - "L1_HANDLER":[ - - ] - }, - "program":"H4sIAAAAAAAE/91de2/bSJL/Kgb/SnYcgW9SBuYPT+KdDS6PPduze7ggIGiJ8giRJa1EzSQX+LtfVb/YTTbJbpIKsLtYT2yKrK761buapL47eVke1g+nsjg6V58+XzoPp/WmXG/xL+eQbx+LbPF7sfjiwEfLvMzhJMf9GrpJ6rpeslqt8Me5hGMe+a/vpg94iP0U5GCYujE/H/516cEg9uJFvAiDeBUXSZj48HeQhPRD1/XxTCAzh58VPxjAQVwWD+byQR/OwoMP8sGAHVzIB0N2cEkPpj5nbQ60KWsJ+4jwEOH54iMQBRmLlYPmQkcgYLxKUNQkjiI/jkDohsgLoN4QGQ82eF4IxgKZZ0Sj+mgwewkwOk/COKK0K50QFfODXCd4UEEaucCDDa4falzrGWy1Mc9zQQ2uB1Twh+oM/nDF/zwXLNPi/wWlEboemgyxaaQnS+jiAdCLIiFZHg6qEuKZ+EMu98l/gd8czkMLXYmP2EGESDnIDbI6GISLcOFFbhz4RZw85KswXC0it5jncRp5abhM/Dz1/chzcz/O4xgszI3Sh6hIHvx0zlnwU1waf4AVJkfq5uxAtZo3Ob7LmKHgoU0sYflqtRBYgAMIT3XQbwkjeFYDLzyI3lFdfgYJWGBJiQQFMFytxiRQWQhTP4WzUNYlIkwAOANfNMK24OXHsDTGy4oFnzASuj6ihtwRtunB1MXY5gLblYeCcPxgRYQdVCl7k5vNiuaU9mwTtqgDOUbmFDE4FpXimNdTIgQHgIsebAHURdS0XowfVJRDatQGpsrORE1Ul08P5cLWTlg+sbWTBuqoCrSoHuMBGPBMEh6EEqaHwdSiVHWE1ELqBzVFDTUedr65RalnhtR41OWmxyJPiNfrLb01+YauG6CC8AcCBU8jNNLgQfwhhJnz6oTB4Ijn4Q8QobaJYrMDlSfouUvpcnBpZVZsOVuDVW1zepQLIRzat+oe06+2UgwQq9QKypBacd3WSEIzONjQBHYExcPpMVtvVzvnanvabC6d39fbEnqH744LnQJ0F4tFcTyuHzZFdlzs9qTJcI5lfvjyZ34oZot8fdjNFrunp912lm82OzSnro/ZSbD0YrcsnCvnqXjaHb59yvefL36+OBaPTwWsP8uXyxcvwQhXm92fWXnIF1/W28eM9i/A1F4cc66+O4+H3WnvXLmXzm61OhYl/Pp86RyKVXEotosiWy9RoOfnZ1jVMxKLSLAtSi7Z8dtxAdIdgSPyEZGd/KY5CUDZbLLFbot8l9h3LaiojEr2e75dboqDet4LLvvP/JfLC37Bvjz8DELMpL9twfEqcDwNOJJKzcSaZVlZPO0BzfjS/mIEkyozGHF1dlz/H5iQP4QE004GhnYojmAfYD1EcgvVzlan7aJc77bZsdgUi3J3cK4AZ2syTK3OVWQviWwTzlXIjTxtd94se8rX2ywDW1Z+/fOQ7/fF4cg+qf6cPRZl9ke+ORUZuBOYcnYoytNhK1n2dE7sgR66vNjJsn7OZtLcIwPnca5SIGt2Jch6LA+nBUSRZM7gnLej2a9swLn/pNkRrCd/LADafCkBy0xDhAz5tDNHDHArroihEUPmlgUMD1wEKFsigvmAuuncyEWUhRmGsLCZc+ouplbkudQg/A736pfMziD+PKzLwsAiyHlnNgkI1lOZBGGX2YQPqkmt9EqvFrHbMwucXLH0amYWTLPJgPVJTATeY2oVcUeYUCKtFH+rWAZWoQSo9XZxKPJjQSOvZADTxVrI3FydvqsrCjoYAtXxJJ7li/KUb1g2DgFJ0+sOj1X+DcG4LK5j2IegecOrSB4IQebu80uoakLIpGCQXSc2MkwIwaXzgqLMjiyxRPVspCq7ltNZFppH7VnI3rxQeVD3n93GAEZuY0HQa2MarloNLYZUoADed7FsbXHdbgwu5hV9ZbNx3WYNqDDDjetu0nMpsd4Y0DQQGU0YjCWpW5luiYYdJ5Cde9c4FJUxJyYgKME28TBggjGsl9DsrVdrqDqxj+NWPHv/7TWrz/Fw+W0PVb6zzZ+K4z6HORhcqTl1dn14hDr+u7M6bTYZng3dZet5l9h4PtCFgR7tJAAwttiReip8oqPw9sPr25vru5vsH9fvfrvJ7m7e3by+/3grMQu2ciwhpDNte+HcS0KY2fq+m7huFMxjP02TAH6d+3A49uM4ncPehRuEnhslge97XhrFceT6qT+PE9+L4iAI4OK4jaen/Wa9WJemKLyVzx+Fxi3tBqAR70OenTlqtbu3/3vz8a/Zu4+vr9/dtSOO+UynunyzgRkF8LosjuV6m5fr3RbspKramhMNNrK4dJht5Jt1fnRa1EB8DLRPe/+OdciK26IxYlCnAmBCJqsui03xmJdFhssjKG3Sta6qUjCTVc1adNnF7pCXuwM4Iu5F7xfOVQCJkcnA++U28FSCxg6tu0y2MSdfLmn38N0h6s04P8UGnZQnKGxzFizwVEG++xq0M+bk3Sf6z2AxNMxAwGQMdIeZmlyKx4JlEW/riHNdlyvwNHJAtyQIkxLPNaf/BQyXwwpNExTXfFQzRHIWN+xlZhfK0gotmAb7GoyG8QdB0sWfGrWMeCyOwmgf0gKlpaprVC+rWSj65Xcnr+anYqbKhqhhNScMASriwFAzMxN3Pi3yY/litb+8WIHv/OUvLz+DL1sThNqHEyT0Pq1g+vvThceovhxCE0ojHU2/ognTX2Z8YjQMC8FAifZjUtUxa2gJS6oAI5wufqxOm86Co4XaQLVETC2he+lwiala8v3FTxcvXnkvucygnOFC9wRNS6E5tYFCY5gltgjJRBV6RYUOpxEa8yf3RmjX8gOMAafxSQ3lgVgIv4QeRsWibgAD3bPH34eblGlytbStBtmBwPYaWTSNkRnmW0sU6lTPBUI8EQhFiY6mjalYPdhKz8gNlNrDtgoDTCjlEX1UJU413AegdUa5M1oKamILVE7DZKckzwaAP43eTSpHS/llkgPF73X9hEtP1H9pWvL021WgEB5uVywTTGJQlNa5oBQSY/FoIfBT8bTYf8OA0dbdkuKM79nT02f0H3AqVvs1u3fMzPVRKLQay0LqZZ3ia1kctvnGAYYxTiRQwzKK2q5WQ7S7n229QG5e/q06WZ1ERj1s74UKJPW8B6ojdpBx9UCjAurn3Sg2ZnLA0J2O+Yefb9q96phm7ScsoY1oHZfIEkK9T5MFFPxMpmNJdqifLx3RY+qIGfaqGPw66fDiHQTRQWssHKdjE1nAzypVXDrc92iIuhINKel8rJoAHWCNSnKsxA2C5xLdqjTViW7oRsa6rtM7l+BKOdqdlyVT8nkXncLAQ7WlehNlkqV0gJoEGWM0ZWLnQtKmxLGCUlSOpHaCBMqimH4Mo8OSaciiuGmnci74rMqax4LdUkXLma5Kw3MDMY7XlhqCVneBUTtNzjCmZYWUC2EOw7R4bOaiaimjfN9yusKh7AC6oNySsg3Z7EnUFYPsRIU12FpALeoyY5W5RBI35GhI6q7Y5IlWhxTUQtqw07zaxlNgM74SlqZpYrjMc9U8PcxVZiY20COaTOJs4okyhMS77pwk4ZaAjWB547kQXVXcWE6yC6Tq2BlNtLuliSrT1MYZlV53sNGdqzhNj4XKtsSg0Ad/fqJXba/5IlxqQlONMaP41HWNIpRsXTrXGxKkaouzAATUtZauP1tmEozMoJuo0RkSjWokehRuIg0nYeO4MCPnJoJtDvoX2jmzKTUsCb81Kflq4nUkARPR8PKBYvGwEYGoqlgsaljtB9XEMrFoE/lkOgPl7FWfaIEMwi5gxc2iFz816naHc4mux/dpYujbuxVDGO6ri2uaYRT1UdFEJZTAuZRhleKP5e4gbn6H0LZsuTen9e4VhYAI/81RHz+P3AFMM6L+LqDelSgF3VLVLb30Vh5Vb3TRrno/BRtipbWahrsJt+Rjk4ss0kMPue50anPxdDy1ZcwebthlMh/y6zSyfXlAXXZV/ThqZNs92lPlcgDvjaV5We/RPFr5mL/p02itLMh0pZYNJh3MruS6qAcGq8zfQ0u6LSWXbxnXS6zGsGGkbaIbbPxxkHmqQVekYfLK4TeqkEFj8PIz/BtcvLr4xO4/gCP0rouXznNrJLcQQr5ZeWJ8JNIT4vNJA5BHIelOb3agNAaqkC50PjjYegCdxhrnhGl6iJjFTm81lPA5wQCn8qcFpC1MY4wcaiNIc3IURBxh8hOn6S427SOWcEjneWrSQm/Tkw4YJKNCK97BF2nTcGMg1huRKK2BJoBVAbahaduUx6xf62WSnrDMsIhEudWiumu/DwBhhYJUQVNyh2OW6cra5hO3E4SfMVtIPb6hZquIpHPhHJ8tTJg81ITqnEPZTgPklUOpW7XfffAWZXakg/Z6wuvS5ExUsVaxDopWvtpAI++Dxb28MOCbxMCh1RQIgTdaoek3CgTr6M+JDYWDzwLmvU5vKbPylOiMsZl1dRK2loAgUoJTCk+qRbCCVbEpXw4vmeW5Ut0xkLS1omWCA+XVdQ+fiLy8WYB4w1Ia0bZxKu7zqhev1FnVQNfJlNc88DuoAF41hZAZCXldBvEv8/uupFj3WJjvg3rgOywvYU4jT25BN6w8rCjo9Y9DaqfKjT5QpR7kigHPkQZf+KRlPePRR7WucsnY9W9bnsLTgT1jJ8tr/qcPNyrYh440KgoTDTJ6CdoEIM+rntzhEchDl+FFiRKBYFwBvZY3YoChZx66Z75LA/GCxIXafXir00Z6WEZrnTK8EsFJ0VADMsDBAnLn1k8ft9gY6sTuzEJaIJHSGeQd0GQOsisOpllilxHA1irR1mzQlRjZDqUwFDzenXke7Mxz16HGMrSel8WjFtTblIlLQGiW8vStmDhxdAPWTmkolNooRKGUCiEMQ9xcehsv2RjJK0uw8/J8KAy0qjLbhKI6IZ2tBELR33BVZ4t8amChUKMPaa5k0T3cBaCiw1BfK7r3Uuqw6oySqtOkOKwuBK6xEdB6pmF44ySG2pOBwlHqFXQU9MHUQRJmtPKzHF80gKJkziiqqPTtM5bc44xIVzKZoYKaxQgWH4jZdjdLll4iQCSkrewlU5ok9Avl7iqgRRzUhUEUi+D9TYtK06iFoa+H0l04QXHP41TdSMTopjL7W9p+yDUo9ErUl3zjLipTQJ0pDRIwsTptemrHLgIyIII38w6vRvqWCjyEK3apzI/TGVz5viSGfTwx2xRbtDhdfc3PxUKmPkAFZrsukfaKg6EqM2yukDt9I52pJpBlkDZOhy2zc6yLdVKYpaB+2lZxDGxHRpv4uwcH1YRs87IEvLpJEjo7TpI3cbj97LGwaDg+E77aiwK4vfmD77rqyXSFs6MNUZgF39qzBkZcYycRt/mZdSyiL8zF71EQvPS+jUO2B3R+amLgnNwePhGDGN2Z1BT2NPWTlgZwG8Yqa9jrdIfanKhUMKOr8Ne7auuKrAY/RDxwQfKEXz3WdWVee2iqHud8qOBNta1cG5ddtjfRxRAzmee3ll0qzf5qS3e+nMPNa4oaJeMyp+u6STi57S9qajywK+TV/9MnyTUEDCsejB9KxVMjIw89R9wcZ0bVxt1juaanT/agd/EQSBIQn+fAHBXmOf6IsXIH/9IouB4WV9Dzw6hsddro+wMzqhOiQvOyBAuv1WDEZVKUdDPMsLecUZjQPCcEYBmiZB0Nw6BGoB0BJDe57PW6gGS77vmFtbOZvzTNnrTPjdZsjN9AF+vn0Lp+biEzUDvYaGLVjK/qZW4z8vacBn+0uO2d6avXQbRi9Yl+sK+ePXq630NuILiY0wi4UG2p4PLIFzXurBoQ/Uzq4ZqAoiwxTQnSGgPBEOPpWL9z5EoDeS23JDwMgweHQlpH65yL1LgACAidofJzV0u8y54XE46UNKNjxXHpj0lLaU0pMimIXBo6Xw6KnPJgXVfp2ChVpjVQSiMvp/LSfRfjFNfnMi+qd1kONJlMnSZOPNhouQMqx3dMs7dGg/50+wKumK/K7Wk/PW2XanqZ3KR1NqsGBLt6VtvLp+TrVtvBGnDELpR5cbAqBAU2ZubogHxMKw3NPaHUo7hbzGBliwayhRplkH/x8+yXdfnn+lj8ciJfBI15Qc6Cg2hcSq/Ld74iSbomq2FWtP+qMLl0vmb5dpmR17V1nYpTza/Z7tB/Jt5C+zX7anIqPkzXu7L0xoDIXHFUFgH1zeLjfhTOMgEF5Kc+kBGPfeOkFu0Wi2y/W2/L2c3i7/gvlJ+ysv41AR3UZPORSHt+omcRm5IReqFigvcuWx4mJprkN61q8GGmLcrzFkkImUwYxN/y4++jDEImoBjEoTieNvrXEUvaRC18bWhT4582/hEM1sPd+nGbl6fDuGDUoKIA81Qcj/lj0Sc0KU9PD9mXold0Kabr9q5bLGG5XpRZTr4vc/YGfr8mvyJbq9Nmw7+RxO5iRVAd56tm5N0Wf9LdUlyamiez5drJaCv7Q/GH2dlSvLSwh4ZjgUeuTps+OBqXKUBMbuAWWv4dHHwmOykIZBRiqCa0gUK4lybYEHvZSt8TUu7wXQmz6zdvbrNfPv724Q2qmSl4sdvKXzvzynPjxHMTfx65XpQEEfyWRr6bhr7rzcMocAN/7iZBErpu6EdRlKZplMIl8zCdYxQu88MXcod/Gxfvr/8nu7v/eHv960329v7mfYbFTDtDfoTvWSbEOsnmx2NxKDM/crOHNYl5RhA/5eXvs9q1VtjSB+uPs9fX795lrz9+uL+9fn1v8P0+AGkU+EkQJpHvu2Hih2nszb0kDVPS43RILJaErkH+1iO9kxBCsjVoL1ec5VD861SAVYCdLvL1YZcxWyGk9FrQEb1lZNTdAEhKe7C5AlU+jvqR0qnIG9cBRJA+TDj7gMIIZDkVBWB81SAZnABtBYMVxGa5VcCKjZ+cHckXonx3GldIyRzrWHBp8l1Cpl9Ig2mO95TZsdgUCwgYDfUga9JCmAlMz5WSY3fdbKgXpngAb3XaaPKCHRlFM2zGo5VeVgxixs410osEQXfmaOX9zc27m1+v728yEmn6v0DM97w4ieahG0NQCXw3Tv3Am8eJF3shzmfIQt3OLJZ852V/u/7w5t3NrUlkg7AWul6Uuv488dMw8sMkiuI09OdpHCRzz0vjOPF8YkHt6YJHlDdKXbQs9G/fIT7BS/OWsmpQXL95//Y+u/nHzQeToO75qZu48wCkj9wgiJJwnoRpd1rkct48rcubP4otyV2Wdl1dqxizcYjBE03uEMToAiXlsdc9ULd4oglRdKUfF0l+vbnPfnn38fV/ZR9+e/+LkUF7YZi66dwDFwqiyA9c1wuDNHH9IIxc303SngqFa7ha+v7t+5u7++v3fzdxp9Cfh3M3SAI/9uM4hGor9T1gI0qSNJn7CfwbeXDAzMyQCYwgIPk11IM3d3cGPCADGDuS1AvAupM0DKH4C1M3cL0kjlLP9eMQjcMgqBAGeJ1kzkLsQ/k5j4LYTd0onHth4iEK88T1AjdxYz/05n7qu25qwcfdzX//dvPhtRUWXjT3vTksE4Dcc6jYAIQoAKZSfx7Nw9jDj5CRKAxSfFOcISb3UBa//fXD9f1vtzcGKuFG6adx5Aeh6yaASOLFvp8k8Mc8MYWhKH/Z7BZfPpyeHooDOrZl7PlVJaAEoBGFpEr2dvJSsk6f1RRVMSk1rwMzdn0JUVSPQriC4qlAlZFgbBM/HVpHdo+eidHqKuS6UAw3+1qshZBiPw9omdlWmCbJ8hnrRlZQK0sFqVRhjRTtfv0EVUb+REalq9PGpsLkUlU0FIEmcAhBuTIEeS47pr1qMH9bMPWewy0aggy3oQYpBfQf7xwSPwzASWRjtBThqIuUssme3Ute55tNcbheLsHYSPixdxKVhCLROB9RCJ/FRWorCKVwL5wkcdQWGZE6tJQUwH+of9TYYegNcg89KUU0nJ0Uh6znBQNcc5OkED6RG+ceuy0Z4XAiilAjHUQlfR4Xqa/B1DxxGqlBzUUZZkx1lqnLKcD/WEepM8QwnEY6RkwRz3ZuOIm73GFlv12MTCcNKopg4xymTpubWWXMOE6DVEjH0aAfJQGTSrp7zgZ1V3MRoSEenSbJK811qJ0D1/ZJvI2YAv4PdZomRwzGieRj1GoCAoRowT80zdx/FVvcw5p2mYAizzhvkciexVEU+kIdGh/p3nEmXrmV9kjFkK4olSVAt3QnzN49NHQUoH+oZ1TMFLe8qxvkFDpCqlj8Bg60SyUUrqBjr2+iHPnZJqNiKeMMnMnc3Xx4k8Hw9Q63n+8/ZrCz0b+VEgYBzDlh5pfEaeAGYTCfu4k3j1MYBYZBAgM302kb3/i+vbl+YzLkc9107sbzIEjc2PWS2HVD3039OMaUQ2y4O7Pw9f55+/beZKroRylsYXhJ5PppErqRixLGcezDPNFwoHhXbJfvC3J/zf3unXf37Yh1OtrC6rSxGaW0EFJsbZ9/2+zypdF77ZF/fj4dgX3v3ErFPQxzF4XNpZ1pApAyeQjXfdvDZrijuwGUaFgXpe5ghzZ/BE/Ol0OQla5W4BwR+iWOpo/7CvFG0PefceuDbI4PDPoK/aERX0NEAdewCR24HTY0HlamMCItKKIL/Ujz6T/yzQmMvNvhpOg+cILL+PjnYV2S1WwjDgWDXn5+3V3yZ166YRlv3jgFyXh3h/FiWUhfJ/OZPqFbuQ6/F8RBt+rfoFeoz64Pj0NGghoiigLwc9ylRu47awqM8vxkozszMMxzbEwDOGZfjpLxHTPjoz7KJfTY+aojkji6S4MOYgry8uNAUDB2gj/eg1WubovydNiizi09WUtGEYvdvIO0O0XCcMzONTInCYKBIVnlHe+O/PjX7N3H19fv7pBbtvsFJgt9iQghaJHWSqfvl3GRagMD2FkbhTmnbfMEGUT9qpGjUSkSEto/g2uNByLfGWRGISKoD4QEVYyPzkKgZumUQaJ9aByiOrOUQ7EqDsV2UQyK55zrTuOfBBe6wpnAwXfKrLD97HjTjr29sBFtX9pYnTY2jQ9CXoV5cHSyFSAWGYtQ3aOY+cQv2QOZUyJknCRHQdRc5UwYRefAaMzkGFtrvgsi6vdLZxSagp+BIGLGxDiFbyJTAxV/xD8hj/hHlxcGHqeTsOvJXgOSqn+x+qaRBA0IybyNzZecjYGgtyYHCXNrvM+Bc+eoZpTdMgTJAlOjyGJkwv2fINP90LqmmJE9gjzzLynn4qeLhAdg53l49j7SHjY7FHQ0pGv1PKiqWHHAQ6dhbSBTH9rqNWkohbnhmESqswFpJo3VDE3h4+3TfrNerMuB7Ws7LUU22UTP30spTA1upXRUFKFYjO8eYkysrmm7IkVE2rh4jXywgurRPshrSdtEJ2gi6z2R/BUdn0gcsXibp0FaU3juccfVaWNT2mpJD4SDpzyMZswGWxqicRWtwrMojurua4Arm07eQmQeXqvpuRkIoSjVGu8f4pkpJKWab1Q6aOQjeXKaZDZjwbPhmHbIj3RhzsRAwNttVgLcFuwzgEyKqLqJryAC4vbt6rQZ7PMMP0J/cgxZlSZ6fQJMd5WmC6+SM5DoKqkGqrRgyiqNfic8AK0r0/xAbA4OLNMI+Xqd9gRbI7Db2PqcNr8TgkcaiYiS93syA89aaPIsPHeXCNJ83BeCD6roKMcTlXQaYgoMskWDIhfyA9Mr5jEVFrilQnYqRxatlKvRRZ1CRhZL8Fm9dmqEKs5TrlHmab3mN9ICYj882Ku0bSIVOC1XN0+vPvRbzAVYhXKego0y3eOXq9NmSPRWaQ8EBGMBjoYwsqmA1EP3NCUbZdrEQ0ehIi9wLmTE6NEgqelMMK3GvkpSo6/bDCZPajOmX33MHwU3pXwuoPu/AQxi41O+3mbHxY7cuZNl5M8Mos3+sCbp1f2autL/PE/6w+RXD2iJfRsgv80f6cOZ4iBssn/67uT7rDzkiy/r7WPGd64eD7vT3rmCBMPjEHc7sAuK3RULQ8zrlNF/d71kQVVYLPryZFRFcTcpVaF0A++ygGDgvLBVX7wShQG6UZMgD6jtJOOpyyhzGSuXU5UHoXSCIUkGNfbIrYFR/CjREYAGdqTBbDdpX30mAFOd2XRiOrLCPwz0bcQu1wxMAoxsTpoC2LEgjCO55DdGsTClq5aMERNkpbZOtTmQDJTs20rHZzgDpZTYUUyOchNUCblb0qBpcmbV1XRkRfDsD8k23Ir8YQCwRJfr26zoNkZBkDUupLpJh029BZBZtPlZINEPsAHZ8gVL+yJUTEvWwhxsuLXJpTZ0LYofiSy+mAvDe9CbIA2sV0c3rgdBmy+F+yEEpTDNA1jtO+aMPUCgqXEupOmbRkNJ8AjKdNRQCBMM1avs04lE1sOX/RC6Eq80nzC6wv7tNN9P2Oe7z1b+2k/X43QNGAZzr3cVUVvYsogvNmQFvv0w2JAVQdYOBXzDD5pDBGtpzUxobWK6QmtWMHjc1eJetzDgF4JU3RrihjXwAhImDcyNz0AZCjiPUe/Hw4htliSFtU3NdPDy81QM8/ALILx4BXThXwGG89wdhY2w4Cqs0f48kriGb+NI38O3jvTFqwtJEAr+SwsReAkYB5ejGxSJffK6VwwhsdQSKBlFuLqdDfYRdo2+XsbYfHyOT+L14WMph44wUbBrqEQoVepxKoFjarxmDi/yQH8cARLGZC2SoQ1ZEZ6m5dam2LZhN+alhhW7Pq/lUijEVKWxmssmyUr89hMWrtfPMNSDdWtIG0UBD0BWydCWshz/e2O0EXHmG8LaDBzYiC6HAxILdeXxhElgkOjKYPQFe1ueZdpjgdbw7XNMJuUbsAa+Be0z8G08vOrBWwNJMCiJS+vwXJJCGNCGkmEeH+Bzh5jE5w2XHxCiJH77CZ+HYUitfF9rRm6YX28XhyI/FvSrH2b01gM7dw148zHvBX8CwsR6QIxVsSlf9nkQlF714O25wWWtzquHwf6kYEVX1AgG0kuEeQvquW2w2qRH3JtpQgEWqXoLgwJZFnbyWJS21mG3msg//cDLhLnPwzZsU6MsxhpA/sNIehWXxIghm+EUzLinkxnFx5sxLnlew5pZYLKIHx5w1rCN5u3IwC9kmBevrIoce9qwhoCkN4sZkmdmLQzNxCzsQIH0y0zOwIj7SHPzACisO/9eRHTEB6VfeaXKFyGCqSFlnD16wtL9KboEhed+0uhEo+KgpGnRt3t+W0AX9mlnQwaURaqYnDJChLmYfuPn5+fn/wcT8KyIieoAAA==" -} \ No newline at end of file diff --git a/crates/rpc/fixtures/0.8.0/class_at/sierra.json b/crates/rpc/fixtures/0.8.0/class_at/sierra.json deleted file mode 100644 index cc5c2c6c7f..0000000000 --- a/crates/rpc/fixtures/0.8.0/class_at/sierra.json +++ /dev/null @@ -1,6650 +0,0 @@ -{ - "abi": "[\n {\n \"type\": \"function\",\n \"name\": \"test\",\n \"inputs\": [\n {\n \"name\": \"arg\",\n \"ty\": \"core::felt\"\n },\n {\n \"name\": \"arg1\",\n \"ty\": \"core::felt\"\n },\n {\n \"name\": \"arg2\",\n \"ty\": \"core::felt\"\n }\n ],\n \"output_ty\": \"core::felt\",\n \"state_mutability\": \"external\"\n },\n {\n \"type\": \"function\",\n \"name\": \"empty\",\n \"inputs\": [],\n \"output_ty\": \"()\",\n \"state_mutability\": \"external\"\n },\n {\n \"type\": \"function\",\n \"name\": \"call_foo\",\n \"inputs\": [\n {\n \"name\": \"a\",\n \"ty\": \"core::integer::u128\"\n }\n ],\n \"output_ty\": \"core::integer::u128\",\n \"state_mutability\": \"external\"\n }\n]", - "contract_class_version": "0.1.0", - "entry_points_by_type": { - "CONSTRUCTOR": [], - "EXTERNAL": [ - { - "function_idx": 0, - "selector": "0x22ff5f21f0b81b113e63f7db6da94fedef11b2119b4088b89664fb9a3cb658" - }, - { - "function_idx": 1, - "selector": "0x1fc3f77ebc090777f567969ad9823cf6334ab888acb385ca72668ec5adbde80" - }, - { - "function_idx": 2, - "selector": "0x3d778356014c91effae9863ee4a8c2663d8fa2e9f0c4145c1e01f5435ced0be" - } - ], - "L1_HANDLER": [] - }, - "sierra_program": [ - "0x302e312e30", - "0x1c", - "0x52616e6765436865636b", - "0x0", - "0x556e696e697469616c697a6564", - "0x1", - "0x1", - "0x0", - "0x4761734275696c74696e", - "0x0", - "0x556e696e697469616c697a6564", - "0x1", - "0x1", - "0x2", - "0x66656c74", - "0x0", - "0x556e696e697469616c697a6564", - "0x1", - "0x1", - "0x4", - "0x4172726179", - "0x1", - "0x1", - "0x4", - "0x456e756d", - "0x3", - "0x0", - "0x39a7936ed480188b5481fdccbc2e15e79f8bbae8caee03dda25f96e0b91d2c5", - "0x1", - "0x6", - "0x1", - "0x6", - "0x53797374656d", - "0x0", - "0x537472756374", - "0x1", - "0x0", - "0x2ee1e2b1b89f8c495f200e4956278a4d47395fe262f27b52e5865c9524c08c3", - "0x456e756d", - "0x3", - "0x0", - "0xe3db735044fe6680868d75a64336beaf045a28972f57a2d1ec1729a1c83df5", - "0x1", - "0x4", - "0x1", - "0x9", - "0x536e617073686f74", - "0x1", - "0x1", - "0x6", - "0x753332", - "0x0", - "0x456e756d", - "0x3", - "0x0", - "0x3288d594b9a45d15bb2fcb7903f06cdb06b27f0ba88186ec4cfaa98307cb972", - "0x1", - "0x9", - "0x1", - "0x9", - "0x4275696c74696e436f737473", - "0x0", - "0x456e756d", - "0x3", - "0x0", - "0x252abff3d38d1e52c89dc9571efeaf319237c1176954e699022dcd15c016539", - "0x1", - "0x4", - "0x1", - "0x6", - "0x75313238", - "0x0", - "0x556e696e697469616c697a6564", - "0x1", - "0x1", - "0x10", - "0x456e756d", - "0x3", - "0x0", - "0x1909a2057b9c1373b889e003e050a09f431d8108e0659d03444ced99a6eea68", - "0x1", - "0x10", - "0x1", - "0x9", - "0x456e756d", - "0x3", - "0x0", - "0x25983c4a3e91bf704ea84fea5b1cfd626c9d0557d89e0cb9ac13f165dbbf3e5", - "0x1", - "0x10", - "0x1", - "0x6", - "0x456e756d", - "0x3", - "0x0", - "0x85fcccac0ca6213b88c0b6c11a83d0f4c9c6b3338aa01feec61fbda1aa30e4", - "0x1", - "0x9", - "0x1", - "0x6", - "0x436f6e747261637441646472657373", - "0x0", - "0x53746f726167654261736541646472657373", - "0x0", - "0x53746f7261676541646472657373", - "0x0", - "0x456e756d", - "0x3", - "0x0", - "0x3ecd5f7a9ffb17c6f59022c7837161ff4c29b2b8d1187de9ec9a612e1ace783", - "0x1", - "0x4", - "0x1", - "0x6", - "0x456e756d", - "0x3", - "0x0", - "0x2f5bfc8c89cba75131e402b1bca558b82eb61532362a092e246ea6e476d1dbd", - "0x1", - "0x9", - "0x1", - "0x6", - "0x537472756374", - "0x3", - "0x0", - "0x2ee1e2b1b89f8c495f200e4956278a4d47395fe262f27b52e5865c9524c08c3", - "0x1", - "0x10", - "0x1", - "0x10", - "0x456e756d", - "0x3", - "0x0", - "0x2915f2aefa24c6757069a0fff13871cd63c473d98ec8c33ac4627d600f8663f", - "0x1", - "0x6", - "0x1", - "0x6", - "0x7b", - "0x616c6c6f635f6c6f63616c", - "0x1", - "0x1", - "0x0", - "0x616c6c6f635f6c6f63616c", - "0x1", - "0x1", - "0x2", - "0x616c6c6f635f6c6f63616c", - "0x1", - "0x1", - "0x4", - "0x66696e616c697a655f6c6f63616c73", - "0x0", - "0x7265766f6b655f61705f747261636b696e67", - "0x0", - "0x6765745f676173", - "0x0", - "0x6272616e63685f616c69676e", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x2", - "0x6a756d70", - "0x0", - "0x64726f70", - "0x1", - "0x1", - "0x5", - "0x64726f70", - "0x1", - "0x1", - "0x6", - "0x64726f70", - "0x1", - "0x1", - "0x1", - "0x64726f70", - "0x1", - "0x1", - "0x3", - "0x61727261795f6e6577", - "0x1", - "0x1", - "0x4", - "0x66656c745f636f6e7374", - "0x1", - "0x2", - "0x4f7574206f6620676173", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x4", - "0x61727261795f617070656e64", - "0x1", - "0x1", - "0x4", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x7", - "0x2", - "0x1", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x8", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x7", - "0x73746f72655f6c6f63616c", - "0x1", - "0x1", - "0x0", - "0x73746f72655f6c6f63616c", - "0x1", - "0x1", - "0x2", - "0x61727261795f706f705f66726f6e74", - "0x1", - "0x1", - "0x4", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0xa", - "0x2", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x6", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0xa", - "0x7374727563745f636f6e737472756374", - "0x1", - "0x1", - "0x9", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0xa", - "0x2", - "0x1", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0xa", - "0x7374727563745f6465636f6e737472756374", - "0x1", - "0x1", - "0x9", - "0x66656c745f636f6e7374", - "0x1", - "0x2", - "0x496e70757420746f6f2073686f727420666f7220617267756d656e7473", - "0x73746f72655f6c6f63616c", - "0x1", - "0x1", - "0x4", - "0x64726f70", - "0x1", - "0x1", - "0x4", - "0x736e617073686f745f74616b65", - "0x1", - "0x1", - "0x6", - "0x61727261795f6c656e", - "0x1", - "0x1", - "0x4", - "0x7533325f636f6e7374", - "0x1", - "0x2", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0xc", - "0x7533325f6571", - "0x0", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0xd", - "0x2", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0xd", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0xd", - "0x2", - "0x1", - "0x626f6f6c5f6e6f745f696d706c", - "0x0", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0xd", - "0x64726f70", - "0x1", - "0x1", - "0x9", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x3", - "0x66656c745f636f6e7374", - "0x1", - "0x2", - "0x496e70757420746f6f206c6f6e6720666f7220617267756d656e7473", - "0x6765745f6275696c74696e5f636f737473", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0xe", - "0x6765745f6761735f616c6c", - "0x0", - "0x72656e616d65", - "0x1", - "0x1", - "0x2", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x4", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0xf", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x5", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x7", - "0x2", - "0x0", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x6", - "0x616c6c6f635f6c6f63616c", - "0x1", - "0x1", - "0x10", - "0x64726f70", - "0x1", - "0x1", - "0x11", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x7", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x12", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x10", - "0x73746f72655f6c6f63616c", - "0x1", - "0x1", - "0x10", - "0x64726f70", - "0x1", - "0x1", - "0x10", - "0x72656e616d65", - "0x1", - "0x1", - "0x0", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x8", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x13", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x9", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x9", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0xa", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0xf", - "0x2", - "0x1", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0xf", - "0x66656c745f636f6e7374", - "0x1", - "0x2", - "0x1", - "0x647570", - "0x1", - "0x1", - "0x4", - "0x66656c745f616464", - "0x0", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0xb", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x14", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0xf", - "0x2", - "0x0", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x12", - "0x2", - "0x1", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x12", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0xc", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x12", - "0x2", - "0x0", - "0x636f6e74726163745f616464726573735f636f6e7374", - "0x1", - "0x2", - "0x11", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x15", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0xd", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x13", - "0x2", - "0x1", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x13", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x13", - "0x2", - "0x0", - "0x753132385f746f5f66656c74", - "0x0", - "0x66656c745f636f6e7374", - "0x1", - "0x2", - "0x0", - "0x73746f726167655f626173655f616464726573735f636f6e7374", - "0x1", - "0x2", - "0x1275130f95dda36bcbb6e9d28796c1d7e10b6e9fd5ed083e0ede4b12f613528", - "0x73746f726167655f616464726573735f66726f6d5f62617365", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x17", - "0x73746f726167655f726561645f73797363616c6c", - "0x0", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x18", - "0x2", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x18", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x18", - "0x2", - "0x1", - "0x72656e616d65", - "0x1", - "0x1", - "0x18", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0xe", - "0x73746f726167655f77726974655f73797363616c6c", - "0x0", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x19", - "0x2", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x19", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x19", - "0x2", - "0x1", - "0x72656e616d65", - "0x1", - "0x1", - "0x19", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0xf", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x14", - "0x2", - "0x1", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x14", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x14", - "0x2", - "0x0", - "0x75313238735f66726f6d5f66656c74", - "0x0", - "0x7374727563745f636f6e737472756374", - "0x1", - "0x1", - "0x1a", - "0x64726f70", - "0x1", - "0x1", - "0x1a", - "0x72656e616d65", - "0x1", - "0x1", - "0x12", - "0x63616c6c5f636f6e74726163745f73797363616c6c", - "0x0", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x1b", - "0x2", - "0x0", - "0x73746f72655f74656d70", - "0x1", - "0x1", - "0x1b", - "0x656e756d5f696e6974", - "0x2", - "0x1", - "0x1b", - "0x2", - "0x1", - "0x72656e616d65", - "0x1", - "0x1", - "0x1b", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x10", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x7", - "0x66656c745f636f6e7374", - "0x1", - "0x2", - "0x52657475726e6564206461746120746f6f2073686f7274", - "0x66756e6374696f6e5f63616c6c", - "0x1", - "0x3", - "0x11", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x18", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x19", - "0x656e756d5f6d61746368", - "0x1", - "0x1", - "0x1b", - "0x2f7", - "0x0", - "0x0", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x2", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x2", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xb", - "0x0", - "0x2", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x3", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x4", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x5", - "0x2", - "0x0", - "0x1", - "0x2", - "0xffffffffffffffff", - "0x2", - "0xe", - "0xf", - "0xc", - "0x2", - "0x10", - "0x11", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x7", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x8", - "0x1", - "0xf", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x9", - "0x0", - "0x1", - "0x1d", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xc", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xd", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0xf", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x10", - "0x1", - "0x13", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x11", - "0x2", - "0x12", - "0x13", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x14", - "0x0", - "0x12", - "0x1", - "0x14", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x0", - "0x7", - "0x1", - "0x10", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x8", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x0", - "0x14", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x1", - "0x4", - "0x16", - "0x17", - "0x18", - "0x19", - "0x0", - "0x15", - "0x2", - "0x5", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x16", - "0x2", - "0x7", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x17", - "0x1", - "0x3", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x1a", - "0x1b", - "0x25", - "0x1", - "0x1c", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x18", - "0x1", - "0x1b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x19", - "0x1", - "0x1a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x0", - "0x1a", - "0x1", - "0x1d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1f", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x20", - "0x0", - "0x1c", - "0x1", - "0x20", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x21", - "0x0", - "0x19", - "0x1", - "0x1c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x0", - "0x1a", - "0x1", - "0x21", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1f", - "0x0", - "0x1d", - "0x1", - "0x1f", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x22", - "0x2e", - "0x1", - "0x23", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0x22", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x9", - "0x0", - "0x1", - "0x3e", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x1e", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1e", - "0x1", - "0x23", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x24", - "0x0", - "0x1f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x25", - "0x0", - "0x10", - "0x1", - "0x25", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x25", - "0x0", - "0x11", - "0x2", - "0x24", - "0x25", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x26", - "0x0", - "0x12", - "0x1", - "0x26", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x27", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x28", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x29", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2a", - "0x0", - "0x14", - "0x1", - "0x27", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2b", - "0x1", - "0x4", - "0x28", - "0x29", - "0x2a", - "0x2b", - "0x0", - "0x20", - "0x2", - "0x9", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x17", - "0x1", - "0x1e", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x2c", - "0x2d", - "0x45", - "0x1", - "0x2e", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x18", - "0x1", - "0x2d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2f", - "0x0", - "0x19", - "0x1", - "0x2c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x30", - "0x0", - "0x1a", - "0x1", - "0x2f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x31", - "0x0", - "0x9", - "0x0", - "0x1", - "0x4a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x32", - "0x0", - "0x1c", - "0x1", - "0x32", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x33", - "0x0", - "0x19", - "0x1", - "0x2e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x30", - "0x0", - "0x1a", - "0x1", - "0x33", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x31", - "0x0", - "0x1d", - "0x1", - "0x31", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x34", - "0x4e", - "0x1", - "0x35", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0x34", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x0", - "0x9", - "0x0", - "0x1", - "0x5e", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x30", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1e", - "0x1", - "0x35", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x36", - "0x0", - "0x1f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x37", - "0x0", - "0x10", - "0x1", - "0x37", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x37", - "0x0", - "0x11", - "0x2", - "0x36", - "0x37", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x38", - "0x0", - "0x12", - "0x1", - "0x38", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x39", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3a", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3b", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3c", - "0x0", - "0x14", - "0x1", - "0x39", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3d", - "0x1", - "0x4", - "0x3a", - "0x3b", - "0x3c", - "0x3d", - "0x0", - "0x20", - "0x2", - "0xb", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x0", - "0x17", - "0x1", - "0x30", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x3e", - "0x3f", - "0x65", - "0x1", - "0x40", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x18", - "0x1", - "0x3f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x41", - "0x0", - "0x19", - "0x1", - "0x3e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x42", - "0x0", - "0x1a", - "0x1", - "0x41", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x43", - "0x0", - "0x9", - "0x0", - "0x1", - "0x6a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x44", - "0x0", - "0x1c", - "0x1", - "0x44", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x45", - "0x0", - "0x19", - "0x1", - "0x40", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x42", - "0x0", - "0x1a", - "0x1", - "0x45", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x43", - "0x0", - "0x1d", - "0x1", - "0x43", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x46", - "0x6e", - "0x1", - "0x47", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0x46", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x9", - "0x0", - "0x1", - "0x7e", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x42", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xa", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1e", - "0x1", - "0x47", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x48", - "0x0", - "0x1f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x49", - "0x0", - "0x10", - "0x1", - "0x49", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x49", - "0x0", - "0x11", - "0x2", - "0x48", - "0x49", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4a", - "0x0", - "0x12", - "0x1", - "0x4a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4b", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4c", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4d", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4e", - "0x0", - "0x14", - "0x1", - "0x4b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4f", - "0x1", - "0x4", - "0x4c", - "0x4d", - "0x4e", - "0x4f", - "0x0", - "0x22", - "0x1", - "0x42", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x50", - "0x51", - "0x0", - "0xb", - "0x1", - "0x50", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x23", - "0x1", - "0x51", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x52", - "0x0", - "0x24", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x53", - "0x0", - "0x25", - "0x1", - "0x52", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x52", - "0x0", - "0x20", - "0x2", - "0xd", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x26", - "0x2", - "0x52", - "0x53", - "0x2", - "0xffffffffffffffff", - "0x0", - "0x8a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x54", - "0x0", - "0x27", - "0x1", - "0x54", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x55", - "0x0", - "0x28", - "0x1", - "0x55", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x56", - "0x0", - "0x9", - "0x0", - "0x1", - "0x8e", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x57", - "0x0", - "0x29", - "0x1", - "0x57", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x58", - "0x0", - "0x28", - "0x1", - "0x58", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x56", - "0x0", - "0x2a", - "0x1", - "0x56", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x59", - "0x0", - "0x28", - "0x1", - "0x59", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x59", - "0x0", - "0x2b", - "0x1", - "0x59", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x5a", - "0x94", - "0x1", - "0x5b", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x5a", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x9", - "0x0", - "0x1", - "0xa6", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x5b", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5e", - "0x0", - "0x2d", - "0x1", - "0x5e", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x5c", - "0x5d", - "0x0", - "0x2c", - "0x1", - "0x5d", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5f", - "0x0", - "0x2e", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x60", - "0x0", - "0x10", - "0x1", - "0x60", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x60", - "0x0", - "0x11", - "0x2", - "0x5f", - "0x60", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x61", - "0x0", - "0x12", - "0x1", - "0x61", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x62", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x63", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x64", - "0x0", - "0x13", - "0x1", - "0x5c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x65", - "0x0", - "0x14", - "0x1", - "0x62", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x66", - "0x1", - "0x4", - "0x63", - "0x64", - "0x65", - "0x66", - "0x0", - "0x2f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x67", - "0x0", - "0x30", - "0x1", - "0x67", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x67", - "0x0", - "0x31", - "0x3", - "0x4", - "0x6", - "0x67", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x68", - "0x69", - "0xad", - "0x2", - "0x6a", - "0x6b", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x7", - "0x1", - "0x68", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6c", - "0x0", - "0x8", - "0x1", - "0x69", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6d", - "0x0", - "0x9", - "0x0", - "0x1", - "0xbb", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6e", - "0x0", - "0xf", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6f", - "0x0", - "0x10", - "0x1", - "0x6f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6f", - "0x0", - "0x11", - "0x2", - "0x6e", - "0x6f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x70", - "0x0", - "0x12", - "0x1", - "0x70", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x71", - "0x0", - "0x7", - "0x1", - "0x6a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x72", - "0x0", - "0x8", - "0x1", - "0x6b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x73", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x74", - "0x0", - "0x14", - "0x1", - "0x71", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x75", - "0x1", - "0x4", - "0x72", - "0x73", - "0x74", - "0x75", - "0x0", - "0x32", - "0x1", - "0x6d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7a", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7b", - "0x0", - "0x10", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7c", - "0x0", - "0x10", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7d", - "0x0", - "0x10", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7e", - "0x0", - "0x33", - "0x5", - "0x7a", - "0x7b", - "0x7c", - "0x7d", - "0x7e", - "0x1", - "0xffffffffffffffff", - "0x4", - "0x76", - "0x77", - "0x78", - "0x79", - "0x0", - "0x34", - "0x1", - "0x79", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x7f", - "0xc5", - "0x1", - "0x80", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0x7f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x81", - "0x0", - "0x9", - "0x0", - "0x1", - "0xcd", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x78", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x12", - "0x1", - "0x80", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x82", - "0x0", - "0x7", - "0x1", - "0x6c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x83", - "0x0", - "0x8", - "0x1", - "0x76", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x84", - "0x0", - "0x13", - "0x1", - "0x77", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x85", - "0x0", - "0x14", - "0x1", - "0x82", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x86", - "0x1", - "0x4", - "0x83", - "0x84", - "0x85", - "0x86", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x87", - "0x0", - "0x19", - "0x1", - "0x87", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8a", - "0x0", - "0x10", - "0x1", - "0x78", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8b", - "0x0", - "0x35", - "0x2", - "0x8a", - "0x8b", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x88", - "0x89", - "0x0", - "0x2c", - "0x1", - "0x89", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x19", - "0x1", - "0x88", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8e", - "0x0", - "0x10", - "0x1", - "0x81", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8f", - "0x0", - "0x35", - "0x2", - "0x8e", - "0x8f", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x8c", - "0x8d", - "0x0", - "0x2c", - "0x1", - "0x8d", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x36", - "0x1", - "0x8c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x90", - "0x0", - "0x7", - "0x1", - "0x6c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x91", - "0x0", - "0x8", - "0x1", - "0x76", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x92", - "0x0", - "0x13", - "0x1", - "0x77", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x93", - "0x0", - "0x14", - "0x1", - "0x90", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x94", - "0x1", - "0x4", - "0x91", - "0x92", - "0x93", - "0x94", - "0x0", - "0x0", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x3", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x4", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x5", - "0x2", - "0x0", - "0x1", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x8", - "0x9", - "0xe5", - "0x2", - "0xa", - "0xb", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x7", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x8", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x9", - "0x0", - "0x1", - "0xf3", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xc", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xd", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0xf", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x10", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x11", - "0x2", - "0xc", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x12", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0x7", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x8", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x14", - "0x1", - "0xf", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x1", - "0x4", - "0x10", - "0x11", - "0x12", - "0x13", - "0x0", - "0x22", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x14", - "0x15", - "0x0", - "0xb", - "0x1", - "0x14", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x23", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x24", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x0", - "0x25", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x15", - "0x2", - "0x5", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x16", - "0x2", - "0x7", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x26", - "0x2", - "0x16", - "0x17", - "0x2", - "0xffffffffffffffff", - "0x0", - "0x100", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x0", - "0x27", - "0x1", - "0x18", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x28", - "0x1", - "0x19", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x9", - "0x0", - "0x1", - "0x104", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x0", - "0x29", - "0x1", - "0x1b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1c", - "0x0", - "0x28", - "0x1", - "0x1c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x2a", - "0x1", - "0x1a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x28", - "0x1", - "0x1d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x2b", - "0x1", - "0x1d", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x10a", - "0x1", - "0x1f", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x1e", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x9", - "0x0", - "0x1", - "0x119", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x1f", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x22", - "0x0", - "0x2d", - "0x1", - "0x22", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x20", - "0x21", - "0x0", - "0x2c", - "0x1", - "0x21", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x23", - "0x0", - "0x2e", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x24", - "0x0", - "0x10", - "0x1", - "0x24", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x24", - "0x0", - "0x11", - "0x2", - "0x23", - "0x24", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x25", - "0x0", - "0x12", - "0x1", - "0x25", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x26", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x27", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x28", - "0x0", - "0x13", - "0x1", - "0x20", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x29", - "0x0", - "0x14", - "0x1", - "0x26", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2a", - "0x1", - "0x4", - "0x27", - "0x28", - "0x29", - "0x2a", - "0x0", - "0x2f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2b", - "0x0", - "0x30", - "0x1", - "0x2b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2b", - "0x0", - "0x31", - "0x3", - "0x4", - "0x6", - "0x2b", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x2c", - "0x2d", - "0x120", - "0x2", - "0x2e", - "0x2f", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x7", - "0x1", - "0x2c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x30", - "0x0", - "0x8", - "0x1", - "0x2d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x31", - "0x0", - "0x9", - "0x0", - "0x1", - "0x12b", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x32", - "0x0", - "0xf", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x33", - "0x0", - "0x10", - "0x1", - "0x33", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x33", - "0x0", - "0x11", - "0x2", - "0x32", - "0x33", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x34", - "0x0", - "0x12", - "0x1", - "0x34", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x35", - "0x0", - "0x7", - "0x1", - "0x2e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x36", - "0x0", - "0x8", - "0x1", - "0x2f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x37", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x38", - "0x0", - "0x14", - "0x1", - "0x35", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x39", - "0x1", - "0x4", - "0x36", - "0x37", - "0x38", - "0x39", - "0x0", - "0x37", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3a", - "0x0", - "0x2c", - "0x1", - "0x3a", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3b", - "0x0", - "0x36", - "0x1", - "0x3b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3c", - "0x0", - "0x7", - "0x1", - "0x30", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3d", - "0x0", - "0x8", - "0x1", - "0x31", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3e", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3f", - "0x0", - "0x14", - "0x1", - "0x3c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x40", - "0x1", - "0x4", - "0x3d", - "0x3e", - "0x3f", - "0x40", - "0x0", - "0x0", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x38", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x3", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x4", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x5", - "0x2", - "0x0", - "0x1", - "0x2", - "0xffffffffffffffff", - "0x2", - "0xa", - "0xb", - "0x13e", - "0x2", - "0xc", - "0xd", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x7", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x8", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x9", - "0x0", - "0x1", - "0x14d", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xc", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x39", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xd", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0xf", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x10", - "0x1", - "0x10", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x11", - "0x2", - "0xf", - "0x10", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x12", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x7", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x8", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x14", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x0", - "0x14", - "0x1", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x1", - "0x4", - "0x13", - "0x14", - "0x15", - "0x16", - "0x0", - "0x7", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x19", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x3a", - "0x2", - "0x19", - "0x1a", - "0x1", - "0xffffffffffffffff", - "0x3", - "0x4", - "0x17", - "0x18", - "0x0", - "0x16", - "0x2", - "0x7", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x15", - "0x2", - "0x5", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x3b", - "0x1", - "0x18", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x156", - "0x1", - "0x1c", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3c", - "0x1", - "0x1b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x9", - "0x0", - "0x1", - "0x164", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xb", - "0x1", - "0x17", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x39", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1e", - "0x1", - "0x1c", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x1f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x0", - "0x10", - "0x1", - "0x1e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x0", - "0x11", - "0x2", - "0x1d", - "0x1e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1f", - "0x0", - "0x12", - "0x1", - "0x1f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x20", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x21", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x22", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x23", - "0x0", - "0x14", - "0x1", - "0x20", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x24", - "0x1", - "0x4", - "0x21", - "0x22", - "0x23", - "0x24", - "0x0", - "0x22", - "0x1", - "0x17", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x25", - "0x26", - "0x0", - "0xb", - "0x1", - "0x25", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x23", - "0x1", - "0x26", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x27", - "0x0", - "0x24", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x28", - "0x0", - "0x25", - "0x1", - "0x27", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x27", - "0x0", - "0x3d", - "0x2", - "0x9", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x26", - "0x2", - "0x27", - "0x28", - "0x2", - "0xffffffffffffffff", - "0x0", - "0x170", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x29", - "0x0", - "0x27", - "0x1", - "0x29", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2a", - "0x0", - "0x28", - "0x1", - "0x2a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2b", - "0x0", - "0x9", - "0x0", - "0x1", - "0x174", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2c", - "0x0", - "0x29", - "0x1", - "0x2c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2d", - "0x0", - "0x28", - "0x1", - "0x2d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2b", - "0x0", - "0x2a", - "0x1", - "0x2b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2e", - "0x0", - "0x28", - "0x1", - "0x2e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2e", - "0x0", - "0x2b", - "0x1", - "0x2e", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x2f", - "0x17a", - "0x1", - "0x30", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x2f", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x9", - "0x0", - "0x1", - "0x18a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x30", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3e", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x33", - "0x0", - "0x2d", - "0x1", - "0x33", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x31", - "0x32", - "0x0", - "0x2c", - "0x1", - "0x32", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x34", - "0x0", - "0x2e", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x35", - "0x0", - "0x10", - "0x1", - "0x35", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x35", - "0x0", - "0x11", - "0x2", - "0x34", - "0x35", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x36", - "0x0", - "0x12", - "0x1", - "0x36", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x37", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x38", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x39", - "0x0", - "0x13", - "0x1", - "0x31", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3a", - "0x0", - "0x14", - "0x1", - "0x37", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3b", - "0x1", - "0x4", - "0x38", - "0x39", - "0x3a", - "0x3b", - "0x0", - "0x2f", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3c", - "0x0", - "0x30", - "0x1", - "0x3c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3c", - "0x0", - "0x31", - "0x3", - "0x4", - "0x6", - "0x3c", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x3d", - "0x3e", - "0x191", - "0x2", - "0x3f", - "0x40", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x7", - "0x1", - "0x3d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x41", - "0x0", - "0x8", - "0x1", - "0x3e", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x42", - "0x0", - "0x9", - "0x0", - "0x1", - "0x19d", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3e", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x43", - "0x0", - "0xf", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x44", - "0x0", - "0x10", - "0x1", - "0x44", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x44", - "0x0", - "0x11", - "0x2", - "0x43", - "0x44", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x45", - "0x0", - "0x12", - "0x1", - "0x45", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x46", - "0x0", - "0x7", - "0x1", - "0x3f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x47", - "0x0", - "0x8", - "0x1", - "0x40", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x48", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x49", - "0x0", - "0x14", - "0x1", - "0x46", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4a", - "0x1", - "0x4", - "0x47", - "0x48", - "0x49", - "0x4a", - "0x0", - "0x3f", - "0x1", - "0x41", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4f", - "0x0", - "0x32", - "0x1", - "0x42", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x50", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x51", - "0x0", - "0x3c", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x52", - "0x0", - "0x40", - "0x4", - "0x4f", - "0x50", - "0x51", - "0x52", - "0x1", - "0xffffffffffffffff", - "0x4", - "0x4b", - "0x4c", - "0x4d", - "0x4e", - "0x0", - "0x41", - "0x1", - "0x4e", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x53", - "0x1a6", - "0x1", - "0x54", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3c", - "0x1", - "0x53", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x55", - "0x0", - "0x9", - "0x0", - "0x1", - "0x1ad", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x12", - "0x1", - "0x54", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x56", - "0x0", - "0x7", - "0x1", - "0x4b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x57", - "0x0", - "0x8", - "0x1", - "0x4c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x58", - "0x0", - "0x13", - "0x1", - "0x4d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x59", - "0x0", - "0x14", - "0x1", - "0x56", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5a", - "0x1", - "0x4", - "0x57", - "0x58", - "0x59", - "0x5a", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5b", - "0x0", - "0x19", - "0x1", - "0x5b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5e", - "0x0", - "0x3c", - "0x1", - "0x55", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5f", - "0x0", - "0x42", - "0x2", - "0x5e", - "0x5f", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x5c", - "0x5d", - "0x0", - "0x2c", - "0x1", - "0x5d", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x36", - "0x1", - "0x5c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x60", - "0x0", - "0x7", - "0x1", - "0x4b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x61", - "0x0", - "0x8", - "0x1", - "0x4c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x62", - "0x0", - "0x13", - "0x1", - "0x4d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x63", - "0x0", - "0x14", - "0x1", - "0x60", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x64", - "0x1", - "0x4", - "0x61", - "0x62", - "0x63", - "0x64", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1", - "0x0", - "0x13", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2", - "0x0", - "0x43", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x1", - "0x2", - "0x2", - "0x3", - "0x0", - "0x21", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x8", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x13", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x44", - "0x2", - "0x8", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x3", - "0x5", - "0x6", - "0x7", - "0x0", - "0x34", - "0x1", - "0x7", - "0x2", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x1c5", - "0x1", - "0xb", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x9", - "0x0", - "0x1", - "0x1cc", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x45", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x8", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x13", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0x10", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x46", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x1", - "0x4", - "0xe", - "0xf", - "0x10", - "0x11", - "0x0", - "0x47", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x48", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x2", - "0xc", - "0x14", - "0x0", - "0x49", - "0x2", - "0x14", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x8", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x0", - "0x13", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x10", - "0x1", - "0x13", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x4a", - "0x3", - "0x18", - "0x19", - "0x1a", - "0x1", - "0xffffffffffffffff", - "0x3", - "0x15", - "0x16", - "0x17", - "0x0", - "0x4b", - "0x1", - "0x17", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x1d7", - "0x1", - "0x1c", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x2c", - "0x1", - "0x1b", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x9", - "0x0", - "0x1", - "0x1df", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x45", - "0x1", - "0x1c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x8", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x0", - "0x13", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1f", - "0x0", - "0x10", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x20", - "0x0", - "0x46", - "0x1", - "0x1d", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x21", - "0x1", - "0x4", - "0x1e", - "0x1f", - "0x20", - "0x21", - "0x0", - "0x47", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x22", - "0x0", - "0x49", - "0x2", - "0xc", - "0x22", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x23", - "0x0", - "0x4c", - "0x1", - "0x23", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x24", - "0x0", - "0x8", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x25", - "0x0", - "0x13", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x26", - "0x0", - "0x10", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x27", - "0x0", - "0x46", - "0x1", - "0x24", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x28", - "0x1", - "0x4", - "0x25", - "0x26", - "0x27", - "0x28", - "0x0", - "0x11", - "0x2", - "0x0", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x2c", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x19", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x43", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x1", - "0x2", - "0x5", - "0x6", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x0", - "0x0", - "0x43", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1", - "0x1", - "0x1", - "0x1", - "0x0", - "0x17", - "0x1", - "0x1", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x2", - "0x3", - "0x1f7", - "0x1", - "0x4", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x18", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x19", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x1a", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x9", - "0x0", - "0x1", - "0x1fc", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x1c", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x19", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x1a", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x1d", - "0x1", - "0x7", - "0x2", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x200", - "0x1", - "0xb", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x9", - "0x0", - "0x1", - "0x206", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x4d", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x7", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x19", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0x4e", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x1", - "0x3", - "0xe", - "0xf", - "0x10", - "0x0", - "0x7", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x10", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x14", - "0x0", - "0x4f", - "0x2", - "0x13", - "0x14", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x11", - "0x12", - "0x0", - "0x3b", - "0x1", - "0x12", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x20d", - "0x1", - "0x16", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3c", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x0", - "0x9", - "0x0", - "0x1", - "0x213", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x4d", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x0", - "0x7", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x19", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x4e", - "0x1", - "0x18", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x1", - "0x3", - "0x19", - "0x1a", - "0x1b", - "0x0", - "0x50", - "0x1", - "0x17", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1c", - "0x0", - "0x7", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x19", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x0", - "0x4e", - "0x1", - "0x1c", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1f", - "0x1", - "0x3", - "0x1d", - "0x1e", - "0x1f", - "0x0", - "0x51", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x7", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x8", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x0", - "0x13", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xb", - "0x0", - "0x52", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x3c", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x53", - "0x5", - "0x9", - "0xa", - "0xb", - "0xc", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x4", - "0x5", - "0x6", - "0x7", - "0x8", - "0x0", - "0x41", - "0x1", - "0x8", - "0x2", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x223", - "0x1", - "0xf", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3c", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x9", - "0x0", - "0x1", - "0x22a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x54", - "0x1", - "0xf", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x7", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x13", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x14", - "0x0", - "0x55", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x1", - "0x4", - "0x12", - "0x13", - "0x14", - "0x15", - "0x0", - "0x56", - "0x1", - "0x10", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x7", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x0", - "0x13", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x55", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x1", - "0x4", - "0x17", - "0x18", - "0x19", - "0x1a", - "0x0", - "0x57", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2", - "0x0", - "0x19", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x10", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x35", - "0x2", - "0x5", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x3", - "0x4", - "0x0", - "0x2c", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x19", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x43", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x1", - "0x2", - "0x8", - "0x9", - "0x0", - "0x58", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2", - "0x0", - "0x59", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x5a", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x10", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2", - "0x0", - "0x5b", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x5c", - "0x4", - "0x0", - "0x1", - "0x2", - "0x4", - "0x2", - "0xffffffffffffffff", - "0x3", - "0x5", - "0x6", - "0x7", - "0x245", - "0x3", - "0x8", - "0x9", - "0xa", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x5d", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xb", - "0x0", - "0x8", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x13", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x5e", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x9", - "0x0", - "0x1", - "0x24a", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x5f", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0x8", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x13", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x5e", - "0x1", - "0xf", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x60", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x61", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x34", - "0x1", - "0x10", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x250", - "0x1", - "0x13", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x14", - "0x0", - "0x9", - "0x0", - "0x1", - "0x256", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x45", - "0x1", - "0x13", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x0", - "0x8", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x13", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x0", - "0x46", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x1", - "0x3", - "0x16", - "0x17", - "0x18", - "0x0", - "0x4c", - "0x1", - "0x14", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x8", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x13", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x0", - "0x46", - "0x1", - "0x19", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1c", - "0x1", - "0x3", - "0x1a", - "0x1b", - "0x1c", - "0x0", - "0x58", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x59", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x5a", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x10", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x5b", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x62", - "0x5", - "0x0", - "0x1", - "0x3", - "0x5", - "0x2", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x6", - "0x7", - "0x268", - "0x3", - "0x8", - "0x9", - "0xa", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xb", - "0x0", - "0x63", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x8", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x13", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x64", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0x9", - "0x0", - "0x1", - "0x26d", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x65", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x8", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x13", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x0", - "0x64", - "0x1", - "0x10", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xf", - "0x0", - "0x66", - "0x1", - "0xf", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x67", - "0x1", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x4b", - "0x1", - "0x11", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x273", - "0x1", - "0x14", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x43", - "0x1", - "0x13", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x0", - "0x9", - "0x0", - "0x1", - "0x279", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x68", - "0x1", - "0x14", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x8", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x0", - "0x13", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x18", - "0x0", - "0x69", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x1", - "0x3", - "0x17", - "0x18", - "0x19", - "0x0", - "0x6a", - "0x1", - "0x15", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x8", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x0", - "0x13", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1c", - "0x0", - "0x69", - "0x1", - "0x1a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x1", - "0x3", - "0x1b", - "0x1c", - "0x1d", - "0x0", - "0x6b", - "0x2", - "0x0", - "0x1", - "0x2", - "0xffffffffffffffff", - "0x2", - "0x2", - "0x3", - "0x284", - "0x3", - "0x4", - "0x5", - "0x6", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x50", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x7", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x4e", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x9", - "0x0", - "0x1", - "0x28b", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x6c", - "0x2", - "0x5", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x0", - "0x6d", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xb", - "0x0", - "0x4d", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xc", - "0x0", - "0x7", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x4e", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x3f", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xd", - "0x0", - "0x6e", - "0x1", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xe", - "0x1", - "0x2", - "0xd", - "0xe", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x19", - "0x1", - "0x5", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x3c", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x0", - "0x42", - "0x2", - "0x8", - "0x9", - "0x1", - "0xffffffffffffffff", - "0x2", - "0x6", - "0x7", - "0x0", - "0x2c", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x6f", - "0x4", - "0x1", - "0x2", - "0x3", - "0x6", - "0x2", - "0xffffffffffffffff", - "0x3", - "0xa", - "0xb", - "0xc", - "0x29a", - "0x3", - "0xd", - "0xe", - "0xf", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x70", - "0x1", - "0xc", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x10", - "0x0", - "0x8", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x13", - "0x1", - "0xb", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x71", - "0x1", - "0x10", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x9", - "0x0", - "0x1", - "0x29f", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x72", - "0x1", - "0xf", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x14", - "0x0", - "0x8", - "0x1", - "0xd", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x11", - "0x0", - "0x13", - "0x1", - "0xe", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x12", - "0x0", - "0x71", - "0x1", - "0x14", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x13", - "0x0", - "0x73", - "0x1", - "0x13", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x16", - "0x0", - "0x74", - "0x1", - "0x16", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x15", - "0x0", - "0x75", - "0x1", - "0x15", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x17", - "0x2a5", - "0x1", - "0x18", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x19", - "0x1", - "0x17", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x19", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2ac", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x54", - "0x1", - "0x18", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1a", - "0x0", - "0x7", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1b", - "0x0", - "0x8", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1c", - "0x0", - "0x13", - "0x1", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1d", - "0x0", - "0x55", - "0x1", - "0x1a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x1e", - "0x1", - "0x4", - "0x1b", - "0x1c", - "0x1d", - "0x1e", - "0x0", - "0x7", - "0x1", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x22", - "0x0", - "0x19", - "0x1", - "0x19", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x23", - "0x0", - "0x3a", - "0x2", - "0x22", - "0x23", - "0x1", - "0xffffffffffffffff", - "0x3", - "0x1f", - "0x20", - "0x21", - "0x0", - "0xb", - "0x1", - "0x20", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x76", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x24", - "0x0", - "0x6e", - "0x1", - "0x21", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x26", - "0x0", - "0x10", - "0x1", - "0x24", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x27", - "0x0", - "0x77", - "0x2", - "0x26", - "0x27", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x25", - "0x0", - "0x41", - "0x1", - "0x25", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x28", - "0x2b8", - "0x1", - "0x29", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3c", - "0x1", - "0x28", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2a", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2bf", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x54", - "0x1", - "0x29", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2b", - "0x0", - "0x7", - "0x1", - "0x1f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2c", - "0x0", - "0x8", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2d", - "0x0", - "0x13", - "0x1", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2e", - "0x0", - "0x55", - "0x1", - "0x2b", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x2f", - "0x1", - "0x4", - "0x2c", - "0x2d", - "0x2e", - "0x2f", - "0x0", - "0x56", - "0x1", - "0x2a", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x30", - "0x0", - "0x7", - "0x1", - "0x1f", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x31", - "0x0", - "0x8", - "0x1", - "0x11", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x32", - "0x0", - "0x13", - "0x1", - "0x12", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x33", - "0x0", - "0x55", - "0x1", - "0x30", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x34", - "0x1", - "0x4", - "0x31", - "0x32", - "0x33", - "0x34", - "0x0", - "0x78", - "0x1", - "0x0", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x1", - "0x2c9", - "0x1", - "0x2", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x10", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2cd", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x45", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x46", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x1", - "0x1", - "0x5", - "0x0", - "0x4c", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x46", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x1", - "0x1", - "0x7", - "0x0", - "0x79", - "0x1", - "0x0", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x1", - "0x2d4", - "0x1", - "0x2", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x43", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2d8", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x68", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x69", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x1", - "0x1", - "0x5", - "0x0", - "0x6a", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x69", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x1", - "0x1", - "0x7", - "0x0", - "0x7a", - "0x1", - "0x0", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x1", - "0x2df", - "0x1", - "0x2", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x19", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x3", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2e3", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x12", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x14", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x1", - "0x1", - "0x5", - "0x0", - "0x36", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x14", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x1", - "0x1", - "0x7", - "0x0", - "0x3b", - "0x1", - "0x0", - "0x2", - "0xffffffffffffffff", - "0x1", - "0x2", - "0x2eb", - "0x1", - "0x3", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x21", - "0x1", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x3c", - "0x1", - "0x2", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x4", - "0x0", - "0x9", - "0x0", - "0x1", - "0x2f4", - "0x0", - "0x0", - "0x6", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x1e", - "0x1", - "0x3", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0xe", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x5", - "0x0", - "0x11", - "0x2", - "0x5", - "0x1", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x6", - "0x0", - "0x1b", - "0x0", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x7", - "0x0", - "0x2c", - "0x1", - "0x7", - "0x1", - "0xffffffffffffffff", - "0x0", - "0x0", - "0x54", - "0x1", - "0x6", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x8", - "0x0", - "0x55", - "0x1", - "0x8", - "0x1", - "0xffffffffffffffff", - "0x1", - "0x9", - "0x1", - "0x1", - "0x9", - "0x0", - "0x56", - "0x1", - "0x4", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xa", - "0x0", - "0x55", - "0x1", - "0xa", - "0x1", - "0xffffffffffffffff", - "0x1", - "0xb", - "0x1", - "0x1", - "0xb", - "0x12", - "0x4", - "0x0", - "0x2", - "0x8", - "0x6", - "0x4", - "0x0", - "0x2", - "0x8", - "0x7", - "0x0", - "0x1", - "0x2", - "0x3", - "0x0", - "0x4", - "0x0", - "0x2", - "0x8", - "0x6", - "0x4", - "0x0", - "0x2", - "0x8", - "0x7", - "0x0", - "0x1", - "0x2", - "0x3", - "0xdc", - "0x4", - "0x0", - "0x2", - "0x8", - "0x6", - "0x4", - "0x0", - "0x2", - "0x8", - "0x7", - "0x0", - "0x1", - "0x2", - "0x3", - "0x134", - "0x1", - "0x8", - "0x2", - "0x8", - "0x9", - "0x0", - "0x1b8", - "0x5", - "0x2", - "0x8", - "0x4", - "0x4", - "0x4", - "0x4", - "0x2", - "0x8", - "0x4", - "0xf", - "0x0", - "0x1", - "0x2", - "0x3", - "0x4", - "0x1bc", - "0x2", - "0x6", - "0x4", - "0x2", - "0x6", - "0x9", - "0x0", - "0x1", - "0x1e7", - "0x0", - "0x1", - "0x9", - "0x1ee", - "0x2", - "0x0", - "0x6", - "0x3", - "0x0", - "0x6", - "0x12", - "0x0", - "0x1", - "0x1f1", - "0x4", - "0x0", - "0x2", - "0x8", - "0x10", - "0x4", - "0x0", - "0x2", - "0x8", - "0x13", - "0x0", - "0x1", - "0x2", - "0x3", - "0x218", - "0x2", - "0x6", - "0x10", - "0x2", - "0x6", - "0x9", - "0x0", - "0x1", - "0x230", - "0x2", - "0x2", - "0x8", - "0x3", - "0x2", - "0x8", - "0xf", - "0x0", - "0x1", - "0x239", - "0x3", - "0x2", - "0x8", - "0x4", - "0x3", - "0x2", - "0x8", - "0x14", - "0x0", - "0x1", - "0x2", - "0x25b", - "0x2", - "0x0", - "0x4", - "0x2", - "0x0", - "0x12", - "0x0", - "0x1", - "0x27e", - "0x5", - "0x0", - "0x2", - "0x8", - "0x15", - "0x10", - "0x4", - "0x0", - "0x2", - "0x8", - "0x13", - "0x0", - "0x1", - "0x2", - "0x3", - "0x4", - "0x28e", - "0x1", - "0x18", - "0x1", - "0xf", - "0x0", - "0x2c5", - "0x1", - "0x19", - "0x1", - "0x14", - "0x0", - "0x2d0", - "0x1", - "0x1b", - "0x1", - "0x7", - "0x0", - "0x2db", - "0x2", - "0x12", - "0x4", - "0x1", - "0x13", - "0x0", - "0x1", - "0x2e6" - ] -} \ No newline at end of file diff --git a/crates/rpc/fixtures/0.8.0/class_hash/at_block.json b/crates/rpc/fixtures/0.8.0/class_hash/at_block.json deleted file mode 100644 index f97591b88c..0000000000 --- a/crates/rpc/fixtures/0.8.0/class_hash/at_block.json +++ /dev/null @@ -1 +0,0 @@ -"0x636c61737320312068617368" \ No newline at end of file diff --git a/crates/rpc/fixtures/0.8.0/class_hash/latest.json b/crates/rpc/fixtures/0.8.0/class_hash/latest.json deleted file mode 100644 index 36ae8ff312..0000000000 --- a/crates/rpc/fixtures/0.8.0/class_hash/latest.json +++ /dev/null @@ -1 +0,0 @@ -"0x636c61737320302068617368" diff --git a/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1.json b/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1.json deleted file mode 100644 index 9b34449d44..0000000000 --- a/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "l1_data_gas_consumed": "0xc0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x5d09", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x5e89", - "unit": "WEI" - }, - { - "l1_data_gas_consumed": "0xe0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x12", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x1d2", - "unit": "WEI" - }, - { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0xe", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x10e", - "unit": "WEI" - }, - { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0xa", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x10a", - "unit": "WEI" - }, - { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0xe", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x11c", - "unit": "FRI" - } -] \ No newline at end of file diff --git a/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1_1.json b/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1_1.json deleted file mode 100644 index 09903dac83..0000000000 --- a/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_1_1.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "l1_data_gas_consumed": "0xc0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x36e", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x4ee", - "unit": "WEI" - }, - { - "l1_data_gas_consumed": "0xe0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x13", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x1d3", - "unit": "WEI" - }, - { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0xe", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x10e", - "unit": "WEI" - }, - { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0xa", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x10a", - "unit": "WEI" - }, - { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0xe", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x11c", - "unit": "FRI" - } -] \ No newline at end of file diff --git a/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2.json b/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2.json deleted file mode 100644 index 06bbd75de3..0000000000 --- a/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "l1_data_gas_consumed": "0xc0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x5d0b", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x5e8b", - "unit": "WEI" - }, - { - "l1_data_gas_consumed": "0xe0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x16", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x1d6", - "unit": "WEI" - }, - { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x10", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x110", - "unit": "WEI" - }, - { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0xb", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x10b", - "unit": "WEI" - }, - { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x10", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x120", - "unit": "FRI" - } -] \ No newline at end of file diff --git a/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2_1.json b/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2_1.json deleted file mode 100644 index d6037be0fd..0000000000 --- a/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_2_1.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "l1_data_gas_consumed": "0xc0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x370", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x4f0", - "unit": "WEI" - }, - { - "l1_data_gas_consumed": "0xe0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x16", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x1d6", - "unit": "WEI" - }, - { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x10", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x110", - "unit": "WEI" - }, - { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0xb", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x10b", - "unit": "WEI" - }, - { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x10", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x120", - "unit": "FRI" - } -] \ No newline at end of file diff --git a/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_4.json b/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_4.json deleted file mode 100644 index 3919389870..0000000000 --- a/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_13_4.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "l1_data_gas_consumed": "0xc0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x6c8", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0xf10", - "unit": "FRI" - }, - { - "l1_data_gas_consumed": "0xe0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x16", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x1ec", - "unit": "FRI" - }, - { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x0", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0xbe18b", - "l2_gas_price": "0x1", - "overall_fee": "0xbe28b", - "unit": "FRI" - }, - { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x0", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0xbe18b", - "l2_gas_price": "0x1", - "overall_fee": "0xbe28b", - "unit": "FRI" - } -] \ No newline at end of file diff --git a/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_14_0.json b/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_14_0.json deleted file mode 100644 index 02a7266730..0000000000 --- a/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_14_0.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "l1_data_gas_consumed": "0xc0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x6c9", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0xf12", - "unit": "FRI" - }, - { - "l1_data_gas_consumed": "0xe0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x18", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x1f0", - "unit": "FRI" - }, - { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x0", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0xcb4e8", - "l2_gas_price": "0x1", - "overall_fee": "0xcb5e8", - "unit": "FRI" - }, - { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x0", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0xcb4e8", - "l2_gas_price": "0x1", - "overall_fee": "0xcb5e8", - "unit": "FRI" - } -] diff --git a/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_14_1.json b/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_14_1.json deleted file mode 100644 index 02a7266730..0000000000 --- a/crates/rpc/fixtures/0.8.0/fee_estimates/declare_deploy_invoke_sierra_0_14_1.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "l1_data_gas_consumed": "0xc0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x6c9", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0xf12", - "unit": "FRI" - }, - { - "l1_data_gas_consumed": "0xe0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x18", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x1f0", - "unit": "FRI" - }, - { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x0", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0xcb4e8", - "l2_gas_price": "0x1", - "overall_fee": "0xcb5e8", - "unit": "FRI" - }, - { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x0", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0xcb4e8", - "l2_gas_price": "0x1", - "overall_fee": "0xcb5e8", - "unit": "FRI" - } -] diff --git a/crates/rpc/fixtures/0.8.0/fee_estimates/full.json b/crates/rpc/fixtures/0.8.0/fee_estimates/full.json deleted file mode 100644 index 8cf4ebf85c..0000000000 --- a/crates/rpc/fixtures/0.8.0/fee_estimates/full.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x1", - "l1_gas_consumed": "0x3938", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x72f0", - "unit": "WEI" -} diff --git a/crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class.json b/crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class.json deleted file mode 100644 index 29149af797..0000000000 --- a/crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class.json +++ /dev/null @@ -1,636 +0,0 @@ -[ - { - "fee_estimation": { - "l1_data_gas_consumed": "0xc0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x36e", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x4ee", - "unit": "WEI" - }, - "transaction_trace": { - "execution_resources": { - "l1_data_gas": 192, - "l1_gas": 878, - "l2_gas": 0 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4ee", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4ee", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [ - { - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "compiled_class_hash": "0x69032ff71f77284e1a0864a573007108ca5cc08089416af50f03260f5d6d4d8" - } - ], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x1" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffffb12" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x4ee" - } - ] - } - ] - }, - "type": "DECLARE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "l1_data_gas_consumed": "0xe0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x13", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x1d3", - "unit": "WEI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0xc01", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc02", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "entry_point_type": "CONSTRUCTOR", - "events": [], - "execution_resources": { - "l1_gas": 0, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [] - } - ], - "class_hash": "0x6f38fb91ddbf325a0625533576bb6f6eafd9341868a9ec3faa4b01ce6c4f4dc", - "contract_address": "0xc02", - "entry_point_selector": "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0xc01", - "0x0", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0" - ], - "keys": [ - "0x26b160f10156dea0639bec90696772c640b9706a47f5b8c52ea1abe5858b34d" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 5, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 8, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - }, - "execution_resources": { - "l1_data_gas": 224, - "l1_gas": 19, - "l2_gas": 0 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d3", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d3", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [ - { - "address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - } - ], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x2" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffff93f" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x6c1" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0xe", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x10e", - "unit": "WEI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "execution_resources": { - "l1_data_gas": 128, - "l1_gas": 14, - "l2_gas": 0 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x10e", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x10e", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x3" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffff831" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x7cf" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0xe", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x11c", - "unit": "FRI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "execution_resources": { - "l1_data_gas": 128, - "l1_gas": 14, - "l2_gas": 0 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x11c", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x11c", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x4" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffffee4" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x11c" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - } -] diff --git a/crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_13_4.json b/crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_13_4.json deleted file mode 100644 index c7ef4a6c68..0000000000 --- a/crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_13_4.json +++ /dev/null @@ -1,479 +0,0 @@ -[ - { - "fee_estimation": { - "l1_data_gas_consumed": "0xc0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x371", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x4f1", - "unit": "WEI" - }, - "transaction_trace": { - "execution_resources": { - "l1_data_gas": 192, - "l1_gas": 881, - "l2_gas": 0 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4f1", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4f1", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [ - { - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "compiled_class_hash": "0x69032ff71f77284e1a0864a573007108ca5cc08089416af50f03260f5d6d4d8" - } - ], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x1" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffffb0f" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x4f1" - } - ] - } - ] - }, - "type": "DECLARE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "l1_data_gas_consumed": "0xe0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x17", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x1d7", - "unit": "WEI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0xc01", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc02", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "entry_point_type": "CONSTRUCTOR", - "events": [], - "execution_resources": { - "l1_gas": 0, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [] - } - ], - "class_hash": "0x6f38fb91ddbf325a0625533576bb6f6eafd9341868a9ec3faa4b01ce6c4f4dc", - "contract_address": "0xc02", - "entry_point_selector": "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0xc01", - "0x0", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0" - ], - "keys": [ - "0x26b160f10156dea0639bec90696772c640b9706a47f5b8c52ea1abe5858b34d" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 5, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 9, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - }, - "execution_resources": { - "l1_data_gas": 224, - "l1_gas": 23, - "l2_gas": 0 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d7", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d7", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [ - { - "address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - } - ], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x2" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffff938" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x6c8" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 2, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x0", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0xb9ff9", - "l2_gas_price": "0x1", - "overall_fee": "0xba0f9", - "unit": "FRI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 0, - "l2_gas": 40000 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 0, - "l2_gas": 191970 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "execution_resources": { - "l1_data_gas": 128, - "l1_gas": 0, - "l2_gas": 692590 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0xa926e", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0xa926e", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 0, - "l2_gas": 190720 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x3" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffff56d92" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0xa926e" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 0, - "l2_gas": 40140 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - } -] diff --git a/crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_14_0.json b/crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_14_0.json deleted file mode 100644 index e0aef4efd6..0000000000 --- a/crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class_starknet_0_14_0.json +++ /dev/null @@ -1,479 +0,0 @@ -[ - { - "fee_estimation": { - "l1_data_gas_consumed": "0xc0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x372", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x4f2", - "unit": "WEI" - }, - "transaction_trace": { - "execution_resources": { - "l1_data_gas": 192, - "l1_gas": 882, - "l2_gas": 0 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4f2", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4f2", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [ - { - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "compiled_class_hash": "0x69032ff71f77284e1a0864a573007108ca5cc08089416af50f03260f5d6d4d8" - } - ], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x1" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffffb0e" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x4f2" - } - ] - } - ] - }, - "type": "DECLARE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "l1_data_gas_consumed": "0xe0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x19", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x1d9", - "unit": "WEI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0xc01", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc02", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "entry_point_type": "CONSTRUCTOR", - "events": [], - "execution_resources": { - "l1_gas": 0, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [] - } - ], - "class_hash": "0x6f38fb91ddbf325a0625533576bb6f6eafd9341868a9ec3faa4b01ce6c4f4dc", - "contract_address": "0xc02", - "entry_point_selector": "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0xc01", - "0x0", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0" - ], - "keys": [ - "0x26b160f10156dea0639bec90696772c640b9706a47f5b8c52ea1abe5858b34d" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 5, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 10, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - }, - "execution_resources": { - "l1_data_gas": 224, - "l1_gas": 25, - "l2_gas": 0 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d9", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d9", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [ - { - "address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - } - ], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x2" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffff935" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x6cb" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 2, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x0", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0xc7eae", - "l2_gas_price": "0x1", - "overall_fee": "0xc7fae", - "unit": "FRI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 0, - "l2_gas": 40000 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 0, - "l2_gas": 201160 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "execution_resources": { - "l1_data_gas": 128, - "l1_gas": 0, - "l2_gas": 744420 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0xb5ce4", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0xb5ce4", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 0, - "l2_gas": 190720 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x3" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffff4a31c" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0xb5ce4" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 0, - "l2_gas": 42780 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - } -] diff --git a/crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_fee_charge.json b/crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_fee_charge.json deleted file mode 100644 index 760d410089..0000000000 --- a/crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_fee_charge.json +++ /dev/null @@ -1,432 +0,0 @@ -[ - { - "fee_estimation": { - "l1_data_gas_consumed": "0xc0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x36e", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x4ee", - "unit": "WEI" - }, - "transaction_trace": { - "execution_resources": { - "l1_data_gas": 192, - "l1_gas": 878, - "l2_gas": 0 - }, - "state_diff": { - "declared_classes": [ - { - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "compiled_class_hash": "0x69032ff71f77284e1a0864a573007108ca5cc08089416af50f03260f5d6d4d8" - } - ], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x1" - } - ], - "replaced_classes": [], - "storage_diffs": [] - }, - "type": "DECLARE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "l1_data_gas_consumed": "0xe0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x13", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x1d3", - "unit": "WEI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0xc01", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc02", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "entry_point_type": "CONSTRUCTOR", - "events": [], - "execution_resources": { - "l1_gas": 0, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [] - } - ], - "class_hash": "0x6f38fb91ddbf325a0625533576bb6f6eafd9341868a9ec3faa4b01ce6c4f4dc", - "contract_address": "0xc02", - "entry_point_selector": "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0xc01", - "0x0", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0" - ], - "keys": [ - "0x26b160f10156dea0639bec90696772c640b9706a47f5b8c52ea1abe5858b34d" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 5, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 8, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - }, - "execution_resources": { - "l1_data_gas": 224, - "l1_gas": 19, - "l2_gas": 0 - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [ - { - "address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - } - ], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x2" - } - ], - "replaced_classes": [], - "storage_diffs": [] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0xe", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x10e", - "unit": "WEI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "execution_resources": { - "l1_data_gas": 128, - "l1_gas": 14, - "l2_gas": 0 - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x3" - } - ], - "replaced_classes": [], - "storage_diffs": [] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - }, - { - "fee_estimation": { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0xe", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x11c", - "unit": "FRI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "execution_resources": { - "l1_data_gas": 128, - "l1_gas": 14, - "l2_gas": 0 - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x4" - } - ], - "replaced_classes": [], - "storage_diffs": [] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - } -] diff --git a/crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_validate.json b/crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_validate.json deleted file mode 100644 index 2d8b5421df..0000000000 --- a/crates/rpc/fixtures/0.8.0/simulations/declare_deploy_and_invoke_sierra_class_with_skip_validate.json +++ /dev/null @@ -1,535 +0,0 @@ -[ - { - "fee_estimation": { - "l1_data_gas_consumed": "0xc0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x36e", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x4ee", - "unit": "WEI" - }, - "transaction_trace": { - "execution_resources": { - "l1_data_gas": 192, - "l1_gas": 878, - "l2_gas": 0 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4ee", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4ee", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [ - { - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "compiled_class_hash": "0x69032ff71f77284e1a0864a573007108ca5cc08089416af50f03260f5d6d4d8" - } - ], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x1" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffffb12" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x4ee" - } - ] - } - ] - }, - "type": "DECLARE" - } - }, - { - "fee_estimation": { - "l1_data_gas_consumed": "0xe0", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x12", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x1d2", - "unit": "WEI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0xc01", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc02", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "entry_point_type": "CONSTRUCTOR", - "events": [], - "execution_resources": { - "l1_gas": 0, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [] - } - ], - "class_hash": "0x6f38fb91ddbf325a0625533576bb6f6eafd9341868a9ec3faa4b01ce6c4f4dc", - "contract_address": "0xc02", - "entry_point_selector": "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0xc01", - "0x0", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0" - ], - "keys": [ - "0x26b160f10156dea0639bec90696772c640b9706a47f5b8c52ea1abe5858b34d" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 5, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 8, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - }, - "execution_resources": { - "l1_data_gas": 224, - "l1_gas": 18, - "l2_gas": 0 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d2", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d2", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [ - { - "address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - } - ], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x2" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffff940" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x6c0" - } - ] - } - ] - }, - "type": "INVOKE" - } - }, - { - "fee_estimation": { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0xd", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x10d", - "unit": "WEI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "execution_resources": { - "l1_data_gas": 128, - "l1_gas": 13, - "l2_gas": 0 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x10d", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x10d", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x3" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffff833" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x7cd" - } - ] - } - ] - }, - "type": "INVOKE" - } - }, - { - "fee_estimation": { - "l1_data_gas_consumed": "0x80", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0xd", - "l1_gas_price": "0x2", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x11a", - "unit": "FRI" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "execution_resources": { - "l1_data_gas": 128, - "l1_gas": 13, - "l2_gas": 0 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x11a", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x11a", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x4" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffffee6" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x11a" - } - ] - } - ] - }, - "type": "INVOKE" - } - } -] diff --git a/crates/rpc/fixtures/0.8.0/simulations/simulate_transaction.json b/crates/rpc/fixtures/0.8.0/simulations/simulate_transaction.json deleted file mode 100644 index 9c3648e662..0000000000 --- a/crates/rpc/fixtures/0.8.0/simulations/simulate_transaction.json +++ /dev/null @@ -1,111 +0,0 @@ -[ - { - "fee_estimation": { - "l1_data_gas_consumed": "0x160", - "l1_data_gas_price": "0x2", - "l1_gas_consumed": "0x15", - "l1_gas_price": "0x1", - "l2_gas_consumed": "0x0", - "l2_gas_price": "0x1", - "overall_fee": "0x2d5", - "unit": "WEI" - }, - "transaction_trace": { - "constructor_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xf3805e4f045a8b48e7e9e6cd5d910973a22360572207f3ae625c5cec2a3232", - "entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "entry_point_type": "CONSTRUCTOR", - "events": [ - { - "data": [], - "keys": [ - "0x38f6a5b87c23cee6e7294bcc3302e95019f70f81586ff3cac38581f5ca96381", - "0x1" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 2, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [] - }, - "execution_resources": { - "l1_data_gas": 352, - "l1_gas": 21, - "l2_gas": 0 - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [ - { - "address": "0xf3805e4f045a8b48e7e9e6cd5d910973a22360572207f3ae625c5cec2a3232", - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978" - } - ], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xf3805e4f045a8b48e7e9e6cd5d910973a22360572207f3ae625c5cec2a3232", - "nonce": "0x1" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0xf3805e4f045a8b48e7e9e6cd5d910973a22360572207f3ae625c5cec2a3232", - "storage_entries": [ - { - "key": "0x81ba5d1f84a6a8f0e7ae24720a20f43f81d9ee6eed98fd524ba8d53a49416b", - "value": "0x1" - }, - { - "key": "0x1379ac0624b939ceb9dede92211d7db5ee174fe28be72245b0a1a2abd81c98f", - "value": "0x1" - }, - { - "key": "0x7e79bbb6be5d418acd50c88b675e697f6f7094e203c9d7e29c6ad6731f931dd", - "value": "0x1" - } - ] - } - ] - }, - "type": "DEPLOY_ACCOUNT", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "0x46c0d4abf0192a788aca261e58d7031576f7d8ea5229f452b0f23e691dd5971", - "0x1" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xf3805e4f045a8b48e7e9e6cd5d910973a22360572207f3ae625c5cec2a3232", - "entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - } - } -] diff --git a/crates/rpc/fixtures/0.8.0/state_updates/full.json b/crates/rpc/fixtures/0.8.0/state_updates/full.json deleted file mode 100644 index 311847daa5..0000000000 --- a/crates/rpc/fixtures/0.8.0/state_updates/full.json +++ /dev/null @@ -1,2 +0,0 @@ -{} - diff --git a/crates/rpc/fixtures/0.8.0/state_updates/pre_confirmed.json b/crates/rpc/fixtures/0.8.0/state_updates/pre_confirmed.json deleted file mode 100644 index 311847daa5..0000000000 --- a/crates/rpc/fixtures/0.8.0/state_updates/pre_confirmed.json +++ /dev/null @@ -1,2 +0,0 @@ -{} - diff --git a/crates/rpc/fixtures/0.8.0/traces/multiple_pre_confirmed_txs.json b/crates/rpc/fixtures/0.8.0/traces/multiple_pre_confirmed_txs.json deleted file mode 100644 index fe51488c70..0000000000 --- a/crates/rpc/fixtures/0.8.0/traces/multiple_pre_confirmed_txs.json +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/crates/rpc/fixtures/0.8.0/traces/multiple_txs.json b/crates/rpc/fixtures/0.8.0/traces/multiple_txs.json deleted file mode 100644 index 536c292c92..0000000000 --- a/crates/rpc/fixtures/0.8.0/traces/multiple_txs.json +++ /dev/null @@ -1,452 +0,0 @@ -[ - { - "trace_root": { - "execution_resources": { - "l1_data_gas": 192, - "l1_gas": 878, - "l2_gas": 0 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4ee", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x4ee", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [ - { - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "compiled_class_hash": "0x69032ff71f77284e1a0864a573007108ca5cc08089416af50f03260f5d6d4d8" - } - ], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x1" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffffb12" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x4ee" - } - ] - } - ] - }, - "type": "DECLARE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - }, - "transaction_hash": "0x548c629e4ee49b5280bb1363288d2e112974beaa2959c96500a9f0cbc41e5ee" - }, - { - "trace_root": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [ - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0xc01", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc02", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "entry_point_type": "CONSTRUCTOR", - "events": [], - "execution_resources": { - "l1_gas": 0, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [] - } - ], - "class_hash": "0x6f38fb91ddbf325a0625533576bb6f6eafd9341868a9ec3faa4b01ce6c4f4dc", - "contract_address": "0xc02", - "entry_point_selector": "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0xc01", - "0x0", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0" - ], - "keys": [ - "0x26b160f10156dea0639bec90696772c640b9706a47f5b8c52ea1abe5858b34d" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 5, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 8, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7" - ] - }, - "execution_resources": { - "l1_data_gas": 224, - "l1_gas": 19, - "l2_gas": 0 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d3", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x1d3", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [ - { - "address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90" - } - ], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x2" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffff93f" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x6c1" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0xc02", - "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", - "0x4", - "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "0x0", - "0x0", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - }, - "transaction_hash": "0x1cdd84a12e3582bd60acf7546d6e1a54e9706414f28cd3b2ce8a3d2eb5e4f73" - }, - { - "trace_root": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x544b92d358447cb9e50b65092b7169f931d29e05c1404a2cd08c6fd7e32ba90", - "contract_address": "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "entry_point_selector": "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x9" - ] - } - ], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1", - "0x1", - "0x9" - ] - }, - "execution_resources": { - "l1_data_gas": 128, - "l1_gas": 14, - "l2_gas": 0 - }, - "fee_transfer_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x10e", - "0x0" - ], - "caller_address": "0xc01", - "calls": [], - "class_hash": "0x13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0xc01", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x10e", - "0x0" - ], - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "order": 0 - } - ], - "execution_resources": { - "l1_gas": 4, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x1" - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0xc01", - "nonce": "0x3" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x32a4edd4e4cffa71ee6d0971c54ac9e62009526cd78af7404aa968c3dc3408e", - "value": "0xfffffffffffffffffffffffff831" - }, - { - "key": "0x5496768776e3db30053404f18067d81a6e06f5a2b0de326e21298fd9d569a9a", - "value": "0x7cf" - } - ] - } - ] - }, - "type": "INVOKE", - "validate_invocation": { - "call_type": "CALL", - "calldata": [ - "0x1", - "0x12592426632af714f43ccb05536b6044fc3e897fa55288f658731f93590e7e7", - "0x3c8e49f80f188aa594216c470baf9428ed7dbef7af8f907328bee96696b878", - "0x0" - ], - "caller_address": "0x0", - "calls": [], - "class_hash": "0x19cabebe31b9fb6bf5e7ce9a971bd7d06e9999e0b97eee943869141a46fd978", - "contract_address": "0xc01", - "entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "entry_point_type": "EXTERNAL", - "events": [], - "execution_resources": { - "l1_gas": 1, - "l2_gas": 0 - }, - "is_reverted": false, - "messages": [], - "result": [ - "0x56414c4944" - ] - } - }, - "transaction_hash": "0x2a973a52127349ccb6ecd72c31a7b1fc444a526643b4afe8a275a536075cb0e" - } -] \ No newline at end of file diff --git a/crates/rpc/fixtures/0.8.0/transactions/receipt_l1_accepted.json b/crates/rpc/fixtures/0.8.0/transactions/receipt_l1_accepted.json deleted file mode 100644 index f6642f2cd7..0000000000 --- a/crates/rpc/fixtures/0.8.0/transactions/receipt_l1_accepted.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "block_hash": "0x626c6f636b2031", - "block_number": 1, - "events": [], - "execution_resources": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - }, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L1", - "messages_sent": [], - "transaction_hash": "0x74786e2031", - "type": "INVOKE" -} diff --git a/crates/rpc/fixtures/0.8.0/transactions/receipt_l2_accepted.json b/crates/rpc/fixtures/0.8.0/transactions/receipt_l2_accepted.json deleted file mode 100644 index d1ef779657..0000000000 --- a/crates/rpc/fixtures/0.8.0/transactions/receipt_l2_accepted.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "block_hash": "0x6c6174657374", - "block_number": 2, - "events": [], - "execution_resources": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - }, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [], - "transaction_hash": "0x74786e2033", - "type": "INVOKE" -} diff --git a/crates/rpc/fixtures/0.8.0/transactions/receipt_reverted.json b/crates/rpc/fixtures/0.8.0/transactions/receipt_reverted.json deleted file mode 100644 index 57717c5aa2..0000000000 --- a/crates/rpc/fixtures/0.8.0/transactions/receipt_reverted.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "actual_fee": { - "amount": "0x0", - "unit": "WEI" - }, - "block_hash": "0x6c6174657374", - "block_number": 2, - "events": [], - "execution_resources": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - }, - "execution_status": "REVERTED", - "finality_status": "ACCEPTED_ON_L2", - "messages_sent": [], - "revert_reason": "Reverted because", - "transaction_hash": "0x74786e207265766572746564", - "type": "INVOKE" -} \ No newline at end of file diff --git a/crates/rpc/fixtures/0.8.0/transactions/receipt_reverted_preconfirmed.json b/crates/rpc/fixtures/0.8.0/transactions/receipt_reverted_preconfirmed.json deleted file mode 100644 index 926c7ac288..0000000000 --- a/crates/rpc/fixtures/0.8.0/transactions/receipt_reverted_preconfirmed.json +++ /dev/null @@ -1 +0,0 @@ -"pre-0.9 json rpc doesn't have access to pre-confirmed data" diff --git a/crates/rpc/fixtures/0.8.0/transactions/status_reverted.json b/crates/rpc/fixtures/0.8.0/transactions/status_reverted.json deleted file mode 100644 index 926c7ac288..0000000000 --- a/crates/rpc/fixtures/0.8.0/transactions/status_reverted.json +++ /dev/null @@ -1 +0,0 @@ -"pre-0.9 json rpc doesn't have access to pre-confirmed data" diff --git a/crates/rpc/fixtures/0.8.0/transactions/status_reverted_with_reason.json b/crates/rpc/fixtures/0.8.0/transactions/status_reverted_with_reason.json deleted file mode 100644 index 12308e3656..0000000000 --- a/crates/rpc/fixtures/0.8.0/transactions/status_reverted_with_reason.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "execution_status": "REVERTED", - "failure_reason": "Reverted because", - "finality_status": "ACCEPTED_ON_L2" -} \ No newline at end of file diff --git a/crates/rpc/fixtures/0.8.0/transactions/txn_1.json b/crates/rpc/fixtures/0.8.0/transactions/txn_1.json deleted file mode 100644 index 7d5799c7bc..0000000000 --- a/crates/rpc/fixtures/0.8.0/transactions/txn_1.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e2031", - "type": "INVOKE", - "version": "0x0" -} \ No newline at end of file diff --git a/crates/rpc/fixtures/0.8.0/transactions/txn_preconfirmed_reverted.json b/crates/rpc/fixtures/0.8.0/transactions/txn_preconfirmed_reverted.json deleted file mode 100644 index 926c7ac288..0000000000 --- a/crates/rpc/fixtures/0.8.0/transactions/txn_preconfirmed_reverted.json +++ /dev/null @@ -1 +0,0 @@ -"pre-0.9 json rpc doesn't have access to pre-confirmed data" diff --git a/crates/rpc/fixtures/0.8.0/transactions/txn_reverted.json b/crates/rpc/fixtures/0.8.0/transactions/txn_reverted.json deleted file mode 100644 index 90255207d6..0000000000 --- a/crates/rpc/fixtures/0.8.0/transactions/txn_reverted.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "calldata": [], - "contract_address": "0x636f6e74726163742031", - "entry_point_selector": "0x0", - "max_fee": "0x0", - "signature": [], - "transaction_hash": "0x74786e207265766572746564", - "type": "INVOKE", - "version": "0x0" -} \ No newline at end of file From 2b3eb4ea254ee5864d596c4e287e97c959ff1bb3 Mon Sep 17 00:00:00 2001 From: Krzysztof Lis Date: Mon, 15 Jun 2026 07:48:23 +0000 Subject: [PATCH 05/10] doc(rpc): delete specs for removed JSON-RPC versions --- specs/rpc/v03/starknet_api_openrpc.json | 2799 ------------ specs/rpc/v03/starknet_trace_api_openrpc.json | 366 -- specs/rpc/v03/starknet_write_api.json | 160 - specs/rpc/v04/starknet_api_openrpc.json | 3025 ------------- specs/rpc/v04/starknet_trace_api_openrpc.json | 399 -- specs/rpc/v04/starknet_write_api.json | 297 -- specs/rpc/v05/starknet_api_openrpc.json | 3395 -------------- specs/rpc/v05/starknet_trace_api_openrpc.json | 490 -- specs/rpc/v05/starknet_write_api.json | 298 -- specs/rpc/v06/starknet_api_openrpc.json | 3945 ---------------- specs/rpc/v06/starknet_trace_api_openrpc.json | 489 -- specs/rpc/v06/starknet_write_api.json | 299 -- specs/rpc/v07/starknet_api_openrpc.json | 3990 ----------------- specs/rpc/v07/starknet_trace_api_openrpc.json | 513 --- specs/rpc/v07/starknet_write_api.json | 299 -- specs/rpc/v08/starknet_api_openrpc.json | 3819 ---------------- specs/rpc/v08/starknet_executables.json | 1178 ----- specs/rpc/v08/starknet_trace_api_openrpc.json | 496 -- specs/rpc/v08/starknet_write_api.json | 286 -- specs/rpc/v08/starknet_ws_api.json | 395 -- 20 files changed, 26938 deletions(-) delete mode 100644 specs/rpc/v03/starknet_api_openrpc.json delete mode 100644 specs/rpc/v03/starknet_trace_api_openrpc.json delete mode 100644 specs/rpc/v03/starknet_write_api.json delete mode 100644 specs/rpc/v04/starknet_api_openrpc.json delete mode 100644 specs/rpc/v04/starknet_trace_api_openrpc.json delete mode 100644 specs/rpc/v04/starknet_write_api.json delete mode 100644 specs/rpc/v05/starknet_api_openrpc.json delete mode 100644 specs/rpc/v05/starknet_trace_api_openrpc.json delete mode 100644 specs/rpc/v05/starknet_write_api.json delete mode 100644 specs/rpc/v06/starknet_api_openrpc.json delete mode 100644 specs/rpc/v06/starknet_trace_api_openrpc.json delete mode 100644 specs/rpc/v06/starknet_write_api.json delete mode 100644 specs/rpc/v07/starknet_api_openrpc.json delete mode 100644 specs/rpc/v07/starknet_trace_api_openrpc.json delete mode 100644 specs/rpc/v07/starknet_write_api.json delete mode 100644 specs/rpc/v08/starknet_api_openrpc.json delete mode 100644 specs/rpc/v08/starknet_executables.json delete mode 100644 specs/rpc/v08/starknet_trace_api_openrpc.json delete mode 100644 specs/rpc/v08/starknet_write_api.json delete mode 100644 specs/rpc/v08/starknet_ws_api.json diff --git a/specs/rpc/v03/starknet_api_openrpc.json b/specs/rpc/v03/starknet_api_openrpc.json deleted file mode 100644 index 9826c5acdf..0000000000 --- a/specs/rpc/v03/starknet_api_openrpc.json +++ /dev/null @@ -1,2799 +0,0 @@ -{ - "openrpc": "1.0.0-rc1", - "info": { - "version": "0.50.0", - "title": "StarkNet Node API", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_getBlockWithTxHashes", - "summary": "Get block information with transaction hashes given the block id", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The resulting block information with transaction hashes", - "schema": { - "title": "Starknet get block hash with tx hashes result", - "oneOf": [ - { - "title": "Block with transaction hashes", - "$ref": "#/components/schemas/BLOCK_WITH_TX_HASHES" - }, - { - "title": "Pending block with transaction hashes", - "$ref": "#/components/schemas/PENDING_BLOCK_WITH_TX_HASHES" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getBlockWithTxs", - "summary": "Get block information with full transactions given the block id", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The resulting block information with full transactions", - "schema": { - "title": "Starknet get block with txs result", - "oneOf": [ - { - "title": "Block with transactions", - "$ref": "#/components/schemas/BLOCK_WITH_TXS" - }, - { - "title": "Pending block with transactions", - "$ref": "#/components/schemas/PENDING_BLOCK_WITH_TXS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getStateUpdate", - "summary": "Get the information about the result of executing the requested block", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The information about the state update of the requested block", - "schema": { - "title": "Starknet get state update result", - "oneOf": [ - { - "title": "State update", - "$ref": "#/components/schemas/STATE_UPDATE" - }, - { - "title": "Pending state update", - "$ref": "#/components/schemas/PENDING_STATE_UPDATE" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getStorageAt", - "summary": "Get the value of the storage at the given address and key", - "params": [ - { - "name": "contract_address", - "description": "The address of the contract to read from", - "summary": "The address of the contract to read from", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - }, - { - "name": "key", - "description": "The key to the storage value for the given contract", - "summary": "The key to the storage value for the given contract", - "required": true, - "schema": { - "title": "Storage key", - "$ref": "#/components/schemas/STORAGE_KEY" - } - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The value at the given key for the given contract. 0 if no value is found", - "summary": "The value at the given key for the given contract.", - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getTransactionByHash", - "summary": "Get the details and status of a submitted transaction", - "paramStructure": "by-name", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the requested transaction", - "required": true, - "schema": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "result", - "schema": { - "title": "Transaction", - "$ref": "#/components/schemas/TXN" - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getTransactionByBlockIdAndIndex", - "summary": "Get the details of a transaction by a given block id and index", - "description": "Get the details of the transaction given by the identified block and index in that block. If no transaction is found, null is returned.", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "index", - "summary": "The index in the block to search for the transaction", - "required": true, - "schema": { - "title": "Index", - "type": "integer", - "minimum": 0 - } - } - ], - "result": { - "name": "transactionResult", - "schema": { - "title": "Transaction", - "$ref": "#/components/schemas/TXN" - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/INVALID_TXN_INDEX" - } - ] - }, - { - "name": "starknet_getTransactionReceipt", - "summary": "Get the transaction receipt by the transaction hash", - "paramStructure": "by-name", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the requested transaction", - "required": true, - "schema": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "result", - "schema": { - "title": "Transaction receipt", - "$ref": "#/components/schemas/TXN_RECEIPT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getClass", - "summary": "Get the contract class definition in the given block associated with the given hash", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "class_hash", - "description": "The hash of the requested contract class", - "required": true, - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - } - ], - "result": { - "name": "result", - "description": "The contract class, if found", - "schema": { - "title": "Starknet get class result", - "oneOf": [ - { - "title": "Deprecated contract class", - "$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS" - }, - { - "title": "Contract class", - "$ref": "#/components/schemas/CONTRACT_CLASS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CLASS_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getClassHashAt", - "summary": "Get the contract class hash in the given block for the contract deployed at the given address", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "contract_address", - "description": "The address of the contract whose class hash will be returned", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - } - ], - "result": { - "name": "result", - "description": "The class hash of the given contract", - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getClassAt", - "summary": "Get the contract class definition in the given block at the given address", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "contract_address", - "description": "The address of the contract whose class definition will be returned", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - } - ], - "result": { - "name": "result", - "description": "The contract class", - "schema": { - "title": "Starknet get class at result", - "oneOf": [ - { - "title": "Deprecated contract class", - "$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS" - }, - { - "title": "Contract class", - "$ref": "#/components/schemas/CONTRACT_CLASS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getBlockTransactionCount", - "summary": "Get the number of transactions in a block given a block id", - "description": "Returns the number of transactions in the designated block.", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The number of transactions in the designated block", - "summary": "The number of transactions in the designated block", - "schema": { - "title": "Block transaction count", - "type": "integer", - "minimum": 0 - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_call", - "summary": "call a starknet function without creating a StarkNet transaction", - "description": "Calls a function in a contract and returns the return value. Using this call will not create a transaction; hence, will not change the state", - "params": [ - { - "name": "request", - "summary": "The details of the function call", - "schema": { - "title": "Function call", - "$ref": "#/components/schemas/FUNCTION_CALL" - }, - "required": true - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "summary": "The function's return value", - "description": "The function's return value, as defined in the Cairo output", - "schema": { - "type": "array", - "title": "Field element", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_estimateFee", - "summary": "estimate the fee for of StarkNet transactions", - "description": "estimates the resources required by transactions when applied on a given state", - "params": [ - { - "name": "request", - "summary": "The transaction to estimate", - "schema": { - "type": "array", - "description": "a sequence of transactions to estimate, running each transaction on the state resulting from applying all the previous ones", - "title": "Broadcasted transaction", - "items": { - "$ref": "#/components/schemas/BROADCASTED_TXN" - } - }, - "required": true - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "the fee estimations", - "schema": { - "title": "Estimation", - "type": "array", - "description": "a sequence of fee estimation where the i'th estimate corresponds to the i'th transaction", - "items": { - "$ref": "#/components/schemas/FEE_ESTIMATE" - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_blockNumber", - "summary": "Get the most recent accepted block number", - "params": [], - "result": { - "name": "result", - "description": "The latest block number", - "schema": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "errors": [ - { - "$ref": "#/components/errors/NO_BLOCKS" - } - ] - }, - { - "name": "starknet_blockHashAndNumber", - "summary": "Get the most recent accepted block hash and number", - "params": [], - "result": { - "name": "result", - "description": "The latest block hash and number", - "schema": { - "title": "Starknet block hash and number result", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "required": [ - "block_hash", - "block_number" - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/NO_BLOCKS" - } - ] - }, - { - "name": "starknet_chainId", - "summary": "Return the currently configured StarkNet chain id", - "params": [], - "result": { - "name": "result", - "description": "The chain id this node is connected to", - "schema": { - "title": "Chain id", - "$ref": "#/components/schemas/CHAIN_ID" - } - } - }, - { - "name": "starknet_pendingTransactions", - "summary": "Returns the transactions in the transaction pool, recognized by this sequencer", - "params": [], - "result": { - "name": "result", - "schema": { - "type": "array", - "title": "Pending Transactions", - "items": { - "$ref": "#/components/schemas/TXN" - } - } - } - }, - { - "name": "starknet_syncing", - "summary": "Returns an object about the sync status, or false if the node is not synching", - "params": [], - "result": { - "name": "syncing", - "summary": "The state of the synchronization, or false if the node is not synchronizing", - "description": "The status of the node, if it is currently synchronizing state. FALSE otherwise", - "schema": { - "title": "SyncingStatus", - "oneOf": [ - { - "type": "boolean", - "title": "False", - "description": "only legal value is FALSE here" - }, - { - "title": "Sync status", - "$ref": "#/components/schemas/SYNC_STATUS" - } - ] - } - } - }, - { - "name": "starknet_getEvents", - "summary": "Returns all events matching the given filter", - "description": "Returns all event objects matching the conditions in the provided filter", - "params": [ - { - "name": "filter", - "summary": "The conditions used to filter the returned events", - "required": true, - "schema": { - "title": "Event emitter", - "allOf": [ - { - "title": "Event filter", - "$ref": "#/components/schemas/EVENT_FILTER" - }, - { - "title": "Result page request", - "$ref": "#/components/schemas/RESULT_PAGE_REQUEST" - } - ] - } - } - ], - "result": { - "name": "events", - "description": "All the event objects matching the filter", - "schema": { - "title": "Events chunk", - "$ref": "#/components/schemas/EVENTS_CHUNK" - } - }, - "errors": [ - { - "$ref": "#/components/errors/PAGE_SIZE_TOO_BIG" - }, - { - "$ref": "#/components/errors/INVALID_CONTINUATION_TOKEN" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/TOO_MANY_KEYS_IN_FILTER" - } - ] - }, - { - "name": "starknet_getNonce", - "summary": "Get the nonce associated with the given address in the given block", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "contract_address", - "description": "The address of the contract whose nonce we're seeking", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - } - ], - "result": { - "name": "result", - "description": "The last nonce used for the given contract.", - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "EVENTS_CHUNK": { - "title": "Events chunk", - "type": "object", - "properties": { - "events": { - "type": "array", - "title": "Matching Events", - "items": { - "$ref": "#/components/schemas/EMITTED_EVENT" - } - }, - "continuation_token": { - "title": "Continuation token", - "description": "Use this token in a subsequent query to obtain the next page. Should not appear if there are no more pages.", - "type": "string" - } - }, - "required": [ - "events" - ] - }, - "RESULT_PAGE_REQUEST": { - "title": "Result page request", - "type": "object", - "properties": { - "continuation_token": { - "title": "Continuation token", - "description": "The token returned from the previous query. If no token is provided the first page is returned.", - "type": "string" - }, - "chunk_size": { - "title": "Chunk size", - "type": "integer", - "minimum": 1 - } - }, - "required": [ - "chunk_size" - ] - }, - "EMITTED_EVENT": { - "title": "Emitted event", - "description": "Event information decorated with metadata on where it was emitted / An event emitted as a result of transaction execution", - "allOf": [ - { - "title": "Event", - "description": "The event information", - "$ref": "#/components/schemas/EVENT" - }, - { - "title": "Event context", - "description": "The event emission information", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "description": "The hash of the block in which the event was emitted", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "description": "The number of the block in which the event was emitted", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "transaction_hash": { - "title": "Transaction hash", - "description": "The transaction that emitted the event", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "block_hash", - "block_number", - "transaction_hash" - ] - } - ] - }, - "EVENT": { - "title": "Event", - "description": "A StarkNet event", - "allOf": [ - { - "title": "Event emitter", - "type": "object", - "properties": { - "from_address": { - "title": "From address", - "$ref": "#/components/schemas/ADDRESS" - } - }, - "required": [ - "from_address" - ] - }, - { - "title": "Event content", - "$ref": "#/components/schemas/EVENT_CONTENT" - } - ] - }, - "EVENT_CONTENT": { - "title": "Event content", - "description": "The content of an event", - "type": "object", - "properties": { - "keys": { - "type": "array", - "title": "Keys", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "data": { - "type": "array", - "title": "Data", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "keys", - "data" - ] - }, - "EVENT_FILTER": { - "title": "Event filter", - "description": "An event filter/query", - "type": "object", - "properties": { - "from_block": { - "title": "from block", - "$ref": "#/components/schemas/BLOCK_ID" - }, - "to_block": { - "title": "to block", - "$ref": "#/components/schemas/BLOCK_ID" - }, - "address": { - "title": "from contract", - "$ref": "#/components/schemas/ADDRESS" - }, - "keys": { - "title": "Keys", - "description": "The values used to filter the events", - "type": "array", - "items": { - "title": "Keys", - "description": "Per key (by position), designate the possible values to be matched for events to be returned. Empty array designates 'any' value", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "required": [] - }, - "BLOCK_ID": { - "title": "Block id", - "description": "Block hash, number or tag", - "oneOf": [ - { - "title": "Block hash", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - } - }, - "required": [ - "block_hash" - ] - }, - { - "title": "Block number", - "type": "object", - "properties": { - "block_number": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "required": [ - "block_number" - ] - }, - { - "title": "Block tag", - "$ref": "#/components/schemas/BLOCK_TAG" - } - ] - }, - "BLOCK_TAG": { - "title": "Block tag", - "type": "string", - "description": "A tag specifying a dynamic reference to a block", - "enum": [ - "latest", - "pending" - ] - }, - "SYNC_STATUS": { - "title": "Sync status", - "type": "object", - "description": "An object describing the node synchronization status", - "properties": { - "starting_block_hash": { - "title": "Starting block hash", - "description": "The hash of the block from which the sync started", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "starting_block_num": { - "title": "Starting block number", - "description": "The number (height) of the block from which the sync started", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "current_block_hash": { - "title": "Current block hash", - "description": "The hash of the current block being synchronized", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "current_block_num": { - "title": "Current block number", - "description": "The number (height) of the current block being synchronized", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "highest_block_hash": { - "title": "Highest block hash", - "description": "The hash of the estimated highest block to be synchronized", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "highest_block_num": { - "title": "Highest block number", - "description": "The number (height) of the estimated highest block to be synchronized", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": [ - "starting_block_hash", - "starting_block_num", - "current_block_hash", - "current_block_num", - "highest_block_hash", - "highest_block_num" - ] - }, - "NUM_AS_HEX": { - "title": "Number as hex", - "description": "An integer number in hex format (0x...)", - "type": "string", - "pattern": "^0x[a-fA-F0-9]+$" - }, - "CHAIN_ID": { - "title": "Chain id", - "description": "StarkNet chain id, given in hex representation.", - "type": "string", - "pattern": "^0x[a-fA-F0-9]+$" - }, - "STATE_UPDATE": { - "title": "State update", - "type": "object", - "allOf": [ - { - "title": "Event emitter", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "new_root": { - "title": "New root", - "description": "The new global state root", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "block_hash", - "new_root" - ] - }, - { - "title": "Pending state update", - "$ref": "#/components/schemas/PENDING_STATE_UPDATE" - } - ] - }, - "PENDING_STATE_UPDATE": { - "title": "Pending state update", - "description": "Pending state update", - "type": "object", - "properties": { - "old_root": { - "title": "Old root", - "description": "The previous global state root", - "$ref": "#/components/schemas/FELT" - }, - "state_diff": { - "title": "State diff", - "description": "The change in state applied in this block, given as a mapping of addresses to the new values and/or new contracts", - "type": "object", - "properties": { - "storage_diffs": { - "title": "Storage diffs", - "type": "array", - "items": { - "description": "The changes in the storage per contract address", - "$ref": "#/components/schemas/CONTRACT_STORAGE_DIFF_ITEM" - } - }, - "deprecated_declared_classes": { - "title": "Deprecated declared classes", - "type": "array", - "items": { - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "declared_classes": { - "title": "Declared classes", - "type": "array", - "items": { - "title": "Event emitter", - "type": "object", - "description": "The declared class hash and compiled class hash", - "properties": { - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The Cairo assembly hash corresponding to the declared class", - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "deployed_contracts": { - "title": "Deployed contracts", - "type": "array", - "items": { - "description": "A new contract deployed as part of the state update", - "$ref": "#/components/schemas/DEPLOYED_CONTRACT_ITEM" - } - }, - "replaced_classes": { - "title": "Replaced classes", - "type": "array", - "items": { - "description": "The list of contracts whose class was replaced", - "title": "Event emitter", - "type": "object", - "properties": { - "contract_address": { - "title": "Contract address", - "description": "The address of the contract whose class was replaced", - "$ref": "#/components/schemas/ADDRESS" - }, - "class_hash": { - "title": "Class hash", - "description": "The new class hash", - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "nonces": { - "title": "Nonces", - "type": "array", - "items": { - "title": "Event emitter", - "description": "The updated nonce per contract address", - "type": "object", - "properties": { - "contract_address": { - "title": "Contract address", - "description": "The address of the contract", - "$ref": "#/components/schemas/ADDRESS" - }, - "nonce": { - "title": "Nonce", - "description": "The nonce for the given address at the end of the block", - "$ref": "#/components/schemas/FELT" - } - } - } - } - }, - "required": [ - "storage_diffs", - "deprecated_declared_classes", - "declared_classes", - "replaced_classes", - "deployed_contracts", - "nonces" - ] - } - }, - "required": [ - "old_root", - "state_diff" - ] - }, - "ADDRESS": { - "title": "Address", - "$ref": "#/components/schemas/FELT" - }, - "STORAGE_KEY": { - "type": "string", - "title": "Storage key", - "$comment": "A storage key, represented as a string of hex digits", - "description": "A storage key. Represented as up to 62 hex digits, 3 bits, and 5 leading zeroes.", - "pattern": "^0x0[0-7]{1}[a-fA-F0-9]{0,62}$" - }, - "ETH_ADDRESS": { - "title": "Ethereum address", - "type": "string", - "$comment": "An ethereum address", - "description": "an ethereum address represented as 40 hex digits", - "pattern": "^0x[a-fA-F0-9]{40}$" - }, - "TXN_HASH": { - "$ref": "#/components/schemas/FELT", - "description": "The transaction hash, as assigned in StarkNet", - "title": "Transaction hash" - }, - "FELT": { - "type": "string", - "title": "Field element", - "description": "A field element. represented by at most 63 hex digits", - "pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$" - }, - "BLOCK_NUMBER": { - "title": "Block number", - "description": "The block's number (its height)", - "type": "integer", - "minimum": 0 - }, - "BLOCK_HASH": { - "title": "Block hash", - "$ref": "#/components/schemas/FELT" - }, - "BLOCK_BODY_WITH_TX_HASHES": { - "title": "Block body with transaction hashes", - "type": "object", - "properties": { - "transactions": { - "title": "Transaction", - "description": "The hashes of the transactions included in this block", - "type": "array", - "items": { - "description": "The hash of a single transaction", - "$ref": "#/components/schemas/TXN_HASH" - } - } - }, - "required": [ - "transactions" - ] - }, - "BLOCK_BODY_WITH_TXS": { - "title": "Block body with transactions", - "type": "object", - "properties": { - "transactions": { - "title": "Transactions", - "description": "The transactions in this block", - "type": "array", - "items": { - "$ref": "#/components/schemas/TXN" - } - } - }, - "required": [ - "transactions" - ] - }, - "BLOCK_HEADER": { - "title": "Block header", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "parent_hash": { - "title": "Parent hash", - "description": "The hash of this block's parent", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "description": "The block number (its height)", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "new_root": { - "title": "New root", - "description": "The new global state root", - "$ref": "#/components/schemas/FELT" - }, - "timestamp": { - "title": "Timestamp", - "description": "The time in which the block was created, encoded in Unix time", - "type": "integer", - "minimum": 0 - }, - "sequencer_address": { - "title": "Sequencer address", - "description": "The StarkNet identity of the sequencer submitting this block", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "block_hash", - "parent_hash", - "block_number", - "new_root", - "timestamp", - "sequencer_address" - ] - }, - "BLOCK_WITH_TX_HASHES": { - "title": "Block with transaction hashes", - "description": "The block object", - "allOf": [ - { - "title": "Event emitter", - "type": "object", - "properties": { - "status": { - "title": "Status", - "$ref": "#/components/schemas/BLOCK_STATUS" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Block header", - "$ref": "#/components/schemas/BLOCK_HEADER" - }, - { - "title": "Block body with transaction hashes", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TX_HASHES" - } - ] - }, - "BLOCK_WITH_TXS": { - "title": "Block with transactions", - "description": "The block object", - "allOf": [ - { - "title": "Event emitter", - "type": "object", - "properties": { - "status": { - "title": "Status", - "$ref": "#/components/schemas/BLOCK_STATUS" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Block header", - "$ref": "#/components/schemas/BLOCK_HEADER" - }, - { - "title": "Block body with transactions", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TXS" - } - ] - }, - "PENDING_BLOCK_WITH_TX_HASHES": { - "title": "Pending block with transaction hashes", - "description": "The dynamic block being constructed by the sequencer. Note that this object will be deprecated upon decentralization.", - "allOf": [ - { - "title": "Block body with transactions hashes", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TX_HASHES" - }, - { - "title": "Event emitter", - "type": "object", - "properties": { - "timestamp": { - "title": "Timestamp", - "description": "The time in which the block was created, encoded in Unix time", - "type": "integer", - "minimum": 0 - }, - "sequencer_address": { - "title": "Sequencer address", - "description": "The StarkNet identity of the sequencer submitting this block", - "$ref": "#/components/schemas/FELT" - }, - "parent_hash": { - "title": "Parent hash", - "description": "The hash of this block's parent", - "$ref": "#/components/schemas/BLOCK_HASH" - } - } - } - ] - }, - "PENDING_BLOCK_WITH_TXS": { - "title": "Pending block with transactions", - "description": "The dynamic block being constructed by the sequencer. Note that this object will be deprecated upon decentralization.", - "allOf": [ - { - "title": "Block body with transactions", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TXS" - }, - { - "type": "object", - "title": "Event emitter", - "properties": { - "timestamp": { - "title": "Timestamp", - "description": "The time in which the block was created, encoded in Unix time", - "type": "integer", - "minimum": 0 - }, - "sequencer_address": { - "title": "Sequencer address", - "description": "The StarkNet identity of the sequencer submitting this block", - "$ref": "#/components/schemas/FELT" - }, - "parent_hash": { - "title": "Parent hash", - "description": "The hash of this block's parent", - "$ref": "#/components/schemas/BLOCK_HASH" - } - } - } - ] - }, - "DEPLOYED_CONTRACT_ITEM": { - "title": "Deployed contract item", - "type": "object", - "properties": { - "address": { - "title": "Address", - "description": "The address of the contract", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the contract code", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "address", - "class_hash" - ] - }, - "CONTRACT_STORAGE_DIFF_ITEM": { - "title": "Contract storage diff item", - "type": "object", - "properties": { - "address": { - "title": "Address", - "description": "The contract address for which the storage changed", - "$ref": "#/components/schemas/FELT" - }, - "storage_entries": { - "title": "Storage entries", - "description": "The changes in the storage of the contract", - "type": "array", - "items": { - "title": "Event emitter", - "type": "object", - "properties": { - "key": { - "title": "Key", - "description": "The key of the changed value", - "$ref": "#/components/schemas/FELT" - }, - "value": { - "title": "Value", - "description": "The new value applied to the given address", - "$ref": "#/components/schemas/FELT" - } - } - } - } - }, - "required": [ - "address", - "storage_entries" - ] - }, - "TXN": { - "title": "Transaction", - "description": "The transaction schema, as it appears inside a block", - "oneOf": [ - { - "title": "Invoke transaction", - "$ref": "#/components/schemas/INVOKE_TXN" - }, - { - "title": "L1 handler transaction", - "$ref": "#/components/schemas/L1_HANDLER_TXN" - }, - { - "title": "Declare transaction", - "$ref": "#/components/schemas/DECLARE_TXN" - }, - { - "title": "Deploy transaction", - "$ref": "#/components/schemas/DEPLOY_TXN" - }, - { - "title": "Deploy account transaction", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN" - } - ] - }, - "BROADCASTED_TXN": { - "title": "Broadcasted transaction", - "description": "the transaction's representation when it's sent to the sequencer (but not yet in a block)", - "oneOf": [ - { - "title": "Broadcasted invoke transaction", - "$ref": "#/components/schemas/BROADCASTED_INVOKE_TXN" - }, - { - "title": "Broadcasted declare transaction", - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN" - }, - { - "title": "Broadcasted deploy account transaction", - "$ref": "#/components/schemas/BROADCASTED_DEPLOY_ACCOUNT_TXN" - } - ] - }, - "SIGNATURE": { - "title": "Signature", - "description": "A transaction signature", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "BROADCASTED_TXN_COMMON_PROPERTIES": { - "title": "Broadcasted transaction common properties", - "type": "object", - "description": "common properties of a transaction that is sent to the sequencer (but is not yet in a block)", - "properties": { - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "max_fee", - "version", - "signature", - "nonce" - ] - }, - "COMMON_TXN_PROPERTIES": { - "title": "Common transaction properties", - "allOf": [ - { - "type": "object", - "title": "Transaction hash", - "properties": { - "transaction_hash": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH", - "description": "The hash identifying the transaction" - } - }, - "required": [ - "transaction_hash" - ] - }, - { - "title": "Broadcasted transaction common properties", - "$ref": "#/components/schemas/BROADCASTED_TXN_COMMON_PROPERTIES" - } - ] - }, - "DECLARE_TXN": { - "title": "Declare transaction", - "oneOf": [ - { - "title": "Declare transaction V1", - "$ref": "#/components/schemas/DECLARE_TXN_V1" - }, - { - "title": "Declare transaction V2", - "$ref": "#/components/schemas/DECLARE_TXN_V2" - } - ] - }, - "DECLARE_TXN_V1": { - "title": "Declare Contract Transaction V1", - "description": "Declare Contract Transaction V1", - "allOf": [ - { - "title": "Common transaction properties", - "$ref": "#/components/schemas/COMMON_TXN_PROPERTIES" - }, - { - "type": "object", - "title": "Event emitter", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - } - }, - "required": [ - "type", - "class_hash", - "sender_address" - ] - } - ] - }, - "DECLARE_TXN_V2": { - "title": "Declare Transaction V2", - "description": "Declare Contract Transaction V2", - "allOf": [ - { - "title": "Declare transaction V1", - "$ref": "#/components/schemas/DECLARE_TXN_V1" - }, - { - "type": "object", - "title": "Event emitter", - "properties": { - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The hash of the Cairo assembly resulting from the Sierra compilation", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "compiled_class_hash" - ] - } - ] - }, - "BROADCASTED_DECLARE_TXN": { - "title": "Broadcasted declare transaction", - "oneOf": [ - { - "title": "Broadcasted declare transaction V1", - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN_V1" - }, - { - "title": "Broadcasted declare transaction V2", - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN_V2" - } - ] - }, - "BROADCASTED_DECLARE_TXN_V1": { - "title": "Broadcasted declare transaction V1", - "description": "mempool representation of a declare transaction", - "allOf": [ - { - "title": "Broadcasted transaction common properties", - "$ref": "#/components/schemas/BROADCASTED_TXN_COMMON_PROPERTIES" - }, - { - "type": "object", - "title": "Declare v1", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "contract_class": { - "title": "Contract class", - "description": "The class to be declared", - "$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS" - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - } - } - } - ] - }, - "BROADCASTED_DECLARE_TXN_V2": { - "title": "Broadcasted declare transaction V2", - "description": "mempool representation of a declare transaction V2", - "allOf": [ - { - "title": "Broadcasted transaction common properties", - "$ref": "#/components/schemas/BROADCASTED_TXN_COMMON_PROPERTIES" - }, - { - "type": "object", - "title": "Event emitter", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "contract_class": { - "title": "Contract class", - "description": "The class to be declared", - "$ref": "#/components/schemas/CONTRACT_CLASS" - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The hash of the Cairo assembly resulting from the Sierra compilation", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "contract_class", - "sender_address", - "compiled_class_hash" - ] - } - ] - }, - "DEPLOY_ACCOUNT_TXN": { - "title": "Deploy account transaction", - "description": "Deploys an account contract, charges fee from the pre-funded account addresses", - "allOf": [ - { - "title": "Common transaction properties", - "$ref": "#/components/schemas/COMMON_TXN_PROPERTIES" - }, - { - "title": "Deploy account transaction properties", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN_PROPERTIES" - } - ] - }, - "BROADCASTED_DEPLOY_ACCOUNT_TXN": { - "title": "Broadcasted deploy account transaction", - "description": "Mempool representation of a deploy account transaction", - "allOf": [ - { - "title": "Broadcasted transaction common properties", - "$ref": "#/components/schemas/BROADCASTED_TXN_COMMON_PROPERTIES" - }, - { - "title": "Deploy account transaction properties", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN_PROPERTIES" - } - ] - }, - "DEPLOY_ACCOUNT_TXN_PROPERTIES": { - "title": "Deploy account transaction properties", - "type": "object", - "properties": { - "type": { - "title": "Deploy account", - "type": "string", - "enum": [ - "DEPLOY_ACCOUNT" - ] - }, - "contract_address_salt": { - "title": "Contract address salt", - "description": "The salt for the address of the deployed contract", - "$ref": "#/components/schemas/FELT" - }, - "constructor_calldata": { - "type": "array", - "description": "The parameters passed to the constructor", - "title": "Constructor calldata", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the deployed contract's class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "contract_address_salt", - "constructor_calldata", - "class_hash" - ] - }, - "DEPLOY_TXN": { - "title": "Deploy Contract Transaction", - "description": "The structure of a deploy transaction. Note that this transaction type is deprecated and will no longer be supported in future versions", - "allOf": [ - { - "type": "object", - "title": "Event emitter", - "properties": { - "transaction_hash": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH", - "description": "The hash identifying the transaction" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the deployed contract's class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "transaction_hash", - "class_hash" - ] - }, - { - "title": "Deploy transaction properties", - "$ref": "#/components/schemas/DEPLOY_TXN_PROPERTIES" - } - ] - }, - "DEPLOY_TXN_PROPERTIES": { - "title": "Deploy transaction properties", - "type": "object", - "properties": { - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "type": { - "title": "Deploy", - "type": "string", - "enum": [ - "DEPLOY" - ] - }, - "contract_address_salt": { - "description": "The salt for the address of the deployed contract", - "title": "Contract address salt", - "$ref": "#/components/schemas/FELT" - }, - "constructor_calldata": { - "type": "array", - "title": "Constructor calldata", - "description": "The parameters passed to the constructor", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "version", - "type", - "contract_address_salt", - "constructor_calldata" - ] - }, - "INVOKE_TXN_V0": { - "title": "Invoke transaction V0", - "description": "invokes a specific function in the desired contract (not necessarily an account)", - "$ref": "#/components/schemas/FUNCTION_CALL" - }, - "INVOKE_TXN_V1": { - "title": "Invoke transaction V1", - "description": "initiates a transaction from a given account", - "type": "object", - "properties": { - "sender_address": { - "title": "sender address", - "$ref": "#/components/schemas/ADDRESS" - }, - "calldata": { - "type": "array", - "title": "calldata", - "description": "The data expected by the account's `execute` function (in most usecases, this includes the called contract address and a function selector)", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "sender_address", - "calldata" - ] - }, - "INVOKE_TXN": { - "title": "Invoke transaction", - "description": "Initiate a transaction from an account", - "allOf": [ - { - "title": "Common transaction properties", - "$ref": "#/components/schemas/COMMON_TXN_PROPERTIES" - }, - { - "type": "object", - "title": "Type", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - } - }, - "required": [ - "type" - ] - }, - { - "title": "Invoke transaction properties", - "oneOf": [ - { - "title": "Invoke transaction V0", - "$ref": "#/components/schemas/INVOKE_TXN_V0" - }, - { - "title": "Invoke transaction V1", - "$ref": "#/components/schemas/INVOKE_TXN_V1" - } - ] - } - ] - }, - "BROADCASTED_INVOKE_TXN": { - "title": "Broadcasted invoke transaction", - "description": "mempool representation of an invoke transaction", - "allOf": [ - { - "title": "Broadcasted transaction common properties", - "$ref": "#/components/schemas/BROADCASTED_TXN_COMMON_PROPERTIES" - }, - { - "title": "Event emitter", - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - } - }, - "required": [ - "type" - ] - }, - { - "title": "Invoke transaction properties", - "oneOf": [ - { - "title": "Invoke transaction V0", - "$ref": "#/components/schemas/INVOKE_TXN_V0" - }, - { - "title": "Invoke transaction V1", - "$ref": "#/components/schemas/INVOKE_TXN_V1" - } - ] - } - ] - }, - "L1_HANDLER_TXN": { - "title": "L1 Handler transaction", - "allOf": [ - { - "type": "object", - "title": "L1 handler transaction", - "description": "a call to an l1_handler on an L2 contract induced by a message from L1", - "properties": { - "transaction_hash": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH", - "description": "The hash identifying the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "type": { - "title": "type", - "type": "string", - "enum": [ - "L1_HANDLER" - ] - }, - "nonce": { - "title": "Nonce", - "description": "The L1->L2 message nonce field of the SN Core L1 contract at the time the transaction was sent", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": [ - "transaction_hash", - "version", - "type", - "nonce" - ] - }, - { - "title": "Function call", - "$ref": "#/components/schemas/FUNCTION_CALL" - } - ] - }, - "COMMON_RECEIPT_PROPERTIES": { - "title": "Common receipt properties", - "description": "Common properties for a transaction receipt", - "type": "object", - "properties": { - "transaction_hash": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH", - "description": "The hash identifying the transaction" - }, - "actual_fee": { - "title": "Actual fee", - "$ref": "#/components/schemas/FELT", - "description": "The fee that was charged by the sequencer" - }, - "status": { - "title": "Status", - "$ref": "#/components/schemas/TXN_STATUS" - }, - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "messages_sent": { - "type": "array", - "title": "Messages sent", - "items": { - "$ref": "#/components/schemas/MSG_TO_L1" - } - }, - "events": { - "description": "The events emitted as part of this transaction", - "title": "Events", - "type": "array", - "items": { - "$ref": "#/components/schemas/EVENT" - } - } - }, - "required": [ - "transaction_hash", - "actual_fee", - "status", - "block_hash", - "block_number", - "messages_sent", - "events" - ] - }, - "INVOKE_TXN_RECEIPT": { - "title": "Invoke Transaction Receipt", - "allOf": [ - { - "title": "Type", - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - } - }, - "required": [ - "type" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "DECLARE_TXN_RECEIPT": { - "title": "Declare Transaction Receipt", - "allOf": [ - { - "title": "Event emitter", - "type": "object", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - } - }, - "required": [ - "type" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "DEPLOY_ACCOUNT_TXN_RECEIPT": { - "title": "Deploy Account Transaction Receipt", - "allOf": [ - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - }, - { - "title": "Event emitter", - "type": "object", - "properties": { - "type": { - "title": "Deploy account", - "type": "string", - "enum": [ - "DEPLOY_ACCOUNT" - ] - }, - "contract_address": { - "title": "Contract address", - "description": "The address of the deployed contract", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "contract_address" - ] - } - ] - }, - "DEPLOY_TXN_RECEIPT": { - "title": "Deploy Transaction Receipt", - "allOf": [ - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - }, - { - "title": "Event emitter", - "type": "object", - "properties": { - "type": { - "title": "Deploy", - "type": "string", - "enum": [ - "DEPLOY" - ] - }, - "contract_address": { - "title": "Contract address", - "description": "The address of the deployed contract", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "contract_address" - ] - } - ] - }, - "L1_HANDLER_TXN_RECEIPT": { - "title": "L1 Handler Transaction Receipt", - "description": "receipt for l1 handler transaction", - "allOf": [ - { - "title": "Event emitter", - "type": "object", - "properties": { - "type": { - "title": "type", - "type": "string", - "enum": [ - "L1_HANDLER" - ] - } - }, - "required": [ - "type" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "TXN_RECEIPT": { - "title": "Transaction Receipt", - "oneOf": [ - { - "title": "Invoke transaction receipt", - "$ref": "#/components/schemas/INVOKE_TXN_RECEIPT" - }, - { - "title": "L1 handler transaction receipt", - "$ref": "#/components/schemas/L1_HANDLER_TXN_RECEIPT" - }, - { - "title": "Declare transaction receipt", - "$ref": "#/components/schemas/DECLARE_TXN_RECEIPT" - }, - { - "title": "Deploy transaction receipt", - "$ref": "#/components/schemas/DEPLOY_TXN_RECEIPT" - }, - { - "title": "Deploy account transaction receipt", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN_RECEIPT" - }, - { - "title": "Pending transaction receipt", - "$ref": "#/components/schemas/PENDING_TXN_RECEIPT" - } - ] - }, - "PENDING_COMMON_RECEIPT_PROPERTIES": { - "title": "Pending common receipt properties", - "description": "Common properties for a pending transaction receipt", - "type": "object", - "properties": { - "transaction_hash": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH", - "description": "The hash identifying the transaction" - }, - "actual_fee": { - "title": "Actual fee", - "$ref": "#/components/schemas/FELT", - "description": "The fee that was charged by the sequencer" - }, - "type": { - "title": "Transaction type", - "$ref": "#/components/schemas/TXN_TYPE" - }, - "messages_sent": { - "type": "array", - "title": "Messages sent", - "items": { - "$ref": "#/components/schemas/MSG_TO_L1" - } - }, - "events": { - "description": "The events emitted as part of this transaction", - "title": "Events", - "type": "array", - "items": { - "$ref": "#/components/schemas/EVENT" - } - } - }, - "required": [ - "transaction_hash", - "actual_fee", - "type", - "messages_sent", - "events" - ] - }, - "PENDING_DEPLOY_TXN_RECEIPT": { - "title": "Pending deploy Transaction Receipt", - "allOf": [ - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/PENDING_COMMON_RECEIPT_PROPERTIES" - }, - { - "type": "object", - "title": "Event emitter", - "properties": { - "contract_address": { - "title": "Contract address", - "description": "The address of the deployed contract", - "$ref": "#/components/schemas/FELT" - } - } - } - ] - }, - "PENDING_TXN_RECEIPT": { - "title": "Pending Transaction Receipt", - "oneOf": [ - { - "title": "Pending deploy transaction receipt", - "$ref": "#/components/schemas/PENDING_DEPLOY_TXN_RECEIPT" - }, - { - "title": "Pending common receipt properties", - "$comment": "Used for pending invoke and declare transaction receipts", - "$ref": "#/components/schemas/PENDING_COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "MSG_TO_L1": { - "title": "Message to L1", - "type": "object", - "properties": { - "from_address": { - "description": "The address of the L2 contract sending the message", - "$ref": "#/components/schemas/FELT" - }, - "to_address": { - "title": "To address", - "description": "The target L1 address the message is sent to", - "$ref": "#/components/schemas/FELT" - }, - "payload": { - "description": "The payload of the message", - "title": "Payload", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "from_address", - "to_address", - "payload" - ] - }, - "TXN_STATUS": { - "title": "Transaction status", - "type": "string", - "enum": [ - "PENDING", - "ACCEPTED_ON_L2", - "ACCEPTED_ON_L1", - "REJECTED" - ], - "description": "The status of the transaction" - }, - "TXN_TYPE": { - "title": "Transaction type", - "type": "string", - "enum": [ - "DECLARE", - "DEPLOY", - "DEPLOY_ACCOUNT", - "INVOKE", - "L1_HANDLER" - ], - "description": "The type of the transaction" - }, - "BLOCK_STATUS": { - "title": "Block status", - "type": "string", - "enum": [ - "PENDING", - "ACCEPTED_ON_L2", - "ACCEPTED_ON_L1", - "REJECTED" - ], - "description": "The status of the block" - }, - "FUNCTION_CALL": { - "title": "Function call", - "type": "object", - "description": "Function call information", - "properties": { - "contract_address": { - "title": "Contract address", - "$ref": "#/components/schemas/ADDRESS" - }, - "entry_point_selector": { - "title": "Entry point selector", - "$ref": "#/components/schemas/FELT" - }, - "calldata": { - "title": "Calldata", - "type": "array", - "description": "The parameters passed to the function", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "contract_address", - "entry_point_selector", - "calldata" - ] - }, - "CONTRACT_CLASS": { - "title": "Contract class", - "type": "object", - "properties": { - "sierra_program": { - "title": "Sierra program", - "type": "array", - "description": "The list of Sierra instructions of which the program consists", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "contract_class_version": { - "title": "Contract class version", - "type": "string", - "description": "The version of the contract class object. Currently, the Starknet OS supports version 0.1.0" - }, - "entry_points_by_type": { - "title": "Entry points by type", - "type": "object", - "properties": { - "CONSTRUCTOR": { - "type": "array", - "title": "Constructor", - "items": { - "$ref": "#/components/schemas/SIERRA_ENTRY_POINT" - } - }, - "EXTERNAL": { - "title": "External", - "type": "array", - "items": { - "$ref": "#/components/schemas/SIERRA_ENTRY_POINT" - } - }, - "L1_HANDLER": { - "title": "L1 handler", - "type": "array", - "items": { - "$ref": "#/components/schemas/SIERRA_ENTRY_POINT" - } - } - }, - "required": [ - "CONSTRUCTOR", - "EXTERNAL", - "L1_HANDLER" - ] - }, - "abi": { - "title": "ABI", - "type": "string", - "description": "The class ABI, as supplied by the user declaring the class" - } - }, - "required": [ - "sierra_program", - "contract_class_version", - "entry_points_by_type" - ] - }, - "DEPRECATED_CONTRACT_CLASS": { - "title": "Deprecated contract class", - "description": "The definition of a StarkNet contract class", - "type": "object", - "properties": { - "program": { - "type": "string", - "title": "Program", - "description": "A base64 representation of the compressed program code", - "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$" - }, - "entry_points_by_type": { - "type": "object", - "title": "Deprecated entry points by type", - "properties": { - "CONSTRUCTOR": { - "type": "array", - "title": "Deprecated constructor", - "items": { - "$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - }, - "EXTERNAL": { - "type": "array", - "title": "Deprecated external", - "items": { - "$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - }, - "L1_HANDLER": { - "type": "array", - "title": "Deprecated L1 handler", - "items": { - "$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - } - } - }, - "abi": { - "title": "Contract ABI", - "$ref": "#/components/schemas/CONTRACT_ABI" - } - }, - "required": [ - "program", - "entry_points_by_type" - ] - }, - "DEPRECATED_CAIRO_ENTRY_POINT": { - "title": "Deprecated Cairo entry point", - "type": "object", - "properties": { - "offset": { - "title": "Offset", - "description": "The offset of the entry point in the program", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "selector": { - "title": "Selector", - "description": "A unique identifier of the entry point (function) in the program", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "offset", - "selector" - ] - }, - "SIERRA_ENTRY_POINT": { - "title": "Sierra entry point", - "type": "object", - "properties": { - "selector": { - "title": "Selector", - "description": "A unique identifier of the entry point (function) in the program", - "$ref": "#/components/schemas/FELT" - }, - "function_idx": { - "title": "Function index", - "description": "The index of the function in the program", - "type": "integer" - } - }, - "required": [ - "selector", - "function_idx" - ] - }, - "CONTRACT_ABI": { - "title": "Contract ABI", - "type": "array", - "items": { - "$ref": "#/components/schemas/CONTRACT_ABI_ENTRY" - } - }, - "CONTRACT_ABI_ENTRY": { - "title": "Contract ABI entry", - "oneOf": [ - { - "title": "Function ABI entry", - "$ref": "#/components/schemas/FUNCTION_ABI_ENTRY" - }, - { - "title": "Event ABI entry", - "$ref": "#/components/schemas/EVENT_ABI_ENTRY" - }, - { - "title": "Struct ABI entry", - "$ref": "#/components/schemas/STRUCT_ABI_ENTRY" - } - ] - }, - "STRUCT_ABI_TYPE": { - "title": "Struct ABI type", - "type": "string", - "enum": [ - "struct" - ] - }, - "EVENT_ABI_TYPE": { - "title": "Event ABI type", - "type": "string", - "enum": [ - "event" - ] - }, - "FUNCTION_ABI_TYPE": { - "title": "Function ABI type", - "type": "string", - "enum": [ - "function", - "l1_handler", - "constructor" - ] - }, - "STRUCT_ABI_ENTRY": { - "title": "Struct ABI entry", - "type": "object", - "properties": { - "type": { - "title": "Struct ABI type", - "$ref": "#/components/schemas/STRUCT_ABI_TYPE" - }, - "name": { - "title": "Struct name", - "description": "The struct name", - "type": "string" - }, - "size": { - "title": "Size", - "type": "integer", - "minimum": 1 - }, - "members": { - "type": "array", - "title": "Members", - "items": { - "$ref": "#/components/schemas/STRUCT_MEMBER" - } - } - }, - "required": [ - "type", - "name", - "size", - "members" - ] - }, - "STRUCT_MEMBER": { - "title": "Struct member", - "allOf": [ - { - "title": "Typed parameter", - "$ref": "#/components/schemas/TYPED_PARAMETER" - }, - { - "type": "object", - "title": "Event emitter", - "properties": { - "offset": { - "title": "Offset", - "description": "offset of this property within the struct", - "type": "integer" - } - } - } - ], - "required": [ - "Typed parameter" - ] - }, - "EVENT_ABI_ENTRY": { - "title": "Event ABI entry", - "type": "object", - "properties": { - "type": { - "title": "Event ABI type", - "$ref": "#/components/schemas/EVENT_ABI_TYPE" - }, - "name": { - "title": "Event name", - "description": "The event name", - "type": "string" - }, - "keys": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - }, - "data": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - } - }, - "required": [ - "type", - "name", - "keys", - "data" - ] - }, - "FUNCTION_STATE_MUTABILITY": { - "title": "Function state mutability type", - "type": "string", - "enum": [ - "view" - ] - }, - "FUNCTION_ABI_ENTRY": { - "title": "Function ABI entry", - "type": "object", - "properties": { - "type": { - "title": "Function ABI type", - "$ref": "#/components/schemas/FUNCTION_ABI_TYPE" - }, - "name": { - "title": "Function name", - "description": "The function name", - "type": "string" - }, - "inputs": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - }, - "outputs": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - }, - "stateMutability": { - "title": "Function state mutability", - "$ref": "#/components/schemas/FUNCTION_STATE_MUTABILITY" - } - }, - "required": [ - "type", - "name", - "inputs", - "outputs" - ] - }, - "TYPED_PARAMETER": { - "title": "Typed parameter", - "type": "object", - "properties": { - "name": { - "title": "Parameter name", - "description": "The parameter's name", - "type": "string" - }, - "type": { - "title": "Parameter type", - "description": "The parameter's type", - "type": "string" - } - }, - "required": [ - "name", - "type" - ] - }, - "FEE_ESTIMATE": { - "title": "Fee estimation", - "type": "object", - "properties": { - "gas_consumed": { - "title": "Gas consumed", - "description": "The Ethereum gas cost of the transaction (see https://docs.starknet.io/learn/protocol/fees for more info)", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "gas_price": { - "title": "Gas price", - "description": "The gas price (in gwei) that was used in the cost estimation", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "overall_fee": { - "title": "Overall fee", - "description": "The estimated fee for the transaction (in gwei), product of gas_consumed and gas_price", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": [ - "gas_consumed", - "gas_price", - "overall_fee" - ] - } - }, - "errors": { - "FAILED_TO_RECEIVE_TXN": { - "code": 1, - "message": "Failed to write transaction" - }, - "CONTRACT_NOT_FOUND": { - "code": 20, - "message": "Contract not found" - }, - "BLOCK_NOT_FOUND": { - "code": 24, - "message": "Block not found" - }, - "TXN_HASH_NOT_FOUND": { - "code": 25, - "message": "Transaction hash not found" - }, - "INVALID_TXN_INDEX": { - "code": 27, - "message": "Invalid transaction index in a block" - }, - "CLASS_HASH_NOT_FOUND": { - "code": 28, - "message": "Class hash not found" - }, - "PAGE_SIZE_TOO_BIG": { - "code": 31, - "message": "Requested page size is too big" - }, - "NO_BLOCKS": { - "code": 32, - "message": "There are no blocks" - }, - "INVALID_CONTINUATION_TOKEN": { - "code": 33, - "message": "The supplied continuation token is invalid or unknown" - }, - "TOO_MANY_KEYS_IN_FILTER": { - "code": 34, - "message": "Too many keys provided in a filter" - }, - "CONTRACT_ERROR": { - "code": 40, - "message": "Contract error" - } - } - } -} \ No newline at end of file diff --git a/specs/rpc/v03/starknet_trace_api_openrpc.json b/specs/rpc/v03/starknet_trace_api_openrpc.json deleted file mode 100644 index be68f75dc1..0000000000 --- a/specs/rpc/v03/starknet_trace_api_openrpc.json +++ /dev/null @@ -1,366 +0,0 @@ -{ - "openrpc": "1.0.0-rc1", - "info": { - "version": "0.4.0", - "title": "StarkNet Trace API", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_traceTransaction", - "summary": "For a given executed transaction, return the trace of its execution, including internal calls", - "description": "Returns the execution trace of the transaction designated by the input hash", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the transaction to trace", - "required": true, - "schema": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "trace", - "description": "The function call trace of the transaction designated by the given hash", - "schema": { - "$ref": "#/components/schemas/TRANSACTION_TRACE" - } - }, - "errors": [ - { - "$ref": "#/components/errors/INVALID_TXN_HASH" - }, - { - "$ref": "#/components/errors/NO_TRACE_AVAILABLE" - } - ] - }, - { - "name": "starknet_simulateTransaction", - "summary": "simulate a given transaction on the requested state, and generate the execution trace", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "transaction", - "description": "The transaction to simulate", - "required": true, - "schema": { - "type": "array", - "description": "a sequence of transactions to simulate, running each transaction on the state resulting from applying all the previous ones", - "items": { - "$ref": "#/components/schemas/BROADCASTED_TXN" - } - } - }, - { - "name": "simulation_flags", - "description": "describes what parts of the transaction should be executed", - "required": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SIMULATION_FLAG" - } - } - } - ], - "result": { - "name": "simulated_transactions", - "description": "The execution trace and consumed resources of the required transactions", - "schema": { - "type": "array", - "items": { - "schema": { - "type": "object", - "properties": { - "transaction_trace": { - "title": "the transaction's trace", - "$ref": "#/components/schemas/TRANSACTION_TRACE" - }, - "fee_estimation": { - "title": "the transaction's resources and fee", - "$ref": "#/components/schemas/FEE_ESTIMATE" - } - } - } - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_traceBlockTransactions", - "summary": "Retrieve traces for all transactions in the given block", - "description": "Returns the execution traces of all transactions included in the given block", - "params": [ - { - "name": "block_hash", - "summary": "The hash of the requested block", - "required": true, - "schema": { - "$ref": "#/components/schemas/BLOCK_HASH" - } - } - ], - "result": { - "name": "traces", - "description": "The traces of all transactions in the block", - "schema": { - "type": "array", - "items": { - "type": "object", - "description": "A single pair of transaction hash and corresponding trace", - "properties": { - "transaction_hash": { - "$ref": "#/components/schemas/FELT" - }, - "trace_root": { - "$ref": "#/components/schemas/TRANSACTION_TRACE" - } - } - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/INVALID_BLOCK_HASH" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "TRANSACTION_TRACE": { - "oneOf": [ - { - "name": "INVOKE_TXN_TRACE", - "type": "object", - "description": "the execution trace of an invoke transaction", - "properties": { - "validate_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "execute_invocation": { - "description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)", - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "fee_transfer_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - } - } - }, - { - "name": "DECLARE_TXN_TRACE", - "type": "object", - "description": "the execution trace of a declare transaction", - "properties": { - "validate_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "fee_transfer_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - } - } - }, - { - "name": "DEPLOY_ACCOUNT_TXN_TRACE", - "type": "object", - "description": "the execution trace of a deploy account transaction", - "properties": { - "validate_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "constructor_invocation": { - "description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)", - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "fee_transfer_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - } - } - }, - { - "name": "L1_HANDLER_TXN_TRACE", - "type": "object", - "description": "the execution trace of an L1 handler transaction", - "properties": { - "function_invocation": { - "description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)", - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - } - } - } - ] - }, - "SIMULATION_FLAG": { - "type": "string", - "enum": [ - "SKIP_VALIDATE", - "SKIP_EXECUTE" - ], - "description": "Flags that indicate how to simulate a given transaction" - }, - "NESTED_CALL": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "FUNCTION_INVOCATION": { - "allOf": [ - { - "$ref": "#/components/schemas/FUNCTION_CALL" - }, - { - "type": "object", - "properties": { - "caller_address": { - "title": "Caller Address", - "description": "The address of the invoking contract. 0 for the root invocation", - "$ref": "#/components/schemas/FELT" - }, - "code_address": { - "title": "Code Address", - "description": "The address where the code for this contract is stored in the state", - "$ref": "#/components/schemas/FELT" - }, - "entry_point_type": { - "$ref": "#/components/schemas/ENTRY_POINT_TYPE" - }, - "call_type": { - "$ref": "#/components/schemas/CALL_TYPE" - }, - "result": { - "title": "Invocation Result", - "description": "The value returned from the function invocation", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "calls": { - "title": "Nested Calls", - "description": "The calls made by this invocation", - "type": "array", - "items": { - "$ref": "#/components/schemas/NESTED_CALL" - } - }, - "events": { - "title": "Invocation Events", - "description": "The events emitted in this invocation", - "type": "array", - "items": { - "$ref": "#/components/schemas/EVENT" - } - }, - "messages": { - "title": "L1 Messages", - "description": "The messages sent by this invocation to L1", - "type": "array", - "items": { - "$ref": "#/components/schemas/MSG_TO_L1" - } - } - } - } - ] - }, - "ENTRY_POINT_TYPE": { - "type": "string", - "enum": [ - "EXTERNAL", - "L1_HANDLER", - "CONSTRUCTOR" - ] - }, - "CALL_TYPE": { - "type": "string", - "enum": [ - "LIBRARY_CALL", - "CALL" - ] - }, - "FELT": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/FELT" - }, - "FUNCTION_CALL": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/FUNCTION_CALL" - }, - "EVENT": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/EVENT_CONTENT" - }, - "MSG_TO_L1": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/MSG_TO_L1" - }, - "BLOCK_HASH": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BLOCK_HASH" - }, - "BLOCK_ID": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BLOCK_ID" - }, - "BROADCASTED_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_TXN" - }, - "FEE_ESTIMATE": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/FEE_ESTIMATE" - } - }, - "errors": { - "NO_TRACE_AVAILABLE": { - "code": 10, - "message": "No trace available for transaction", - "data": { - "type": "object", - "description": "Extra information on why trace is not available. Either it wasn't executed yet (RECEIVED), or the transaction failed (REJECTED)", - "properties": { - "status": { - "type": "string", - "enum": [ - "RECEIVED", - "REJECTED" - ] - } - } - } - }, - "INVALID_BLOCK_HASH": { - "code": 24, - "message": "Invalid block hash" - }, - "INVALID_TXN_HASH": { - "code": 25, - "message": "Invalid transaction hash" - }, - "CONTRACT_NOT_FOUND": { - "code": 20, - "message": "Contract not found" - }, - "BLOCK_NOT_FOUND": { - "code": 24, - "message": "Block not found" - }, - "CONTRACT_ERROR": { - "code": 40, - "message": "Contract error" - } - } - } -} \ No newline at end of file diff --git a/specs/rpc/v03/starknet_write_api.json b/specs/rpc/v03/starknet_write_api.json deleted file mode 100644 index 4f0a8861e4..0000000000 --- a/specs/rpc/v03/starknet_write_api.json +++ /dev/null @@ -1,160 +0,0 @@ -{ - "openrpc": "1.0.0-rc1", - "info": { - "version": "0.4.0", - "title": "StarkNet Node Write API", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_addInvokeTransaction", - "summary": "Submit a new transaction to be added to the chain", - "params": [ - { - "name": "invoke_transaction", - "description": "The information needed to invoke the function (or account, for version 1 transactions)", - "required": true, - "schema": { - "$ref": "#/components/schemas/BROADCASTED_INVOKE_TXN" - } - } - ], - "result": { - "name": "result", - "description": "The result of the transaction submission", - "schema": { - "type": "object", - "properties": { - "transaction_hash": { - "title": "The hash of the invoke transaction", - "$ref": "#/components/schemas/TXN_HASH" - } - } - } - }, - "errors": [] - }, - { - "name": "starknet_addDeclareTransaction", - "summary": "Submit a new class declaration transaction", - "params": [ - { - "name": "declare_transaction", - "required": true, - "schema": { - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN" - } - } - ], - "result": { - "name": "result", - "description": "The result of the transaction submission", - "schema": { - "type": "object", - "properties": { - "transaction_hash": { - "title": "The hash of the declare transaction", - "$ref": "#/components/schemas/TXN_HASH" - }, - "class_hash": { - "title": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/INVALID_CONTRACT_CLASS" - }, - { - "$ref": "#/components/errors/CLASS_ALREADY_DECLARED" - } - ] - }, - { - "name": "starknet_addDeployAccountTransaction", - "summary": "Submit a new deploy account transaction", - "params": [ - { - "name": "deploy_account_transaction", - "description": "The deploy account transaction", - "required": true, - "schema": { - "$ref": "#/components/schemas/BROADCASTED_DEPLOY_ACCOUNT_TXN" - } - } - ], - "result": { - "name": "result", - "description": "The result of the transaction submission", - "schema": { - "type": "object", - "properties": { - "transaction_hash": { - "title": "The hash of the deploy transaction", - "$ref": "#/components/schemas/TXN_HASH" - }, - "contract_address": { - "title": "The address of the new contract", - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/CLASS_HASH_NOT_FOUND" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "CONTRACT_CLASS": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/CONTRACT_CLASS" - }, - "NUM_AS_HEX": { - "title": "An integer number in hex format (0x...)", - "type": "string", - "pattern": "^0x[a-fA-F0-9]+$" - }, - "SIGNATURE": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/SIGNATURE" - }, - "FELT": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/FELT" - }, - "TXN_HASH": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/TXN_HASH" - }, - "BROADCASTED_INVOKE_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_INVOKE_TXN" - }, - "BROADCASTED_DECLARE_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_DECLARE_TXN" - }, - "BROADCASTED_DEPLOY_ACCOUNT_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_DEPLOY_ACCOUNT_TXN" - }, - "FUNCTION_CALL": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/FUNCTION_CALL" - } - }, - "errors": { - "INVALID_CONTRACT_CLASS": { - "code": 50, - "message": "Invalid contract class" - }, - "CLASS_HASH_NOT_FOUND": { - "$ref": "./api/starknet_api_openrpc.json#/components/errors/CLASS_HASH_NOT_FOUND" - }, - "CLASS_ALREADY_DECLARED": { - "code": 51, - "message": "Class already declared" - } - } - } -} \ No newline at end of file diff --git a/specs/rpc/v04/starknet_api_openrpc.json b/specs/rpc/v04/starknet_api_openrpc.json deleted file mode 100644 index ae45121377..0000000000 --- a/specs/rpc/v04/starknet_api_openrpc.json +++ /dev/null @@ -1,3025 +0,0 @@ -{ - "openrpc": "1.0.0-rc1", - "info": { - "version": "0.4.0", - "title": "StarkNet Node API", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_getBlockWithTxHashes", - "summary": "Get block information with transaction hashes given the block id", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The resulting block information with transaction hashes", - "schema": { - "title": "Starknet get block hash with tx hashes result", - "oneOf": [ - { - "title": "Block with transaction hashes", - "$ref": "#/components/schemas/BLOCK_WITH_TX_HASHES" - }, - { - "title": "Pending block with transaction hashes", - "$ref": "#/components/schemas/PENDING_BLOCK_WITH_TX_HASHES" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getBlockWithTxs", - "summary": "Get block information with full transactions given the block id", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The resulting block information with full transactions", - "schema": { - "title": "Starknet get block with txs result", - "oneOf": [ - { - "title": "Block with transactions", - "$ref": "#/components/schemas/BLOCK_WITH_TXS" - }, - { - "title": "Pending block with transactions", - "$ref": "#/components/schemas/PENDING_BLOCK_WITH_TXS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getStateUpdate", - "summary": "Get the information about the result of executing the requested block", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The information about the state update of the requested block", - "schema": { - "title": "Starknet get state update result", - "oneOf": [ - { - "title": "State update", - "$ref": "#/components/schemas/STATE_UPDATE" - }, - { - "title": "Pending state update", - "$ref": "#/components/schemas/PENDING_STATE_UPDATE" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getStorageAt", - "summary": "Get the value of the storage at the given address and key", - "params": [ - { - "name": "contract_address", - "description": "The address of the contract to read from", - "summary": "The address of the contract to read from", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - }, - { - "name": "key", - "description": "The key to the storage value for the given contract", - "summary": "The key to the storage value for the given contract", - "required": true, - "schema": { - "title": "Storage key", - "$ref": "#/components/schemas/STORAGE_KEY" - } - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The value at the given key for the given contract. 0 if no value is found", - "summary": "The value at the given key for the given contract.", - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getTransactionByHash", - "summary": "Get the details and status of a submitted transaction", - "paramStructure": "by-name", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the requested transaction", - "required": true, - "schema": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "result", - "schema": { - "title": "Transaction", - "allOf": [ - { - "$ref": "#/components/schemas/TXN" - }, - { - "type": "object", - "properties": { - "transaction_hash": { - "title": "transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "transaction_hash" - ] - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getTransactionByBlockIdAndIndex", - "summary": "Get the details of a transaction by a given block id and index", - "description": "Get the details of the transaction given by the identified block and index in that block. If no transaction is found, null is returned.", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "index", - "summary": "The index in the block to search for the transaction", - "required": true, - "schema": { - "title": "Index", - "type": "integer", - "minimum": 0 - } - } - ], - "result": { - "name": "transactionResult", - "schema": { - "title": "Transaction", - "allOf": [ - { - "$ref": "#/components/schemas/TXN" - }, - { - "type": "object", - "properties": { - "transaction_hash": { - "title": "transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "transaction_hash" - ] - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/INVALID_TXN_INDEX" - } - ] - }, - { - "name": "starknet_getTransactionReceipt", - "summary": "Get the transaction receipt by the transaction hash", - "paramStructure": "by-name", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the requested transaction", - "required": true, - "schema": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "result", - "schema": { - "title": "Transaction receipt", - "$ref": "#/components/schemas/TXN_RECEIPT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getClass", - "summary": "Get the contract class definition in the given block associated with the given hash", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "class_hash", - "description": "The hash of the requested contract class", - "required": true, - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - } - ], - "result": { - "name": "result", - "description": "The contract class, if found", - "schema": { - "title": "Starknet get class result", - "oneOf": [ - { - "title": "Deprecated contract class", - "$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS" - }, - { - "title": "Contract class", - "$ref": "#/components/schemas/CONTRACT_CLASS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CLASS_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getClassHashAt", - "summary": "Get the contract class hash in the given block for the contract deployed at the given address", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "contract_address", - "description": "The address of the contract whose class hash will be returned", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - } - ], - "result": { - "name": "result", - "description": "The class hash of the given contract", - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getClassAt", - "summary": "Get the contract class definition in the given block at the given address", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "contract_address", - "description": "The address of the contract whose class definition will be returned", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - } - ], - "result": { - "name": "result", - "description": "The contract class", - "schema": { - "title": "Starknet get class at result", - "oneOf": [ - { - "title": "Deprecated contract class", - "$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS" - }, - { - "title": "Contract class", - "$ref": "#/components/schemas/CONTRACT_CLASS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getBlockTransactionCount", - "summary": "Get the number of transactions in a block given a block id", - "description": "Returns the number of transactions in the designated block.", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The number of transactions in the designated block", - "summary": "The number of transactions in the designated block", - "schema": { - "title": "Block transaction count", - "type": "integer", - "minimum": 0 - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_call", - "summary": "call a starknet function without creating a StarkNet transaction", - "description": "Calls a function in a contract and returns the return value. Using this call will not create a transaction; hence, will not change the state", - "params": [ - { - "name": "request", - "summary": "The details of the function call", - "schema": { - "title": "Function call", - "$ref": "#/components/schemas/FUNCTION_CALL" - }, - "required": true - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "summary": "The function's return value", - "description": "The function's return value, as defined in the Cairo output", - "schema": { - "type": "array", - "title": "Field element", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_estimateFee", - "summary": "estimate the fee for of StarkNet transactions", - "description": "estimates the resources required by transactions when applied on a given state", - "params": [ - { - "name": "request", - "summary": "The transaction to estimate", - "schema": { - "type": "array", - "description": "a sequence of transactions to estimate, running each transaction on the state resulting from applying all the previous ones", - "title": "Transaction", - "items": { - "oneOf": [ - { - "title": "Declare transaction", - "$ref": "#/components/schemas/DECLARE_TXN" - }, - { - "title": "Invoke transaction", - "$ref": "#/components/schemas/INVOKE_TXN" - }, - { - "title": "Deploy account transaction", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN" - } - ] - } - }, - "required": true - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "the fee estimations", - "schema": { - "title": "Estimation", - "type": "array", - "description": "a sequence of fee estimation where the i'th estimate corresponds to the i'th transaction", - "items": { - "$ref": "#/components/schemas/FEE_ESTIMATE" - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_estimateMessageFee", - "summary": "estimate the L2 fee of a message sent on L1", - "description": "estimates the resources required by the l1_handler transaction induced by the message", - "params": [ - { - "name": "message", - "description": "the message's parameters", - "schema": { - "$ref": "#/components/schemas/MSG_FROM_L1" - }, - "required": true - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "the fee estimation", - "schema": { - "$ref": "#/components/schemas/FEE_ESTIMATE" - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_blockNumber", - "summary": "Get the most recent accepted block number", - "params": [], - "result": { - "name": "result", - "description": "The latest block number", - "schema": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "errors": [ - { - "$ref": "#/components/errors/NO_BLOCKS" - } - ] - }, - { - "name": "starknet_blockHashAndNumber", - "summary": "Get the most recent accepted block hash and number", - "params": [], - "result": { - "name": "result", - "description": "The latest block hash and number", - "schema": { - "title": "Starknet block hash and number result", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "required": [ - "block_hash", - "block_number" - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/NO_BLOCKS" - } - ] - }, - { - "name": "starknet_chainId", - "summary": "Return the currently configured StarkNet chain id", - "params": [], - "result": { - "name": "result", - "description": "The chain id this node is connected to", - "schema": { - "title": "Chain id", - "$ref": "#/components/schemas/CHAIN_ID" - } - } - }, - { - "name": "starknet_pendingTransactions", - "summary": "Returns the transactions in the transaction pool, recognized by this sequencer", - "params": [], - "result": { - "name": "result", - "schema": { - "type": "array", - "title": "Pending Transactions", - "items": { - "allOf": [ - { - "$ref": "#/components/schemas/TXN" - }, - { - "type": "object", - "properties": { - "transaction_hash": { - "title": "transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "transaction_hash" - ] - } - ] - } - } - } - }, - { - "name": "starknet_syncing", - "summary": "Returns an object about the sync status, or false if the node is not synching", - "params": [], - "result": { - "name": "syncing", - "summary": "The state of the synchronization, or false if the node is not synchronizing", - "description": "The status of the node, if it is currently synchronizing state. FALSE otherwise", - "schema": { - "title": "SyncingStatus", - "oneOf": [ - { - "type": "boolean", - "title": "False", - "description": "only legal value is FALSE here" - }, - { - "title": "Sync status", - "$ref": "#/components/schemas/SYNC_STATUS" - } - ] - } - } - }, - { - "name": "starknet_getEvents", - "summary": "Returns all events matching the given filter", - "description": "Returns all event objects matching the conditions in the provided filter", - "params": [ - { - "name": "filter", - "summary": "The conditions used to filter the returned events", - "required": true, - "schema": { - "title": "Events request", - "allOf": [ - { - "title": "Event filter", - "$ref": "#/components/schemas/EVENT_FILTER" - }, - { - "title": "Result page request", - "$ref": "#/components/schemas/RESULT_PAGE_REQUEST" - } - ] - } - } - ], - "result": { - "name": "events", - "description": "All the event objects matching the filter", - "schema": { - "title": "Events chunk", - "$ref": "#/components/schemas/EVENTS_CHUNK" - } - }, - "errors": [ - { - "$ref": "#/components/errors/PAGE_SIZE_TOO_BIG" - }, - { - "$ref": "#/components/errors/INVALID_CONTINUATION_TOKEN" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/TOO_MANY_KEYS_IN_FILTER" - } - ] - }, - { - "name": "starknet_getNonce", - "summary": "Get the nonce associated with the given address in the given block", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "contract_address", - "description": "The address of the contract whose nonce we're seeking", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - } - ], - "result": { - "name": "result", - "description": "The contract's nonce at the requested state", - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "EVENTS_CHUNK": { - "title": "Events chunk", - "type": "object", - "properties": { - "events": { - "type": "array", - "title": "Matching Events", - "items": { - "$ref": "#/components/schemas/EMITTED_EVENT" - } - }, - "continuation_token": { - "title": "Continuation token", - "description": "Use this token in a subsequent query to obtain the next page. Should not appear if there are no more pages.", - "type": "string" - } - }, - "required": [ - "events" - ] - }, - "RESULT_PAGE_REQUEST": { - "title": "Result page request", - "type": "object", - "properties": { - "continuation_token": { - "title": "Continuation token", - "description": "The token returned from the previous query. If no token is provided the first page is returned.", - "type": "string" - }, - "chunk_size": { - "title": "Chunk size", - "type": "integer", - "minimum": 1 - } - }, - "required": [ - "chunk_size" - ] - }, - "EMITTED_EVENT": { - "title": "Emitted event", - "description": "Event information decorated with metadata on where it was emitted / An event emitted as a result of transaction execution", - "allOf": [ - { - "title": "Event", - "description": "The event information", - "$ref": "#/components/schemas/EVENT" - }, - { - "title": "Event context", - "description": "The event emission information", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "description": "The hash of the block in which the event was emitted", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "description": "The number of the block in which the event was emitted", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "transaction_hash": { - "title": "Transaction hash", - "description": "The transaction that emitted the event", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "block_hash", - "block_number", - "transaction_hash" - ] - } - ] - }, - "EVENT": { - "title": "Event", - "description": "A StarkNet event", - "allOf": [ - { - "title": "Event emitter", - "type": "object", - "properties": { - "from_address": { - "title": "From address", - "$ref": "#/components/schemas/ADDRESS" - } - }, - "required": [ - "from_address" - ] - }, - { - "title": "Event content", - "$ref": "#/components/schemas/EVENT_CONTENT" - } - ] - }, - "EVENT_CONTENT": { - "title": "Event content", - "description": "The content of an event", - "type": "object", - "properties": { - "keys": { - "type": "array", - "title": "Keys", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "data": { - "type": "array", - "title": "Data", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "keys", - "data" - ] - }, - "EVENT_FILTER": { - "title": "Event filter", - "description": "An event filter/query", - "type": "object", - "properties": { - "from_block": { - "title": "from block", - "$ref": "#/components/schemas/BLOCK_ID" - }, - "to_block": { - "title": "to block", - "$ref": "#/components/schemas/BLOCK_ID" - }, - "address": { - "title": "from contract", - "$ref": "#/components/schemas/ADDRESS" - }, - "keys": { - "title": "Keys", - "description": "The values used to filter the events", - "type": "array", - "items": { - "title": "Keys", - "description": "Per key (by position), designate the possible values to be matched for events to be returned. Empty array designates 'any' value", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "required": [] - }, - "BLOCK_ID": { - "title": "Block id", - "description": "Block hash, number or tag", - "oneOf": [ - { - "title": "Block hash", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - } - }, - "required": [ - "block_hash" - ] - }, - { - "title": "Block number", - "type": "object", - "properties": { - "block_number": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "required": [ - "block_number" - ] - }, - { - "title": "Block tag", - "$ref": "#/components/schemas/BLOCK_TAG" - } - ] - }, - "BLOCK_TAG": { - "title": "Block tag", - "type": "string", - "description": "A tag specifying a dynamic reference to a block", - "enum": [ - "latest", - "pending" - ] - }, - "SYNC_STATUS": { - "title": "Sync status", - "type": "object", - "description": "An object describing the node synchronization status", - "properties": { - "starting_block_hash": { - "title": "Starting block hash", - "description": "The hash of the block from which the sync started", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "starting_block_num": { - "title": "Starting block number", - "description": "The number (height) of the block from which the sync started", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "current_block_hash": { - "title": "Current block hash", - "description": "The hash of the current block being synchronized", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "current_block_num": { - "title": "Current block number", - "description": "The number (height) of the current block being synchronized", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "highest_block_hash": { - "title": "Highest block hash", - "description": "The hash of the estimated highest block to be synchronized", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "highest_block_num": { - "title": "Highest block number", - "description": "The number (height) of the estimated highest block to be synchronized", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "required": [ - "starting_block_hash", - "starting_block_num", - "current_block_hash", - "current_block_num", - "highest_block_hash", - "highest_block_num" - ] - }, - "NUM_AS_HEX": { - "title": "Number as hex", - "description": "An integer number in hex format (0x...)", - "type": "string", - "pattern": "^0x[a-fA-F0-9]+$" - }, - "CHAIN_ID": { - "title": "Chain id", - "description": "StarkNet chain id, given in hex representation.", - "type": "string", - "pattern": "^0x[a-fA-F0-9]+$" - }, - "STATE_UPDATE": { - "title": "State update", - "type": "object", - "allOf": [ - { - "title": "Block info", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "new_root": { - "title": "New root", - "description": "The new global state root", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "block_hash", - "new_root" - ] - }, - { - "title": "Pending state update", - "$ref": "#/components/schemas/PENDING_STATE_UPDATE" - } - ] - }, - "PENDING_STATE_UPDATE": { - "title": "Pending state update", - "description": "Pending state update", - "type": "object", - "properties": { - "old_root": { - "title": "Old root", - "description": "The previous global state root", - "$ref": "#/components/schemas/FELT" - }, - "state_diff": { - "title": "State diff", - "description": "The change in state applied in this block, given as a mapping of addresses to the new values and/or new contracts", - "type": "object", - "properties": { - "storage_diffs": { - "title": "Storage diffs", - "type": "array", - "items": { - "description": "The changes in the storage per contract address", - "$ref": "#/components/schemas/CONTRACT_STORAGE_DIFF_ITEM" - } - }, - "deprecated_declared_classes": { - "title": "Deprecated declared classes", - "type": "array", - "items": { - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "declared_classes": { - "title": "Declared classes", - "type": "array", - "items": { - "title": "New classes", - "type": "object", - "description": "The declared class hash and compiled class hash", - "properties": { - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The Cairo assembly hash corresponding to the declared class", - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "deployed_contracts": { - "title": "Deployed contracts", - "type": "array", - "items": { - "description": "A new contract deployed as part of the state update", - "$ref": "#/components/schemas/DEPLOYED_CONTRACT_ITEM" - } - }, - "replaced_classes": { - "title": "Replaced classes", - "type": "array", - "items": { - "description": "The list of contracts whose class was replaced", - "title": "Replaced class", - "type": "object", - "properties": { - "contract_address": { - "title": "Contract address", - "description": "The address of the contract whose class was replaced", - "$ref": "#/components/schemas/ADDRESS" - }, - "class_hash": { - "title": "Class hash", - "description": "The new class hash", - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "nonces": { - "title": "Nonces", - "type": "array", - "items": { - "title": "Nonce update", - "description": "The updated nonce per contract address", - "type": "object", - "properties": { - "contract_address": { - "title": "Contract address", - "description": "The address of the contract", - "$ref": "#/components/schemas/ADDRESS" - }, - "nonce": { - "title": "Nonce", - "description": "The nonce for the given address at the end of the block", - "$ref": "#/components/schemas/FELT" - } - } - } - } - }, - "required": [ - "storage_diffs", - "deprecated_declared_classes", - "declared_classes", - "replaced_classes", - "deployed_contracts", - "nonces" - ] - } - }, - "required": [ - "old_root", - "state_diff" - ] - }, - "ADDRESS": { - "title": "Address", - "$ref": "#/components/schemas/FELT" - }, - "STORAGE_KEY": { - "type": "string", - "title": "Storage key", - "$comment": "A storage key, represented as a string of hex digits", - "description": "A storage key. Represented as up to 62 hex digits, 3 bits, and 5 leading zeroes.", - "pattern": "^0x0[0-7]{1}[a-fA-F0-9]{0,62}$" - }, - "ETH_ADDRESS": { - "title": "Ethereum address", - "type": "string", - "$comment": "An ethereum address", - "description": "an ethereum address represented as 40 hex digits", - "pattern": "^0x[a-fA-F0-9]{40}$" - }, - "TXN_HASH": { - "$ref": "#/components/schemas/FELT", - "description": "The transaction hash, as assigned in StarkNet", - "title": "Transaction hash" - }, - "FELT": { - "type": "string", - "title": "Field element", - "description": "A field element. represented by at most 63 hex digits", - "pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$" - }, - "BLOCK_NUMBER": { - "title": "Block number", - "description": "The block's number (its height)", - "type": "integer", - "minimum": 0 - }, - "BLOCK_HASH": { - "title": "Block hash", - "$ref": "#/components/schemas/FELT" - }, - "BLOCK_BODY_WITH_TX_HASHES": { - "title": "Block body with transaction hashes", - "type": "object", - "properties": { - "transactions": { - "title": "Transaction", - "description": "The hashes of the transactions included in this block", - "type": "array", - "items": { - "description": "The hash of a single transaction", - "$ref": "#/components/schemas/TXN_HASH" - } - } - }, - "required": [ - "transactions" - ] - }, - "BLOCK_BODY_WITH_TXS": { - "title": "Block body with transactions", - "type": "object", - "properties": { - "transactions": { - "title": "Transactions", - "description": "The transactions in this block", - "type": "array", - "items": { - "title": "transactions in block", - "type": "object", - "allOf": [ - { - "title": "transaction", - "$ref": "#/components/schemas/TXN" - }, - { - "type": "object", - "properties": { - "transaction_hash": { - "title": "transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "transaction_hash" - ] - } - ] - } - } - }, - "required": [ - "transactions" - ] - }, - "BLOCK_HEADER": { - "title": "Block header", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "parent_hash": { - "title": "Parent hash", - "description": "The hash of this block's parent", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "description": "The block number (its height)", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "new_root": { - "title": "New root", - "description": "The new global state root", - "$ref": "#/components/schemas/FELT" - }, - "timestamp": { - "title": "Timestamp", - "description": "The time in which the block was created, encoded in Unix time", - "type": "integer", - "minimum": 0 - }, - "sequencer_address": { - "title": "Sequencer address", - "description": "The StarkNet identity of the sequencer submitting this block", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "block_hash", - "parent_hash", - "block_number", - "new_root", - "timestamp", - "sequencer_address" - ] - }, - "BLOCK_WITH_TX_HASHES": { - "title": "Block with transaction hashes", - "description": "The block object", - "allOf": [ - { - "title": "Block status", - "type": "object", - "properties": { - "status": { - "title": "Status", - "$ref": "#/components/schemas/BLOCK_STATUS" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Block header", - "$ref": "#/components/schemas/BLOCK_HEADER" - }, - { - "title": "Block body with transaction hashes", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TX_HASHES" - } - ] - }, - "BLOCK_WITH_TXS": { - "title": "Block with transactions", - "description": "The block object", - "allOf": [ - { - "title": "block with txs", - "type": "object", - "properties": { - "status": { - "title": "Status", - "$ref": "#/components/schemas/BLOCK_STATUS" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Block header", - "$ref": "#/components/schemas/BLOCK_HEADER" - }, - { - "title": "Block body with transactions", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TXS" - } - ] - }, - "PENDING_BLOCK_WITH_TX_HASHES": { - "title": "Pending block with transaction hashes", - "description": "The dynamic block being constructed by the sequencer. Note that this object will be deprecated upon decentralization.", - "allOf": [ - { - "title": "Block body with transactions hashes", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TX_HASHES" - }, - { - "title": "Pending block header", - "type": "object", - "properties": { - "timestamp": { - "title": "Timestamp", - "description": "The time in which the block was created, encoded in Unix time", - "type": "integer", - "minimum": 0 - }, - "sequencer_address": { - "title": "Sequencer address", - "description": "The StarkNet identity of the sequencer submitting this block", - "$ref": "#/components/schemas/FELT" - }, - "parent_hash": { - "title": "Parent hash", - "description": "The hash of this block's parent", - "$ref": "#/components/schemas/BLOCK_HASH" - } - } - } - ] - }, - "PENDING_BLOCK_WITH_TXS": { - "title": "Pending block with transactions", - "description": "The dynamic block being constructed by the sequencer. Note that this object will be deprecated upon decentralization.", - "allOf": [ - { - "title": "Block body with transactions", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TXS" - }, - { - "type": "object", - "title": "Block Info", - "properties": { - "timestamp": { - "title": "Timestamp", - "description": "The time in which the block was created, encoded in Unix time", - "type": "integer", - "minimum": 0 - }, - "sequencer_address": { - "title": "Sequencer address", - "description": "The StarkNet identity of the sequencer submitting this block", - "$ref": "#/components/schemas/FELT" - }, - "parent_hash": { - "title": "Parent hash", - "description": "The hash of this block's parent", - "$ref": "#/components/schemas/BLOCK_HASH" - } - } - } - ] - }, - "DEPLOYED_CONTRACT_ITEM": { - "title": "Deployed contract item", - "type": "object", - "properties": { - "address": { - "title": "Address", - "description": "The address of the contract", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the contract code", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "address", - "class_hash" - ] - }, - "CONTRACT_STORAGE_DIFF_ITEM": { - "title": "Contract storage diff item", - "type": "object", - "properties": { - "address": { - "title": "Address", - "description": "The contract address for which the storage changed", - "$ref": "#/components/schemas/FELT" - }, - "storage_entries": { - "title": "Storage entries", - "description": "The changes in the storage of the contract", - "type": "array", - "items": { - "title": "Storage diff item", - "type": "object", - "properties": { - "key": { - "title": "Key", - "description": "The key of the changed value", - "$ref": "#/components/schemas/FELT" - }, - "value": { - "title": "Value", - "description": "The new value applied to the given address", - "$ref": "#/components/schemas/FELT" - } - } - } - } - }, - "required": [ - "address", - "storage_entries" - ] - }, - "TXN": { - "title": "Transaction", - "description": "The transaction schema, as it appears inside a block", - "oneOf": [ - { - "title": "Invoke transaction", - "$ref": "#/components/schemas/INVOKE_TXN" - }, - { - "title": "L1 handler transaction", - "$ref": "#/components/schemas/L1_HANDLER_TXN" - }, - { - "title": "Declare transaction", - "$ref": "#/components/schemas/DECLARE_TXN" - }, - { - "title": "Deploy transaction", - "$ref": "#/components/schemas/DEPLOY_TXN" - }, - { - "title": "Deploy account transaction", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN" - } - ] - }, - "SIGNATURE": { - "title": "Signature", - "description": "A transaction signature", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "DECLARE_TXN": { - "title": "Declare transaction", - "oneOf": [ - { - "title": "Declare transaction V0", - "$ref": "#/components/schemas/DECLARE_TXN_V0" - }, - { - "title": "Declare transaction V1", - "$ref": "#/components/schemas/DECLARE_TXN_V1" - }, - { - "title": "Declare transaction V2", - "$ref": "#/components/schemas/DECLARE_TXN_V2" - } - ] - }, - "DECLARE_TXN_V0": { - "title": "Declare Contract Transaction V0", - "description": "Declare Contract Transaction V0", - "allOf": [ - { - "type": "object", - "title": "Declare txn v0", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x0" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - } - }, - "required": [ - "type", - "sender_address", - "max_fee", - "version", - "signature" - ] - }, - { - "oneOf": [ - { - "type": "object", - "title": "ContractClass", - "description": "The class to be declared. Expected to be included for all methods involving execution (estimateFee, simulateTransactions)", - "properties": { - "contract_class": { - "title": "Contract class", - "description": "The class to be declared", - "$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS" - } - }, - "required": [ - "contract_class" - ] - }, - { - "type": "object", - "title": "ClassHash", - "description": "The hash of the declared class. Responses to getBlock and getTransaction are expected to include the hash rather than the full definition", - "properties": { - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "class_hash" - ] - } - ] - } - ] - }, - "DECLARE_TXN_V1": { - "title": "Declare Contract Transaction V1", - "description": "Declare Contract Transaction V1", - "allOf": [ - { - "type": "object", - "title": "Declare txn v1", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x1" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "max_fee", - "version", - "signature", - "nonce" - ] - }, - { - "oneOf": [ - { - "type": "object", - "title": "ContractClass", - "description": "The class to be declared. Expected to be included for all methods involving execution (estimateFee, simulateTransactions)", - "properties": { - "contract_class": { - "title": "Contract class", - "description": "The class to be declared", - "$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS" - } - }, - "required": [ - "contract_class" - ] - }, - { - "type": "object", - "title": "ClassHash", - "description": "The hash of the declared class. Responses to getBlock and getTransaction are expected to include the hash rather than the full definition", - "properties": { - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "class_hash" - ] - } - ] - } - ] - }, - "DECLARE_TXN_V2": { - "title": "Declare Transaction V2", - "description": "Declare Contract Transaction V2", - "allOf": [ - { - "type": "object", - "title": "Declare txn v2", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The hash of the Cairo assembly resulting from the Sierra compilation", - "$ref": "#/components/schemas/FELT" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x2" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "compiled_class_hash", - "max_fee", - "version", - "signature", - "nonce" - ] - }, - { - "oneOf": [ - { - "type": "object", - "title": "ContractClass", - "description": "The class to be declared. Expected to be included for all methods involving execution (estimateFee, simulateTransactions)", - "properties": { - "contract_class": { - "title": "Contract class", - "description": "The class to be declared", - "$ref": "#/components/schemas/CONTRACT_CLASS" - } - }, - "required": [ - "countract_class" - ] - }, - { - "type": "object", - "title": "ClassHash", - "description": "The hash of the declared class. Responses to getBlock and getTransaction are expected to include the hash rather than the full definition", - "properties": { - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "class_hash" - ] - } - ] - } - ] - }, - "DEPLOY_ACCOUNT_TXN": { - "title": "Deploy account transaction", - "description": "Deploys an account contract, charges fee from the pre-funded account addresses", - "properties": { - "type": { - "title": "Deploy account", - "type": "string", - "enum": [ - "DEPLOY_ACCOUNT" - ] - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "contract_address_salt": { - "title": "Contract address salt", - "description": "The salt for the address of the deployed contract", - "$ref": "#/components/schemas/FELT" - }, - "constructor_calldata": { - "type": "array", - "description": "The parameters passed to the constructor", - "title": "Constructor calldata", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the deployed contract's class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "max_fee", - "version", - "signature", - "nonce", - "type", - "contract_address_salt", - "constructor_calldata", - "class_hash" - ] - }, - "DEPLOY_TXN": { - "title": "Deploy Contract Transaction", - "description": "The structure of a deploy transaction. Note that this transaction type is deprecated and will no longer be supported in future versions", - "allOf": [ - { - "type": "object", - "title": "Deploy txn", - "properties": { - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "type": { - "title": "Deploy", - "type": "string", - "enum": [ - "DEPLOY" - ] - }, - "contract_address_salt": { - "description": "The salt for the address of the deployed contract", - "title": "Contract address salt", - "$ref": "#/components/schemas/FELT" - }, - "constructor_calldata": { - "type": "array", - "title": "Constructor calldata", - "description": "The parameters passed to the constructor", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the deployed contract's class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "version", - "type", - "constructor_calldata", - "contract_address_salt", - "class_hash" - ] - } - ] - }, - "INVOKE_TXN_V0": { - "title": "Invoke transaction V0", - "description": "invokes a specific function in the desired contract (not necessarily an account)", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x0" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "contract_address": { - "title": "Contract address", - "$ref": "#/components/schemas/ADDRESS" - }, - "entry_point_selector": { - "title": "Entry point selector", - "$ref": "#/components/schemas/FELT" - }, - "calldata": { - "title": "Calldata", - "type": "array", - "description": "The parameters passed to the function", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "type", - "contract_address", - "entry_point_selector", - "calldata", - "max_fee", - "version", - "signature" - ] - }, - "INVOKE_TXN_V1": { - "title": "Invoke transaction V1", - "description": "initiates a transaction from a given account", - "allOf": [ - { - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - }, - "sender_address": { - "title": "sender address", - "$ref": "#/components/schemas/ADDRESS" - }, - "calldata": { - "type": "array", - "title": "calldata", - "description": "The data expected by the account's `execute` function (in most usecases, this includes the called contract address and a function selector)", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x1" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "calldata", - "max_fee", - "version", - "signature", - "nonce" - ] - } - ] - }, - "INVOKE_TXN": { - "title": "Invoke transaction", - "description": "Initiate a transaction from an account", - "oneOf": [ - { - "title": "Invoke transaction V0", - "$ref": "#/components/schemas/INVOKE_TXN_V0" - }, - { - "title": "Invoke transaction V1", - "$ref": "#/components/schemas/INVOKE_TXN_V1" - } - ] - }, - "L1_HANDLER_TXN": { - "title": "L1 Handler transaction", - "allOf": [ - { - "type": "object", - "title": "L1 handler transaction", - "description": "a call to an l1_handler on an L2 contract induced by a message from L1", - "properties": { - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "type": { - "title": "type", - "type": "string", - "enum": [ - "L1_HANDLER" - ] - }, - "nonce": { - "title": "Nonce", - "description": "The L1->L2 message nonce field of the SN Core L1 contract at the time the transaction was sent", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": [ - "version", - "type", - "nonce" - ] - }, - { - "title": "Function call", - "$ref": "#/components/schemas/FUNCTION_CALL" - } - ] - }, - "COMMON_RECEIPT_PROPERTIES": { - "title": "Common receipt properties", - "description": "Common properties for a transaction receipt", - "type": "object", - "properties": { - "transaction_hash": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH", - "description": "The hash identifying the transaction" - }, - "actual_fee": { - "title": "Actual fee", - "$ref": "#/components/schemas/FELT", - "description": "The fee that was charged by the sequencer" - }, - "execution_status": { - "title": "Execution status", - "$ref": "#/components/schemas/TXN_EXECUTION_STATUS" - }, - "finality_status": { - "title": "Finality status", - "$ref": "#/components/schemas/TXN_FINALITY_STATUS" - }, - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "messages_sent": { - "type": "array", - "title": "Messages sent", - "items": { - "$ref": "#/components/schemas/MSG_TO_L1" - } - }, - "revert_reason": { - "title": "Revert reason", - "name": "revert reason", - "description": "the revert reason for the failed execution", - "type": "string" - }, - "events": { - "description": "The events emitted as part of this transaction", - "title": "Events", - "type": "array", - "items": { - "$ref": "#/components/schemas/EVENT" - } - } - }, - "required": [ - "transaction_hash", - "actual_fee", - "finality_status", - "execution_status", - "block_hash", - "block_number", - "messages_sent", - "events" - ] - }, - "INVOKE_TXN_RECEIPT": { - "title": "Invoke Transaction Receipt", - "allOf": [ - { - "title": "Type", - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - } - }, - "required": [ - "type" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "DECLARE_TXN_RECEIPT": { - "title": "Declare Transaction Receipt", - "allOf": [ - { - "title": "Declare txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - } - }, - "required": [ - "type" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "DEPLOY_ACCOUNT_TXN_RECEIPT": { - "title": "Deploy Account Transaction Receipt", - "allOf": [ - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - }, - { - "title": "DeployAccount txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Deploy account", - "type": "string", - "enum": [ - "DEPLOY_ACCOUNT" - ] - }, - "contract_address": { - "title": "Contract address", - "description": "The address of the deployed contract", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "contract_address" - ] - } - ] - }, - "DEPLOY_TXN_RECEIPT": { - "title": "Deploy Transaction Receipt", - "allOf": [ - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - }, - { - "title": "Deploy txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Deploy", - "type": "string", - "enum": [ - "DEPLOY" - ] - }, - "contract_address": { - "title": "Contract address", - "description": "The address of the deployed contract", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "contract_address" - ] - } - ] - }, - "L1_HANDLER_TXN_RECEIPT": { - "title": "L1 Handler Transaction Receipt", - "description": "receipt for l1 handler transaction", - "allOf": [ - { - "title": "Transaction type", - "type": "object", - "properties": { - "type": { - "title": "type", - "type": "string", - "enum": [ - "L1_HANDLER" - ] - } - }, - "required": [ - "type" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "TXN_RECEIPT": { - "title": "Transaction Receipt", - "oneOf": [ - { - "title": "Invoke transaction receipt", - "$ref": "#/components/schemas/INVOKE_TXN_RECEIPT" - }, - { - "title": "L1 handler transaction receipt", - "$ref": "#/components/schemas/L1_HANDLER_TXN_RECEIPT" - }, - { - "title": "Declare transaction receipt", - "$ref": "#/components/schemas/DECLARE_TXN_RECEIPT" - }, - { - "title": "Deploy transaction receipt", - "$ref": "#/components/schemas/DEPLOY_TXN_RECEIPT" - }, - { - "title": "Deploy account transaction receipt", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN_RECEIPT" - }, - { - "title": "Pending transaction receipt", - "$ref": "#/components/schemas/PENDING_TXN_RECEIPT" - } - ] - }, - "PENDING_COMMON_RECEIPT_PROPERTIES": { - "title": "Pending common receipt properties", - "description": "Common properties for a pending transaction receipt", - "type": "object", - "properties": { - "transaction_hash": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH", - "description": "The hash identifying the transaction" - }, - "actual_fee": { - "title": "Actual fee", - "$ref": "#/components/schemas/FELT", - "description": "The fee that was charged by the sequencer" - }, - "type": { - "title": "Transaction type", - "$ref": "#/components/schemas/TXN_TYPE" - }, - "messages_sent": { - "type": "array", - "title": "Messages sent", - "items": { - "$ref": "#/components/schemas/MSG_TO_L1" - } - }, - "events": { - "description": "The events emitted as part of this transaction", - "title": "Events", - "type": "array", - "items": { - "$ref": "#/components/schemas/EVENT" - } - }, - "revert_reason": { - "title": "Revert reason", - "name": "revert reason", - "description": "the revert reason for the failed execution", - "type": "string" - }, - "finality_status": { - "title": "Finality status", - "type": "string", - "enum": [ - "ACCEPTED_ON_L2" - ], - "description": "The finality status of the transaction" - }, - "execution_status": { - "title": "Execution status", - "$ref": "#/components/schemas/TXN_EXECUTION_STATUS" - } - }, - "required": [ - "transaction_hash", - "actual_fee", - "type", - "messages_sent", - "events", - "finality_status", - "execution_status" - ] - }, - "PENDING_DEPLOY_TXN_RECEIPT": { - "title": "Pending deploy Transaction Receipt", - "allOf": [ - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/PENDING_COMMON_RECEIPT_PROPERTIES" - }, - { - "type": "object", - "title": "Contract address", - "properties": { - "contract_address": { - "title": "Contract address", - "description": "The address of the deployed contract", - "$ref": "#/components/schemas/FELT" - } - } - } - ] - }, - "PENDING_TXN_RECEIPT": { - "title": "Pending Transaction Receipt", - "oneOf": [ - { - "title": "Pending deploy transaction receipt", - "$ref": "#/components/schemas/PENDING_DEPLOY_TXN_RECEIPT" - }, - { - "title": "Pending common receipt properties", - "$comment": "Used for pending invoke and declare transaction receipts", - "$ref": "#/components/schemas/PENDING_COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "MSG_TO_L1": { - "title": "Message to L1", - "type": "object", - "properties": { - "from_address": { - "description": "The address of the L2 contract sending the message", - "$ref": "#/components/schemas/FELT" - }, - "to_address": { - "title": "To address", - "description": "The target L1 address the message is sent to", - "$ref": "#/components/schemas/FELT" - }, - "payload": { - "description": "The payload of the message", - "title": "Payload", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "from_address", - "to_address", - "payload" - ] - }, - "MSG_FROM_L1": { - "title": "Message from L1", - "type": "object", - "properties": { - "from_address": { - "description": "The address of the L1 contract sending the message", - "$ref": "#/components/schemas/ETH_ADDRESS" - }, - "to_address": { - "title": "To address", - "description": "The target L2 address the message is sent to", - "$ref": "#/components/schemas/ADDRESS" - }, - "entry_point_selector": { - "title": "Selector", - "description": "The selector of the l1_handler in invoke in the target contract", - "$ref": "#/components/schemas/FELT" - }, - "payload": { - "description": "The payload of the message", - "title": "Payload", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "from_address", - "to_address", - "payload", - "entry_point_selector" - ] - }, - "TXN_FINALITY_STATUS": { - "title": "Finality status", - "type": "string", - "enum": [ - "ACCEPTED_ON_L2", - "ACCEPTED_ON_L1" - ], - "description": "The finality status of the transaction" - }, - "TXN_EXECUTION_STATUS": { - "title": "Execution status", - "type": "string", - "enum": [ - "SUCCEEDED", - "REVERTED" - ], - "description": "The execution status of the transaction" - }, - "TXN_TYPE": { - "title": "Transaction type", - "type": "string", - "enum": [ - "DECLARE", - "DEPLOY", - "DEPLOY_ACCOUNT", - "INVOKE", - "L1_HANDLER" - ], - "description": "The type of the transaction" - }, - "BLOCK_STATUS": { - "title": "Block status", - "type": "string", - "enum": [ - "PENDING", - "ACCEPTED_ON_L2", - "ACCEPTED_ON_L1", - "REJECTED" - ], - "description": "The status of the block" - }, - "FUNCTION_CALL": { - "title": "Function call", - "type": "object", - "description": "Function call information", - "properties": { - "contract_address": { - "title": "Contract address", - "$ref": "#/components/schemas/ADDRESS" - }, - "entry_point_selector": { - "title": "Entry point selector", - "$ref": "#/components/schemas/FELT" - }, - "calldata": { - "title": "Calldata", - "type": "array", - "description": "The parameters passed to the function", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "contract_address", - "entry_point_selector", - "calldata" - ] - }, - "CONTRACT_CLASS": { - "title": "Contract class", - "type": "object", - "properties": { - "sierra_program": { - "title": "Sierra program", - "type": "array", - "description": "The list of Sierra instructions of which the program consists", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "contract_class_version": { - "title": "Contract class version", - "type": "string", - "description": "The version of the contract class object. Currently, the Starknet OS supports version 0.1.0" - }, - "entry_points_by_type": { - "title": "Entry points by type", - "type": "object", - "properties": { - "CONSTRUCTOR": { - "type": "array", - "title": "Constructor", - "items": { - "$ref": "#/components/schemas/SIERRA_ENTRY_POINT" - } - }, - "EXTERNAL": { - "title": "External", - "type": "array", - "items": { - "$ref": "#/components/schemas/SIERRA_ENTRY_POINT" - } - }, - "L1_HANDLER": { - "title": "L1 handler", - "type": "array", - "items": { - "$ref": "#/components/schemas/SIERRA_ENTRY_POINT" - } - } - }, - "required": [ - "CONSTRUCTOR", - "EXTERNAL", - "L1_HANDLER" - ] - }, - "abi": { - "title": "ABI", - "type": "string", - "description": "The class ABI, as supplied by the user declaring the class" - } - }, - "required": [ - "sierra_program", - "contract_class_version", - "entry_points_by_type" - ] - }, - "DEPRECATED_CONTRACT_CLASS": { - "title": "Deprecated contract class", - "description": "The definition of a StarkNet contract class", - "type": "object", - "properties": { - "program": { - "type": "string", - "title": "Program", - "description": "A base64 representation of the compressed program code", - "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$" - }, - "entry_points_by_type": { - "type": "object", - "title": "Deprecated entry points by type", - "properties": { - "CONSTRUCTOR": { - "type": "array", - "title": "Deprecated constructor", - "items": { - "$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - }, - "EXTERNAL": { - "type": "array", - "title": "Deprecated external", - "items": { - "$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - }, - "L1_HANDLER": { - "type": "array", - "title": "Deprecated L1 handler", - "items": { - "$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - } - } - }, - "abi": { - "title": "Contract ABI", - "$ref": "#/components/schemas/CONTRACT_ABI" - } - }, - "required": [ - "program", - "entry_points_by_type" - ] - }, - "DEPRECATED_CAIRO_ENTRY_POINT": { - "title": "Deprecated Cairo entry point", - "type": "object", - "properties": { - "offset": { - "title": "Offset", - "description": "The offset of the entry point in the program", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "selector": { - "title": "Selector", - "description": "A unique identifier of the entry point (function) in the program", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "offset", - "selector" - ] - }, - "SIERRA_ENTRY_POINT": { - "title": "Sierra entry point", - "type": "object", - "properties": { - "selector": { - "title": "Selector", - "description": "A unique identifier of the entry point (function) in the program", - "$ref": "#/components/schemas/FELT" - }, - "function_idx": { - "title": "Function index", - "description": "The index of the function in the program", - "type": "integer" - } - }, - "required": [ - "selector", - "function_idx" - ] - }, - "CONTRACT_ABI": { - "title": "Contract ABI", - "type": "array", - "items": { - "$ref": "#/components/schemas/CONTRACT_ABI_ENTRY" - } - }, - "CONTRACT_ABI_ENTRY": { - "title": "Contract ABI entry", - "oneOf": [ - { - "title": "Function ABI entry", - "$ref": "#/components/schemas/FUNCTION_ABI_ENTRY" - }, - { - "title": "Event ABI entry", - "$ref": "#/components/schemas/EVENT_ABI_ENTRY" - }, - { - "title": "Struct ABI entry", - "$ref": "#/components/schemas/STRUCT_ABI_ENTRY" - } - ] - }, - "STRUCT_ABI_TYPE": { - "title": "Struct ABI type", - "type": "string", - "enum": [ - "struct" - ] - }, - "EVENT_ABI_TYPE": { - "title": "Event ABI type", - "type": "string", - "enum": [ - "event" - ] - }, - "FUNCTION_ABI_TYPE": { - "title": "Function ABI type", - "type": "string", - "enum": [ - "function", - "l1_handler", - "constructor" - ] - }, - "STRUCT_ABI_ENTRY": { - "title": "Struct ABI entry", - "type": "object", - "properties": { - "type": { - "title": "Struct ABI type", - "$ref": "#/components/schemas/STRUCT_ABI_TYPE" - }, - "name": { - "title": "Struct name", - "description": "The struct name", - "type": "string" - }, - "size": { - "title": "Size", - "type": "integer", - "minimum": 1 - }, - "members": { - "type": "array", - "title": "Members", - "items": { - "$ref": "#/components/schemas/STRUCT_MEMBER" - } - } - }, - "required": [ - "type", - "name", - "size", - "members" - ] - }, - "STRUCT_MEMBER": { - "title": "Struct member", - "allOf": [ - { - "title": "Typed parameter", - "$ref": "#/components/schemas/TYPED_PARAMETER" - }, - { - "type": "object", - "title": "Offset", - "properties": { - "offset": { - "title": "Offset", - "description": "offset of this property within the struct", - "type": "integer" - } - } - } - ] - }, - "EVENT_ABI_ENTRY": { - "title": "Event ABI entry", - "type": "object", - "properties": { - "type": { - "title": "Event ABI type", - "$ref": "#/components/schemas/EVENT_ABI_TYPE" - }, - "name": { - "title": "Event name", - "description": "The event name", - "type": "string" - }, - "keys": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - }, - "data": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - } - }, - "required": [ - "type", - "name", - "keys", - "data" - ] - }, - "FUNCTION_STATE_MUTABILITY": { - "title": "Function state mutability type", - "type": "string", - "enum": [ - "view" - ] - }, - "FUNCTION_ABI_ENTRY": { - "title": "Function ABI entry", - "type": "object", - "properties": { - "type": { - "title": "Function ABI type", - "$ref": "#/components/schemas/FUNCTION_ABI_TYPE" - }, - "name": { - "title": "Function name", - "description": "The function name", - "type": "string" - }, - "inputs": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - }, - "outputs": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - }, - "stateMutability": { - "title": "Function state mutability", - "$ref": "#/components/schemas/FUNCTION_STATE_MUTABILITY" - } - }, - "required": [ - "type", - "name", - "inputs", - "outputs" - ] - }, - "TYPED_PARAMETER": { - "title": "Typed parameter", - "type": "object", - "properties": { - "name": { - "title": "Parameter name", - "description": "The parameter's name", - "type": "string" - }, - "type": { - "title": "Parameter type", - "description": "The parameter's type", - "type": "string" - } - }, - "required": [ - "name", - "type" - ] - }, - "FEE_ESTIMATE": { - "title": "Fee estimation", - "type": "object", - "properties": { - "gas_consumed": { - "title": "Gas consumed", - "description": "The Ethereum gas cost of the transaction (see https://docs.starknet.io/learn/protocol/fees for more info)", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "gas_price": { - "title": "Gas price", - "description": "The gas price (in gwei) that was used in the cost estimation", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "overall_fee": { - "title": "Overall fee", - "description": "The estimated fee for the transaction (in gwei), product of gas_consumed and gas_price", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": [ - "gas_consumed", - "gas_price", - "overall_fee" - ] - } - }, - "errors": { - "FAILED_TO_RECEIVE_TXN": { - "code": 1, - "message": "Failed to write transaction" - }, - "CONTRACT_NOT_FOUND": { - "code": 20, - "message": "Contract not found" - }, - "BLOCK_NOT_FOUND": { - "code": 24, - "message": "Block not found" - }, - "INVALID_TXN_INDEX": { - "code": 27, - "message": "Invalid transaction index in a block" - }, - "CLASS_HASH_NOT_FOUND": { - "code": 28, - "message": "Class hash not found" - }, - "TXN_HASH_NOT_FOUND": { - "code": 29, - "message": "Transaction hash not found" - }, - "PAGE_SIZE_TOO_BIG": { - "code": 31, - "message": "Requested page size is too big" - }, - "NO_BLOCKS": { - "code": 32, - "message": "There are no blocks" - }, - "INVALID_CONTINUATION_TOKEN": { - "code": 33, - "message": "The supplied continuation token is invalid or unknown" - }, - "TOO_MANY_KEYS_IN_FILTER": { - "code": 34, - "message": "Too many keys provided in a filter" - }, - "CONTRACT_ERROR": { - "code": 40, - "message": "Contract error" - } - } - } -} \ No newline at end of file diff --git a/specs/rpc/v04/starknet_trace_api_openrpc.json b/specs/rpc/v04/starknet_trace_api_openrpc.json deleted file mode 100644 index a4c8532ef5..0000000000 --- a/specs/rpc/v04/starknet_trace_api_openrpc.json +++ /dev/null @@ -1,399 +0,0 @@ -{ - "openrpc": "1.0.0-rc1", - "info": { - "version": "0.4.0", - "title": "StarkNet Trace API", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_traceTransaction", - "summary": "For a given executed transaction, return the trace of its execution, including internal calls", - "description": "Returns the execution trace of the transaction designated by the input hash", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the transaction to trace", - "required": true, - "schema": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "trace", - "description": "The function call trace of the transaction designated by the given hash", - "schema": { - "$ref": "#/components/schemas/TRANSACTION_TRACE" - } - }, - "errors": [ - { - "$ref": "#/components/errors/INVALID_TXN_HASH" - }, - { - "$ref": "#/components/errors/NO_TRACE_AVAILABLE" - } - ] - }, - { - "name": "starknet_simulateTransactions", - "summary": "simulate a given sequence of transactions on the requested state, and generate the execution traces. If one of the transactions is reverted, raises CONTRACT_ERROR.", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "transactions", - "description": "The transactions to simulate", - "required": true, - "schema": { - "type": "array", - "description": "a sequence of transactions to simulate, running each transaction on the state resulting from applying all the previous ones", - "items": { - "oneOf": [ - { - "title": "Declare transaction", - "$ref": "#/components/schemas/DECLARE_TXN" - }, - { - "title": "Invoke transaction", - "$ref": "#/components/schemas/INVOKE_TXN" - }, - { - "title": "Deploy account transaction", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN" - } - ] - } - } - }, - { - "name": "simulation_flags", - "description": "describes what parts of the transaction should be executed", - "required": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SIMULATION_FLAG" - } - } - } - ], - "result": { - "name": "simulated_transactions", - "description": "The execution trace and consumed resources of the required transactions", - "schema": { - "type": "array", - "items": { - "schema": { - "type": "object", - "properties": { - "transaction_trace": { - "title": "the transaction's trace", - "$ref": "#/components/schemas/TRANSACTION_TRACE" - }, - "fee_estimation": { - "title": "the transaction's resources and fee", - "$ref": "#/components/schemas/FEE_ESTIMATE" - } - } - } - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_traceBlockTransactions", - "summary": "Retrieve traces for all transactions in the given block", - "description": "Returns the execution traces of all transactions included in the given block", - "params": [ - { - "name": "block_hash", - "summary": "The hash of the requested block", - "required": true, - "schema": { - "$ref": "#/components/schemas/BLOCK_HASH" - } - } - ], - "result": { - "name": "traces", - "description": "The traces of all transactions in the block", - "schema": { - "type": "array", - "items": { - "type": "object", - "description": "A single pair of transaction hash and corresponding trace", - "properties": { - "transaction_hash": { - "$ref": "#/components/schemas/FELT" - }, - "trace_root": { - "$ref": "#/components/schemas/TRANSACTION_TRACE" - } - } - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/INVALID_BLOCK_HASH" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "TRANSACTION_TRACE": { - "oneOf": [ - { - "name": "INVOKE_TXN_TRACE", - "type": "object", - "description": "the execution trace of an invoke transaction", - "properties": { - "validate_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "execute_invocation": { - "description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)", - "oneOf": [ - { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - { - "type": "object", - "properties": { - "revert_reason": { - "name": "revert reason", - "description": "the revert reason for the failed execution", - "type": "string" - } - } - } - ] - }, - "fee_transfer_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - } - } - }, - { - "name": "DECLARE_TXN_TRACE", - "type": "object", - "description": "the execution trace of a declare transaction", - "properties": { - "validate_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "fee_transfer_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - } - } - }, - { - "name": "DEPLOY_ACCOUNT_TXN_TRACE", - "type": "object", - "description": "the execution trace of a deploy account transaction", - "properties": { - "validate_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "constructor_invocation": { - "description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)", - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "fee_transfer_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - } - } - }, - { - "name": "L1_HANDLER_TXN_TRACE", - "type": "object", - "description": "the execution trace of an L1 handler transaction", - "properties": { - "function_invocation": { - "description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)", - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - } - } - } - ] - }, - "SIMULATION_FLAG": { - "type": "string", - "enum": [ - "SKIP_VALIDATE", - "SKIP_FEE_CHARGE" - ], - "description": "Flags that indicate how to simulate a given transaction. By default, the sequencer behavior is replicated locally (enough funds are expected to be in the account, and fee will be deducted from the balance before the simulation of the next transaction). To skip the fee charge, use the SKIP_FEE_CHARGE flag." - }, - "NESTED_CALL": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "FUNCTION_INVOCATION": { - "allOf": [ - { - "$ref": "#/components/schemas/FUNCTION_CALL" - }, - { - "type": "object", - "properties": { - "caller_address": { - "title": "Caller Address", - "description": "The address of the invoking contract. 0 for the root invocation", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the class being called", - "$ref": "#/components/schemas/FELT" - }, - "entry_point_type": { - "$ref": "#/components/schemas/ENTRY_POINT_TYPE" - }, - "call_type": { - "$ref": "#/components/schemas/CALL_TYPE" - }, - "result": { - "title": "Invocation Result", - "description": "The value returned from the function invocation", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "calls": { - "title": "Nested Calls", - "description": "The calls made by this invocation", - "type": "array", - "items": { - "$ref": "#/components/schemas/NESTED_CALL" - } - }, - "events": { - "title": "Invocation Events", - "description": "The events emitted in this invocation", - "type": "array", - "items": { - "$ref": "#/components/schemas/EVENT" - } - }, - "messages": { - "title": "L1 Messages", - "description": "The messages sent by this invocation to L1", - "type": "array", - "items": { - "$ref": "#/components/schemas/MSG_TO_L1" - } - } - } - } - ] - }, - "ENTRY_POINT_TYPE": { - "type": "string", - "enum": [ - "EXTERNAL", - "L1_HANDLER", - "CONSTRUCTOR" - ] - }, - "CALL_TYPE": { - "type": "string", - "enum": [ - "LIBRARY_CALL", - "CALL" - ] - }, - "FELT": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/FELT" - }, - "FUNCTION_CALL": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/FUNCTION_CALL" - }, - "EVENT": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/EVENT_CONTENT" - }, - "MSG_TO_L1": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/MSG_TO_L1" - }, - "BLOCK_HASH": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BLOCK_HASH" - }, - "BLOCK_ID": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BLOCK_ID" - }, - "FEE_ESTIMATE": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/FEE_ESTIMATE" - }, - "INVOKE_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/INVOKE_TXN" - }, - "DECLARE_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/DECLARE_TXN" - }, - "DEPLOY_ACCOUNT_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/DEPLOY_ACCOUNT_TXN" - } - }, - "errors": { - "NO_TRACE_AVAILABLE": { - "code": 10, - "message": "No trace available for transaction", - "data": { - "type": "object", - "description": "Extra information on why trace is not available. Either it wasn't executed yet (RECEIVED), or the transaction failed (REJECTED)", - "properties": { - "status": { - "type": "string", - "enum": [ - "RECEIVED", - "REJECTED" - ] - } - } - } - }, - "CONTRACT_NOT_FOUND": { - "code": 20, - "message": "Contract not found" - }, - "BLOCK_NOT_FOUND": { - "code": 24, - "message": "Block not found" - }, - "INVALID_TXN_HASH": { - "code": 25, - "message": "Invalid transaction hash" - }, - "INVALID_BLOCK_HASH": { - "code": 26, - "message": "Invalid block hash" - }, - "CONTRACT_ERROR": { - "code": 40, - "message": "Contract error" - } - } - } -} \ No newline at end of file diff --git a/specs/rpc/v04/starknet_write_api.json b/specs/rpc/v04/starknet_write_api.json deleted file mode 100644 index 8f3eb13608..0000000000 --- a/specs/rpc/v04/starknet_write_api.json +++ /dev/null @@ -1,297 +0,0 @@ -{ - "openrpc": "1.0.0-rc1", - "info": { - "version": "0.4.0", - "title": "StarkNet Node Write API", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_addInvokeTransaction", - "summary": "Submit a new transaction to be added to the chain", - "params": [ - { - "name": "invoke_transaction", - "description": "The information needed to invoke the function (or account, for version 1 transactions)", - "required": true, - "schema": { - "$ref": "#/components/schemas/INVOKE_TXN_V1" - } - } - ], - "result": { - "name": "result", - "description": "The result of the transaction submission", - "schema": { - "type": "object", - "properties": { - "transaction_hash": { - "title": "The hash of the invoke transaction", - "$ref": "#/components/schemas/TXN_HASH" - } - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/INSUFFICIENT_ACCOUNT_BALANCE" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_MAX_FEE" - }, - { - "$ref": "#/components/errors/INVALID_TRANSACTION_NONCE" - }, - { - "$ref": "#/components/errors/VALIDATION_FAILURE" - }, - { - "$ref": "#/components/errors/NON_ACCOUNT" - }, - { - "$ref": "#/components/errors/DUPLICATE_TX" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_TX_VERSION" - }, - { - "$ref": "#/components/errors/UNEXPECTED_ERROR" - } - ] - }, - { - "name": "starknet_addDeclareTransaction", - "summary": "Submit a new class declaration transaction", - "params": [ - { - "name": "declare_transaction", - "description": "Declare transaction required to declare a new class on Starknet", - "required": true, - "schema": { - "title": "Declare transaction", - "oneOf": [ - { - "$ref": "#/components/schemas/DECLARE_TXN_V1" - }, - { - "$ref": "#/components/schemas/DECLARE_TXN_V2" - } - ] - } - } - ], - "result": { - "name": "result", - "description": "The result of the transaction submission", - "schema": { - "type": "object", - "properties": { - "transaction_hash": { - "title": "The hash of the declare transaction", - "$ref": "#/components/schemas/TXN_HASH" - }, - "class_hash": { - "title": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/CLASS_ALREADY_DECLARED" - }, - { - "$ref": "#/components/errors/COMPILATION_FAILED" - }, - { - "$ref": "#/components/errors/COMPILED_CLASS_HASH_MISMATCH" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_ACCOUNT_BALANCE" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_MAX_FEE" - }, - { - "$ref": "#/components/errors/INVALID_TRANSACTION_NONCE" - }, - { - "$ref": "#/components/errors/VALIDATION_FAILURE" - }, - { - "$ref": "#/components/errors/NON_ACCOUNT" - }, - { - "$ref": "#/components/errors/DUPLICATE_TX" - }, - { - "$ref": "#/components/errors/CONTRACT_CLASS_SIZE_IS_TOO_LARGE" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_TX_VERSION" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_CONTRACT_CLASS_VERSION" - }, - { - "$ref": "#/components/errors/UNEXPECTED_ERROR" - } - ] - }, - { - "name": "starknet_addDeployAccountTransaction", - "summary": "Submit a new deploy account transaction", - "params": [ - { - "name": "deploy_account_transaction", - "description": "The deploy account transaction", - "required": true, - "schema": { - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN" - } - } - ], - "result": { - "name": "result", - "description": "The result of the transaction submission", - "schema": { - "type": "object", - "properties": { - "transaction_hash": { - "title": "The hash of the deploy transaction", - "$ref": "#/components/schemas/TXN_HASH" - }, - "contract_address": { - "title": "The address of the new contract", - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/INSUFFICIENT_ACCOUNT_BALANCE" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_MAX_FEE" - }, - { - "$ref": "#/components/errors/INVALID_TRANSACTION_NONCE" - }, - { - "$ref": "#/components/errors/VALIDATION_FAILURE" - }, - { - "$ref": "#/components/errors/NON_ACCOUNT" - }, - { - "$ref": "#/components/errors/CLASS_HASH_NOT_FOUND" - }, - { - "$ref": "#/components/errors/DUPLICATE_TX" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_TX_VERSION" - }, - { - "$ref": "#/components/errors/UNEXPECTED_ERROR" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "NUM_AS_HEX": { - "title": "An integer number in hex format (0x...)", - "type": "string", - "pattern": "^0x[a-fA-F0-9]+$" - }, - "SIGNATURE": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/SIGNATURE" - }, - "FELT": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/FELT" - }, - "TXN_HASH": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/TXN_HASH" - }, - "INVOKE_TXN_V1": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/INVOKE_TXN_V1" - }, - "DECLARE_TXN_V1": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/DECLARE_TXN_V1" - }, - "DECLARE_TXN_V2": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/DECLARE_TXN_V2" - }, - "DEPLOY_ACCOUNT_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/DEPLOY_ACCOUNT_TXN" - }, - "FUNCTION_CALL": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/FUNCTION_CALL" - } - }, - "errors": { - "CLASS_HASH_NOT_FOUND": { - "code": 28, - "message": "Class hash not found" - }, - "CLASS_ALREADY_DECLARED": { - "code": 51, - "message": "Class already declared" - }, - "INVALID_TRANSACTION_NONCE": { - "code": 52, - "message": "Invalid transaction nonce" - }, - "INSUFFICIENT_MAX_FEE": { - "code": 53, - "message": "Max fee is smaller than the minimal transaction cost (validation plus fee transfer)" - }, - "INSUFFICIENT_ACCOUNT_BALANCE": { - "code": 54, - "message": "Account balance is smaller than the transaction's max_fee" - }, - "VALIDATION_FAILURE": { - "code": 55, - "message": "Account validation failed" - }, - "COMPILATION_FAILED": { - "code": 56, - "message": "Compilation failed" - }, - "CONTRACT_CLASS_SIZE_IS_TOO_LARGE": { - "code": 57, - "message": "Contract class size it too large" - }, - "NON_ACCOUNT": { - "code": 58, - "message": "Sender address in not an account contract" - }, - "DUPLICATE_TX": { - "code": 59, - "message": "A transaction with the same hash already exists in the mempool" - }, - "COMPILED_CLASS_HASH_MISMATCH": { - "code": 60, - "message": "the compiled class hash did not match the one supplied in the transaction" - }, - "UNSUPPORTED_TX_VERSION": { - "code": 61, - "message": "the transaction version is not supported" - }, - "UNSUPPORTED_CONTRACT_CLASS_VERSION": { - "code": 62, - "message": "the contract class version is not supported" - }, - "UNEXPECTED_ERROR": { - "code": 63, - "message": "An unexpected error occurred", - "data": "string" - } - } - } -} \ No newline at end of file diff --git a/specs/rpc/v05/starknet_api_openrpc.json b/specs/rpc/v05/starknet_api_openrpc.json deleted file mode 100644 index 236482bfba..0000000000 --- a/specs/rpc/v05/starknet_api_openrpc.json +++ /dev/null @@ -1,3395 +0,0 @@ -{ - "openrpc": "1.0.0-rc1", - "info": { - "version": "0.5.1", - "title": "StarkNet Node API", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_specVersion", - "summary": "Returns the version of the Starknet JSON-RPC specification being used", - "params": [], - "result": { - "name": "result", - "description": "Semver of Starknet's JSON-RPC spec being used", - "required": true, - "schema": { - "title": "JSON-RPC spec version", - "type": "string" - } - } - }, - { - "name": "starknet_getBlockWithTxHashes", - "summary": "Get block information with transaction hashes given the block id", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The resulting block information with transaction hashes", - "schema": { - "title": "Starknet get block hash with tx hashes result", - "oneOf": [ - { - "title": "Block with transaction hashes", - "$ref": "#/components/schemas/BLOCK_WITH_TX_HASHES" - }, - { - "title": "Pending block with transaction hashes", - "$ref": "#/components/schemas/PENDING_BLOCK_WITH_TX_HASHES" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getBlockWithTxs", - "summary": "Get block information with full transactions given the block id", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The resulting block information with full transactions", - "schema": { - "title": "Starknet get block with txs result", - "oneOf": [ - { - "title": "Block with transactions", - "$ref": "#/components/schemas/BLOCK_WITH_TXS" - }, - { - "title": "Pending block with transactions", - "$ref": "#/components/schemas/PENDING_BLOCK_WITH_TXS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getStateUpdate", - "summary": "Get the information about the result of executing the requested block", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The information about the state update of the requested block", - "schema": { - "title": "Starknet get state update result", - "oneOf": [ - { - "title": "State update", - "$ref": "#/components/schemas/STATE_UPDATE" - }, - { - "title": "Pending state update", - "$ref": "#/components/schemas/PENDING_STATE_UPDATE" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getStorageAt", - "summary": "Get the value of the storage at the given address and key", - "params": [ - { - "name": "contract_address", - "description": "The address of the contract to read from", - "summary": "The address of the contract to read from", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - }, - { - "name": "key", - "description": "The key to the storage value for the given contract", - "summary": "The key to the storage value for the given contract", - "required": true, - "schema": { - "title": "Storage key", - "$ref": "#/components/schemas/STORAGE_KEY" - } - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The value at the given key for the given contract. 0 if no value is found", - "summary": "The value at the given key for the given contract.", - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getTransactionStatus", - "summary": "Gets the transaction status (possibly reflecting that the tx is still in the mempool, or dropped from it)", - "paramStructure": "by-name", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the requested transaction", - "required": true, - "schema": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "result", - "schema": { - "title": "Transaction status", - "type": "object", - "properties": { - "finality_status": { - "title": "finality status", - "$ref": "#/components/schemas/TXN_STATUS" - }, - "execution_status": { - "title": "execution status", - "$ref": "#/components/schemas/TXN_EXECUTION_STATUS" - } - }, - "required": [ - "finality_status" - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getTransactionByHash", - "summary": "Get the details and status of a submitted transaction", - "paramStructure": "by-name", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the requested transaction", - "required": true, - "schema": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "result", - "schema": { - "title": "Transaction", - "allOf": [ - { - "$ref": "#/components/schemas/TXN" - }, - { - "type": "object", - "properties": { - "transaction_hash": { - "title": "transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "transaction_hash" - ] - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getTransactionByBlockIdAndIndex", - "summary": "Get the details of a transaction by a given block id and index", - "description": "Get the details of the transaction given by the identified block and index in that block. If no transaction is found, null is returned.", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "index", - "summary": "The index in the block to search for the transaction", - "required": true, - "schema": { - "title": "Index", - "type": "integer", - "minimum": 0 - } - } - ], - "result": { - "name": "transactionResult", - "schema": { - "title": "Transaction", - "allOf": [ - { - "$ref": "#/components/schemas/TXN" - }, - { - "type": "object", - "properties": { - "transaction_hash": { - "title": "transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "transaction_hash" - ] - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/INVALID_TXN_INDEX" - } - ] - }, - { - "name": "starknet_getTransactionReceipt", - "summary": "Get the transaction receipt by the transaction hash", - "paramStructure": "by-name", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the requested transaction", - "required": true, - "schema": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "result", - "schema": { - "oneOf": [ - { - "title": "Transaction receipt", - "$ref": "#/components/schemas/TXN_RECEIPT" - }, - { - "title": "Pending transaction receipt", - "$ref": "#/components/schemas/PENDING_TXN_RECEIPT" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getClass", - "summary": "Get the contract class definition in the given block associated with the given hash", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "class_hash", - "description": "The hash of the requested contract class", - "required": true, - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - } - ], - "result": { - "name": "result", - "description": "The contract class, if found", - "schema": { - "title": "Starknet get class result", - "oneOf": [ - { - "title": "Deprecated contract class", - "$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS" - }, - { - "title": "Contract class", - "$ref": "#/components/schemas/CONTRACT_CLASS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CLASS_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getClassHashAt", - "summary": "Get the contract class hash in the given block for the contract deployed at the given address", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "contract_address", - "description": "The address of the contract whose class hash will be returned", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - } - ], - "result": { - "name": "result", - "description": "The class hash of the given contract", - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getClassAt", - "summary": "Get the contract class definition in the given block at the given address", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "contract_address", - "description": "The address of the contract whose class definition will be returned", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - } - ], - "result": { - "name": "result", - "description": "The contract class", - "schema": { - "title": "Starknet get class at result", - "oneOf": [ - { - "title": "Deprecated contract class", - "$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS" - }, - { - "title": "Contract class", - "$ref": "#/components/schemas/CONTRACT_CLASS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getBlockTransactionCount", - "summary": "Get the number of transactions in a block given a block id", - "description": "Returns the number of transactions in the designated block.", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The number of transactions in the designated block", - "summary": "The number of transactions in the designated block", - "schema": { - "title": "Block transaction count", - "type": "integer", - "minimum": 0 - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_call", - "summary": "call a starknet function without creating a StarkNet transaction", - "description": "Calls a function in a contract and returns the return value. Using this call will not create a transaction; hence, will not change the state", - "params": [ - { - "name": "request", - "summary": "The details of the function call", - "schema": { - "title": "Function call", - "$ref": "#/components/schemas/FUNCTION_CALL" - }, - "required": true - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "summary": "The function's return value", - "description": "The function's return value, as defined in the Cairo output", - "schema": { - "type": "array", - "title": "Field element", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_estimateFee", - "summary": "estimate the fee for of StarkNet transactions", - "description": "estimates the resources required by transactions when applied on a given state", - "params": [ - { - "name": "request", - "summary": "The transaction to estimate", - "schema": { - "type": "array", - "description": "a sequence of transactions to estimate, running each transaction on the state resulting from applying all the previous ones", - "title": "Transaction", - "items": { - "$ref": "#/components/schemas/BROADCASTED_TXN" - } - }, - "required": true - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "the fee estimations", - "schema": { - "title": "Estimation", - "type": "array", - "description": "a sequence of fee estimation where the i'th estimate corresponds to the i'th transaction", - "items": { - "$ref": "#/components/schemas/FEE_ESTIMATE" - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_estimateMessageFee", - "summary": "estimate the L2 fee of a message sent on L1", - "description": "estimates the resources required by the l1_handler transaction induced by the message", - "params": [ - { - "name": "message", - "description": "the message's parameters", - "schema": { - "$ref": "#/components/schemas/MSG_FROM_L1" - }, - "required": true - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "the fee estimation", - "schema": { - "$ref": "#/components/schemas/FEE_ESTIMATE" - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_blockNumber", - "summary": "Get the most recent accepted block number", - "params": [], - "result": { - "name": "result", - "description": "The latest block number", - "schema": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "errors": [ - { - "$ref": "#/components/errors/NO_BLOCKS" - } - ] - }, - { - "name": "starknet_blockHashAndNumber", - "summary": "Get the most recent accepted block hash and number", - "params": [], - "result": { - "name": "result", - "description": "The latest block hash and number", - "schema": { - "title": "Starknet block hash and number result", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "required": [ - "block_hash", - "block_number" - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/NO_BLOCKS" - } - ] - }, - { - "name": "starknet_chainId", - "summary": "Return the currently configured StarkNet chain id", - "params": [], - "result": { - "name": "result", - "description": "The chain id this node is connected to", - "schema": { - "title": "Chain id", - "$ref": "#/components/schemas/CHAIN_ID" - } - } - }, - { - "name": "starknet_syncing", - "summary": "Returns an object about the sync status, or false if the node is not synching", - "params": [], - "result": { - "name": "syncing", - "summary": "The state of the synchronization, or false if the node is not synchronizing", - "description": "The status of the node, if it is currently synchronizing state. FALSE otherwise", - "schema": { - "title": "SyncingStatus", - "oneOf": [ - { - "type": "boolean", - "title": "False", - "description": "only legal value is FALSE here" - }, - { - "title": "Sync status", - "$ref": "#/components/schemas/SYNC_STATUS" - } - ] - } - } - }, - { - "name": "starknet_getEvents", - "summary": "Returns all events matching the given filter", - "description": "Returns all event objects matching the conditions in the provided filter", - "params": [ - { - "name": "filter", - "summary": "The conditions used to filter the returned events", - "required": true, - "schema": { - "title": "Events request", - "allOf": [ - { - "title": "Event filter", - "$ref": "#/components/schemas/EVENT_FILTER" - }, - { - "title": "Result page request", - "$ref": "#/components/schemas/RESULT_PAGE_REQUEST" - } - ] - } - } - ], - "result": { - "name": "events", - "description": "All the event objects matching the filter", - "schema": { - "title": "Events chunk", - "$ref": "#/components/schemas/EVENTS_CHUNK" - } - }, - "errors": [ - { - "$ref": "#/components/errors/PAGE_SIZE_TOO_BIG" - }, - { - "$ref": "#/components/errors/INVALID_CONTINUATION_TOKEN" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/TOO_MANY_KEYS_IN_FILTER" - } - ] - }, - { - "name": "starknet_getNonce", - "summary": "Get the nonce associated with the given address in the given block", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "contract_address", - "description": "The address of the contract whose nonce we're seeking", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - } - ], - "result": { - "name": "result", - "description": "The contract's nonce at the requested state", - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "EVENTS_CHUNK": { - "title": "Events chunk", - "type": "object", - "properties": { - "events": { - "type": "array", - "title": "Matching Events", - "items": { - "$ref": "#/components/schemas/EMITTED_EVENT" - } - }, - "continuation_token": { - "title": "Continuation token", - "description": "Use this token in a subsequent query to obtain the next page. Should not appear if there are no more pages.", - "type": "string" - } - }, - "required": [ - "events" - ] - }, - "RESULT_PAGE_REQUEST": { - "title": "Result page request", - "type": "object", - "properties": { - "continuation_token": { - "title": "Continuation token", - "description": "The token returned from the previous query. If no token is provided the first page is returned.", - "type": "string" - }, - "chunk_size": { - "title": "Chunk size", - "type": "integer", - "minimum": 1 - } - }, - "required": [ - "chunk_size" - ] - }, - "EMITTED_EVENT": { - "title": "Emitted event", - "description": "Event information decorated with metadata on where it was emitted / An event emitted as a result of transaction execution", - "allOf": [ - { - "title": "Event", - "description": "The event information", - "$ref": "#/components/schemas/EVENT" - }, - { - "title": "Event context", - "description": "The event emission information", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "description": "The hash of the block in which the event was emitted", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "description": "The number of the block in which the event was emitted", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "transaction_hash": { - "title": "Transaction hash", - "description": "The transaction that emitted the event", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "block_hash", - "block_number", - "transaction_hash" - ] - } - ] - }, - "EVENT": { - "title": "Event", - "description": "A StarkNet event", - "allOf": [ - { - "title": "Event emitter", - "type": "object", - "properties": { - "from_address": { - "title": "From address", - "$ref": "#/components/schemas/ADDRESS" - } - }, - "required": [ - "from_address" - ] - }, - { - "title": "Event content", - "$ref": "#/components/schemas/EVENT_CONTENT" - } - ] - }, - "EVENT_CONTENT": { - "title": "Event content", - "description": "The content of an event", - "type": "object", - "properties": { - "keys": { - "type": "array", - "title": "Keys", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "data": { - "type": "array", - "title": "Data", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "keys", - "data" - ] - }, - "EVENT_FILTER": { - "title": "Event filter", - "description": "An event filter/query", - "type": "object", - "properties": { - "from_block": { - "title": "from block", - "$ref": "#/components/schemas/BLOCK_ID" - }, - "to_block": { - "title": "to block", - "$ref": "#/components/schemas/BLOCK_ID" - }, - "address": { - "title": "from contract", - "$ref": "#/components/schemas/ADDRESS" - }, - "keys": { - "title": "Keys", - "description": "The values used to filter the events", - "type": "array", - "items": { - "title": "Keys", - "description": "Per key (by position), designate the possible values to be matched for events to be returned. Empty array designates 'any' value", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "required": [] - }, - "BLOCK_ID": { - "title": "Block id", - "description": "Block hash, number or tag", - "oneOf": [ - { - "title": "Block hash", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - } - }, - "required": [ - "block_hash" - ] - }, - { - "title": "Block number", - "type": "object", - "properties": { - "block_number": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "required": [ - "block_number" - ] - }, - { - "title": "Block tag", - "$ref": "#/components/schemas/BLOCK_TAG" - } - ] - }, - "BLOCK_TAG": { - "title": "Block tag", - "type": "string", - "description": "A tag specifying a dynamic reference to a block", - "enum": [ - "latest", - "pending" - ] - }, - "SYNC_STATUS": { - "title": "Sync status", - "type": "object", - "description": "An object describing the node synchronization status", - "properties": { - "starting_block_hash": { - "title": "Starting block hash", - "description": "The hash of the block from which the sync started", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "starting_block_num": { - "title": "Starting block number", - "description": "The number (height) of the block from which the sync started", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "current_block_hash": { - "title": "Current block hash", - "description": "The hash of the current block being synchronized", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "current_block_num": { - "title": "Current block number", - "description": "The number (height) of the current block being synchronized", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "highest_block_hash": { - "title": "Highest block hash", - "description": "The hash of the estimated highest block to be synchronized", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "highest_block_num": { - "title": "Highest block number", - "description": "The number (height) of the estimated highest block to be synchronized", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "required": [ - "starting_block_hash", - "starting_block_num", - "current_block_hash", - "current_block_num", - "highest_block_hash", - "highest_block_num" - ] - }, - "NUM_AS_HEX": { - "title": "Number as hex", - "description": "An integer number in hex format (0x...)", - "type": "string", - "pattern": "^0x[a-fA-F0-9]+$" - }, - "CHAIN_ID": { - "title": "Chain id", - "description": "StarkNet chain id, given in hex representation.", - "type": "string", - "pattern": "^0x[a-fA-F0-9]+$" - }, - "STATE_DIFF": { - "description": "The change in state applied in this block, given as a mapping of addresses to the new values and/or new contracts", - "type": "object", - "properties": { - "storage_diffs": { - "title": "Storage diffs", - "type": "array", - "items": { - "description": "The changes in the storage per contract address", - "$ref": "#/components/schemas/CONTRACT_STORAGE_DIFF_ITEM" - } - }, - "deprecated_declared_classes": { - "title": "Deprecated declared classes", - "type": "array", - "items": { - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "declared_classes": { - "title": "Declared classes", - "type": "array", - "items": { - "title": "New classes", - "type": "object", - "description": "The declared class hash and compiled class hash", - "properties": { - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The Cairo assembly hash corresponding to the declared class", - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "deployed_contracts": { - "title": "Deployed contracts", - "type": "array", - "items": { - "description": "A new contract deployed as part of the state update", - "$ref": "#/components/schemas/DEPLOYED_CONTRACT_ITEM" - } - }, - "replaced_classes": { - "title": "Replaced classes", - "type": "array", - "items": { - "description": "The list of contracts whose class was replaced", - "title": "Replaced class", - "type": "object", - "properties": { - "contract_address": { - "title": "Contract address", - "description": "The address of the contract whose class was replaced", - "$ref": "#/components/schemas/ADDRESS" - }, - "class_hash": { - "title": "Class hash", - "description": "The new class hash", - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "nonces": { - "title": "Nonces", - "type": "array", - "items": { - "title": "Nonce update", - "description": "The updated nonce per contract address", - "type": "object", - "properties": { - "contract_address": { - "title": "Contract address", - "description": "The address of the contract", - "$ref": "#/components/schemas/ADDRESS" - }, - "nonce": { - "title": "Nonce", - "description": "The nonce for the given address at the end of the block", - "$ref": "#/components/schemas/FELT" - } - } - } - } - }, - "required": [ - "storage_diffs", - "deprecated_declared_classes", - "declared_classes", - "replaced_classes", - "deployed_contracts", - "nonces" - ] - }, - "PENDING_STATE_UPDATE": { - "title": "Pending state update", - "description": "Pending state update", - "type": "object", - "properties": { - "old_root": { - "title": "Old root", - "description": "The previous global state root", - "$ref": "#/components/schemas/FELT" - }, - "state_diff": { - "title": "State diff", - "$ref": "#/components/schemas/STATE_DIFF" - } - }, - "required": [ - "old_root", - "state_diff" - ], - "additionalProperties": false - }, - "STATE_UPDATE": { - "title": "State update", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "old_root": { - "title": "Old root", - "description": "The previous global state root", - "$ref": "#/components/schemas/FELT" - }, - "new_root": { - "title": "New root", - "description": "The new global state root", - "$ref": "#/components/schemas/FELT" - }, - "state_diff": { - "title": "State diff", - "$ref": "#/components/schemas/STATE_DIFF" - } - }, - "required": [ - "state_diff", - "block_hash", - "old_root", - "new_root" - ] - }, - "ADDRESS": { - "title": "Address", - "$ref": "#/components/schemas/FELT" - }, - "STORAGE_KEY": { - "type": "string", - "title": "Storage key", - "$comment": "A storage key, represented as a string of hex digits", - "description": "A storage key. Represented as up to 62 hex digits, 3 bits, and 5 leading zeroes.", - "pattern": "^0x0[0-7]{1}[a-fA-F0-9]{0,62}$" - }, - "ETH_ADDRESS": { - "title": "Ethereum address", - "type": "string", - "$comment": "An ethereum address", - "description": "an ethereum address represented as 40 hex digits", - "pattern": "^0x[a-fA-F0-9]{40}$" - }, - "TXN_HASH": { - "$ref": "#/components/schemas/FELT", - "description": "The transaction hash, as assigned in StarkNet", - "title": "Transaction hash" - }, - "FELT": { - "type": "string", - "title": "Field element", - "description": "A field element. represented by at most 63 hex digits", - "pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$" - }, - "BLOCK_NUMBER": { - "title": "Block number", - "description": "The block's number (its height)", - "type": "integer", - "minimum": 0 - }, - "BLOCK_HASH": { - "title": "Block hash", - "$ref": "#/components/schemas/FELT" - }, - "BLOCK_BODY_WITH_TX_HASHES": { - "title": "Block body with transaction hashes", - "type": "object", - "properties": { - "transactions": { - "title": "Transaction hashes", - "description": "The hashes of the transactions included in this block", - "type": "array", - "items": { - "description": "The hash of a single transaction", - "$ref": "#/components/schemas/TXN_HASH" - } - } - }, - "required": [ - "transactions" - ] - }, - "BLOCK_BODY_WITH_TXS": { - "title": "Block body with transactions", - "type": "object", - "properties": { - "transactions": { - "title": "Transactions", - "description": "The transactions in this block", - "type": "array", - "items": { - "title": "transactions in block", - "type": "object", - "allOf": [ - { - "title": "transaction", - "$ref": "#/components/schemas/TXN" - }, - { - "type": "object", - "properties": { - "transaction_hash": { - "title": "transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "transaction_hash" - ] - } - ] - } - } - }, - "required": [ - "transactions" - ] - }, - "BLOCK_HEADER": { - "title": "Block header", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "parent_hash": { - "title": "Parent hash", - "description": "The hash of this block's parent", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "description": "The block number (its height)", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "new_root": { - "title": "New root", - "description": "The new global state root", - "$ref": "#/components/schemas/FELT" - }, - "timestamp": { - "title": "Timestamp", - "description": "The time in which the block was created, encoded in Unix time", - "type": "integer", - "minimum": 0 - }, - "sequencer_address": { - "title": "Sequencer address", - "description": "The StarkNet identity of the sequencer submitting this block", - "$ref": "#/components/schemas/FELT" - }, - "l1_gas_price": { - "title": "L1 gas price", - "description": "The price of l1 gas in the block", - "$ref": "#/components/schemas/RESOURCE_PRICE" - }, - "starknet_version": { - "title": "Starknet version", - "description": "Semver of the current Starknet protocol", - "type": "string" - } - }, - "required": [ - "block_hash", - "parent_hash", - "block_number", - "new_root", - "timestamp", - "sequencer_address", - "l1_gas_price", - "starknet_version" - ] - }, - "PENDING_BLOCK_HEADER": { - "title": "Pending block header", - "type": "object", - "properties": { - "parent_hash": { - "title": "Parent hash", - "description": "The hash of this block's parent", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "timestamp": { - "title": "Timestamp", - "description": "The time in which the block was created, encoded in Unix time", - "type": "integer", - "minimum": 0 - }, - "sequencer_address": { - "title": "Sequencer address", - "description": "The StarkNet identity of the sequencer submitting this block", - "$ref": "#/components/schemas/FELT" - }, - "l1_gas_price": { - "title": "L1 gas price", - "description": "The price of l1 gas in the block", - "$ref": "#/components/schemas/RESOURCE_PRICE" - }, - "starknet_version": { - "title": "Starknet version", - "description": "Semver of the current Starknet protocol", - "type": "string" - } - }, - "required": [ - "parent_hash", - "timestamp", - "sequencer_address", - "l1_gas_price", - "starknet_version" - ], - "additionalProperties": false - }, - "BLOCK_WITH_TX_HASHES": { - "title": "Block with transaction hashes", - "description": "The block object", - "allOf": [ - { - "title": "Block status", - "type": "object", - "properties": { - "status": { - "title": "Status", - "$ref": "#/components/schemas/BLOCK_STATUS" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Block header", - "$ref": "#/components/schemas/BLOCK_HEADER" - }, - { - "title": "Block body with transaction hashes", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TX_HASHES" - } - ] - }, - "BLOCK_WITH_TXS": { - "title": "Block with transactions", - "description": "The block object", - "allOf": [ - { - "title": "block with txs", - "type": "object", - "properties": { - "status": { - "title": "Status", - "$ref": "#/components/schemas/BLOCK_STATUS" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Block header", - "$ref": "#/components/schemas/BLOCK_HEADER" - }, - { - "title": "Block body with transactions", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TXS" - } - ] - }, - "PENDING_BLOCK_WITH_TX_HASHES": { - "title": "Pending block with transaction hashes", - "description": "The dynamic block being constructed by the sequencer. Note that this object will be deprecated upon decentralization.", - "allOf": [ - { - "title": "Block body with transactions hashes", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TX_HASHES" - }, - { - "title": "Pending block header", - "$ref": "#/components/schemas/PENDING_BLOCK_HEADER" - } - ], - "additionalProperties": false - }, - "PENDING_BLOCK_WITH_TXS": { - "title": "Pending block with transactions", - "description": "The dynamic block being constructed by the sequencer. Note that this object will be deprecated upon decentralization.", - "allOf": [ - { - "title": "Block body with transactions", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TXS" - }, - { - "title": "Pending block header", - "$ref": "#/components/schemas/PENDING_BLOCK_HEADER" - } - ], - "additionalProperties": false - }, - "DEPLOYED_CONTRACT_ITEM": { - "title": "Deployed contract item", - "type": "object", - "properties": { - "address": { - "title": "Address", - "description": "The address of the contract", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the contract code", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "address", - "class_hash" - ] - }, - "CONTRACT_STORAGE_DIFF_ITEM": { - "title": "Contract storage diff item", - "type": "object", - "properties": { - "address": { - "title": "Address", - "description": "The contract address for which the storage changed", - "$ref": "#/components/schemas/FELT" - }, - "storage_entries": { - "title": "Storage entries", - "description": "The changes in the storage of the contract", - "type": "array", - "items": { - "title": "Storage diff item", - "type": "object", - "properties": { - "key": { - "title": "Key", - "description": "The key of the changed value", - "$ref": "#/components/schemas/FELT" - }, - "value": { - "title": "Value", - "description": "The new value applied to the given address", - "$ref": "#/components/schemas/FELT" - } - } - } - } - }, - "required": [ - "address", - "storage_entries" - ] - }, - "TXN": { - "title": "Transaction", - "description": "The transaction schema, as it appears inside a block", - "oneOf": [ - { - "title": "Invoke transaction", - "$ref": "#/components/schemas/INVOKE_TXN" - }, - { - "title": "L1 handler transaction", - "$ref": "#/components/schemas/L1_HANDLER_TXN" - }, - { - "title": "Declare transaction", - "$ref": "#/components/schemas/DECLARE_TXN" - }, - { - "title": "Deploy transaction", - "$ref": "#/components/schemas/DEPLOY_TXN" - }, - { - "title": "Deploy account transaction", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN" - } - ] - }, - "SIGNATURE": { - "title": "Signature", - "description": "A transaction signature", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "DECLARE_TXN": { - "title": "Declare transaction", - "oneOf": [ - { - "title": "Declare transaction V0", - "$ref": "#/components/schemas/DECLARE_TXN_V0" - }, - { - "title": "Declare transaction V1", - "$ref": "#/components/schemas/DECLARE_TXN_V1" - }, - { - "title": "Declare transaction V2", - "$ref": "#/components/schemas/DECLARE_TXN_V2" - } - ] - }, - "DECLARE_TXN_V0": { - "title": "Declare Contract Transaction V0", - "description": "Declare Contract Transaction V0", - "allOf": [ - { - "type": "object", - "title": "Declare txn v0", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x0" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "max_fee", - "version", - "signature", - "class_hash" - ] - } - ] - }, - "DECLARE_TXN_V1": { - "title": "Declare Contract Transaction V1", - "description": "Declare Contract Transaction V1", - "allOf": [ - { - "type": "object", - "title": "Declare txn v1", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x1" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "max_fee", - "version", - "signature", - "nonce", - "class_hash" - ] - } - ] - }, - "DECLARE_TXN_V2": { - "title": "Declare Transaction V2", - "description": "Declare Contract Transaction V2", - "allOf": [ - { - "type": "object", - "title": "Declare txn v2", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The hash of the Cairo assembly resulting from the Sierra compilation", - "$ref": "#/components/schemas/FELT" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x2" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "compiled_class_hash", - "max_fee", - "version", - "signature", - "nonce", - "class_hash" - ] - } - ] - }, - "BROADCASTED_TXN": { - "oneOf": [ - { - "$ref": "#/components/schemas/BROADCASTED_INVOKE_TXN" - }, - { - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN" - }, - { - "$ref": "#/components/schemas/BROADCASTED_DEPLOY_ACCOUNT_TXN" - } - ] - }, - "BROADCASTED_INVOKE_TXN": { - "title": "Broadcasted invoke transaction", - "oneOf": [ - { - "title": "Broadcasted invoke transaction V0", - "$ref": "#/components/schemas/INVOKE_TXN_V0" - }, - { - "title": "Broadcasted invoke transaction V1", - "$ref": "#/components/schemas/INVOKE_TXN_V1" - } - ] - }, - "BROADCASTED_DEPLOY_ACCOUNT_TXN": { - "title": "Broadcasted deploy account transaction", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN" - }, - "BROADCASTED_DECLARE_TXN": { - "title": "Broadcasted declare transaction", - "oneOf": [ - { - "title": "Broadcasted declare transaction V1", - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN_V1" - }, - { - "title": "Broadcasted declare transaction V2", - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN_V2" - } - ] - }, - "BROADCASTED_DECLARE_TXN_V1": { - "title": "Broadcasted declare contract transaction V1", - "allOf": [ - { - "type": "object", - "title": "Declare txn v1", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "contract_class": { - "title": "Contract class", - "description": "The class to be declared", - "$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS" - } - }, - "required": [ - "type", - "sender_address", - "max_fee", - "version", - "signature", - "nonce", - "contract_class" - ] - } - ] - }, - "BROADCASTED_DECLARE_TXN_V2": { - "title": "Broadcasted declare Transaction V2", - "description": "Broadcasted declare Contract Transaction V2", - "allOf": [ - { - "type": "object", - "title": "Declare txn v2", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The hash of the Cairo assembly resulting from the Sierra compilation", - "$ref": "#/components/schemas/FELT" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "contract_class": { - "title": "Contract class", - "description": "The class to be declared", - "$ref": "#/components/schemas/CONTRACT_CLASS" - } - }, - "required": [ - "type", - "sender_address", - "compiled_class_hash", - "max_fee", - "version", - "signature", - "nonce", - "contract_class" - ] - } - ] - }, - "DEPLOY_ACCOUNT_TXN": { - "title": "Deploy account transaction", - "description": "deploys a new account contract", - "oneOf": [ - { - "title": "Deploy account V1", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN_V1" - } - ] - }, - "DEPLOY_ACCOUNT_TXN_V1": { - "title": "Deploy account transaction", - "description": "Deploys an account contract, charges fee from the pre-funded account addresses", - "properties": { - "type": { - "title": "Deploy account", - "type": "string", - "enum": [ - "DEPLOY_ACCOUNT" - ] - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "contract_address_salt": { - "title": "Contract address salt", - "description": "The salt for the address of the deployed contract", - "$ref": "#/components/schemas/FELT" - }, - "constructor_calldata": { - "type": "array", - "description": "The parameters passed to the constructor", - "title": "Constructor calldata", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the deployed contract's class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "max_fee", - "version", - "signature", - "nonce", - "type", - "contract_address_salt", - "constructor_calldata", - "class_hash" - ] - }, - "DEPLOY_TXN": { - "title": "Deploy Contract Transaction", - "description": "The structure of a deploy transaction. Note that this transaction type is deprecated and will no longer be supported in future versions", - "allOf": [ - { - "type": "object", - "title": "Deploy txn", - "properties": { - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "type": { - "title": "Deploy", - "type": "string", - "enum": [ - "DEPLOY" - ] - }, - "contract_address_salt": { - "description": "The salt for the address of the deployed contract", - "title": "Contract address salt", - "$ref": "#/components/schemas/FELT" - }, - "constructor_calldata": { - "type": "array", - "title": "Constructor calldata", - "description": "The parameters passed to the constructor", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the deployed contract's class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "version", - "type", - "constructor_calldata", - "contract_address_salt", - "class_hash" - ] - } - ] - }, - "INVOKE_TXN_V0": { - "title": "Invoke transaction V0", - "description": "invokes a specific function in the desired contract (not necessarily an account)", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x0" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "contract_address": { - "title": "Contract address", - "$ref": "#/components/schemas/ADDRESS" - }, - "entry_point_selector": { - "title": "Entry point selector", - "$ref": "#/components/schemas/FELT" - }, - "calldata": { - "title": "Calldata", - "type": "array", - "description": "The parameters passed to the function", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "type", - "contract_address", - "entry_point_selector", - "calldata", - "max_fee", - "version", - "signature" - ] - }, - "INVOKE_TXN_V1": { - "title": "Invoke transaction V1", - "description": "initiates a transaction from a given account", - "allOf": [ - { - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - }, - "sender_address": { - "title": "sender address", - "$ref": "#/components/schemas/ADDRESS" - }, - "calldata": { - "type": "array", - "title": "calldata", - "description": "The data expected by the account's `execute` function (in most use cases, this includes the called contract address and a function selector)", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "calldata", - "max_fee", - "version", - "signature", - "nonce" - ] - } - ] - }, - "INVOKE_TXN": { - "title": "Invoke transaction", - "description": "Initiate a transaction from an account", - "oneOf": [ - { - "title": "Invoke transaction V0", - "$ref": "#/components/schemas/INVOKE_TXN_V0" - }, - { - "title": "Invoke transaction V1", - "$ref": "#/components/schemas/INVOKE_TXN_V1" - } - ] - }, - "L1_HANDLER_TXN": { - "title": "L1 Handler transaction", - "allOf": [ - { - "type": "object", - "title": "L1 handler transaction", - "description": "a call to an l1_handler on an L2 contract induced by a message from L1", - "properties": { - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "type": { - "title": "type", - "type": "string", - "enum": [ - "L1_HANDLER" - ] - }, - "nonce": { - "title": "Nonce", - "description": "The L1->L2 message nonce field of the SN Core L1 contract at the time the transaction was sent", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": [ - "version", - "type", - "nonce" - ] - }, - { - "title": "Function call", - "$ref": "#/components/schemas/FUNCTION_CALL" - } - ] - }, - "COMMON_RECEIPT_PROPERTIES": { - "title": "Common receipt properties", - "description": "Common properties for a transaction receipt", - "type": "object", - "properties": { - "transaction_hash": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH", - "description": "The hash identifying the transaction" - }, - "actual_fee": { - "title": "Actual fee", - "$ref": "#/components/schemas/FELT", - "description": "The fee that was charged by the sequencer" - }, - "execution_status": { - "title": "Execution status", - "$ref": "#/components/schemas/TXN_EXECUTION_STATUS" - }, - "finality_status": { - "title": "Finality status", - "$ref": "#/components/schemas/TXN_FINALITY_STATUS" - }, - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "messages_sent": { - "type": "array", - "title": "Messages sent", - "items": { - "$ref": "#/components/schemas/MSG_TO_L1" - } - }, - "revert_reason": { - "title": "Revert reason", - "name": "revert reason", - "description": "the revert reason for the failed execution", - "type": "string" - }, - "events": { - "description": "The events emitted as part of this transaction", - "title": "Events", - "type": "array", - "items": { - "$ref": "#/components/schemas/EVENT" - } - }, - "execution_resources": { - "title": "Execution resources", - "description": "The resources consumed by the transaction", - "$ref": "#/components/schemas/EXECUTION_RESOURCES" - } - }, - "required": [ - "transaction_hash", - "actual_fee", - "finality_status", - "execution_status", - "block_hash", - "block_number", - "messages_sent", - "events", - "execution_resources" - ] - }, - "INVOKE_TXN_RECEIPT": { - "title": "Invoke Transaction Receipt", - "allOf": [ - { - "title": "Type", - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - } - }, - "required": [ - "type" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "PENDING_INVOKE_TXN_RECEIPT": { - "title": "Invoke Transaction Receipt", - "allOf": [ - { - "title": "Type", - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - } - }, - "required": [ - "type" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/PENDING_COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "DECLARE_TXN_RECEIPT": { - "title": "Declare Transaction Receipt", - "allOf": [ - { - "title": "Declare txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - } - }, - "required": [ - "type" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "PENDING_DECLARE_TXN_RECEIPT": { - "title": "Declare Transaction Receipt", - "allOf": [ - { - "title": "Declare txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - } - }, - "required": [ - "type" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/PENDING_COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "DEPLOY_ACCOUNT_TXN_RECEIPT": { - "title": "Deploy Account Transaction Receipt", - "allOf": [ - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - }, - { - "title": "DeployAccount txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Deploy account", - "type": "string", - "enum": [ - "DEPLOY_ACCOUNT" - ] - }, - "contract_address": { - "title": "Contract address", - "description": "The address of the deployed contract", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "contract_address" - ] - } - ] - }, - "PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT": { - "title": "Deploy Account Transaction Receipt", - "allOf": [ - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/PENDING_COMMON_RECEIPT_PROPERTIES" - }, - { - "title": "DeployAccount txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Deploy account", - "type": "string", - "enum": [ - "DEPLOY_ACCOUNT" - ] - }, - "contract_address": { - "title": "Contract address", - "description": "The address of the deployed contract", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "contract_address" - ] - } - ] - }, - "DEPLOY_TXN_RECEIPT": { - "title": "Deploy Transaction Receipt", - "allOf": [ - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - }, - { - "title": "Deploy txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Deploy", - "type": "string", - "enum": [ - "DEPLOY" - ] - }, - "contract_address": { - "title": "Contract address", - "description": "The address of the deployed contract", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "contract_address" - ] - } - ] - }, - "L1_HANDLER_TXN_RECEIPT": { - "title": "L1 Handler Transaction Receipt", - "description": "receipt for l1 handler transaction", - "allOf": [ - { - "title": "Transaction type", - "type": "object", - "properties": { - "type": { - "title": "type", - "type": "string", - "enum": [ - "L1_HANDLER" - ] - }, - "message_hash": { - "title": "Message hash", - "description": "The message hash as it appears on the L1 core contract", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": [ - "type", - "message_hash" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "PENDING_L1_HANDLER_TXN_RECEIPT": { - "title": "L1 Handler Transaction Receipt", - "description": "receipt for l1 handler transaction", - "allOf": [ - { - "title": "Transaction type", - "type": "object", - "properties": { - "type": { - "title": "type", - "type": "string", - "enum": [ - "L1_HANDLER" - ] - }, - "message_hash": { - "title": "Message hash", - "description": "The message hash as it appears on the L1 core contract", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": [ - "type", - "message_hash" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/PENDING_COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "TXN_RECEIPT": { - "title": "Transaction Receipt", - "oneOf": [ - { - "title": "Invoke transaction receipt", - "$ref": "#/components/schemas/INVOKE_TXN_RECEIPT" - }, - { - "title": "L1 handler transaction receipt", - "$ref": "#/components/schemas/L1_HANDLER_TXN_RECEIPT" - }, - { - "title": "Declare transaction receipt", - "$ref": "#/components/schemas/DECLARE_TXN_RECEIPT" - }, - { - "title": "Deploy transaction receipt", - "$ref": "#/components/schemas/DEPLOY_TXN_RECEIPT" - }, - { - "title": "Deploy account transaction receipt", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN_RECEIPT" - } - ] - }, - "PENDING_TXN_RECEIPT": { - "title": "Transaction Receipt", - "oneOf": [ - { - "title": "Pending Invoke transaction receipt", - "$ref": "#/components/schemas/PENDING_INVOKE_TXN_RECEIPT" - }, - { - "title": "Pending L1 handler transaction receipt", - "$ref": "#/components/schemas/PENDING_L1_HANDLER_TXN_RECEIPT" - }, - { - "title": "Pending Declare transaction receipt", - "$ref": "#/components/schemas/PENDING_DECLARE_TXN_RECEIPT" - }, - { - "title": "Pending Deploy account transaction receipt", - "$ref": "#/components/schemas/PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT" - } - ] - }, - "PENDING_COMMON_RECEIPT_PROPERTIES": { - "title": "Pending common receipt properties", - "description": "Common properties for a pending transaction receipt", - "type": "object", - "properties": { - "transaction_hash": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH", - "description": "The hash identifying the transaction" - }, - "actual_fee": { - "title": "Actual fee", - "$ref": "#/components/schemas/FELT", - "description": "The fee that was charged by the sequencer" - }, - "type": { - "title": "Transaction type", - "$ref": "#/components/schemas/TXN_TYPE" - }, - "messages_sent": { - "type": "array", - "title": "Messages sent", - "items": { - "$ref": "#/components/schemas/MSG_TO_L1" - } - }, - "events": { - "description": "The events emitted as part of this transaction", - "title": "Events", - "type": "array", - "items": { - "$ref": "#/components/schemas/EVENT" - } - }, - "revert_reason": { - "title": "Revert reason", - "name": "revert reason", - "description": "the revert reason for the failed execution", - "type": "string" - }, - "finality_status": { - "title": "Finality status", - "type": "string", - "enum": [ - "ACCEPTED_ON_L2" - ], - "description": "The finality status of the transaction" - }, - "execution_status": { - "title": "Execution status", - "$ref": "#/components/schemas/TXN_EXECUTION_STATUS" - }, - "execution_resources": { - "title": "Execution resources", - "description": "The resources consumed by the transaction", - "$ref": "#/components/schemas/EXECUTION_RESOURCES" - } - }, - "required": [ - "transaction_hash", - "actual_fee", - "type", - "messages_sent", - "events", - "finality_status", - "execution_status", - "execution_resources" - ] - }, - "MSG_TO_L1": { - "title": "Message to L1", - "type": "object", - "properties": { - "from_address": { - "description": "The address of the L2 contract sending the message", - "$ref": "#/components/schemas/FELT" - }, - "to_address": { - "title": "To address", - "description": "The target L1 address the message is sent to", - "$ref": "#/components/schemas/FELT" - }, - "payload": { - "description": "The payload of the message", - "title": "Payload", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "from_address", - "to_address", - "payload" - ] - }, - "MSG_FROM_L1": { - "title": "Message from L1", - "type": "object", - "properties": { - "from_address": { - "description": "The address of the L1 contract sending the message", - "$ref": "#/components/schemas/ETH_ADDRESS" - }, - "to_address": { - "title": "To address", - "description": "The target L2 address the message is sent to", - "$ref": "#/components/schemas/ADDRESS" - }, - "entry_point_selector": { - "title": "Selector", - "description": "The selector of the l1_handler in invoke in the target contract", - "$ref": "#/components/schemas/FELT" - }, - "payload": { - "description": "The payload of the message", - "title": "Payload", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "from_address", - "to_address", - "payload", - "entry_point_selector" - ] - }, - "TXN_STATUS": { - "title": "Transaction status", - "type": "string", - "enum": [ - "RECEIVED", - "REJECTED", - "ACCEPTED_ON_L2", - "ACCEPTED_ON_L1" - ], - "description": "The finality status of the transaction, including the case the txn is still in the mempool or failed validation during the block construction phase" - }, - "TXN_FINALITY_STATUS": { - "title": "Finality status", - "type": "string", - "enum": [ - "ACCEPTED_ON_L2", - "ACCEPTED_ON_L1" - ], - "description": "The finality status of the transaction" - }, - "TXN_EXECUTION_STATUS": { - "title": "Execution status", - "type": "string", - "enum": [ - "SUCCEEDED", - "REVERTED" - ], - "description": "The execution status of the transaction" - }, - "TXN_TYPE": { - "title": "Transaction type", - "type": "string", - "enum": [ - "DECLARE", - "DEPLOY", - "DEPLOY_ACCOUNT", - "INVOKE", - "L1_HANDLER" - ], - "description": "The type of the transaction" - }, - "BLOCK_STATUS": { - "title": "Block status", - "type": "string", - "enum": [ - "PENDING", - "ACCEPTED_ON_L2", - "ACCEPTED_ON_L1", - "REJECTED" - ], - "description": "The status of the block" - }, - "FUNCTION_CALL": { - "title": "Function call", - "type": "object", - "description": "Function call information", - "properties": { - "contract_address": { - "title": "Contract address", - "$ref": "#/components/schemas/ADDRESS" - }, - "entry_point_selector": { - "title": "Entry point selector", - "$ref": "#/components/schemas/FELT" - }, - "calldata": { - "title": "Calldata", - "type": "array", - "description": "The parameters passed to the function", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "contract_address", - "entry_point_selector", - "calldata" - ] - }, - "CONTRACT_CLASS": { - "title": "Contract class", - "type": "object", - "properties": { - "sierra_program": { - "title": "Sierra program", - "type": "array", - "description": "The list of Sierra instructions of which the program consists", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "contract_class_version": { - "title": "Contract class version", - "type": "string", - "description": "The version of the contract class object. Currently, the Starknet OS supports version 0.1.0" - }, - "entry_points_by_type": { - "title": "Entry points by type", - "type": "object", - "properties": { - "CONSTRUCTOR": { - "type": "array", - "title": "Constructor", - "items": { - "$ref": "#/components/schemas/SIERRA_ENTRY_POINT" - } - }, - "EXTERNAL": { - "title": "External", - "type": "array", - "items": { - "$ref": "#/components/schemas/SIERRA_ENTRY_POINT" - } - }, - "L1_HANDLER": { - "title": "L1 handler", - "type": "array", - "items": { - "$ref": "#/components/schemas/SIERRA_ENTRY_POINT" - } - } - }, - "required": [ - "CONSTRUCTOR", - "EXTERNAL", - "L1_HANDLER" - ] - }, - "abi": { - "title": "ABI", - "type": "string", - "description": "The class ABI, as supplied by the user declaring the class" - } - }, - "required": [ - "sierra_program", - "contract_class_version", - "entry_points_by_type" - ] - }, - "DEPRECATED_CONTRACT_CLASS": { - "title": "Deprecated contract class", - "description": "The definition of a StarkNet contract class", - "type": "object", - "properties": { - "program": { - "type": "string", - "title": "Program", - "description": "A base64 representation of the compressed program code", - "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$" - }, - "entry_points_by_type": { - "type": "object", - "title": "Deprecated entry points by type", - "properties": { - "CONSTRUCTOR": { - "type": "array", - "title": "Deprecated constructor", - "items": { - "$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - }, - "EXTERNAL": { - "type": "array", - "title": "Deprecated external", - "items": { - "$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - }, - "L1_HANDLER": { - "type": "array", - "title": "Deprecated L1 handler", - "items": { - "$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - } - } - }, - "abi": { - "title": "Contract ABI", - "$ref": "#/components/schemas/CONTRACT_ABI" - } - }, - "required": [ - "program", - "entry_points_by_type" - ] - }, - "DEPRECATED_CAIRO_ENTRY_POINT": { - "title": "Deprecated Cairo entry point", - "type": "object", - "properties": { - "offset": { - "title": "Offset", - "description": "The offset of the entry point in the program", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "selector": { - "title": "Selector", - "description": "A unique identifier of the entry point (function) in the program", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "offset", - "selector" - ] - }, - "SIERRA_ENTRY_POINT": { - "title": "Sierra entry point", - "type": "object", - "properties": { - "selector": { - "title": "Selector", - "description": "A unique identifier of the entry point (function) in the program", - "$ref": "#/components/schemas/FELT" - }, - "function_idx": { - "title": "Function index", - "description": "The index of the function in the program", - "type": "integer" - } - }, - "required": [ - "selector", - "function_idx" - ] - }, - "CONTRACT_ABI": { - "title": "Contract ABI", - "type": "array", - "items": { - "$ref": "#/components/schemas/CONTRACT_ABI_ENTRY" - } - }, - "CONTRACT_ABI_ENTRY": { - "title": "Contract ABI entry", - "oneOf": [ - { - "title": "Function ABI entry", - "$ref": "#/components/schemas/FUNCTION_ABI_ENTRY" - }, - { - "title": "Event ABI entry", - "$ref": "#/components/schemas/EVENT_ABI_ENTRY" - }, - { - "title": "Struct ABI entry", - "$ref": "#/components/schemas/STRUCT_ABI_ENTRY" - } - ] - }, - "STRUCT_ABI_TYPE": { - "title": "Struct ABI type", - "type": "string", - "enum": [ - "struct" - ] - }, - "EVENT_ABI_TYPE": { - "title": "Event ABI type", - "type": "string", - "enum": [ - "event" - ] - }, - "FUNCTION_ABI_TYPE": { - "title": "Function ABI type", - "type": "string", - "enum": [ - "function", - "l1_handler", - "constructor" - ] - }, - "STRUCT_ABI_ENTRY": { - "title": "Struct ABI entry", - "type": "object", - "properties": { - "type": { - "title": "Struct ABI type", - "$ref": "#/components/schemas/STRUCT_ABI_TYPE" - }, - "name": { - "title": "Struct name", - "description": "The struct name", - "type": "string" - }, - "size": { - "title": "Size", - "type": "integer", - "minimum": 1 - }, - "members": { - "type": "array", - "title": "Members", - "items": { - "$ref": "#/components/schemas/STRUCT_MEMBER" - } - } - }, - "required": [ - "type", - "name", - "size", - "members" - ] - }, - "STRUCT_MEMBER": { - "title": "Struct member", - "allOf": [ - { - "title": "Typed parameter", - "$ref": "#/components/schemas/TYPED_PARAMETER" - }, - { - "type": "object", - "title": "Offset", - "properties": { - "offset": { - "title": "Offset", - "description": "offset of this property within the struct", - "type": "integer" - } - } - } - ] - }, - "EVENT_ABI_ENTRY": { - "title": "Event ABI entry", - "type": "object", - "properties": { - "type": { - "title": "Event ABI type", - "$ref": "#/components/schemas/EVENT_ABI_TYPE" - }, - "name": { - "title": "Event name", - "description": "The event name", - "type": "string" - }, - "keys": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - }, - "data": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - } - }, - "required": [ - "type", - "name", - "keys", - "data" - ] - }, - "FUNCTION_STATE_MUTABILITY": { - "title": "Function state mutability type", - "type": "string", - "enum": [ - "view" - ] - }, - "FUNCTION_ABI_ENTRY": { - "title": "Function ABI entry", - "type": "object", - "properties": { - "type": { - "title": "Function ABI type", - "$ref": "#/components/schemas/FUNCTION_ABI_TYPE" - }, - "name": { - "title": "Function name", - "description": "The function name", - "type": "string" - }, - "inputs": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - }, - "outputs": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - }, - "stateMutability": { - "title": "Function state mutability", - "$ref": "#/components/schemas/FUNCTION_STATE_MUTABILITY" - } - }, - "required": [ - "type", - "name", - "inputs", - "outputs" - ] - }, - "TYPED_PARAMETER": { - "title": "Typed parameter", - "type": "object", - "properties": { - "name": { - "title": "Parameter name", - "description": "The parameter's name", - "type": "string" - }, - "type": { - "title": "Parameter type", - "description": "The parameter's type", - "type": "string" - } - }, - "required": [ - "name", - "type" - ] - }, - "FEE_ESTIMATE": { - "title": "Fee estimation", - "type": "object", - "properties": { - "gas_consumed": { - "title": "Gas consumed", - "description": "The Ethereum gas cost of the transaction (see https://docs.starknet.io/learn/protocol/fees for more info)", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "gas_price": { - "title": "Gas price", - "description": "The gas price (in gwei) that was used in the cost estimation", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "overall_fee": { - "title": "Overall fee", - "description": "The estimated fee for the transaction (in gwei), product of gas_consumed and gas_price", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": [ - "gas_consumed", - "gas_price", - "overall_fee" - ] - }, - "DA_MODE": { - "title": "DA mode", - "type": "string", - "description": "Specifies a storage domain in Starknet. Each domain has different guarantees regarding availability", - "enum": [ - "L1", - "L2" - ] - }, - "RESOURCE_LIMITS": { - "type": "object", - "properties": { - "max_amount": { - "title": "max amount", - "description": "the max amount of the resource that can be used in the tx", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "max_price_per_unit": { - "title": "max price", - "description": "the max price per unit of this resource for this tx", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": [ - "max_amount", - "max_price_per_unit" - ] - }, - "RESOURCE_PRICE": { - "type": "object", - "properties": { - "price_in_strk": { - "title": "price in strk", - "description": "the price of one unit of the given resource, denominated in strk", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "price_in_wei": { - "title": "price in wei", - "description": "the price of one unit of the given resource, denominated in wei", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": [ - "price_in_wei" - ] - }, - "EXECUTION_RESOURCES": { - "title": "Execution resources", - "description": "The resources consumed by the transaction", - "type": "object", - "properties": { - "steps": { - "title": "Steps", - "description": "The number of Cairo steps used", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "memory_holes": { - "title": "Memory holes", - "description": "The number of unused memory cells (each cell is roughly equivalent to a step)", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "range_check_builtin_applications": { - "title": "Range check applications", - "description": "The number of RANGE_CHECK builtin instances", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "pedersen_builtin_applications": { - "title": "Pedersen applications", - "description": "The number of Pedersen builtin instances", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "poseidon_builtin_applications": { - "title": "Poseidon applications", - "description": "The number of Poseidon builtin instances", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "ec_op_builtin_applications": { - "title": "EC_OP applications", - "description": "the number of EC_OP builtin instances", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "ecdsa_builtin_applications": { - "title": "ECDSA applications", - "description": "the number of ECDSA builtin instances", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "bitwise_builtin_applications": { - "title": "BITWISE applications", - "description": "the number of BITWISE builtin instances", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "keccak_builtin_applications": { - "title": "Keccak applications", - "description": "The number of KECCAK builtin instances", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": [ - "steps", - "range_check_builtin_applications", - "pedersen_builtin_applications", - "poseidon_builtin_applications", - "ec_op_builtin_applications", - "ecdsa_builtin_applications", - "bitwise_builtin_applications", - "keccak_builtin_applications" - ] - } - }, - "errors": { - "FAILED_TO_RECEIVE_TXN": { - "code": 1, - "message": "Failed to write transaction" - }, - "CONTRACT_NOT_FOUND": { - "code": 20, - "message": "Contract not found" - }, - "BLOCK_NOT_FOUND": { - "code": 24, - "message": "Block not found" - }, - "INVALID_TXN_INDEX": { - "code": 27, - "message": "Invalid transaction index in a block" - }, - "CLASS_HASH_NOT_FOUND": { - "code": 28, - "message": "Class hash not found" - }, - "TXN_HASH_NOT_FOUND": { - "code": 29, - "message": "Transaction hash not found" - }, - "PAGE_SIZE_TOO_BIG": { - "code": 31, - "message": "Requested page size is too big" - }, - "NO_BLOCKS": { - "code": 32, - "message": "There are no blocks" - }, - "INVALID_CONTINUATION_TOKEN": { - "code": 33, - "message": "The supplied continuation token is invalid or unknown" - }, - "TOO_MANY_KEYS_IN_FILTER": { - "code": 34, - "message": "Too many keys provided in a filter" - }, - "CONTRACT_ERROR": { - "code": 40, - "message": "Contract error", - "data": { - "type": "object", - "description": "More data about the execution failure", - "properties": { - "revert_error": { - "title": "revert error", - "description": "a string encoding the execution trace up to the point of failure", - "type": "string" - } - }, - "required": "revert_error" - } - } - } - } -} diff --git a/specs/rpc/v05/starknet_trace_api_openrpc.json b/specs/rpc/v05/starknet_trace_api_openrpc.json deleted file mode 100644 index 5ba00befc2..0000000000 --- a/specs/rpc/v05/starknet_trace_api_openrpc.json +++ /dev/null @@ -1,490 +0,0 @@ -{ - "openrpc": "1.0.0-rc1", - "info": { - "version": "0.5.1", - "title": "StarkNet Trace API", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_traceTransaction", - "summary": "For a given executed transaction, return the trace of its execution, including internal calls", - "description": "Returns the execution trace of the transaction designated by the input hash", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the transaction to trace", - "required": true, - "schema": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "trace", - "description": "The function call trace of the transaction designated by the given hash", - "schema": { - "$ref": "#/components/schemas/TRANSACTION_TRACE" - } - }, - "errors": [ - { - "$ref": "#/components/errors/INVALID_TXN_HASH" - }, - { - "$ref": "#/components/errors/NO_TRACE_AVAILABLE" - } - ] - }, - { - "name": "starknet_simulateTransactions", - "summary": "simulate a given sequence of transactions on the requested state, and generate the execution traces. If one of the transactions is reverted, raises CONTRACT_ERROR.", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "transactions", - "description": "The transactions to simulate", - "required": true, - "schema": { - "type": "array", - "description": "a sequence of transactions to simulate, running each transaction on the state resulting from applying all the previous ones", - "items": { - "$ref": "#/components/schemas/BROADCASTED_TXN" - } - } - }, - { - "name": "simulation_flags", - "description": "describes what parts of the transaction should be executed", - "required": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SIMULATION_FLAG" - } - } - } - ], - "result": { - "name": "simulated_transactions", - "description": "The execution trace and consumed resources of the required transactions", - "schema": { - "type": "array", - "items": { - "schema": { - "type": "object", - "properties": { - "transaction_trace": { - "title": "the transaction's trace", - "$ref": "#/components/schemas/TRANSACTION_TRACE" - }, - "fee_estimation": { - "title": "the transaction's resources and fee", - "$ref": "#/components/schemas/FEE_ESTIMATE" - } - } - } - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_traceBlockTransactions", - "summary": "Retrieve traces for all transactions in the given block", - "description": "Returns the execution traces of all transactions included in the given block", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "traces", - "description": "The traces of all transactions in the block", - "schema": { - "type": "array", - "items": { - "type": "object", - "description": "A single pair of transaction hash and corresponding trace", - "properties": { - "transaction_hash": { - "$ref": "#/components/schemas/FELT" - }, - "trace_root": { - "$ref": "#/components/schemas/TRANSACTION_TRACE" - } - } - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "TRANSACTION_TRACE": { - "oneOf": [ - { - "name": "INVOKE_TXN_TRACE", - "type": "object", - "description": "the execution trace of an invoke transaction", - "properties": { - "validate_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "execute_invocation": { - "description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)", - "oneOf": [ - { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - { - "type": "object", - "properties": { - "revert_reason": { - "name": "revert reason", - "description": "the revert reason for the failed execution", - "type": "string" - } - } - } - ] - }, - "fee_transfer_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "state_diff": { - "title": "state_diff", - "description": "the state diffs induced by the transaction", - "$ref": "#/components/schemas/STATE_DIFF" - }, - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - } - }, - "required": [ - "type", - "execute_invocation" - ] - }, - { - "name": "DECLARE_TXN_TRACE", - "type": "object", - "description": "the execution trace of a declare transaction", - "properties": { - "validate_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "fee_transfer_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "state_diff": { - "title": "state_diff", - "description": "the state diffs induced by the transaction", - "$ref": "#/components/schemas/STATE_DIFF" - }, - "type": { - "title": "Type", - "type": "string", - "enum": [ - "DECLARE" - ] - } - }, - "required": [ - "type" - ] - }, - { - "name": "DEPLOY_ACCOUNT_TXN_TRACE", - "type": "object", - "description": "the execution trace of a deploy account transaction", - "properties": { - "validate_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "constructor_invocation": { - "description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)", - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "fee_transfer_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "state_diff": { - "title": "state_diff", - "description": "the state diffs induced by the transaction", - "$ref": "#/components/schemas/STATE_DIFF" - }, - "type": { - "title": "Type", - "type": "string", - "enum": [ - "DEPLOY_ACCOUNT" - ] - } - }, - "required": [ - "type", - "constructor_invocation" - ] - }, - { - "name": "L1_HANDLER_TXN_TRACE", - "type": "object", - "description": "the execution trace of an L1 handler transaction", - "properties": { - "function_invocation": { - "description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)", - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "state_diff": { - "title": "state_diff", - "description": "the state diffs induced by the transaction", - "$ref": "#/components/schemas/STATE_DIFF" - }, - "type": { - "title": "Type", - "type": "string", - "enum": [ - "L1_HANDLER" - ] - } - }, - "required": [ - "type", - "function_invocation" - ] - } - ] - }, - "SIMULATION_FLAG": { - "type": "string", - "enum": [ - "SKIP_VALIDATE", - "SKIP_FEE_CHARGE" - ], - "description": "Flags that indicate how to simulate a given transaction. By default, the sequencer behavior is replicated locally (enough funds are expected to be in the account, and fee will be deducted from the balance before the simulation of the next transaction). To skip the fee charge, use the SKIP_FEE_CHARGE flag." - }, - "NESTED_CALL": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "FUNCTION_INVOCATION": { - "allOf": [ - { - "$ref": "#/components/schemas/FUNCTION_CALL" - }, - { - "type": "object", - "properties": { - "caller_address": { - "title": "Caller Address", - "description": "The address of the invoking contract. 0 for the root invocation", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the class being called", - "$ref": "#/components/schemas/FELT" - }, - "entry_point_type": { - "$ref": "#/components/schemas/ENTRY_POINT_TYPE" - }, - "call_type": { - "$ref": "#/components/schemas/CALL_TYPE" - }, - "result": { - "title": "Invocation Result", - "description": "The value returned from the function invocation", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "calls": { - "title": "Nested Calls", - "description": "The calls made by this invocation", - "type": "array", - "items": { - "$ref": "#/components/schemas/NESTED_CALL" - } - }, - "events": { - "title": "Invocation Events", - "description": "The events emitted in this invocation", - "type": "array", - "items": { - "$ref": "#/components/schemas/ORDERED_EVENT" - } - }, - "messages": { - "title": "L1 Messages", - "description": "The messages sent by this invocation to L1", - "type": "array", - "items": { - "$ref": "#/components/schemas/ORDERED_MESSAGE" - } - } - }, - "required": [ - "caller_address", - "class_hash", - "entry_point_type", - "call_type", - "result", - "calls", - "events", - "messages" - ] - } - ] - }, - "ENTRY_POINT_TYPE": { - "type": "string", - "enum": [ - "EXTERNAL", - "L1_HANDLER", - "CONSTRUCTOR" - ] - }, - "CALL_TYPE": { - "type": "string", - "enum": [ - "DELEGATE", - "LIBRARY_CALL", - "CALL" - ] - }, - "ORDERED_EVENT": { - "type": "object", - "title": "orderedEvent", - "description": "an event alongside its order within the transaction", - "allOf": [ - { - "type": "object", - "properties": { - "order": { - "title": "order", - "description": "the order of the event within the transaction", - "type": "number" - } - } - }, - { - "$ref": "#/components/schemas/EVENT" - } - ] - }, - "ORDERED_MESSAGE": { - "type": "object", - "title": "orderedMessage", - "description": "a message alongside its order within the transaction", - "allOf": [ - { - "type": "object", - "properties": { - "order": { - "title": "order", - "description": "the order of the message within the transaction", - "type": "number" - } - } - }, - { - "$ref": "#/components/schemas/MSG_TO_L1" - } - ] - }, - "FELT": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/FELT" - }, - "FUNCTION_CALL": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/FUNCTION_CALL" - }, - "EVENT": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/EVENT_CONTENT" - }, - "MSG_TO_L1": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/MSG_TO_L1" - }, - "BLOCK_ID": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/BLOCK_ID" - }, - "FEE_ESTIMATE": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/FEE_ESTIMATE" - }, - "BROADCASTED_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_TXN" - }, - "STATE_DIFF": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/STATE_DIFF" - } - }, - "errors": { - "NO_TRACE_AVAILABLE": { - "code": 10, - "message": "No trace available for transaction", - "data": { - "type": "object", - "description": "Extra information on why trace is not available. Either it wasn't executed yet (RECEIVED), or the transaction failed (REJECTED)", - "properties": { - "status": { - "type": "string", - "enum": [ - "RECEIVED", - "REJECTED" - ] - } - } - } - }, - "CONTRACT_NOT_FOUND": { - "code": 20, - "message": "Contract not found" - }, - "INVALID_TXN_HASH": { - "code": 25, - "message": "Invalid transaction hash" - }, - "BLOCK_NOT_FOUND": { - "code": 24, - "message": "Invalid block hash" - }, - "CONTRACT_ERROR": { - "code": 40, - "message": "Contract error" - } - } - } -} diff --git a/specs/rpc/v05/starknet_write_api.json b/specs/rpc/v05/starknet_write_api.json deleted file mode 100644 index 446b3954bd..0000000000 --- a/specs/rpc/v05/starknet_write_api.json +++ /dev/null @@ -1,298 +0,0 @@ -{ - "openrpc": "1.0.0-rc1", - "info": { - "version": "0.5.1", - "title": "StarkNet Node Write API", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_addInvokeTransaction", - "summary": "Submit a new transaction to be added to the chain", - "params": [ - { - "name": "invoke_transaction", - "description": "The information needed to invoke the function (or account, for version 1 transactions)", - "required": true, - "schema": { - "$ref": "#/components/schemas/BROADCASTED_INVOKE_TXN" - } - } - ], - "result": { - "name": "result", - "description": "The result of the transaction submission", - "schema": { - "type": "object", - "properties": { - "transaction_hash": { - "title": "The hash of the invoke transaction", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "transaction_hash" - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/INSUFFICIENT_ACCOUNT_BALANCE" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_MAX_FEE" - }, - { - "$ref": "#/components/errors/INVALID_TRANSACTION_NONCE" - }, - { - "$ref": "#/components/errors/VALIDATION_FAILURE" - }, - { - "$ref": "#/components/errors/NON_ACCOUNT" - }, - { - "$ref": "#/components/errors/DUPLICATE_TX" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_TX_VERSION" - }, - { - "$ref": "#/components/errors/UNEXPECTED_ERROR" - } - ] - }, - { - "name": "starknet_addDeclareTransaction", - "summary": "Submit a new class declaration transaction", - "params": [ - { - "name": "declare_transaction", - "description": "Declare transaction required to declare a new class on Starknet", - "required": true, - "schema": { - "title": "Declare transaction", - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN" - } - } - ], - "result": { - "name": "result", - "description": "The result of the transaction submission", - "schema": { - "type": "object", - "properties": { - "transaction_hash": { - "title": "The hash of the declare transaction", - "$ref": "#/components/schemas/TXN_HASH" - }, - "class_hash": { - "title": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "transaction_hash", - "class_hash" - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/CLASS_ALREADY_DECLARED" - }, - { - "$ref": "#/components/errors/COMPILATION_FAILED" - }, - { - "$ref": "#/components/errors/COMPILED_CLASS_HASH_MISMATCH" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_ACCOUNT_BALANCE" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_MAX_FEE" - }, - { - "$ref": "#/components/errors/INVALID_TRANSACTION_NONCE" - }, - { - "$ref": "#/components/errors/VALIDATION_FAILURE" - }, - { - "$ref": "#/components/errors/NON_ACCOUNT" - }, - { - "$ref": "#/components/errors/DUPLICATE_TX" - }, - { - "$ref": "#/components/errors/CONTRACT_CLASS_SIZE_IS_TOO_LARGE" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_TX_VERSION" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_CONTRACT_CLASS_VERSION" - }, - { - "$ref": "#/components/errors/UNEXPECTED_ERROR" - } - ] - }, - { - "name": "starknet_addDeployAccountTransaction", - "summary": "Submit a new deploy account transaction", - "params": [ - { - "name": "deploy_account_transaction", - "description": "The deploy account transaction", - "required": true, - "schema": { - "$ref": "#/components/schemas/BROADCASTED_DEPLOY_ACCOUNT_TXN" - } - } - ], - "result": { - "name": "result", - "description": "The result of the transaction submission", - "schema": { - "type": "object", - "properties": { - "transaction_hash": { - "title": "The hash of the deploy transaction", - "$ref": "#/components/schemas/TXN_HASH" - }, - "contract_address": { - "title": "The address of the new contract", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "transaction_hash", - "contract_address" - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/INSUFFICIENT_ACCOUNT_BALANCE" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_MAX_FEE" - }, - { - "$ref": "#/components/errors/INVALID_TRANSACTION_NONCE" - }, - { - "$ref": "#/components/errors/VALIDATION_FAILURE" - }, - { - "$ref": "#/components/errors/NON_ACCOUNT" - }, - { - "$ref": "#/components/errors/CLASS_HASH_NOT_FOUND" - }, - { - "$ref": "#/components/errors/DUPLICATE_TX" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_TX_VERSION" - }, - { - "$ref": "#/components/errors/UNEXPECTED_ERROR" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "NUM_AS_HEX": { - "title": "An integer number in hex format (0x...)", - "type": "string", - "pattern": "^0x[a-fA-F0-9]+$" - }, - "SIGNATURE": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/SIGNATURE" - }, - "FELT": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/FELT" - }, - "TXN_HASH": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/TXN_HASH" - }, - "BROADCASTED_INVOKE_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_INVOKE_TXN" - }, - "DECLARE_TXN": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/DECLARE_TXN" - }, - "BROADCASTED_DEPLOY_ACCOUNT_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_DEPLOY_ACCOUNT_TXN" - }, - "FUNCTION_CALL": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/FUNCTION_CALL" - } - }, - "errors": { - "CLASS_HASH_NOT_FOUND": { - "code": 28, - "message": "Class hash not found" - }, - "CLASS_ALREADY_DECLARED": { - "code": 51, - "message": "Class already declared" - }, - "INVALID_TRANSACTION_NONCE": { - "code": 52, - "message": "Invalid transaction nonce" - }, - "INSUFFICIENT_MAX_FEE": { - "code": 53, - "message": "Max fee is smaller than the minimal transaction cost (validation plus fee transfer)" - }, - "INSUFFICIENT_ACCOUNT_BALANCE": { - "code": 54, - "message": "Account balance is smaller than the transaction's max_fee" - }, - "VALIDATION_FAILURE": { - "code": 55, - "message": "Account validation failed" - }, - "COMPILATION_FAILED": { - "code": 56, - "message": "Compilation failed" - }, - "CONTRACT_CLASS_SIZE_IS_TOO_LARGE": { - "code": 57, - "message": "Contract class size it too large" - }, - "NON_ACCOUNT": { - "code": 58, - "message": "Sender address in not an account contract" - }, - "DUPLICATE_TX": { - "code": 59, - "message": "A transaction with the same hash already exists in the mempool" - }, - "COMPILED_CLASS_HASH_MISMATCH": { - "code": 60, - "message": "the compiled class hash did not match the one supplied in the transaction" - }, - "UNSUPPORTED_TX_VERSION": { - "code": 61, - "message": "the transaction version is not supported" - }, - "UNSUPPORTED_CONTRACT_CLASS_VERSION": { - "code": 62, - "message": "the contract class version is not supported" - }, - "UNEXPECTED_ERROR": { - "code": 63, - "message": "An unexpected error occurred", - "data": "string" - } - } - } -} \ No newline at end of file diff --git a/specs/rpc/v06/starknet_api_openrpc.json b/specs/rpc/v06/starknet_api_openrpc.json deleted file mode 100644 index affa095217..0000000000 --- a/specs/rpc/v06/starknet_api_openrpc.json +++ /dev/null @@ -1,3945 +0,0 @@ -{ - "openrpc": "1.0.0-rc1", - "info": { - "version": "0.6.0", - "title": "StarkNet Node API", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_specVersion", - "summary": "Returns the version of the Starknet JSON-RPC specification being used", - "params": [], - "result": { - "name": "result", - "description": "Semver of Starknet's JSON-RPC spec being used", - "required": true, - "schema": { - "title": "JSON-RPC spec version", - "type": "string" - } - } - }, - { - "name": "starknet_getBlockWithTxHashes", - "summary": "Get block information with transaction hashes given the block id", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The resulting block information with transaction hashes", - "schema": { - "title": "Starknet get block hash with tx hashes result", - "oneOf": [ - { - "title": "Block with transaction hashes", - "$ref": "#/components/schemas/BLOCK_WITH_TX_HASHES" - }, - { - "title": "Pending block with transaction hashes", - "$ref": "#/components/schemas/PENDING_BLOCK_WITH_TX_HASHES" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getBlockWithTxs", - "summary": "Get block information with full transactions given the block id", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The resulting block information with full transactions", - "schema": { - "title": "Starknet get block with txs result", - "oneOf": [ - { - "title": "Block with transactions", - "$ref": "#/components/schemas/BLOCK_WITH_TXS" - }, - { - "title": "Pending block with transactions", - "$ref": "#/components/schemas/PENDING_BLOCK_WITH_TXS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getStateUpdate", - "summary": "Get the information about the result of executing the requested block", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The information about the state update of the requested block", - "schema": { - "title": "Starknet get state update result", - "oneOf": [ - { - "title": "State update", - "$ref": "#/components/schemas/STATE_UPDATE" - }, - { - "title": "Pending state update", - "$ref": "#/components/schemas/PENDING_STATE_UPDATE" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getStorageAt", - "summary": "Get the value of the storage at the given address and key", - "params": [ - { - "name": "contract_address", - "description": "The address of the contract to read from", - "summary": "The address of the contract to read from", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - }, - { - "name": "key", - "description": "The key to the storage value for the given contract", - "summary": "The key to the storage value for the given contract", - "required": true, - "schema": { - "title": "Storage key", - "$ref": "#/components/schemas/STORAGE_KEY" - } - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The value at the given key for the given contract. 0 if no value is found", - "summary": "The value at the given key for the given contract.", - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getTransactionStatus", - "summary": "Gets the transaction status (possibly reflecting that the tx is still in the mempool, or dropped from it)", - "paramStructure": "by-name", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the requested transaction", - "required": true, - "schema": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "result", - "schema": { - "title": "Transaction status", - "type": "object", - "properties": { - "finality_status": { - "title": "finality status", - "$ref": "#/components/schemas/TXN_STATUS" - }, - "execution_status": { - "title": "execution status", - "$ref": "#/components/schemas/TXN_EXECUTION_STATUS" - } - }, - "required": [ - "finality_status" - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getTransactionByHash", - "summary": "Get the details and status of a submitted transaction", - "paramStructure": "by-name", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the requested transaction", - "required": true, - "schema": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "result", - "schema": { - "title": "Transaction", - "allOf": [ - { - "$ref": "#/components/schemas/TXN" - }, - { - "type": "object", - "properties": { - "transaction_hash": { - "title": "transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "transaction_hash" - ] - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getTransactionByBlockIdAndIndex", - "summary": "Get the details of a transaction by a given block id and index", - "description": "Get the details of the transaction given by the identified block and index in that block. If no transaction is found, null is returned.", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "index", - "summary": "The index in the block to search for the transaction", - "required": true, - "schema": { - "title": "Index", - "type": "integer", - "minimum": 0 - } - } - ], - "result": { - "name": "transactionResult", - "schema": { - "title": "Transaction", - "allOf": [ - { - "$ref": "#/components/schemas/TXN" - }, - { - "type": "object", - "properties": { - "transaction_hash": { - "title": "transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "transaction_hash" - ] - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/INVALID_TXN_INDEX" - } - ] - }, - { - "name": "starknet_getTransactionReceipt", - "summary": "Get the transaction receipt by the transaction hash", - "paramStructure": "by-name", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the requested transaction", - "required": true, - "schema": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "result", - "schema": { - "oneOf": [ - { - "title": "Transaction receipt", - "$ref": "#/components/schemas/TXN_RECEIPT" - }, - { - "title": "Pending transaction receipt", - "$ref": "#/components/schemas/PENDING_TXN_RECEIPT" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getClass", - "summary": "Get the contract class definition in the given block associated with the given hash", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "class_hash", - "description": "The hash of the requested contract class", - "required": true, - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - } - ], - "result": { - "name": "result", - "description": "The contract class, if found", - "schema": { - "title": "Starknet get class result", - "oneOf": [ - { - "title": "Deprecated contract class", - "$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS" - }, - { - "title": "Contract class", - "$ref": "#/components/schemas/CONTRACT_CLASS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CLASS_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getClassHashAt", - "summary": "Get the contract class hash in the given block for the contract deployed at the given address", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "contract_address", - "description": "The address of the contract whose class hash will be returned", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - } - ], - "result": { - "name": "result", - "description": "The class hash of the given contract", - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getClassAt", - "summary": "Get the contract class definition in the given block at the given address", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "contract_address", - "description": "The address of the contract whose class definition will be returned", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - } - ], - "result": { - "name": "result", - "description": "The contract class", - "schema": { - "title": "Starknet get class at result", - "oneOf": [ - { - "title": "Deprecated contract class", - "$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS" - }, - { - "title": "Contract class", - "$ref": "#/components/schemas/CONTRACT_CLASS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getBlockTransactionCount", - "summary": "Get the number of transactions in a block given a block id", - "description": "Returns the number of transactions in the designated block.", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The number of transactions in the designated block", - "summary": "The number of transactions in the designated block", - "schema": { - "title": "Block transaction count", - "type": "integer", - "minimum": 0 - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_call", - "summary": "call a starknet function without creating a StarkNet transaction", - "description": "Calls a function in a contract and returns the return value. Using this call will not create a transaction; hence, will not change the state", - "params": [ - { - "name": "request", - "summary": "The details of the function call", - "schema": { - "title": "Function call", - "$ref": "#/components/schemas/FUNCTION_CALL" - }, - "required": true - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "summary": "The function's return value", - "description": "The function's return value, as defined in the Cairo output", - "schema": { - "type": "array", - "title": "Field element", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_estimateFee", - "summary": "estimate the fee for of StarkNet transactions", - "description": "Estimates the resources required by a given sequence of transactions when applied on a given state. If one of the transactions reverts or fails due to any reason (e.g. validation failure or an internal error), a TRANSACTION_EXECUTION_ERROR is returned. For v0-2 transactions the estimate is given in wei, and for v3 transactions it is given in fri.", - "params": [ - { - "name": "request", - "summary": "The transaction to estimate", - "schema": { - "type": "array", - "description": "a sequence of transactions to estimate, running each transaction on the state resulting from applying all the previous ones", - "title": "Transaction", - "items": { - "$ref": "#/components/schemas/BROADCASTED_TXN" - } - }, - "required": true - }, - { - "name": "simulation_flags", - "description": "describes what parts of the transaction should be executed", - "required": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SIMULATION_FLAG_FOR_ESTIMATE_FEE" - } - } - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "the fee estimations", - "schema": { - "title": "Estimation", - "type": "array", - "description": "a sequence of fee estimation where the i'th estimate corresponds to the i'th transaction", - "items": { - "$ref": "#/components/schemas/FEE_ESTIMATE" - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/TRANSACTION_EXECUTION_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_estimateMessageFee", - "summary": "estimate the L2 fee of a message sent on L1", - "description": "estimates the resources required by the l1_handler transaction induced by the message", - "params": [ - { - "name": "message", - "description": "the message's parameters", - "schema": { - "$ref": "#/components/schemas/MSG_FROM_L1" - }, - "required": true - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "the fee estimation", - "schema": { - "$ref": "#/components/schemas/FEE_ESTIMATE" - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_blockNumber", - "summary": "Get the most recent accepted block number", - "params": [], - "result": { - "name": "result", - "description": "The latest block number", - "schema": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "errors": [ - { - "$ref": "#/components/errors/NO_BLOCKS" - } - ] - }, - { - "name": "starknet_blockHashAndNumber", - "summary": "Get the most recent accepted block hash and number", - "params": [], - "result": { - "name": "result", - "description": "The latest block hash and number", - "schema": { - "title": "Starknet block hash and number result", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "required": [ - "block_hash", - "block_number" - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/NO_BLOCKS" - } - ] - }, - { - "name": "starknet_chainId", - "summary": "Return the currently configured StarkNet chain id", - "params": [], - "result": { - "name": "result", - "description": "The chain id this node is connected to", - "schema": { - "title": "Chain id", - "$ref": "#/components/schemas/CHAIN_ID" - } - } - }, - { - "name": "starknet_syncing", - "summary": "Returns an object about the sync status, or false if the node is not synching", - "params": [], - "result": { - "name": "syncing", - "summary": "The state of the synchronization, or false if the node is not synchronizing", - "description": "The status of the node, if it is currently synchronizing state. FALSE otherwise", - "schema": { - "title": "SyncingStatus", - "oneOf": [ - { - "type": "boolean", - "title": "False", - "description": "only legal value is FALSE here" - }, - { - "title": "Sync status", - "$ref": "#/components/schemas/SYNC_STATUS" - } - ] - } - } - }, - { - "name": "starknet_getEvents", - "summary": "Returns all events matching the given filter", - "description": "Returns all event objects matching the conditions in the provided filter", - "params": [ - { - "name": "filter", - "summary": "The conditions used to filter the returned events", - "required": true, - "schema": { - "title": "Events request", - "allOf": [ - { - "title": "Event filter", - "$ref": "#/components/schemas/EVENT_FILTER" - }, - { - "title": "Result page request", - "$ref": "#/components/schemas/RESULT_PAGE_REQUEST" - } - ] - } - } - ], - "result": { - "name": "events", - "description": "All the event objects matching the filter", - "schema": { - "title": "Events chunk", - "$ref": "#/components/schemas/EVENTS_CHUNK" - } - }, - "errors": [ - { - "$ref": "#/components/errors/PAGE_SIZE_TOO_BIG" - }, - { - "$ref": "#/components/errors/INVALID_CONTINUATION_TOKEN" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/TOO_MANY_KEYS_IN_FILTER" - } - ] - }, - { - "name": "starknet_getNonce", - "summary": "Get the nonce associated with the given address in the given block", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "contract_address", - "description": "The address of the contract whose nonce we're seeking", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - } - ], - "result": { - "name": "result", - "description": "The contract's nonce at the requested state", - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "EVENTS_CHUNK": { - "title": "Events chunk", - "type": "object", - "properties": { - "events": { - "type": "array", - "title": "Matching Events", - "items": { - "$ref": "#/components/schemas/EMITTED_EVENT" - } - }, - "continuation_token": { - "title": "Continuation token", - "description": "Use this token in a subsequent query to obtain the next page. Should not appear if there are no more pages.", - "type": "string" - } - }, - "required": [ - "events" - ] - }, - "RESULT_PAGE_REQUEST": { - "title": "Result page request", - "type": "object", - "properties": { - "continuation_token": { - "title": "Continuation token", - "description": "The token returned from the previous query. If no token is provided the first page is returned.", - "type": "string" - }, - "chunk_size": { - "title": "Chunk size", - "type": "integer", - "minimum": 1 - } - }, - "required": [ - "chunk_size" - ] - }, - "EMITTED_EVENT": { - "title": "Emitted event", - "description": "Event information decorated with metadata on where it was emitted / An event emitted as a result of transaction execution", - "allOf": [ - { - "title": "Event", - "description": "The event information", - "$ref": "#/components/schemas/EVENT" - }, - { - "title": "Event context", - "description": "The event emission information", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "description": "The hash of the block in which the event was emitted", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "description": "The number of the block in which the event was emitted", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "transaction_hash": { - "title": "Transaction hash", - "description": "The transaction that emitted the event", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "transaction_hash" - ] - } - ] - }, - "EVENT": { - "title": "Event", - "description": "A StarkNet event", - "allOf": [ - { - "title": "Event emitter", - "type": "object", - "properties": { - "from_address": { - "title": "From address", - "$ref": "#/components/schemas/ADDRESS" - } - }, - "required": [ - "from_address" - ] - }, - { - "title": "Event content", - "$ref": "#/components/schemas/EVENT_CONTENT" - } - ] - }, - "EVENT_CONTENT": { - "title": "Event content", - "description": "The content of an event", - "type": "object", - "properties": { - "keys": { - "type": "array", - "title": "Keys", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "data": { - "type": "array", - "title": "Data", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "keys", - "data" - ] - }, - "EVENT_FILTER": { - "title": "Event filter", - "description": "An event filter/query", - "type": "object", - "properties": { - "from_block": { - "title": "from block", - "$ref": "#/components/schemas/BLOCK_ID" - }, - "to_block": { - "title": "to block", - "$ref": "#/components/schemas/BLOCK_ID" - }, - "address": { - "title": "from contract", - "$ref": "#/components/schemas/ADDRESS" - }, - "keys": { - "title": "Keys", - "description": "The values used to filter the events", - "type": "array", - "items": { - "title": "Keys", - "description": "Per key (by position), designate the possible values to be matched for events to be returned. Empty array designates 'any' value", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "required": [] - }, - "BLOCK_ID": { - "title": "Block id", - "description": "Block hash, number or tag", - "oneOf": [ - { - "title": "Block hash", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - } - }, - "required": [ - "block_hash" - ] - }, - { - "title": "Block number", - "type": "object", - "properties": { - "block_number": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "required": [ - "block_number" - ] - }, - { - "title": "Block tag", - "$ref": "#/components/schemas/BLOCK_TAG" - } - ] - }, - "BLOCK_TAG": { - "title": "Block tag", - "type": "string", - "description": "A tag specifying a dynamic reference to a block", - "enum": [ - "latest", - "pending" - ] - }, - "SYNC_STATUS": { - "title": "Sync status", - "type": "object", - "description": "An object describing the node synchronization status", - "properties": { - "starting_block_hash": { - "title": "Starting block hash", - "description": "The hash of the block from which the sync started", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "starting_block_num": { - "title": "Starting block number", - "description": "The number (height) of the block from which the sync started", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "current_block_hash": { - "title": "Current block hash", - "description": "The hash of the current block being synchronized", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "current_block_num": { - "title": "Current block number", - "description": "The number (height) of the current block being synchronized", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "highest_block_hash": { - "title": "Highest block hash", - "description": "The hash of the estimated highest block to be synchronized", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "highest_block_num": { - "title": "Highest block number", - "description": "The number (height) of the estimated highest block to be synchronized", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "required": [ - "starting_block_hash", - "starting_block_num", - "current_block_hash", - "current_block_num", - "highest_block_hash", - "highest_block_num" - ] - }, - "NUM_AS_HEX": { - "title": "Number as hex", - "description": "An integer number in hex format (0x...)", - "type": "string", - "pattern": "^0x[a-fA-F0-9]+$" - }, - "u64": { - "type": "string", - "title": "u64", - "description": "64 bit integers, represented by hex string of length at most 16", - "pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,15})$" - }, - "u128": { - "type": "string", - "title": "u128", - "description": "64 bit integers, represented by hex string of length at most 32", - "pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,31})$" - }, - "CHAIN_ID": { - "title": "Chain id", - "description": "StarkNet chain id, given in hex representation.", - "type": "string", - "pattern": "^0x[a-fA-F0-9]+$" - }, - "STATE_DIFF": { - "description": "The change in state applied in this block, given as a mapping of addresses to the new values and/or new contracts", - "type": "object", - "properties": { - "storage_diffs": { - "title": "Storage diffs", - "type": "array", - "items": { - "description": "The changes in the storage per contract address", - "$ref": "#/components/schemas/CONTRACT_STORAGE_DIFF_ITEM" - } - }, - "deprecated_declared_classes": { - "title": "Deprecated declared classes", - "type": "array", - "items": { - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "declared_classes": { - "title": "Declared classes", - "type": "array", - "items": { - "title": "New classes", - "type": "object", - "description": "The declared class hash and compiled class hash", - "properties": { - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The Cairo assembly hash corresponding to the declared class", - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "deployed_contracts": { - "title": "Deployed contracts", - "type": "array", - "items": { - "description": "A new contract deployed as part of the state update", - "$ref": "#/components/schemas/DEPLOYED_CONTRACT_ITEM" - } - }, - "replaced_classes": { - "title": "Replaced classes", - "type": "array", - "items": { - "description": "The list of contracts whose class was replaced", - "title": "Replaced class", - "type": "object", - "properties": { - "contract_address": { - "title": "Contract address", - "description": "The address of the contract whose class was replaced", - "$ref": "#/components/schemas/ADDRESS" - }, - "class_hash": { - "title": "Class hash", - "description": "The new class hash", - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "nonces": { - "title": "Nonces", - "type": "array", - "items": { - "title": "Nonce update", - "description": "The updated nonce per contract address", - "type": "object", - "properties": { - "contract_address": { - "title": "Contract address", - "description": "The address of the contract", - "$ref": "#/components/schemas/ADDRESS" - }, - "nonce": { - "title": "Nonce", - "description": "The nonce for the given address at the end of the block", - "$ref": "#/components/schemas/FELT" - } - } - } - } - }, - "required": [ - "storage_diffs", - "deprecated_declared_classes", - "declared_classes", - "replaced_classes", - "deployed_contracts", - "nonces" - ] - }, - "PENDING_STATE_UPDATE": { - "title": "Pending state update", - "description": "Pending state update", - "type": "object", - "properties": { - "old_root": { - "title": "Old root", - "description": "The previous global state root", - "$ref": "#/components/schemas/FELT" - }, - "state_diff": { - "title": "State diff", - "$ref": "#/components/schemas/STATE_DIFF" - } - }, - "required": [ - "old_root", - "state_diff" - ], - "additionalProperties": false - }, - "STATE_UPDATE": { - "title": "State update", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "old_root": { - "title": "Old root", - "description": "The previous global state root", - "$ref": "#/components/schemas/FELT" - }, - "new_root": { - "title": "New root", - "description": "The new global state root", - "$ref": "#/components/schemas/FELT" - }, - "state_diff": { - "title": "State diff", - "$ref": "#/components/schemas/STATE_DIFF" - } - }, - "required": [ - "state_diff", - "block_hash", - "old_root", - "new_root" - ] - }, - "ADDRESS": { - "title": "Address", - "$ref": "#/components/schemas/FELT" - }, - "STORAGE_KEY": { - "type": "string", - "title": "Storage key", - "$comment": "A storage key, represented as a string of hex digits", - "description": "A storage key. Represented as up to 62 hex digits, 3 bits, and 5 leading zeroes.", - "pattern": "^0x0[0-7]{1}[a-fA-F0-9]{0,62}$" - }, - "ETH_ADDRESS": { - "title": "Ethereum address", - "type": "string", - "$comment": "An ethereum address", - "description": "an ethereum address represented as 40 hex digits", - "pattern": "^0x[a-fA-F0-9]{40}$" - }, - "TXN_HASH": { - "$ref": "#/components/schemas/FELT", - "description": "The transaction hash, as assigned in StarkNet", - "title": "Transaction hash" - }, - "FELT": { - "type": "string", - "title": "Field element", - "description": "A field element. represented by at most 63 hex digits", - "pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$" - }, - "BLOCK_NUMBER": { - "title": "Block number", - "description": "The block's number (its height)", - "type": "integer", - "minimum": 0 - }, - "BLOCK_HASH": { - "title": "Block hash", - "$ref": "#/components/schemas/FELT" - }, - "BLOCK_BODY_WITH_TX_HASHES": { - "title": "Block body with transaction hashes", - "type": "object", - "properties": { - "transactions": { - "title": "Transaction hashes", - "description": "The hashes of the transactions included in this block", - "type": "array", - "items": { - "description": "The hash of a single transaction", - "$ref": "#/components/schemas/TXN_HASH" - } - } - }, - "required": [ - "transactions" - ] - }, - "BLOCK_BODY_WITH_TXS": { - "title": "Block body with transactions", - "type": "object", - "properties": { - "transactions": { - "title": "Transactions", - "description": "The transactions in this block", - "type": "array", - "items": { - "title": "transactions in block", - "type": "object", - "allOf": [ - { - "title": "transaction", - "$ref": "#/components/schemas/TXN" - }, - { - "type": "object", - "properties": { - "transaction_hash": { - "title": "transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "transaction_hash" - ] - } - ] - } - } - }, - "required": [ - "transactions" - ] - }, - "BLOCK_HEADER": { - "title": "Block header", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "parent_hash": { - "title": "Parent hash", - "description": "The hash of this block's parent", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "description": "The block number (its height)", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "new_root": { - "title": "New root", - "description": "The new global state root", - "$ref": "#/components/schemas/FELT" - }, - "timestamp": { - "title": "Timestamp", - "description": "The time in which the block was created, encoded in Unix time", - "type": "integer", - "minimum": 0 - }, - "sequencer_address": { - "title": "Sequencer address", - "description": "The StarkNet identity of the sequencer submitting this block", - "$ref": "#/components/schemas/FELT" - }, - "l1_gas_price": { - "title": "L1 gas price", - "description": "The price of l1 gas in the block", - "$ref": "#/components/schemas/RESOURCE_PRICE" - }, - "starknet_version": { - "title": "Starknet version", - "description": "Semver of the current Starknet protocol", - "type": "string" - } - }, - "required": [ - "block_hash", - "parent_hash", - "block_number", - "new_root", - "timestamp", - "sequencer_address", - "l1_gas_price", - "starknet_version" - ] - }, - "PENDING_BLOCK_HEADER": { - "title": "Pending block header", - "type": "object", - "properties": { - "parent_hash": { - "title": "Parent hash", - "description": "The hash of this block's parent", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "timestamp": { - "title": "Timestamp", - "description": "The time in which the block was created, encoded in Unix time", - "type": "integer", - "minimum": 0 - }, - "sequencer_address": { - "title": "Sequencer address", - "description": "The StarkNet identity of the sequencer submitting this block", - "$ref": "#/components/schemas/FELT" - }, - "l1_gas_price": { - "title": "L1 gas price", - "description": "The price of l1 gas in the block", - "$ref": "#/components/schemas/RESOURCE_PRICE" - }, - "starknet_version": { - "title": "Starknet version", - "description": "Semver of the current Starknet protocol", - "type": "string" - } - }, - "required": [ - "parent_hash", - "timestamp", - "sequencer_address", - "l1_gas_price", - "starknet_version" - ], - "not": { - "required": [ - "block_hash", - "block_number", - "new_root" - ] - } - }, - "BLOCK_WITH_TX_HASHES": { - "title": "Block with transaction hashes", - "description": "The block object", - "allOf": [ - { - "title": "Block status", - "type": "object", - "properties": { - "status": { - "title": "Status", - "$ref": "#/components/schemas/BLOCK_STATUS" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Block header", - "$ref": "#/components/schemas/BLOCK_HEADER" - }, - { - "title": "Block body with transaction hashes", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TX_HASHES" - } - ] - }, - "BLOCK_WITH_TXS": { - "title": "Block with transactions", - "description": "The block object", - "allOf": [ - { - "title": "block with txs", - "type": "object", - "properties": { - "status": { - "title": "Status", - "$ref": "#/components/schemas/BLOCK_STATUS" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Block header", - "$ref": "#/components/schemas/BLOCK_HEADER" - }, - { - "title": "Block body with transactions", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TXS" - } - ] - }, - "PENDING_BLOCK_WITH_TX_HASHES": { - "title": "Pending block with transaction hashes", - "description": "The dynamic block being constructed by the sequencer. Note that this object will be deprecated upon decentralization.", - "allOf": [ - { - "title": "Block body with transactions hashes", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TX_HASHES" - }, - { - "title": "Pending block header", - "$ref": "#/components/schemas/PENDING_BLOCK_HEADER" - } - ] - }, - "PENDING_BLOCK_WITH_TXS": { - "title": "Pending block with transactions", - "description": "The dynamic block being constructed by the sequencer. Note that this object will be deprecated upon decentralization.", - "allOf": [ - { - "title": "Block body with transactions", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TXS" - }, - { - "title": "Pending block header", - "$ref": "#/components/schemas/PENDING_BLOCK_HEADER" - } - ] - }, - "DEPLOYED_CONTRACT_ITEM": { - "title": "Deployed contract item", - "type": "object", - "properties": { - "address": { - "title": "Address", - "description": "The address of the contract", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the contract code", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "address", - "class_hash" - ] - }, - "CONTRACT_STORAGE_DIFF_ITEM": { - "title": "Contract storage diff item", - "type": "object", - "properties": { - "address": { - "title": "Address", - "description": "The contract address for which the storage changed", - "$ref": "#/components/schemas/FELT" - }, - "storage_entries": { - "title": "Storage entries", - "description": "The changes in the storage of the contract", - "type": "array", - "items": { - "title": "Storage diff item", - "type": "object", - "properties": { - "key": { - "title": "Key", - "description": "The key of the changed value", - "$ref": "#/components/schemas/FELT" - }, - "value": { - "title": "Value", - "description": "The new value applied to the given address", - "$ref": "#/components/schemas/FELT" - } - } - } - } - }, - "required": [ - "address", - "storage_entries" - ] - }, - "TXN": { - "title": "Transaction", - "description": "The transaction schema, as it appears inside a block", - "oneOf": [ - { - "title": "Invoke transaction", - "$ref": "#/components/schemas/INVOKE_TXN" - }, - { - "title": "L1 handler transaction", - "$ref": "#/components/schemas/L1_HANDLER_TXN" - }, - { - "title": "Declare transaction", - "$ref": "#/components/schemas/DECLARE_TXN" - }, - { - "title": "Deploy transaction", - "$ref": "#/components/schemas/DEPLOY_TXN" - }, - { - "title": "Deploy account transaction", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN" - } - ] - }, - "SIGNATURE": { - "title": "Signature", - "description": "A transaction signature", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "DECLARE_TXN": { - "title": "Declare transaction", - "oneOf": [ - { - "title": "Declare transaction V0", - "$ref": "#/components/schemas/DECLARE_TXN_V0" - }, - { - "title": "Declare transaction V1", - "$ref": "#/components/schemas/DECLARE_TXN_V1" - }, - { - "title": "Declare transaction V2", - "$ref": "#/components/schemas/DECLARE_TXN_V2" - }, - { - "title": "Declare transaction V3", - "$ref": "#/components/schemas/DECLARE_TXN_V3" - } - ] - }, - "DECLARE_TXN_V0": { - "title": "Declare Contract Transaction V0", - "description": "Declare Contract Transaction V0", - "allOf": [ - { - "type": "object", - "title": "Declare txn v0", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x0", - "0x100000000000000000000000000000000" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "max_fee", - "version", - "signature", - "class_hash" - ] - } - ] - }, - "DECLARE_TXN_V1": { - "title": "Declare Contract Transaction V1", - "description": "Declare Contract Transaction V1", - "allOf": [ - { - "type": "object", - "title": "Declare txn v1", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x1", - "0x100000000000000000000000000000001" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "max_fee", - "version", - "signature", - "nonce", - "class_hash" - ] - } - ] - }, - "DECLARE_TXN_V2": { - "title": "Declare Transaction V2", - "description": "Declare Contract Transaction V2", - "allOf": [ - { - "type": "object", - "title": "Declare txn v2", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The hash of the Cairo assembly resulting from the Sierra compilation", - "$ref": "#/components/schemas/FELT" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x2", - "0x100000000000000000000000000000002" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "compiled_class_hash", - "max_fee", - "version", - "signature", - "nonce", - "class_hash" - ] - } - ] - }, - "DECLARE_TXN_V3": { - "title": "Declare Transaction V3", - "description": "Declare Contract Transaction V3", - "allOf": [ - { - "type": "object", - "title": "Declare txn v3", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The hash of the Cairo assembly resulting from the Sierra compilation", - "$ref": "#/components/schemas/FELT" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x3", - "0x100000000000000000000000000000003" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - }, - "resource_bounds": { - "title": "Resource bounds", - "description": "resource bounds for the transaction execution", - "$ref": "#/components/schemas/RESOURCE_BOUNDS_MAPPING" - }, - "tip": { - "title": "Tip", - "$ref": "#/components/schemas/u64", - "description": "the tip for the transaction" - }, - "paymaster_data": { - "title": "Paymaster data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to allow the paymaster to pay for the transaction in native tokens" - }, - "account_deployment_data": { - "title": "Account deployment data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to deploy the account contract from which this tx will be initiated" - }, - "nonce_data_availability_mode": { - "title": "Nonce DA mode", - "description": "The storage domain of the account's nonce (an account has a nonce per DA mode)", - "$ref": "#/components/schemas/DA_MODE" - }, - "fee_data_availability_mode": { - "title": "Fee DA mode", - "description": "The storage domain of the account's balance from which fee will be charged", - "$ref": "#/components/schemas/DA_MODE" - } - }, - "required": [ - "type", - "sender_address", - "compiled_class_hash", - "version", - "signature", - "nonce", - "class_hash", - "resource_bounds", - "tip", - "paymaster_data", - "account_deployment_data", - "nonce_data_availability_mode", - "fee_data_availability_mode" - ] - } - ] - }, - "BROADCASTED_TXN": { - "oneOf": [ - { - "$ref": "#/components/schemas/BROADCASTED_INVOKE_TXN" - }, - { - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN" - }, - { - "$ref": "#/components/schemas/BROADCASTED_DEPLOY_ACCOUNT_TXN" - } - ] - }, - "BROADCASTED_INVOKE_TXN": { - "title": "Broadcasted invoke transaction", - "$ref": "#/components/schemas/INVOKE_TXN" - }, - "BROADCASTED_DEPLOY_ACCOUNT_TXN": { - "title": "Broadcasted deploy account transaction", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN" - }, - "BROADCASTED_DECLARE_TXN": { - "title": "Broadcasted declare transaction", - "oneOf": [ - { - "title": "Broadcasted declare transaction V1", - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN_V1" - }, - { - "title": "Broadcasted declare transaction V2", - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN_V2" - }, - { - "title": "Broadcasted declare transaction V3", - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN_V3" - } - ] - }, - "BROADCASTED_DECLARE_TXN_V1": { - "title": "Broadcasted declare contract transaction V1", - "allOf": [ - { - "type": "object", - "title": "Declare txn v1", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x1", - "0x100000000000000000000000000000001" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "contract_class": { - "title": "Contract class", - "description": "The class to be declared", - "$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS" - } - }, - "required": [ - "type", - "sender_address", - "max_fee", - "version", - "signature", - "nonce", - "contract_class" - ] - } - ] - }, - "BROADCASTED_DECLARE_TXN_V2": { - "title": "Broadcasted declare Transaction V2", - "description": "Broadcasted declare Contract Transaction V2", - "allOf": [ - { - "type": "object", - "title": "Declare txn v2", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The hash of the Cairo assembly resulting from the Sierra compilation", - "$ref": "#/components/schemas/FELT" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x2", - "0x100000000000000000000000000000002" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "contract_class": { - "title": "Contract class", - "description": "The class to be declared", - "$ref": "#/components/schemas/CONTRACT_CLASS" - } - }, - "required": [ - "type", - "sender_address", - "compiled_class_hash", - "max_fee", - "version", - "signature", - "nonce", - "contract_class" - ] - } - ] - }, - "BROADCASTED_DECLARE_TXN_V3": { - "title": "Broadcasted declare Transaction V3", - "description": "Broadcasted declare Contract Transaction V3", - "allOf": [ - { - "type": "object", - "title": "Declare txn v3", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The hash of the Cairo assembly resulting from the Sierra compilation", - "$ref": "#/components/schemas/FELT" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x3", - "0x100000000000000000000000000000003" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "contract_class": { - "title": "Contract class", - "description": "The class to be declared", - "$ref": "#/components/schemas/CONTRACT_CLASS" - }, - "resource_bounds": { - "title": "Resource bounds", - "description": "resource bounds for the transaction execution", - "$ref": "#/components/schemas/RESOURCE_BOUNDS_MAPPING" - }, - "tip": { - "title": "Tip", - "$ref": "#/components/schemas/u64", - "description": "the tip for the transaction" - }, - "paymaster_data": { - "title": "Paymaster data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to allow the paymaster to pay for the transaction in native tokens" - }, - "account_deployment_data": { - "title": "Account deployment data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to deploy the account contract from which this tx will be initiated" - }, - "nonce_data_availability_mode": { - "title": "Nonce DA mode", - "description": "The storage domain of the account's nonce (an account has a nonce per DA mode)", - "$ref": "#/components/schemas/DA_MODE" - }, - "fee_data_availability_mode": { - "title": "Fee DA mode", - "description": "The storage domain of the account's balance from which fee will be charged", - "$ref": "#/components/schemas/DA_MODE" - } - }, - "required": [ - "type", - "sender_address", - "compiled_class_hash", - "version", - "signature", - "nonce", - "contract_class", - "resource_bounds", - "tip", - "paymaster_data", - "account_deployment_data", - "nonce_data_availability_mode", - "fee_data_availability_mode" - ] - } - ] - }, - "DEPLOY_ACCOUNT_TXN": { - "title": "Deploy account transaction", - "description": "deploys a new account contract", - "oneOf": [ - { - "title": "Deploy account V1", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN_V1" - }, - { - "title": "Deploy account V3", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN_V3" - } - ] - }, - "DEPLOY_ACCOUNT_TXN_V1": { - "title": "Deploy account transaction", - "description": "Deploys an account contract, charges fee from the pre-funded account addresses", - "type": "object", - "properties": { - "type": { - "title": "Deploy account", - "type": "string", - "enum": [ - "DEPLOY_ACCOUNT" - ] - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x1", - "0x100000000000000000000000000000001" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "contract_address_salt": { - "title": "Contract address salt", - "description": "The salt for the address of the deployed contract", - "$ref": "#/components/schemas/FELT" - }, - "constructor_calldata": { - "type": "array", - "description": "The parameters passed to the constructor", - "title": "Constructor calldata", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the deployed contract's class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "max_fee", - "version", - "signature", - "nonce", - "type", - "contract_address_salt", - "constructor_calldata", - "class_hash" - ] - }, - "DEPLOY_ACCOUNT_TXN_V3": { - "title": "Deploy account transaction", - "description": "Deploys an account contract, charges fee from the pre-funded account addresses", - "type": "object", - "properties": { - "type": { - "title": "Deploy account", - "type": "string", - "enum": [ - "DEPLOY_ACCOUNT" - ] - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x3", - "0x100000000000000000000000000000003" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "contract_address_salt": { - "title": "Contract address salt", - "description": "The salt for the address of the deployed contract", - "$ref": "#/components/schemas/FELT" - }, - "constructor_calldata": { - "type": "array", - "description": "The parameters passed to the constructor", - "title": "Constructor calldata", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the deployed contract's class", - "$ref": "#/components/schemas/FELT" - }, - "resource_bounds": { - "title": "Resource bounds", - "description": "resource bounds for the transaction execution", - "$ref": "#/components/schemas/RESOURCE_BOUNDS_MAPPING" - }, - "tip": { - "title": "Tip", - "$ref": "#/components/schemas/u64", - "description": "the tip for the transaction" - }, - "paymaster_data": { - "title": "Paymaster data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to allow the paymaster to pay for the transaction in native tokens" - }, - "nonce_data_availability_mode": { - "title": "Nonce DA mode", - "description": "The storage domain of the account's nonce (an account has a nonce per DA mode)", - "$ref": "#/components/schemas/DA_MODE" - }, - "fee_data_availability_mode": { - "title": "Fee DA mode", - "description": "The storage domain of the account's balance from which fee will be charged", - "$ref": "#/components/schemas/DA_MODE" - } - }, - "required": [ - "version", - "signature", - "nonce", - "type", - "contract_address_salt", - "constructor_calldata", - "class_hash", - "resource_bounds", - "tip", - "paymaster_data", - "nonce_data_availability_mode", - "fee_data_availability_mode" - ] - }, - "DEPLOY_TXN": { - "title": "Deploy Contract Transaction", - "description": "The structure of a deploy transaction. Note that this transaction type is deprecated and will no longer be supported in future versions", - "allOf": [ - { - "type": "object", - "title": "Deploy txn", - "properties": { - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "$ref": "#/components/schemas/FELT" - }, - "type": { - "title": "Deploy", - "type": "string", - "enum": [ - "DEPLOY" - ] - }, - "contract_address_salt": { - "description": "The salt for the address of the deployed contract", - "title": "Contract address salt", - "$ref": "#/components/schemas/FELT" - }, - "constructor_calldata": { - "type": "array", - "title": "Constructor calldata", - "description": "The parameters passed to the constructor", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the deployed contract's class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "version", - "type", - "constructor_calldata", - "contract_address_salt", - "class_hash" - ] - } - ] - }, - "INVOKE_TXN_V0": { - "title": "Invoke transaction V0", - "description": "invokes a specific function in the desired contract (not necessarily an account)", - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x0", - "0x100000000000000000000000000000000" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "contract_address": { - "title": "Contract address", - "$ref": "#/components/schemas/ADDRESS" - }, - "entry_point_selector": { - "title": "Entry point selector", - "$ref": "#/components/schemas/FELT" - }, - "calldata": { - "title": "Calldata", - "type": "array", - "description": "The parameters passed to the function", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "type", - "contract_address", - "entry_point_selector", - "calldata", - "max_fee", - "version", - "signature" - ] - }, - "INVOKE_TXN_V1": { - "title": "Invoke transaction V1", - "description": "initiates a transaction from a given account", - "allOf": [ - { - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - }, - "sender_address": { - "title": "sender address", - "$ref": "#/components/schemas/ADDRESS" - }, - "calldata": { - "type": "array", - "title": "calldata", - "description": "The data expected by the account's `execute` function (in most usecases, this includes the called contract address and a function selector)", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x1", - "0x100000000000000000000000000000001" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "calldata", - "max_fee", - "version", - "signature", - "nonce" - ] - } - ] - }, - "INVOKE_TXN_V3": { - "title": "Invoke transaction V3", - "description": "initiates a transaction from a given account", - "allOf": [ - { - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - }, - "sender_address": { - "title": "sender address", - "$ref": "#/components/schemas/ADDRESS" - }, - "calldata": { - "type": "array", - "title": "calldata", - "description": "The data expected by the account's `execute` function (in most usecases, this includes the called contract address and a function selector)", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x3", - "0x100000000000000000000000000000003" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "resource_bounds": { - "title": "Resource bounds", - "description": "resource bounds for the transaction execution", - "$ref": "#/components/schemas/RESOURCE_BOUNDS_MAPPING" - }, - "tip": { - "title": "Tip", - "$ref": "#/components/schemas/u64", - "description": "the tip for the transaction" - }, - "paymaster_data": { - "title": "Paymaster data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to allow the paymaster to pay for the transaction in native tokens" - }, - "account_deployment_data": { - "title": "Account deployment data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to deploy the account contract from which this tx will be initiated" - }, - "nonce_data_availability_mode": { - "title": "Nonce DA mode", - "description": "The storage domain of the account's nonce (an account has a nonce per DA mode)", - "$ref": "#/components/schemas/DA_MODE" - }, - "fee_data_availability_mode": { - "title": "Fee DA mode", - "description": "The storage domain of the account's balance from which fee will be charged", - "$ref": "#/components/schemas/DA_MODE" - } - }, - "required": [ - "type", - "sender_address", - "calldata", - "version", - "signature", - "nonce", - "resource_bounds", - "tip", - "paymaster_data", - "account_deployment_data", - "nonce_data_availability_mode", - "fee_data_availability_mode" - ] - } - ] - }, - "INVOKE_TXN": { - "title": "Invoke transaction", - "description": "Initiate a transaction from an account", - "oneOf": [ - { - "title": "Invoke transaction V0", - "$ref": "#/components/schemas/INVOKE_TXN_V0" - }, - { - "title": "Invoke transaction V1", - "$ref": "#/components/schemas/INVOKE_TXN_V1" - }, - { - "title": "Invoke transaction V3", - "$ref": "#/components/schemas/INVOKE_TXN_V3" - } - ] - }, - "L1_HANDLER_TXN": { - "title": "L1 Handler transaction", - "allOf": [ - { - "type": "object", - "title": "L1 handler transaction", - "description": "a call to an l1_handler on an L2 contract induced by a message from L1", - "properties": { - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "$ref": "#/components/schemas/FELT" - }, - "type": { - "title": "type", - "type": "string", - "enum": [ - "L1_HANDLER" - ] - }, - "nonce": { - "title": "Nonce", - "description": "The L1->L2 message nonce field of the SN Core L1 contract at the time the transaction was sent", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": [ - "version", - "type", - "nonce" - ] - }, - { - "title": "Function call", - "$ref": "#/components/schemas/FUNCTION_CALL" - } - ] - }, - "COMMON_RECEIPT_PROPERTIES": { - "title": "Common receipt properties", - "description": "Common properties for a transaction receipt", - "type": "object", - "properties": { - "transaction_hash": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH", - "description": "The hash identifying the transaction" - }, - "actual_fee": { - "title": "Actual fee", - "$ref": "#/components/schemas/FEE_PAYMENT", - "description": "The fee that was charged by the sequencer" - }, - "execution_status": { - "title": "Execution status", - "$ref": "#/components/schemas/TXN_EXECUTION_STATUS" - }, - "finality_status": { - "title": "Finality status", - "$ref": "#/components/schemas/TXN_FINALITY_STATUS" - }, - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "messages_sent": { - "type": "array", - "title": "Messages sent", - "items": { - "$ref": "#/components/schemas/MSG_TO_L1" - } - }, - "revert_reason": { - "title": "Revert reason", - "name": "revert reason", - "description": "the revert reason for the failed execution", - "type": "string" - }, - "events": { - "description": "The events emitted as part of this transaction", - "title": "Events", - "type": "array", - "items": { - "$ref": "#/components/schemas/EVENT" - } - }, - "execution_resources": { - "title": "Execution resources", - "description": "The resources consumed by the transaction", - "$ref": "#/components/schemas/EXECUTION_RESOURCES" - } - }, - "required": [ - "transaction_hash", - "actual_fee", - "finality_status", - "execution_status", - "block_hash", - "block_number", - "messages_sent", - "events", - "execution_resources" - ] - }, - "INVOKE_TXN_RECEIPT": { - "title": "Invoke Transaction Receipt", - "allOf": [ - { - "title": "Type", - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - } - }, - "required": [ - "type" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "PENDING_INVOKE_TXN_RECEIPT": { - "title": "Invoke Transaction Receipt", - "allOf": [ - { - "title": "Type", - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - } - }, - "required": [ - "type" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/PENDING_COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "DECLARE_TXN_RECEIPT": { - "title": "Declare Transaction Receipt", - "allOf": [ - { - "title": "Declare txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - } - }, - "required": [ - "type" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "PENDING_DECLARE_TXN_RECEIPT": { - "title": "Declare Transaction Receipt", - "allOf": [ - { - "title": "Declare txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - } - }, - "required": [ - "type" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/PENDING_COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "DEPLOY_ACCOUNT_TXN_RECEIPT": { - "title": "Deploy Account Transaction Receipt", - "allOf": [ - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - }, - { - "title": "DeployAccount txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Deploy account", - "type": "string", - "enum": [ - "DEPLOY_ACCOUNT" - ] - }, - "contract_address": { - "title": "Contract address", - "description": "The address of the deployed contract", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "contract_address" - ] - } - ] - }, - "PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT": { - "title": "Deploy Account Transaction Receipt", - "allOf": [ - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/PENDING_COMMON_RECEIPT_PROPERTIES" - }, - { - "title": "DeployAccount txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Deploy account", - "type": "string", - "enum": [ - "DEPLOY_ACCOUNT" - ] - }, - "contract_address": { - "title": "Contract address", - "description": "The address of the deployed contract", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "contract_address" - ] - } - ] - }, - "DEPLOY_TXN_RECEIPT": { - "title": "Deploy Transaction Receipt", - "allOf": [ - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - }, - { - "title": "Deploy txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Deploy", - "type": "string", - "enum": [ - "DEPLOY" - ] - }, - "contract_address": { - "title": "Contract address", - "description": "The address of the deployed contract", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "contract_address" - ] - } - ] - }, - "L1_HANDLER_TXN_RECEIPT": { - "title": "L1 Handler Transaction Receipt", - "description": "receipt for l1 handler transaction", - "allOf": [ - { - "title": "Transaction type", - "type": "object", - "properties": { - "type": { - "title": "type", - "type": "string", - "enum": [ - "L1_HANDLER" - ] - }, - "message_hash": { - "title": "Message hash", - "description": "The message hash as it appears on the L1 core contract", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": [ - "type", - "message_hash" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "PENDING_L1_HANDLER_TXN_RECEIPT": { - "title": "L1 Handler Transaction Receipt", - "description": "receipt for l1 handler transaction", - "allOf": [ - { - "title": "Transaction type", - "type": "object", - "properties": { - "type": { - "title": "type", - "type": "string", - "enum": [ - "L1_HANDLER" - ] - }, - "message_hash": { - "title": "Message hash", - "description": "The message hash as it appears on the L1 core contract", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": [ - "type", - "message_hash" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/PENDING_COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "TXN_RECEIPT": { - "title": "Transaction Receipt", - "oneOf": [ - { - "title": "Invoke transaction receipt", - "$ref": "#/components/schemas/INVOKE_TXN_RECEIPT" - }, - { - "title": "L1 handler transaction receipt", - "$ref": "#/components/schemas/L1_HANDLER_TXN_RECEIPT" - }, - { - "title": "Declare transaction receipt", - "$ref": "#/components/schemas/DECLARE_TXN_RECEIPT" - }, - { - "title": "Deploy transaction receipt", - "$ref": "#/components/schemas/DEPLOY_TXN_RECEIPT" - }, - { - "title": "Deploy account transaction receipt", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN_RECEIPT" - } - ] - }, - "PENDING_TXN_RECEIPT": { - "title": "Transaction Receipt", - "oneOf": [ - { - "title": "Pending Invoke transaction receipt", - "$ref": "#/components/schemas/PENDING_INVOKE_TXN_RECEIPT" - }, - { - "title": "Pending L1 handler transaction receipt", - "$ref": "#/components/schemas/PENDING_L1_HANDLER_TXN_RECEIPT" - }, - { - "title": "Pending Declare transaction receipt", - "$ref": "#/components/schemas/PENDING_DECLARE_TXN_RECEIPT" - }, - { - "title": "Pending Deploy account transaction receipt", - "$ref": "#/components/schemas/PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT" - } - ] - }, - "PENDING_COMMON_RECEIPT_PROPERTIES": { - "title": "Pending common receipt properties", - "description": "Common properties for a pending transaction receipt", - "type": "object", - "properties": { - "transaction_hash": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH", - "description": "The hash identifying the transaction" - }, - "actual_fee": { - "title": "Actual fee", - "$ref": "#/components/schemas/FEE_PAYMENT", - "description": "The fee that was charged by the sequencer" - }, - "messages_sent": { - "type": "array", - "title": "Messages sent", - "items": { - "$ref": "#/components/schemas/MSG_TO_L1" - } - }, - "events": { - "description": "The events emitted as part of this transaction", - "title": "Events", - "type": "array", - "items": { - "$ref": "#/components/schemas/EVENT" - } - }, - "revert_reason": { - "title": "Revert reason", - "name": "revert reason", - "description": "the revert reason for the failed execution", - "type": "string" - }, - "finality_status": { - "title": "Finality status", - "type": "string", - "enum": [ - "ACCEPTED_ON_L2" - ], - "description": "The finality status of the transaction" - }, - "execution_status": { - "title": "Execution status", - "$ref": "#/components/schemas/TXN_EXECUTION_STATUS" - }, - "execution_resources": { - "title": "Execution resources", - "description": "The resources consumed by the transaction", - "$ref": "#/components/schemas/EXECUTION_RESOURCES" - } - }, - "required": [ - "transaction_hash", - "actual_fee", - "messages_sent", - "events", - "finality_status", - "execution_status", - "execution_resources" - ], - "additionalProperties": false - }, - "MSG_TO_L1": { - "title": "Message to L1", - "type": "object", - "properties": { - "from_address": { - "description": "The address of the L2 contract sending the message", - "$ref": "#/components/schemas/FELT" - }, - "to_address": { - "title": "To address", - "description": "The target L1 address the message is sent to", - "$ref": "#/components/schemas/FELT" - }, - "payload": { - "description": "The payload of the message", - "title": "Payload", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "from_address", - "to_address", - "payload" - ] - }, - "MSG_FROM_L1": { - "title": "Message from L1", - "type": "object", - "properties": { - "from_address": { - "description": "The address of the L1 contract sending the message", - "$ref": "#/components/schemas/ETH_ADDRESS" - }, - "to_address": { - "title": "To address", - "description": "The target L2 address the message is sent to", - "$ref": "#/components/schemas/ADDRESS" - }, - "entry_point_selector": { - "title": "Selector", - "description": "The selector of the l1_handler in invoke in the target contract", - "$ref": "#/components/schemas/FELT" - }, - "payload": { - "description": "The payload of the message", - "title": "Payload", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "from_address", - "to_address", - "payload", - "entry_point_selector" - ] - }, - "TXN_STATUS": { - "title": "Transaction status", - "type": "string", - "enum": [ - "RECEIVED", - "REJECTED", - "ACCEPTED_ON_L2", - "ACCEPTED_ON_L1" - ], - "description": "The finality status of the transaction, including the case the txn is still in the mempool or failed validation during the block construction phase" - }, - "TXN_FINALITY_STATUS": { - "title": "Finality status", - "type": "string", - "enum": [ - "ACCEPTED_ON_L2", - "ACCEPTED_ON_L1" - ], - "description": "The finality status of the transaction" - }, - "TXN_EXECUTION_STATUS": { - "title": "Execution status", - "type": "string", - "enum": [ - "SUCCEEDED", - "REVERTED" - ], - "description": "The execution status of the transaction" - }, - "TXN_TYPE": { - "title": "Transaction type", - "type": "string", - "enum": [ - "DECLARE", - "DEPLOY", - "DEPLOY_ACCOUNT", - "INVOKE", - "L1_HANDLER" - ], - "description": "The type of the transaction" - }, - "BLOCK_STATUS": { - "title": "Block status", - "type": "string", - "enum": [ - "PENDING", - "ACCEPTED_ON_L2", - "ACCEPTED_ON_L1", - "REJECTED" - ], - "description": "The status of the block" - }, - "FUNCTION_CALL": { - "title": "Function call", - "type": "object", - "description": "Function call information", - "properties": { - "contract_address": { - "title": "Contract address", - "$ref": "#/components/schemas/ADDRESS" - }, - "entry_point_selector": { - "title": "Entry point selector", - "$ref": "#/components/schemas/FELT" - }, - "calldata": { - "title": "Calldata", - "type": "array", - "description": "The parameters passed to the function", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "contract_address", - "entry_point_selector", - "calldata" - ] - }, - "CONTRACT_CLASS": { - "title": "Contract class", - "type": "object", - "properties": { - "sierra_program": { - "title": "Sierra program", - "type": "array", - "description": "The list of Sierra instructions of which the program consists", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "contract_class_version": { - "title": "Contract class version", - "type": "string", - "description": "The version of the contract class object. Currently, the Starknet OS supports version 0.1.0" - }, - "entry_points_by_type": { - "title": "Entry points by type", - "type": "object", - "properties": { - "CONSTRUCTOR": { - "type": "array", - "title": "Constructor", - "items": { - "$ref": "#/components/schemas/SIERRA_ENTRY_POINT" - } - }, - "EXTERNAL": { - "title": "External", - "type": "array", - "items": { - "$ref": "#/components/schemas/SIERRA_ENTRY_POINT" - } - }, - "L1_HANDLER": { - "title": "L1 handler", - "type": "array", - "items": { - "$ref": "#/components/schemas/SIERRA_ENTRY_POINT" - } - } - }, - "required": [ - "CONSTRUCTOR", - "EXTERNAL", - "L1_HANDLER" - ] - }, - "abi": { - "title": "ABI", - "type": "string", - "description": "The class ABI, as supplied by the user declaring the class" - } - }, - "required": [ - "sierra_program", - "contract_class_version", - "entry_points_by_type" - ] - }, - "DEPRECATED_CONTRACT_CLASS": { - "title": "Deprecated contract class", - "description": "The definition of a StarkNet contract class", - "type": "object", - "properties": { - "program": { - "type": "string", - "title": "Program", - "description": "A base64 representation of the compressed program code", - "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$" - }, - "entry_points_by_type": { - "type": "object", - "title": "Deprecated entry points by type", - "properties": { - "CONSTRUCTOR": { - "type": "array", - "title": "Deprecated constructor", - "items": { - "$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - }, - "EXTERNAL": { - "type": "array", - "title": "Deprecated external", - "items": { - "$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - }, - "L1_HANDLER": { - "type": "array", - "title": "Deprecated L1 handler", - "items": { - "$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - } - } - }, - "abi": { - "title": "Contract ABI", - "$ref": "#/components/schemas/CONTRACT_ABI" - } - }, - "required": [ - "program", - "entry_points_by_type" - ] - }, - "DEPRECATED_CAIRO_ENTRY_POINT": { - "title": "Deprecated Cairo entry point", - "type": "object", - "properties": { - "offset": { - "title": "Offset", - "description": "The offset of the entry point in the program", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "selector": { - "title": "Selector", - "description": "A unique identifier of the entry point (function) in the program", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "offset", - "selector" - ] - }, - "SIERRA_ENTRY_POINT": { - "title": "Sierra entry point", - "type": "object", - "properties": { - "selector": { - "title": "Selector", - "description": "A unique identifier of the entry point (function) in the program", - "$ref": "#/components/schemas/FELT" - }, - "function_idx": { - "title": "Function index", - "description": "The index of the function in the program", - "type": "integer" - } - }, - "required": [ - "selector", - "function_idx" - ] - }, - "CONTRACT_ABI": { - "title": "Contract ABI", - "type": "array", - "items": { - "$ref": "#/components/schemas/CONTRACT_ABI_ENTRY" - } - }, - "CONTRACT_ABI_ENTRY": { - "title": "Contract ABI entry", - "oneOf": [ - { - "title": "Function ABI entry", - "$ref": "#/components/schemas/FUNCTION_ABI_ENTRY" - }, - { - "title": "Event ABI entry", - "$ref": "#/components/schemas/EVENT_ABI_ENTRY" - }, - { - "title": "Struct ABI entry", - "$ref": "#/components/schemas/STRUCT_ABI_ENTRY" - } - ] - }, - "STRUCT_ABI_TYPE": { - "title": "Struct ABI type", - "type": "string", - "enum": [ - "struct" - ] - }, - "EVENT_ABI_TYPE": { - "title": "Event ABI type", - "type": "string", - "enum": [ - "event" - ] - }, - "FUNCTION_ABI_TYPE": { - "title": "Function ABI type", - "type": "string", - "enum": [ - "function", - "l1_handler", - "constructor" - ] - }, - "STRUCT_ABI_ENTRY": { - "title": "Struct ABI entry", - "type": "object", - "properties": { - "type": { - "title": "Struct ABI type", - "$ref": "#/components/schemas/STRUCT_ABI_TYPE" - }, - "name": { - "title": "Struct name", - "description": "The struct name", - "type": "string" - }, - "size": { - "title": "Size", - "type": "integer", - "minimum": 1 - }, - "members": { - "type": "array", - "title": "Members", - "items": { - "$ref": "#/components/schemas/STRUCT_MEMBER" - } - } - }, - "required": [ - "type", - "name", - "size", - "members" - ] - }, - "STRUCT_MEMBER": { - "title": "Struct member", - "allOf": [ - { - "title": "Typed parameter", - "$ref": "#/components/schemas/TYPED_PARAMETER" - }, - { - "type": "object", - "title": "Offset", - "properties": { - "offset": { - "title": "Offset", - "description": "offset of this property within the struct", - "type": "integer" - } - } - } - ] - }, - "EVENT_ABI_ENTRY": { - "title": "Event ABI entry", - "type": "object", - "properties": { - "type": { - "title": "Event ABI type", - "$ref": "#/components/schemas/EVENT_ABI_TYPE" - }, - "name": { - "title": "Event name", - "description": "The event name", - "type": "string" - }, - "keys": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - }, - "data": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - } - }, - "required": [ - "type", - "name", - "keys", - "data" - ] - }, - "FUNCTION_STATE_MUTABILITY": { - "title": "Function state mutability type", - "type": "string", - "enum": [ - "view" - ] - }, - "FUNCTION_ABI_ENTRY": { - "title": "Function ABI entry", - "type": "object", - "properties": { - "type": { - "title": "Function ABI type", - "$ref": "#/components/schemas/FUNCTION_ABI_TYPE" - }, - "name": { - "title": "Function name", - "description": "The function name", - "type": "string" - }, - "inputs": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - }, - "outputs": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - }, - "stateMutability": { - "title": "Function state mutability", - "$ref": "#/components/schemas/FUNCTION_STATE_MUTABILITY" - } - }, - "required": [ - "type", - "name", - "inputs", - "outputs" - ] - }, - "TYPED_PARAMETER": { - "title": "Typed parameter", - "type": "object", - "properties": { - "name": { - "title": "Parameter name", - "description": "The parameter's name", - "type": "string" - }, - "type": { - "title": "Parameter type", - "description": "The parameter's type", - "type": "string" - } - }, - "required": [ - "name", - "type" - ] - }, - "SIMULATION_FLAG_FOR_ESTIMATE_FEE": { - "type": "string", - "enum": [ - "SKIP_VALIDATE" - ], - "description": "Flags that indicate how to simulate a given transaction. By default, the sequencer behavior is replicated locally" - }, - "PRICE_UNIT": { - "title": "price unit", - "type": "string", - "enum": [ - "WEI", - "FRI" - ] - }, - "FEE_ESTIMATE": { - "title": "Fee estimation", - "type": "object", - "properties": { - "gas_consumed": { - "title": "Gas consumed", - "description": "The Ethereum gas cost of the transaction (see https://docs.starknet.io/learn/protocol/fees for more info)", - "$ref": "#/components/schemas/FELT" - }, - "gas_price": { - "title": "Gas price", - "description": "The gas price (in gwei or fri, depending on the tx version) that was used in the cost estimation", - "$ref": "#/components/schemas/FELT" - }, - "overall_fee": { - "title": "Overall fee", - "description": "The estimated fee for the transaction (in gwei or fri, depending on the tx version), product of gas_consumed and gas_price", - "$ref": "#/components/schemas/FELT" - }, - "unit": { - "title": "Fee unit", - "description": "units in which the fee is given", - "$ref": "#/components/schemas/PRICE_UNIT" - } - }, - "required": [ - "gas_consumed", - "gas_price", - "overall_fee", - "unit" - ] - }, - "FEE_PAYMENT": { - "title": "Fee Payment", - "description": "fee payment info as it appears in receipts", - "type": "object", - "properties": { - "amount": { - "title": "Amount", - "description": "amount paid", - "$ref": "#/components/schemas/FELT" - }, - "unit": { - "title": "Fee unit", - "description": "units in which the fee is given", - "$ref": "#/components/schemas/PRICE_UNIT" - } - }, - "required": [ - "amount", - "unit" - ] - }, - "DA_MODE": { - "title": "DA mode", - "type": "string", - "description": "Specifies a storage domain in Starknet. Each domain has different guarantees regarding availability", - "enum": [ - "L1", - "L2" - ] - }, - "RESOURCE_BOUNDS_MAPPING": { - "type": "object", - "properties": { - "l1_gas": { - "title": "L1 Gas", - "description": "The max amount and max price per unit of L1 gas used in this tx", - "$ref": "#/components/schemas/RESOURCE_BOUNDS" - }, - "l2_gas": { - "title": "L2 Gas", - "description": "The max amount and max price per unit of L2 gas used in this tx", - "$ref": "#/components/schemas/RESOURCE_BOUNDS" - } - }, - "required": [ - "l1_gas", - "l2_gas" - ] - }, - "RESOURCE_BOUNDS": { - "type": "object", - "properties": { - "max_amount": { - "title": "max amount", - "description": "the max amount of the resource that can be used in the tx", - "$ref": "#/components/schemas/u64" - }, - "max_price_per_unit": { - "title": "max price", - "description": "the max price per unit of this resource for this tx", - "$ref": "#/components/schemas/u128" - } - }, - "required": [ - "max_amount", - "max_price_per_unit" - ] - }, - "RESOURCE_PRICE": { - "type": "object", - "properties": { - "price_in_fri": { - "title": "price in fri", - "description": "the price of one unit of the given resource, denominated in fri (10^-18 strk)", - "$ref": "#/components/schemas/FELT" - }, - "price_in_wei": { - "title": "price in wei", - "description": "the price of one unit of the given resource, denominated in wei", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "price_in_wei", - "price_in_fri" - ] - }, - "EXECUTION_RESOURCES": { - "title": "Execution resources", - "description": "The resources consumed by the VM", - "type": "object", - "properties": { - "steps": { - "title": "Steps", - "description": "The number of Cairo steps used", - "type": "integer", - "not": { - "const": 0 - } - }, - "memory_holes": { - "title": "Memory holes", - "description": "The number of unused memory cells (each cell is roughly equivalent to a step)", - "type": "integer", - "not": { - "const": 0 - } - }, - "range_check_builtin_applications": { - "title": "Range check applications", - "description": "The number of RANGE_CHECK builtin instances", - "type": "integer", - "not": { - "const": 0 - } - }, - "pedersen_builtin_applications": { - "title": "Pedersen applications", - "description": "The number of Pedersen builtin instances", - "type": "integer", - "not": { - "const": 0 - } - }, - "poseidon_builtin_applications": { - "title": "Poseidon applications", - "description": "The number of Poseidon builtin instances", - "type": "integer", - "not": { - "const": 0 - } - }, - "ec_op_builtin_applications": { - "title": "EC_OP applications", - "description": "the number of EC_OP builtin instances", - "type": "integer", - "not": { - "const": 0 - } - }, - "ecdsa_builtin_applications": { - "title": "ECDSA applications", - "description": "the number of ECDSA builtin instances", - "type": "integer", - "not": { - "const": 0 - } - }, - "bitwise_builtin_applications": { - "title": "BITWISE applications", - "description": "the number of BITWISE builtin instances", - "type": "integer", - "not": { - "const": 0 - } - }, - "keccak_builtin_applications": { - "title": "Keccak applications", - "description": "The number of KECCAK builtin instances", - "type": "integer", - "not": { - "const": 0 - } - }, - "segment_arena_builtin": { - "title": "Segment arena", - "description": "The number of accesses to the segment arena", - "type": "integer", - "not": { - "const": 0 - } - } - }, - "required": [ - "steps" - ] - } - }, - "errors": { - "FAILED_TO_RECEIVE_TXN": { - "code": 1, - "message": "Failed to write transaction" - }, - "CONTRACT_NOT_FOUND": { - "code": 20, - "message": "Contract not found" - }, - "BLOCK_NOT_FOUND": { - "code": 24, - "message": "Block not found" - }, - "INVALID_TXN_INDEX": { - "code": 27, - "message": "Invalid transaction index in a block" - }, - "CLASS_HASH_NOT_FOUND": { - "code": 28, - "message": "Class hash not found" - }, - "TXN_HASH_NOT_FOUND": { - "code": 29, - "message": "Transaction hash not found" - }, - "PAGE_SIZE_TOO_BIG": { - "code": 31, - "message": "Requested page size is too big" - }, - "NO_BLOCKS": { - "code": 32, - "message": "There are no blocks" - }, - "INVALID_CONTINUATION_TOKEN": { - "code": 33, - "message": "The supplied continuation token is invalid or unknown" - }, - "TOO_MANY_KEYS_IN_FILTER": { - "code": 34, - "message": "Too many keys provided in a filter" - }, - "CONTRACT_ERROR": { - "code": 40, - "message": "Contract error", - "data": { - "type": "object", - "description": "More data about the execution failure", - "properties": { - "revert_error": { - "title": "revert error", - "description": "a string encoding the execution trace up to the point of failure", - "type": "string" - } - }, - "required": "revert_error" - } - }, - "TRANSACTION_EXECUTION_ERROR": { - "code": 41, - "message": "Transaction execution error", - "data": { - "type": "object", - "description": "More data about the execution failure", - "properties": { - "transaction_index": { - "title": "Transaction index", - "description": "The index of the first transaction failing in a sequence of given transactions", - "type": "integer" - }, - "execution_error": { - "title": "revert error", - "description": "a string encoding the execution trace up to the point of failure", - "type": "string" - } - }, - "required": [ - "transaction_index", - "execution_error" - ] - } - } - } - } -} \ No newline at end of file diff --git a/specs/rpc/v06/starknet_trace_api_openrpc.json b/specs/rpc/v06/starknet_trace_api_openrpc.json deleted file mode 100644 index 7a269b0ddf..0000000000 --- a/specs/rpc/v06/starknet_trace_api_openrpc.json +++ /dev/null @@ -1,489 +0,0 @@ -{ - "openrpc": "1.0.0-rc1", - "info": { - "version": "0.6.0", - "title": "StarkNet Trace API", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_traceTransaction", - "summary": "For a given executed transaction, return the trace of its execution, including internal calls", - "description": "Returns the execution trace of the transaction designated by the input hash", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the transaction to trace", - "required": true, - "schema": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "trace", - "description": "The function call trace of the transaction designated by the given hash", - "schema": { - "$ref": "#/components/schemas/TRANSACTION_TRACE" - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - }, - { - "$ref": "#/components/errors/NO_TRACE_AVAILABLE" - } - ] - }, - { - "name": "starknet_simulateTransactions", - "summary": "Simulate a given sequence of transactions on the requested state, and generate the execution traces. Note that some of the transactions may revert, in which case no error is thrown, but revert details can be seen on the returned trace object. . Note that some of the transactions may revert, this will be reflected by the revert_error property in the trace. Other types of failures (e.g. unexpected error or failure in the validation phase) will result in TRANSACTION_EXECUTION_ERROR.", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "transactions", - "description": "The transactions to simulate", - "required": true, - "schema": { - "type": "array", - "description": "a sequence of transactions to simulate, running each transaction on the state resulting from applying all the previous ones", - "items": { - "$ref": "#/components/schemas/BROADCASTED_TXN" - } - } - }, - { - "name": "simulation_flags", - "description": "describes what parts of the transaction should be executed", - "required": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SIMULATION_FLAG" - } - } - } - ], - "result": { - "name": "simulated_transactions", - "description": "The execution trace and consumed resources of the required transactions", - "schema": { - "type": "array", - "items": { - "schema": { - "type": "object", - "properties": { - "transaction_trace": { - "title": "the transaction's trace", - "$ref": "#/components/schemas/TRANSACTION_TRACE" - }, - "fee_estimation": { - "title": "the transaction's resources and fee", - "$ref": "#/components/schemas/FEE_ESTIMATE" - } - } - } - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/TRANSACTION_EXECUTION_ERROR" - } - ] - }, - { - "name": "starknet_traceBlockTransactions", - "summary": "Retrieve traces for all transactions in the given block", - "description": "Returns the execution traces of all transactions included in the given block", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "traces", - "description": "The traces of all transactions in the block", - "schema": { - "type": "array", - "items": { - "type": "object", - "description": "A single pair of transaction hash and corresponding trace", - "properties": { - "transaction_hash": { - "$ref": "#/components/schemas/FELT" - }, - "trace_root": { - "$ref": "#/components/schemas/TRANSACTION_TRACE" - } - } - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "TRANSACTION_TRACE": { - "oneOf": [ - { - "name": "INVOKE_TXN_TRACE", - "type": "object", - "description": "the execution trace of an invoke transaction", - "properties": { - "validate_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "execute_invocation": { - "description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)", - "oneOf": [ - { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - { - "type": "object", - "properties": { - "revert_reason": { - "name": "revert reason", - "description": "the revert reason for the failed execution", - "type": "string" - } - } - } - ] - }, - "fee_transfer_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "state_diff": { - "title": "state_diff", - "description": "the state diffs induced by the transaction", - "$ref": "#/components/schemas/STATE_DIFF" - }, - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - } - }, - "required": [ - "type", - "execute_invocation" - ] - }, - { - "name": "DECLARE_TXN_TRACE", - "type": "object", - "description": "the execution trace of a declare transaction", - "properties": { - "validate_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "fee_transfer_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "state_diff": { - "title": "state_diff", - "description": "the state diffs induced by the transaction", - "$ref": "#/components/schemas/STATE_DIFF" - }, - "type": { - "title": "Type", - "type": "string", - "enum": [ - "DECLARE" - ] - } - }, - "required": [ - "type" - ] - }, - { - "name": "DEPLOY_ACCOUNT_TXN_TRACE", - "type": "object", - "description": "the execution trace of a deploy account transaction", - "properties": { - "validate_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "constructor_invocation": { - "description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)", - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "fee_transfer_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "state_diff": { - "title": "state_diff", - "description": "the state diffs induced by the transaction", - "$ref": "#/components/schemas/STATE_DIFF" - }, - "type": { - "title": "Type", - "type": "string", - "enum": [ - "DEPLOY_ACCOUNT" - ] - } - }, - "required": [ - "type", - "constructor_invocation" - ] - }, - { - "name": "L1_HANDLER_TXN_TRACE", - "type": "object", - "description": "the execution trace of an L1 handler transaction", - "properties": { - "function_invocation": { - "description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)", - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "state_diff": { - "title": "state_diff", - "description": "the state diffs induced by the transaction", - "$ref": "#/components/schemas/STATE_DIFF" - }, - "type": { - "title": "Type", - "type": "string", - "enum": [ - "L1_HANDLER" - ] - } - }, - "required": [ - "type", - "function_invocation" - ] - } - ] - }, - "SIMULATION_FLAG": { - "type": "string", - "enum": [ - "SKIP_VALIDATE", - "SKIP_FEE_CHARGE" - ], - "description": "Flags that indicate how to simulate a given transaction. By default, the sequencer behavior is replicated locally (enough funds are expected to be in the account, and fee will be deducted from the balance before the simulation of the next transaction). To skip the fee charge, use the SKIP_FEE_CHARGE flag." - }, - "NESTED_CALL": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "FUNCTION_INVOCATION": { - "allOf": [ - { - "$ref": "#/components/schemas/FUNCTION_CALL" - }, - { - "type": "object", - "properties": { - "caller_address": { - "title": "Caller Address", - "description": "The address of the invoking contract. 0 for the root invocation", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the class being called", - "$ref": "#/components/schemas/FELT" - }, - "entry_point_type": { - "$ref": "#/components/schemas/ENTRY_POINT_TYPE" - }, - "call_type": { - "$ref": "#/components/schemas/CALL_TYPE" - }, - "result": { - "title": "Invocation Result", - "description": "The value returned from the function invocation", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "calls": { - "title": "Nested Calls", - "description": "The calls made by this invocation", - "type": "array", - "items": { - "$ref": "#/components/schemas/NESTED_CALL" - } - }, - "events": { - "title": "Invocation Events", - "description": "The events emitted in this invocation", - "type": "array", - "items": { - "$ref": "#/components/schemas/ORDERED_EVENT" - } - }, - "messages": { - "title": "L1 Messages", - "description": "The messages sent by this invocation to L1", - "type": "array", - "items": { - "$ref": "#/components/schemas/ORDERED_MESSAGE" - } - }, - "execution_resources": { - "title": "Execution resources", - "description": "Resources consumed by the internal call", - "$ref": "#/components/schemas/EXECUTION_RESOURCES" - } - }, - "required": [ - "caller_address", - "class_hash", - "entry_point_type", - "call_type", - "result", - "calls", - "events", - "messages", - "execution_resources" - ] - } - ] - }, - "ENTRY_POINT_TYPE": { - "type": "string", - "enum": [ - "EXTERNAL", - "L1_HANDLER", - "CONSTRUCTOR" - ] - }, - "CALL_TYPE": { - "type": "string", - "enum": [ - "LIBRARY_CALL", - "CALL", - "DELEGATE" - ] - }, - "ORDERED_EVENT": { - "type": "object", - "title": "orderedEvent", - "description": "an event alongside its order within the transaction", - "allOf": [ - { - "type": "object", - "properties": { - "order": { - "title": "order", - "description": "the order of the event within the transaction", - "type": "integer" - } - } - }, - { - "$ref": "#/components/schemas/EVENT" - } - ] - }, - "ORDERED_MESSAGE": { - "type": "object", - "title": "orderedMessage", - "description": "a message alongside its order within the transaction", - "allOf": [ - { - "type": "object", - "properties": { - "order": { - "title": "order", - "description": "the order of the message within the transaction", - "type": "integer" - } - } - }, - { - "$ref": "#/components/schemas/MSG_TO_L1" - } - ] - }, - "FELT": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/FELT" - }, - "FUNCTION_CALL": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/FUNCTION_CALL" - }, - "EVENT": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/EVENT_CONTENT" - }, - "MSG_TO_L1": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/MSG_TO_L1" - }, - "BLOCK_ID": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/BLOCK_ID" - }, - "FEE_ESTIMATE": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/FEE_ESTIMATE" - }, - "BROADCASTED_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_TXN" - }, - "STATE_DIFF": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/STATE_DIFF" - }, - "EXECUTION_RESOURCES": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/EXECUTION_RESOURCES" - } - }, - "errors": { - "NO_TRACE_AVAILABLE": { - "code": 10, - "message": "No trace available for transaction", - "data": { - "type": "object", - "description": "Extra information on why trace is not available. Either it wasn't executed yet (RECEIVED), or the transaction failed (REJECTED)", - "properties": { - "status": { - "type": "string", - "enum": [ - "RECEIVED", - "REJECTED" - ] - } - } - } - }, - "TXN_HASH_NOT_FOUND": { - "$ref": "./api/starknet_api_openrpc.json#/components/errors/TXN_HASH_NOT_FOUND" - }, - "BLOCK_NOT_FOUND": { - "$ref": "./api/starknet_api_openrpc.json#/components/errors/BLOCK_NOT_FOUND" - }, - "TRANSACTION_EXECUTION_ERROR": { - "$ref": "./api/starknet_api_openrpc.json#/components/errors/TRANSACTION_EXECUTION_ERROR" - } - } - } -} \ No newline at end of file diff --git a/specs/rpc/v06/starknet_write_api.json b/specs/rpc/v06/starknet_write_api.json deleted file mode 100644 index 63f5c3b5e3..0000000000 --- a/specs/rpc/v06/starknet_write_api.json +++ /dev/null @@ -1,299 +0,0 @@ -{ - "openrpc": "1.0.0-rc1", - "info": { - "version": "0.6.0", - "title": "StarkNet Node Write API", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_addInvokeTransaction", - "summary": "Submit a new transaction to be added to the chain", - "params": [ - { - "name": "invoke_transaction", - "description": "The information needed to invoke the function (or account, for version 1 transactions)", - "required": true, - "schema": { - "$ref": "#/components/schemas/BROADCASTED_INVOKE_TXN" - } - } - ], - "result": { - "name": "result", - "description": "The result of the transaction submission", - "schema": { - "type": "object", - "properties": { - "transaction_hash": { - "title": "The hash of the invoke transaction", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "transaction_hash" - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/INSUFFICIENT_ACCOUNT_BALANCE" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_MAX_FEE" - }, - { - "$ref": "#/components/errors/INVALID_TRANSACTION_NONCE" - }, - { - "$ref": "#/components/errors/VALIDATION_FAILURE" - }, - { - "$ref": "#/components/errors/NON_ACCOUNT" - }, - { - "$ref": "#/components/errors/DUPLICATE_TX" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_TX_VERSION" - }, - { - "$ref": "#/components/errors/UNEXPECTED_ERROR" - } - ] - }, - { - "name": "starknet_addDeclareTransaction", - "summary": "Submit a new class declaration transaction", - "params": [ - { - "name": "declare_transaction", - "description": "Declare transaction required to declare a new class on Starknet", - "required": true, - "schema": { - "title": "Declare transaction", - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN" - } - } - ], - "result": { - "name": "result", - "description": "The result of the transaction submission", - "schema": { - "type": "object", - "properties": { - "transaction_hash": { - "title": "The hash of the declare transaction", - "$ref": "#/components/schemas/TXN_HASH" - }, - "class_hash": { - "title": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "transaction_hash", - "class_hash" - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/CLASS_ALREADY_DECLARED" - }, - { - "$ref": "#/components/errors/COMPILATION_FAILED" - }, - { - "$ref": "#/components/errors/COMPILED_CLASS_HASH_MISMATCH" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_ACCOUNT_BALANCE" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_MAX_FEE" - }, - { - "$ref": "#/components/errors/INVALID_TRANSACTION_NONCE" - }, - { - "$ref": "#/components/errors/VALIDATION_FAILURE" - }, - { - "$ref": "#/components/errors/NON_ACCOUNT" - }, - { - "$ref": "#/components/errors/DUPLICATE_TX" - }, - { - "$ref": "#/components/errors/CONTRACT_CLASS_SIZE_IS_TOO_LARGE" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_TX_VERSION" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_CONTRACT_CLASS_VERSION" - }, - { - "$ref": "#/components/errors/UNEXPECTED_ERROR" - } - ] - }, - { - "name": "starknet_addDeployAccountTransaction", - "summary": "Submit a new deploy account transaction", - "params": [ - { - "name": "deploy_account_transaction", - "description": "The deploy account transaction", - "required": true, - "schema": { - "$ref": "#/components/schemas/BROADCASTED_DEPLOY_ACCOUNT_TXN" - } - } - ], - "result": { - "name": "result", - "description": "The result of the transaction submission", - "schema": { - "type": "object", - "properties": { - "transaction_hash": { - "title": "The hash of the deploy transaction", - "$ref": "#/components/schemas/TXN_HASH" - }, - "contract_address": { - "title": "The address of the new contract", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "transaction_hash", - "contract_address" - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/INSUFFICIENT_ACCOUNT_BALANCE" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_MAX_FEE" - }, - { - "$ref": "#/components/errors/INVALID_TRANSACTION_NONCE" - }, - { - "$ref": "#/components/errors/VALIDATION_FAILURE" - }, - { - "$ref": "#/components/errors/NON_ACCOUNT" - }, - { - "$ref": "#/components/errors/CLASS_HASH_NOT_FOUND" - }, - { - "$ref": "#/components/errors/DUPLICATE_TX" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_TX_VERSION" - }, - { - "$ref": "#/components/errors/UNEXPECTED_ERROR" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "NUM_AS_HEX": { - "title": "An integer number in hex format (0x...)", - "type": "string", - "pattern": "^0x[a-fA-F0-9]+$" - }, - "SIGNATURE": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/SIGNATURE" - }, - "FELT": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/FELT" - }, - "TXN_HASH": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/TXN_HASH" - }, - "BROADCASTED_INVOKE_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_INVOKE_TXN" - }, - "BROADCASTED_DECLARE_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_DECLARE_TXN" - }, - "BROADCASTED_DEPLOY_ACCOUNT_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_DEPLOY_ACCOUNT_TXN" - }, - "FUNCTION_CALL": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/FUNCTION_CALL" - } - }, - "errors": { - "CLASS_HASH_NOT_FOUND": { - "code": 28, - "message": "Class hash not found" - }, - "CLASS_ALREADY_DECLARED": { - "code": 51, - "message": "Class already declared" - }, - "INVALID_TRANSACTION_NONCE": { - "code": 52, - "message": "Invalid transaction nonce" - }, - "INSUFFICIENT_MAX_FEE": { - "code": 53, - "message": "Max fee is smaller than the minimal transaction cost (validation plus fee transfer)" - }, - "INSUFFICIENT_ACCOUNT_BALANCE": { - "code": 54, - "message": "Account balance is smaller than the transaction's max_fee" - }, - "VALIDATION_FAILURE": { - "code": 55, - "message": "Account validation failed", - "data": "string" - }, - "COMPILATION_FAILED": { - "code": 56, - "message": "Compilation failed" - }, - "CONTRACT_CLASS_SIZE_IS_TOO_LARGE": { - "code": 57, - "message": "Contract class size it too large" - }, - "NON_ACCOUNT": { - "code": 58, - "message": "Sender address in not an account contract" - }, - "DUPLICATE_TX": { - "code": 59, - "message": "A transaction with the same hash already exists in the mempool" - }, - "COMPILED_CLASS_HASH_MISMATCH": { - "code": 60, - "message": "the compiled class hash did not match the one supplied in the transaction" - }, - "UNSUPPORTED_TX_VERSION": { - "code": 61, - "message": "the transaction version is not supported" - }, - "UNSUPPORTED_CONTRACT_CLASS_VERSION": { - "code": 62, - "message": "the contract class version is not supported" - }, - "UNEXPECTED_ERROR": { - "code": 63, - "message": "An unexpected error occurred", - "data": "string" - } - } - } -} \ No newline at end of file diff --git a/specs/rpc/v07/starknet_api_openrpc.json b/specs/rpc/v07/starknet_api_openrpc.json deleted file mode 100644 index 2187cf5c04..0000000000 --- a/specs/rpc/v07/starknet_api_openrpc.json +++ /dev/null @@ -1,3990 +0,0 @@ -{ - "openrpc": "1.0.0-rc1", - "info": { - "version": "0.7.0", - "title": "StarkNet Node API", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_specVersion", - "summary": "Returns the version of the Starknet JSON-RPC specification being used", - "params": [], - "result": { - "name": "result", - "description": "Semver of Starknet's JSON-RPC spec being used", - "required": true, - "schema": { - "title": "JSON-RPC spec version", - "type": "string" - } - } - }, - { - "name": "starknet_getBlockWithTxHashes", - "summary": "Get block information with transaction hashes given the block id", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The resulting block information with transaction hashes", - "schema": { - "title": "Starknet get block hash with tx hashes result", - "oneOf": [ - { - "title": "Block with transaction hashes", - "$ref": "#/components/schemas/BLOCK_WITH_TX_HASHES" - }, - { - "title": "Pending block with transaction hashes", - "$ref": "#/components/schemas/PENDING_BLOCK_WITH_TX_HASHES" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getBlockWithTxs", - "summary": "Get block information with full transactions given the block id", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The resulting block information with full transactions", - "schema": { - "title": "Starknet get block with txs result", - "oneOf": [ - { - "title": "Block with transactions", - "$ref": "#/components/schemas/BLOCK_WITH_TXS" - }, - { - "title": "Pending block with transactions", - "$ref": "#/components/schemas/PENDING_BLOCK_WITH_TXS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getBlockWithReceipts", - "summary": "Get block information with full transactions and receipts given the block id", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The resulting block information with full transactions", - "schema": { - "title": "Starknet get block with txs and receipts result", - "oneOf": [ - { - "title": "Block with transactions", - "$ref": "#/components/schemas/BLOCK_WITH_RECEIPTS" - }, - { - "title": "Pending block with transactions", - "$ref": "#/components/schemas/PENDING_BLOCK_WITH_RECEIPTS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getStateUpdate", - "summary": "Get the information about the result of executing the requested block", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The information about the state update of the requested block", - "schema": { - "title": "Starknet get state update result", - "oneOf": [ - { - "title": "State update", - "$ref": "#/components/schemas/STATE_UPDATE" - }, - { - "title": "Pending state update", - "$ref": "#/components/schemas/PENDING_STATE_UPDATE" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getStorageAt", - "summary": "Get the value of the storage at the given address and key", - "params": [ - { - "name": "contract_address", - "description": "The address of the contract to read from", - "summary": "The address of the contract to read from", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - }, - { - "name": "key", - "description": "The key to the storage value for the given contract", - "summary": "The key to the storage value for the given contract", - "required": true, - "schema": { - "title": "Storage key", - "$ref": "#/components/schemas/STORAGE_KEY" - } - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The value at the given key for the given contract. 0 if no value is found", - "summary": "The value at the given key for the given contract.", - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getTransactionStatus", - "summary": "Gets the transaction status (possibly reflecting that the tx is still in the mempool, or dropped from it)", - "paramStructure": "by-name", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the requested transaction", - "required": true, - "schema": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "result", - "schema": { - "title": "Transaction status", - "type": "object", - "properties": { - "finality_status": { - "title": "finality status", - "$ref": "#/components/schemas/TXN_STATUS" - }, - "execution_status": { - "title": "execution status", - "$ref": "#/components/schemas/TXN_EXECUTION_STATUS" - } - }, - "required": [ - "finality_status" - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getTransactionByHash", - "summary": "Get the details and status of a submitted transaction", - "paramStructure": "by-name", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the requested transaction", - "required": true, - "schema": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "result", - "schema": { - "title": "Transaction", - "allOf": [ - { - "$ref": "#/components/schemas/TXN" - }, - { - "type": "object", - "properties": { - "transaction_hash": { - "title": "transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "transaction_hash" - ] - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getTransactionByBlockIdAndIndex", - "summary": "Get the details of a transaction by a given block id and index", - "description": "Get the details of the transaction given by the identified block and index in that block. If no transaction is found, null is returned.", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "index", - "summary": "The index in the block to search for the transaction", - "required": true, - "schema": { - "title": "Index", - "type": "integer", - "minimum": 0 - } - } - ], - "result": { - "name": "transactionResult", - "schema": { - "title": "Transaction", - "allOf": [ - { - "$ref": "#/components/schemas/TXN" - }, - { - "type": "object", - "properties": { - "transaction_hash": { - "title": "transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "transaction_hash" - ] - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/INVALID_TXN_INDEX" - } - ] - }, - { - "name": "starknet_getTransactionReceipt", - "summary": "Get the transaction receipt by the transaction hash", - "paramStructure": "by-name", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the requested transaction", - "required": true, - "schema": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "result", - "schema": { - "title": "Transaction receipt with block info", - "$ref": "#/components/schemas/TXN_RECEIPT_WITH_BLOCK_INFO" - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getClass", - "summary": "Get the contract class definition in the given block associated with the given hash", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "class_hash", - "description": "The hash of the requested contract class", - "required": true, - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - } - ], - "result": { - "name": "result", - "description": "The contract class, if found", - "schema": { - "title": "Starknet get class result", - "oneOf": [ - { - "title": "Deprecated contract class", - "$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS" - }, - { - "title": "Contract class", - "$ref": "#/components/schemas/CONTRACT_CLASS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CLASS_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getClassHashAt", - "summary": "Get the contract class hash in the given block for the contract deployed at the given address", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "contract_address", - "description": "The address of the contract whose class hash will be returned", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - } - ], - "result": { - "name": "result", - "description": "The class hash of the given contract", - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getClassAt", - "summary": "Get the contract class definition in the given block at the given address", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "contract_address", - "description": "The address of the contract whose class definition will be returned", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - } - ], - "result": { - "name": "result", - "description": "The contract class", - "schema": { - "title": "Starknet get class at result", - "oneOf": [ - { - "title": "Deprecated contract class", - "$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS" - }, - { - "title": "Contract class", - "$ref": "#/components/schemas/CONTRACT_CLASS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getBlockTransactionCount", - "summary": "Get the number of transactions in a block given a block id", - "description": "Returns the number of transactions in the designated block.", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The number of transactions in the designated block", - "summary": "The number of transactions in the designated block", - "schema": { - "title": "Block transaction count", - "type": "integer", - "minimum": 0 - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_call", - "summary": "call a starknet function without creating a StarkNet transaction", - "description": "Calls a function in a contract and returns the return value. Using this call will not create a transaction; hence, will not change the state", - "params": [ - { - "name": "request", - "summary": "The details of the function call", - "schema": { - "title": "Function call", - "$ref": "#/components/schemas/FUNCTION_CALL" - }, - "required": true - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "summary": "The function's return value", - "description": "The function's return value, as defined in the Cairo output", - "schema": { - "type": "array", - "title": "Field element", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_estimateFee", - "summary": "estimate the fee for of StarkNet transactions", - "description": "Estimates the resources required by a given sequence of transactions when applied on a given state. If one of the transactions reverts or fails due to any reason (e.g. validation failure or an internal error), a TRANSACTION_EXECUTION_ERROR is returned. For v0-2 transactions the estimate is given in wei, and for v3 transactions it is given in fri.", - "params": [ - { - "name": "request", - "summary": "The transaction to estimate", - "schema": { - "type": "array", - "description": "a sequence of transactions to estimate, running each transaction on the state resulting from applying all the previous ones", - "title": "Transaction", - "items": { - "$ref": "#/components/schemas/BROADCASTED_TXN" - } - }, - "required": true - }, - { - "name": "simulation_flags", - "description": "describes what parts of the transaction should be executed", - "required": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SIMULATION_FLAG_FOR_ESTIMATE_FEE" - } - } - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "the fee estimations", - "schema": { - "title": "Estimation", - "type": "array", - "description": "a sequence of fee estimation where the i'th estimate corresponds to the i'th transaction", - "items": { - "$ref": "#/components/schemas/FEE_ESTIMATE" - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/TRANSACTION_EXECUTION_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_estimateMessageFee", - "summary": "estimate the L2 fee of a message sent on L1", - "description": "estimates the resources required by the l1_handler transaction induced by the message", - "params": [ - { - "name": "message", - "description": "the message's parameters", - "schema": { - "$ref": "#/components/schemas/MSG_FROM_L1" - }, - "required": true - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "the fee estimation", - "schema": { - "$ref": "#/components/schemas/FEE_ESTIMATE" - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_blockNumber", - "summary": "Get the most recent accepted block number", - "params": [], - "result": { - "name": "result", - "description": "The latest block number", - "schema": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "errors": [ - { - "$ref": "#/components/errors/NO_BLOCKS" - } - ] - }, - { - "name": "starknet_blockHashAndNumber", - "summary": "Get the most recent accepted block hash and number", - "params": [], - "result": { - "name": "result", - "description": "The latest block hash and number", - "schema": { - "title": "Starknet block hash and number result", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "required": [ - "block_hash", - "block_number" - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/NO_BLOCKS" - } - ] - }, - { - "name": "starknet_chainId", - "summary": "Return the currently configured StarkNet chain id", - "params": [], - "result": { - "name": "result", - "description": "The chain id this node is connected to", - "schema": { - "title": "Chain id", - "$ref": "#/components/schemas/CHAIN_ID" - } - } - }, - { - "name": "starknet_syncing", - "summary": "Returns an object about the sync status, or false if the node is not synching", - "params": [], - "result": { - "name": "syncing", - "summary": "The state of the synchronization, or false if the node is not synchronizing", - "description": "The status of the node, if it is currently synchronizing state. FALSE otherwise", - "schema": { - "title": "SyncingStatus", - "oneOf": [ - { - "type": "boolean", - "title": "False", - "description": "only legal value is FALSE here" - }, - { - "title": "Sync status", - "$ref": "#/components/schemas/SYNC_STATUS" - } - ] - } - } - }, - { - "name": "starknet_getEvents", - "summary": "Returns all events matching the given filter", - "description": "Returns all event objects matching the conditions in the provided filter", - "params": [ - { - "name": "filter", - "summary": "The conditions used to filter the returned events", - "required": true, - "schema": { - "title": "Events request", - "allOf": [ - { - "title": "Event filter", - "$ref": "#/components/schemas/EVENT_FILTER" - }, - { - "title": "Result page request", - "$ref": "#/components/schemas/RESULT_PAGE_REQUEST" - } - ] - } - } - ], - "result": { - "name": "events", - "description": "All the event objects matching the filter", - "schema": { - "title": "Events chunk", - "$ref": "#/components/schemas/EVENTS_CHUNK" - } - }, - "errors": [ - { - "$ref": "#/components/errors/PAGE_SIZE_TOO_BIG" - }, - { - "$ref": "#/components/errors/INVALID_CONTINUATION_TOKEN" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/TOO_MANY_KEYS_IN_FILTER" - } - ] - }, - { - "name": "starknet_getNonce", - "summary": "Get the nonce associated with the given address in the given block", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "contract_address", - "description": "The address of the contract whose nonce we're seeking", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - } - ], - "result": { - "name": "result", - "description": "The contract's nonce at the requested state", - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "EVENTS_CHUNK": { - "title": "Events chunk", - "type": "object", - "properties": { - "events": { - "type": "array", - "title": "Matching Events", - "items": { - "$ref": "#/components/schemas/EMITTED_EVENT" - } - }, - "continuation_token": { - "title": "Continuation token", - "description": "Use this token in a subsequent query to obtain the next page. Should not appear if there are no more pages.", - "type": "string" - } - }, - "required": [ - "events" - ] - }, - "RESULT_PAGE_REQUEST": { - "title": "Result page request", - "type": "object", - "properties": { - "continuation_token": { - "title": "Continuation token", - "description": "The token returned from the previous query. If no token is provided the first page is returned.", - "type": "string" - }, - "chunk_size": { - "title": "Chunk size", - "type": "integer", - "minimum": 1 - } - }, - "required": [ - "chunk_size" - ] - }, - "EMITTED_EVENT": { - "title": "Emitted event", - "description": "Event information decorated with metadata on where it was emitted / An event emitted as a result of transaction execution", - "allOf": [ - { - "title": "Event", - "description": "The event information", - "$ref": "#/components/schemas/EVENT" - }, - { - "title": "Event context", - "description": "The event emission information", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "description": "The hash of the block in which the event was emitted", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "description": "The number of the block in which the event was emitted", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "transaction_hash": { - "title": "Transaction hash", - "description": "The transaction that emitted the event", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "transaction_hash" - ] - } - ] - }, - "EVENT": { - "title": "Event", - "description": "A StarkNet event", - "allOf": [ - { - "title": "Event emitter", - "type": "object", - "properties": { - "from_address": { - "title": "From address", - "$ref": "#/components/schemas/ADDRESS" - } - }, - "required": [ - "from_address" - ] - }, - { - "title": "Event content", - "$ref": "#/components/schemas/EVENT_CONTENT" - } - ] - }, - "EVENT_CONTENT": { - "title": "Event content", - "description": "The content of an event", - "type": "object", - "properties": { - "keys": { - "type": "array", - "title": "Keys", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "data": { - "type": "array", - "title": "Data", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "keys", - "data" - ] - }, - "EVENT_FILTER": { - "title": "Event filter", - "description": "An event filter/query", - "type": "object", - "properties": { - "from_block": { - "title": "from block", - "$ref": "#/components/schemas/BLOCK_ID" - }, - "to_block": { - "title": "to block", - "$ref": "#/components/schemas/BLOCK_ID" - }, - "address": { - "title": "from contract", - "$ref": "#/components/schemas/ADDRESS" - }, - "keys": { - "title": "Keys", - "description": "The values used to filter the events", - "type": "array", - "items": { - "title": "Keys", - "description": "Per key (by position), designate the possible values to be matched for events to be returned. Empty array designates 'any' value", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "required": [] - }, - "BLOCK_ID": { - "title": "Block id", - "description": "Block hash, number or tag", - "oneOf": [ - { - "title": "Block hash", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - } - }, - "required": [ - "block_hash" - ] - }, - { - "title": "Block number", - "type": "object", - "properties": { - "block_number": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "required": [ - "block_number" - ] - }, - { - "title": "Block tag", - "$ref": "#/components/schemas/BLOCK_TAG" - } - ] - }, - "BLOCK_TAG": { - "title": "Block tag", - "type": "string", - "description": "A tag specifying a dynamic reference to a block", - "enum": [ - "latest", - "pending" - ] - }, - "SYNC_STATUS": { - "title": "Sync status", - "type": "object", - "description": "An object describing the node synchronization status", - "properties": { - "starting_block_hash": { - "title": "Starting block hash", - "description": "The hash of the block from which the sync started", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "starting_block_num": { - "title": "Starting block number", - "description": "The number (height) of the block from which the sync started", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "current_block_hash": { - "title": "Current block hash", - "description": "The hash of the current block being synchronized", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "current_block_num": { - "title": "Current block number", - "description": "The number (height) of the current block being synchronized", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "highest_block_hash": { - "title": "Highest block hash", - "description": "The hash of the estimated highest block to be synchronized", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "highest_block_num": { - "title": "Highest block number", - "description": "The number (height) of the estimated highest block to be synchronized", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "required": [ - "starting_block_hash", - "starting_block_num", - "current_block_hash", - "current_block_num", - "highest_block_hash", - "highest_block_num" - ] - }, - "NUM_AS_HEX": { - "title": "Number as hex", - "description": "An integer number in hex format (0x...)", - "type": "string", - "pattern": "^0x[a-fA-F0-9]+$" - }, - "u64": { - "type": "string", - "title": "u64", - "description": "64 bit integers, represented by hex string of length at most 16", - "pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,15})$" - }, - "u128": { - "type": "string", - "title": "u128", - "description": "64 bit integers, represented by hex string of length at most 32", - "pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,31})$" - }, - "CHAIN_ID": { - "title": "Chain id", - "description": "StarkNet chain id, given in hex representation.", - "type": "string", - "pattern": "^0x[a-fA-F0-9]+$" - }, - "STATE_DIFF": { - "description": "The change in state applied in this block, given as a mapping of addresses to the new values and/or new contracts", - "type": "object", - "properties": { - "storage_diffs": { - "title": "Storage diffs", - "type": "array", - "items": { - "description": "The changes in the storage per contract address", - "$ref": "#/components/schemas/CONTRACT_STORAGE_DIFF_ITEM" - } - }, - "deprecated_declared_classes": { - "title": "Deprecated declared classes", - "type": "array", - "items": { - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "declared_classes": { - "title": "Declared classes", - "type": "array", - "items": { - "title": "New classes", - "type": "object", - "description": "The declared class hash and compiled class hash", - "properties": { - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The Cairo assembly hash corresponding to the declared class", - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "deployed_contracts": { - "title": "Deployed contracts", - "type": "array", - "items": { - "description": "A new contract deployed as part of the state update", - "$ref": "#/components/schemas/DEPLOYED_CONTRACT_ITEM" - } - }, - "replaced_classes": { - "title": "Replaced classes", - "type": "array", - "items": { - "description": "The list of contracts whose class was replaced", - "title": "Replaced class", - "type": "object", - "properties": { - "contract_address": { - "title": "Contract address", - "description": "The address of the contract whose class was replaced", - "$ref": "#/components/schemas/ADDRESS" - }, - "class_hash": { - "title": "Class hash", - "description": "The new class hash", - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "nonces": { - "title": "Nonces", - "type": "array", - "items": { - "title": "Nonce update", - "description": "The updated nonce per contract address", - "type": "object", - "properties": { - "contract_address": { - "title": "Contract address", - "description": "The address of the contract", - "$ref": "#/components/schemas/ADDRESS" - }, - "nonce": { - "title": "Nonce", - "description": "The nonce for the given address at the end of the block", - "$ref": "#/components/schemas/FELT" - } - } - } - } - }, - "required": [ - "storage_diffs", - "deprecated_declared_classes", - "declared_classes", - "replaced_classes", - "deployed_contracts", - "nonces" - ] - }, - "PENDING_STATE_UPDATE": { - "title": "Pending state update", - "description": "Pending state update", - "type": "object", - "properties": { - "old_root": { - "title": "Old root", - "description": "The previous global state root", - "$ref": "#/components/schemas/FELT" - }, - "state_diff": { - "title": "State diff", - "$ref": "#/components/schemas/STATE_DIFF" - } - }, - "required": [ - "old_root", - "state_diff" - ], - "additionalProperties": false - }, - "STATE_UPDATE": { - "title": "State update", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "old_root": { - "title": "Old root", - "description": "The previous global state root", - "$ref": "#/components/schemas/FELT" - }, - "new_root": { - "title": "New root", - "description": "The new global state root", - "$ref": "#/components/schemas/FELT" - }, - "state_diff": { - "title": "State diff", - "$ref": "#/components/schemas/STATE_DIFF" - } - }, - "required": [ - "state_diff", - "block_hash", - "old_root", - "new_root" - ] - }, - "ADDRESS": { - "title": "Address", - "$ref": "#/components/schemas/FELT" - }, - "STORAGE_KEY": { - "type": "string", - "title": "Storage key", - "$comment": "A storage key, represented as a string of hex digits", - "description": "A storage key. Represented as up to 62 hex digits, 3 bits, and 5 leading zeroes.", - "pattern": "^0x(0|[0-7]{1}[a-fA-F0-9]{0,62}$)" - }, - "ETH_ADDRESS": { - "title": "Ethereum address", - "type": "string", - "$comment": "An ethereum address", - "description": "an ethereum address represented as 40 hex digits", - "pattern": "^0x[a-fA-F0-9]{40}$" - }, - "TXN_HASH": { - "$ref": "#/components/schemas/FELT", - "description": "The transaction hash, as assigned in StarkNet", - "title": "Transaction hash" - }, - "FELT": { - "type": "string", - "title": "Field element", - "description": "A field element. represented by at most 63 hex digits", - "pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$" - }, - "BLOCK_NUMBER": { - "title": "Block number", - "description": "The block's number (its height)", - "type": "integer", - "minimum": 0 - }, - "BLOCK_HASH": { - "title": "Block hash", - "$ref": "#/components/schemas/FELT" - }, - "BLOCK_BODY_WITH_TX_HASHES": { - "title": "Block body with transaction hashes", - "type": "object", - "properties": { - "transactions": { - "title": "Transaction hashes", - "description": "The hashes of the transactions included in this block", - "type": "array", - "items": { - "description": "The hash of a single transaction", - "$ref": "#/components/schemas/TXN_HASH" - } - } - }, - "required": [ - "transactions" - ] - }, - "BLOCK_BODY_WITH_TXS": { - "title": "Block body with transactions", - "type": "object", - "properties": { - "transactions": { - "title": "Transactions", - "description": "The transactions in this block", - "type": "array", - "items": { - "title": "transactions in block", - "type": "object", - "allOf": [ - { - "title": "transaction", - "$ref": "#/components/schemas/TXN" - }, - { - "type": "object", - "properties": { - "transaction_hash": { - "title": "transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "transaction_hash" - ] - } - ] - } - } - }, - "required": [ - "transactions" - ] - }, - "BLOCK_BODY_WITH_RECEIPTS": { - "title": "Block body with transactions and receipts", - "type": "object", - "properties": { - "transactions": { - "title": "Transactions", - "description": "The transactions in this block", - "type": "array", - "items": { - "type": "object", - "title": "transaction and receipt", - "properties": { - "transaction": { - "title": "transaction", - "$ref": "#/components/schemas/TXN" - }, - "receipt": { - "title": "receipt", - "$ref": "#/components/schemas/TXN_RECEIPT" - } - }, - "required": [ - "transaction", - "receipt" - ] - } - } - }, - "required": [ - "transactions" - ] - }, - "BLOCK_HEADER": { - "title": "Block header", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "parent_hash": { - "title": "Parent hash", - "description": "The hash of this block's parent", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "description": "The block number (its height)", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "new_root": { - "title": "New root", - "description": "The new global state root", - "$ref": "#/components/schemas/FELT" - }, - "timestamp": { - "title": "Timestamp", - "description": "The time in which the block was created, encoded in Unix time", - "type": "integer", - "minimum": 0 - }, - "sequencer_address": { - "title": "Sequencer address", - "description": "The StarkNet identity of the sequencer submitting this block", - "$ref": "#/components/schemas/FELT" - }, - "l1_gas_price": { - "title": "L1 gas price", - "description": "The price of l1 gas in the block", - "$ref": "#/components/schemas/RESOURCE_PRICE" - }, - "l1_data_gas_price": { - "title": "L1 data gas price", - "description": "The price of l1 data gas in the block", - "$ref": "#/components/schemas/RESOURCE_PRICE" - }, - "l1_da_mode": { - "title": "L1 da mode", - "type": "string", - "description": "specifies whether the data of this block is published via blob data or calldata", - "enum": [ - "BLOB", - "CALLDATA" - ] - }, - "starknet_version": { - "title": "Starknet version", - "description": "Semver of the current Starknet protocol", - "type": "string" - } - }, - "required": [ - "block_hash", - "parent_hash", - "block_number", - "new_root", - "timestamp", - "sequencer_address", - "l1_gas_price", - "l1_data_gas_price", - "l1_da_mode", - "starknet_version" - ] - }, - "PENDING_BLOCK_HEADER": { - "title": "Pending block header", - "type": "object", - "properties": { - "parent_hash": { - "title": "Parent hash", - "description": "The hash of this block's parent", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "timestamp": { - "title": "Timestamp", - "description": "The time in which the block was created, encoded in Unix time", - "type": "integer", - "minimum": 0 - }, - "sequencer_address": { - "title": "Sequencer address", - "description": "The StarkNet identity of the sequencer submitting this block", - "$ref": "#/components/schemas/FELT" - }, - "l1_gas_price": { - "title": "L1 gas price", - "description": "The price of l1 gas in the block", - "$ref": "#/components/schemas/RESOURCE_PRICE" - }, - "l1_data_gas_price": { - "title": "L1 data gas price", - "description": "The price of l1 data gas in the block", - "$ref": "#/components/schemas/RESOURCE_PRICE" - }, - "l1_da_mode": { - "title": "L1 da mode", - "type": "string", - "description": "specifies whether the data of this block is published via blob data or calldata", - "enum": [ - "BLOB", - "CALLDATA" - ] - }, - "starknet_version": { - "title": "Starknet version", - "description": "Semver of the current Starknet protocol", - "type": "string" - } - }, - "required": [ - "parent_hash", - "timestamp", - "sequencer_address", - "l1_gas_price", - "l1_data_gas_price", - "l1_da_mode", - "starknet_version" - ], - "not": { - "required": [ - "block_hash", - "block_number", - "new_root" - ] - } - }, - "BLOCK_WITH_TX_HASHES": { - "title": "Block with transaction hashes", - "description": "The block object", - "allOf": [ - { - "title": "Block status", - "type": "object", - "properties": { - "status": { - "title": "Status", - "$ref": "#/components/schemas/BLOCK_STATUS" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Block header", - "$ref": "#/components/schemas/BLOCK_HEADER" - }, - { - "title": "Block body with transaction hashes", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TX_HASHES" - } - ] - }, - "BLOCK_WITH_TXS": { - "title": "Block with transactions", - "description": "The block object", - "allOf": [ - { - "title": "block with txs", - "type": "object", - "properties": { - "status": { - "title": "Status", - "$ref": "#/components/schemas/BLOCK_STATUS" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Block header", - "$ref": "#/components/schemas/BLOCK_HEADER" - }, - { - "title": "Block body with transactions", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TXS" - } - ] - }, - "BLOCK_WITH_RECEIPTS": { - "title": "Block with transactions and receipts", - "description": "The block object", - "allOf": [ - { - "title": "block with txs", - "type": "object", - "properties": { - "status": { - "title": "Status", - "$ref": "#/components/schemas/BLOCK_STATUS" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Block header", - "$ref": "#/components/schemas/BLOCK_HEADER" - }, - { - "title": "Block body with transactions and receipts", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_RECEIPTS" - } - ] - }, - "PENDING_BLOCK_WITH_TX_HASHES": { - "title": "Pending block with transaction hashes", - "description": "The dynamic block being constructed by the sequencer. Note that this object will be deprecated upon decentralization.", - "allOf": [ - { - "title": "Block body with transactions hashes", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TX_HASHES" - }, - { - "title": "Pending block header", - "$ref": "#/components/schemas/PENDING_BLOCK_HEADER" - } - ] - }, - "PENDING_BLOCK_WITH_TXS": { - "title": "Pending block with transactions", - "description": "The dynamic block being constructed by the sequencer. Note that this object will be deprecated upon decentralization.", - "allOf": [ - { - "title": "Block body with transactions", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TXS" - }, - { - "title": "Pending block header", - "$ref": "#/components/schemas/PENDING_BLOCK_HEADER" - } - ] - }, - "PENDING_BLOCK_WITH_RECEIPTS": { - "title": "Pending block with transactions and receipts", - "description": "The dynamic block being constructed by the sequencer. Note that this object will be deprecated upon decentralization.", - "allOf": [ - { - "title": "Block body with transactions and receipts", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_RECEIPTS" - }, - { - "title": "Pending block header", - "$ref": "#/components/schemas/PENDING_BLOCK_HEADER" - } - ] - }, - "DEPLOYED_CONTRACT_ITEM": { - "title": "Deployed contract item", - "type": "object", - "properties": { - "address": { - "title": "Address", - "description": "The address of the contract", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the contract code", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "address", - "class_hash" - ] - }, - "CONTRACT_STORAGE_DIFF_ITEM": { - "title": "Contract storage diff item", - "type": "object", - "properties": { - "address": { - "title": "Address", - "description": "The contract address for which the storage changed", - "$ref": "#/components/schemas/FELT" - }, - "storage_entries": { - "title": "Storage entries", - "description": "The changes in the storage of the contract", - "type": "array", - "items": { - "title": "Storage diff item", - "type": "object", - "properties": { - "key": { - "title": "Key", - "description": "The key of the changed value", - "$ref": "#/components/schemas/FELT" - }, - "value": { - "title": "Value", - "description": "The new value applied to the given address", - "$ref": "#/components/schemas/FELT" - } - } - } - } - }, - "required": [ - "address", - "storage_entries" - ] - }, - "TXN": { - "title": "Transaction", - "description": "The transaction schema, as it appears inside a block", - "oneOf": [ - { - "title": "Invoke transaction", - "$ref": "#/components/schemas/INVOKE_TXN" - }, - { - "title": "L1 handler transaction", - "$ref": "#/components/schemas/L1_HANDLER_TXN" - }, - { - "title": "Declare transaction", - "$ref": "#/components/schemas/DECLARE_TXN" - }, - { - "title": "Deploy transaction", - "$ref": "#/components/schemas/DEPLOY_TXN" - }, - { - "title": "Deploy account transaction", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN" - } - ] - }, - "SIGNATURE": { - "title": "Signature", - "description": "A transaction signature", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "DECLARE_TXN": { - "title": "Declare transaction", - "oneOf": [ - { - "title": "Declare transaction V0", - "$ref": "#/components/schemas/DECLARE_TXN_V0" - }, - { - "title": "Declare transaction V1", - "$ref": "#/components/schemas/DECLARE_TXN_V1" - }, - { - "title": "Declare transaction V2", - "$ref": "#/components/schemas/DECLARE_TXN_V2" - }, - { - "title": "Declare transaction V3", - "$ref": "#/components/schemas/DECLARE_TXN_V3" - } - ] - }, - "DECLARE_TXN_V0": { - "title": "Declare Contract Transaction V0", - "description": "Declare Contract Transaction V0", - "allOf": [ - { - "type": "object", - "title": "Declare txn v0", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x0", - "0x100000000000000000000000000000000" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "max_fee", - "version", - "signature", - "class_hash" - ] - } - ] - }, - "DECLARE_TXN_V1": { - "title": "Declare Contract Transaction V1", - "description": "Declare Contract Transaction V1", - "allOf": [ - { - "type": "object", - "title": "Declare txn v1", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x1", - "0x100000000000000000000000000000001" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "max_fee", - "version", - "signature", - "nonce", - "class_hash" - ] - } - ] - }, - "DECLARE_TXN_V2": { - "title": "Declare Transaction V2", - "description": "Declare Contract Transaction V2", - "allOf": [ - { - "type": "object", - "title": "Declare txn v2", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The hash of the Cairo assembly resulting from the Sierra compilation", - "$ref": "#/components/schemas/FELT" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x2", - "0x100000000000000000000000000000002" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "compiled_class_hash", - "max_fee", - "version", - "signature", - "nonce", - "class_hash" - ] - } - ] - }, - "DECLARE_TXN_V3": { - "title": "Declare Transaction V3", - "description": "Declare Contract Transaction V3", - "allOf": [ - { - "type": "object", - "title": "Declare txn v3", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The hash of the Cairo assembly resulting from the Sierra compilation", - "$ref": "#/components/schemas/FELT" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x3", - "0x100000000000000000000000000000003" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - }, - "resource_bounds": { - "title": "Resource bounds", - "description": "resource bounds for the transaction execution", - "$ref": "#/components/schemas/RESOURCE_BOUNDS_MAPPING" - }, - "tip": { - "title": "Tip", - "$ref": "#/components/schemas/u64", - "description": "the tip for the transaction" - }, - "paymaster_data": { - "title": "Paymaster data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to allow the paymaster to pay for the transaction in native tokens" - }, - "account_deployment_data": { - "title": "Account deployment data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to deploy the account contract from which this tx will be initiated" - }, - "nonce_data_availability_mode": { - "title": "Nonce DA mode", - "description": "The storage domain of the account's nonce (an account has a nonce per DA mode)", - "$ref": "#/components/schemas/DA_MODE" - }, - "fee_data_availability_mode": { - "title": "Fee DA mode", - "description": "The storage domain of the account's balance from which fee will be charged", - "$ref": "#/components/schemas/DA_MODE" - } - }, - "required": [ - "type", - "sender_address", - "compiled_class_hash", - "version", - "signature", - "nonce", - "class_hash", - "resource_bounds", - "tip", - "paymaster_data", - "account_deployment_data", - "nonce_data_availability_mode", - "fee_data_availability_mode" - ] - } - ] - }, - "BROADCASTED_TXN": { - "oneOf": [ - { - "$ref": "#/components/schemas/BROADCASTED_INVOKE_TXN" - }, - { - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN" - }, - { - "$ref": "#/components/schemas/BROADCASTED_DEPLOY_ACCOUNT_TXN" - } - ] - }, - "BROADCASTED_INVOKE_TXN": { - "title": "Broadcasted invoke transaction", - "$ref": "#/components/schemas/INVOKE_TXN" - }, - "BROADCASTED_DEPLOY_ACCOUNT_TXN": { - "title": "Broadcasted deploy account transaction", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN" - }, - "BROADCASTED_DECLARE_TXN": { - "title": "Broadcasted declare transaction", - "oneOf": [ - { - "title": "Broadcasted declare transaction V1", - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN_V1" - }, - { - "title": "Broadcasted declare transaction V2", - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN_V2" - }, - { - "title": "Broadcasted declare transaction V3", - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN_V3" - } - ] - }, - "BROADCASTED_DECLARE_TXN_V1": { - "title": "Broadcasted declare contract transaction V1", - "allOf": [ - { - "type": "object", - "title": "Declare txn v1", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x1", - "0x100000000000000000000000000000001" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "contract_class": { - "title": "Contract class", - "description": "The class to be declared", - "$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS" - } - }, - "required": [ - "type", - "sender_address", - "max_fee", - "version", - "signature", - "nonce", - "contract_class" - ] - } - ] - }, - "BROADCASTED_DECLARE_TXN_V2": { - "title": "Broadcasted declare Transaction V2", - "description": "Broadcasted declare Contract Transaction V2", - "allOf": [ - { - "type": "object", - "title": "Declare txn v2", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The hash of the Cairo assembly resulting from the Sierra compilation", - "$ref": "#/components/schemas/FELT" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x2", - "0x100000000000000000000000000000002" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "contract_class": { - "title": "Contract class", - "description": "The class to be declared", - "$ref": "#/components/schemas/CONTRACT_CLASS" - } - }, - "required": [ - "type", - "sender_address", - "compiled_class_hash", - "max_fee", - "version", - "signature", - "nonce", - "contract_class" - ] - } - ] - }, - "BROADCASTED_DECLARE_TXN_V3": { - "title": "Broadcasted declare Transaction V3", - "description": "Broadcasted declare Contract Transaction V3", - "allOf": [ - { - "type": "object", - "title": "Declare txn v3", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The hash of the Cairo assembly resulting from the Sierra compilation", - "$ref": "#/components/schemas/FELT" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x3", - "0x100000000000000000000000000000003" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "contract_class": { - "title": "Contract class", - "description": "The class to be declared", - "$ref": "#/components/schemas/CONTRACT_CLASS" - }, - "resource_bounds": { - "title": "Resource bounds", - "description": "resource bounds for the transaction execution", - "$ref": "#/components/schemas/RESOURCE_BOUNDS_MAPPING" - }, - "tip": { - "title": "Tip", - "$ref": "#/components/schemas/u64", - "description": "the tip for the transaction" - }, - "paymaster_data": { - "title": "Paymaster data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to allow the paymaster to pay for the transaction in native tokens" - }, - "account_deployment_data": { - "title": "Account deployment data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to deploy the account contract from which this tx will be initiated" - }, - "nonce_data_availability_mode": { - "title": "Nonce DA mode", - "description": "The storage domain of the account's nonce (an account has a nonce per DA mode)", - "$ref": "#/components/schemas/DA_MODE" - }, - "fee_data_availability_mode": { - "title": "Fee DA mode", - "description": "The storage domain of the account's balance from which fee will be charged", - "$ref": "#/components/schemas/DA_MODE" - } - }, - "required": [ - "type", - "sender_address", - "compiled_class_hash", - "version", - "signature", - "nonce", - "contract_class", - "resource_bounds", - "tip", - "paymaster_data", - "account_deployment_data", - "nonce_data_availability_mode", - "fee_data_availability_mode" - ] - } - ] - }, - "DEPLOY_ACCOUNT_TXN": { - "title": "Deploy account transaction", - "description": "deploys a new account contract", - "oneOf": [ - { - "title": "Deploy account V1", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN_V1" - }, - { - "title": "Deploy account V3", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN_V3" - } - ] - }, - "DEPLOY_ACCOUNT_TXN_V1": { - "title": "Deploy account transaction", - "description": "Deploys an account contract, charges fee from the pre-funded account addresses", - "type": "object", - "properties": { - "type": { - "title": "Deploy account", - "type": "string", - "enum": [ - "DEPLOY_ACCOUNT" - ] - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x1", - "0x100000000000000000000000000000001" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "contract_address_salt": { - "title": "Contract address salt", - "description": "The salt for the address of the deployed contract", - "$ref": "#/components/schemas/FELT" - }, - "constructor_calldata": { - "type": "array", - "description": "The parameters passed to the constructor", - "title": "Constructor calldata", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the deployed contract's class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "max_fee", - "version", - "signature", - "nonce", - "type", - "contract_address_salt", - "constructor_calldata", - "class_hash" - ] - }, - "DEPLOY_ACCOUNT_TXN_V3": { - "title": "Deploy account transaction", - "description": "Deploys an account contract, charges fee from the pre-funded account addresses", - "type": "object", - "properties": { - "type": { - "title": "Deploy account", - "type": "string", - "enum": [ - "DEPLOY_ACCOUNT" - ] - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x3", - "0x100000000000000000000000000000003" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "contract_address_salt": { - "title": "Contract address salt", - "description": "The salt for the address of the deployed contract", - "$ref": "#/components/schemas/FELT" - }, - "constructor_calldata": { - "type": "array", - "description": "The parameters passed to the constructor", - "title": "Constructor calldata", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the deployed contract's class", - "$ref": "#/components/schemas/FELT" - }, - "resource_bounds": { - "title": "Resource bounds", - "description": "resource bounds for the transaction execution", - "$ref": "#/components/schemas/RESOURCE_BOUNDS_MAPPING" - }, - "tip": { - "title": "Tip", - "$ref": "#/components/schemas/u64", - "description": "the tip for the transaction" - }, - "paymaster_data": { - "title": "Paymaster data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to allow the paymaster to pay for the transaction in native tokens" - }, - "nonce_data_availability_mode": { - "title": "Nonce DA mode", - "description": "The storage domain of the account's nonce (an account has a nonce per DA mode)", - "$ref": "#/components/schemas/DA_MODE" - }, - "fee_data_availability_mode": { - "title": "Fee DA mode", - "description": "The storage domain of the account's balance from which fee will be charged", - "$ref": "#/components/schemas/DA_MODE" - } - }, - "required": [ - "version", - "signature", - "nonce", - "type", - "contract_address_salt", - "constructor_calldata", - "class_hash", - "resource_bounds", - "tip", - "paymaster_data", - "nonce_data_availability_mode", - "fee_data_availability_mode" - ] - }, - "DEPLOY_TXN": { - "title": "Deploy Contract Transaction", - "description": "The structure of a deploy transaction. Note that this transaction type is deprecated and will no longer be supported in future versions", - "allOf": [ - { - "type": "object", - "title": "Deploy txn", - "properties": { - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "$ref": "#/components/schemas/FELT" - }, - "type": { - "title": "Deploy", - "type": "string", - "enum": [ - "DEPLOY" - ] - }, - "contract_address_salt": { - "description": "The salt for the address of the deployed contract", - "title": "Contract address salt", - "$ref": "#/components/schemas/FELT" - }, - "constructor_calldata": { - "type": "array", - "title": "Constructor calldata", - "description": "The parameters passed to the constructor", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the deployed contract's class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "version", - "type", - "constructor_calldata", - "contract_address_salt", - "class_hash" - ] - } - ] - }, - "INVOKE_TXN_V0": { - "title": "Invoke transaction V0", - "description": "invokes a specific function in the desired contract (not necessarily an account)", - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x0", - "0x100000000000000000000000000000000" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "contract_address": { - "title": "Contract address", - "$ref": "#/components/schemas/ADDRESS" - }, - "entry_point_selector": { - "title": "Entry point selector", - "$ref": "#/components/schemas/FELT" - }, - "calldata": { - "title": "Calldata", - "type": "array", - "description": "The parameters passed to the function", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "type", - "contract_address", - "entry_point_selector", - "calldata", - "max_fee", - "version", - "signature" - ] - }, - "INVOKE_TXN_V1": { - "title": "Invoke transaction V1", - "description": "initiates a transaction from a given account", - "allOf": [ - { - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - }, - "sender_address": { - "title": "sender address", - "$ref": "#/components/schemas/ADDRESS" - }, - "calldata": { - "type": "array", - "title": "calldata", - "description": "The data expected by the account's `execute` function (in most usecases, this includes the called contract address and a function selector)", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x1", - "0x100000000000000000000000000000001" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "calldata", - "max_fee", - "version", - "signature", - "nonce" - ] - } - ] - }, - "INVOKE_TXN_V3": { - "title": "Invoke transaction V3", - "description": "initiates a transaction from a given account", - "allOf": [ - { - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - }, - "sender_address": { - "title": "sender address", - "$ref": "#/components/schemas/ADDRESS" - }, - "calldata": { - "type": "array", - "title": "calldata", - "description": "The data expected by the account's `execute` function (in most usecases, this includes the called contract address and a function selector)", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x3", - "0x100000000000000000000000000000003" - ] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "resource_bounds": { - "title": "Resource bounds", - "description": "resource bounds for the transaction execution", - "$ref": "#/components/schemas/RESOURCE_BOUNDS_MAPPING" - }, - "tip": { - "title": "Tip", - "$ref": "#/components/schemas/u64", - "description": "the tip for the transaction" - }, - "paymaster_data": { - "title": "Paymaster data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to allow the paymaster to pay for the transaction in native tokens" - }, - "account_deployment_data": { - "title": "Account deployment data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to deploy the account contract from which this tx will be initiated" - }, - "nonce_data_availability_mode": { - "title": "Nonce DA mode", - "description": "The storage domain of the account's nonce (an account has a nonce per DA mode)", - "$ref": "#/components/schemas/DA_MODE" - }, - "fee_data_availability_mode": { - "title": "Fee DA mode", - "description": "The storage domain of the account's balance from which fee will be charged", - "$ref": "#/components/schemas/DA_MODE" - } - }, - "required": [ - "type", - "sender_address", - "calldata", - "version", - "signature", - "nonce", - "resource_bounds", - "tip", - "paymaster_data", - "account_deployment_data", - "nonce_data_availability_mode", - "fee_data_availability_mode" - ] - } - ] - }, - "INVOKE_TXN": { - "title": "Invoke transaction", - "description": "Initiate a transaction from an account", - "oneOf": [ - { - "title": "Invoke transaction V0", - "$ref": "#/components/schemas/INVOKE_TXN_V0" - }, - { - "title": "Invoke transaction V1", - "$ref": "#/components/schemas/INVOKE_TXN_V1" - }, - { - "title": "Invoke transaction V3", - "$ref": "#/components/schemas/INVOKE_TXN_V3" - } - ] - }, - "L1_HANDLER_TXN": { - "title": "L1 Handler transaction", - "allOf": [ - { - "type": "object", - "title": "L1 handler transaction", - "description": "a call to an l1_handler on an L2 contract induced by a message from L1", - "properties": { - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": [ - "0x0" - ] - }, - "type": { - "title": "type", - "type": "string", - "enum": [ - "L1_HANDLER" - ] - }, - "nonce": { - "title": "Nonce", - "description": "The L1->L2 message nonce field of the SN Core L1 contract at the time the transaction was sent", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": [ - "version", - "type", - "nonce" - ] - }, - { - "title": "Function call", - "$ref": "#/components/schemas/FUNCTION_CALL" - } - ] - }, - "COMMON_RECEIPT_PROPERTIES": { - "allOf": [ - { - "title": "Common receipt properties", - "description": "Common properties for a transaction receipt", - "type": "object", - "properties": { - "transaction_hash": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH", - "description": "The hash identifying the transaction" - }, - "actual_fee": { - "title": "Actual fee", - "$ref": "#/components/schemas/FEE_PAYMENT", - "description": "The fee that was charged by the sequencer" - }, - "finality_status": { - "title": "Finality status", - "description": "finality status of the tx", - "$ref": "#/components/schemas/TXN_FINALITY_STATUS" - }, - "messages_sent": { - "type": "array", - "title": "Messages sent", - "items": { - "$ref": "#/components/schemas/MSG_TO_L1" - } - }, - "events": { - "description": "The events emitted as part of this transaction", - "title": "Events", - "type": "array", - "items": { - "$ref": "#/components/schemas/EVENT" - } - }, - "execution_resources": { - "title": "Execution resources", - "description": "The resources consumed by the transaction", - "$ref": "#/components/schemas/EXECUTION_RESOURCES" - } - }, - "required": [ - "transaction_hash", - "actual_fee", - "finality_status", - "messages_sent", - "events", - "execution_resources" - ] - }, - { - "oneOf": [ - { - "title": "Successful Common receipt properties", - "description": "Common properties for a transaction receipt that was executed successfully", - "type": "object", - "properties": { - "execution_status": { - "title": "Execution status", - "type": "string", - "enum": [ - "SUCCEEDED" - ], - "description": "The execution status of the transaction" - } - }, - "required": [ - "execution_status" - ] - }, - { - "title": "Reverted Common receipt properties", - "description": "Common properties for a transaction receipt that was reverted", - "type": "object", - "properties": { - "execution_status": { - "title": "Execution status", - "type": "string", - "enum": [ - "REVERTED" - ], - "description": "The execution status of the transaction" - }, - "revert_reason": { - "title": "Revert reason", - "name": "revert reason", - "description": "the revert reason for the failed execution", - "type": "string" - } - }, - "required": [ - "execution_status", - "revert_reason" - ] - } - ] - } - ] - }, - "INVOKE_TXN_RECEIPT": { - "title": "Invoke Transaction Receipt", - "allOf": [ - { - "title": "Type", - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - } - }, - "required": [ - "type" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "DECLARE_TXN_RECEIPT": { - "title": "Declare Transaction Receipt", - "allOf": [ - { - "title": "Declare txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": [ - "DECLARE" - ] - } - }, - "required": [ - "type" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "DEPLOY_ACCOUNT_TXN_RECEIPT": { - "title": "Deploy Account Transaction Receipt", - "allOf": [ - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - }, - { - "title": "DeployAccount txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Deploy account", - "type": "string", - "enum": [ - "DEPLOY_ACCOUNT" - ] - }, - "contract_address": { - "title": "Contract address", - "description": "The address of the deployed contract", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "contract_address" - ] - } - ] - }, - "DEPLOY_TXN_RECEIPT": { - "title": "Deploy Transaction Receipt", - "allOf": [ - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - }, - { - "title": "Deploy txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Deploy", - "type": "string", - "enum": [ - "DEPLOY" - ] - }, - "contract_address": { - "title": "Contract address", - "description": "The address of the deployed contract", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "contract_address" - ] - } - ] - }, - "L1_HANDLER_TXN_RECEIPT": { - "title": "L1 Handler Transaction Receipt", - "description": "receipt for l1 handler transaction", - "allOf": [ - { - "title": "Transaction type", - "type": "object", - "properties": { - "type": { - "title": "type", - "type": "string", - "enum": [ - "L1_HANDLER" - ] - }, - "message_hash": { - "title": "Message hash", - "description": "The message hash as it appears on the L1 core contract", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": [ - "type", - "message_hash" - ] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "TXN_RECEIPT": { - "title": "Transaction Receipt", - "oneOf": [ - { - "title": "Invoke transaction receipt", - "$ref": "#/components/schemas/INVOKE_TXN_RECEIPT" - }, - { - "title": "L1 handler transaction receipt", - "$ref": "#/components/schemas/L1_HANDLER_TXN_RECEIPT" - }, - { - "title": "Declare transaction receipt", - "$ref": "#/components/schemas/DECLARE_TXN_RECEIPT" - }, - { - "title": "Deploy transaction receipt", - "$ref": "#/components/schemas/DEPLOY_TXN_RECEIPT" - }, - { - "title": "Deploy account transaction receipt", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN_RECEIPT" - } - ] - }, - "TXN_RECEIPT_WITH_BLOCK_INFO": { - "title": "Transaction receipt with block info", - "allOf": [ - { - "title": "Transaction receipt", - "$ref": "#/components/schemas/TXN_RECEIPT" - }, - { - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH", - "description": "If this field is missing, it means the receipt belongs to the pending block" - }, - "block_number": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER", - "description": "If this field is missing, it means the receipt belongs to the pending block" - } - } - } - ] - }, - "MSG_TO_L1": { - "title": "Message to L1", - "type": "object", - "properties": { - "from_address": { - "description": "The address of the L2 contract sending the message", - "$ref": "#/components/schemas/FELT" - }, - "to_address": { - "title": "To address", - "description": "The target L1 address the message is sent to", - "$ref": "#/components/schemas/FELT" - }, - "payload": { - "description": "The payload of the message", - "title": "Payload", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "from_address", - "to_address", - "payload" - ] - }, - "MSG_FROM_L1": { - "title": "Message from L1", - "type": "object", - "properties": { - "from_address": { - "description": "The address of the L1 contract sending the message", - "$ref": "#/components/schemas/ETH_ADDRESS" - }, - "to_address": { - "title": "To address", - "description": "The target L2 address the message is sent to", - "$ref": "#/components/schemas/ADDRESS" - }, - "entry_point_selector": { - "title": "Selector", - "description": "The selector of the l1_handler in invoke in the target contract", - "$ref": "#/components/schemas/FELT" - }, - "payload": { - "description": "The payload of the message", - "title": "Payload", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "from_address", - "to_address", - "payload", - "entry_point_selector" - ] - }, - "TXN_STATUS": { - "title": "Transaction status", - "type": "string", - "enum": [ - "RECEIVED", - "REJECTED", - "ACCEPTED_ON_L2", - "ACCEPTED_ON_L1" - ], - "description": "The finality status of the transaction, including the case the txn is still in the mempool or failed validation during the block construction phase" - }, - "TXN_FINALITY_STATUS": { - "title": "Finality status", - "type": "string", - "enum": [ - "ACCEPTED_ON_L2", - "ACCEPTED_ON_L1" - ], - "description": "The finality status of the transaction" - }, - "TXN_EXECUTION_STATUS": { - "title": "Execution status", - "type": "string", - "enum": [ - "SUCCEEDED", - "REVERTED" - ], - "description": "The execution status of the transaction" - }, - "TXN_TYPE": { - "title": "Transaction type", - "type": "string", - "enum": [ - "DECLARE", - "DEPLOY", - "DEPLOY_ACCOUNT", - "INVOKE", - "L1_HANDLER" - ], - "description": "The type of the transaction" - }, - "BLOCK_STATUS": { - "title": "Block status", - "type": "string", - "enum": [ - "PENDING", - "ACCEPTED_ON_L2", - "ACCEPTED_ON_L1", - "REJECTED" - ], - "description": "The status of the block" - }, - "FUNCTION_CALL": { - "title": "Function call", - "type": "object", - "description": "Function call information", - "properties": { - "contract_address": { - "title": "Contract address", - "$ref": "#/components/schemas/ADDRESS" - }, - "entry_point_selector": { - "title": "Entry point selector", - "$ref": "#/components/schemas/FELT" - }, - "calldata": { - "title": "Calldata", - "type": "array", - "description": "The parameters passed to the function", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "contract_address", - "entry_point_selector", - "calldata" - ] - }, - "CONTRACT_CLASS": { - "title": "Contract class", - "type": "object", - "properties": { - "sierra_program": { - "title": "Sierra program", - "type": "array", - "description": "The list of Sierra instructions of which the program consists", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "contract_class_version": { - "title": "Contract class version", - "type": "string", - "description": "The version of the contract class object. Currently, the Starknet OS supports version 0.1.0" - }, - "entry_points_by_type": { - "title": "Entry points by type", - "type": "object", - "properties": { - "CONSTRUCTOR": { - "type": "array", - "title": "Constructor", - "items": { - "$ref": "#/components/schemas/SIERRA_ENTRY_POINT" - } - }, - "EXTERNAL": { - "title": "External", - "type": "array", - "items": { - "$ref": "#/components/schemas/SIERRA_ENTRY_POINT" - } - }, - "L1_HANDLER": { - "title": "L1 handler", - "type": "array", - "items": { - "$ref": "#/components/schemas/SIERRA_ENTRY_POINT" - } - } - }, - "required": [ - "CONSTRUCTOR", - "EXTERNAL", - "L1_HANDLER" - ] - }, - "abi": { - "title": "ABI", - "type": "string", - "description": "The class ABI, as supplied by the user declaring the class" - } - }, - "required": [ - "sierra_program", - "contract_class_version", - "entry_points_by_type" - ] - }, - "DEPRECATED_CONTRACT_CLASS": { - "title": "Deprecated contract class", - "description": "The definition of a StarkNet contract class", - "type": "object", - "properties": { - "program": { - "type": "string", - "title": "Program", - "description": "A base64 representation of the compressed program code", - "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$" - }, - "entry_points_by_type": { - "type": "object", - "title": "Deprecated entry points by type", - "properties": { - "CONSTRUCTOR": { - "type": "array", - "title": "Deprecated constructor", - "items": { - "$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - }, - "EXTERNAL": { - "type": "array", - "title": "Deprecated external", - "items": { - "$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - }, - "L1_HANDLER": { - "type": "array", - "title": "Deprecated L1 handler", - "items": { - "$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - } - } - }, - "abi": { - "title": "Contract ABI", - "$ref": "#/components/schemas/CONTRACT_ABI" - } - }, - "required": [ - "program", - "entry_points_by_type" - ] - }, - "DEPRECATED_CAIRO_ENTRY_POINT": { - "title": "Deprecated Cairo entry point", - "type": "object", - "properties": { - "offset": { - "title": "Offset", - "description": "The offset of the entry point in the program", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "selector": { - "title": "Selector", - "description": "A unique identifier of the entry point (function) in the program", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "offset", - "selector" - ] - }, - "SIERRA_ENTRY_POINT": { - "title": "Sierra entry point", - "type": "object", - "properties": { - "selector": { - "title": "Selector", - "description": "A unique identifier of the entry point (function) in the program", - "$ref": "#/components/schemas/FELT" - }, - "function_idx": { - "title": "Function index", - "description": "The index of the function in the program", - "type": "integer" - } - }, - "required": [ - "selector", - "function_idx" - ] - }, - "CONTRACT_ABI": { - "title": "Contract ABI", - "type": "array", - "items": { - "$ref": "#/components/schemas/CONTRACT_ABI_ENTRY" - } - }, - "CONTRACT_ABI_ENTRY": { - "title": "Contract ABI entry", - "oneOf": [ - { - "title": "Function ABI entry", - "$ref": "#/components/schemas/FUNCTION_ABI_ENTRY" - }, - { - "title": "Event ABI entry", - "$ref": "#/components/schemas/EVENT_ABI_ENTRY" - }, - { - "title": "Struct ABI entry", - "$ref": "#/components/schemas/STRUCT_ABI_ENTRY" - } - ] - }, - "STRUCT_ABI_TYPE": { - "title": "Struct ABI type", - "type": "string", - "enum": [ - "struct" - ] - }, - "EVENT_ABI_TYPE": { - "title": "Event ABI type", - "type": "string", - "enum": [ - "event" - ] - }, - "FUNCTION_ABI_TYPE": { - "title": "Function ABI type", - "type": "string", - "enum": [ - "function", - "l1_handler", - "constructor" - ] - }, - "STRUCT_ABI_ENTRY": { - "title": "Struct ABI entry", - "type": "object", - "properties": { - "type": { - "title": "Struct ABI type", - "$ref": "#/components/schemas/STRUCT_ABI_TYPE" - }, - "name": { - "title": "Struct name", - "description": "The struct name", - "type": "string" - }, - "size": { - "title": "Size", - "type": "integer", - "minimum": 1 - }, - "members": { - "type": "array", - "title": "Members", - "items": { - "$ref": "#/components/schemas/STRUCT_MEMBER" - } - } - }, - "required": [ - "type", - "name", - "size", - "members" - ] - }, - "STRUCT_MEMBER": { - "title": "Struct member", - "allOf": [ - { - "title": "Typed parameter", - "$ref": "#/components/schemas/TYPED_PARAMETER" - }, - { - "type": "object", - "title": "Offset", - "properties": { - "offset": { - "title": "Offset", - "description": "offset of this property within the struct", - "type": "integer" - } - } - } - ] - }, - "EVENT_ABI_ENTRY": { - "title": "Event ABI entry", - "type": "object", - "properties": { - "type": { - "title": "Event ABI type", - "$ref": "#/components/schemas/EVENT_ABI_TYPE" - }, - "name": { - "title": "Event name", - "description": "The event name", - "type": "string" - }, - "keys": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - }, - "data": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - } - }, - "required": [ - "type", - "name", - "keys", - "data" - ] - }, - "FUNCTION_STATE_MUTABILITY": { - "title": "Function state mutability type", - "type": "string", - "enum": [ - "view" - ] - }, - "FUNCTION_ABI_ENTRY": { - "title": "Function ABI entry", - "type": "object", - "properties": { - "type": { - "title": "Function ABI type", - "$ref": "#/components/schemas/FUNCTION_ABI_TYPE" - }, - "name": { - "title": "Function name", - "description": "The function name", - "type": "string" - }, - "inputs": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - }, - "outputs": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - }, - "stateMutability": { - "title": "Function state mutability", - "$ref": "#/components/schemas/FUNCTION_STATE_MUTABILITY" - } - }, - "required": [ - "type", - "name", - "inputs", - "outputs" - ] - }, - "TYPED_PARAMETER": { - "title": "Typed parameter", - "type": "object", - "properties": { - "name": { - "title": "Parameter name", - "description": "The parameter's name", - "type": "string" - }, - "type": { - "title": "Parameter type", - "description": "The parameter's type", - "type": "string" - } - }, - "required": [ - "name", - "type" - ] - }, - "SIMULATION_FLAG_FOR_ESTIMATE_FEE": { - "type": "string", - "enum": [ - "SKIP_VALIDATE" - ], - "description": "Flags that indicate how to simulate a given transaction. By default, the sequencer behavior is replicated locally" - }, - "PRICE_UNIT": { - "title": "price unit", - "type": "string", - "enum": [ - "WEI", - "FRI" - ] - }, - "FEE_ESTIMATE": { - "title": "Fee estimation", - "type": "object", - "properties": { - "gas_consumed": { - "title": "Gas consumed", - "description": "The Ethereum gas consumption of the transaction", - "$ref": "#/components/schemas/FELT" - }, - "gas_price": { - "title": "Gas price", - "description": "The gas price (in wei or fri, depending on the tx version) that was used in the cost estimation", - "$ref": "#/components/schemas/FELT" - }, - "data_gas_consumed": { - "title": "Data gas consumed", - "description": "The Ethereum data gas consumption of the transaction", - "$ref": "#/components/schemas/FELT" - }, - "data_gas_price": { - "title": "Data gas price", - "description": "The data gas price (in wei or fri, depending on the tx version) that was used in the cost estimation", - "$ref": "#/components/schemas/FELT" - }, - "overall_fee": { - "title": "Overall fee", - "description": "The estimated fee for the transaction (in wei or fri, depending on the tx version), equals to gas_consumed*gas_price + data_gas_consumed*data_gas_price", - "$ref": "#/components/schemas/FELT" - }, - "unit": { - "title": "Fee unit", - "description": "units in which the fee is given", - "$ref": "#/components/schemas/PRICE_UNIT" - } - }, - "required": [ - "gas_consumed", - "gas_price", - "data_gas_consumed", - "data_gas_price", - "overall_fee", - "unit" - ] - }, - "FEE_PAYMENT": { - "title": "Fee Payment", - "description": "fee payment info as it appears in receipts", - "type": "object", - "properties": { - "amount": { - "title": "Amount", - "description": "amount paid", - "$ref": "#/components/schemas/FELT" - }, - "unit": { - "title": "Fee unit", - "description": "units in which the fee is given", - "$ref": "#/components/schemas/PRICE_UNIT" - } - }, - "required": [ - "amount", - "unit" - ] - }, - "DA_MODE": { - "title": "DA mode", - "type": "string", - "description": "Specifies a storage domain in Starknet. Each domain has different guarantees regarding availability", - "enum": [ - "L1", - "L2" - ] - }, - "RESOURCE_BOUNDS_MAPPING": { - "type": "object", - "properties": { - "l1_gas": { - "title": "L1 Gas", - "description": "The max amount and max price per unit of L1 gas used in this tx", - "$ref": "#/components/schemas/RESOURCE_BOUNDS" - }, - "l2_gas": { - "title": "L2 Gas", - "description": "The max amount and max price per unit of L2 gas used in this tx", - "$ref": "#/components/schemas/RESOURCE_BOUNDS" - } - }, - "required": [ - "l1_gas", - "l2_gas" - ] - }, - "RESOURCE_BOUNDS": { - "type": "object", - "properties": { - "max_amount": { - "title": "max amount", - "description": "the max amount of the resource that can be used in the tx", - "$ref": "#/components/schemas/u64" - }, - "max_price_per_unit": { - "title": "max price", - "description": "the max price per unit of this resource for this tx", - "$ref": "#/components/schemas/u128" - } - }, - "required": [ - "max_amount", - "max_price_per_unit" - ] - }, - "RESOURCE_PRICE": { - "type": "object", - "properties": { - "price_in_fri": { - "title": "price in fri", - "description": "the price of one unit of the given resource, denominated in fri (10^-18 strk)", - "$ref": "#/components/schemas/FELT" - }, - "price_in_wei": { - "title": "price in wei", - "description": "the price of one unit of the given resource, denominated in wei", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "price_in_wei", - "price_in_fri" - ] - }, - "COMPUTATION_RESOURCES": { - "title": "Computation resources", - "description": "The resources consumed by the VM", - "type": "object", - "properties": { - "steps": { - "title": "Steps", - "description": "The number of Cairo steps used", - "type": "integer", - "not": { - "const": 0 - } - }, - "memory_holes": { - "title": "Memory holes", - "description": "The number of unused memory cells (each cell is roughly equivalent to a step)", - "type": "integer", - "not": { - "const": 0 - } - }, - "range_check_builtin_applications": { - "title": "Range check applications", - "description": "The number of RANGE_CHECK builtin instances", - "type": "integer", - "not": { - "const": 0 - } - }, - "pedersen_builtin_applications": { - "title": "Pedersen applications", - "description": "The number of Pedersen builtin instances", - "type": "integer", - "not": { - "const": 0 - } - }, - "poseidon_builtin_applications": { - "title": "Poseidon applications", - "description": "The number of Poseidon builtin instances", - "type": "integer", - "not": { - "const": 0 - } - }, - "ec_op_builtin_applications": { - "title": "EC_OP applications", - "description": "the number of EC_OP builtin instances", - "type": "integer", - "not": { - "const": 0 - } - }, - "ecdsa_builtin_applications": { - "title": "ECDSA applications", - "description": "the number of ECDSA builtin instances", - "type": "integer", - "not": { - "const": 0 - } - }, - "bitwise_builtin_applications": { - "title": "BITWISE applications", - "description": "the number of BITWISE builtin instances", - "type": "integer", - "not": { - "const": 0 - } - }, - "keccak_builtin_applications": { - "title": "Keccak applications", - "description": "The number of KECCAK builtin instances", - "type": "integer", - "not": { - "const": 0 - } - }, - "segment_arena_builtin": { - "title": "Segment arena", - "description": "The number of accesses to the segment arena", - "type": "integer", - "not": { - "const": 0 - } - } - }, - "required": [ - "steps" - ] - }, - "EXECUTION_RESOURCES": { - "type": "object", - "title": "Execution resources", - "description": "the resources consumed by the transaction, includes both computation and data", - "allOf": [ - { - "title": "ComputationResources", - "$ref": "#/components/schemas/COMPUTATION_RESOURCES" - }, - { - "type": "object", - "title": "DataResources", - "description": "the data-availability resources of this transaction", - "properties": { - "data_availability": { - "type": "object", - "properties": { - "l1_gas": { - "title": "L1Gas", - "description": "the gas consumed by this transaction's data, 0 if it uses data gas for DA", - "type": "integer" - }, - "l1_data_gas": { - "title": "L1DataGas", - "description": "the data gas consumed by this transaction's data, 0 if it uses gas for DA", - "type": "integer" - } - }, - "required": [ - "l1_gas", - "l1_data_gas" - ] - } - }, - "required": [ - "data_availability" - ] - } - ] - } - }, - "errors": { - "FAILED_TO_RECEIVE_TXN": { - "code": 1, - "message": "Failed to write transaction" - }, - "CONTRACT_NOT_FOUND": { - "code": 20, - "message": "Contract not found" - }, - "BLOCK_NOT_FOUND": { - "code": 24, - "message": "Block not found" - }, - "INVALID_TXN_INDEX": { - "code": 27, - "message": "Invalid transaction index in a block" - }, - "CLASS_HASH_NOT_FOUND": { - "code": 28, - "message": "Class hash not found" - }, - "TXN_HASH_NOT_FOUND": { - "code": 29, - "message": "Transaction hash not found" - }, - "PAGE_SIZE_TOO_BIG": { - "code": 31, - "message": "Requested page size is too big" - }, - "NO_BLOCKS": { - "code": 32, - "message": "There are no blocks" - }, - "INVALID_CONTINUATION_TOKEN": { - "code": 33, - "message": "The supplied continuation token is invalid or unknown" - }, - "TOO_MANY_KEYS_IN_FILTER": { - "code": 34, - "message": "Too many keys provided in a filter" - }, - "CONTRACT_ERROR": { - "code": 40, - "message": "Contract error", - "data": { - "type": "object", - "description": "More data about the execution failure", - "properties": { - "revert_error": { - "title": "revert error", - "description": "a string encoding the execution trace up to the point of failure", - "type": "string" - } - }, - "required": "revert_error" - } - }, - "TRANSACTION_EXECUTION_ERROR": { - "code": 41, - "message": "Transaction execution error", - "data": { - "type": "object", - "description": "More data about the execution failure", - "properties": { - "transaction_index": { - "title": "Transaction index", - "description": "The index of the first transaction failing in a sequence of given transactions", - "type": "integer" - }, - "execution_error": { - "title": "revert error", - "description": "a string encoding the execution trace up to the point of failure", - "type": "string" - } - }, - "required": [ - "transaction_index", - "execution_error" - ] - } - } - } - } -} diff --git a/specs/rpc/v07/starknet_trace_api_openrpc.json b/specs/rpc/v07/starknet_trace_api_openrpc.json deleted file mode 100644 index 06ba8c4cf9..0000000000 --- a/specs/rpc/v07/starknet_trace_api_openrpc.json +++ /dev/null @@ -1,513 +0,0 @@ -{ - "openrpc": "1.0.0-rc1", - "info": { - "version": "0.7.0", - "title": "StarkNet Trace API", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_traceTransaction", - "summary": "For a given executed transaction, return the trace of its execution, including internal calls", - "description": "Returns the execution trace of the transaction designated by the input hash", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the transaction to trace", - "required": true, - "schema": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "trace", - "description": "The function call trace of the transaction designated by the given hash", - "schema": { - "$ref": "#/components/schemas/TRANSACTION_TRACE" - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - }, - { - "$ref": "#/components/errors/NO_TRACE_AVAILABLE" - } - ] - }, - { - "name": "starknet_simulateTransactions", - "summary": "Simulate a given sequence of transactions on the requested state, and generate the execution traces. Note that some of the transactions may revert, in which case no error is thrown, but revert details can be seen on the returned trace object. . Note that some of the transactions may revert, this will be reflected by the revert_error property in the trace. Other types of failures (e.g. unexpected error or failure in the validation phase) will result in TRANSACTION_EXECUTION_ERROR.", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "transactions", - "description": "The transactions to simulate", - "required": true, - "schema": { - "type": "array", - "description": "a sequence of transactions to simulate, running each transaction on the state resulting from applying all the previous ones", - "items": { - "$ref": "#/components/schemas/BROADCASTED_TXN" - } - } - }, - { - "name": "simulation_flags", - "description": "describes what parts of the transaction should be executed", - "required": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SIMULATION_FLAG" - } - } - } - ], - "result": { - "name": "simulated_transactions", - "description": "The execution trace and consumed resources of the required transactions", - "schema": { - "type": "array", - "items": { - "schema": { - "type": "object", - "properties": { - "transaction_trace": { - "title": "the transaction's trace", - "$ref": "#/components/schemas/TRANSACTION_TRACE" - }, - "fee_estimation": { - "title": "the transaction's resources and fee", - "$ref": "#/components/schemas/FEE_ESTIMATE" - } - } - } - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/TRANSACTION_EXECUTION_ERROR" - } - ] - }, - { - "name": "starknet_traceBlockTransactions", - "summary": "Retrieve traces for all transactions in the given block", - "description": "Returns the execution traces of all transactions included in the given block", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "traces", - "description": "The traces of all transactions in the block", - "schema": { - "type": "array", - "items": { - "type": "object", - "description": "A single pair of transaction hash and corresponding trace", - "properties": { - "transaction_hash": { - "$ref": "#/components/schemas/FELT" - }, - "trace_root": { - "$ref": "#/components/schemas/TRANSACTION_TRACE" - } - } - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "TRANSACTION_TRACE": { - "oneOf": [ - { - "name": "INVOKE_TXN_TRACE", - "type": "object", - "description": "the execution trace of an invoke transaction", - "properties": { - "validate_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "execute_invocation": { - "description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)", - "oneOf": [ - { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - { - "type": "object", - "properties": { - "revert_reason": { - "name": "revert reason", - "description": "the revert reason for the failed execution", - "type": "string" - } - }, - "required": [ - "revert_reason" - ] - } - ] - }, - "fee_transfer_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "state_diff": { - "title": "state_diff", - "description": "the state diffs induced by the transaction", - "$ref": "#/components/schemas/STATE_DIFF" - }, - "execution_resources": { - "title": "Execution resources", - "description": "the resources consumed by the transaction, includes both computation and data", - "$ref": "#/components/schemas/EXECUTION_RESOURCES" - }, - "type": { - "title": "Type", - "type": "string", - "enum": [ - "INVOKE" - ] - } - }, - "required": [ - "type", - "execute_invocation", - "execution_resources" - ] - }, - { - "name": "DECLARE_TXN_TRACE", - "type": "object", - "description": "the execution trace of a declare transaction", - "properties": { - "validate_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "fee_transfer_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "state_diff": { - "title": "state_diff", - "description": "the state diffs induced by the transaction", - "$ref": "#/components/schemas/STATE_DIFF" - }, - "execution_resources": { - "title": "Execution resources", - "description": "the resources consumed by the transaction, includes both computation and data", - "$ref": "#/components/schemas/EXECUTION_RESOURCES" - }, - "type": { - "title": "Type", - "type": "string", - "enum": [ - "DECLARE" - ] - } - }, - "required": [ - "type", - "execution_resources" - ] - }, - { - "name": "DEPLOY_ACCOUNT_TXN_TRACE", - "type": "object", - "description": "the execution trace of a deploy account transaction", - "properties": { - "validate_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "constructor_invocation": { - "description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)", - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "fee_transfer_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "state_diff": { - "title": "state_diff", - "description": "the state diffs induced by the transaction", - "$ref": "#/components/schemas/STATE_DIFF" - }, - "execution_resources": { - "title": "Execution resources", - "description": "the resources consumed by the transaction, includes both computation and data", - "$ref": "#/components/schemas/EXECUTION_RESOURCES" - }, - "type": { - "title": "Type", - "type": "string", - "enum": [ - "DEPLOY_ACCOUNT" - ] - } - }, - "required": [ - "type", - "execution_resources", - "constructor_invocation" - ] - }, - { - "name": "L1_HANDLER_TXN_TRACE", - "type": "object", - "description": "the execution trace of an L1 handler transaction", - "properties": { - "function_invocation": { - "description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)", - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "state_diff": { - "title": "state_diff", - "description": "the state diffs induced by the transaction", - "$ref": "#/components/schemas/STATE_DIFF" - }, - "type": { - "title": "Type", - "type": "string", - "enum": [ - "L1_HANDLER" - ] - } - }, - "required": [ - "type", - "function_invocation" - ] - } - ] - }, - "SIMULATION_FLAG": { - "type": "string", - "enum": [ - "SKIP_VALIDATE", - "SKIP_FEE_CHARGE" - ], - "description": "Flags that indicate how to simulate a given transaction. By default, the sequencer behavior is replicated locally (enough funds are expected to be in the account, and fee will be deducted from the balance before the simulation of the next transaction). To skip the fee charge, use the SKIP_FEE_CHARGE flag." - }, - "NESTED_CALL": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "FUNCTION_INVOCATION": { - "allOf": [ - { - "$ref": "#/components/schemas/FUNCTION_CALL" - }, - { - "type": "object", - "properties": { - "caller_address": { - "title": "Caller Address", - "description": "The address of the invoking contract. 0 for the root invocation", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the class being called", - "$ref": "#/components/schemas/FELT" - }, - "entry_point_type": { - "$ref": "#/components/schemas/ENTRY_POINT_TYPE" - }, - "call_type": { - "$ref": "#/components/schemas/CALL_TYPE" - }, - "result": { - "title": "Invocation Result", - "description": "The value returned from the function invocation", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "calls": { - "title": "Nested Calls", - "description": "The calls made by this invocation", - "type": "array", - "items": { - "$ref": "#/components/schemas/NESTED_CALL" - } - }, - "events": { - "title": "Invocation Events", - "description": "The events emitted in this invocation", - "type": "array", - "items": { - "$ref": "#/components/schemas/ORDERED_EVENT" - } - }, - "messages": { - "title": "L1 Messages", - "description": "The messages sent by this invocation to L1", - "type": "array", - "items": { - "$ref": "#/components/schemas/ORDERED_MESSAGE" - } - }, - "execution_resources": { - "title": "Computation resources", - "description": "Resources consumed by the internal call. This is named execution_resources for legacy reasons", - "$ref": "#/components/schemas/COMPUTATION_RESOURCES" - } - }, - "required": [ - "caller_address", - "class_hash", - "entry_point_type", - "call_type", - "result", - "calls", - "events", - "messages", - "execution_resources" - ] - } - ] - }, - "ENTRY_POINT_TYPE": { - "type": "string", - "enum": [ - "EXTERNAL", - "L1_HANDLER", - "CONSTRUCTOR" - ] - }, - "CALL_TYPE": { - "type": "string", - "enum": [ - "LIBRARY_CALL", - "CALL", - "DELEGATE" - ] - }, - "ORDERED_EVENT": { - "type": "object", - "title": "orderedEvent", - "description": "an event alongside its order within the transaction", - "allOf": [ - { - "type": "object", - "properties": { - "order": { - "title": "order", - "description": "the order of the event within the transaction", - "type": "integer" - } - } - }, - { - "$ref": "#/components/schemas/EVENT" - } - ] - }, - "ORDERED_MESSAGE": { - "type": "object", - "title": "orderedMessage", - "description": "a message alongside its order within the transaction", - "allOf": [ - { - "type": "object", - "properties": { - "order": { - "title": "order", - "description": "the order of the message within the transaction", - "type": "integer" - } - } - }, - { - "$ref": "#/components/schemas/MSG_TO_L1" - } - ] - }, - "FELT": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/FELT" - }, - "FUNCTION_CALL": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/FUNCTION_CALL" - }, - "EVENT": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/EVENT_CONTENT" - }, - "MSG_TO_L1": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/MSG_TO_L1" - }, - "BLOCK_ID": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/BLOCK_ID" - }, - "FEE_ESTIMATE": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/FEE_ESTIMATE" - }, - "BROADCASTED_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_TXN" - }, - "STATE_DIFF": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/STATE_DIFF" - }, - "COMPUTATION_RESOURCES": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/COMPUTATION_RESOURCES" - }, - "EXECUTION_RESOURCES": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/EXECUTION_RESOURCES" - } - }, - "errors": { - "NO_TRACE_AVAILABLE": { - "code": 10, - "message": "No trace available for transaction", - "data": { - "type": "object", - "description": "Extra information on why trace is not available. Either it wasn't executed yet (RECEIVED), or the transaction failed (REJECTED)", - "properties": { - "status": { - "type": "string", - "enum": [ - "RECEIVED", - "REJECTED" - ] - } - } - } - }, - "TXN_HASH_NOT_FOUND": { - "$ref": "./api/starknet_api_openrpc.json#/components/errors/TXN_HASH_NOT_FOUND" - }, - "BLOCK_NOT_FOUND": { - "$ref": "./api/starknet_api_openrpc.json#/components/errors/BLOCK_NOT_FOUND" - }, - "TRANSACTION_EXECUTION_ERROR": { - "$ref": "./api/starknet_api_openrpc.json#/components/errors/TRANSACTION_EXECUTION_ERROR" - } - } - } -} diff --git a/specs/rpc/v07/starknet_write_api.json b/specs/rpc/v07/starknet_write_api.json deleted file mode 100644 index 94e50f2d6f..0000000000 --- a/specs/rpc/v07/starknet_write_api.json +++ /dev/null @@ -1,299 +0,0 @@ -{ - "openrpc": "1.0.0-rc1", - "info": { - "version": "0.7.0", - "title": "StarkNet Node Write API", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_addInvokeTransaction", - "summary": "Submit a new transaction to be added to the chain", - "params": [ - { - "name": "invoke_transaction", - "description": "The information needed to invoke the function (or account, for version 1 transactions)", - "required": true, - "schema": { - "$ref": "#/components/schemas/BROADCASTED_INVOKE_TXN" - } - } - ], - "result": { - "name": "result", - "description": "The result of the transaction submission", - "schema": { - "type": "object", - "properties": { - "transaction_hash": { - "title": "The hash of the invoke transaction", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": [ - "transaction_hash" - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/INSUFFICIENT_ACCOUNT_BALANCE" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_MAX_FEE" - }, - { - "$ref": "#/components/errors/INVALID_TRANSACTION_NONCE" - }, - { - "$ref": "#/components/errors/VALIDATION_FAILURE" - }, - { - "$ref": "#/components/errors/NON_ACCOUNT" - }, - { - "$ref": "#/components/errors/DUPLICATE_TX" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_TX_VERSION" - }, - { - "$ref": "#/components/errors/UNEXPECTED_ERROR" - } - ] - }, - { - "name": "starknet_addDeclareTransaction", - "summary": "Submit a new class declaration transaction", - "params": [ - { - "name": "declare_transaction", - "description": "Declare transaction required to declare a new class on Starknet", - "required": true, - "schema": { - "title": "Declare transaction", - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN" - } - } - ], - "result": { - "name": "result", - "description": "The result of the transaction submission", - "schema": { - "type": "object", - "properties": { - "transaction_hash": { - "title": "The hash of the declare transaction", - "$ref": "#/components/schemas/TXN_HASH" - }, - "class_hash": { - "title": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "transaction_hash", - "class_hash" - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/CLASS_ALREADY_DECLARED" - }, - { - "$ref": "#/components/errors/COMPILATION_FAILED" - }, - { - "$ref": "#/components/errors/COMPILED_CLASS_HASH_MISMATCH" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_ACCOUNT_BALANCE" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_MAX_FEE" - }, - { - "$ref": "#/components/errors/INVALID_TRANSACTION_NONCE" - }, - { - "$ref": "#/components/errors/VALIDATION_FAILURE" - }, - { - "$ref": "#/components/errors/NON_ACCOUNT" - }, - { - "$ref": "#/components/errors/DUPLICATE_TX" - }, - { - "$ref": "#/components/errors/CONTRACT_CLASS_SIZE_IS_TOO_LARGE" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_TX_VERSION" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_CONTRACT_CLASS_VERSION" - }, - { - "$ref": "#/components/errors/UNEXPECTED_ERROR" - } - ] - }, - { - "name": "starknet_addDeployAccountTransaction", - "summary": "Submit a new deploy account transaction", - "params": [ - { - "name": "deploy_account_transaction", - "description": "The deploy account transaction", - "required": true, - "schema": { - "$ref": "#/components/schemas/BROADCASTED_DEPLOY_ACCOUNT_TXN" - } - } - ], - "result": { - "name": "result", - "description": "The result of the transaction submission", - "schema": { - "type": "object", - "properties": { - "transaction_hash": { - "title": "The hash of the deploy transaction", - "$ref": "#/components/schemas/TXN_HASH" - }, - "contract_address": { - "title": "The address of the new contract", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "transaction_hash", - "contract_address" - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/INSUFFICIENT_ACCOUNT_BALANCE" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_MAX_FEE" - }, - { - "$ref": "#/components/errors/INVALID_TRANSACTION_NONCE" - }, - { - "$ref": "#/components/errors/VALIDATION_FAILURE" - }, - { - "$ref": "#/components/errors/NON_ACCOUNT" - }, - { - "$ref": "#/components/errors/CLASS_HASH_NOT_FOUND" - }, - { - "$ref": "#/components/errors/DUPLICATE_TX" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_TX_VERSION" - }, - { - "$ref": "#/components/errors/UNEXPECTED_ERROR" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "NUM_AS_HEX": { - "title": "An integer number in hex format (0x...)", - "type": "string", - "pattern": "^0x[a-fA-F0-9]+$" - }, - "SIGNATURE": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/SIGNATURE" - }, - "FELT": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/FELT" - }, - "TXN_HASH": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/TXN_HASH" - }, - "BROADCASTED_INVOKE_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_INVOKE_TXN" - }, - "BROADCASTED_DECLARE_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_DECLARE_TXN" - }, - "BROADCASTED_DEPLOY_ACCOUNT_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_DEPLOY_ACCOUNT_TXN" - }, - "FUNCTION_CALL": { - "$ref": "./starknet_api_openrpc.json#/components/schemas/FUNCTION_CALL" - } - }, - "errors": { - "CLASS_HASH_NOT_FOUND": { - "code": 28, - "message": "Class hash not found" - }, - "CLASS_ALREADY_DECLARED": { - "code": 51, - "message": "Class already declared" - }, - "INVALID_TRANSACTION_NONCE": { - "code": 52, - "message": "Invalid transaction nonce" - }, - "INSUFFICIENT_MAX_FEE": { - "code": 53, - "message": "Max fee is smaller than the minimal transaction cost (validation plus fee transfer)" - }, - "INSUFFICIENT_ACCOUNT_BALANCE": { - "code": 54, - "message": "Account balance is smaller than the transaction's max_fee" - }, - "VALIDATION_FAILURE": { - "code": 55, - "message": "Account validation failed", - "data": "string" - }, - "COMPILATION_FAILED": { - "code": 56, - "message": "Compilation failed" - }, - "CONTRACT_CLASS_SIZE_IS_TOO_LARGE": { - "code": 57, - "message": "Contract class size it too large" - }, - "NON_ACCOUNT": { - "code": 58, - "message": "Sender address in not an account contract" - }, - "DUPLICATE_TX": { - "code": 59, - "message": "A transaction with the same hash already exists in the mempool" - }, - "COMPILED_CLASS_HASH_MISMATCH": { - "code": 60, - "message": "the compiled class hash did not match the one supplied in the transaction" - }, - "UNSUPPORTED_TX_VERSION": { - "code": 61, - "message": "the transaction version is not supported" - }, - "UNSUPPORTED_CONTRACT_CLASS_VERSION": { - "code": 62, - "message": "the contract class version is not supported" - }, - "UNEXPECTED_ERROR": { - "code": 63, - "message": "An unexpected error occurred", - "data": "string" - } - } - } -} diff --git a/specs/rpc/v08/starknet_api_openrpc.json b/specs/rpc/v08/starknet_api_openrpc.json deleted file mode 100644 index 7025b04dc3..0000000000 --- a/specs/rpc/v08/starknet_api_openrpc.json +++ /dev/null @@ -1,3819 +0,0 @@ -{ - "openrpc": "1.0.0-rc1", - "info": { - "version": "0.8.0", - "title": "StarkNet Node API", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_specVersion", - "summary": "Returns the version of the Starknet JSON-RPC specification being used", - "params": [], - "result": { - "name": "result", - "description": "Semver of Starknet's JSON-RPC spec being used", - "required": true, - "schema": { - "title": "JSON-RPC spec version", - "type": "string" - } - } - }, - { - "name": "starknet_getBlockWithTxHashes", - "summary": "Get block information with transaction hashes given the block id", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The resulting block information with transaction hashes", - "schema": { - "title": "Starknet get block hash with tx hashes result", - "oneOf": [ - { - "title": "Block with transaction hashes", - "$ref": "#/components/schemas/BLOCK_WITH_TX_HASHES" - }, - { - "title": "Pending block with transaction hashes", - "$ref": "#/components/schemas/PENDING_BLOCK_WITH_TX_HASHES" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getBlockWithTxs", - "summary": "Get block information with full transactions given the block id", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The resulting block information with full transactions", - "schema": { - "title": "Starknet get block with txs result", - "oneOf": [ - { - "title": "Block with transactions", - "$ref": "#/components/schemas/BLOCK_WITH_TXS" - }, - { - "title": "Pending block with transactions", - "$ref": "#/components/schemas/PENDING_BLOCK_WITH_TXS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getBlockWithReceipts", - "summary": "Get block information with full transactions and receipts given the block id", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The resulting block information with full transactions", - "schema": { - "title": "Starknet get block with txs and receipts result", - "oneOf": [ - { - "title": "Block with transactions", - "$ref": "#/components/schemas/BLOCK_WITH_RECEIPTS" - }, - { - "title": "Pending block with transactions", - "$ref": "#/components/schemas/PENDING_BLOCK_WITH_RECEIPTS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getStateUpdate", - "summary": "Get the information about the result of executing the requested block", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The information about the state update of the requested block", - "schema": { - "title": "Starknet get state update result", - "oneOf": [ - { - "title": "State update", - "$ref": "#/components/schemas/STATE_UPDATE" - }, - { - "title": "Pending state update", - "$ref": "#/components/schemas/PENDING_STATE_UPDATE" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getStorageAt", - "summary": "Get the value of the storage at the given address and key", - "params": [ - { - "name": "contract_address", - "description": "The address of the contract to read from", - "summary": "The address of the contract to read from", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - }, - { - "name": "key", - "description": "The key to the storage value for the given contract", - "summary": "The key to the storage value for the given contract", - "required": true, - "schema": { - "title": "Storage key", - "$ref": "#/components/schemas/STORAGE_KEY" - } - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The value at the given key for the given contract. 0 if no value is found", - "summary": "The value at the given key for the given contract.", - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getTransactionStatus", - "summary": "Gets the transaction status (possibly reflecting that the tx is still in the mempool, or dropped from it)", - "paramStructure": "by-name", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the requested transaction", - "required": true, - "schema": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "result", - "schema": { - "$ref": "#/components/schemas/TXN_STATUS_RESULT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getMessagesStatus", - "summary": "Given an l1 tx hash, returns the associated l1_handler tx hashes and statuses for all L1 -> L2 messages sent by the l1 transaction, ordered by the l1 tx sending order", - "paramStructure": "by-name", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the L1 transaction that sent L1->L2 messages", - "required": true, - "schema": { - "title": "Transaction hash", - "$ref": "#/components/schemas/L1_TXN_HASH" - } - } - ], - "result": { - "name": "result", - "schema": { - "type": "array", - "items": { - "type": "object", - "title": "status", - "properties": { - "transaction_hash": { - "$ref": "#/components/schemas/TXN_HASH" - }, - "finality_status": { - "title": "finality status", - "$ref": "#/components/schemas/TXN_STATUS" - }, - "failure_reason": { - "title": "failure reason", - "description": "the failure reason, only appears if finality_status is REJECTED", - "type": "string" - } - }, - "required": ["transaction_hash", "finality_status"] - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getTransactionByHash", - "summary": "Get the details and status of a submitted transaction", - "paramStructure": "by-name", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the requested transaction", - "required": true, - "schema": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "result", - "schema": { - "$ref": "#/components/schemas/TXN_WITH_HASH" - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getTransactionByBlockIdAndIndex", - "summary": "Get the details of a transaction by a given block id and index", - "description": "Get the details of the transaction given by the identified block and index in that block. If no transaction is found, null is returned.", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "index", - "summary": "The index in the block to search for the transaction", - "required": true, - "schema": { - "title": "Index", - "type": "integer", - "minimum": 0 - } - } - ], - "result": { - "name": "transactionResult", - "schema": { - "$ref": "#/components/schemas/TXN_WITH_HASH" - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/INVALID_TXN_INDEX" - } - ] - }, - { - "name": "starknet_getTransactionReceipt", - "summary": "Get the transaction receipt by the transaction hash", - "paramStructure": "by-name", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the requested transaction", - "required": true, - "schema": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "result", - "schema": { - "title": "Transaction receipt with block info", - "$ref": "#/components/schemas/TXN_RECEIPT_WITH_BLOCK_INFO" - } - }, - "errors": [ - { - "$ref": "#/components/errors/TXN_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getClass", - "summary": "Get the contract class definition in the given block associated with the given hash", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "class_hash", - "description": "The hash of the requested contract class", - "required": true, - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - } - ], - "result": { - "name": "result", - "description": "The contract class, if found", - "schema": { - "title": "Starknet get class result", - "oneOf": [ - { - "title": "Deprecated contract class", - "$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS" - }, - { - "title": "Contract class", - "$ref": "#/components/schemas/CONTRACT_CLASS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CLASS_HASH_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getClassHashAt", - "summary": "Get the contract class hash in the given block for the contract deployed at the given address", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "contract_address", - "description": "The address of the contract whose class hash will be returned", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - } - ], - "result": { - "name": "result", - "description": "The class hash of the given contract", - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getClassAt", - "summary": "Get the contract class definition in the given block at the given address", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "contract_address", - "description": "The address of the contract whose class definition will be returned", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - } - ], - "result": { - "name": "result", - "description": "The contract class", - "schema": { - "title": "Starknet get class at result", - "oneOf": [ - { - "title": "Deprecated contract class", - "$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS" - }, - { - "title": "Contract class", - "$ref": "#/components/schemas/CONTRACT_CLASS" - } - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getBlockTransactionCount", - "summary": "Get the number of transactions in a block given a block id", - "description": "Returns the number of transactions in the designated block.", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "The number of transactions in the designated block", - "summary": "The number of transactions in the designated block", - "schema": { - "title": "Block transaction count", - "type": "integer", - "minimum": 0 - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_call", - "summary": "call a starknet function without creating a StarkNet transaction", - "description": "Calls a function in a contract and returns the return value. Using this call will not create a transaction; hence, will not change the state", - "params": [ - { - "name": "request", - "summary": "The details of the function call", - "schema": { - "title": "Function call", - "$ref": "#/components/schemas/FUNCTION_CALL" - }, - "required": true - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "summary": "The function's return value", - "description": "The function's return value, as defined in the Cairo output", - "schema": { - "type": "array", - "title": "Field element", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/ENTRYPOINT_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_estimateFee", - "summary": "estimate the fee for of StarkNet transactions", - "description": "Estimates the resources required by a given sequence of transactions when applied on a given state. If one of the transactions reverts or fails due to any reason (e.g. validation failure or an internal error), a TRANSACTION_EXECUTION_ERROR is returned. The estimate is given in fri.", - "params": [ - { - "name": "request", - "summary": "The transaction to estimate", - "schema": { - "type": "array", - "description": "a sequence of transactions to estimate, running each transaction on the state resulting from applying all the previous ones", - "title": "Transaction", - "items": { - "$ref": "#/components/schemas/BROADCASTED_TXN" - } - }, - "required": true - }, - { - "name": "simulation_flags", - "description": "describes what parts of the transaction should be executed", - "required": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SIMULATION_FLAG_FOR_ESTIMATE_FEE" - } - } - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "the fee estimations", - "schema": { - "title": "Estimation", - "type": "array", - "description": "a sequence of fee estimation where the i'th estimate corresponds to the i'th transaction", - "items": { - "$ref": "#/components/schemas/FEE_ESTIMATE" - } - } - }, - "errors": [ - { - "$ref": "#/components/errors/TRANSACTION_EXECUTION_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_estimateMessageFee", - "summary": "estimate the L2 fee of a message sent on L1", - "description": "estimates the resources required by the l1_handler transaction induced by the message", - "params": [ - { - "name": "message", - "description": "the message's parameters", - "schema": { - "$ref": "#/components/schemas/MSG_FROM_L1" - }, - "required": true - }, - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "result", - "description": "the fee estimation", - "schema": { - "$ref": "#/components/schemas/FEE_ESTIMATE" - } - }, - "errors": [ - { - "$ref": "#/components/errors/CONTRACT_ERROR" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_blockNumber", - "summary": "Get the most recent accepted block number", - "params": [], - "result": { - "name": "result", - "description": "The latest block number", - "schema": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "errors": [ - { - "$ref": "#/components/errors/NO_BLOCKS" - } - ] - }, - { - "name": "starknet_blockHashAndNumber", - "summary": "Get the most recent accepted block hash and number", - "params": [], - "result": { - "name": "result", - "description": "The latest block hash and number", - "schema": { - "title": "Starknet block hash and number result", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "required": ["block_hash", "block_number"] - } - }, - "errors": [ - { - "$ref": "#/components/errors/NO_BLOCKS" - } - ] - }, - { - "name": "starknet_chainId", - "summary": "Return the currently configured StarkNet chain id", - "params": [], - "result": { - "name": "result", - "description": "The chain id this node is connected to", - "schema": { - "title": "Chain id", - "$ref": "#/components/schemas/CHAIN_ID" - } - } - }, - { - "name": "starknet_syncing", - "summary": "Returns an object about the sync status, or false if the node is not synching", - "params": [], - "result": { - "name": "syncing", - "summary": "The state of the synchronization, or false if the node is not synchronizing", - "description": "The status of the node, if it is currently synchronizing state. FALSE otherwise", - "schema": { - "title": "SyncingStatus", - "oneOf": [ - { - "type": "boolean", - "title": "False", - "description": "only legal value is FALSE here" - }, - { - "title": "Sync status", - "$ref": "#/components/schemas/SYNC_STATUS" - } - ] - } - } - }, - { - "name": "starknet_getEvents", - "summary": "Returns all events matching the given filter", - "description": "Returns all event objects matching the conditions in the provided filter", - "params": [ - { - "name": "filter", - "summary": "The conditions used to filter the returned events", - "required": true, - "schema": { - "title": "Events request", - "allOf": [ - { - "title": "Event filter", - "$ref": "#/components/schemas/EVENT_FILTER" - }, - { - "title": "Result page request", - "$ref": "#/components/schemas/RESULT_PAGE_REQUEST" - } - ] - } - } - ], - "result": { - "name": "events", - "description": "All the event objects matching the filter", - "schema": { - "title": "Events chunk", - "$ref": "#/components/schemas/EVENTS_CHUNK" - } - }, - "errors": [ - { - "$ref": "#/components/errors/PAGE_SIZE_TOO_BIG" - }, - { - "$ref": "#/components/errors/INVALID_CONTINUATION_TOKEN" - }, - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/TOO_MANY_KEYS_IN_FILTER" - } - ] - }, - { - "name": "starknet_getNonce", - "summary": "Get the nonce associated with the given address in the given block", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "contract_address", - "description": "The address of the contract whose nonce we're seeking", - "required": true, - "schema": { - "title": "Address", - "$ref": "#/components/schemas/ADDRESS" - } - } - ], - "result": { - "name": "result", - "description": "The contract's nonce at the requested state", - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/CONTRACT_NOT_FOUND" - } - ] - }, - { - "name": "starknet_getStorageProof", - "summary": "Get merkle paths in one of the state tries: global state, classes, individual contract. A single request can query for any mix of the three types of storage proofs (classes, contracts, and storage).", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "title": "Block id", - "allOf": [ - { - "$ref": "#/components/schemas/BLOCK_ID" - }, - { - "not": { - "type": "string", - "enum": ["pending"] - } - } - ] - } - }, - { - "name": "class_hashes", - "description": "a list of the class hashes for which we want to prove membership in the classes trie", - "required": false, - "schema": { - "title": "classes", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - { - "name": "contract_addresses", - "description": "a list of contracts for which we want to prove membership in the global state trie", - "required": false, - "schema": { - "title": "contracts", - "type": "array", - "items": { - "$ref": "#/components/schemas/ADDRESS" - } - } - }, - { - "name": "contracts_storage_keys", - "description": "a list of (contract_address, storage_keys) pairs", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "contract_address": { - "$ref": "#/components/schemas/ADDRESS" - }, - "storage_keys": { - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": ["contract_address", "storage_keys"] - } - } - } - ], - "result": { - "name": "result", - "description": "The requested storage proofs. Note that if a requested leaf has the default value, the path to it may end in an edge node whose path is not a prefix of the requested leaf, thus effectively proving non-membership", - "schema": { - "type": "object", - "properties": { - "classes_proof": { - "$ref": "#/components/schemas/NODE_HASH_TO_NODE_MAPPING" - }, - "contracts_proof": { - "type": "object", - "properties": { - "nodes": { - "description": "The nodes in the union of the paths from the contracts tree root to the requested leaves", - "$ref": "#/components/schemas/NODE_HASH_TO_NODE_MAPPING" - }, - "contract_leaves_data": { - "type": "array", - "items": { - "description": "The nonce and class hash for each requested contract address, in the order in which they appear in the request. These values are needed to construct the associated leaf node", - "type": "object", - "properties": { - "nonce": { - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "$ref": "#/components/schemas/FELT" - }, - "storage_root": { - "$ref": "#/components/schemas/FELT" - } - }, - "required": ["nonce", "class_hash"] - } - } - }, - "required": ["nodes", "contract_leaves_data"] - }, - "contracts_storage_proofs": { - "type": "array", - "items": { - "$ref": "#/components/schemas/NODE_HASH_TO_NODE_MAPPING" - } - }, - "global_roots": { - "type": "object", - "properties": { - "contracts_tree_root": { - "$ref": "#/components/schemas/FELT" - }, - "classes_tree_root": { - "$ref": "#/components/schemas/FELT" - }, - "block_hash": { - "description": "the associated block hash (needed in case the caller used a block tag for the block_id parameter)", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "contracts_tree_root", - "classes_tree_root", - "block_hash" - ] - } - }, - "required": [ - "classes_proof", - "contracts_proof", - "contracts_storage_proofs", - "global_roots" - ] - } - }, - "errors": [ - { - "$ref": "#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "#/components/errors/STORAGE_PROOF_NOT_SUPPORTED" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "EVENTS_CHUNK": { - "title": "Events chunk", - "type": "object", - "properties": { - "events": { - "type": "array", - "title": "Matching Events", - "items": { - "$ref": "#/components/schemas/EMITTED_EVENT" - } - }, - "continuation_token": { - "title": "Continuation token", - "description": "Use this token in a subsequent query to obtain the next page. Should not appear if there are no more pages.", - "type": "string" - } - }, - "required": ["events"] - }, - "RESULT_PAGE_REQUEST": { - "title": "Result page request", - "type": "object", - "properties": { - "continuation_token": { - "title": "Continuation token", - "description": "The token returned from the previous query. If no token is provided the first page is returned.", - "type": "string" - }, - "chunk_size": { - "title": "Chunk size", - "type": "integer", - "minimum": 1 - } - }, - "required": ["chunk_size"] - }, - "EMITTED_EVENT": { - "title": "Emitted event", - "description": "Event information decorated with metadata on where it was emitted / An event emitted as a result of transaction execution", - "allOf": [ - { - "title": "Event", - "description": "The event information", - "$ref": "#/components/schemas/EVENT" - }, - { - "title": "Event context", - "description": "The event emission information", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "description": "The hash of the block in which the event was emitted", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "description": "The number of the block in which the event was emitted", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "transaction_hash": { - "title": "Transaction hash", - "description": "The transaction that emitted the event", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": ["transaction_hash"] - } - ] - }, - "EVENT": { - "title": "Event", - "description": "A StarkNet event", - "allOf": [ - { - "title": "Event emitter", - "type": "object", - "properties": { - "from_address": { - "title": "From address", - "$ref": "#/components/schemas/ADDRESS" - } - }, - "required": ["from_address"] - }, - { - "title": "Event content", - "$ref": "#/components/schemas/EVENT_CONTENT" - } - ] - }, - "EVENT_CONTENT": { - "title": "Event content", - "description": "The content of an event", - "type": "object", - "properties": { - "keys": { - "type": "array", - "title": "Keys", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "data": { - "type": "array", - "title": "Data", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": ["keys", "data"] - }, - "EVENT_KEYS": { - "title": "Keys", - "description": "The keys to filter over", - "type": "array", - "items": { - "title": "Keys", - "description": "Per key (by position), designate the possible values to be matched for events to be returned. Empty array designates 'any' value", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "EVENT_FILTER": { - "title": "Event filter", - "description": "An event filter/query", - "type": "object", - "properties": { - "from_block": { - "title": "from block", - "$ref": "#/components/schemas/BLOCK_ID" - }, - "to_block": { - "title": "to block", - "$ref": "#/components/schemas/BLOCK_ID" - }, - "address": { - "title": "from contract", - "$ref": "#/components/schemas/ADDRESS" - }, - "keys": { - "title": "event keys", - "description": "The keys to filter over", - "$ref": "#/components/schemas/EVENT_KEYS" - } - }, - "required": [] - }, - "BLOCK_ID": { - "title": "Block id", - "description": "Block hash, number or tag", - "oneOf": [ - { - "title": "Block hash", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - } - }, - "required": ["block_hash"] - }, - { - "title": "Block number", - "type": "object", - "properties": { - "block_number": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "required": ["block_number"] - }, - { - "title": "Block tag", - "$ref": "#/components/schemas/BLOCK_TAG" - } - ] - }, - "BLOCK_TAG": { - "title": "Block tag", - "type": "string", - "description": "A tag specifying a dynamic reference to a block", - "enum": ["latest", "pending"] - }, - "SYNC_STATUS": { - "title": "Sync status", - "type": "object", - "description": "An object describing the node synchronization status", - "properties": { - "starting_block_hash": { - "title": "Starting block hash", - "description": "The hash of the block from which the sync started", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "starting_block_num": { - "title": "Starting block number", - "description": "The number (height) of the block from which the sync started", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "current_block_hash": { - "title": "Current block hash", - "description": "The hash of the current block being synchronized", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "current_block_num": { - "title": "Current block number", - "description": "The number (height) of the current block being synchronized", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "highest_block_hash": { - "title": "Highest block hash", - "description": "The hash of the estimated highest block to be synchronized", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "highest_block_num": { - "title": "Highest block number", - "description": "The number (height) of the estimated highest block to be synchronized", - "$ref": "#/components/schemas/BLOCK_NUMBER" - } - }, - "required": [ - "starting_block_hash", - "starting_block_num", - "current_block_hash", - "current_block_num", - "highest_block_hash", - "highest_block_num" - ] - }, - "NUM_AS_HEX": { - "title": "Number as hex", - "description": "An integer number in hex format (0x...)", - "type": "string", - "pattern": "^0x[a-fA-F0-9]+$" - }, - "u64": { - "type": "string", - "title": "u64", - "description": "64 bit integers, represented by hex string of length at most 16", - "pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,15})$" - }, - "u128": { - "type": "string", - "title": "u128", - "description": "128 bit integers, represented by hex string of length at most 32", - "pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,31})$" - }, - "CHAIN_ID": { - "title": "Chain id", - "description": "StarkNet chain id, given in hex representation.", - "type": "string", - "pattern": "^0x[a-fA-F0-9]+$" - }, - "STATE_DIFF": { - "description": "The change in state applied in this block, given as a mapping of addresses to the new values and/or new contracts", - "type": "object", - "properties": { - "storage_diffs": { - "title": "Storage diffs", - "type": "array", - "items": { - "description": "The changes in the storage per contract address", - "$ref": "#/components/schemas/CONTRACT_STORAGE_DIFF_ITEM" - } - }, - "deprecated_declared_classes": { - "title": "Deprecated declared classes", - "type": "array", - "items": { - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "declared_classes": { - "title": "Declared classes", - "type": "array", - "items": { - "title": "New classes", - "type": "object", - "description": "The declared class hash and compiled class hash", - "properties": { - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The Cairo assembly hash corresponding to the declared class", - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "deployed_contracts": { - "title": "Deployed contracts", - "type": "array", - "items": { - "description": "A new contract deployed as part of the state update", - "$ref": "#/components/schemas/DEPLOYED_CONTRACT_ITEM" - } - }, - "replaced_classes": { - "title": "Replaced classes", - "type": "array", - "items": { - "description": "The list of contracts whose class was replaced", - "title": "Replaced class", - "type": "object", - "properties": { - "contract_address": { - "title": "Contract address", - "description": "The address of the contract whose class was replaced", - "$ref": "#/components/schemas/ADDRESS" - }, - "class_hash": { - "title": "Class hash", - "description": "The new class hash", - "$ref": "#/components/schemas/FELT" - } - } - } - }, - "nonces": { - "title": "Nonces", - "type": "array", - "items": { - "title": "Nonce update", - "description": "The updated nonce per contract address", - "type": "object", - "properties": { - "contract_address": { - "title": "Contract address", - "description": "The address of the contract", - "$ref": "#/components/schemas/ADDRESS" - }, - "nonce": { - "title": "Nonce", - "description": "The nonce for the given address at the end of the block", - "$ref": "#/components/schemas/FELT" - } - } - } - } - }, - "required": [ - "storage_diffs", - "deprecated_declared_classes", - "declared_classes", - "replaced_classes", - "deployed_contracts", - "nonces" - ] - }, - "PENDING_STATE_UPDATE": { - "title": "Pending state update", - "description": "Pending state update", - "type": "object", - "properties": { - "old_root": { - "title": "Old root", - "description": "The previous global state root", - "$ref": "#/components/schemas/FELT" - }, - "state_diff": { - "title": "State diff", - "$ref": "#/components/schemas/STATE_DIFF" - } - }, - "required": ["old_root", "state_diff"], - "additionalProperties": false - }, - "STATE_UPDATE": { - "title": "State update", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "old_root": { - "title": "Old root", - "description": "The previous global state root", - "$ref": "#/components/schemas/FELT" - }, - "new_root": { - "title": "New root", - "description": "The new global state root", - "$ref": "#/components/schemas/FELT" - }, - "state_diff": { - "title": "State diff", - "$ref": "#/components/schemas/STATE_DIFF" - } - }, - "required": ["state_diff", "block_hash", "old_root", "new_root"] - }, - "ADDRESS": { - "title": "Address", - "$ref": "#/components/schemas/FELT" - }, - "STORAGE_KEY": { - "type": "string", - "title": "Storage key", - "$comment": "A storage key, represented as a string of hex digits", - "description": "A storage key. Represented as up to 62 hex digits, 3 bits, and 5 leading zeroes.", - "pattern": "^0x(0|[0-7]{1}[a-fA-F0-9]{0,62}$)" - }, - "ETH_ADDRESS": { - "title": "Ethereum address", - "type": "string", - "$comment": "An ethereum address", - "description": "an ethereum address represented as 40 hex digits", - "pattern": "^0x[a-fA-F0-9]{40}$" - }, - "TXN_HASH": { - "$ref": "#/components/schemas/FELT", - "description": "The hash of a Starknet transaction", - "title": "Transaction hash" - }, - "L1_TXN_HASH": { - "$ref": "#/components/schemas/NUM_AS_HEX", - "description": "The hash of an Ethereum transaction" - }, - "FELT": { - "type": "string", - "title": "Field element", - "description": "A field element. represented by at most 63 hex digits", - "pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$" - }, - "BLOCK_NUMBER": { - "title": "Block number", - "description": "The block's number (its height)", - "type": "integer", - "minimum": 0 - }, - "BLOCK_HASH": { - "title": "Block hash", - "$ref": "#/components/schemas/FELT" - }, - "BLOCK_BODY_WITH_TX_HASHES": { - "title": "Block body with transaction hashes", - "type": "object", - "properties": { - "transactions": { - "title": "Transaction hashes", - "description": "The hashes of the transactions included in this block", - "type": "array", - "items": { - "description": "The hash of a single transaction", - "$ref": "#/components/schemas/TXN_HASH" - } - } - }, - "required": ["transactions"] - }, - "BLOCK_BODY_WITH_TXS": { - "title": "Block body with transactions", - "type": "object", - "properties": { - "transactions": { - "title": "Transactions", - "description": "The transactions in this block", - "type": "array", - "items": { - "schema": { - "$ref": "#/components/schemas/TXN_WITH_HASH" - } - } - } - }, - "required": ["transactions"] - }, - "BLOCK_BODY_WITH_RECEIPTS": { - "title": "Block body with transactions and receipts", - "type": "object", - "properties": { - "transactions": { - "title": "Transactions", - "description": "The transactions in this block", - "type": "array", - "items": { - "type": "object", - "title": "transaction and receipt", - "properties": { - "transaction": { - "title": "transaction", - "$ref": "#/components/schemas/TXN" - }, - "receipt": { - "title": "receipt", - "$ref": "#/components/schemas/TXN_RECEIPT" - } - }, - "required": ["transaction", "receipt"] - } - } - }, - "required": ["transactions"] - }, - "BLOCK_HEADER": { - "title": "Block header", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "parent_hash": { - "title": "Parent hash", - "description": "The hash of this block's parent", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "block_number": { - "title": "Block number", - "description": "The block number (its height)", - "$ref": "#/components/schemas/BLOCK_NUMBER" - }, - "new_root": { - "title": "New root", - "description": "The new global state root", - "$ref": "#/components/schemas/FELT" - }, - "timestamp": { - "title": "Timestamp", - "description": "The time in which the block was created, encoded in Unix time", - "type": "integer", - "minimum": 0 - }, - "sequencer_address": { - "title": "Sequencer address", - "description": "The StarkNet identity of the sequencer submitting this block", - "$ref": "#/components/schemas/FELT" - }, - "l1_gas_price": { - "title": "L1 gas price", - "description": "The price of l1 gas in the block", - "$ref": "#/components/schemas/RESOURCE_PRICE" - }, - "l2_gas_price": { - "title": "L2 gas price", - "description": "The price of l2 gas in the block", - "$ref": "#/components/schemas/RESOURCE_PRICE" - }, - "l1_data_gas_price": { - "title": "L1 data gas price", - "description": "The price of l1 data gas in the block", - "$ref": "#/components/schemas/RESOURCE_PRICE" - }, - "l1_da_mode": { - "title": "L1 da mode", - "type": "string", - "description": "specifies whether the data of this block is published via blob data or calldata", - "enum": ["BLOB", "CALLDATA"] - }, - "starknet_version": { - "title": "Starknet version", - "description": "Semver of the current Starknet protocol", - "type": "string" - } - }, - "required": [ - "block_hash", - "parent_hash", - "block_number", - "new_root", - "timestamp", - "sequencer_address", - "l1_gas_price", - "l2_gas_price", - "l1_data_gas_price", - "l1_da_mode", - "starknet_version" - ] - }, - "PENDING_BLOCK_HEADER": { - "title": "Pending block header", - "type": "object", - "properties": { - "parent_hash": { - "title": "Parent hash", - "description": "The hash of this block's parent", - "$ref": "#/components/schemas/BLOCK_HASH" - }, - "timestamp": { - "title": "Timestamp", - "description": "The time in which the block was created, encoded in Unix time", - "type": "integer", - "minimum": 0 - }, - "sequencer_address": { - "title": "Sequencer address", - "description": "The StarkNet identity of the sequencer submitting this block", - "$ref": "#/components/schemas/FELT" - }, - "l1_gas_price": { - "title": "L1 gas price", - "description": "The price of l1 gas in the block", - "$ref": "#/components/schemas/RESOURCE_PRICE" - }, - "l2_gas_price": { - "title": "L2 gas price", - "description": "The price of l2 gas in the block", - "$ref": "#/components/schemas/RESOURCE_PRICE" - }, - "l1_data_gas_price": { - "title": "L1 data gas price", - "description": "The price of l1 data gas in the block", - "$ref": "#/components/schemas/RESOURCE_PRICE" - }, - "l1_da_mode": { - "title": "L1 da mode", - "type": "string", - "description": "specifies whether the data of this block is published via blob data or calldata", - "enum": ["BLOB", "CALLDATA"] - }, - "starknet_version": { - "title": "Starknet version", - "description": "Semver of the current Starknet protocol", - "type": "string" - } - }, - "required": [ - "parent_hash", - "timestamp", - "sequencer_address", - "l1_gas_price", - "l2_gas_price", - "l1_data_gas_price", - "l1_da_mode", - "starknet_version" - ], - "not": { - "required": ["block_hash", "block_number", "new_root"] - } - }, - "BLOCK_WITH_TX_HASHES": { - "title": "Block with transaction hashes", - "description": "The block object", - "allOf": [ - { - "title": "Block status", - "type": "object", - "properties": { - "status": { - "title": "Status", - "$ref": "#/components/schemas/BLOCK_STATUS" - } - }, - "required": ["status"] - }, - { - "title": "Block header", - "$ref": "#/components/schemas/BLOCK_HEADER" - }, - { - "title": "Block body with transaction hashes", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TX_HASHES" - } - ] - }, - "BLOCK_WITH_TXS": { - "title": "Block with transactions", - "description": "The block object", - "allOf": [ - { - "title": "block with txs", - "type": "object", - "properties": { - "status": { - "title": "Status", - "$ref": "#/components/schemas/BLOCK_STATUS" - } - }, - "required": ["status"] - }, - { - "title": "Block header", - "$ref": "#/components/schemas/BLOCK_HEADER" - }, - { - "title": "Block body with transactions", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TXS" - } - ] - }, - "BLOCK_WITH_RECEIPTS": { - "title": "Block with transactions and receipts", - "description": "The block object", - "allOf": [ - { - "title": "block with txs", - "type": "object", - "properties": { - "status": { - "title": "Status", - "$ref": "#/components/schemas/BLOCK_STATUS" - } - }, - "required": ["status"] - }, - { - "title": "Block header", - "$ref": "#/components/schemas/BLOCK_HEADER" - }, - { - "title": "Block body with transactions and receipts", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_RECEIPTS" - } - ] - }, - "PENDING_BLOCK_WITH_TX_HASHES": { - "title": "Pending block with transaction hashes", - "description": "The dynamic block being constructed by the sequencer. Note that this object will be deprecated upon decentralization.", - "allOf": [ - { - "title": "Block body with transactions hashes", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TX_HASHES" - }, - { - "title": "Pending block header", - "$ref": "#/components/schemas/PENDING_BLOCK_HEADER" - } - ] - }, - "PENDING_BLOCK_WITH_TXS": { - "title": "Pending block with transactions", - "description": "The dynamic block being constructed by the sequencer. Note that this object will be deprecated upon decentralization.", - "allOf": [ - { - "title": "Block body with transactions", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_TXS" - }, - { - "title": "Pending block header", - "$ref": "#/components/schemas/PENDING_BLOCK_HEADER" - } - ] - }, - "PENDING_BLOCK_WITH_RECEIPTS": { - "title": "Pending block with transactions and receipts", - "description": "The dynamic block being constructed by the sequencer. Note that this object will be deprecated upon decentralization.", - "allOf": [ - { - "title": "Block body with transactions and receipts", - "$ref": "#/components/schemas/BLOCK_BODY_WITH_RECEIPTS" - }, - { - "title": "Pending block header", - "$ref": "#/components/schemas/PENDING_BLOCK_HEADER" - } - ] - }, - "DEPLOYED_CONTRACT_ITEM": { - "title": "Deployed contract item", - "type": "object", - "properties": { - "address": { - "title": "Address", - "description": "The address of the contract", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the contract code", - "$ref": "#/components/schemas/FELT" - } - }, - "required": ["address", "class_hash"] - }, - "CONTRACT_STORAGE_DIFF_ITEM": { - "title": "Contract storage diff item", - "type": "object", - "properties": { - "address": { - "title": "Address", - "description": "The contract address for which the storage changed", - "$ref": "#/components/schemas/FELT" - }, - "storage_entries": { - "title": "Storage entries", - "description": "The changes in the storage of the contract", - "type": "array", - "items": { - "title": "Storage diff item", - "type": "object", - "properties": { - "key": { - "title": "Key", - "description": "The key of the changed value", - "$ref": "#/components/schemas/FELT" - }, - "value": { - "title": "Value", - "description": "The new value applied to the given address", - "$ref": "#/components/schemas/FELT" - } - } - } - } - }, - "required": ["address", "storage_entries"] - }, - "TXN": { - "title": "Transaction", - "description": "The transaction schema, as it appears inside a block", - "oneOf": [ - { - "title": "Invoke transaction", - "$ref": "#/components/schemas/INVOKE_TXN" - }, - { - "title": "L1 handler transaction", - "$ref": "#/components/schemas/L1_HANDLER_TXN" - }, - { - "title": "Declare transaction", - "$ref": "#/components/schemas/DECLARE_TXN" - }, - { - "title": "Deploy transaction", - "$ref": "#/components/schemas/DEPLOY_TXN" - }, - { - "title": "Deploy account transaction", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN" - } - ] - }, - "TXN_WITH_HASH": { - "schema": { - "title": "Transaction", - "allOf": [ - { - "$ref": "#/components/schemas/TXN" - }, - { - "type": "object", - "properties": { - "transaction_hash": { - "title": "transaction hash", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": ["transaction_hash"] - } - ] - } - }, - "SIGNATURE": { - "title": "Signature", - "description": "A transaction signature", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "DECLARE_TXN": { - "title": "Declare transaction", - "oneOf": [ - { - "title": "Declare transaction V0", - "$ref": "#/components/schemas/DECLARE_TXN_V0" - }, - { - "title": "Declare transaction V1", - "$ref": "#/components/schemas/DECLARE_TXN_V1" - }, - { - "title": "Declare transaction V2", - "$ref": "#/components/schemas/DECLARE_TXN_V2" - }, - { - "title": "Declare transaction V3", - "$ref": "#/components/schemas/DECLARE_TXN_V3" - } - ] - }, - "DECLARE_TXN_V0": { - "title": "Declare Contract Transaction V0", - "description": "Declare Contract Transaction V0", - "allOf": [ - { - "type": "object", - "title": "Declare txn v0", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": ["DECLARE"] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": ["0x0", "0x100000000000000000000000000000000"] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "max_fee", - "version", - "signature", - "class_hash" - ] - } - ] - }, - "DECLARE_TXN_V1": { - "title": "Declare Contract Transaction V1", - "description": "Declare Contract Transaction V1", - "allOf": [ - { - "type": "object", - "title": "Declare txn v1", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": ["DECLARE"] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": ["0x1", "0x100000000000000000000000000000001"] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "max_fee", - "version", - "signature", - "nonce", - "class_hash" - ] - } - ] - }, - "DECLARE_TXN_V2": { - "title": "Declare Transaction V2", - "description": "Declare Contract Transaction V2", - "allOf": [ - { - "type": "object", - "title": "Declare txn v2", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": ["DECLARE"] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The hash of the Cairo assembly resulting from the Sierra compilation", - "$ref": "#/components/schemas/FELT" - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": ["0x2", "0x100000000000000000000000000000002"] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "compiled_class_hash", - "max_fee", - "version", - "signature", - "nonce", - "class_hash" - ] - } - ] - }, - "DECLARE_TXN_V3": { - "title": "Declare Transaction V3", - "description": "Declare Contract Transaction V3", - "allOf": [ - { - "type": "object", - "title": "Declare txn v3", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": ["DECLARE"] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The hash of the Cairo assembly resulting from the Sierra compilation", - "$ref": "#/components/schemas/FELT" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": ["0x3", "0x100000000000000000000000000000003"] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - }, - "resource_bounds": { - "title": "Resource bounds", - "description": "resource bounds for the transaction execution", - "$ref": "#/components/schemas/RESOURCE_BOUNDS_MAPPING" - }, - "tip": { - "title": "Tip", - "$ref": "#/components/schemas/u64", - "description": "the tip for the transaction" - }, - "paymaster_data": { - "title": "Paymaster data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to allow the paymaster to pay for the transaction in native tokens" - }, - "account_deployment_data": { - "title": "Account deployment data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to deploy the account contract from which this tx will be initiated" - }, - "nonce_data_availability_mode": { - "title": "Nonce DA mode", - "description": "The storage domain of the account's nonce (an account has a nonce per DA mode)", - "$ref": "#/components/schemas/DA_MODE" - }, - "fee_data_availability_mode": { - "title": "Fee DA mode", - "description": "The storage domain of the account's balance from which fee will be charged", - "$ref": "#/components/schemas/DA_MODE" - } - }, - "required": [ - "type", - "sender_address", - "compiled_class_hash", - "version", - "signature", - "nonce", - "class_hash", - "resource_bounds", - "tip", - "paymaster_data", - "account_deployment_data", - "nonce_data_availability_mode", - "fee_data_availability_mode" - ] - } - ] - }, - "BROADCASTED_TXN": { - "oneOf": [ - { - "$ref": "#/components/schemas/BROADCASTED_INVOKE_TXN" - }, - { - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN" - }, - { - "$ref": "#/components/schemas/BROADCASTED_DEPLOY_ACCOUNT_TXN" - } - ] - }, - "BROADCASTED_INVOKE_TXN": { - "title": "Broadcasted invoke transaction", - "$ref": "#/components/schemas/INVOKE_TXN_V3" - }, - "BROADCASTED_DEPLOY_ACCOUNT_TXN": { - "title": "Broadcasted deploy account transaction", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN_V3" - }, - "BROADCASTED_DECLARE_TXN": { - "title": "Broadcasted declare transaction", - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN_V3" - }, - "BROADCASTED_DECLARE_TXN_V3": { - "title": "Broadcasted declare Transaction V3", - "description": "Broadcasted declare Contract Transaction V3", - "allOf": [ - { - "type": "object", - "title": "Declare txn v3", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": ["DECLARE"] - }, - "sender_address": { - "title": "Sender address", - "description": "The address of the account contract sending the declaration transaction", - "$ref": "#/components/schemas/ADDRESS" - }, - "compiled_class_hash": { - "title": "Compiled class hash", - "description": "The hash of the Cairo assembly resulting from the Sierra compilation", - "$ref": "#/components/schemas/FELT" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": ["0x3", "0x100000000000000000000000000000003"] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "contract_class": { - "title": "Contract class", - "description": "The class to be declared", - "$ref": "#/components/schemas/CONTRACT_CLASS" - }, - "resource_bounds": { - "title": "Resource bounds", - "description": "resource bounds for the transaction execution", - "$ref": "#/components/schemas/RESOURCE_BOUNDS_MAPPING" - }, - "tip": { - "title": "Tip", - "$ref": "#/components/schemas/u64", - "description": "the tip for the transaction" - }, - "paymaster_data": { - "title": "Paymaster data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to allow the paymaster to pay for the transaction in native tokens" - }, - "account_deployment_data": { - "title": "Account deployment data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to deploy the account contract from which this tx will be initiated" - }, - "nonce_data_availability_mode": { - "title": "Nonce DA mode", - "description": "The storage domain of the account's nonce (an account has a nonce per DA mode)", - "$ref": "#/components/schemas/DA_MODE" - }, - "fee_data_availability_mode": { - "title": "Fee DA mode", - "description": "The storage domain of the account's balance from which fee will be charged", - "$ref": "#/components/schemas/DA_MODE" - } - }, - "required": [ - "type", - "sender_address", - "compiled_class_hash", - "version", - "signature", - "nonce", - "contract_class", - "resource_bounds", - "tip", - "paymaster_data", - "account_deployment_data", - "nonce_data_availability_mode", - "fee_data_availability_mode" - ] - } - ] - }, - "DEPLOY_ACCOUNT_TXN": { - "title": "Deploy account transaction", - "description": "deploys a new account contract", - "oneOf": [ - { - "title": "Deploy account V1", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN_V1" - }, - { - "title": "Deploy account V3", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN_V3" - } - ] - }, - "DEPLOY_ACCOUNT_TXN_V1": { - "title": "Deploy account transaction", - "description": "Deploys an account contract, charges fee from the pre-funded account addresses", - "type": "object", - "properties": { - "type": { - "title": "Deploy account", - "type": "string", - "enum": ["DEPLOY_ACCOUNT"] - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": ["0x1", "0x100000000000000000000000000000001"] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "contract_address_salt": { - "title": "Contract address salt", - "description": "The salt for the address of the deployed contract", - "$ref": "#/components/schemas/FELT" - }, - "constructor_calldata": { - "type": "array", - "description": "The parameters passed to the constructor", - "title": "Constructor calldata", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the deployed contract's class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "max_fee", - "version", - "signature", - "nonce", - "type", - "contract_address_salt", - "constructor_calldata", - "class_hash" - ] - }, - "DEPLOY_ACCOUNT_TXN_V3": { - "title": "Deploy account transaction", - "description": "Deploys an account contract, charges fee from the pre-funded account addresses", - "type": "object", - "properties": { - "type": { - "title": "Deploy account", - "type": "string", - "enum": ["DEPLOY_ACCOUNT"] - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": ["0x3", "0x100000000000000000000000000000003"] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "contract_address_salt": { - "title": "Contract address salt", - "description": "The salt for the address of the deployed contract", - "$ref": "#/components/schemas/FELT" - }, - "constructor_calldata": { - "type": "array", - "description": "The parameters passed to the constructor", - "title": "Constructor calldata", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the deployed contract's class", - "$ref": "#/components/schemas/FELT" - }, - "resource_bounds": { - "title": "Resource bounds", - "description": "resource bounds for the transaction execution", - "$ref": "#/components/schemas/RESOURCE_BOUNDS_MAPPING" - }, - "tip": { - "title": "Tip", - "$ref": "#/components/schemas/u64", - "description": "the tip for the transaction" - }, - "paymaster_data": { - "title": "Paymaster data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to allow the paymaster to pay for the transaction in native tokens" - }, - "nonce_data_availability_mode": { - "title": "Nonce DA mode", - "description": "The storage domain of the account's nonce (an account has a nonce per DA mode)", - "$ref": "#/components/schemas/DA_MODE" - }, - "fee_data_availability_mode": { - "title": "Fee DA mode", - "description": "The storage domain of the account's balance from which fee will be charged", - "$ref": "#/components/schemas/DA_MODE" - } - }, - "required": [ - "version", - "signature", - "nonce", - "type", - "contract_address_salt", - "constructor_calldata", - "class_hash", - "resource_bounds", - "tip", - "paymaster_data", - "nonce_data_availability_mode", - "fee_data_availability_mode" - ] - }, - "DEPLOY_TXN": { - "title": "Deploy Contract Transaction", - "description": "The structure of a deploy transaction. Note that this transaction type is deprecated and will no longer be supported in future versions", - "allOf": [ - { - "type": "object", - "title": "Deploy txn", - "properties": { - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "$ref": "#/components/schemas/FELT" - }, - "type": { - "title": "Deploy", - "type": "string", - "enum": ["DEPLOY"] - }, - "contract_address_salt": { - "description": "The salt for the address of the deployed contract", - "title": "Contract address salt", - "$ref": "#/components/schemas/FELT" - }, - "constructor_calldata": { - "type": "array", - "title": "Constructor calldata", - "description": "The parameters passed to the constructor", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the deployed contract's class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "version", - "type", - "constructor_calldata", - "contract_address_salt", - "class_hash" - ] - } - ] - }, - "INVOKE_TXN_V0": { - "title": "Invoke transaction V0", - "description": "invokes a specific function in the desired contract (not necessarily an account)", - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": ["INVOKE"] - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": ["0x0", "0x100000000000000000000000000000000"] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "contract_address": { - "title": "Contract address", - "$ref": "#/components/schemas/ADDRESS" - }, - "entry_point_selector": { - "title": "Entry point selector", - "$ref": "#/components/schemas/FELT" - }, - "calldata": { - "title": "Calldata", - "type": "array", - "description": "The parameters passed to the function", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "type", - "contract_address", - "entry_point_selector", - "calldata", - "max_fee", - "version", - "signature" - ] - }, - "INVOKE_TXN_V1": { - "title": "Invoke transaction V1", - "description": "initiates a transaction from a given account", - "allOf": [ - { - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": ["INVOKE"] - }, - "sender_address": { - "title": "sender address", - "$ref": "#/components/schemas/ADDRESS" - }, - "calldata": { - "type": "array", - "title": "calldata", - "description": "The data expected by the account's `execute` function (in most usecases, this includes the called contract address and a function selector)", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "max_fee": { - "title": "Max fee", - "$ref": "#/components/schemas/FELT", - "description": "The maximal fee that can be charged for including the transaction" - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": ["0x1", "0x100000000000000000000000000000001"] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - } - }, - "required": [ - "type", - "sender_address", - "calldata", - "max_fee", - "version", - "signature", - "nonce" - ] - } - ] - }, - "INVOKE_TXN_V3": { - "title": "Invoke transaction V3", - "description": "initiates a transaction from a given account", - "allOf": [ - { - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": ["INVOKE"] - }, - "sender_address": { - "title": "sender address", - "$ref": "#/components/schemas/ADDRESS" - }, - "calldata": { - "type": "array", - "title": "calldata", - "description": "The data expected by the account's `execute` function (in most usecases, this includes the called contract address and a function selector)", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": ["0x3", "0x100000000000000000000000000000003"] - }, - "signature": { - "title": "Signature", - "$ref": "#/components/schemas/SIGNATURE" - }, - "nonce": { - "title": "Nonce", - "$ref": "#/components/schemas/FELT" - }, - "resource_bounds": { - "title": "Resource bounds", - "description": "resource bounds for the transaction execution", - "$ref": "#/components/schemas/RESOURCE_BOUNDS_MAPPING" - }, - "tip": { - "title": "Tip", - "$ref": "#/components/schemas/u64", - "description": "the tip for the transaction" - }, - "paymaster_data": { - "title": "Paymaster data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to allow the paymaster to pay for the transaction in native tokens" - }, - "account_deployment_data": { - "title": "Account deployment data", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - }, - "description": "data needed to deploy the account contract from which this tx will be initiated" - }, - "nonce_data_availability_mode": { - "title": "Nonce DA mode", - "description": "The storage domain of the account's nonce (an account has a nonce per DA mode)", - "$ref": "#/components/schemas/DA_MODE" - }, - "fee_data_availability_mode": { - "title": "Fee DA mode", - "description": "The storage domain of the account's balance from which fee will be charged", - "$ref": "#/components/schemas/DA_MODE" - } - }, - "required": [ - "type", - "sender_address", - "calldata", - "version", - "signature", - "nonce", - "resource_bounds", - "tip", - "paymaster_data", - "account_deployment_data", - "nonce_data_availability_mode", - "fee_data_availability_mode" - ] - } - ] - }, - "INVOKE_TXN": { - "title": "Invoke transaction", - "description": "Initiate a transaction from an account", - "oneOf": [ - { - "title": "Invoke transaction V0", - "$ref": "#/components/schemas/INVOKE_TXN_V0" - }, - { - "title": "Invoke transaction V1", - "$ref": "#/components/schemas/INVOKE_TXN_V1" - }, - { - "title": "Invoke transaction V3", - "$ref": "#/components/schemas/INVOKE_TXN_V3" - } - ] - }, - "L1_HANDLER_TXN": { - "title": "L1 Handler transaction", - "allOf": [ - { - "type": "object", - "title": "L1 handler transaction", - "description": "a call to an l1_handler on an L2 contract induced by a message from L1", - "properties": { - "version": { - "title": "Version", - "description": "Version of the transaction scheme", - "type": "string", - "enum": ["0x0"] - }, - "type": { - "title": "type", - "type": "string", - "enum": ["L1_HANDLER"] - }, - "nonce": { - "title": "Nonce", - "description": "The L1->L2 message nonce field of the SN Core L1 contract at the time the transaction was sent", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": ["version", "type", "nonce"] - }, - { - "title": "Function call", - "$ref": "#/components/schemas/FUNCTION_CALL" - } - ] - }, - "COMMON_RECEIPT_PROPERTIES": { - "allOf": [ - { - "title": "Common receipt properties", - "description": "Common properties for a transaction receipt", - "type": "object", - "properties": { - "transaction_hash": { - "title": "Transaction hash", - "$ref": "#/components/schemas/TXN_HASH", - "description": "The hash identifying the transaction" - }, - "actual_fee": { - "title": "Actual fee", - "$ref": "#/components/schemas/FEE_PAYMENT", - "description": "The fee that was charged by the sequencer" - }, - "finality_status": { - "title": "Finality status", - "description": "finality status of the tx", - "$ref": "#/components/schemas/TXN_FINALITY_STATUS" - }, - "messages_sent": { - "type": "array", - "title": "Messages sent", - "items": { - "$ref": "#/components/schemas/MSG_TO_L1" - } - }, - "events": { - "description": "The events emitted as part of this transaction", - "title": "Events", - "type": "array", - "items": { - "$ref": "#/components/schemas/EVENT" - } - }, - "execution_resources": { - "title": "Execution resources", - "description": "The resources consumed by the transaction", - "$ref": "#/components/schemas/EXECUTION_RESOURCES" - } - }, - "required": [ - "transaction_hash", - "actual_fee", - "finality_status", - "messages_sent", - "events", - "execution_resources" - ] - }, - { - "oneOf": [ - { - "title": "Successful Common receipt properties", - "description": "Common properties for a transaction receipt that was executed successfully", - "type": "object", - "properties": { - "execution_status": { - "title": "Execution status", - "type": "string", - "enum": ["SUCCEEDED"], - "description": "The execution status of the transaction" - } - }, - "required": ["execution_status"] - }, - { - "title": "Reverted Common receipt properties", - "description": "Common properties for a transaction receipt that was reverted", - "type": "object", - "properties": { - "execution_status": { - "title": "Execution status", - "type": "string", - "enum": ["REVERTED"], - "description": "The execution status of the transaction" - }, - "revert_reason": { - "title": "Revert reason", - "name": "revert reason", - "description": "the revert reason for the failed execution", - "type": "string" - } - }, - "required": ["execution_status", "revert_reason"] - } - ] - } - ] - }, - "INVOKE_TXN_RECEIPT": { - "title": "Invoke Transaction Receipt", - "allOf": [ - { - "title": "Type", - "type": "object", - "properties": { - "type": { - "title": "Type", - "type": "string", - "enum": ["INVOKE"] - } - }, - "required": ["type"] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "DECLARE_TXN_RECEIPT": { - "title": "Declare Transaction Receipt", - "allOf": [ - { - "title": "Declare txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Declare", - "type": "string", - "enum": ["DECLARE"] - } - }, - "required": ["type"] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "DEPLOY_ACCOUNT_TXN_RECEIPT": { - "title": "Deploy Account Transaction Receipt", - "allOf": [ - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - }, - { - "title": "DeployAccount txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Deploy account", - "type": "string", - "enum": ["DEPLOY_ACCOUNT"] - }, - "contract_address": { - "title": "Contract address", - "description": "The address of the deployed contract", - "$ref": "#/components/schemas/FELT" - } - }, - "required": ["type", "contract_address"] - } - ] - }, - "DEPLOY_TXN_RECEIPT": { - "title": "Deploy Transaction Receipt", - "allOf": [ - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - }, - { - "title": "Deploy txn receipt", - "type": "object", - "properties": { - "type": { - "title": "Deploy", - "type": "string", - "enum": ["DEPLOY"] - }, - "contract_address": { - "title": "Contract address", - "description": "The address of the deployed contract", - "$ref": "#/components/schemas/FELT" - } - }, - "required": ["type", "contract_address"] - } - ] - }, - "L1_HANDLER_TXN_RECEIPT": { - "title": "L1 Handler Transaction Receipt", - "description": "receipt for l1 handler transaction", - "allOf": [ - { - "title": "Transaction type", - "type": "object", - "properties": { - "type": { - "title": "type", - "type": "string", - "enum": ["L1_HANDLER"] - }, - "message_hash": { - "title": "Message hash", - "description": "The message hash as it appears on the L1 core contract", - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": ["type", "message_hash"] - }, - { - "title": "Common receipt properties", - "$ref": "#/components/schemas/COMMON_RECEIPT_PROPERTIES" - } - ] - }, - "TXN_RECEIPT": { - "title": "Transaction Receipt", - "oneOf": [ - { - "title": "Invoke transaction receipt", - "$ref": "#/components/schemas/INVOKE_TXN_RECEIPT" - }, - { - "title": "L1 handler transaction receipt", - "$ref": "#/components/schemas/L1_HANDLER_TXN_RECEIPT" - }, - { - "title": "Declare transaction receipt", - "$ref": "#/components/schemas/DECLARE_TXN_RECEIPT" - }, - { - "title": "Deploy transaction receipt", - "$ref": "#/components/schemas/DEPLOY_TXN_RECEIPT" - }, - { - "title": "Deploy account transaction receipt", - "$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN_RECEIPT" - } - ] - }, - "TXN_RECEIPT_WITH_BLOCK_INFO": { - "title": "Transaction receipt with block info", - "allOf": [ - { - "title": "Transaction receipt", - "$ref": "#/components/schemas/TXN_RECEIPT" - }, - { - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "#/components/schemas/BLOCK_HASH", - "description": "If this field is missing, it means the receipt belongs to the pending block" - }, - "block_number": { - "title": "Block number", - "$ref": "#/components/schemas/BLOCK_NUMBER", - "description": "If this field is missing, it means the receipt belongs to the pending block" - } - } - } - ] - }, - "MSG_TO_L1": { - "title": "Message to L1", - "type": "object", - "properties": { - "from_address": { - "description": "The address of the L2 contract sending the message", - "$ref": "#/components/schemas/FELT" - }, - "to_address": { - "title": "To address", - "description": "The target L1 address the message is sent to", - "$ref": "#/components/schemas/FELT" - }, - "payload": { - "description": "The payload of the message", - "title": "Payload", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": ["from_address", "to_address", "payload"] - }, - "MSG_FROM_L1": { - "title": "Message from L1", - "type": "object", - "properties": { - "from_address": { - "description": "The address of the L1 contract sending the message", - "$ref": "#/components/schemas/ETH_ADDRESS" - }, - "to_address": { - "title": "To address", - "description": "The target L2 address the message is sent to", - "$ref": "#/components/schemas/ADDRESS" - }, - "entry_point_selector": { - "title": "Selector", - "description": "The selector of the l1_handler in invoke in the target contract", - "$ref": "#/components/schemas/FELT" - }, - "payload": { - "description": "The payload of the message", - "title": "Payload", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": [ - "from_address", - "to_address", - "payload", - "entry_point_selector" - ] - }, - "TXN_STATUS_RESULT": { - "title": "Transaction status result", - "description": "Transaction status result, including finality status and execution status", - "type": "object", - "properties": { - "finality_status": { - "title": "finality status", - "$ref": "#/components/schemas/TXN_STATUS" - }, - "execution_status": { - "title": "execution status", - "$ref": "#/components/schemas/TXN_EXECUTION_STATUS" - }, - "failure_reason": { - "title": "failure reason", - "description": "the failure reason, only appears if finality_status is REJECTED or execution_status is REVERTED", - "type": "string" - } - }, - "required": ["finality_status"] - }, - "TXN_STATUS": { - "title": "Transaction status", - "type": "string", - "enum": ["RECEIVED", "REJECTED", "ACCEPTED_ON_L2", "ACCEPTED_ON_L1"], - "description": "The finality status of the transaction, including the case the txn is still in the mempool or failed validation during the block construction phase" - }, - "TXN_FINALITY_STATUS": { - "title": "Finality status", - "type": "string", - "enum": ["ACCEPTED_ON_L2", "ACCEPTED_ON_L1"], - "description": "The finality status of the transaction" - }, - "TXN_EXECUTION_STATUS": { - "title": "Execution status", - "type": "string", - "enum": ["SUCCEEDED", "REVERTED"], - "description": "The execution status of the transaction" - }, - "TXN_TYPE": { - "title": "Transaction type", - "type": "string", - "enum": ["DECLARE", "DEPLOY", "DEPLOY_ACCOUNT", "INVOKE", "L1_HANDLER"], - "description": "The type of the transaction" - }, - "BLOCK_STATUS": { - "title": "Block status", - "type": "string", - "enum": ["PENDING", "ACCEPTED_ON_L2", "ACCEPTED_ON_L1", "REJECTED"], - "description": "The status of the block" - }, - "FUNCTION_CALL": { - "title": "Function call", - "type": "object", - "description": "Function call information", - "properties": { - "contract_address": { - "title": "Contract address", - "$ref": "#/components/schemas/ADDRESS" - }, - "entry_point_selector": { - "title": "Entry point selector", - "$ref": "#/components/schemas/FELT" - }, - "calldata": { - "title": "Calldata", - "type": "array", - "description": "The parameters passed to the function", - "items": { - "$ref": "#/components/schemas/FELT" - } - } - }, - "required": ["contract_address", "entry_point_selector", "calldata"] - }, - "CONTRACT_CLASS": { - "title": "Contract class", - "type": "object", - "properties": { - "sierra_program": { - "title": "Sierra program", - "type": "array", - "description": "The list of Sierra instructions of which the program consists", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "contract_class_version": { - "title": "Contract class version", - "type": "string", - "description": "The version of the contract class object. Currently, the Starknet OS supports version 0.1.0" - }, - "entry_points_by_type": { - "title": "Entry points by type", - "type": "object", - "properties": { - "CONSTRUCTOR": { - "type": "array", - "title": "Constructor", - "items": { - "$ref": "#/components/schemas/SIERRA_ENTRY_POINT" - } - }, - "EXTERNAL": { - "title": "External", - "type": "array", - "items": { - "$ref": "#/components/schemas/SIERRA_ENTRY_POINT" - } - }, - "L1_HANDLER": { - "title": "L1 handler", - "type": "array", - "items": { - "$ref": "#/components/schemas/SIERRA_ENTRY_POINT" - } - } - }, - "required": ["CONSTRUCTOR", "EXTERNAL", "L1_HANDLER"] - }, - "abi": { - "title": "ABI", - "type": "string", - "description": "The class ABI, as supplied by the user declaring the class" - } - }, - "required": [ - "sierra_program", - "contract_class_version", - "entry_points_by_type" - ] - }, - "DEPRECATED_CONTRACT_CLASS": { - "title": "Deprecated contract class", - "description": "The definition of a StarkNet contract class", - "type": "object", - "properties": { - "program": { - "type": "string", - "title": "Program", - "description": "A base64 representation of the compressed program code", - "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$" - }, - "entry_points_by_type": { - "type": "object", - "title": "Deprecated entry points by type", - "properties": { - "CONSTRUCTOR": { - "type": "array", - "title": "Deprecated constructor", - "items": { - "$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - }, - "EXTERNAL": { - "type": "array", - "title": "Deprecated external", - "items": { - "$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - }, - "L1_HANDLER": { - "type": "array", - "title": "Deprecated L1 handler", - "items": { - "$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - } - } - }, - "abi": { - "title": "Contract ABI", - "$ref": "#/components/schemas/CONTRACT_ABI" - } - }, - "required": ["program", "entry_points_by_type"] - }, - "DEPRECATED_CAIRO_ENTRY_POINT": { - "title": "Deprecated Cairo entry point", - "type": "object", - "properties": { - "offset": { - "title": "Offset", - "description": "The offset of the entry point in the program", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "selector": { - "title": "Selector", - "description": "A unique identifier of the entry point (function) in the program", - "$ref": "#/components/schemas/FELT" - } - }, - "required": ["offset", "selector"] - }, - "SIERRA_ENTRY_POINT": { - "title": "Sierra entry point", - "type": "object", - "properties": { - "selector": { - "title": "Selector", - "description": "A unique identifier of the entry point (function) in the program", - "$ref": "#/components/schemas/FELT" - }, - "function_idx": { - "title": "Function index", - "description": "The index of the function in the program", - "type": "integer" - } - }, - "required": ["selector", "function_idx"] - }, - "CONTRACT_ABI": { - "title": "Contract ABI", - "type": "array", - "items": { - "$ref": "#/components/schemas/CONTRACT_ABI_ENTRY" - } - }, - "CONTRACT_ABI_ENTRY": { - "title": "Contract ABI entry", - "oneOf": [ - { - "title": "Function ABI entry", - "$ref": "#/components/schemas/FUNCTION_ABI_ENTRY" - }, - { - "title": "Event ABI entry", - "$ref": "#/components/schemas/EVENT_ABI_ENTRY" - }, - { - "title": "Struct ABI entry", - "$ref": "#/components/schemas/STRUCT_ABI_ENTRY" - } - ] - }, - "STRUCT_ABI_TYPE": { - "title": "Struct ABI type", - "type": "string", - "enum": ["struct"] - }, - "EVENT_ABI_TYPE": { - "title": "Event ABI type", - "type": "string", - "enum": ["event"] - }, - "FUNCTION_ABI_TYPE": { - "title": "Function ABI type", - "type": "string", - "enum": ["function", "l1_handler", "constructor"] - }, - "STRUCT_ABI_ENTRY": { - "title": "Struct ABI entry", - "type": "object", - "properties": { - "type": { - "title": "Struct ABI type", - "$ref": "#/components/schemas/STRUCT_ABI_TYPE" - }, - "name": { - "title": "Struct name", - "description": "The struct name", - "type": "string" - }, - "size": { - "title": "Size", - "type": "integer", - "minimum": 1 - }, - "members": { - "type": "array", - "title": "Members", - "items": { - "$ref": "#/components/schemas/STRUCT_MEMBER" - } - } - }, - "required": ["type", "name", "size", "members"] - }, - "STRUCT_MEMBER": { - "title": "Struct member", - "allOf": [ - { - "title": "Typed parameter", - "$ref": "#/components/schemas/TYPED_PARAMETER" - }, - { - "type": "object", - "title": "Offset", - "properties": { - "offset": { - "title": "Offset", - "description": "offset of this property within the struct", - "type": "integer" - } - } - } - ] - }, - "EVENT_ABI_ENTRY": { - "title": "Event ABI entry", - "type": "object", - "properties": { - "type": { - "title": "Event ABI type", - "$ref": "#/components/schemas/EVENT_ABI_TYPE" - }, - "name": { - "title": "Event name", - "description": "The event name", - "type": "string" - }, - "keys": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - }, - "data": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - } - }, - "required": ["type", "name", "keys", "data"] - }, - "FUNCTION_STATE_MUTABILITY": { - "title": "Function state mutability type", - "type": "string", - "enum": ["view"] - }, - "FUNCTION_ABI_ENTRY": { - "title": "Function ABI entry", - "type": "object", - "properties": { - "type": { - "title": "Function ABI type", - "$ref": "#/components/schemas/FUNCTION_ABI_TYPE" - }, - "name": { - "title": "Function name", - "description": "The function name", - "type": "string" - }, - "inputs": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - }, - "outputs": { - "type": "array", - "title": "Typed parameter", - "items": { - "$ref": "#/components/schemas/TYPED_PARAMETER" - } - }, - "stateMutability": { - "title": "Function state mutability", - "$ref": "#/components/schemas/FUNCTION_STATE_MUTABILITY" - } - }, - "required": ["type", "name", "inputs", "outputs"] - }, - "TYPED_PARAMETER": { - "title": "Typed parameter", - "type": "object", - "properties": { - "name": { - "title": "Parameter name", - "description": "The parameter's name", - "type": "string" - }, - "type": { - "title": "Parameter type", - "description": "The parameter's type", - "type": "string" - } - }, - "required": ["name", "type"] - }, - "SIMULATION_FLAG_FOR_ESTIMATE_FEE": { - "type": "string", - "enum": ["SKIP_VALIDATE"], - "description": "Flags that indicate how to simulate a given transaction. By default, the sequencer behavior is replicated locally" - }, - "PRICE_UNIT": { - "title": "price unit", - "type": "string", - "enum": ["WEI", "FRI"] - }, - "FEE_ESTIMATE": { - "title": "Fee estimation", - "type": "object", - "properties": { - "l1_gas_consumed": { - "title": "L1 gas consumed", - "description": "The Ethereum gas consumption of the transaction, charged for L1->L2 messages and, depending on the block's DA_MODE, state diffs", - "$ref": "#/components/schemas/u64" - }, - "l1_gas_price": { - "title": "L1 gas price", - "description": "The gas price (in wei or fri, depending on the tx version) that was used in the cost estimation", - "$ref": "#/components/schemas/u128" - }, - "l2_gas_consumed": { - "title": "L2 gas consumed", - "description": "The L2 gas consumption of the transaction", - "$ref": "#/components/schemas/u64" - }, - "l2_gas_price": { - "title": "L2 gas price", - "description": "The L2 gas price (in wei or fri, depending on the tx version) that was used in the cost estimation", - "$ref": "#/components/schemas/u128" - }, - "l1_data_gas_consumed": { - "title": "L1 data gas consumed", - "description": "The Ethereum data gas consumption of the transaction", - "$ref": "#/components/schemas/u64" - }, - "l1_data_gas_price": { - "title": "L1 data gas price", - "description": "The data gas price (in wei or fri, depending on the tx version) that was used in the cost estimation", - "$ref": "#/components/schemas/u128" - }, - "overall_fee": { - "title": "Overall fee", - "description": "The estimated fee for the transaction (in wei or fri, depending on the tx version), equals to l1_gas_consumed*l1_gas_price + l1_data_gas_consumed*l1_data_gas_price + l2_gas_consumed*l2_gas_price", - "$ref": "#/components/schemas/u128" - }, - "unit": { - "title": "Fee unit", - "description": "units in which the fee is given", - "$ref": "#/components/schemas/PRICE_UNIT" - } - }, - "required": [ - "l1_gas_consumed", - "l1_gas_price", - "l2_gas_consumed", - "l2_gas_price", - "l1_data_gas_consumed", - "l1_data_gas_price", - "overall_fee", - "unit" - ] - }, - "FEE_PAYMENT": { - "title": "Fee Payment", - "description": "fee payment info as it appears in receipts", - "type": "object", - "properties": { - "amount": { - "title": "Amount", - "description": "amount paid", - "$ref": "#/components/schemas/FELT" - }, - "unit": { - "title": "Fee unit", - "description": "units in which the fee is given", - "$ref": "#/components/schemas/PRICE_UNIT" - } - }, - "required": ["amount", "unit"] - }, - "DA_MODE": { - "title": "DA mode", - "type": "string", - "description": "Specifies a storage domain in Starknet. Each domain has different guarantees regarding availability", - "enum": ["L1", "L2"] - }, - "RESOURCE_BOUNDS_MAPPING": { - "type": "object", - "properties": { - "l1_gas": { - "title": "L1 Gas", - "description": "The max amount and max price per unit of L1 gas used in this tx", - "$ref": "#/components/schemas/RESOURCE_BOUNDS" - }, - "l1_data_gas": { - "title": "L1 Data Gas", - "description": "The max amount and max price per unit of L1 blob gas used in this tx", - "$ref": "#/components/schemas/RESOURCE_BOUNDS" - }, - "l2_gas": { - "title": "L2 Gas", - "description": "The max amount and max price per unit of L2 gas used in this tx", - "$ref": "#/components/schemas/RESOURCE_BOUNDS" - } - }, - "required": ["l1_gas", "l1_data_gas", "l2_gas"] - }, - "RESOURCE_BOUNDS": { - "type": "object", - "properties": { - "max_amount": { - "title": "max amount", - "description": "the max amount of the resource that can be used in the tx", - "$ref": "#/components/schemas/u64" - }, - "max_price_per_unit": { - "title": "max price", - "description": "the max price per unit of this resource for this tx", - "$ref": "#/components/schemas/u128" - } - }, - "required": ["max_amount", "max_price_per_unit"] - }, - "RESOURCE_PRICE": { - "type": "object", - "properties": { - "price_in_fri": { - "title": "price in fri", - "description": "the price of one unit of the given resource, denominated in fri (10^-18 strk)", - "$ref": "#/components/schemas/FELT" - }, - "price_in_wei": { - "title": "price in wei", - "description": "the price of one unit of the given resource, denominated in wei", - "$ref": "#/components/schemas/FELT" - } - }, - "required": ["price_in_wei", "price_in_fri"] - }, - "EXECUTION_RESOURCES": { - "type": "object", - "title": "Execution resources", - "description": "the resources consumed by the transaction", - "properties": { - "l1_gas": { - "title": "L1Gas", - "description": "l1 gas consumed by this transaction, used for l2-->l1 messages and state updates if blobs are not used", - "type": "integer" - }, - "l1_data_gas": { - "title": "L1DataGas", - "description": "data gas consumed by this transaction, 0 if blobs are not used", - "type": "integer" - }, - "l2_gas": { - "title": "L2Gas", - "description": "l2 gas consumed by this transaction, used for computation and calldata", - "type": "integer" - } - }, - "required": ["l1_gas", "l1_data_gas", "l2_gas"] - }, - "MERKLE_NODE": { - "title": "MP node", - "description": "a node in the Merkle-Patricia tree, can be a leaf, binary node, or an edge node", - "oneOf": [ - { - "$ref": "#/components/schemas/BINARY_NODE" - }, - { - "$ref": "#/components/schemas/EDGE_NODE" - } - ] - }, - "BINARY_NODE": { - "type": "object", - "description": "an internal node whose both children are non-zero", - "properties": { - "left": { - "description": "the hash of the left child", - "$ref": "#/components/schemas/FELT" - }, - "right": { - "description": "the hash of the right child", - "$ref": "#/components/schemas/FELT" - } - }, - "required": ["left", "right"] - }, - "EDGE_NODE": { - "type": "object", - "description": "represents a path to the highest non-zero descendant node", - "properties": { - "path": { - "description": "an integer whose binary representation represents the path from the current node to its highest non-zero descendant (bounded by 2^251)", - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "length": { - "description": "the length of the path (bounded by 251)", - "type": "integer" - }, - "child": { - "description": "the hash of the unique non-zero maximal-height descendant node", - "$ref": "#/components/schemas/FELT" - } - }, - "required": ["path", "length", "child"] - }, - "NODE_HASH_TO_NODE_MAPPING": { - "description": "a node_hash -> node mapping of all the nodes in the union of the paths between the requested leaves and the root", - "type": "array", - "items": { - "type": "object", - "properties": { - "node_hash": { - "$ref": "#/components/schemas/FELT" - }, - "node": { - "$ref": "#/components/schemas/MERKLE_NODE" - } - }, - "required": ["node_hash", "node"] - } - }, - "CONTRACT_EXECUTION_ERROR": { - "description": "structured error that can later be processed by wallets or sdks", - "title": "contract execution error", - "$ref": "#/components/schemas/CONTRACT_EXECUTION_ERROR_INNER" - }, - "CONTRACT_EXECUTION_ERROR_INNER": { - "description": "structured error that can later be processed by wallets or sdks", - "title": "contract execution error", - "oneOf": [ - { - "type": "object", - "properties": { - "contract_address": { - "$ref": "#/components/schemas/ADDRESS" - }, - "class_hash": { - "$ref": "#/components/schemas/FELT" - }, - "selector": { - "$ref": "#/components/schemas/FELT" - }, - "error": { - "$ref": "#/components/schemas/CONTRACT_EXECUTION_ERROR" - } - }, - "required": ["contract_address", "class_hash", "selector", "error"] - }, - { - "title": "error message", - "description": "the error raised during execution", - "type": "string" - } - ] - } - }, - "errors": { - "FAILED_TO_RECEIVE_TXN": { - "code": 1, - "message": "Failed to write transaction" - }, - "CONTRACT_NOT_FOUND": { - "code": 20, - "message": "Contract not found" - }, - "ENTRYPOINT_NOT_FOUND": { - "code": 21, - "message": "Requested entrypoint does not exist in the contract" - }, - "BLOCK_NOT_FOUND": { - "code": 24, - "message": "Block not found" - }, - "INVALID_TXN_INDEX": { - "code": 27, - "message": "Invalid transaction index in a block" - }, - "CLASS_HASH_NOT_FOUND": { - "code": 28, - "message": "Class hash not found" - }, - "TXN_HASH_NOT_FOUND": { - "code": 29, - "message": "Transaction hash not found" - }, - "PAGE_SIZE_TOO_BIG": { - "code": 31, - "message": "Requested page size is too big" - }, - "NO_BLOCKS": { - "code": 32, - "message": "There are no blocks" - }, - "INVALID_CONTINUATION_TOKEN": { - "code": 33, - "message": "The supplied continuation token is invalid or unknown" - }, - "TOO_MANY_KEYS_IN_FILTER": { - "code": 34, - "message": "Too many keys provided in a filter" - }, - "CONTRACT_ERROR": { - "code": 40, - "message": "Contract error", - "data": { - "type": "object", - "description": "More data about the execution failure", - "properties": { - "revert_error": { - "title": "revert error", - "description": "the execution trace up to the point of failure", - "$ref": "#/components/schemas/CONTRACT_EXECUTION_ERROR" - } - }, - "required": "revert_error" - } - }, - "TRANSACTION_EXECUTION_ERROR": { - "code": 41, - "message": "Transaction execution error", - "data": { - "type": "object", - "description": "More data about the execution failure", - "properties": { - "transaction_index": { - "title": "Transaction index", - "description": "The index of the first transaction failing in a sequence of given transactions", - "type": "integer" - }, - "execution_error": { - "title": "revert error", - "description": "the execution trace up to the point of failure", - "$ref": "#/components/schemas/CONTRACT_EXECUTION_ERROR" - } - }, - "required": ["transaction_index", "execution_error"] - } - }, - "STORAGE_PROOF_NOT_SUPPORTED": { - "code": 42, - "message": "the node doesn't support storage proofs for blocks that are too far in the past" - } - } - } -} diff --git a/specs/rpc/v08/starknet_executables.json b/specs/rpc/v08/starknet_executables.json deleted file mode 100644 index 86f736e6c2..0000000000 --- a/specs/rpc/v08/starknet_executables.json +++ /dev/null @@ -1,1178 +0,0 @@ -{ - "openrpc": "1.0.0", - "info": { - "version": "0.8.0", - "title": "API for getting Starknet executables from nodes that store compiled artifacts", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_getCompiledCasm", - "summary": "Get the CASM code resulting from compiling a given class", - "params": [ - { - "name": "class_hash", - "description": "The hash of the contract class whose CASM will be returned", - "required": true, - "schema": { - "title": "Field element", - "$ref": "#/components/schemas/FELT" - } - } - ], - "result": { - "name": "result", - "description": "The compiled contract class", - "schema": { - "title": "Starknet get compiled CASM result", - "$ref": "#/components/schemas/CASM_COMPILED_CONTRACT_CLASS" - } - }, - "errors": [ - { - "$ref": "#/components/errors/COMPILATION_ERROR" - }, - { - "$ref": "./api/starknet_api_openrpc.json#/components/errors/CLASS_HASH_NOT_FOUND" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "CASM_COMPILED_CONTRACT_CLASS": { - "type": "object", - "properties": { - "entry_points_by_type": { - "title": "Entry points by type", - "type": "object", - "properties": { - "CONSTRUCTOR": { - "type": "array", - "title": "Constructor", - "items": { - "$ref": "#/components/schemas/CASM_ENTRY_POINT" - } - }, - "EXTERNAL": { - "title": "External", - "type": "array", - "items": { - "$ref": "#/components/schemas/CASM_ENTRY_POINT" - } - }, - "L1_HANDLER": { - "title": "L1 handler", - "type": "array", - "items": { - "$ref": "#/components/schemas/CASM_ENTRY_POINT" - } - } - }, - "required": ["CONSTRUCTOR", "EXTERNAL", "L1_HANDLER"] - }, - "bytecode": { - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "prime": { - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "compiler_version": { - "type": "string" - }, - "hints": { - "type": "array", - "items": { - "type": "array", - "description": "2-tuple of pc value and an array of hints to execute", - "items": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/HINT" - } - } - ] - }, - "minItems": 2, - "maxItems": 2 - } - }, - "bytecode_segment_lengths": { - "type": "array", - "description": "a list of sizes of segments in the bytecode, each segment is hashed individually when computing the bytecode hash", - "items": { - "type": "integer" - } - } - }, - "required": [ - "prime", - "compiler_version", - "entry_points_by_type", - "bytecode", - "hints" - ] - }, - "CASM_ENTRY_POINT": { - "type": "object", - "properties": { - "offset": { - "title": "Offset", - "description": "The offset of the entry point in the program", - "type": "integer" - }, - "selector": { - "title": "Selector", - "description": "A unique identifier of the entry point (function) in the program", - "$ref": "#/components/schemas/FELT" - }, - "builtins": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": ["offset", "selector", "builtins"] - }, - "CellRef": { - "title": "CellRef", - "type": "object", - "properties": { - "register": { - "type": "string", - "enum": ["AP", "FP"] - }, - "offset": { - "type": "integer" - } - }, - "required": ["register", "offset"] - }, - "Deref": { - "type": "object", - "properties": { - "Deref": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["Deref"] - }, - "DoubleDeref": { - "title": "DoubleDeref", - "type": "object", - "properties": { - "DoubleDeref": { - "title": "DoubleDeref", - "description": "A (CellRef, offset) tuple", - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CellRef" - }, - { - "type": "integer" - } - ] - }, - "minItems": 2, - "maxItems": 2 - } - }, - "required": ["DoubleDeref"] - }, - "Immediate": { - "title": "Immediate", - "type": "object", - "properties": { - "Immediate": { - "$ref": "#/components/schemas/NUM_AS_HEX" - } - }, - "required": ["Immediate"] - }, - "BinOp": { - "title": "BinOperand", - "type": "object", - "properties": { - "BinOp": { - "type": "object", - "properties": { - "op": { - "type": "string", - "enum": ["Add", "Mul"] - }, - "a": { - "$ref": "#/components/schemas/CellRef" - }, - "b": { - "oneOf": [ - { - "$ref": "#/components/schemas/Deref" - }, - { - "$ref": "#/components/schemas/Immediate" - } - ] - } - }, - "required": ["op", "a", "b"] - } - }, - "required": ["BinOp"] - }, - "ResOperand": { - "oneOf": [ - { - "$ref": "#/components/schemas/Deref" - }, - { - "$ref": "#/components/schemas/DoubleDeref" - }, - { - "$ref": "#/components/schemas/Immediate" - }, - { - "$ref": "#/components/schemas/BinOp" - } - ] - }, - "HINT": { - "oneOf": [ - { - "$ref": "#/components/schemas/DEPRECATED_HINT" - }, - { - "$ref": "#/components/schemas/CORE_HINT" - }, - { - "$ref": "#/components/schemas/STARKNET_HINT" - } - ] - }, - "DEPRECATED_HINT": { - "oneOf": [ - { - "type": "string", - "title": "AssertCurrentAccessIndicesIsEmpty", - "enum": ["AssertCurrentAccessIndicesIsEmpty"] - }, - { - "type": "object", - "title": "AssertAllAccessesUsed", - "properties": { - "AssertAllAccessesUsed": { - "type": "object", - "properties": { - "n_used_accesses": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["n_used_accesses"] - } - }, - "required": ["AssertAllAccessesUsed"] - }, - { - "type": "string", - "title": "AssertAllKeysUsed", - "enum": ["AssertAllKeysUsed"] - }, - { - "type": "string", - "title": "AssertLeAssertThirdArcExcluded", - "enum": ["AssertLeAssertThirdArcExcluded"] - }, - { - "type": "object", - "title": "AssertLtAssertValidInput", - "properties": { - "AssertLtAssertValidInput": { - "type": "object", - "properties": { - "a": { - "$ref": "#/components/schemas/ResOperand" - }, - "b": { - "$ref": "#/components/schemas/ResOperand" - } - }, - "required": ["a", "b"] - } - }, - "required": ["AssertLtAssertValidInput"] - }, - { - "type": "object", - "title": "Felt252DictRead", - "properties": { - "Felt252DictRead": { - "type": "object", - "properties": { - "dict_ptr": { - "$ref": "#/components/schemas/ResOperand" - }, - "key": { - "$ref": "#/components/schemas/ResOperand" - }, - "value_dst": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["dict_ptr", "key", "value_dst"] - } - }, - "required": ["Felt252DictRead"] - }, - { - "type": "object", - "title": "Felt252DictWrite", - "properties": { - "Felt252DictWrite": { - "type": "object", - "properties": { - "dict_ptr": { - "$ref": "#/components/schemas/ResOperand" - }, - "key": { - "$ref": "#/components/schemas/ResOperand" - }, - "value": { - "$ref": "#/components/schemas/ResOperand" - } - }, - "required": ["dict_ptr", "key", "value"] - } - }, - "required": ["Felt252DictWrite"] - } - ] - }, - "CORE_HINT": { - "oneOf": [ - { - "type": "object", - "title": "AllocSegment", - "properties": { - "AllocSegment": { - "type": "object", - "properties": { - "dst": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["dst"] - } - }, - "required": ["AllocSegment"] - }, - { - "type": "object", - "title": "TestLessThan", - "properties": { - "TestLessThan": { - "type": "object", - "properties": { - "lhs": { - "$ref": "#/components/schemas/ResOperand" - }, - "rhs": { - "$ref": "#/components/schemas/ResOperand" - }, - "dst": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["lhs", "rhs", "dst"] - } - }, - "required": ["TestLessThan"] - }, - { - "type": "object", - "title": "TestLessThanOrEqual", - "properties": { - "TestLessThanOrEqual": { - "type": "object", - "properties": { - "lhs": { - "$ref": "#/components/schemas/ResOperand" - }, - "rhs": { - "$ref": "#/components/schemas/ResOperand" - }, - "dst": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["lhs", "rhs", "dst"] - } - }, - "required": ["TestLessThanOrEqual"] - }, - { - "type": "object", - "title": "TestLessThanOrEqualAddress", - "properties": { - "TestLessThanOrEqualAddress": { - "type": "object", - "properties": { - "lhs": { - "$ref": "#/components/schemas/ResOperand" - }, - "rhs": { - "$ref": "#/components/schemas/ResOperand" - }, - "dst": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["lhs", "rhs", "dst"] - } - }, - "required": ["TestLessThanOrEqualAddress"] - }, - { - "type": "object", - "title": "WideMul128", - "properties": { - "WideMul128": { - "type": "object", - "properties": { - "lhs": { - "$ref": "#/components/schemas/ResOperand" - }, - "rhs": { - "$ref": "#/components/schemas/ResOperand" - }, - "high": { - "$ref": "#/components/schemas/CellRef" - }, - "low": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["lhs", "rhs", "high", "low"] - } - }, - "required": ["WideMul128"] - }, - { - "type": "object", - "title": "DivMod", - "properties": { - "DivMod": { - "type": "object", - "properties": { - "lhs": { - "$ref": "#/components/schemas/ResOperand" - }, - "rhs": { - "$ref": "#/components/schemas/ResOperand" - }, - "quotient": { - "$ref": "#/components/schemas/CellRef" - }, - "remainder": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["lhs", "rhs", "quotient", "remainder"] - } - }, - "required": ["DivMod"] - }, - { - "type": "object", - "title": "Uint256DivMod", - "properties": { - "Uint256DivMod": { - "type": "object", - "properties": { - "dividend0": { - "$ref": "#/components/schemas/ResOperand" - }, - "dividend1": { - "$ref": "#/components/schemas/ResOperand" - }, - "divisor0": { - "$ref": "#/components/schemas/ResOperand" - }, - "divisor1": { - "$ref": "#/components/schemas/ResOperand" - }, - "quotient0": { - "$ref": "#/components/schemas/CellRef" - }, - "quotient1": { - "$ref": "#/components/schemas/CellRef" - }, - "remainder0": { - "$ref": "#/components/schemas/CellRef" - }, - "remainder1": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": [ - "dividend0", - "dividend1", - "divisor0", - "divisor1", - "quotient0", - "quotient1", - "remainder0", - "remainder1" - ] - } - }, - "required": ["Uint256DivMod"] - }, - { - "type": "object", - "title": "Uint512DivModByUint256", - "properties": { - "Uint512DivModByUint256": { - "type": "object", - "properties": { - "dividend0": { - "$ref": "#/components/schemas/ResOperand" - }, - "dividend1": { - "$ref": "#/components/schemas/ResOperand" - }, - "dividend2": { - "$ref": "#/components/schemas/ResOperand" - }, - "dividend3": { - "$ref": "#/components/schemas/ResOperand" - }, - "divisor0": { - "$ref": "#/components/schemas/ResOperand" - }, - "divisor1": { - "$ref": "#/components/schemas/ResOperand" - }, - "quotient0": { - "$ref": "#/components/schemas/CellRef" - }, - "quotient1": { - "$ref": "#/components/schemas/CellRef" - }, - "quotient2": { - "$ref": "#/components/schemas/CellRef" - }, - "quotient3": { - "$ref": "#/components/schemas/CellRef" - }, - "remainder0": { - "$ref": "#/components/schemas/CellRef" - }, - "remainder1": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": [ - "dividend0", - "dividend1", - "dividend2", - "dividend3", - "divisor0", - "divisor1", - "quotient0", - "quotient1", - "quotient2", - "quotient3", - "remainder0", - "remainder1" - ] - } - }, - "required": ["Uint512DivModByUint256"] - }, - { - "type": "object", - "title": "SquareRoot", - "properties": { - "SquareRoot": { - "type": "object", - "properties": { - "value": { - "$ref": "#/components/schemas/ResOperand" - }, - "dst": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["value", "dst"] - } - }, - "required": ["SquareRoot"] - }, - { - "type": "object", - "title": "Uint256SquareRoot", - "properties": { - "Uint256SquareRoot": { - "type": "object", - "properties": { - "value_low": { - "$ref": "#/components/schemas/ResOperand" - }, - "value_high": { - "$ref": "#/components/schemas/ResOperand" - }, - "sqrt0": { - "$ref": "#/components/schemas/CellRef" - }, - "sqrt1": { - "$ref": "#/components/schemas/CellRef" - }, - "remainder_low": { - "$ref": "#/components/schemas/CellRef" - }, - "remainder_high": { - "$ref": "#/components/schemas/CellRef" - }, - "sqrt_mul_2_minus_remainder_ge_u128": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": [ - "value_low", - "value_high", - "sqrt0", - "sqrt1", - "remainder_low", - "remainder_high", - "sqrt_mul_2_minus_remainder_ge_u128" - ] - } - }, - "required": ["Uint256SquareRoot"] - }, - { - "type": "object", - "title": "LinearSplit", - "properties": { - "LinearSplit": { - "type": "object", - "properties": { - "value": { - "$ref": "#/components/schemas/ResOperand" - }, - "scalar": { - "$ref": "#/components/schemas/ResOperand" - }, - "max_x": { - "$ref": "#/components/schemas/ResOperand" - }, - "x": { - "$ref": "#/components/schemas/CellRef" - }, - "y": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["value", "scalar", "max_x", "x", "y"] - } - }, - "required": ["LinearSplit"] - }, - { - "type": "object", - "title": "AllocFelt252Dict", - "properties": { - "AllocFelt252Dict": { - "type": "object", - "properties": { - "segment_arena_ptr": { - "$ref": "#/components/schemas/ResOperand" - } - }, - "required": ["segment_arena_ptr"] - } - }, - "required": ["AllocFelt252Dict"] - }, - { - "type": "object", - "title": "Felt252DictEntryInit", - "properties": { - "Felt252DictEntryInit": { - "type": "object", - "properties": { - "dict_ptr": { - "$ref": "#/components/schemas/ResOperand" - }, - "key": { - "$ref": "#/components/schemas/ResOperand" - } - }, - "required": ["dict_ptr", "key"] - } - }, - "required": ["Felt252DictEntryInit"] - }, - { - "type": "object", - "title": "Felt252DictEntryUpdate", - "properties": { - "Felt252DictEntryUpdate": { - "type": "object", - "properties": { - "dict_ptr": { - "$ref": "#/components/schemas/ResOperand" - }, - "value": { - "$ref": "#/components/schemas/ResOperand" - } - }, - "required": ["dict_ptr", "value"] - } - }, - "required": ["Felt252DictEntryUpdate"] - }, - { - "type": "object", - "title": "GetSegmentArenaIndex", - "properties": { - "GetSegmentArenaIndex": { - "type": "object", - "properties": { - "dict_end_ptr": { - "$ref": "#/components/schemas/ResOperand" - }, - "dict_index": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["dict_end_ptr", "dict_index"] - } - }, - "required": ["GetSegmentArenaIndex"] - }, - { - "type": "object", - "title": "InitSquashData", - "properties": { - "InitSquashData": { - "type": "object", - "properties": { - "dict_accesses": { - "$ref": "#/components/schemas/ResOperand" - }, - "ptr_diff": { - "$ref": "#/components/schemas/ResOperand" - }, - "n_accesses": { - "$ref": "#/components/schemas/ResOperand" - }, - "big_keys": { - "$ref": "#/components/schemas/CellRef" - }, - "first_key": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": [ - "dict_accesses", - "ptr_diff", - "n_accesses", - "big_keys", - "first_key" - ] - } - }, - "required": ["InitSquashData"] - }, - { - "type": "object", - "title": "GetCurrentAccessIndex", - "properties": { - "GetCurrentAccessIndex": { - "type": "object", - "properties": { - "range_check_ptr": { - "$ref": "#/components/schemas/ResOperand" - } - }, - "required": ["range_check_ptr"] - } - }, - "required": ["GetCurrentAccessIndex"] - }, - { - "type": "object", - "title": "ShouldSkipSquashLoop", - "properties": { - "ShouldSkipSquashLoop": { - "type": "object", - "properties": { - "should_skip_loop": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["should_skip_loop"] - } - }, - "required": ["ShouldSkipSquashLoop"] - }, - { - "type": "object", - "title": "GetCurrentAccessDelta", - "properties": { - "GetCurrentAccessDelta": { - "type": "object", - "properties": { - "index_delta_minus1": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["index_delta_minus1"] - } - }, - "required": ["GetCurrentAccessDelta"] - }, - { - "type": "object", - "title": "ShouldContinueSquashLoop", - "properties": { - "ShouldContinueSquashLoop": { - "type": "object", - "properties": { - "should_continue": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["should_continue"] - } - }, - "required": ["ShouldContinueSquashLoop"] - }, - { - "type": "object", - "title": "GetNextDictKey", - "properties": { - "GetNextDictKey": { - "type": "object", - "properties": { - "next_key": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["next_key"] - } - }, - "required": ["GetNextDictKey"] - }, - { - "type": "object", - "title": "AssertLeFindSmallArcs", - "properties": { - "AssertLeFindSmallArcs": { - "type": "object", - "properties": { - "range_check_ptr": { - "$ref": "#/components/schemas/ResOperand" - }, - "a": { - "$ref": "#/components/schemas/ResOperand" - }, - "b": { - "$ref": "#/components/schemas/ResOperand" - } - }, - "required": ["range_check_ptr", "a", "b"] - } - }, - "required": ["AssertLeFindSmallArcs"] - }, - { - "type": "object", - "title": "AssertLeIsFirstArcExcluded", - "properties": { - "AssertLeIsFirstArcExcluded": { - "type": "object", - "properties": { - "skip_exclude_a_flag": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["skip_exclude_a_flag"] - } - }, - "required": ["AssertLeIsFirstArcExcluded"] - }, - { - "type": "object", - "title": "AssertLeIsSecondArcExcluded", - "properties": { - "AssertLeIsSecondArcExcluded": { - "type": "object", - "properties": { - "skip_exclude_b_minus_a": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["skip_exclude_b_minus_a"] - } - }, - "required": ["AssertLeIsSecondArcExcluded"] - }, - { - "type": "object", - "title": "RandomEcPoint", - "properties": { - "RandomEcPoint": { - "type": "object", - "properties": { - "x": { - "$ref": "#/components/schemas/CellRef" - }, - "y": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["x", "y"] - } - }, - "required": ["RandomEcPoint"] - }, - { - "type": "object", - "title": "FieldSqrt", - "properties": { - "FieldSqrt": { - "type": "object", - "properties": { - "val": { - "$ref": "#/components/schemas/ResOperand" - }, - "sqrt": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["val", "sqrt"] - } - }, - "required": ["FieldSqrt"] - }, - { - "type": "object", - "title": "DebugPrint", - "properties": { - "DebugPrint": { - "type": "object", - "properties": { - "start": { - "$ref": "#/components/schemas/ResOperand" - }, - "end": { - "$ref": "#/components/schemas/ResOperand" - } - }, - "required": ["start", "end"] - } - }, - "required": ["DebugPrint"] - }, - { - "type": "object", - "title": "AllocConstantSize", - "properties": { - "AllocConstantSize": { - "type": "object", - "properties": { - "size": { - "$ref": "#/components/schemas/ResOperand" - }, - "dst": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": ["size", "dst"] - } - }, - "required": ["AllocConstantSize"] - }, - { - "type": "object", - "title": "U256InvModN", - "properties": { - "U256InvModN": { - "type": "object", - "properties": { - "b0": { - "$ref": "#/components/schemas/ResOperand" - }, - "b1": { - "$ref": "#/components/schemas/ResOperand" - }, - "n0": { - "$ref": "#/components/schemas/ResOperand" - }, - "n1": { - "$ref": "#/components/schemas/ResOperand" - }, - "g0_or_no_inv": { - "$ref": "#/components/schemas/CellRef" - }, - "g1_option": { - "$ref": "#/components/schemas/CellRef" - }, - "s_or_r0": { - "$ref": "#/components/schemas/CellRef" - }, - "s_or_r1": { - "$ref": "#/components/schemas/CellRef" - }, - "t_or_k0": { - "$ref": "#/components/schemas/CellRef" - }, - "t_or_k1": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": [ - "b0", - "b1", - "n0", - "n1", - "g0_or_no_inv", - "g1_option", - "s_or_r0", - "s_or_r1", - "t_or_k0", - "t_or_k1" - ] - } - }, - "required": ["U256InvModN"] - }, - { - "type": "object", - "title": "EvalCircuit", - "properties": { - "EvalCircuit": { - "type": "object", - "properties": { - "n_add_mods": { - "$ref": "#/components/schemas/ResOperand" - }, - "add_mod_builtin": { - "$ref": "#/components/schemas/ResOperand" - }, - "n_mul_mods": { - "$ref": "#/components/schemas/ResOperand" - }, - "mul_mod_builtin": { - "$ref": "#/components/schemas/ResOperand" - } - }, - "required": [ - "n_add_mods", - "add_mod_builtin", - "n_mul_mods", - "mul_mod_builtin" - ] - } - }, - "required": ["EvalCircuit"] - } - ] - }, - "STARKNET_HINT": { - "oneOf": [ - { - "type": "object", - "title": "SystemCall", - "properties": { - "SystemCall": { - "type": "object", - "properties": { - "system": { - "$ref": "#/components/schemas/ResOperand" - } - }, - "required": ["system"] - } - }, - "required": ["SystemCall"] - }, - { - "type": "object", - "title": "Cheatcode", - "properties": { - "Cheatcode": { - "type": "object", - "properties": { - "selector": { - "$ref": "#/components/schemas/NUM_AS_HEX" - }, - "input_start": { - "$ref": "#/components/schemas/ResOperand" - }, - "input_end": { - "$ref": "#/components/schemas/ResOperand" - }, - "output_start": { - "$ref": "#/components/schemas/CellRef" - }, - "output_end": { - "$ref": "#/components/schemas/CellRef" - } - }, - "required": [ - "selector", - "input_start", - "input_end", - "output_start", - "output_end" - ] - } - }, - "required": ["Cheatcode"] - } - ] - }, - "FELT": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/FELT" - }, - "NUM_AS_HEX": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/NUM_AS_HEX" - }, - "DEPRECATED_CAIRO_ENTRY_POINT": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT" - } - }, - "errors": { - "COMPILATION_ERROR": { - "code": 100, - "message": "Failed to compile the contract", - "data": { - "type": "object", - "description": "More data about the compilation failure", - "properties": { - "compilation_error": { - "title": "compilation error", - "type": "string" - } - }, - "required": "compilation_error" - } - } - } - } -} diff --git a/specs/rpc/v08/starknet_trace_api_openrpc.json b/specs/rpc/v08/starknet_trace_api_openrpc.json deleted file mode 100644 index 62e6a650b1..0000000000 --- a/specs/rpc/v08/starknet_trace_api_openrpc.json +++ /dev/null @@ -1,496 +0,0 @@ -{ - "openrpc": "1.0.0-rc1", - "info": { - "version": "0.8.0", - "title": "StarkNet Trace API", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_traceTransaction", - "summary": "For a given executed transaction, return the trace of its execution, including internal calls", - "description": "Returns the execution trace of the transaction designated by the input hash", - "params": [ - { - "name": "transaction_hash", - "summary": "The hash of the transaction to trace", - "required": true, - "schema": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/TXN_HASH" - } - } - ], - "result": { - "name": "trace", - "description": "The function call trace of the transaction designated by the given hash", - "schema": { - "$ref": "#/components/schemas/TRANSACTION_TRACE" - } - }, - "errors": [ - { - "$ref": "./api/starknet_api_openrpc.json#/components/errors/TXN_HASH_NOT_FOUND" - }, - { - "$ref": "#/components/errors/NO_TRACE_AVAILABLE" - } - ] - }, - { - "name": "starknet_simulateTransactions", - "summary": "Simulate a given sequence of transactions on the requested state, and generate the execution traces. Note that some of the transactions may revert, in which case no error is thrown, but revert details can be seen on the returned trace object. Note that some of the transactions may revert, this will be reflected by the revert_error property in the trace. Other types of failures (e.g. unexpected error or failure in the validation phase) will result in TRANSACTION_EXECUTION_ERROR.", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.", - "required": true, - "schema": { - "$ref": "#/components/schemas/BLOCK_ID" - } - }, - { - "name": "transactions", - "description": "The transactions to simulate", - "required": true, - "schema": { - "type": "array", - "description": "a sequence of transactions to simulate, running each transaction on the state resulting from applying all the previous ones", - "items": { - "$ref": "#/components/schemas/BROADCASTED_TXN" - } - } - }, - { - "name": "simulation_flags", - "description": "describes what parts of the transaction should be executed", - "required": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SIMULATION_FLAG" - } - } - } - ], - "result": { - "name": "simulated_transactions", - "description": "The execution trace and consumed resources of the required transactions", - "schema": { - "type": "array", - "items": { - "schema": { - "type": "object", - "properties": { - "transaction_trace": { - "title": "the transaction's trace", - "$ref": "#/components/schemas/TRANSACTION_TRACE" - }, - "fee_estimation": { - "title": "the transaction's resources and fee", - "$ref": "#/components/schemas/FEE_ESTIMATE" - } - } - } - } - } - }, - "errors": [ - { - "$ref": "./api/starknet_api_openrpc.json#/components/errors/BLOCK_NOT_FOUND" - }, - { - "$ref": "./api/starknet_api_openrpc.json#/components/errors/TRANSACTION_EXECUTION_ERROR" - } - ] - }, - { - "name": "starknet_traceBlockTransactions", - "summary": "Retrieve traces for all transactions in the given block", - "description": "Returns the execution traces of all transactions included in the given block", - "params": [ - { - "name": "block_id", - "description": "The hash of the requested block, or number (height) of the requested block, or a block tag", - "required": true, - "schema": { - "$ref": "#/components/schemas/BLOCK_ID" - } - } - ], - "result": { - "name": "traces", - "description": "The traces of all transactions in the block", - "schema": { - "type": "array", - "items": { - "type": "object", - "description": "A single pair of transaction hash and corresponding trace", - "properties": { - "transaction_hash": { - "$ref": "#/components/schemas/FELT" - }, - "trace_root": { - "$ref": "#/components/schemas/TRANSACTION_TRACE" - } - } - } - } - }, - "errors": [ - { - "$ref": "./api/starknet_api_openrpc.json#/components/errors/BLOCK_NOT_FOUND" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "TRANSACTION_TRACE": { - "oneOf": [ - { - "name": "INVOKE_TXN_TRACE", - "type": "object", - "description": "the execution trace of an invoke transaction", - "properties": { - "validate_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "execute_invocation": { - "description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)", - "oneOf": [ - { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - { - "type": "object", - "properties": { - "revert_reason": { - "name": "revert reason", - "description": "the revert reason for the failed execution", - "type": "string" - } - }, - "required": ["revert_reason"] - } - ] - }, - "fee_transfer_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "state_diff": { - "title": "state_diff", - "description": "the state diffs induced by the transaction", - "$ref": "#/components/schemas/STATE_DIFF" - }, - "execution_resources": { - "title": "Execution resources", - "description": "the resources consumed by the transaction, includes both computation and data", - "$ref": "#/components/schemas/EXECUTION_RESOURCES" - }, - "type": { - "title": "Type", - "type": "string", - "enum": ["INVOKE"] - } - }, - "required": ["type", "execute_invocation", "execution_resources"] - }, - { - "name": "DECLARE_TXN_TRACE", - "type": "object", - "description": "the execution trace of a declare transaction", - "properties": { - "validate_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "fee_transfer_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "state_diff": { - "title": "state_diff", - "description": "the state diffs induced by the transaction", - "$ref": "#/components/schemas/STATE_DIFF" - }, - "execution_resources": { - "title": "Execution resources", - "description": "the resources consumed by the transaction, includes both computation and data", - "$ref": "#/components/schemas/EXECUTION_RESOURCES" - }, - "type": { - "title": "Type", - "type": "string", - "enum": ["DECLARE"] - } - }, - "required": ["type", "execution_resources"] - }, - { - "name": "DEPLOY_ACCOUNT_TXN_TRACE", - "type": "object", - "description": "the execution trace of a deploy account transaction", - "properties": { - "validate_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "constructor_invocation": { - "description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)", - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "fee_transfer_invocation": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "state_diff": { - "title": "state_diff", - "description": "the state diffs induced by the transaction", - "$ref": "#/components/schemas/STATE_DIFF" - }, - "execution_resources": { - "title": "Execution resources", - "description": "the resources consumed by the transaction, includes both computation and data", - "$ref": "#/components/schemas/EXECUTION_RESOURCES" - }, - "type": { - "title": "Type", - "type": "string", - "enum": ["DEPLOY_ACCOUNT"] - } - }, - "required": [ - "type", - "execution_resources", - "constructor_invocation" - ] - }, - { - "name": "L1_HANDLER_TXN_TRACE", - "type": "object", - "description": "the execution trace of an L1 handler transaction", - "properties": { - "function_invocation": { - "description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)", - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "state_diff": { - "title": "state_diff", - "description": "the state diffs induced by the transaction", - "$ref": "#/components/schemas/STATE_DIFF" - }, - "execution_resources": { - "title": "Execution resources", - "description": "the resources consumed by the transaction, includes both computation and data", - "$ref": "#/components/schemas/EXECUTION_RESOURCES" - }, - "type": { - "title": "Type", - "type": "string", - "enum": ["L1_HANDLER"] - } - }, - "required": ["type", "function_invocation", "execution_resources"] - } - ] - }, - "SIMULATION_FLAG": { - "type": "string", - "enum": ["SKIP_VALIDATE", "SKIP_FEE_CHARGE"], - "description": "Flags that indicate how to simulate a given transaction. By default, the sequencer behavior is replicated locally (enough funds are expected to be in the account, and fee will be deducted from the balance before the simulation of the next transaction). To skip the fee charge, use the SKIP_FEE_CHARGE flag." - }, - "NESTED_CALL": { - "$ref": "#/components/schemas/FUNCTION_INVOCATION" - }, - "FUNCTION_INVOCATION": { - "allOf": [ - { - "$ref": "#/components/schemas/FUNCTION_CALL" - }, - { - "type": "object", - "properties": { - "caller_address": { - "title": "Caller Address", - "description": "The address of the invoking contract. 0 for the root invocation", - "$ref": "#/components/schemas/FELT" - }, - "class_hash": { - "title": "Class hash", - "description": "The hash of the class being called", - "$ref": "#/components/schemas/FELT" - }, - "entry_point_type": { - "$ref": "#/components/schemas/ENTRY_POINT_TYPE" - }, - "call_type": { - "$ref": "#/components/schemas/CALL_TYPE" - }, - "result": { - "title": "Invocation Result", - "description": "The value returned from the function invocation", - "type": "array", - "items": { - "$ref": "#/components/schemas/FELT" - } - }, - "calls": { - "title": "Nested Calls", - "description": "The calls made by this invocation", - "type": "array", - "items": { - "$ref": "#/components/schemas/NESTED_CALL" - } - }, - "events": { - "title": "Invocation Events", - "description": "The events emitted in this invocation", - "type": "array", - "items": { - "$ref": "#/components/schemas/ORDERED_EVENT" - } - }, - "messages": { - "title": "L1 Messages", - "description": "The messages sent by this invocation to L1", - "type": "array", - "items": { - "$ref": "#/components/schemas/ORDERED_MESSAGE" - } - }, - "execution_resources": { - "title": "Execution resources", - "description": "Resources consumed by the call tree rooted at this given call (including the root)", - "$ref": "#/components/schemas/INNER_CALL_EXECUTION_RESOURCES" - }, - "is_reverted": { - "title": "Is Reverted", - "description": "true if this inner call panicked", - "type": "boolean" - } - }, - "required": [ - "caller_address", - "class_hash", - "entry_point_type", - "call_type", - "result", - "calls", - "events", - "messages", - "execution_resources", - "is_reverted" - ] - } - ] - }, - "ENTRY_POINT_TYPE": { - "type": "string", - "enum": ["EXTERNAL", "L1_HANDLER", "CONSTRUCTOR"] - }, - "CALL_TYPE": { - "type": "string", - "enum": ["LIBRARY_CALL", "CALL", "DELEGATE"] - }, - "ORDERED_EVENT": { - "type": "object", - "title": "orderedEvent", - "description": "an event alongside its order within the transaction", - "allOf": [ - { - "type": "object", - "properties": { - "order": { - "title": "order", - "description": "the order of the event within the transaction", - "type": "integer" - } - } - }, - { - "$ref": "#/components/schemas/EVENT" - } - ] - }, - "ORDERED_MESSAGE": { - "type": "object", - "title": "orderedMessage", - "description": "a message alongside its order within the transaction", - "allOf": [ - { - "type": "object", - "properties": { - "order": { - "title": "order", - "description": "the order of the message within the transaction", - "type": "integer" - } - } - }, - { - "$ref": "#/components/schemas/MSG_TO_L1" - } - ] - }, - "INNER_CALL_EXECUTION_RESOURCES": { - "type": "object", - "title": "Execution resources", - "description": "the resources consumed by an inner call (does not account for state diffs since data is squashed across the transaction)", - "properties": { - "l1_gas": { - "title": "L1Gas", - "description": "l1 gas consumed by this transaction, used for l2-->l1 messages and state updates if blobs are not used", - "type": "integer" - }, - "l2_gas": { - "title": "L2Gas", - "description": "l2 gas consumed by this transaction, used for computation and calldata", - "type": "integer" - } - }, - "required": ["l1_gas", "l2_gas"] - }, - "FELT": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/FELT" - }, - "FUNCTION_CALL": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/FUNCTION_CALL" - }, - "EVENT": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/EVENT_CONTENT" - }, - "MSG_TO_L1": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/MSG_TO_L1" - }, - "BLOCK_ID": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BLOCK_ID" - }, - "FEE_ESTIMATE": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/FEE_ESTIMATE" - }, - "BROADCASTED_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_TXN" - }, - "STATE_DIFF": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/STATE_DIFF" - }, - "EXECUTION_RESOURCES": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/EXECUTION_RESOURCES" - } - }, - "errors": { - "NO_TRACE_AVAILABLE": { - "code": 10, - "message": "No trace available for transaction", - "data": { - "type": "object", - "description": "Extra information on why trace is not available. Either it wasn't executed yet (RECEIVED), or the transaction failed (REJECTED)", - "properties": { - "status": { - "type": "string", - "enum": ["RECEIVED", "REJECTED"] - } - } - } - } - } - } -} diff --git a/specs/rpc/v08/starknet_write_api.json b/specs/rpc/v08/starknet_write_api.json deleted file mode 100644 index 9c171651f9..0000000000 --- a/specs/rpc/v08/starknet_write_api.json +++ /dev/null @@ -1,286 +0,0 @@ -{ - "openrpc": "1.0.0-rc1", - "info": { - "version": "0.8.0", - "title": "StarkNet Node Write API", - "license": {} - }, - "servers": [], - "methods": [ - { - "name": "starknet_addInvokeTransaction", - "summary": "Submit a new transaction to be added to the chain", - "params": [ - { - "name": "invoke_transaction", - "description": "The information needed to invoke the function (or account, for version 1 transactions)", - "required": true, - "schema": { - "$ref": "#/components/schemas/BROADCASTED_INVOKE_TXN" - } - } - ], - "result": { - "name": "result", - "description": "The result of the transaction submission", - "schema": { - "type": "object", - "properties": { - "transaction_hash": { - "title": "The hash of the invoke transaction", - "$ref": "#/components/schemas/TXN_HASH" - } - }, - "required": ["transaction_hash"] - } - }, - "errors": [ - { - "$ref": "#/components/errors/INSUFFICIENT_ACCOUNT_BALANCE" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_RESOURCES_FOR_VALIDATE" - }, - { - "$ref": "#/components/errors/INVALID_TRANSACTION_NONCE" - }, - { - "$ref": "#/components/errors/VALIDATION_FAILURE" - }, - { - "$ref": "#/components/errors/NON_ACCOUNT" - }, - { - "$ref": "#/components/errors/DUPLICATE_TX" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_TX_VERSION" - }, - { - "$ref": "#/components/errors/UNEXPECTED_ERROR" - } - ] - }, - { - "name": "starknet_addDeclareTransaction", - "summary": "Submit a new class declaration transaction", - "params": [ - { - "name": "declare_transaction", - "description": "Declare transaction required to declare a new class on Starknet", - "required": true, - "schema": { - "title": "Declare transaction", - "$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN" - } - } - ], - "result": { - "name": "result", - "description": "The result of the transaction submission", - "schema": { - "type": "object", - "properties": { - "transaction_hash": { - "title": "The hash of the declare transaction", - "$ref": "#/components/schemas/TXN_HASH" - }, - "class_hash": { - "title": "The hash of the declared class", - "$ref": "#/components/schemas/FELT" - } - }, - "required": ["transaction_hash", "class_hash"] - } - }, - "errors": [ - { - "$ref": "#/components/errors/CLASS_ALREADY_DECLARED" - }, - { - "$ref": "#/components/errors/COMPILATION_FAILED" - }, - { - "$ref": "#/components/errors/COMPILED_CLASS_HASH_MISMATCH" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_ACCOUNT_BALANCE" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_RESOURCES_FOR_VALIDATE" - }, - { - "$ref": "#/components/errors/INVALID_TRANSACTION_NONCE" - }, - { - "$ref": "#/components/errors/VALIDATION_FAILURE" - }, - { - "$ref": "#/components/errors/NON_ACCOUNT" - }, - { - "$ref": "#/components/errors/DUPLICATE_TX" - }, - { - "$ref": "#/components/errors/CONTRACT_CLASS_SIZE_IS_TOO_LARGE" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_TX_VERSION" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_CONTRACT_CLASS_VERSION" - }, - { - "$ref": "#/components/errors/UNEXPECTED_ERROR" - } - ] - }, - { - "name": "starknet_addDeployAccountTransaction", - "summary": "Submit a new deploy account transaction", - "params": [ - { - "name": "deploy_account_transaction", - "description": "The deploy account transaction", - "required": true, - "schema": { - "$ref": "#/components/schemas/BROADCASTED_DEPLOY_ACCOUNT_TXN" - } - } - ], - "result": { - "name": "result", - "description": "The result of the transaction submission", - "schema": { - "type": "object", - "properties": { - "transaction_hash": { - "title": "The hash of the deploy transaction", - "$ref": "#/components/schemas/TXN_HASH" - }, - "contract_address": { - "title": "The address of the new contract", - "$ref": "#/components/schemas/FELT" - } - }, - "required": ["transaction_hash", "contract_address"] - } - }, - "errors": [ - { - "$ref": "#/components/errors/INSUFFICIENT_ACCOUNT_BALANCE" - }, - { - "$ref": "#/components/errors/INSUFFICIENT_RESOURCES_FOR_VALIDATE" - }, - { - "$ref": "#/components/errors/INVALID_TRANSACTION_NONCE" - }, - { - "$ref": "#/components/errors/VALIDATION_FAILURE" - }, - { - "$ref": "#/components/errors/NON_ACCOUNT" - }, - { - "$ref": "./api/starknet_api_openrpc.json#/components/errors/CLASS_HASH_NOT_FOUND" - }, - { - "$ref": "#/components/errors/DUPLICATE_TX" - }, - { - "$ref": "#/components/errors/UNSUPPORTED_TX_VERSION" - }, - { - "$ref": "#/components/errors/UNEXPECTED_ERROR" - } - ] - } - ], - "components": { - "contentDescriptors": {}, - "schemas": { - "NUM_AS_HEX": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/NUM_AS_HEX" - }, - "SIGNATURE": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/SIGNATURE" - }, - "FELT": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/FELT" - }, - "TXN_HASH": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/TXN_HASH" - }, - "BROADCASTED_INVOKE_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_INVOKE_TXN" - }, - "BROADCASTED_DECLARE_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_DECLARE_TXN" - }, - "BROADCASTED_DEPLOY_ACCOUNT_TXN": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_DEPLOY_ACCOUNT_TXN" - }, - "FUNCTION_CALL": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/FUNCTION_CALL" - } - }, - "errors": { - "CLASS_ALREADY_DECLARED": { - "code": 51, - "message": "Class already declared" - }, - "INVALID_TRANSACTION_NONCE": { - "code": 52, - "message": "Invalid transaction nonce" - }, - "INSUFFICIENT_RESOURCES_FOR_VALIDATE": { - "code": 53, - "message": "The transaction's resources don't cover validation or the minimal transaction fee" - }, - "INSUFFICIENT_ACCOUNT_BALANCE": { - "code": 54, - "message": "Account balance is smaller than the transaction's maximal fee (calculated as the sum of each resource's limit x max price)" - }, - "VALIDATION_FAILURE": { - "code": 55, - "message": "Account validation failed", - "data": "string" - }, - "COMPILATION_FAILED": { - "code": 56, - "message": "Compilation failed", - "data": "string" - }, - "CONTRACT_CLASS_SIZE_IS_TOO_LARGE": { - "code": 57, - "message": "Contract class size it too large" - }, - "NON_ACCOUNT": { - "code": 58, - "message": "Sender address in not an account contract" - }, - "DUPLICATE_TX": { - "code": 59, - "message": "A transaction with the same hash already exists in the mempool" - }, - "COMPILED_CLASS_HASH_MISMATCH": { - "code": 60, - "message": "the compiled class hash did not match the one supplied in the transaction" - }, - "UNSUPPORTED_TX_VERSION": { - "code": 61, - "message": "the transaction version is not supported" - }, - "UNSUPPORTED_CONTRACT_CLASS_VERSION": { - "code": 62, - "message": "the contract class version is not supported" - }, - "UNEXPECTED_ERROR": { - "code": 63, - "message": "An unexpected error occurred", - "data": "string" - } - } - } -} diff --git a/specs/rpc/v08/starknet_ws_api.json b/specs/rpc/v08/starknet_ws_api.json deleted file mode 100644 index 5ce74ed5a4..0000000000 --- a/specs/rpc/v08/starknet_ws_api.json +++ /dev/null @@ -1,395 +0,0 @@ -{ - "openrpc": "1.3.2", - "info": { - "version": "0.8.0", - "title": "StarkNet WebSocket RPC API", - "license": {} - }, - "methods": [ - { - "name": "starknet_subscribeNewHeads", - "summary": "New block headers subscription", - "description": "Creates a WebSocket stream which will fire events for new block headers", - "params": [ - { - "name": "block_id", - "summary": "The block to get notifications from, default is latest, limited to 1024 blocks back", - "required": false, - "schema": { - "$ref": "#/components/schemas/SUBSCRIPTION_BLOCK_ID" - } - } - ], - "result": { - "name": "subscription_id", - "schema": { - "$ref": "#/components/schemas/SUBSCRIPTION_ID" - } - }, - "errors": [ - { - "$ref": "#/components/errors/TOO_MANY_BLOCKS_BACK" - }, - { - "$ref": "./api/starknet_api_openrpc.json#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_subscriptionNewHeads", - "summary": "New block headers notification", - "description": "Notification to the client of a new block header", - "params": [ - { - "name": "subscription_id", - "schema": { - "$ref": "#/components/schemas/SUBSCRIPTION_ID" - } - }, - { - "name": "result", - "schema": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BLOCK_HEADER" - } - } - ], - "errors": [] - }, - { - "name": "starknet_subscribeEvents", - "summary": "Events subscription", - "description": "Creates a WebSocket stream which will fire events for new Starknet events with applied filters", - "params": [ - { - "name": "from_address", - "summary": "Filter events by from_address which emitted the event", - "required": false, - "schema": { - "$ref": "#/components/schemas/ADDRESS" - } - }, - { - "name": "keys", - "summary": "The keys to filter events by", - "required": false, - "schema": { - "title": "event keys", - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/EVENT_KEYS" - } - }, - { - "name": "block_id", - "summary": "The block to get notifications from, default is latest, limited to 1024 blocks back", - "required": false, - "schema": { - "$ref": "#/components/schemas/SUBSCRIPTION_BLOCK_ID" - } - } - ], - "result": { - "name": "subscription_id", - "schema": { - "$ref": "#/components/schemas/SUBSCRIPTION_ID" - } - }, - "errors": [ - { - "$ref": "./api/starknet_api_openrpc.json#/components/errors/TOO_MANY_KEYS_IN_FILTER" - }, - { - "$ref": "#/components/errors/TOO_MANY_BLOCKS_BACK" - }, - { - "$ref": "./api/starknet_api_openrpc.json#/components/errors/BLOCK_NOT_FOUND" - } - ] - }, - { - "name": "starknet_subscriptionEvents", - "summary": "New events notification", - "description": "Notification to the client of a new event", - "params": [ - { - "name": "subscription_id", - "schema": { - "$ref": "#/components/schemas/SUBSCRIPTION_ID" - } - }, - { - "name": "result", - "schema": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/EMITTED_EVENT" - } - } - ], - "errors": [] - }, - { - "name": "starknet_subscribeTransactionStatus", - "summary": "Transaction Status subscription", - "description": "Creates a WebSocket stream which at first fires an event with the current known transaction status, followed by events for every transaction status update", - "params": [ - { - "name": "transaction_hash", - "summary": "The transaction hash to fetch status updates for", - "required": true, - "schema": { - "$ref": "#/components/schemas/FELT" - } - } - ], - "result": { - "name": "subscription_id", - "schema": { - "$ref": "#/components/schemas/SUBSCRIPTION_ID" - } - }, - "errors": [] - }, - { - "name": "starknet_subscriptionTransactionStatus", - "summary": "New transaction status notification", - "description": "Notification to the client of a new transaction status", - "params": [ - { - "name": "subscription_id", - "schema": { - "$ref": "#/components/schemas/SUBSCRIPTION_ID" - } - }, - { - "name": "result", - "schema": { - "$ref": "#/components/schemas/NEW_TXN_STATUS" - } - } - ], - "errors": [] - }, - { - "name": "starknet_subscribePendingTransactions", - "summary": "New Pending Transactions subscription", - "description": "Creates a WebSocket stream which will fire events when a new pending transaction is added. While there is no mempool, this notifies of transactions in the pending block", - "params": [ - { - "name": "transaction_details", - "summary": "Get all transaction details, and not only the hash. If not provided, only hash is returned. Default is false", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "name": "sender_address", - "summary": "Filter transactions to only receive notification from address list", - "required": false, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ADDRESS" - } - } - } - ], - "result": { - "name": "subscription_id", - "schema": { - "$ref": "#/components/schemas/SUBSCRIPTION_ID" - } - }, - "errors": [ - { - "$ref": "#/components/errors/TOO_MANY_ADDRESSES_IN_FILTER" - } - ] - }, - { - "name": "starknet_subscriptionPendingTransactions", - "summary": "New pending transaction notification", - "description": "Notification to the client of a new pending transaction", - "params": [ - { - "name": "subscription_id", - "schema": { - "$ref": "#/components/schemas/SUBSCRIPTION_ID" - } - }, - { - "name": "result", - "description": "Either a tranasaction hash or full transaction details, based on subscription", - "schema": { - "oneOf": [ - { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/TXN_HASH" - }, - { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/TXN_WITH_HASH" - } - ] - } - } - ], - "errors": [] - }, - { - "name": "starknet_subscriptionReorg", - "description": "Notifies the subscriber of a reorganization of the chain", - "summary": "Can be received from subscribing to newHeads, Events, TransactionStatus", - "params": [ - { - "name": "subscription_id", - "schema": { - "$ref": "#/components/schemas/SUBSCRIPTION_ID" - } - }, - { - "name": "result", - "schema": { - "$ref": "#/components/schemas/REORG_DATA" - } - } - ] - }, - { - "name": "starknet_unsubscribe", - "summary": "Closes a websocket subscription", - "description": "Close a previously opened ws stream, with the corresponding subscription id", - "params": [ - { - "name": "subscription_id", - "summary": "The subscription to close", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "result": { - "name": "Unsubscription result", - "description": "True if the unsubscription was successful", - "schema": { - "type": "boolean" - } - }, - "errors": [ - { - "$ref": "#/components/errors/INVALID_SUBSCRIPTION_ID" - } - ] - } - ], - - "components": { - "schemas": { - "FELT": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/FELT" - }, - "ADDRESS": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/ADDRESS" - }, - "NEW_TXN_STATUS": { - "title": "New transaction Status", - "type": "object", - "properties": { - "transaction_hash": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/TXN_HASH" - }, - "status": { - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/TXN_STATUS_RESULT" - } - } - }, - "SUBSCRIPTION_ID": { - "name": "subscription id", - "description": "An identifier for this subscription stream used to associate events with this subscription.", - "schema": { - "type": "string" - } - }, - "SUBSCRIPTION_BLOCK_ID": { - "title": "Subscription Block id", - "description": "Block hash, number or tag, same as BLOCK_ID, but without 'pending'", - "oneOf": [ - { - "title": "Block hash", - "type": "object", - "properties": { - "block_hash": { - "title": "Block hash", - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BLOCK_HASH" - } - }, - "required": ["block_hash"] - }, - { - "title": "Block number", - "type": "object", - "properties": { - "block_number": { - "title": "Block number", - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BLOCK_NUMBER" - } - }, - "required": ["block_number"] - }, - { - "title": "Block tag", - "$ref": "#/components/schemas/SUBSCRIPTION_BLOCK_TAG" - } - ] - }, - "SUBSCRIPTION_BLOCK_TAG": { - "title": "Subscription Block tag", - "type": "string", - "description": "Same as BLOCK_TAG, but without 'pending'", - "enum": ["latest"] - }, - "REORG_DATA": { - "name": "Reorg Data", - "description": "Data about reorganized blocks, starting and ending block number and hash", - "properties": { - "starting_block_hash": { - "title": "Starting Block Hash", - "description": "Hash of the first known block of the orphaned chain", - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BLOCK_HASH" - }, - "starting_block_number": { - "title": "Starting Block Number", - "description": "Number of the first known block of the orphaned chain", - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BLOCK_NUMBER" - }, - "ending_block_hash": { - "title": "Ending Block", - "description": "The last known block of the orphaned chain", - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BLOCK_HASH" - }, - "ending_block_number": { - "title": "Ending Block Number", - "description": "Number of the last known block of the orphaned chain", - "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BLOCK_NUMBER" - } - }, - "required": [ - "starting_block_hash", - "starting_block_number", - "ending_block_hash", - "ending_block_number" - ] - } - }, - "errors": { - "INVALID_SUBSCRIPTION_ID": { - "code": 66, - "message": "Invalid subscription id" - }, - "TOO_MANY_ADDRESSES_IN_FILTER": { - "code": 67, - "message": "Too many addresses in filter sender_address filter" - }, - "TOO_MANY_BLOCKS_BACK": { - "code": 68, - "message": "Cannot go back more than 1024 blocks" - } - } - } -} From 92ddcfc861e547dcfcf59153cbac31fc935376cd Mon Sep 17 00:00:00 2001 From: Krzysztof Lis Date: Mon, 15 Jun 2026 07:52:07 +0000 Subject: [PATCH 06/10] feat(pathfinder): change default RPC root version to v0.9 --- crates/pathfinder/src/bin/pathfinder/main.rs | 3 --- crates/pathfinder/src/config.rs | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/crates/pathfinder/src/bin/pathfinder/main.rs b/crates/pathfinder/src/bin/pathfinder/main.rs index ce291e6442..d2f5856984 100644 --- a/crates/pathfinder/src/bin/pathfinder/main.rs +++ b/crates/pathfinder/src/bin/pathfinder/main.rs @@ -448,9 +448,6 @@ Hint: This is usually caused by exceeding the file descriptor limit of your syst }; let default_version = match config.rpc_root_version { - config::RootRpcVersion::V06 => pathfinder_rpc::RpcVersion::V06, - config::RootRpcVersion::V07 => pathfinder_rpc::RpcVersion::V07, - config::RootRpcVersion::V08 => pathfinder_rpc::RpcVersion::V08, config::RootRpcVersion::V09 => pathfinder_rpc::RpcVersion::V09, config::RootRpcVersion::V10 => pathfinder_rpc::RpcVersion::V10, }; diff --git a/crates/pathfinder/src/config.rs b/crates/pathfinder/src/config.rs index 168ad74348..13736d2578 100644 --- a/crates/pathfinder/src/config.rs +++ b/crates/pathfinder/src/config.rs @@ -179,7 +179,7 @@ Examples: #[arg( long = "rpc.root-version", long_help = "Version of the JSON-RPC API to serve on the / (root) path", - default_value = "v08", + default_value = "v09", env = "PATHFINDER_RPC_ROOT_VERSION" )] rpc_root_version: RootRpcVersion, @@ -697,9 +697,6 @@ The default is suitable for all uses except testing.", #[derive(clap::ValueEnum, Debug, Clone, Copy, PartialEq)] pub enum RootRpcVersion { - V06, - V07, - V08, V09, V10, } From 3dcdda0a8f3ee964a6b992165cbc5e6d072791ed Mon Sep 17 00:00:00 2001 From: Krzysztof Lis Date: Mon, 15 Jun 2026 07:52:45 +0000 Subject: [PATCH 07/10] chore(load-test): use JSON-RPC v0.9 --- crates/load-test/src/main.rs | 52 ++++++------- crates/load-test/src/requests.rs | 2 +- .../load-test/src/requests/{v08.rs => v09.rs} | 25 ++++--- crates/load-test/src/tasks.rs | 2 +- crates/load-test/src/tasks/scripted.rs | 4 +- crates/load-test/src/tasks/{v08.rs => v09.rs} | 74 ++++++++++++++----- crates/load-test/src/types.rs | 9 ++- 7 files changed, 106 insertions(+), 62 deletions(-) rename crates/load-test/src/requests/{v08.rs => v09.rs} (90%) rename crates/load-test/src/tasks/{v08.rs => v09.rs} (73%) diff --git a/crates/load-test/src/main.rs b/crates/load-test/src/main.rs index d332799805..847f143eb0 100644 --- a/crates/load-test/src/main.rs +++ b/crates/load-test/src/main.rs @@ -21,98 +21,98 @@ fn register_scripted(attack: GooseAttack) -> GooseAttack { attack .register_scenario( - scenario!("v08_scripted_mainnet").register_transaction(transaction!(mainnet_scripted)), + scenario!("v09_scripted_mainnet").register_transaction(transaction!(mainnet_scripted)), ) .register_scenario( - scenario!("v08_scripted_mainnet_without_huge_calls") + scenario!("v09_scripted_mainnet_without_huge_calls") .register_transaction(transaction!(mainnet_scripted_without_huge_calls)), ) } -fn register_v08(attack: GooseAttack) -> GooseAttack { - use tasks::v08::*; +fn register_v09(attack: GooseAttack) -> GooseAttack { + use tasks::v09::*; attack // primitive operations using the database .register_scenario( - scenario!("v08_block_by_number") + scenario!("v09_block_by_number") .register_transaction(transaction!(task_block_by_number)), ) .register_scenario( - scenario!("v08_block_by_hash").register_transaction(transaction!(task_block_by_hash)), + scenario!("v09_block_by_hash").register_transaction(transaction!(task_block_by_hash)), ) .register_scenario( - scenario!("v08_state_update_by_hash") + scenario!("v09_state_update_by_hash") .register_transaction(transaction!(task_state_update_by_hash)), ) .register_scenario( - scenario!("v08_get_class").register_transaction(transaction!(task_class_by_hash)), + scenario!("v09_get_class").register_transaction(transaction!(task_class_by_hash)), ) .register_scenario( - scenario!("v08_get_class_hash_at") + scenario!("v09_get_class_hash_at") .register_transaction(transaction!(task_class_hash_at)), ) .register_scenario( - scenario!("v08_get_class_at").register_transaction(transaction!(task_class_at)), + scenario!("v09_get_class_at").register_transaction(transaction!(task_class_at)), ) .register_scenario( - scenario!("v08_block_transaction_count_by_hash") + scenario!("v09_block_transaction_count_by_hash") .register_transaction(transaction!(task_block_transaction_count_by_hash)), ) .register_scenario( - scenario!("v08_block_transaction_count_by_number") + scenario!("v09_block_transaction_count_by_number") .register_transaction(transaction!(task_block_transaction_count_by_number)), ) .register_scenario( - scenario!("v08_transaction_by_hash") + scenario!("v09_transaction_by_hash") .register_transaction(transaction!(task_transaction_by_hash)), ) .register_scenario( - scenario!("v08_transaction_by_block_number_and_index") + scenario!("v09_transaction_by_block_number_and_index") .register_transaction(transaction!(task_transaction_by_block_number_and_index)), ) .register_scenario( - scenario!("v08_transaction_by_block_hash_and_index") + scenario!("v09_transaction_by_block_hash_and_index") .register_transaction(transaction!(task_transaction_by_block_hash_and_index)), ) .register_scenario( - scenario!("v08_transaction_receipt_by_hash") + scenario!("v09_transaction_receipt_by_hash") .register_transaction(transaction!(task_transaction_receipt_by_hash)), ) .register_scenario( - scenario!("v08_block_number").register_transaction(transaction!(task_block_number)), + scenario!("v09_block_number").register_transaction(transaction!(task_block_number)), ) .register_scenario( - scenario!("v08_get_events").register_transaction(transaction!(task_get_events)), + scenario!("v09_get_events").register_transaction(transaction!(task_get_events)), ) .register_scenario( - scenario!("v08_get_storage_at").register_transaction(transaction!(task_get_storage_at)), + scenario!("v09_get_storage_at").register_transaction(transaction!(task_get_storage_at)), ) .register_scenario( - scenario!("v08_get_nonce").register_transaction(transaction!(task_get_nonce)), + scenario!("v09_get_nonce").register_transaction(transaction!(task_get_nonce)), ) // primitive operations that don't use the database .register_scenario( - scenario!("v08_syncing").register_transaction(transaction!(task_syncing)), + scenario!("v09_syncing").register_transaction(transaction!(task_syncing)), ) .register_scenario( - scenario!("v08_chain_id").register_transaction(transaction!(task_chain_id)), + scenario!("v09_chain_id").register_transaction(transaction!(task_chain_id)), ) // primitive operation doing execution - .register_scenario(scenario!("v08_call").register_transaction(transaction!(task_call))) + .register_scenario(scenario!("v09_call").register_transaction(transaction!(task_call))) .register_scenario( - scenario!("v08_estimate_fee").register_transaction(transaction!(task_estimate_fee)), + scenario!("v09_estimate_fee").register_transaction(transaction!(task_estimate_fee)), ) // composite scenario .register_scenario( - scenario!("v08_block_explorer").register_transaction(transaction!(block_explorer)), + scenario!("v09_block_explorer").register_transaction(transaction!(block_explorer)), ) } #[tokio::main] async fn main() -> Result<(), GooseError> { let attack = GooseAttack::initialize()?; - let attack = register_v08(attack); + let attack = register_v09(attack); let attack = register_scripted(attack); attack.execute().await?; diff --git a/crates/load-test/src/requests.rs b/crates/load-test/src/requests.rs index ac51e75ec4..02398bf384 100644 --- a/crates/load-test/src/requests.rs +++ b/crates/load-test/src/requests.rs @@ -1 +1 @@ -pub mod v08; +pub mod v09; diff --git a/crates/load-test/src/requests/v08.rs b/crates/load-test/src/requests/v09.rs similarity index 90% rename from crates/load-test/src/requests/v08.rs rename to crates/load-test/src/requests/v09.rs index 41bcae4556..2712503da7 100644 --- a/crates/load-test/src/requests/v08.rs +++ b/crates/load-test/src/requests/v09.rs @@ -237,7 +237,7 @@ pub async fn call( "calldata": call_data, "entry_point_selector": entry_point_selector, }, - "block_id": "pending", + "block_id": "pre_confirmed", }), ) .await @@ -245,12 +245,11 @@ pub async fn call( pub async fn estimate_fee_for_invoke( user: &mut GooseUser, - contract_address: Felt, + sender_address: Felt, call_data: &[Felt], - entry_point_selector: Felt, + nonce: Felt, max_fee: Felt, - at_block: Felt, -) -> MethodResult { +) -> MethodResult> { post_jsonrpc_request( user, "starknet_estimateFee", @@ -260,11 +259,17 @@ pub async fn estimate_fee_for_invoke( "version": "0x1", "max_fee": max_fee, "signature": [], - "contract_address": contract_address, + "nonce": nonce, + "sender_address": sender_address, "calldata": call_data, - "entry_point_selector": entry_point_selector, }], - "block_id": {"block_hash": at_block} + // Skip validation so the historical nonce and empty signature don't fail the validate/nonce + // checks - we only want to exercise the execution path under load. + "simulation_flags": ["SKIP_VALIDATE"], + // Estimate against the state just before the transaction was included in a block + // (it was included in block 500000), so the transfer's balance check matches + // the historical state instead of drifting with the tip of the chain. + "block_id": {"block_number": 499999} }), ) .await @@ -275,7 +280,7 @@ pub async fn get_nonce(user: &mut GooseUser, contract_address: Felt) -> MethodRe user, "starknet_getNonce", json!({ - "block_id": "pending", + "block_id": "pre_confirmed", "contract_address": contract_address }), ) @@ -289,7 +294,7 @@ async fn post_jsonrpc_request( ) -> MethodResult { let request = jsonrpc_request(method, params); let response = user - .post_json("/rpc/v0_8", &request) + .post_json("/rpc/v0_9", &request) .await? .response .map_err(|e| Box::new(e.into()))?; diff --git a/crates/load-test/src/tasks.rs b/crates/load-test/src/tasks.rs index 17c31e5162..6656cfc0e3 100644 --- a/crates/load-test/src/tasks.rs +++ b/crates/load-test/src/tasks.rs @@ -1,2 +1,2 @@ pub mod scripted; -pub mod v08; +pub mod v09; diff --git a/crates/load-test/src/tasks/scripted.rs b/crates/load-test/src/tasks/scripted.rs index 4acc7584f4..1e57ae0b9b 100644 --- a/crates/load-test/src/tasks/scripted.rs +++ b/crates/load-test/src/tasks/scripted.rs @@ -4,7 +4,7 @@ use goose::prelude::*; use serde::de::DeserializeOwned; use serde::Deserialize; -use crate::requests::v08::*; +use crate::requests::v09::*; /// Script from Starkware that contain some heavy-weight calls mixed with /// wallet-like calls. @@ -102,7 +102,7 @@ async fn post_request( request: &'static str, ) -> MethodResult> { let request_builder = user - .get_request_builder(&GooseMethod::Post, "/rpc/v0_8")? + .get_request_builder(&GooseMethod::Post, "/rpc/v0_9")? .header("Content-Type", "application/json") .body(request); let goose_request = GooseRequest::builder() diff --git a/crates/load-test/src/tasks/v08.rs b/crates/load-test/src/tasks/v09.rs similarity index 73% rename from crates/load-test/src/tasks/v08.rs rename to crates/load-test/src/tasks/v09.rs index 13aa4dfd8f..3fe4cb7907 100644 --- a/crates/load-test/src/tasks/v08.rs +++ b/crates/load-test/src/tasks/v09.rs @@ -2,7 +2,7 @@ use goose::prelude::*; use pathfinder_crypto::Felt; use rand::{Rng, SeedableRng}; -use crate::requests::v08::*; +use crate::requests::v09::*; /// Fetch a random block, then fetch all individual transactions and receipts in /// the block. @@ -173,31 +173,65 @@ pub async fn task_call(user: &mut GooseUser) -> TransactionResult { } pub async fn task_estimate_fee(user: &mut GooseUser) -> TransactionResult { - // estimate invoke on a test contract deployed in block 0 - // https://voyager.online/contract/0x06ee3440b08a9c805305449ec7f7003f27e9f7e287b83610952ec36bdc5a6bae + // Estimate the fee for a real mainnet INVOKE v1 transaction from block 500k. + // Replay an existing transaction so that the account, the called contract and + // its entry point are all guaranteed to exist on chain. + // `estimate_fee_for_invoke` runs this against the previous state (block 499999) + // with SKIP_VALIDATE, so the historical nonce/signature and the chain tip's + // mutable state (token balances etc.) don't influence the result. We only care + // about execution. + // + // Structure of the transaction: + // - invoke `__execute__` on `sender_address`, passing `calldata` as the + // multicall to do, + // - `calldata` is the Cairo 0 OpenZeppelin account multicall, encoded as: + // `(call_array_len, [(to, selector, data_offset, data_len); N], calldata_len, + // calldata)`. + // + // So a single ERC20-style transfer looks like this: + // + // call_array_len = 1 + // call[0].to = 0x49d36570... (token contract) + // call[0].selector = 0x83afd3f4... ("transfer") + // call[0].data_offset = 0 (offset into the flat calldata) + // call[0].data_len = 3 (recipient + u256 amount) + // calldata_len = 3 + // calldata[0] = 0x2db7e01c... (recipient address) + // calldata[1] = 0x13717a1765d1800 (amount, u256 low) + // calldata[2] = 0x0 (amount, u256 high) estimate_fee_for_invoke( user, - Felt::from_hex_str("0x06ee3440b08a9c805305449ec7f7003f27e9f7e287b83610952ec36bdc5a6bae") + // Sender (account) address + Felt::from_hex_str("0x3a20d4f7b4229e7c4863dab158b4d076d7f454b893d90a62011882dc4caca2a") .unwrap(), + // Account __execute__ calldata: a single transfer call &[ - // address - Felt::from_hex_str( - "0x01e2cd4b3588e8f6f9c4e89fb0e293bf92018c96d7a93ee367d29a284223b6ff", - ) - .unwrap(), - // value - Felt::from_hex_str( - "0x071d1e9d188c784a0bde95c1d508877a0d93e9102b37213d1e13f3ebc54a7751", - ) - .unwrap(), + // call_array_len + Felt::from_hex_str("0x1").unwrap(), + // call[0].to (token contract) + Felt::from_hex_str("0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7") + .unwrap(), + // call[0].selector ("transfer") + Felt::from_hex_str("0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e") + .unwrap(), + // call[0].data_offset + Felt::from_hex_str("0x0").unwrap(), + // call[0].data_len + Felt::from_hex_str("0x3").unwrap(), + // calldata_len + Felt::from_hex_str("0x3").unwrap(), + // calldata[0]: recipient address + Felt::from_hex_str("0x2db7e01c69be7e741fcd08fb5096914029131334dbca1d63ab33c05e7a92153") + .unwrap(), + // calldata[1]: amount, u256 low + Felt::from_hex_str("0x13717a1765d1800").unwrap(), + // calldata[2]: amount, u256 high + Felt::from_hex_str("0x0").unwrap(), ], - // "set_value" entry point - Felt::from_hex_str("0x3d7905601c217734671143d457f0db37f7f8883112abd34b92c4abfeafde0c3") - .unwrap(), + // nonce (historical; not checked because of SKIP_VALIDATE) + Felt::from_hex_str("0x121419").unwrap(), + // max_fee Felt::ZERO, - // hash of mainnet block 0 - Felt::from_hex_str("0x47c3637b57c2b079b93c61539950c17e868a28f46cdef28f88521067f21e943") - .unwrap(), ) .await?; Ok(()) diff --git a/crates/load-test/src/types.rs b/crates/load-test/src/types.rs index 9bff1820e2..26220b4d7a 100644 --- a/crates/load-test/src/types.rs +++ b/crates/load-test/src/types.rs @@ -43,7 +43,12 @@ pub struct ContractClass { #[derive(Clone, Debug, serde::Deserialize, PartialEq, Eq)] pub struct FeeEstimate { - pub gas_consumed: String, - pub gas_price: String, + pub l1_gas_consumed: String, + pub l1_gas_price: String, + pub l1_data_gas_consumed: String, + pub l1_data_gas_price: String, + pub l2_gas_consumed: String, + pub l2_gas_price: String, pub overall_fee: String, + pub unit: String, } From b24cabd134565f29269398d452927b718ed4d184 Mon Sep 17 00:00:00 2001 From: Krzysztof Lis Date: Mon, 15 Jun 2026 07:55:23 +0000 Subject: [PATCH 08/10] docs(rpc): update JSON-RPC version references and changelog --- CHANGELOG.md | 4 ++++ .../interacting-with-pathfinder/json-rpc-api.md | 14 +++++--------- .../interacting-with-pathfinder/websocket-api.md | 12 ++++-------- 3 files changed, 13 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aca7a16998..d4787cce6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `margin` is the value of the new CLI option `--compiler.concurrency-memory-margin-mib`, which defaults to 4GiB, - `compiler_max_memory_usage` is the value of the `--compiler.max-memory-usage-mib` CLI option, which defaults to 4GiB. +### Removed + +- Support for JSON-RPC API versions v0.8 and lower has been removed. The `/rpc/v0_6`, `/rpc/v0_7`, and `/rpc/v0_8` endpoints (and their `/ws` equivalents) are no longer served. The lowest supported version is now v0.9, which is also the new default for the root (`/`) path. The default value for `--rpc.root-version` is now `v09`. + ## [0.22.5] - 2026-06-08 ### Added diff --git a/docs/docs/interacting-with-pathfinder/json-rpc-api.md b/docs/docs/interacting-with-pathfinder/json-rpc-api.md index eca89f8179..f808b1a1da 100644 --- a/docs/docs/interacting-with-pathfinder/json-rpc-api.md +++ b/docs/docs/interacting-with-pathfinder/json-rpc-api.md @@ -7,14 +7,10 @@ sidebar_position: 1 The JSON-RPC interface allows you to query Starknet data, send transactions, and perform contract calls without going through a formal transaction on-chain. Pathfinder currently supports multiple API versions and a distinct set of custom extensions. ## Supported Versions -- **JSON-RPC v0.6.0** - Accessible at the `/rpc/v0_6` endpoint. -- **JSON-RPC v0.7.1** - Accessible at the `/rpc/v0_7` endpoint. -- **JSON-RPC v0.8.1** - Accessible at the `/rpc/v0_8` endpoint. - **JSON-RPC v0.9.0** Accessible at the `/rpc/v0_9` endpoint. +- **JSON-RPC v0.10** + Accessible at the `/rpc/v0_10` endpoint. - **Pathfinder Extension** Exposed via `/rpc/pathfinder/v0_1`. @@ -34,13 +30,13 @@ Below is a typical JSON-RPC request structure: } ``` -You’ll receive a response in a similar JSON-RPC 2.0 format containing `result` or `error` fields. For instance, to query the chain ID using v0.8: +You’ll receive a response in a similar JSON-RPC 2.0 format containing `result` or `error` fields. For instance, to query the chain ID using v0.9: ```bash curl -X POST \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"starknet_chainId","params":[],"id":1}' \ - http://127.0.0.1:9545/rpc/v0_8 + http://127.0.0.1:9545/rpc/v0_9 ``` A successful response might look like this: @@ -72,7 +68,7 @@ A successful response might look like this: }], "id":1 }' \ - http://127.0.0.1:9545/rpc/v0_7 + http://127.0.0.1:9545/rpc/v0_9 ``` diff --git a/docs/docs/interacting-with-pathfinder/websocket-api.md b/docs/docs/interacting-with-pathfinder/websocket-api.md index 6e4457dfd6..99baba378e 100644 --- a/docs/docs/interacting-with-pathfinder/websocket-api.md +++ b/docs/docs/interacting-with-pathfinder/websocket-api.md @@ -7,14 +7,10 @@ sidebar_position: 2 The WebSocket interface serves the same API versions and extension endpoints as HTTP, but in a stateful, two-way communication channel. This can be especially useful for real-time notifications, subscription-based events, or building interactive dashboards. ## Supported Versions -- **JSON-RPC v0.6.0** - Accessible at `/ws/rpc/v0_6`. -- **JSON-RPC v0.7.1** - Accessible at `/ws/rpc/v0_7`. -- **JSON-RPC v0.8.1** - Accessible at `/rpc/v0_8` and `/ws/rpc/v0_8` (deprecated). - **JSON-RPC v0.9.0** - Accessible at `/rpc/v0_9` and `/ws/rpc/v0_9` (deprecated). + Accessible at `/rpc/v0_9` and `/ws/rpc/v0_9`. +- **JSON-RPC v0.10** + Accessible at `/rpc/v0_10` and `/ws/rpc/v0_10`. - **Pathfinder Extension** Exposed via `/ws/rpc/pathfinder/v0_1` @@ -24,7 +20,7 @@ The WebSocket interface serves the same API versions and extension endpoints as A typical WebSocket connection can be opened using libraries like `ws`, `websockets`, or the native browser WebSocket API. The RPC payload structure remains the same (JSON-RPC 2.0), but it is sent over a persistent socket connection: ```js title="WebSocket Connection Example in Node.js" -const ws = new WebSocket("ws://127.0.0.1:9545/ws/rpc/v0_8"); +const ws = new WebSocket("ws://127.0.0.1:9545/ws/rpc/v0_9"); ws.onopen = () => { const message = JSON.stringify({ From 6388cc7802af970c454db046926aa05980fc5c5a Mon Sep 17 00:00:00 2001 From: Krzysztof Lis Date: Mon, 22 Jun 2026 16:49:28 +0200 Subject: [PATCH 09/10] refactor(rpc/dto): remove unnecessary serialization wrapper --- crates/rpc/src/dto/block.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/crates/rpc/src/dto/block.rs b/crates/rpc/src/dto/block.rs index 9f9e8da533..ba4241764d 100644 --- a/crates/rpc/src/dto/block.rs +++ b/crates/rpc/src/dto/block.rs @@ -208,22 +208,6 @@ impl crate::dto::SerializeForVersion for crate::pending::PreConfirmedBlock { } } -impl crate::dto::SerializeForVersion - for ( - &Option, - &crate::pending::PreConfirmedBlock, - ) -{ - fn serialize( - &self, - serializer: crate::dto::Serializer, - ) -> Result { - let mut serializer = serializer.serialize_struct()?; - serializer.flatten(self.1)?; - serializer.end() - } -} - #[derive(Debug)] struct ResourcePrice { pub price_in_wei: GasPrice, From 16d736422e8ae9a71852d46a452d7ca14e33dad0 Mon Sep 17 00:00:00 2001 From: Krzysztof Lis Date: Mon, 22 Jun 2026 19:27:30 +0200 Subject: [PATCH 10/10] refactor(rpc): drop unused param --- crates/rpc/src/method/call.rs | 4 +-- crates/rpc/src/method/estimate_fee.rs | 4 +-- crates/rpc/src/method/estimate_message_fee.rs | 2 +- .../src/method/get_block_transaction_count.rs | 4 +-- .../rpc/src/method/get_block_with_receipts.rs | 4 +-- .../src/method/get_block_with_tx_hashes.rs | 4 +-- crates/rpc/src/method/get_block_with_txs.rs | 4 +-- crates/rpc/src/method/get_class.rs | 4 +-- crates/rpc/src/method/get_class_at.rs | 4 +-- crates/rpc/src/method/get_class_hash_at.rs | 4 +-- crates/rpc/src/method/get_events.rs | 6 ++-- crates/rpc/src/method/get_nonce.rs | 4 +-- crates/rpc/src/method/get_state_update.rs | 4 +-- crates/rpc/src/method/get_storage_at.rs | 4 +-- .../get_transaction_by_block_id_and_index.rs | 4 +-- .../rpc/src/method/get_transaction_by_hash.rs | 4 +-- .../rpc/src/method/get_transaction_receipt.rs | 4 +-- .../rpc/src/method/get_transaction_status.rs | 4 +-- .../rpc/src/method/simulate_transactions.rs | 4 +-- .../src/method/trace_block_transactions.rs | 4 +-- crates/rpc/src/method/trace_transaction.rs | 4 +-- crates/rpc/src/pending.rs | 30 +++++++------------ 22 files changed, 52 insertions(+), 62 deletions(-) diff --git a/crates/rpc/src/method/call.rs b/crates/rpc/src/method/call.rs index ea189c8ab0..1a77a63770 100644 --- a/crates/rpc/src/method/call.rs +++ b/crates/rpc/src/method/call.rs @@ -117,7 +117,7 @@ pub struct Output(pub Vec); pub async fn call( context: RpcContext, input: Input, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { let span = tracing::Span::current(); if input.request.calldata.len() > CALLDATA_LIMIT { @@ -138,7 +138,7 @@ pub async fn call( let (header, pending) = match input.block_id { BlockId::PreConfirmed => { - let pending = context.pending_data.get(&db_tx, rpc_version)?; + let pending = context.pending_data.get(&db_tx)?; ( pending.pre_confirmed_header(), diff --git a/crates/rpc/src/method/estimate_fee.rs b/crates/rpc/src/method/estimate_fee.rs index 9e2d295397..7741bb9739 100644 --- a/crates/rpc/src/method/estimate_fee.rs +++ b/crates/rpc/src/method/estimate_fee.rs @@ -55,7 +55,7 @@ pub struct Output(Vec); pub async fn estimate_fee( context: RpcContext, input: Input, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { let span = tracing::Span::current(); if let Some(bad_tx_idx) = input.request.iter().position(calldata_limit_exceeded) { @@ -101,7 +101,7 @@ pub async fn estimate_fee( let (header, pending) = match input.block_id { BlockId::PreConfirmed => { - let pending = context.pending_data.get(&db_tx, rpc_version)?; + let pending = context.pending_data.get(&db_tx)?; ( pending.pre_confirmed_header(), diff --git a/crates/rpc/src/method/estimate_message_fee.rs b/crates/rpc/src/method/estimate_message_fee.rs index b71eb29ee5..929bba316a 100644 --- a/crates/rpc/src/method/estimate_message_fee.rs +++ b/crates/rpc/src/method/estimate_message_fee.rs @@ -78,7 +78,7 @@ pub async fn estimate_message_fee( let (header, pending) = match input.block_id { BlockId::PreConfirmed => { - let pending = context.pending_data.get(&db_tx, rpc_version)?; + let pending = context.pending_data.get(&db_tx)?; ( pending.pre_confirmed_header(), diff --git a/crates/rpc/src/method/get_block_transaction_count.rs b/crates/rpc/src/method/get_block_transaction_count.rs index 438b84fabf..13e751e58d 100644 --- a/crates/rpc/src/method/get_block_transaction_count.rs +++ b/crates/rpc/src/method/get_block_transaction_count.rs @@ -28,7 +28,7 @@ pub struct Output(u64); pub async fn get_block_transaction_count( context: RpcContext, input: Input, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { let span = tracing::Span::current(); util::task::spawn_blocking(move |_| { @@ -43,7 +43,7 @@ pub async fn get_block_transaction_count( BlockId::PreConfirmed => { let count = context .pending_data - .get(&db, rpc_version)? + .get(&db)? .pre_confirmed_transactions() .len() as u64; return Ok(Output(count)); diff --git a/crates/rpc/src/method/get_block_with_receipts.rs b/crates/rpc/src/method/get_block_with_receipts.rs index 1bc9281069..b7bb6eb789 100644 --- a/crates/rpc/src/method/get_block_with_receipts.rs +++ b/crates/rpc/src/method/get_block_with_receipts.rs @@ -58,7 +58,7 @@ crate::error::generate_rpc_error_subset!(Error: BlockNotFound); pub async fn get_block_with_receipts( context: RpcContext, input: Input, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { let span = tracing::Span::current(); util::task::spawn_blocking(move |_| { @@ -79,7 +79,7 @@ pub async fn get_block_with_receipts( let block_id = match input.block_id { BlockId::PreConfirmed => { - let pending = context.pending_data.get(&db, rpc_version)?; + let pending = context.pending_data.get(&db)?; return Ok(Output::Pending { block: pending.pending_block(), diff --git a/crates/rpc/src/method/get_block_with_tx_hashes.rs b/crates/rpc/src/method/get_block_with_tx_hashes.rs index 1fa49cb50b..6492c5270e 100644 --- a/crates/rpc/src/method/get_block_with_tx_hashes.rs +++ b/crates/rpc/src/method/get_block_with_tx_hashes.rs @@ -41,7 +41,7 @@ pub enum Output { pub async fn get_block_with_tx_hashes( context: RpcContext, input: Input, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { let span = tracing::Span::current(); util::task::spawn_blocking(move |_| { @@ -57,7 +57,7 @@ pub async fn get_block_with_tx_hashes( let block_id = match input.block_id { BlockId::PreConfirmed => { - let pending = context.pending_data.get(&transaction, rpc_version)?; + let pending = context.pending_data.get(&transaction)?; let transactions = pending .pre_confirmed_transactions() diff --git a/crates/rpc/src/method/get_block_with_txs.rs b/crates/rpc/src/method/get_block_with_txs.rs index 83e2706ea4..69f42796e7 100644 --- a/crates/rpc/src/method/get_block_with_txs.rs +++ b/crates/rpc/src/method/get_block_with_txs.rs @@ -59,7 +59,7 @@ pub enum Output { pub async fn get_block_with_txs( context: RpcContext, input: Input, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { let span = tracing::Span::current(); util::task::spawn_blocking(move |_| { @@ -82,7 +82,7 @@ pub async fn get_block_with_txs( let block_id = match input.block_id { BlockId::PreConfirmed => { - let pending = context.pending_data.get(&transaction, rpc_version)?; + let pending = context.pending_data.get(&transaction)?; let transactions = pending.pre_confirmed_transactions().to_vec(); diff --git a/crates/rpc/src/method/get_class.rs b/crates/rpc/src/method/get_class.rs index 0377df2df2..e7750632ac 100644 --- a/crates/rpc/src/method/get_class.rs +++ b/crates/rpc/src/method/get_class.rs @@ -46,7 +46,7 @@ impl From for Output { pub async fn get_class( context: RpcContext, input: Input, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { let span = tracing::Span::current(); let jh = util::task::spawn_blocking(move |_| -> Result { @@ -60,7 +60,7 @@ pub async fn get_class( let is_pending = input.block_id.is_pending() && context .pending_data - .get(&tx, rpc_version)? + .get(&tx)? .class_is_declared(input.class_hash); let block_id = input diff --git a/crates/rpc/src/method/get_class_at.rs b/crates/rpc/src/method/get_class_at.rs index ed24ef0739..4d28f2ccb1 100644 --- a/crates/rpc/src/method/get_class_at.rs +++ b/crates/rpc/src/method/get_class_at.rs @@ -55,7 +55,7 @@ impl SerializeForVersion for Output { pub async fn get_class_at( context: RpcContext, input: Input, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { let span = tracing::Span::current(); let jh = util::task::spawn_blocking(move |_| { @@ -70,7 +70,7 @@ pub async fn get_class_at( let pending_class_hash = if input.block_id.is_pending() { context .pending_data - .get(&tx, rpc_version)? + .get(&tx)? .find_contract_class(input.contract_address) } else { None diff --git a/crates/rpc/src/method/get_class_hash_at.rs b/crates/rpc/src/method/get_class_hash_at.rs index 2732394f84..5ceed88fdc 100644 --- a/crates/rpc/src/method/get_class_hash_at.rs +++ b/crates/rpc/src/method/get_class_hash_at.rs @@ -30,7 +30,7 @@ pub struct Output(ClassHash); pub async fn get_class_hash_at( context: RpcContext, input: Input, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { let span = tracing::Span::current(); util::task::spawn_blocking(move |_| { @@ -45,7 +45,7 @@ pub async fn get_class_hash_at( if input.block_id.is_pending() { let class_hash = context .pending_data - .get(&tx, rpc_version)? + .get(&tx)? .find_contract_class(input.contract_address); if let Some(class_hash) = class_hash { diff --git a/crates/rpc/src/method/get_events.rs b/crates/rpc/src/method/get_events.rs index 4e62e32813..825477e5d7 100644 --- a/crates/rpc/src/method/get_events.rs +++ b/crates/rpc/src/method/get_events.rs @@ -118,7 +118,7 @@ impl crate::dto::DeserializeForVersion for EventFilter { pub async fn get_events( context: RpcContext, input: GetEventsInput, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { // The [Block::PreConfirmed] in ranges makes things quite complicated. This // implementation splits the ranges into the following buckets: @@ -189,11 +189,11 @@ pub async fn get_events( // Missing pending data only errs when the request explicitly asked for it. let pending: Option = if requires_pre_confirmed { - Some(context.pending_data.get(&transaction, rpc_version)?) + Some(context.pending_data.get(&transaction)?) } else { context .pending_data - .get_optional(&transaction, rpc_version)? + .get_optional(&transaction)? }; // Replace from/to blocks with `BlockId::PreConfirmed` if their numbers match diff --git a/crates/rpc/src/method/get_nonce.rs b/crates/rpc/src/method/get_nonce.rs index dd28863015..4d89370b3b 100644 --- a/crates/rpc/src/method/get_nonce.rs +++ b/crates/rpc/src/method/get_nonce.rs @@ -30,7 +30,7 @@ crate::error::generate_rpc_error_subset!(Error: BlockNotFound, ContractNotFound) pub async fn get_nonce( context: RpcContext, input: Input, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { let span = tracing::Span::current(); util::task::spawn_blocking(move |_| -> Result<_, Error> { @@ -44,7 +44,7 @@ pub async fn get_nonce( if input.block_id.is_pending() { let nonce = context .pending_data - .get(&tx, rpc_version)? + .get(&tx)? .find_nonce(input.contract_address); if let Some(nonce) = nonce { diff --git a/crates/rpc/src/method/get_state_update.rs b/crates/rpc/src/method/get_state_update.rs index 736df820ec..97299333e6 100644 --- a/crates/rpc/src/method/get_state_update.rs +++ b/crates/rpc/src/method/get_state_update.rs @@ -55,7 +55,7 @@ impl dto::SerializeForVersion for Output { pub async fn get_state_update( context: RpcContext, input: Input, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { let storage = context.storage.clone(); let span = tracing::Span::current(); @@ -70,7 +70,7 @@ pub async fn get_state_update( if input.block_id.is_pending() { let mut state_update = context .pending_data - .get(&tx, rpc_version)? + .get(&tx)? .pre_confirmed_state_update(); if !input.contract_addresses.is_empty() { let mut own_state_update = state_update.as_ref().clone(); diff --git a/crates/rpc/src/method/get_storage_at.rs b/crates/rpc/src/method/get_storage_at.rs index e63050a0ec..8e168b79bb 100644 --- a/crates/rpc/src/method/get_storage_at.rs +++ b/crates/rpc/src/method/get_storage_at.rs @@ -57,7 +57,7 @@ crate::error::generate_rpc_error_subset!(Error: ContractNotFound, BlockNotFound) pub async fn get_storage_at( context: RpcContext, input: Input, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { let span = tracing::Span::current(); let jh = util::task::spawn_blocking(move |_| { @@ -77,7 +77,7 @@ pub async fn get_storage_at( let tx = db.transaction().context("Creating database transaction")?; if input.block_id.is_pending() { - let pending_data = context.pending_data.get(&tx, rpc_version)?; + let pending_data = context.pending_data.get(&tx)?; let opt_found = pending_data.find_storage_value(input.contract_address, input.key); if let Some(found) = opt_found { let (value, last_update_block) = match found { diff --git a/crates/rpc/src/method/get_transaction_by_block_id_and_index.rs b/crates/rpc/src/method/get_transaction_by_block_id_and_index.rs index 69d74ff6ec..cb38eea64e 100644 --- a/crates/rpc/src/method/get_transaction_by_block_id_and_index.rs +++ b/crates/rpc/src/method/get_transaction_by_block_id_and_index.rs @@ -52,7 +52,7 @@ crate::error::generate_rpc_error_subset!( pub async fn get_transaction_by_block_id_and_index( context: RpcContext, input: Input, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { let index: usize = input .index @@ -81,7 +81,7 @@ pub async fn get_transaction_by_block_id_and_index( BlockId::PreConfirmed => { let result = context .pending_data - .get(&db_tx, rpc_version)? + .get(&db_tx)? .pre_confirmed_transactions() .get(index) .cloned() diff --git a/crates/rpc/src/method/get_transaction_by_hash.rs b/crates/rpc/src/method/get_transaction_by_hash.rs index e42ac2da01..d332941594 100644 --- a/crates/rpc/src/method/get_transaction_by_hash.rs +++ b/crates/rpc/src/method/get_transaction_by_hash.rs @@ -45,7 +45,7 @@ pub struct Output { pub async fn get_transaction_by_hash( context: RpcContext, input: Input, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { let include_proof_facts = input .response_flags @@ -64,7 +64,7 @@ pub async fn get_transaction_by_hash( let db_tx = db.transaction().context("Creating database transaction")?; // Pending is an optional first look; a finalized tx lives in the DB regardless. - let pending = context.pending_data.get_optional(&db_tx, rpc_version)?; + let pending = context.pending_data.get_optional(&db_tx)?; if let Some(transaction) = pending .as_ref() .and_then(|p| p.find_transaction(input.transaction_hash)) diff --git a/crates/rpc/src/method/get_transaction_receipt.rs b/crates/rpc/src/method/get_transaction_receipt.rs index e99e3a344e..f3a2af079a 100644 --- a/crates/rpc/src/method/get_transaction_receipt.rs +++ b/crates/rpc/src/method/get_transaction_receipt.rs @@ -85,7 +85,7 @@ crate::error::generate_rpc_error_subset!(Error: TxnHashNotFound); pub async fn get_transaction_receipt( context: RpcContext, input: Input, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { let span = tracing::Span::current(); util::task::spawn_blocking(move |_| { @@ -98,7 +98,7 @@ pub async fn get_transaction_receipt( let db_tx = db.transaction().context("Creating database transaction")?; // Pending is an optional first look; a finalized tx lives in the DB regardless. - let pending = context.pending_data.get_optional(&db_tx, rpc_version)?; + let pending = context.pending_data.get_optional(&db_tx)?; if let Some(finalized_tx_data) = pending .as_ref() diff --git a/crates/rpc/src/method/get_transaction_status.rs b/crates/rpc/src/method/get_transaction_status.rs index 7dc95e5b91..9f9d318733 100644 --- a/crates/rpc/src/method/get_transaction_status.rs +++ b/crates/rpc/src/method/get_transaction_status.rs @@ -39,7 +39,7 @@ crate::error::generate_rpc_error_subset!(Error: TxnHashNotFound); pub async fn get_transaction_status( context: RpcContext, input: Input, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { // Check database. let span = tracing::Span::current(); @@ -52,7 +52,7 @@ pub async fn get_transaction_status( .context("Opening database connection")?; let db_tx = db.transaction().context("Creating database transaction")?; - let pending_data = context.pending_data.get_optional(&db_tx, rpc_version)?; + let pending_data = context.pending_data.get_optional(&db_tx)?; if let Some(finalized_tx_data) = pending_data .as_ref() diff --git a/crates/rpc/src/method/simulate_transactions.rs b/crates/rpc/src/method/simulate_transactions.rs index 72c8a957b4..51f4f38856 100644 --- a/crates/rpc/src/method/simulate_transactions.rs +++ b/crates/rpc/src/method/simulate_transactions.rs @@ -43,7 +43,7 @@ pub struct Output { pub async fn simulate_transactions( context: RpcContext, input: SimulateTransactionInput, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { let span = tracing::Span::current(); if let Some(bad_tx_idx) = input.transactions.iter().position(calldata_limit_exceeded) { @@ -98,7 +98,7 @@ pub async fn simulate_transactions( let (header, pending) = match input.block_id { BlockId::PreConfirmed => { - let pending = context.pending_data.get(&db_tx, rpc_version)?; + let pending = context.pending_data.get(&db_tx)?; ( pending.pre_confirmed_header(), diff --git a/crates/rpc/src/method/trace_block_transactions.rs b/crates/rpc/src/method/trace_block_transactions.rs index 133e3a806a..6a2835f5ce 100644 --- a/crates/rpc/src/method/trace_block_transactions.rs +++ b/crates/rpc/src/method/trace_block_transactions.rs @@ -78,7 +78,7 @@ enum TraceOutputFormat { pub async fn trace_block_transactions( context: RpcContext, input: TraceBlockTransactionsInput, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { enum LocalExecution { Success(TraceBlockTransactionsOutput), @@ -106,7 +106,7 @@ pub async fn trace_block_transactions( let (block_id, header, transactions, cache) = match input.block_id { BlockId::PreConfirmed => { - let pending = context.pending_data.get(&db_tx, rpc_version)?; + let pending = context.pending_data.get(&db_tx)?; let header = pending.pre_confirmed_header(); let transactions = pending.pre_confirmed_transactions().to_vec(); diff --git a/crates/rpc/src/method/trace_transaction.rs b/crates/rpc/src/method/trace_transaction.rs index 0c134063f2..fc5cbf2be6 100644 --- a/crates/rpc/src/method/trace_transaction.rs +++ b/crates/rpc/src/method/trace_transaction.rs @@ -45,7 +45,7 @@ impl crate::dto::SerializeForVersion for Output { pub async fn trace_transaction( context: RpcContext, input: Input, - rpc_version: RpcVersion, + _rpc_version: RpcVersion, ) -> Result { #[allow(clippy::large_enum_variant)] enum LocalExecution { @@ -67,7 +67,7 @@ pub async fn trace_transaction( .context("Creating database transaction")?; // Find the transaction's block. - let pending = context.pending_data.get_optional(&db_tx, rpc_version)?; + let pending = context.pending_data.get_optional(&db_tx)?; let pending = pending.as_ref(); let (header, transactions, cache) = if let Some((pending, pending_tx)) = pending diff --git a/crates/rpc/src/pending.rs b/crates/rpc/src/pending.rs index 09cad1cacd..742306cf45 100644 --- a/crates/rpc/src/pending.rs +++ b/crates/rpc/src/pending.rs @@ -14,8 +14,6 @@ use pathfinder_pending_data::{PendingDataCache, ReadError}; use pathfinder_storage::Transaction; use tokio::sync::watch::Receiver as WatchReceiver; -use crate::RpcVersion; - /// A finalized transaction along with its receipt, events, status and the block /// number it was included in. pub struct FinalizedTxData { @@ -49,11 +47,7 @@ impl PendingWatcher { /// Returns an empty block with gas price and timestamp taken from the /// latest block if no valid pending data is available. The block number /// is also incremented. - pub fn get( - &self, - tx: &Transaction<'_>, - _rpc_version: RpcVersion, - ) -> Result { + pub fn get(&self, tx: &Transaction<'_>) -> Result { let latest = tx .block_header(pathfinder_common::BlockId::Latest) .context("Querying latest block header")? @@ -162,12 +156,8 @@ impl PendingWatcher { /// Returns the pending data, or `None` when the cache is unavailable. /// Unlike [`Self::get`], an `Unavailable` cache is not an error. - pub fn get_optional( - &self, - tx: &Transaction<'_>, - rpc_version: RpcVersion, - ) -> Result, ReadError> { - match self.get(tx, rpc_version) { + pub fn get_optional(&self, tx: &Transaction<'_>) -> Result, ReadError> { + match self.get(tx) { Ok(data) => Ok(Some(data)), Err(ReadError::Unavailable(_)) => Ok(None), Err(e @ ReadError::Internal(_)) => Err(e), @@ -391,7 +381,7 @@ mod tests { let pending = valid_pre_confirmed_block(&latest); cache.store(pending.clone()); - let result = uut.get(&tx, RpcVersion::V09).unwrap(); + let result = uut.get(&tx).unwrap(); pretty_assertions_sorted::assert_eq_sorted!(result, pending); } @@ -434,7 +424,7 @@ mod tests { let pending = valid_pre_confirmed_block_with_pre_latest(&latest); cache.store(pending.clone()); - let result = uut.get(&tx, RpcVersion::V09).unwrap(); + let result = uut.get(&tx).unwrap(); pretty_assertions_sorted::assert_eq_sorted!(result, pending); // Pre-latest block will be same as `latest` which is also valid, but in this @@ -442,7 +432,7 @@ mod tests { let pending = valid_pre_confirmed_block_with_pre_latest(&parent); cache.store(pending); - let result = uut.get(&tx, RpcVersion::V09).unwrap(); + let result = uut.get(&tx).unwrap(); // We got a non-empty pre-confirmed block.. assert!(!result.pre_confirmed_transactions().is_empty()); // ..and we did not receive a pre-latest block. @@ -483,7 +473,7 @@ mod tests { tx.insert_block_header(&parent).unwrap(); tx.insert_block_header(&latest).unwrap(); - let result = uut.get(&tx, RpcVersion::V09).unwrap(); + let result = uut.get(&tx).unwrap(); let expected = PendingData::empty(&latest); @@ -527,7 +517,7 @@ mod tests { let pending = valid_pre_confirmed_block(&parent); cache.store(pending.clone()); - let result = uut.get(&tx, RpcVersion::V09).unwrap(); + let result = uut.get(&tx).unwrap(); let expected = empty_pre_confirmed_block(&latest); @@ -585,7 +575,7 @@ mod tests { let pending = valid_pre_confirmed_block_with_pre_latest(&parent1); cache.store(pending.clone()); - let result = uut.get(&tx, RpcVersion::V09).unwrap(); + let result = uut.get(&tx).unwrap(); let expected = empty_pre_confirmed_block(&latest); @@ -624,7 +614,7 @@ mod tests { let pending = invalid_pre_confirmed_block_with_pre_latest(&latest); cache.store(pending.clone()); - let _ = uut.get(&tx, RpcVersion::V09).unwrap(); + let _ = uut.get(&tx).unwrap(); } fn empty_pre_confirmed_block(latest: &BlockHeader) -> PendingData {